mdjournal 1.0.13 → 1.0.15

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.
@@ -0,0 +1,402 @@
1
+ function OP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ty={exports:{}},Nc={};var iw;function TP(){if(iw)return Nc;iw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var c=null;if(s!==void 0&&(c=""+s),i.key!==void 0&&(c=""+i.key),"key"in i){s={};for(var d in i)d!=="key"&&(s[d]=i[d])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:c,ref:i!==void 0?i:null,props:s}}return Nc.Fragment=t,Nc.jsx=n,Nc.jsxs=n,Nc}var lw;function NP(){return lw||(lw=1,ty.exports=TP()),ty.exports}var Y=NP(),ny={exports:{}},Ot={};var sw;function IP(){if(sw)return Ot;sw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function C(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,S={};function w(A,j,q){this.props=A,this.context=j,this.refs=S,this.updater=q||b}w.prototype.isReactComponent={},w.prototype.setState=function(A,j){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,j,"setState")},w.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function M(){}M.prototype=w.prototype;function x(A,j,q){this.props=A,this.context=j,this.refs=S,this.updater=q||b}var R=x.prototype=new M;R.constructor=x,$(R,w.prototype),R.isPureReactComponent=!0;var O=Array.isArray;function N(){}var T={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function D(A,j,q){var X=q.ref;return{$$typeof:e,type:A,key:j,ref:X!==void 0?X:null,props:q}}function k(A,j){return D(A.type,j,A.props)}function W(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function U(A){var j={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(q){return j[q]})}var G=/\/+/g;function L(A,j){return typeof A=="object"&&A!==null&&A.key!=null?U(""+A.key):j.toString(36)}function H(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(N,N):(A.status="pending",A.then(function(j){A.status==="pending"&&(A.status="fulfilled",A.value=j)},function(j){A.status==="pending"&&(A.status="rejected",A.reason=j)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,j,q,X,K){var J=typeof A;(J==="undefined"||J==="boolean")&&(A=null);var Z=!1;if(A===null)Z=!0;else switch(J){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(A.$$typeof){case e:case t:Z=!0;break;case g:return Z=A._init,_(Z(A._payload),j,q,X,K)}}if(Z)return K=K(A),Z=X===""?"."+L(A,0):X,O(K)?(q="",Z!=null&&(q=Z.replace(G,"$&/")+"/"),_(K,j,q,"",function(ie){return ie})):K!=null&&(W(K)&&(K=k(K,q+(K.key==null||A&&A.key===K.key?"":(""+K.key).replace(G,"$&/")+"/")+Z)),j.push(K)),1;Z=0;var oe=X===""?".":X+":";if(O(A))for(var ne=0;ne<A.length;ne++)X=A[ne],J=oe+L(X,ne),Z+=_(X,j,q,J,K);else if(ne=C(A),typeof ne=="function")for(A=ne.call(A),ne=0;!(X=A.next()).done;)X=X.value,J=oe+L(X,ne++),Z+=_(X,j,q,J,K);else if(J==="object"){if(typeof A.then=="function")return _(H(A),j,q,X,K);throw j=String(A),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Z}function B(A,j,q){if(A==null)return A;var X=[],K=0;return _(A,X,"","",function(J){return j.call(q,J,K++)}),X}function I(A){if(A._status===-1){var j=A._result;j=j(),j.then(function(q){(A._status===0||A._status===-1)&&(A._status=1,A._result=q)},function(q){(A._status===0||A._status===-1)&&(A._status=2,A._result=q)}),A._status===-1&&(A._status=0,A._result=j)}if(A._status===1)return A._result.default;throw A._result}var z=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},V={map:B,forEach:function(A,j,q){B(A,function(){j.apply(this,arguments)},q)},count:function(A){var j=0;return B(A,function(){j++}),j},toArray:function(A){return B(A,function(j){return j})||[]},only:function(A){if(!W(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ot.Activity=h,Ot.Children=V,Ot.Component=w,Ot.Fragment=n,Ot.Profiler=i,Ot.PureComponent=x,Ot.StrictMode=r,Ot.Suspense=f,Ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Ot.__COMPILER_RUNTIME={__proto__:null,c:function(A){return T.H.useMemoCache(A)}},Ot.cache=function(A){return function(){return A.apply(null,arguments)}},Ot.cacheSignal=function(){return null},Ot.cloneElement=function(A,j,q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var X=$({},A.props),K=A.key;if(j!=null)for(J in j.key!==void 0&&(K=""+j.key),j)!P.call(j,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&j.ref===void 0||(X[J]=j[J]);var J=arguments.length-2;if(J===1)X.children=q;else if(1<J){for(var Z=Array(J),oe=0;oe<J;oe++)Z[oe]=arguments[oe+2];X.children=Z}return D(A.type,K,X)},Ot.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:s,_context:A},A},Ot.createElement=function(A,j,q){var X,K={},J=null;if(j!=null)for(X in j.key!==void 0&&(J=""+j.key),j)P.call(j,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(K[X]=j[X]);var Z=arguments.length-2;if(Z===1)K.children=q;else if(1<Z){for(var oe=Array(Z),ne=0;ne<Z;ne++)oe[ne]=arguments[ne+2];K.children=oe}if(A&&A.defaultProps)for(X in Z=A.defaultProps,Z)K[X]===void 0&&(K[X]=Z[X]);return D(A,J,K)},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(A){return{$$typeof:d,render:A}},Ot.isValidElement=W,Ot.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:I}},Ot.memo=function(A,j){return{$$typeof:p,type:A,compare:j===void 0?null:j}},Ot.startTransition=function(A){var j=T.T,q={};T.T=q;try{var X=A(),K=T.S;K!==null&&K(q,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(N,z)}catch(J){z(J)}finally{j!==null&&q.types!==null&&(j.types=q.types),T.T=j}},Ot.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Ot.use=function(A){return T.H.use(A)},Ot.useActionState=function(A,j,q){return T.H.useActionState(A,j,q)},Ot.useCallback=function(A,j){return T.H.useCallback(A,j)},Ot.useContext=function(A){return T.H.useContext(A)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(A,j){return T.H.useDeferredValue(A,j)},Ot.useEffect=function(A,j){return T.H.useEffect(A,j)},Ot.useEffectEvent=function(A){return T.H.useEffectEvent(A)},Ot.useId=function(){return T.H.useId()},Ot.useImperativeHandle=function(A,j,q){return T.H.useImperativeHandle(A,j,q)},Ot.useInsertionEffect=function(A,j){return T.H.useInsertionEffect(A,j)},Ot.useLayoutEffect=function(A,j){return T.H.useLayoutEffect(A,j)},Ot.useMemo=function(A,j){return T.H.useMemo(A,j)},Ot.useOptimistic=function(A,j){return T.H.useOptimistic(A,j)},Ot.useReducer=function(A,j,q){return T.H.useReducer(A,j,q)},Ot.useRef=function(A){return T.H.useRef(A)},Ot.useState=function(A){return T.H.useState(A)},Ot.useSyncExternalStore=function(A,j,q){return T.H.useSyncExternalStore(A,j,q)},Ot.useTransition=function(){return T.H.useTransition()},Ot.version="19.2.3",Ot}var cw;function yS(){return cw||(cw=1,ny.exports=IP()),ny.exports}var l=yS();const ae=Ea(l),PP=OP({__proto__:null,default:ae},[l]);var ry={exports:{}},Ic={},oy={exports:{}},ay={};var uw;function zP(){return uw||(uw=1,(function(e){function t(_,B){var I=_.length;_.push(B);e:for(;0<I;){var z=I-1>>>1,V=_[z];if(0<i(V,B))_[z]=B,_[I]=V,I=z;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var B=_[0],I=_.pop();if(I!==B){_[0]=I;e:for(var z=0,V=_.length,A=V>>>1;z<A;){var j=2*(z+1)-1,q=_[j],X=j+1,K=_[X];if(0>i(q,I))X<V&&0>i(K,q)?(_[z]=K,_[X]=I,z=X):(_[z]=q,_[j]=I,z=j);else if(X<V&&0>i(K,I))_[z]=K,_[X]=I,z=X;else break e}}return B}function i(_,B){var I=_.sortIndex-B.sortIndex;return I!==0?I:_.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],p=[],g=1,h=null,y=3,C=!1,b=!1,$=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function R(_){for(var B=n(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=_)r(p),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(p)}}function O(_){if($=!1,R(_),!b)if(n(f)!==null)b=!0,N||(N=!0,U());else{var B=n(p);B!==null&&H(O,B.startTime-_)}}var N=!1,T=-1,P=5,D=-1;function k(){return S?!0:!(e.unstable_now()-D<P)}function W(){if(S=!1,N){var _=e.unstable_now();D=_;var B=!0;try{e:{b=!1,$&&($=!1,M(T),T=-1),C=!0;var I=y;try{t:{for(R(_),h=n(f);h!==null&&!(h.expirationTime>_&&k());){var z=h.callback;if(typeof z=="function"){h.callback=null,y=h.priorityLevel;var V=z(h.expirationTime<=_);if(_=e.unstable_now(),typeof V=="function"){h.callback=V,R(_),B=!0;break t}h===n(f)&&r(f),R(_)}else r(f);h=n(f)}if(h!==null)B=!0;else{var A=n(p);A!==null&&H(O,A.startTime-_),B=!1}}break e}finally{h=null,y=I,C=!1}B=void 0}}finally{B?U():N=!1}}}var U;if(typeof x=="function")U=function(){x(W)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,L=G.port2;G.port1.onmessage=W,U=function(){L.postMessage(null)}}else U=function(){w(W,0)};function H(_,B){T=w(function(){_(e.unstable_now())},B)}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(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(_){switch(y){case 1:case 2:case 3:var B=3;break;default:B=y}var I=y;y=B;try{return _()}finally{y=I}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=y;y=_;try{return B()}finally{y=I}},e.unstable_scheduleCallback=function(_,B,I){var z=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?z+I:z):I=z,_){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=I+V,_={id:g++,callback:B,priorityLevel:_,startTime:I,expirationTime:V,sortIndex:-1},I>z?(_.sortIndex=I,t(p,_),n(f)===null&&_===n(p)&&($?(M(T),T=-1):$=!0,H(O,I-z))):(_.sortIndex=V,t(f,_),b||C||(b=!0,N||(N=!0,U()))),_},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(_){var B=y;return function(){var I=y;y=B;try{return _.apply(this,arguments)}finally{y=I}}}})(ay)),ay}var dw;function AP(){return dw||(dw=1,oy.exports=zP()),oy.exports}var iy={exports:{}},xr={};var fw;function DP(){if(fw)return xr;fw=1;var e=yS();function t(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+p+" 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},i=Symbol.for("react.portal");function s(f,p,g){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:h==null?null:""+h,children:f,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return xr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,xr.createPortal=function(f,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(f,p,null,g)},xr.flushSync=function(f){var p=c.T,g=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=p,r.p=g,r.d.f()}},xr.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(f,p))},xr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},xr.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var g=p.as,h=d(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?r.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:C}):g==="script"&&r.d.X(f,{crossOrigin:h,integrity:y,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},xr.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);r.d.M(f,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(f)},xr.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,h=d(g,p.crossOrigin);r.d.L(f,g,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},xr.preloadModule=function(f,p){if(typeof f=="string")if(p){var g=d(p.as,p.crossOrigin);r.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(f)},xr.requestFormReset=function(f){r.d.r(f)},xr.unstable_batchedUpdates=function(f,p){return f(p)},xr.useFormState=function(f,p,g){return c.H.useFormState(f,p,g)},xr.useFormStatus=function(){return c.H.useHostTransitionStatus()},xr.version="19.2.3",xr}var mw;function Z4(){if(mw)return iy.exports;mw=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(),iy.exports=DP(),iy.exports}var pw;function jP(){if(pw)return Ic;pw=1;var e=AP(),t=yS(),n=Z4();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function c(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function p(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,m=a;;){var v=u.return;if(v===null)break;var E=v.alternate;if(E===null){if(m=v.return,m!==null){u=m;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===u)return f(v),o;if(E===m)return f(v),a;E=E.sibling}throw Error(r(188))}if(u.return!==m.return)u=v,m=E;else{for(var F=!1,ee=v.child;ee;){if(ee===u){F=!0,u=v,m=E;break}if(ee===m){F=!0,m=v,u=E;break}ee=ee.sibling}if(!F){for(ee=E.child;ee;){if(ee===u){F=!0,u=E,m=v;break}if(ee===m){F=!0,m=E,u=v;break}ee=ee.sibling}if(!F)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function g(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=g(o),a!==null)return a;o=o.sibling}return null}var h=Object.assign,y=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),x=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function U(o){return o===null||typeof o!="object"?null:(o=W&&o[W]||o["@@iterator"],typeof o=="function"?o:null)}var G=Symbol.for("react.client.reference");function L(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===G?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case $:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case x:return o.displayName||"Context";case M:return(o._context.displayName||"Context")+".Consumer";case R:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case T:return a=o.displayName||null,a!==null?a:L(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return L(o(a))}catch{}}return null}var H=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},z=[],V=-1;function A(o){return{current:o}}function j(o){0>V||(o.current=z[V],z[V]=null,V--)}function q(o,a){V++,z[V]=o.current,o.current=a}var X=A(null),K=A(null),J=A(null),Z=A(null);function oe(o,a){switch(q(J,a),q(K,o),q(X,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?Tx(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=Tx(a),o=Nx(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}j(X),q(X,o)}function ne(){j(X),j(K),j(J)}function ie(o){o.memoizedState!==null&&q(Z,o);var a=X.current,u=Nx(a,o.type);a!==u&&(q(K,o),q(X,u))}function de(o){K.current===o&&(j(X),j(K)),Z.current===o&&(j(Z),Mc._currentValue=I)}var le,fe;function ge(o){if(le===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);le=a&&a[1]||"",fe=-1<u.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+le+o+fe}var re=!1;function ce(o,a){if(!o||re)return"";re=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(a){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(Te){var xe=Te}Reflect.construct(o,[],ke)}else{try{ke.call()}catch(Te){xe=Te}o.call(ke.prototype)}}else{try{throw Error()}catch(Te){xe=Te}(ke=o())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(Te){if(Te&&xe&&typeof Te.stack=="string")return[Te.stack,xe.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=m.DetermineComponentFrameRoot(),F=E[0],ee=E[1];if(F&&ee){var ue=F.split(`
4
+ `),$e=ee.split(`
5
+ `);for(v=m=0;m<ue.length&&!ue[m].includes("DetermineComponentFrameRoot");)m++;for(;v<$e.length&&!$e[v].includes("DetermineComponentFrameRoot");)v++;if(m===ue.length||v===$e.length)for(m=ue.length-1,v=$e.length-1;1<=m&&0<=v&&ue[m]!==$e[v];)v--;for(;1<=m&&0<=v;m--,v--)if(ue[m]!==$e[v]){if(m!==1||v!==1)do if(m--,v--,0>v||ue[m]!==$e[v]){var je=`
6
+ `+ue[m].replace(" at new "," at ");return o.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",o.displayName)),je}while(1<=m&&0<=v);break}}}finally{re=!1,Error.prepareStackTrace=u}return(u=o?o.displayName||o.name:"")?ge(u):""}function he(o,a){switch(o.tag){case 26:case 27:case 5:return ge(o.type);case 16:return ge("Lazy");case 13:return o.child!==a&&a!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return ce(o.type,!1);case 11:return ce(o.type.render,!1);case 1:return ce(o.type,!0);case 31:return ge("Activity");default:return""}}function pe(o){try{var a="",u=null;do a+=he(o,u),u=o,o=o.return;while(o);return a}catch(m){return`
7
+ Error generating stack: `+m.message+`
8
+ `+m.stack}}var Se=Object.prototype.hasOwnProperty,Ie=e.unstable_scheduleCallback,Me=e.unstable_cancelCallback,we=e.unstable_shouldYield,se=e.unstable_requestPaint,be=e.unstable_now,Ee=e.unstable_getCurrentPriorityLevel,Ne=e.unstable_ImmediatePriority,Fe=e.unstable_UserBlockingPriority,Ge=e.unstable_NormalPriority,et=e.unstable_LowPriority,Oe=e.unstable_IdlePriority,_e=e.log,Ve=e.unstable_setDisableYieldValue,Qe=null,De=null;function ve(o){if(typeof _e=="function"&&Ve(o),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(Qe,o)}catch{}}var Ae=Math.clz32?Math.clz32:Ue,Ze=Math.log,Be=Math.LN2;function Ue(o){return o>>>=0,o===0?32:31-(Ze(o)/Be|0)|0}var Pe=256,Xe=262144,rt=4194304;function ot(o){var a=o&42;if(a!==0)return a;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 lt(o,a,u){var m=o.pendingLanes;if(m===0)return 0;var v=0,E=o.suspendedLanes,F=o.pingedLanes;o=o.warmLanes;var ee=m&134217727;return ee!==0?(m=ee&~E,m!==0?v=ot(m):(F&=ee,F!==0?v=ot(F):u||(u=ee&~o,u!==0&&(v=ot(u))))):(ee=m&~E,ee!==0?v=ot(ee):F!==0?v=ot(F):u||(u=m&~o,u!==0&&(v=ot(u)))),v===0?0:a!==0&&a!==v&&(a&E)===0&&(E=v&-v,u=a&-a,E>=u||E===32&&(u&4194048)!==0)?a:v}function St(o,a){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&a)===0}function Ct(o,a){switch(o){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 qe(){var o=rt;return rt<<=1,(rt&62914560)===0&&(rt=4194304),o}function at(o){for(var a=[],u=0;31>u;u++)a.push(o);return a}function He(o,a){o.pendingLanes|=a,a!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function ze(o,a,u,m,v,E){var F=o.pendingLanes;o.pendingLanes=u,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=u,o.entangledLanes&=u,o.errorRecoveryDisabledLanes&=u,o.shellSuspendCounter=0;var ee=o.entanglements,ue=o.expirationTimes,$e=o.hiddenUpdates;for(u=F&~u;0<u;){var je=31-Ae(u),ke=1<<je;ee[je]=0,ue[je]=-1;var xe=$e[je];if(xe!==null)for($e[je]=null,je=0;je<xe.length;je++){var Te=xe[je];Te!==null&&(Te.lane&=-536870913)}u&=~ke}m!==0&&We(o,m,0),E!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=E&~(F&~a))}function We(o,a,u){o.pendingLanes|=a,o.suspendedLanes&=~a;var m=31-Ae(a);o.entangledLanes|=a,o.entanglements[m]=o.entanglements[m]|1073741824|u&261930}function Re(o,a){var u=o.entangledLanes|=a;for(o=o.entanglements;u;){var m=31-Ae(u),v=1<<m;v&a|o[m]&a&&(o[m]|=a),u&=~v}}function Ye(o,a){var u=a&-a;return u=(u&42)!==0?1:Je(u),(u&(o.suspendedLanes|a))!==0?0:u}function Je(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 it(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function ft(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:Jx(o.type))}function Ft(o,a){var u=B.p;try{return B.p=o,a()}finally{B.p=u}}var Dt=Math.random().toString(36).slice(2),$t="__reactFiber$"+Dt,nn="__reactProps$"+Dt,wt="__reactContainer$"+Dt,Ke="__reactEvents$"+Dt,Et="__reactListeners$"+Dt,mt="__reactHandles$"+Dt,Rt="__reactResources$"+Dt,Ut="__reactMarker$"+Dt;function an(o){delete o[$t],delete o[nn],delete o[Ke],delete o[Et],delete o[mt]}function kt(o){var a=o[$t];if(a)return a;for(var u=o.parentNode;u;){if(a=u[wt]||u[$t]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(o=_x(o);o!==null;){if(u=o[$t])return u;o=_x(o)}return a}o=u,u=o.parentNode}return null}function wn(o){if(o=o[$t]||o[wt]){var a=o.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return o}return null}function En(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o.stateNode;throw Error(r(33))}function Cr(o){var a=o[Rt];return a||(a=o[Rt]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function fn(o){o[Ut]=!0}var mr=new Set,zn={};function $r(o,a){pr(o,a),pr(o+"Capture",a)}function pr(o,a){for(zn[o]=a,o=0;o<a.length;o++)mr.add(a[o])}var gr=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]*$"),Pr={},Yr={};function yt(o){return Se.call(Yr,o)?!0:Se.call(Pr,o)?!1:gr.test(o)?Yr[o]=!0:(Pr[o]=!0,!1)}function Sn(o,a,u){if(yt(a))if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":o.removeAttribute(a);return;case"boolean":var m=a.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(a);return}}o.setAttribute(a,""+u)}}function Mn(o,a,u){if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttribute(a,""+u)}}function Fn(o,a,u,m){if(m===null)o.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttributeNS(a,u,""+m)}}function In(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function wo(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Zo(o,a,u){var m=Object.getOwnPropertyDescriptor(o.constructor.prototype,a);if(!o.hasOwnProperty(a)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var v=m.get,E=m.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return v.call(this)},set:function(F){u=""+F,E.call(this,F)}}),Object.defineProperty(o,a,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(F){u=""+F},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function Eo(o){if(!o._valueTracker){var a=wo(o)?"checked":"value";o._valueTracker=Zo(o,a,""+o[a])}}function _o(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var u=a.getValue(),m="";return o&&(m=wo(o)?o.checked?"true":"false":o.value),o=m,o!==u?(a.setValue(o),!0):!1}function tt(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 Jt=/[\n"\\]/g;function Hn(o){return o.replace(Jt,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Jo(o,a,u,m,v,E,F,ee){o.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?o.type=F:o.removeAttribute("type"),a!=null?F==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+In(a)):o.value!==""+In(a)&&(o.value=""+In(a)):F!=="submit"&&F!=="reset"||o.removeAttribute("value"),a!=null?Ho(o,F,In(a)):u!=null?Ho(o,F,In(u)):m!=null&&o.removeAttribute("value"),v==null&&E!=null&&(o.defaultChecked=!!E),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?o.name=""+In(ee):o.removeAttribute("name")}function ea(o,a,u,m,v,E,F,ee){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(o.type=E),a!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){Eo(o);return}u=u!=null?""+In(u):"",a=a!=null?""+In(a):u,ee||a===o.value||(o.value=a),o.defaultValue=a}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=ee?o.checked:!!m,o.defaultChecked=!!m,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(o.name=F),Eo(o)}function Ho(o,a,u){a==="number"&&tt(o.ownerDocument)===o||o.defaultValue===""+u||(o.defaultValue=""+u)}function io(o,a,u,m){if(o=o.options,a){a={};for(var v=0;v<u.length;v++)a["$"+u[v]]=!0;for(u=0;u<o.length;u++)v=a.hasOwnProperty("$"+o[u].value),o[u].selected!==v&&(o[u].selected=v),v&&m&&(o[u].defaultSelected=!0)}else{for(u=""+In(u),a=null,v=0;v<o.length;v++){if(o[v].value===u){o[v].selected=!0,m&&(o[v].defaultSelected=!0);return}a!==null||o[v].disabled||(a=o[v])}a!==null&&(a.selected=!0)}}function pl(o,a,u){if(a!=null&&(a=""+In(a),a!==o.value&&(o.value=a),u==null)){o.defaultValue!==a&&(o.defaultValue=a);return}o.defaultValue=u!=null?""+In(u):""}function gl(o,a,u,m){if(a==null){if(m!=null){if(u!=null)throw Error(r(92));if(H(m)){if(1<m.length)throw Error(r(93));m=m[0]}u=m}u==null&&(u=""),a=u}u=In(a),o.defaultValue=u,m=o.textContent,m===u&&m!==""&&m!==null&&(o.value=m),Eo(o)}function Bo(o,a){if(a){var u=o.firstChild;if(u&&u===o.lastChild&&u.nodeType===3){u.nodeValue=a;return}}o.textContent=a}var Mt=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 ht(o,a,u){var m=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?m?o.setProperty(a,""):a==="float"?o.cssFloat="":o[a]="":m?o.setProperty(a,u):typeof u!="number"||u===0||Mt.has(a)?a==="float"?o.cssFloat=u:o[a]=(""+u).trim():o[a]=u+"px"}function Qn(o,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(o=o.style,u!=null){for(var m in u)!u.hasOwnProperty(m)||a!=null&&a.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var v in a)m=a[v],a.hasOwnProperty(v)&&u[v]!==m&&ht(o,v,m)}else for(var E in a)a.hasOwnProperty(E)&&ht(o,E,a[E])}function zr(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 hl=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"]]),eg=/^[\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 yl(o){return eg.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Mo(){}var Vt=null;function bt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var xt=null,cn=null;function kn(o){var a=wn(o);if(a&&(o=a.stateNode)){var u=o[nn]||null;e:switch(o=a.stateNode,a.type){case"input":if(Jo(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=o;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Hn(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var m=u[a];if(m!==o&&m.form===o.form){var v=m[nn]||null;if(!v)throw Error(r(90));Jo(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<u.length;a++)m=u[a],m.form===o.form&&_o(m)}break e;case"textarea":pl(o,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&io(o,!!u.multiple,a,!1)}}}var Fs=!1;function T1(o,a,u){if(Fs)return o(a,u);Fs=!0;try{var m=o(a);return m}finally{if(Fs=!1,(xt!==null||cn!==null)&&(ff(),xt&&(a=xt,o=cn,cn=xt=null,kn(a),o)))for(a=0;a<o.length;a++)kn(o[a])}}function ks(o,a){var u=o.stateNode;if(u===null)return null;var m=u[nn]||null;if(m===null)return null;u=m[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tg=!1;if(ta)try{var Ws={};Object.defineProperty(Ws,"passive",{get:function(){tg=!0}}),window.addEventListener("test",Ws,Ws),window.removeEventListener("test",Ws,Ws)}catch{tg=!1}var Oa=null,ng=null,Ed=null;function N1(){if(Ed)return Ed;var o,a=ng,u=a.length,m,v="value"in Oa?Oa.value:Oa.textContent,E=v.length;for(o=0;o<u&&a[o]===v[o];o++);var F=u-o;for(m=1;m<=F&&a[u-m]===v[E-m];m++);return Ed=v.slice(o,1<m?1-m:void 0)}function Md(o){var a=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function Rd(){return!0}function I1(){return!1}function Ar(o){function a(u,m,v,E,F){this._reactName=u,this._targetInst=v,this.type=m,this.nativeEvent=E,this.target=F,this.currentTarget=null;for(var ee in o)o.hasOwnProperty(ee)&&(u=o[ee],this[ee]=u?u(E):E[ee]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Rd:I1,this.isPropagationStopped=I1,this}return h(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Rd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Rd)},persist:function(){},isPersistent:Rd}),a}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Od=Ar(gi),qs=h({},gi,{view:0,detail:0}),MN=Ar(qs),rg,og,Ys,Td=h({},qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ig,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!==Ys&&(Ys&&o.type==="mousemove"?(rg=o.screenX-Ys.screenX,og=o.screenY-Ys.screenY):og=rg=0,Ys=o),rg)},movementY:function(o){return"movementY"in o?o.movementY:og}}),P1=Ar(Td),RN=h({},Td,{dataTransfer:0}),ON=Ar(RN),TN=h({},qs,{relatedTarget:0}),ag=Ar(TN),NN=h({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),IN=Ar(NN),PN=h({},gi,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),zN=Ar(PN),AN=h({},gi,{data:0}),z1=Ar(AN),DN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jN={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"},_N={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function HN(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=_N[o])?!!a[o]:!1}function ig(){return HN}var BN=h({},qs,{key:function(o){if(o.key){var a=DN[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=Md(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?jN[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ig,charCode:function(o){return o.type==="keypress"?Md(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Md(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),LN=Ar(BN),VN=h({},Td,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),A1=Ar(VN),FN=h({},qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ig}),kN=Ar(FN),WN=h({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),qN=Ar(WN),YN=h({},Td,{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}),UN=Ar(YN),GN=h({},gi,{newState:0,oldState:0}),XN=Ar(GN),KN=[9,13,27,32],lg=ta&&"CompositionEvent"in window,Us=null;ta&&"documentMode"in document&&(Us=document.documentMode);var QN=ta&&"TextEvent"in window&&!Us,D1=ta&&(!lg||Us&&8<Us&&11>=Us),j1=" ",_1=!1;function H1(o,a){switch(o){case"keyup":return KN.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var bl=!1;function ZN(o,a){switch(o){case"compositionend":return B1(a);case"keypress":return a.which!==32?null:(_1=!0,j1);case"textInput":return o=a.data,o===j1&&_1?null:o;default:return null}}function JN(o,a){if(bl)return o==="compositionend"||!lg&&H1(o,a)?(o=N1(),Ed=ng=Oa=null,bl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return D1&&a.locale!=="ko"?null:a.data;default:return null}}var eI={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 L1(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!eI[o.type]:a==="textarea"}function V1(o,a,u,m){xt?cn?cn.push(m):cn=[m]:xt=m,a=vf(a,"onChange"),0<a.length&&(u=new Od("onChange","change",null,u,m),o.push({event:u,listeners:a}))}var Gs=null,Xs=null;function tI(o){xx(o,0)}function Nd(o){var a=En(o);if(_o(a))return o}function F1(o,a){if(o==="change")return a}var k1=!1;if(ta){var sg;if(ta){var cg="oninput"in document;if(!cg){var W1=document.createElement("div");W1.setAttribute("oninput","return;"),cg=typeof W1.oninput=="function"}sg=cg}else sg=!1;k1=sg&&(!document.documentMode||9<document.documentMode)}function q1(){Gs&&(Gs.detachEvent("onpropertychange",Y1),Xs=Gs=null)}function Y1(o){if(o.propertyName==="value"&&Nd(Xs)){var a=[];V1(a,Xs,o,bt(o)),T1(tI,a)}}function nI(o,a,u){o==="focusin"?(q1(),Gs=a,Xs=u,Gs.attachEvent("onpropertychange",Y1)):o==="focusout"&&q1()}function rI(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Nd(Xs)}function oI(o,a){if(o==="click")return Nd(a)}function aI(o,a){if(o==="input"||o==="change")return Nd(a)}function iI(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var Ur=typeof Object.is=="function"?Object.is:iI;function Ks(o,a){if(Ur(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var u=Object.keys(o),m=Object.keys(a);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var v=u[m];if(!Se.call(a,v)||!Ur(o[v],a[v]))return!1}return!0}function U1(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function G1(o,a){var u=U1(o);o=0;for(var m;u;){if(u.nodeType===3){if(m=o+u.textContent.length,o<=a&&m>=a)return{node:u,offset:a-o};o=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=U1(u)}}function X1(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?X1(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function K1(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var a=tt(o.document);a instanceof o.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)o=a.contentWindow;else break;a=tt(o.document)}return a}function ug(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}var lI=ta&&"documentMode"in document&&11>=document.documentMode,vl=null,dg=null,Qs=null,fg=!1;function Q1(o,a,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;fg||vl==null||vl!==tt(m)||(m=vl,"selectionStart"in m&&ug(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Qs&&Ks(Qs,m)||(Qs=m,m=vf(dg,"onSelect"),0<m.length&&(a=new Od("onSelect","select",null,a,u),o.push({event:a,listeners:m}),a.target=vl)))}function hi(o,a){var u={};return u[o.toLowerCase()]=a.toLowerCase(),u["Webkit"+o]="webkit"+a,u["Moz"+o]="moz"+a,u}var Sl={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionrun:hi("Transition","TransitionRun"),transitionstart:hi("Transition","TransitionStart"),transitioncancel:hi("Transition","TransitionCancel"),transitionend:hi("Transition","TransitionEnd")},mg={},Z1={};ta&&(Z1=document.createElement("div").style,"AnimationEvent"in window||(delete Sl.animationend.animation,delete Sl.animationiteration.animation,delete Sl.animationstart.animation),"TransitionEvent"in window||delete Sl.transitionend.transition);function yi(o){if(mg[o])return mg[o];if(!Sl[o])return o;var a=Sl[o],u;for(u in a)if(a.hasOwnProperty(u)&&u in Z1)return mg[o]=a[u];return o}var J1=yi("animationend"),eC=yi("animationiteration"),tC=yi("animationstart"),sI=yi("transitionrun"),cI=yi("transitionstart"),uI=yi("transitioncancel"),nC=yi("transitionend"),rC=new Map,pg="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(" ");pg.push("scrollEnd");function Ro(o,a){rC.set(o,a),$r(a,[o])}var Id=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},lo=[],Cl=0,gg=0;function Pd(){for(var o=Cl,a=gg=Cl=0;a<o;){var u=lo[a];lo[a++]=null;var m=lo[a];lo[a++]=null;var v=lo[a];lo[a++]=null;var E=lo[a];if(lo[a++]=null,m!==null&&v!==null){var F=m.pending;F===null?v.next=v:(v.next=F.next,F.next=v),m.pending=v}E!==0&&oC(u,v,E)}}function zd(o,a,u,m){lo[Cl++]=o,lo[Cl++]=a,lo[Cl++]=u,lo[Cl++]=m,gg|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function hg(o,a,u,m){return zd(o,a,u,m),Ad(o)}function bi(o,a){return zd(o,null,null,a),Ad(o)}function oC(o,a,u){o.lanes|=u;var m=o.alternate;m!==null&&(m.lanes|=u);for(var v=!1,E=o.return;E!==null;)E.childLanes|=u,m=E.alternate,m!==null&&(m.childLanes|=u),E.tag===22&&(o=E.stateNode,o===null||o._visibility&1||(v=!0)),o=E,E=E.return;return o.tag===3?(E=o.stateNode,v&&a!==null&&(v=31-Ae(u),o=E.hiddenUpdates,m=o[v],m===null?o[v]=[a]:m.push(a),a.lane=u|536870912),E):null}function Ad(o){if(50<vc)throw vc=0,Eh=null,Error(r(185));for(var a=o.return;a!==null;)o=a,a=o.return;return o.tag===3?o.stateNode:null}var $l={};function dI(o,a,u,m){this.tag=o,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(o,a,u,m){return new dI(o,a,u,m)}function yg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function na(o,a){var u=o.alternate;return u===null?(u=Gr(o.tag,a,o.key,o.mode),u.elementType=o.elementType,u.type=o.type,u.stateNode=o.stateNode,u.alternate=o,o.alternate=u):(u.pendingProps=a,u.type=o.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=o.flags&65011712,u.childLanes=o.childLanes,u.lanes=o.lanes,u.child=o.child,u.memoizedProps=o.memoizedProps,u.memoizedState=o.memoizedState,u.updateQueue=o.updateQueue,a=o.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=o.sibling,u.index=o.index,u.ref=o.ref,u.refCleanup=o.refCleanup,u}function aC(o,a){o.flags&=65011714;var u=o.alternate;return u===null?(o.childLanes=0,o.lanes=a,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,a=u.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),o}function Dd(o,a,u,m,v,E){var F=0;if(m=o,typeof o=="function")yg(o)&&(F=1);else if(typeof o=="string")F=hP(o,u,X.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case D:return o=Gr(31,u,a,v),o.elementType=D,o.lanes=E,o;case $:return vi(u.children,v,E,a);case S:F=8,v|=24;break;case w:return o=Gr(12,u,a,v|2),o.elementType=w,o.lanes=E,o;case O:return o=Gr(13,u,a,v),o.elementType=O,o.lanes=E,o;case N:return o=Gr(19,u,a,v),o.elementType=N,o.lanes=E,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case x:F=10;break e;case M:F=9;break e;case R:F=11;break e;case T:F=14;break e;case P:F=16,m=null;break e}F=29,u=Error(r(130,o===null?"null":typeof o,"")),m=null}return a=Gr(F,u,a,v),a.elementType=o,a.type=m,a.lanes=E,a}function vi(o,a,u,m){return o=Gr(7,o,m,a),o.lanes=u,o}function bg(o,a,u){return o=Gr(6,o,null,a),o.lanes=u,o}function iC(o){var a=Gr(18,null,null,0);return a.stateNode=o,a}function vg(o,a,u){return a=Gr(4,o.children!==null?o.children:[],o.key,a),a.lanes=u,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}var lC=new WeakMap;function so(o,a){if(typeof o=="object"&&o!==null){var u=lC.get(o);return u!==void 0?u:(a={value:o,source:a,stack:pe(a)},lC.set(o,a),a)}return{value:o,source:a,stack:pe(a)}}var xl=[],wl=0,jd=null,Zs=0,co=[],uo=0,Ta=null,Lo=1,Vo="";function ra(o,a){xl[wl++]=Zs,xl[wl++]=jd,jd=o,Zs=a}function sC(o,a,u){co[uo++]=Lo,co[uo++]=Vo,co[uo++]=Ta,Ta=o;var m=Lo;o=Vo;var v=32-Ae(m)-1;m&=~(1<<v),u+=1;var E=32-Ae(a)+v;if(30<E){var F=v-v%5;E=(m&(1<<F)-1).toString(32),m>>=F,v-=F,Lo=1<<32-Ae(a)+v|u<<v|m,Vo=E+o}else Lo=1<<E|u<<v|m,Vo=o}function Sg(o){o.return!==null&&(ra(o,1),sC(o,1,0))}function Cg(o){for(;o===jd;)jd=xl[--wl],xl[wl]=null,Zs=xl[--wl],xl[wl]=null;for(;o===Ta;)Ta=co[--uo],co[uo]=null,Vo=co[--uo],co[uo]=null,Lo=co[--uo],co[uo]=null}function cC(o,a){co[uo++]=Lo,co[uo++]=Vo,co[uo++]=Ta,Lo=a.id,Vo=a.overflow,Ta=o}var hr=null,Rn=null,Qt=!1,Na=null,fo=!1,$g=Error(r(519));function Ia(o){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Js(so(a,o)),$g}function uC(o){var a=o.stateNode,u=o.type,m=o.memoizedProps;switch(a[$t]=o,a[nn]=m,u){case"dialog":qt("cancel",a),qt("close",a);break;case"iframe":case"object":case"embed":qt("load",a);break;case"video":case"audio":for(u=0;u<Cc.length;u++)qt(Cc[u],a);break;case"source":qt("error",a);break;case"img":case"image":case"link":qt("error",a),qt("load",a);break;case"details":qt("toggle",a);break;case"input":qt("invalid",a),ea(a,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":qt("invalid",a);break;case"textarea":qt("invalid",a),gl(a,m.value,m.defaultValue,m.children)}u=m.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||m.suppressHydrationWarning===!0||Rx(a.textContent,u)?(m.popover!=null&&(qt("beforetoggle",a),qt("toggle",a)),m.onScroll!=null&&qt("scroll",a),m.onScrollEnd!=null&&qt("scrollend",a),m.onClick!=null&&(a.onclick=Mo),a=!0):a=!1,a||Ia(o,!0)}function dC(o){for(hr=o.return;hr;)switch(hr.tag){case 5:case 31:case 13:fo=!1;return;case 27:case 3:fo=!0;return;default:hr=hr.return}}function El(o){if(o!==hr)return!1;if(!Qt)return dC(o),Qt=!0,!1;var a=o.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=o.type,u=!(u!=="form"&&u!=="button")||Lh(o.type,o.memoizedProps)),u=!u),u&&Rn&&Ia(o),dC(o),a===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=jx(o)}else if(a===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=jx(o)}else a===27?(a=Rn,qa(o.type)?(o=qh,qh=null,Rn=o):Rn=a):Rn=hr?po(o.stateNode.nextSibling):null;return!0}function Si(){Rn=hr=null,Qt=!1}function xg(){var o=Na;return o!==null&&(Hr===null?Hr=o:Hr.push.apply(Hr,o),Na=null),o}function Js(o){Na===null?Na=[o]:Na.push(o)}var wg=A(null),Ci=null,oa=null;function Pa(o,a,u){q(wg,a._currentValue),a._currentValue=u}function aa(o){o._currentValue=wg.current,j(wg)}function Eg(o,a,u){for(;o!==null;){var m=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),o===u)break;o=o.return}}function Mg(o,a,u,m){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var E=v.dependencies;if(E!==null){var F=v.child;E=E.firstContext;e:for(;E!==null;){var ee=E;E=v;for(var ue=0;ue<a.length;ue++)if(ee.context===a[ue]){E.lanes|=u,ee=E.alternate,ee!==null&&(ee.lanes|=u),Eg(E.return,u,o),m||(F=null);break e}E=ee.next}}else if(v.tag===18){if(F=v.return,F===null)throw Error(r(341));F.lanes|=u,E=F.alternate,E!==null&&(E.lanes|=u),Eg(F,u,o),F=null}else F=v.child;if(F!==null)F.return=v;else for(F=v;F!==null;){if(F===o){F=null;break}if(v=F.sibling,v!==null){v.return=F.return,F=v;break}F=F.return}v=F}}function Ml(o,a,u,m){o=null;for(var v=a,E=!1;v!==null;){if(!E){if((v.flags&524288)!==0)E=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var F=v.alternate;if(F===null)throw Error(r(387));if(F=F.memoizedProps,F!==null){var ee=v.type;Ur(v.pendingProps.value,F.value)||(o!==null?o.push(ee):o=[ee])}}else if(v===Z.current){if(F=v.alternate,F===null)throw Error(r(387));F.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Mc):o=[Mc])}v=v.return}o!==null&&Mg(a,o,u,m),a.flags|=262144}function _d(o){for(o=o.firstContext;o!==null;){if(!Ur(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function $i(o){Ci=o,oa=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function yr(o){return fC(Ci,o)}function Hd(o,a){return Ci===null&&$i(o),fC(o,a)}function fC(o,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},oa===null){if(o===null)throw Error(r(308));oa=a,o.dependencies={lanes:0,firstContext:a},o.flags|=524288}else oa=oa.next=a;return u}var fI=typeof AbortController<"u"?AbortController:function(){var o=[],a=this.signal={aborted:!1,addEventListener:function(u,m){o.push(m)}};this.abort=function(){a.aborted=!0,o.forEach(function(u){return u()})}},mI=e.unstable_scheduleCallback,pI=e.unstable_NormalPriority,Wn={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rg(){return{controller:new fI,data:new Map,refCount:0}}function ec(o){o.refCount--,o.refCount===0&&mI(pI,function(){o.controller.abort()})}var tc=null,Og=0,Rl=0,Ol=null;function gI(o,a){if(tc===null){var u=tc=[];Og=0,Rl=Ih(),Ol={status:"pending",value:void 0,then:function(m){u.push(m)}}}return Og++,a.then(mC,mC),a}function mC(){if(--Og===0&&tc!==null){Ol!==null&&(Ol.status="fulfilled");var o=tc;tc=null,Rl=0,Ol=null;for(var a=0;a<o.length;a++)(0,o[a])()}}function hI(o,a){var u=[],m={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return o.then(function(){m.status="fulfilled",m.value=a;for(var v=0;v<u.length;v++)(0,u[v])(a)},function(v){for(m.status="rejected",m.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),m}var pC=_.S;_.S=function(o,a){Q$=be(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&gI(o,a),pC!==null&&pC(o,a)};var xi=A(null);function Tg(){var o=xi.current;return o!==null?o:Cn.pooledCache}function Bd(o,a){a===null?q(xi,xi.current):q(xi,a.pool)}function gC(){var o=Tg();return o===null?null:{parent:Wn._currentValue,pool:o}}var Tl=Error(r(460)),Ng=Error(r(474)),Ld=Error(r(542)),Vd={then:function(){}};function hC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function yC(o,a,u){switch(u=o[u],u===void 0?o.push(a):u!==a&&(a.then(Mo,Mo),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,vC(o),o;default:if(typeof a.status=="string")a.then(Mo,Mo);else{if(o=Cn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=a,o.status="pending",o.then(function(m){if(a.status==="pending"){var v=a;v.status="fulfilled",v.value=m}},function(m){if(a.status==="pending"){var v=a;v.status="rejected",v.reason=m}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,vC(o),o}throw Ei=a,Tl}}function wi(o){try{var a=o._init;return a(o._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ei=u,Tl):u}}var Ei=null;function bC(){if(Ei===null)throw Error(r(459));var o=Ei;return Ei=null,o}function vC(o){if(o===Tl||o===Ld)throw Error(r(483))}var Nl=null,nc=0;function Fd(o){var a=nc;return nc+=1,Nl===null&&(Nl=[]),yC(Nl,o,a)}function rc(o,a){a=a.props.ref,o.ref=a!==void 0?a:null}function kd(o,a){throw a.$$typeof===y?Error(r(525)):(o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)))}function SC(o){function a(ye,me){if(o){var Ce=ye.deletions;Ce===null?(ye.deletions=[me],ye.flags|=16):Ce.push(me)}}function u(ye,me){if(!o)return null;for(;me!==null;)a(ye,me),me=me.sibling;return null}function m(ye){for(var me=new Map;ye!==null;)ye.key!==null?me.set(ye.key,ye):me.set(ye.index,ye),ye=ye.sibling;return me}function v(ye,me){return ye=na(ye,me),ye.index=0,ye.sibling=null,ye}function E(ye,me,Ce){return ye.index=Ce,o?(Ce=ye.alternate,Ce!==null?(Ce=Ce.index,Ce<me?(ye.flags|=67108866,me):Ce):(ye.flags|=67108866,me)):(ye.flags|=1048576,me)}function F(ye){return o&&ye.alternate===null&&(ye.flags|=67108866),ye}function ee(ye,me,Ce,Le){return me===null||me.tag!==6?(me=bg(Ce,ye.mode,Le),me.return=ye,me):(me=v(me,Ce),me.return=ye,me)}function ue(ye,me,Ce,Le){var pt=Ce.type;return pt===$?je(ye,me,Ce.props.children,Le,Ce.key):me!==null&&(me.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===P&&wi(pt)===me.type)?(me=v(me,Ce.props),rc(me,Ce),me.return=ye,me):(me=Dd(Ce.type,Ce.key,Ce.props,null,ye.mode,Le),rc(me,Ce),me.return=ye,me)}function $e(ye,me,Ce,Le){return me===null||me.tag!==4||me.stateNode.containerInfo!==Ce.containerInfo||me.stateNode.implementation!==Ce.implementation?(me=vg(Ce,ye.mode,Le),me.return=ye,me):(me=v(me,Ce.children||[]),me.return=ye,me)}function je(ye,me,Ce,Le,pt){return me===null||me.tag!==7?(me=vi(Ce,ye.mode,Le,pt),me.return=ye,me):(me=v(me,Ce),me.return=ye,me)}function ke(ye,me,Ce){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=bg(""+me,ye.mode,Ce),me.return=ye,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case C:return Ce=Dd(me.type,me.key,me.props,null,ye.mode,Ce),rc(Ce,me),Ce.return=ye,Ce;case b:return me=vg(me,ye.mode,Ce),me.return=ye,me;case P:return me=wi(me),ke(ye,me,Ce)}if(H(me)||U(me))return me=vi(me,ye.mode,Ce,null),me.return=ye,me;if(typeof me.then=="function")return ke(ye,Fd(me),Ce);if(me.$$typeof===x)return ke(ye,Hd(ye,me),Ce);kd(ye,me)}return null}function xe(ye,me,Ce,Le){var pt=me!==null?me.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return pt!==null?null:ee(ye,me,""+Ce,Le);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case C:return Ce.key===pt?ue(ye,me,Ce,Le):null;case b:return Ce.key===pt?$e(ye,me,Ce,Le):null;case P:return Ce=wi(Ce),xe(ye,me,Ce,Le)}if(H(Ce)||U(Ce))return pt!==null?null:je(ye,me,Ce,Le,null);if(typeof Ce.then=="function")return xe(ye,me,Fd(Ce),Le);if(Ce.$$typeof===x)return xe(ye,me,Hd(ye,Ce),Le);kd(ye,Ce)}return null}function Te(ye,me,Ce,Le,pt){if(typeof Le=="string"&&Le!==""||typeof Le=="number"||typeof Le=="bigint")return ye=ye.get(Ce)||null,ee(me,ye,""+Le,pt);if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case C:return ye=ye.get(Le.key===null?Ce:Le.key)||null,ue(me,ye,Le,pt);case b:return ye=ye.get(Le.key===null?Ce:Le.key)||null,$e(me,ye,Le,pt);case P:return Le=wi(Le),Te(ye,me,Ce,Le,pt)}if(H(Le)||U(Le))return ye=ye.get(Ce)||null,je(me,ye,Le,pt,null);if(typeof Le.then=="function")return Te(ye,me,Ce,Fd(Le),pt);if(Le.$$typeof===x)return Te(ye,me,Ce,Hd(me,Le),pt);kd(me,Le)}return null}function st(ye,me,Ce,Le){for(var pt=null,rn=null,ct=me,jt=me=0,Xt=null;ct!==null&&jt<Ce.length;jt++){ct.index>jt?(Xt=ct,ct=null):Xt=ct.sibling;var on=xe(ye,ct,Ce[jt],Le);if(on===null){ct===null&&(ct=Xt);break}o&&ct&&on.alternate===null&&a(ye,ct),me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on,ct=Xt}if(jt===Ce.length)return u(ye,ct),Qt&&ra(ye,jt),pt;if(ct===null){for(;jt<Ce.length;jt++)ct=ke(ye,Ce[jt],Le),ct!==null&&(me=E(ct,me,jt),rn===null?pt=ct:rn.sibling=ct,rn=ct);return Qt&&ra(ye,jt),pt}for(ct=m(ct);jt<Ce.length;jt++)Xt=Te(ct,ye,jt,Ce[jt],Le),Xt!==null&&(o&&Xt.alternate!==null&&ct.delete(Xt.key===null?jt:Xt.key),me=E(Xt,me,jt),rn===null?pt=Xt:rn.sibling=Xt,rn=Xt);return o&&ct.forEach(function(Ka){return a(ye,Ka)}),Qt&&ra(ye,jt),pt}function vt(ye,me,Ce,Le){if(Ce==null)throw Error(r(151));for(var pt=null,rn=null,ct=me,jt=me=0,Xt=null,on=Ce.next();ct!==null&&!on.done;jt++,on=Ce.next()){ct.index>jt?(Xt=ct,ct=null):Xt=ct.sibling;var Ka=xe(ye,ct,on.value,Le);if(Ka===null){ct===null&&(ct=Xt);break}o&&ct&&Ka.alternate===null&&a(ye,ct),me=E(Ka,me,jt),rn===null?pt=Ka:rn.sibling=Ka,rn=Ka,ct=Xt}if(on.done)return u(ye,ct),Qt&&ra(ye,jt),pt;if(ct===null){for(;!on.done;jt++,on=Ce.next())on=ke(ye,on.value,Le),on!==null&&(me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on);return Qt&&ra(ye,jt),pt}for(ct=m(ct);!on.done;jt++,on=Ce.next())on=Te(ct,ye,jt,on.value,Le),on!==null&&(o&&on.alternate!==null&&ct.delete(on.key===null?jt:on.key),me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on);return o&&ct.forEach(function(RP){return a(ye,RP)}),Qt&&ra(ye,jt),pt}function bn(ye,me,Ce,Le){if(typeof Ce=="object"&&Ce!==null&&Ce.type===$&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case C:e:{for(var pt=Ce.key;me!==null;){if(me.key===pt){if(pt=Ce.type,pt===$){if(me.tag===7){u(ye,me.sibling),Le=v(me,Ce.props.children),Le.return=ye,ye=Le;break e}}else if(me.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===P&&wi(pt)===me.type){u(ye,me.sibling),Le=v(me,Ce.props),rc(Le,Ce),Le.return=ye,ye=Le;break e}u(ye,me);break}else a(ye,me);me=me.sibling}Ce.type===$?(Le=vi(Ce.props.children,ye.mode,Le,Ce.key),Le.return=ye,ye=Le):(Le=Dd(Ce.type,Ce.key,Ce.props,null,ye.mode,Le),rc(Le,Ce),Le.return=ye,ye=Le)}return F(ye);case b:e:{for(pt=Ce.key;me!==null;){if(me.key===pt)if(me.tag===4&&me.stateNode.containerInfo===Ce.containerInfo&&me.stateNode.implementation===Ce.implementation){u(ye,me.sibling),Le=v(me,Ce.children||[]),Le.return=ye,ye=Le;break e}else{u(ye,me);break}else a(ye,me);me=me.sibling}Le=vg(Ce,ye.mode,Le),Le.return=ye,ye=Le}return F(ye);case P:return Ce=wi(Ce),bn(ye,me,Ce,Le)}if(H(Ce))return st(ye,me,Ce,Le);if(U(Ce)){if(pt=U(Ce),typeof pt!="function")throw Error(r(150));return Ce=pt.call(Ce),vt(ye,me,Ce,Le)}if(typeof Ce.then=="function")return bn(ye,me,Fd(Ce),Le);if(Ce.$$typeof===x)return bn(ye,me,Hd(ye,Ce),Le);kd(ye,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,me!==null&&me.tag===6?(u(ye,me.sibling),Le=v(me,Ce),Le.return=ye,ye=Le):(u(ye,me),Le=bg(Ce,ye.mode,Le),Le.return=ye,ye=Le),F(ye)):u(ye,me)}return function(ye,me,Ce,Le){try{nc=0;var pt=bn(ye,me,Ce,Le);return Nl=null,pt}catch(ct){if(ct===Tl||ct===Ld)throw ct;var rn=Gr(29,ct,null,ye.mode);return rn.lanes=Le,rn.return=ye,rn}}}var Mi=SC(!0),CC=SC(!1),za=!1;function Ig(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pg(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Aa(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Da(o,a,u){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(ln&2)!==0){var v=m.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),m.pending=a,a=Ad(o),oC(o,null,u),a}return zd(o,m,a,u),Ad(o)}function oc(o,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var m=a.lanes;m&=o.pendingLanes,u|=m,a.lanes=u,Re(o,u)}}function zg(o,a){var u=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var v=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var F={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?v=E=F:E=E.next=F,u=u.next}while(u!==null);E===null?v=E=a:E=E.next=a}else v=E=a;u={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:m.shared,callbacks:m.callbacks},o.updateQueue=u;return}o=u.lastBaseUpdate,o===null?u.firstBaseUpdate=a:o.next=a,u.lastBaseUpdate=a}var Ag=!1;function ac(){if(Ag){var o=Ol;if(o!==null)throw o}}function ic(o,a,u,m){Ag=!1;var v=o.updateQueue;za=!1;var E=v.firstBaseUpdate,F=v.lastBaseUpdate,ee=v.shared.pending;if(ee!==null){v.shared.pending=null;var ue=ee,$e=ue.next;ue.next=null,F===null?E=$e:F.next=$e,F=ue;var je=o.alternate;je!==null&&(je=je.updateQueue,ee=je.lastBaseUpdate,ee!==F&&(ee===null?je.firstBaseUpdate=$e:ee.next=$e,je.lastBaseUpdate=ue))}if(E!==null){var ke=v.baseState;F=0,je=$e=ue=null,ee=E;do{var xe=ee.lane&-536870913,Te=xe!==ee.lane;if(Te?(Gt&xe)===xe:(m&xe)===xe){xe!==0&&xe===Rl&&(Ag=!0),je!==null&&(je=je.next={lane:0,tag:ee.tag,payload:ee.payload,callback:null,next:null});e:{var st=o,vt=ee;xe=a;var bn=u;switch(vt.tag){case 1:if(st=vt.payload,typeof st=="function"){ke=st.call(bn,ke,xe);break e}ke=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=vt.payload,xe=typeof st=="function"?st.call(bn,ke,xe):st,xe==null)break e;ke=h({},ke,xe);break e;case 2:za=!0}}xe=ee.callback,xe!==null&&(o.flags|=64,Te&&(o.flags|=8192),Te=v.callbacks,Te===null?v.callbacks=[xe]:Te.push(xe))}else Te={lane:xe,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},je===null?($e=je=Te,ue=ke):je=je.next=Te,F|=xe;if(ee=ee.next,ee===null){if(ee=v.shared.pending,ee===null)break;Te=ee,ee=Te.next,Te.next=null,v.lastBaseUpdate=Te,v.shared.pending=null}}while(!0);je===null&&(ue=ke),v.baseState=ue,v.firstBaseUpdate=$e,v.lastBaseUpdate=je,E===null&&(v.shared.lanes=0),La|=F,o.lanes=F,o.memoizedState=ke}}function $C(o,a){if(typeof o!="function")throw Error(r(191,o));o.call(a)}function xC(o,a){var u=o.callbacks;if(u!==null)for(o.callbacks=null,o=0;o<u.length;o++)$C(u[o],a)}var Il=A(null),Wd=A(0);function wC(o,a){o=pa,q(Wd,o),q(Il,a),pa=o|a.baseLanes}function Dg(){q(Wd,pa),q(Il,Il.current)}function jg(){pa=Wd.current,j(Il),j(Wd)}var Xr=A(null),mo=null;function ja(o){var a=o.alternate;q(Bn,Bn.current&1),q(Xr,o),mo===null&&(a===null||Il.current!==null||a.memoizedState!==null)&&(mo=o)}function _g(o){q(Bn,Bn.current),q(Xr,o),mo===null&&(mo=o)}function EC(o){o.tag===22?(q(Bn,Bn.current),q(Xr,o),mo===null&&(mo=o)):_a()}function _a(){q(Bn,Bn.current),q(Xr,Xr.current)}function Kr(o){j(Xr),mo===o&&(mo=null),j(Bn)}var Bn=A(0);function qd(o){for(var a=o;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||kh(u)||Wh(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ia=0,zt=null,hn=null,qn=null,Yd=!1,Pl=!1,Ri=!1,Ud=0,lc=0,zl=null,yI=0;function An(){throw Error(r(321))}function Hg(o,a){if(a===null)return!1;for(var u=0;u<a.length&&u<o.length;u++)if(!Ur(o[u],a[u]))return!1;return!0}function Bg(o,a,u,m,v,E){return ia=E,zt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,_.H=o===null||o.memoizedState===null?s$:eh,Ri=!1,E=u(m,v),Ri=!1,Pl&&(E=RC(a,u,m,v)),MC(o),E}function MC(o){_.H=uc;var a=hn!==null&&hn.next!==null;if(ia=0,qn=hn=zt=null,Yd=!1,lc=0,zl=null,a)throw Error(r(300));o===null||Yn||(o=o.dependencies,o!==null&&_d(o)&&(Yn=!0))}function RC(o,a,u,m){zt=o;var v=0;do{if(Pl&&(zl=null),lc=0,Pl=!1,25<=v)throw Error(r(301));if(v+=1,qn=hn=null,o.updateQueue!=null){var E=o.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}_.H=c$,E=a(u,m)}while(Pl);return E}function bI(){var o=_.H,a=o.useState()[0];return a=typeof a.then=="function"?sc(a):a,o=o.useState()[0],(hn!==null?hn.memoizedState:null)!==o&&(zt.flags|=1024),a}function Lg(){var o=Ud!==0;return Ud=0,o}function Vg(o,a,u){a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~u}function Fg(o){if(Yd){for(o=o.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Yd=!1}ia=0,qn=hn=zt=null,Pl=!1,lc=Ud=0,zl=null}function Tr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?zt.memoizedState=qn=o:qn=qn.next=o,qn}function Ln(){if(hn===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=hn.next;var a=qn===null?zt.memoizedState:qn.next;if(a!==null)qn=a,hn=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));hn=o,o={memoizedState:hn.memoizedState,baseState:hn.baseState,baseQueue:hn.baseQueue,queue:hn.queue,next:null},qn===null?zt.memoizedState=qn=o:qn=qn.next=o}return qn}function Gd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sc(o){var a=lc;return lc+=1,zl===null&&(zl=[]),o=yC(zl,o,a),a=zt,(qn===null?a.memoizedState:qn.next)===null&&(a=a.alternate,_.H=a===null||a.memoizedState===null?s$:eh),o}function Xd(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return sc(o);if(o.$$typeof===x)return yr(o)}throw Error(r(438,String(o)))}function kg(o){var a=null,u=zt.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var m=zt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(a={data:m.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Gd(),zt.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(o),m=0;m<o;m++)u[m]=k;return a.index++,u}function la(o,a){return typeof a=="function"?a(o):a}function Kd(o){var a=Ln();return Wg(a,hn,o)}function Wg(o,a,u){var m=o.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var v=o.baseQueue,E=m.pending;if(E!==null){if(v!==null){var F=v.next;v.next=E.next,E.next=F}a.baseQueue=v=E,m.pending=null}if(E=o.baseState,v===null)o.memoizedState=E;else{a=v.next;var ee=F=null,ue=null,$e=a,je=!1;do{var ke=$e.lane&-536870913;if(ke!==$e.lane?(Gt&ke)===ke:(ia&ke)===ke){var xe=$e.revertLane;if(xe===0)ue!==null&&(ue=ue.next={lane:0,revertLane:0,gesture:null,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null}),ke===Rl&&(je=!0);else if((ia&xe)===xe){$e=$e.next,xe===Rl&&(je=!0);continue}else ke={lane:0,revertLane:$e.revertLane,gesture:null,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null},ue===null?(ee=ue=ke,F=E):ue=ue.next=ke,zt.lanes|=xe,La|=xe;ke=$e.action,Ri&&u(E,ke),E=$e.hasEagerState?$e.eagerState:u(E,ke)}else xe={lane:ke,revertLane:$e.revertLane,gesture:$e.gesture,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null},ue===null?(ee=ue=xe,F=E):ue=ue.next=xe,zt.lanes|=ke,La|=ke;$e=$e.next}while($e!==null&&$e!==a);if(ue===null?F=E:ue.next=ee,!Ur(E,o.memoizedState)&&(Yn=!0,je&&(u=Ol,u!==null)))throw u;o.memoizedState=E,o.baseState=F,o.baseQueue=ue,m.lastRenderedState=E}return v===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function qg(o){var a=Ln(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var m=u.dispatch,v=u.pending,E=a.memoizedState;if(v!==null){u.pending=null;var F=v=v.next;do E=o(E,F.action),F=F.next;while(F!==v);Ur(E,a.memoizedState)||(Yn=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),u.lastRenderedState=E}return[E,m]}function OC(o,a,u){var m=zt,v=Ln(),E=Qt;if(E){if(u===void 0)throw Error(r(407));u=u()}else u=a();var F=!Ur((hn||v).memoizedState,u);if(F&&(v.memoizedState=u,Yn=!0),v=v.queue,Gg(IC.bind(null,m,v,o),[o]),v.getSnapshot!==a||F||qn!==null&&qn.memoizedState.tag&1){if(m.flags|=2048,Al(9,{destroy:void 0},NC.bind(null,m,v,u,a),null),Cn===null)throw Error(r(349));E||(ia&127)!==0||TC(m,a,u)}return u}function TC(o,a,u){o.flags|=16384,o={getSnapshot:a,value:u},a=zt.updateQueue,a===null?(a=Gd(),zt.updateQueue=a,a.stores=[o]):(u=a.stores,u===null?a.stores=[o]:u.push(o))}function NC(o,a,u,m){a.value=u,a.getSnapshot=m,PC(a)&&zC(o)}function IC(o,a,u){return u(function(){PC(a)&&zC(o)})}function PC(o){var a=o.getSnapshot;o=o.value;try{var u=a();return!Ur(o,u)}catch{return!0}}function zC(o){var a=bi(o,2);a!==null&&Br(a,o,2)}function Yg(o){var a=Tr();if(typeof o=="function"){var u=o;if(o=u(),Ri){ve(!0);try{u()}finally{ve(!1)}}}return a.memoizedState=a.baseState=o,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:o},a}function AC(o,a,u,m){return o.baseState=u,Wg(o,hn,typeof m=="function"?m:la)}function vI(o,a,u,m,v){if(Jd(o))throw Error(r(485));if(o=a.action,o!==null){var E={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){E.listeners.push(F)}};_.T!==null?u(!0):E.isTransition=!1,m(E),u=a.pending,u===null?(E.next=a.pending=E,DC(a,E)):(E.next=u.next,a.pending=u.next=E)}}function DC(o,a){var u=a.action,m=a.payload,v=o.state;if(a.isTransition){var E=_.T,F={};_.T=F;try{var ee=u(v,m),ue=_.S;ue!==null&&ue(F,ee),jC(o,a,ee)}catch($e){Ug(o,a,$e)}finally{E!==null&&F.types!==null&&(E.types=F.types),_.T=E}}else try{E=u(v,m),jC(o,a,E)}catch($e){Ug(o,a,$e)}}function jC(o,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){_C(o,a,m)},function(m){return Ug(o,a,m)}):_C(o,a,u)}function _C(o,a,u){a.status="fulfilled",a.value=u,HC(a),o.state=u,a=o.pending,a!==null&&(u=a.next,u===a?o.pending=null:(u=u.next,a.next=u,DC(o,u)))}function Ug(o,a,u){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do a.status="rejected",a.reason=u,HC(a),a=a.next;while(a!==m)}o.action=null}function HC(o){o=o.listeners;for(var a=0;a<o.length;a++)(0,o[a])()}function BC(o,a){return a}function LC(o,a){if(Qt){var u=Cn.formState;if(u!==null){e:{var m=zt;if(Qt){if(Rn){t:{for(var v=Rn,E=fo;v.nodeType!==8;){if(!E){v=null;break t}if(v=po(v.nextSibling),v===null){v=null;break t}}E=v.data,v=E==="F!"||E==="F"?v:null}if(v){Rn=po(v.nextSibling),m=v.data==="F!";break e}}Ia(m)}m=!1}m&&(a=u[0])}}return u=Tr(),u.memoizedState=u.baseState=a,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BC,lastRenderedState:a},u.queue=m,u=a$.bind(null,zt,m),m.dispatch=u,m=Yg(!1),E=Jg.bind(null,zt,!1,m.queue),m=Tr(),v={state:a,dispatch:null,action:o,pending:null},m.queue=v,u=vI.bind(null,zt,v,E,u),v.dispatch=u,m.memoizedState=o,[a,u,!1]}function VC(o){var a=Ln();return FC(a,hn,o)}function FC(o,a,u){if(a=Wg(o,a,BC)[0],o=Kd(la)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var m=sc(a)}catch(F){throw F===Tl?Ld:F}else m=a;a=Ln();var v=a.queue,E=v.dispatch;return u!==a.memoizedState&&(zt.flags|=2048,Al(9,{destroy:void 0},SI.bind(null,v,u),null)),[m,E,o]}function SI(o,a){o.action=a}function kC(o){var a=Ln(),u=hn;if(u!==null)return FC(a,u,o);Ln(),a=a.memoizedState,u=Ln();var m=u.queue.dispatch;return u.memoizedState=o,[a,m,!1]}function Al(o,a,u,m){return o={tag:o,create:u,deps:m,inst:a,next:null},a=zt.updateQueue,a===null&&(a=Gd(),zt.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=o.next=o:(m=u.next,u.next=o,o.next=m,a.lastEffect=o),o}function WC(){return Ln().memoizedState}function Qd(o,a,u,m){var v=Tr();zt.flags|=o,v.memoizedState=Al(1|a,{destroy:void 0},u,m===void 0?null:m)}function Zd(o,a,u,m){var v=Ln();m=m===void 0?null:m;var E=v.memoizedState.inst;hn!==null&&m!==null&&Hg(m,hn.memoizedState.deps)?v.memoizedState=Al(a,E,u,m):(zt.flags|=o,v.memoizedState=Al(1|a,E,u,m))}function qC(o,a){Qd(8390656,8,o,a)}function Gg(o,a){Zd(2048,8,o,a)}function CI(o){zt.flags|=4;var a=zt.updateQueue;if(a===null)a=Gd(),zt.updateQueue=a,a.events=[o];else{var u=a.events;u===null?a.events=[o]:u.push(o)}}function YC(o){var a=Ln().memoizedState;return CI({ref:a,nextImpl:o}),function(){if((ln&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function UC(o,a){return Zd(4,2,o,a)}function GC(o,a){return Zd(4,4,o,a)}function XC(o,a){if(typeof a=="function"){o=o();var u=a(o);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function KC(o,a,u){u=u!=null?u.concat([o]):null,Zd(4,4,XC.bind(null,a,o),u)}function Xg(){}function QC(o,a){var u=Ln();a=a===void 0?null:a;var m=u.memoizedState;return a!==null&&Hg(a,m[1])?m[0]:(u.memoizedState=[o,a],o)}function ZC(o,a){var u=Ln();a=a===void 0?null:a;var m=u.memoizedState;if(a!==null&&Hg(a,m[1]))return m[0];if(m=o(),Ri){ve(!0);try{o()}finally{ve(!1)}}return u.memoizedState=[m,a],m}function Kg(o,a,u){return u===void 0||(ia&1073741824)!==0&&(Gt&261930)===0?o.memoizedState=a:(o.memoizedState=u,o=J$(),zt.lanes|=o,La|=o,u)}function JC(o,a,u,m){return Ur(u,a)?u:Il.current!==null?(o=Kg(o,u,m),Ur(o,a)||(Yn=!0),o):(ia&42)===0||(ia&1073741824)!==0&&(Gt&261930)===0?(Yn=!0,o.memoizedState=u):(o=J$(),zt.lanes|=o,La|=o,a)}function e$(o,a,u,m,v){var E=B.p;B.p=E!==0&&8>E?E:8;var F=_.T,ee={};_.T=ee,Jg(o,!1,a,u);try{var ue=v(),$e=_.S;if($e!==null&&$e(ee,ue),ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var je=hI(ue,m);cc(o,a,je,Jr(o))}else cc(o,a,m,Jr(o))}catch(ke){cc(o,a,{then:function(){},status:"rejected",reason:ke},Jr())}finally{B.p=E,F!==null&&ee.types!==null&&(F.types=ee.types),_.T=F}}function $I(){}function Qg(o,a,u,m){if(o.tag!==5)throw Error(r(476));var v=t$(o).queue;e$(o,v,a,I,u===null?$I:function(){return n$(o),u(m)})}function t$(o){var a=o.memoizedState;if(a!==null)return a;a={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:I},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:u},next:null},o.memoizedState=a,o=o.alternate,o!==null&&(o.memoizedState=a),a}function n$(o){var a=t$(o);a.next===null&&(a=o.alternate.memoizedState),cc(o,a.next.queue,{},Jr())}function Zg(){return yr(Mc)}function r$(){return Ln().memoizedState}function o$(){return Ln().memoizedState}function xI(o){for(var a=o.return;a!==null;){switch(a.tag){case 24:case 3:var u=Jr();o=Aa(u);var m=Da(a,o,u);m!==null&&(Br(m,a,u),oc(m,a,u)),a={cache:Rg()},o.payload=a;return}a=a.return}}function wI(o,a,u){var m=Jr();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Jd(o)?i$(a,u):(u=hg(o,a,u,m),u!==null&&(Br(u,o,m),l$(u,a,m)))}function a$(o,a,u){var m=Jr();cc(o,a,u,m)}function cc(o,a,u,m){var v={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Jd(o))i$(a,v);else{var E=o.alternate;if(o.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var F=a.lastRenderedState,ee=E(F,u);if(v.hasEagerState=!0,v.eagerState=ee,Ur(ee,F))return zd(o,a,v,0),Cn===null&&Pd(),!1}catch{}if(u=hg(o,a,v,m),u!==null)return Br(u,o,m),l$(u,a,m),!0}return!1}function Jg(o,a,u,m){if(m={lane:2,revertLane:Ih(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Jd(o)){if(a)throw Error(r(479))}else a=hg(o,u,m,2),a!==null&&Br(a,o,2)}function Jd(o){var a=o.alternate;return o===zt||a!==null&&a===zt}function i$(o,a){Pl=Yd=!0;var u=o.pending;u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a}function l$(o,a,u){if((u&4194048)!==0){var m=a.lanes;m&=o.pendingLanes,u|=m,a.lanes=u,Re(o,u)}}var uc={readContext:yr,use:Xd,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useLayoutEffect:An,useInsertionEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useSyncExternalStore:An,useId:An,useHostTransitionStatus:An,useFormState:An,useActionState:An,useOptimistic:An,useMemoCache:An,useCacheRefresh:An};uc.useEffectEvent=An;var s$={readContext:yr,use:Xd,useCallback:function(o,a){return Tr().memoizedState=[o,a===void 0?null:a],o},useContext:yr,useEffect:qC,useImperativeHandle:function(o,a,u){u=u!=null?u.concat([o]):null,Qd(4194308,4,XC.bind(null,a,o),u)},useLayoutEffect:function(o,a){return Qd(4194308,4,o,a)},useInsertionEffect:function(o,a){Qd(4,2,o,a)},useMemo:function(o,a){var u=Tr();a=a===void 0?null:a;var m=o();if(Ri){ve(!0);try{o()}finally{ve(!1)}}return u.memoizedState=[m,a],m},useReducer:function(o,a,u){var m=Tr();if(u!==void 0){var v=u(a);if(Ri){ve(!0);try{u(a)}finally{ve(!1)}}}else v=a;return m.memoizedState=m.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},m.queue=o,o=o.dispatch=wI.bind(null,zt,o),[m.memoizedState,o]},useRef:function(o){var a=Tr();return o={current:o},a.memoizedState=o},useState:function(o){o=Yg(o);var a=o.queue,u=a$.bind(null,zt,a);return a.dispatch=u,[o.memoizedState,u]},useDebugValue:Xg,useDeferredValue:function(o,a){var u=Tr();return Kg(u,o,a)},useTransition:function(){var o=Yg(!1);return o=e$.bind(null,zt,o.queue,!0,!1),Tr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,a,u){var m=zt,v=Tr();if(Qt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),Cn===null)throw Error(r(349));(Gt&127)!==0||TC(m,a,u)}v.memoizedState=u;var E={value:u,getSnapshot:a};return v.queue=E,qC(IC.bind(null,m,E,o),[o]),m.flags|=2048,Al(9,{destroy:void 0},NC.bind(null,m,E,u,a),null),u},useId:function(){var o=Tr(),a=Cn.identifierPrefix;if(Qt){var u=Vo,m=Lo;u=(m&~(1<<32-Ae(m)-1)).toString(32)+u,a="_"+a+"R_"+u,u=Ud++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=yI++,a="_"+a+"r_"+u.toString(32)+"_";return o.memoizedState=a},useHostTransitionStatus:Zg,useFormState:LC,useActionState:LC,useOptimistic:function(o){var a=Tr();a.memoizedState=a.baseState=o;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Jg.bind(null,zt,!0,u),u.dispatch=a,[o,a]},useMemoCache:kg,useCacheRefresh:function(){return Tr().memoizedState=xI.bind(null,zt)},useEffectEvent:function(o){var a=Tr(),u={impl:o};return a.memoizedState=u,function(){if((ln&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},eh={readContext:yr,use:Xd,useCallback:QC,useContext:yr,useEffect:Gg,useImperativeHandle:KC,useInsertionEffect:UC,useLayoutEffect:GC,useMemo:ZC,useReducer:Kd,useRef:WC,useState:function(){return Kd(la)},useDebugValue:Xg,useDeferredValue:function(o,a){var u=Ln();return JC(u,hn.memoizedState,o,a)},useTransition:function(){var o=Kd(la)[0],a=Ln().memoizedState;return[typeof o=="boolean"?o:sc(o),a]},useSyncExternalStore:OC,useId:r$,useHostTransitionStatus:Zg,useFormState:VC,useActionState:VC,useOptimistic:function(o,a){var u=Ln();return AC(u,hn,o,a)},useMemoCache:kg,useCacheRefresh:o$};eh.useEffectEvent=YC;var c$={readContext:yr,use:Xd,useCallback:QC,useContext:yr,useEffect:Gg,useImperativeHandle:KC,useInsertionEffect:UC,useLayoutEffect:GC,useMemo:ZC,useReducer:qg,useRef:WC,useState:function(){return qg(la)},useDebugValue:Xg,useDeferredValue:function(o,a){var u=Ln();return hn===null?Kg(u,o,a):JC(u,hn.memoizedState,o,a)},useTransition:function(){var o=qg(la)[0],a=Ln().memoizedState;return[typeof o=="boolean"?o:sc(o),a]},useSyncExternalStore:OC,useId:r$,useHostTransitionStatus:Zg,useFormState:kC,useActionState:kC,useOptimistic:function(o,a){var u=Ln();return hn!==null?AC(u,hn,o,a):(u.baseState=o,[o,u.queue.dispatch])},useMemoCache:kg,useCacheRefresh:o$};c$.useEffectEvent=YC;function th(o,a,u,m){a=o.memoizedState,u=u(m,a),u=u==null?a:h({},a,u),o.memoizedState=u,o.lanes===0&&(o.updateQueue.baseState=u)}var nh={enqueueSetState:function(o,a,u){o=o._reactInternals;var m=Jr(),v=Aa(m);v.payload=a,u!=null&&(v.callback=u),a=Da(o,v,m),a!==null&&(Br(a,o,m),oc(a,o,m))},enqueueReplaceState:function(o,a,u){o=o._reactInternals;var m=Jr(),v=Aa(m);v.tag=1,v.payload=a,u!=null&&(v.callback=u),a=Da(o,v,m),a!==null&&(Br(a,o,m),oc(a,o,m))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var u=Jr(),m=Aa(u);m.tag=2,a!=null&&(m.callback=a),a=Da(o,m,u),a!==null&&(Br(a,o,u),oc(a,o,u))}};function u$(o,a,u,m,v,E,F){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,E,F):a.prototype&&a.prototype.isPureReactComponent?!Ks(u,m)||!Ks(v,E):!0}function d$(o,a,u,m){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,m),a.state!==o&&nh.enqueueReplaceState(a,a.state,null)}function Oi(o,a){var u=a;if("ref"in a){u={};for(var m in a)m!=="ref"&&(u[m]=a[m])}if(o=o.defaultProps){u===a&&(u=h({},u));for(var v in o)u[v]===void 0&&(u[v]=o[v])}return u}function f$(o){Id(o)}function m$(o){console.error(o)}function p$(o){Id(o)}function ef(o,a){try{var u=o.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(m){setTimeout(function(){throw m})}}function g$(o,a,u){try{var m=o.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function rh(o,a,u){return u=Aa(u),u.tag=3,u.payload={element:null},u.callback=function(){ef(o,a)},u}function h$(o){return o=Aa(o),o.tag=3,o}function y$(o,a,u,m){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var E=m.value;o.payload=function(){return v(E)},o.callback=function(){g$(a,u,m)}}var F=u.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(o.callback=function(){g$(a,u,m),typeof v!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var ee=m.stack;this.componentDidCatch(m.value,{componentStack:ee!==null?ee:""})})}function EI(o,a,u,m,v){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(a=u.alternate,a!==null&&Ml(a,u,v,!0),u=Xr.current,u!==null){switch(u.tag){case 31:case 13:return mo===null?mf():u.alternate===null&&Dn===0&&(Dn=3),u.flags&=-257,u.flags|=65536,u.lanes=v,m===Vd?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([m]):a.add(m),Oh(o,m,v)),!1;case 22:return u.flags|=65536,m===Vd?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([m]):u.add(m)),Oh(o,m,v)),!1}throw Error(r(435,u.tag))}return Oh(o,m,v),mf(),!1}if(Qt)return a=Xr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,m!==$g&&(o=Error(r(422),{cause:m}),Js(so(o,u)))):(m!==$g&&(a=Error(r(423),{cause:m}),Js(so(a,u))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,m=so(m,u),v=rh(o.stateNode,m,v),zg(o,v),Dn!==4&&(Dn=2)),!1;var E=Error(r(520),{cause:m});if(E=so(E,u),bc===null?bc=[E]:bc.push(E),Dn!==4&&(Dn=2),a===null)return!0;m=so(m,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,o=v&-v,u.lanes|=o,o=rh(u.stateNode,m,o),zg(u,o),!1;case 1:if(a=u.type,E=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Va===null||!Va.has(E))))return u.flags|=65536,v&=-v,u.lanes|=v,v=h$(v),y$(v,o,u,m),zg(u,v),!1}u=u.return}while(u!==null);return!1}var oh=Error(r(461)),Yn=!1;function br(o,a,u,m){a.child=o===null?CC(a,null,u,m):Mi(a,o.child,u,m)}function b$(o,a,u,m,v){u=u.render;var E=a.ref;if("ref"in m){var F={};for(var ee in m)ee!=="ref"&&(F[ee]=m[ee])}else F=m;return $i(a),m=Bg(o,a,u,F,E,v),ee=Lg(),o!==null&&!Yn?(Vg(o,a,v),sa(o,a,v)):(Qt&&ee&&Sg(a),a.flags|=1,br(o,a,m,v),a.child)}function v$(o,a,u,m,v){if(o===null){var E=u.type;return typeof E=="function"&&!yg(E)&&E.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=E,S$(o,a,E,m,v)):(o=Dd(u.type,null,m,a,a.mode,v),o.ref=a.ref,o.return=a,a.child=o)}if(E=o.child,!fh(o,v)){var F=E.memoizedProps;if(u=u.compare,u=u!==null?u:Ks,u(F,m)&&o.ref===a.ref)return sa(o,a,v)}return a.flags|=1,o=na(E,m),o.ref=a.ref,o.return=a,a.child=o}function S$(o,a,u,m,v){if(o!==null){var E=o.memoizedProps;if(Ks(E,m)&&o.ref===a.ref)if(Yn=!1,a.pendingProps=m=E,fh(o,v))(o.flags&131072)!==0&&(Yn=!0);else return a.lanes=o.lanes,sa(o,a,v)}return ah(o,a,u,m,v)}function C$(o,a,u,m){var v=m.children,E=o!==null?o.memoizedState:null;if(o===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((a.flags&128)!==0){if(E=E!==null?E.baseLanes|u:u,o!==null){for(m=a.child=o.child,v=0;m!==null;)v=v|m.lanes|m.childLanes,m=m.sibling;m=v&~E}else m=0,a.child=null;return $$(o,a,E,u,m)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},o!==null&&Bd(a,E!==null?E.cachePool:null),E!==null?wC(a,E):Dg(),EC(a);else return m=a.lanes=536870912,$$(o,a,E!==null?E.baseLanes|u:u,u,m)}else E!==null?(Bd(a,E.cachePool),wC(a,E),_a(),a.memoizedState=null):(o!==null&&Bd(a,null),Dg(),_a());return br(o,a,v,u),a.child}function dc(o,a){return o!==null&&o.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function $$(o,a,u,m,v){var E=Tg();return E=E===null?null:{parent:Wn._currentValue,pool:E},a.memoizedState={baseLanes:u,cachePool:E},o!==null&&Bd(a,null),Dg(),EC(a),o!==null&&Ml(o,a,m,!0),a.childLanes=v,null}function tf(o,a){return a=rf({mode:a.mode,children:a.children},o.mode),a.ref=o.ref,o.child=a,a.return=o,a}function x$(o,a,u){return Mi(a,o.child,null,u),o=tf(a,a.pendingProps),o.flags|=2,Kr(a),a.memoizedState=null,o}function MI(o,a,u){var m=a.pendingProps,v=(a.flags&128)!==0;if(a.flags&=-129,o===null){if(Qt){if(m.mode==="hidden")return o=tf(a,m),a.lanes=536870912,dc(null,o);if(_g(a),(o=Rn)?(o=Dx(o,fo),o=o!==null&&o.data==="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Ta!==null?{id:Lo,overflow:Vo}:null,retryLane:536870912,hydrationErrors:null},u=iC(o),u.return=a,a.child=u,hr=a,Rn=null)):o=null,o===null)throw Ia(a);return a.lanes=536870912,null}return tf(a,m)}var E=o.memoizedState;if(E!==null){var F=E.dehydrated;if(_g(a),v)if(a.flags&256)a.flags&=-257,a=x$(o,a,u);else if(a.memoizedState!==null)a.child=o.child,a.flags|=128,a=null;else throw Error(r(558));else if(Yn||Ml(o,a,u,!1),v=(u&o.childLanes)!==0,Yn||v){if(m=Cn,m!==null&&(F=Ye(m,u),F!==0&&F!==E.retryLane))throw E.retryLane=F,bi(o,F),Br(m,o,F),oh;mf(),a=x$(o,a,u)}else o=E.treeContext,Rn=po(F.nextSibling),hr=a,Qt=!0,Na=null,fo=!1,o!==null&&cC(a,o),a=tf(a,m),a.flags|=4096;return a}return o=na(o.child,{mode:m.mode,children:m.children}),o.ref=a.ref,a.child=o,o.return=a,o}function nf(o,a){var u=a.ref;if(u===null)o!==null&&o.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(o===null||o.ref!==u)&&(a.flags|=4194816)}}function ah(o,a,u,m,v){return $i(a),u=Bg(o,a,u,m,void 0,v),m=Lg(),o!==null&&!Yn?(Vg(o,a,v),sa(o,a,v)):(Qt&&m&&Sg(a),a.flags|=1,br(o,a,u,v),a.child)}function w$(o,a,u,m,v,E){return $i(a),a.updateQueue=null,u=RC(a,m,u,v),MC(o),m=Lg(),o!==null&&!Yn?(Vg(o,a,E),sa(o,a,E)):(Qt&&m&&Sg(a),a.flags|=1,br(o,a,u,E),a.child)}function E$(o,a,u,m,v){if($i(a),a.stateNode===null){var E=$l,F=u.contextType;typeof F=="object"&&F!==null&&(E=yr(F)),E=new u(m,E),a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=nh,a.stateNode=E,E._reactInternals=a,E=a.stateNode,E.props=m,E.state=a.memoizedState,E.refs={},Ig(a),F=u.contextType,E.context=typeof F=="object"&&F!==null?yr(F):$l,E.state=a.memoizedState,F=u.getDerivedStateFromProps,typeof F=="function"&&(th(a,u,F,m),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(F=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),F!==E.state&&nh.enqueueReplaceState(E,E.state,null),ic(a,m,E,v),ac(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!0}else if(o===null){E=a.stateNode;var ee=a.memoizedProps,ue=Oi(u,ee);E.props=ue;var $e=E.context,je=u.contextType;F=$l,typeof je=="object"&&je!==null&&(F=yr(je));var ke=u.getDerivedStateFromProps;je=typeof ke=="function"||typeof E.getSnapshotBeforeUpdate=="function",ee=a.pendingProps!==ee,je||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(ee||$e!==F)&&d$(a,E,m,F),za=!1;var xe=a.memoizedState;E.state=xe,ic(a,m,E,v),ac(),$e=a.memoizedState,ee||xe!==$e||za?(typeof ke=="function"&&(th(a,u,ke,m),$e=a.memoizedState),(ue=za||u$(a,u,ue,m,xe,$e,F))?(je||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=m,a.memoizedState=$e),E.props=m,E.state=$e,E.context=F,m=ue):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{E=a.stateNode,Pg(o,a),F=a.memoizedProps,je=Oi(u,F),E.props=je,ke=a.pendingProps,xe=E.context,$e=u.contextType,ue=$l,typeof $e=="object"&&$e!==null&&(ue=yr($e)),ee=u.getDerivedStateFromProps,($e=typeof ee=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(F!==ke||xe!==ue)&&d$(a,E,m,ue),za=!1,xe=a.memoizedState,E.state=xe,ic(a,m,E,v),ac();var Te=a.memoizedState;F!==ke||xe!==Te||za||o!==null&&o.dependencies!==null&&_d(o.dependencies)?(typeof ee=="function"&&(th(a,u,ee,m),Te=a.memoizedState),(je=za||u$(a,u,je,m,xe,Te,ue)||o!==null&&o.dependencies!==null&&_d(o.dependencies))?($e||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(m,Te,ue),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(m,Te,ue)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=Te),E.props=m,E.state=Te,E.context=ue,m=je):(typeof E.componentDidUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=1024),m=!1)}return E=m,nf(o,a),m=(a.flags&128)!==0,E||m?(E=a.stateNode,u=m&&typeof u.getDerivedStateFromError!="function"?null:E.render(),a.flags|=1,o!==null&&m?(a.child=Mi(a,o.child,null,v),a.child=Mi(a,null,u,v)):br(o,a,u,v),a.memoizedState=E.state,o=a.child):o=sa(o,a,v),o}function M$(o,a,u,m){return Si(),a.flags|=256,br(o,a,u,m),a.child}var ih={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lh(o){return{baseLanes:o,cachePool:gC()}}function sh(o,a,u){return o=o!==null?o.childLanes&~u:0,a&&(o|=Zr),o}function R$(o,a,u){var m=a.pendingProps,v=!1,E=(a.flags&128)!==0,F;if((F=E)||(F=o!==null&&o.memoizedState===null?!1:(Bn.current&2)!==0),F&&(v=!0,a.flags&=-129),F=(a.flags&32)!==0,a.flags&=-33,o===null){if(Qt){if(v?ja(a):_a(),(o=Rn)?(o=Dx(o,fo),o=o!==null&&o.data!=="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Ta!==null?{id:Lo,overflow:Vo}:null,retryLane:536870912,hydrationErrors:null},u=iC(o),u.return=a,a.child=u,hr=a,Rn=null)):o=null,o===null)throw Ia(a);return Wh(o)?a.lanes=32:a.lanes=536870912,null}var ee=m.children;return m=m.fallback,v?(_a(),v=a.mode,ee=rf({mode:"hidden",children:ee},v),m=vi(m,v,u,null),ee.return=a,m.return=a,ee.sibling=m,a.child=ee,m=a.child,m.memoizedState=lh(u),m.childLanes=sh(o,F,u),a.memoizedState=ih,dc(null,m)):(ja(a),ch(a,ee))}var ue=o.memoizedState;if(ue!==null&&(ee=ue.dehydrated,ee!==null)){if(E)a.flags&256?(ja(a),a.flags&=-257,a=uh(o,a,u)):a.memoizedState!==null?(_a(),a.child=o.child,a.flags|=128,a=null):(_a(),ee=m.fallback,v=a.mode,m=rf({mode:"visible",children:m.children},v),ee=vi(ee,v,u,null),ee.flags|=2,m.return=a,ee.return=a,m.sibling=ee,a.child=m,Mi(a,o.child,null,u),m=a.child,m.memoizedState=lh(u),m.childLanes=sh(o,F,u),a.memoizedState=ih,a=dc(null,m));else if(ja(a),Wh(ee)){if(F=ee.nextSibling&&ee.nextSibling.dataset,F)var $e=F.dgst;F=$e,m=Error(r(419)),m.stack="",m.digest=F,Js({value:m,source:null,stack:null}),a=uh(o,a,u)}else if(Yn||Ml(o,a,u,!1),F=(u&o.childLanes)!==0,Yn||F){if(F=Cn,F!==null&&(m=Ye(F,u),m!==0&&m!==ue.retryLane))throw ue.retryLane=m,bi(o,m),Br(F,o,m),oh;kh(ee)||mf(),a=uh(o,a,u)}else kh(ee)?(a.flags|=192,a.child=o.child,a=null):(o=ue.treeContext,Rn=po(ee.nextSibling),hr=a,Qt=!0,Na=null,fo=!1,o!==null&&cC(a,o),a=ch(a,m.children),a.flags|=4096);return a}return v?(_a(),ee=m.fallback,v=a.mode,ue=o.child,$e=ue.sibling,m=na(ue,{mode:"hidden",children:m.children}),m.subtreeFlags=ue.subtreeFlags&65011712,$e!==null?ee=na($e,ee):(ee=vi(ee,v,u,null),ee.flags|=2),ee.return=a,m.return=a,m.sibling=ee,a.child=m,dc(null,m),m=a.child,ee=o.child.memoizedState,ee===null?ee=lh(u):(v=ee.cachePool,v!==null?(ue=Wn._currentValue,v=v.parent!==ue?{parent:ue,pool:ue}:v):v=gC(),ee={baseLanes:ee.baseLanes|u,cachePool:v}),m.memoizedState=ee,m.childLanes=sh(o,F,u),a.memoizedState=ih,dc(o.child,m)):(ja(a),u=o.child,o=u.sibling,u=na(u,{mode:"visible",children:m.children}),u.return=a,u.sibling=null,o!==null&&(F=a.deletions,F===null?(a.deletions=[o],a.flags|=16):F.push(o)),a.child=u,a.memoizedState=null,u)}function ch(o,a){return a=rf({mode:"visible",children:a},o.mode),a.return=o,o.child=a}function rf(o,a){return o=Gr(22,o,null,a),o.lanes=0,o}function uh(o,a,u){return Mi(a,o.child,null,u),o=ch(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function O$(o,a,u){o.lanes|=a;var m=o.alternate;m!==null&&(m.lanes|=a),Eg(o.return,a,u)}function dh(o,a,u,m,v,E){var F=o.memoizedState;F===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:v,treeForkCount:E}:(F.isBackwards=a,F.rendering=null,F.renderingStartTime=0,F.last=m,F.tail=u,F.tailMode=v,F.treeForkCount=E)}function T$(o,a,u){var m=a.pendingProps,v=m.revealOrder,E=m.tail;m=m.children;var F=Bn.current,ee=(F&2)!==0;if(ee?(F=F&1|2,a.flags|=128):F&=1,q(Bn,F),br(o,a,m,u),m=Qt?Zs:0,!ee&&o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&O$(o,u,a);else if(o.tag===19)O$(o,u,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(u=a.child,v=null;u!==null;)o=u.alternate,o!==null&&qd(o)===null&&(v=u),u=u.sibling;u=v,u===null?(v=a.child,a.child=null):(v=u.sibling,u.sibling=null),dh(a,!1,v,u,E,m);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=a.child,a.child=null;v!==null;){if(o=v.alternate,o!==null&&qd(o)===null){a.child=v;break}o=v.sibling,v.sibling=u,u=v,v=o}dh(a,!0,u,null,E,m);break;case"together":dh(a,!1,null,null,void 0,m);break;default:a.memoizedState=null}return a.child}function sa(o,a,u){if(o!==null&&(a.dependencies=o.dependencies),La|=a.lanes,(u&a.childLanes)===0)if(o!==null){if(Ml(o,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,u=na(o,o.pendingProps),a.child=u,u.return=a;o.sibling!==null;)o=o.sibling,u=u.sibling=na(o,o.pendingProps),u.return=a;u.sibling=null}return a.child}function fh(o,a){return(o.lanes&a)!==0?!0:(o=o.dependencies,!!(o!==null&&_d(o)))}function RI(o,a,u){switch(a.tag){case 3:oe(a,a.stateNode.containerInfo),Pa(a,Wn,o.memoizedState.cache),Si();break;case 27:case 5:ie(a);break;case 4:oe(a,a.stateNode.containerInfo);break;case 10:Pa(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,_g(a),null;break;case 13:var m=a.memoizedState;if(m!==null)return m.dehydrated!==null?(ja(a),a.flags|=128,null):(u&a.child.childLanes)!==0?R$(o,a,u):(ja(a),o=sa(o,a,u),o!==null?o.sibling:null);ja(a);break;case 19:var v=(o.flags&128)!==0;if(m=(u&a.childLanes)!==0,m||(Ml(o,a,u,!1),m=(u&a.childLanes)!==0),v){if(m)return T$(o,a,u);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),q(Bn,Bn.current),m)break;return null;case 22:return a.lanes=0,C$(o,a,u,a.pendingProps);case 24:Pa(a,Wn,o.memoizedState.cache)}return sa(o,a,u)}function N$(o,a,u){if(o!==null)if(o.memoizedProps!==a.pendingProps)Yn=!0;else{if(!fh(o,u)&&(a.flags&128)===0)return Yn=!1,RI(o,a,u);Yn=(o.flags&131072)!==0}else Yn=!1,Qt&&(a.flags&1048576)!==0&&sC(a,Zs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var m=a.pendingProps;if(o=wi(a.elementType),a.type=o,typeof o=="function")yg(o)?(m=Oi(o,m),a.tag=1,a=E$(null,a,o,m,u)):(a.tag=0,a=ah(null,a,o,m,u));else{if(o!=null){var v=o.$$typeof;if(v===R){a.tag=11,a=b$(null,a,o,m,u);break e}else if(v===T){a.tag=14,a=v$(null,a,o,m,u);break e}}throw a=L(o)||o,Error(r(306,a,""))}}return a;case 0:return ah(o,a,a.type,a.pendingProps,u);case 1:return m=a.type,v=Oi(m,a.pendingProps),E$(o,a,m,v,u);case 3:e:{if(oe(a,a.stateNode.containerInfo),o===null)throw Error(r(387));m=a.pendingProps;var E=a.memoizedState;v=E.element,Pg(o,a),ic(a,m,null,u);var F=a.memoizedState;if(m=F.cache,Pa(a,Wn,m),m!==E.cache&&Mg(a,[Wn],u,!0),ac(),m=F.element,E.isDehydrated)if(E={element:m,isDehydrated:!1,cache:F.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=M$(o,a,m,u);break e}else if(m!==v){v=so(Error(r(424)),a),Js(v),a=M$(o,a,m,u);break e}else for(o=a.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Rn=po(o.firstChild),hr=a,Qt=!0,Na=null,fo=!0,u=CC(a,null,m,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Si(),m===v){a=sa(o,a,u);break e}br(o,a,m,u)}a=a.child}return a;case 26:return nf(o,a),o===null?(u=Vx(a.type,null,a.pendingProps,null))?a.memoizedState=u:Qt||(u=a.type,o=a.pendingProps,m=Sf(J.current).createElement(u),m[$t]=a,m[nn]=o,vr(m,u,o),fn(m),a.stateNode=m):a.memoizedState=Vx(a.type,o.memoizedProps,a.pendingProps,o.memoizedState),null;case 27:return ie(a),o===null&&Qt&&(m=a.stateNode=Hx(a.type,a.pendingProps,J.current),hr=a,fo=!0,v=Rn,qa(a.type)?(qh=v,Rn=po(m.firstChild)):Rn=v),br(o,a,a.pendingProps.children,u),nf(o,a),o===null&&(a.flags|=4194304),a.child;case 5:return o===null&&Qt&&((v=m=Rn)&&(m=rP(m,a.type,a.pendingProps,fo),m!==null?(a.stateNode=m,hr=a,Rn=po(m.firstChild),fo=!1,v=!0):v=!1),v||Ia(a)),ie(a),v=a.type,E=a.pendingProps,F=o!==null?o.memoizedProps:null,m=E.children,Lh(v,E)?m=null:F!==null&&Lh(v,F)&&(a.flags|=32),a.memoizedState!==null&&(v=Bg(o,a,bI,null,null,u),Mc._currentValue=v),nf(o,a),br(o,a,m,u),a.child;case 6:return o===null&&Qt&&((o=u=Rn)&&(u=oP(u,a.pendingProps,fo),u!==null?(a.stateNode=u,hr=a,Rn=null,o=!0):o=!1),o||Ia(a)),null;case 13:return R$(o,a,u);case 4:return oe(a,a.stateNode.containerInfo),m=a.pendingProps,o===null?a.child=Mi(a,null,m,u):br(o,a,m,u),a.child;case 11:return b$(o,a,a.type,a.pendingProps,u);case 7:return br(o,a,a.pendingProps,u),a.child;case 8:return br(o,a,a.pendingProps.children,u),a.child;case 12:return br(o,a,a.pendingProps.children,u),a.child;case 10:return m=a.pendingProps,Pa(a,a.type,m.value),br(o,a,m.children,u),a.child;case 9:return v=a.type._context,m=a.pendingProps.children,$i(a),v=yr(v),m=m(v),a.flags|=1,br(o,a,m,u),a.child;case 14:return v$(o,a,a.type,a.pendingProps,u);case 15:return S$(o,a,a.type,a.pendingProps,u);case 19:return T$(o,a,u);case 31:return MI(o,a,u);case 22:return C$(o,a,u,a.pendingProps);case 24:return $i(a),m=yr(Wn),o===null?(v=Tg(),v===null&&(v=Cn,E=Rg(),v.pooledCache=E,E.refCount++,E!==null&&(v.pooledCacheLanes|=u),v=E),a.memoizedState={parent:m,cache:v},Ig(a),Pa(a,Wn,v)):((o.lanes&u)!==0&&(Pg(o,a),ic(a,null,null,u),ac()),v=o.memoizedState,E=a.memoizedState,v.parent!==m?(v={parent:m,cache:m},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),Pa(a,Wn,m)):(m=E.cache,Pa(a,Wn,m),m!==v.cache&&Mg(a,[Wn],u,!0))),br(o,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function ca(o){o.flags|=4}function mh(o,a,u,m,v){if((a=(o.mode&32)!==0)&&(a=!1),a){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(rx())o.flags|=8192;else throw Ei=Vd,Ng}else o.flags&=-16777217}function I$(o,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Yx(a))if(rx())o.flags|=8192;else throw Ei=Vd,Ng}function of(o,a){a!==null&&(o.flags|=4),o.flags&16384&&(a=o.tag!==22?qe():536870912,o.lanes|=a,Hl|=a)}function fc(o,a){if(!Qt)switch(o.tailMode){case"hidden":a=o.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?o.tail=null:u.sibling=null;break;case"collapsed":u=o.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function On(o){var a=o.alternate!==null&&o.alternate.child===o.child,u=0,m=0;if(a)for(var v=o.child;v!==null;)u|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)u|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=m,o.childLanes=u,a}function OI(o,a,u){var m=a.pendingProps;switch(Cg(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return On(a),null;case 1:return On(a),null;case 3:return u=a.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),a.memoizedState.cache!==m&&(a.flags|=2048),aa(Wn),ne(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(o===null||o.child===null)&&(El(a)?ca(a):o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,xg())),On(a),null;case 26:var v=a.type,E=a.memoizedState;return o===null?(ca(a),E!==null?(On(a),I$(a,E)):(On(a),mh(a,v,null,m,u))):E?E!==o.memoizedState?(ca(a),On(a),I$(a,E)):(On(a),a.flags&=-16777217):(o=o.memoizedProps,o!==m&&ca(a),On(a),mh(a,v,o,m,u)),null;case 27:if(de(a),u=J.current,v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&ca(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return On(a),null}o=X.current,El(a)?uC(a):(o=Hx(v,m,u),a.stateNode=o,ca(a))}return On(a),null;case 5:if(de(a),v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&ca(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return On(a),null}if(E=X.current,El(a))uC(a);else{var F=Sf(J.current);switch(E){case 1:E=F.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:E=F.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":E=F.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":E=F.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":E=F.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof m.is=="string"?F.createElement("select",{is:m.is}):F.createElement("select"),m.multiple?E.multiple=!0:m.size&&(E.size=m.size);break;default:E=typeof m.is=="string"?F.createElement(v,{is:m.is}):F.createElement(v)}}E[$t]=a,E[nn]=m;e:for(F=a.child;F!==null;){if(F.tag===5||F.tag===6)E.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===a)break e;for(;F.sibling===null;){if(F.return===null||F.return===a)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}a.stateNode=E;e:switch(vr(E,v,m),v){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&ca(a)}}return On(a),mh(a,a.type,o===null?null:o.memoizedProps,a.pendingProps,u),null;case 6:if(o&&a.stateNode!=null)o.memoizedProps!==m&&ca(a);else{if(typeof m!="string"&&a.stateNode===null)throw Error(r(166));if(o=J.current,El(a)){if(o=a.stateNode,u=a.memoizedProps,m=null,v=hr,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}o[$t]=a,o=!!(o.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||Rx(o.nodeValue,u)),o||Ia(a,!0)}else o=Sf(o).createTextNode(m),o[$t]=a,a.stateNode=o}return On(a),null;case 31:if(u=a.memoizedState,o===null||o.memoizedState!==null){if(m=El(a),u!==null){if(o===null){if(!m)throw Error(r(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[$t]=a}else Si(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;On(a),o=!1}else u=xg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=u),o=!0;if(!o)return a.flags&256?(Kr(a),a):(Kr(a),null);if((a.flags&128)!==0)throw Error(r(558))}return On(a),null;case 13:if(m=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=El(a),m!==null&&m.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[$t]=a}else Si(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;On(a),v=!1}else v=xg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(Kr(a),a):(Kr(a),null)}return Kr(a),(a.flags&128)!==0?(a.lanes=u,a):(u=m!==null,o=o!==null&&o.memoizedState!==null,u&&(m=a.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool),E=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),E!==v&&(m.flags|=2048)),u!==o&&u&&(a.child.flags|=8192),of(a,a.updateQueue),On(a),null);case 4:return ne(),o===null&&Dh(a.stateNode.containerInfo),On(a),null;case 10:return aa(a.type),On(a),null;case 19:if(j(Bn),m=a.memoizedState,m===null)return On(a),null;if(v=(a.flags&128)!==0,E=m.rendering,E===null)if(v)fc(m,!1);else{if(Dn!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(E=qd(o),E!==null){for(a.flags|=128,fc(m,!1),o=E.updateQueue,a.updateQueue=o,of(a,o),a.subtreeFlags=0,o=u,u=a.child;u!==null;)aC(u,o),u=u.sibling;return q(Bn,Bn.current&1|2),Qt&&ra(a,m.treeForkCount),a.child}o=o.sibling}m.tail!==null&&be()>uf&&(a.flags|=128,v=!0,fc(m,!1),a.lanes=4194304)}else{if(!v)if(o=qd(E),o!==null){if(a.flags|=128,v=!0,o=o.updateQueue,a.updateQueue=o,of(a,o),fc(m,!0),m.tail===null&&m.tailMode==="hidden"&&!E.alternate&&!Qt)return On(a),null}else 2*be()-m.renderingStartTime>uf&&u!==536870912&&(a.flags|=128,v=!0,fc(m,!1),a.lanes=4194304);m.isBackwards?(E.sibling=a.child,a.child=E):(o=m.last,o!==null?o.sibling=E:a.child=E,m.last=E)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=be(),o.sibling=null,u=Bn.current,q(Bn,v?u&1|2:u&1),Qt&&ra(a,m.treeForkCount),o):(On(a),null);case 22:case 23:return Kr(a),jg(),m=a.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(a.flags|=8192):m&&(a.flags|=8192),m?(u&536870912)!==0&&(a.flags&128)===0&&(On(a),a.subtreeFlags&6&&(a.flags|=8192)):On(a),u=a.updateQueue,u!==null&&of(a,u.retryQueue),u=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==u&&(a.flags|=2048),o!==null&&j(xi),null;case 24:return u=null,o!==null&&(u=o.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),aa(Wn),On(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function TI(o,a){switch(Cg(a),a.tag){case 1:return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return aa(Wn),ne(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 26:case 27:case 5:return de(a),null;case 31:if(a.memoizedState!==null){if(Kr(a),a.alternate===null)throw Error(r(340));Si()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 13:if(Kr(a),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Si()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return j(Bn),null;case 4:return ne(),null;case 10:return aa(a.type),null;case 22:case 23:return Kr(a),jg(),o!==null&&j(xi),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 24:return aa(Wn),null;case 25:return null;default:return null}}function P$(o,a){switch(Cg(a),a.tag){case 3:aa(Wn),ne();break;case 26:case 27:case 5:de(a);break;case 4:ne();break;case 31:a.memoizedState!==null&&Kr(a);break;case 13:Kr(a);break;case 19:j(Bn);break;case 10:aa(a.type);break;case 22:case 23:Kr(a),jg(),o!==null&&j(xi);break;case 24:aa(Wn)}}function mc(o,a){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var v=m.next;u=v;do{if((u.tag&o)===o){m=void 0;var E=u.create,F=u.inst;m=E(),F.destroy=m}u=u.next}while(u!==v)}}catch(ee){pn(a,a.return,ee)}}function Ha(o,a,u){try{var m=a.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var E=v.next;m=E;do{if((m.tag&o)===o){var F=m.inst,ee=F.destroy;if(ee!==void 0){F.destroy=void 0,v=a;var ue=u,$e=ee;try{$e()}catch(je){pn(v,ue,je)}}}m=m.next}while(m!==E)}}catch(je){pn(a,a.return,je)}}function z$(o){var a=o.updateQueue;if(a!==null){var u=o.stateNode;try{xC(a,u)}catch(m){pn(o,o.return,m)}}}function A$(o,a,u){u.props=Oi(o.type,o.memoizedProps),u.state=o.memoizedState;try{u.componentWillUnmount()}catch(m){pn(o,a,m)}}function pc(o,a){try{var u=o.ref;if(u!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof u=="function"?o.refCleanup=u(m):u.current=m}}catch(v){pn(o,a,v)}}function Fo(o,a){var u=o.ref,m=o.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(v){pn(o,a,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){pn(o,a,v)}else u.current=null}function D$(o){var a=o.type,u=o.memoizedProps,m=o.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&m.focus();break e;case"img":u.src?m.src=u.src:u.srcSet&&(m.srcset=u.srcSet)}}catch(v){pn(o,o.return,v)}}function ph(o,a,u){try{var m=o.stateNode;QI(m,o.type,u,a),m[nn]=a}catch(v){pn(o,o.return,v)}}function j$(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&qa(o.type)||o.tag===4}function gh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||j$(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&&qa(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 hh(o,a,u){var m=o.tag;if(m===5||m===6)o=o.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(o,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(o),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Mo));else if(m!==4&&(m===27&&qa(o.type)&&(u=o.stateNode,a=null),o=o.child,o!==null))for(hh(o,a,u),o=o.sibling;o!==null;)hh(o,a,u),o=o.sibling}function af(o,a,u){var m=o.tag;if(m===5||m===6)o=o.stateNode,a?u.insertBefore(o,a):u.appendChild(o);else if(m!==4&&(m===27&&qa(o.type)&&(u=o.stateNode),o=o.child,o!==null))for(af(o,a,u),o=o.sibling;o!==null;)af(o,a,u),o=o.sibling}function _$(o){var a=o.stateNode,u=o.memoizedProps;try{for(var m=o.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);vr(a,m,u),a[$t]=o,a[nn]=u}catch(E){pn(o,o.return,E)}}var ua=!1,Un=!1,yh=!1,H$=typeof WeakSet=="function"?WeakSet:Set,ir=null;function NI(o,a){if(o=o.containerInfo,Hh=Rf,o=K1(o),ug(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var v=m.anchorOffset,E=m.focusNode;m=m.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var F=0,ee=-1,ue=-1,$e=0,je=0,ke=o,xe=null;t:for(;;){for(var Te;ke!==u||v!==0&&ke.nodeType!==3||(ee=F+v),ke!==E||m!==0&&ke.nodeType!==3||(ue=F+m),ke.nodeType===3&&(F+=ke.nodeValue.length),(Te=ke.firstChild)!==null;)xe=ke,ke=Te;for(;;){if(ke===o)break t;if(xe===u&&++$e===v&&(ee=F),xe===E&&++je===m&&(ue=F),(Te=ke.nextSibling)!==null)break;ke=xe,xe=ke.parentNode}ke=Te}u=ee===-1||ue===-1?null:{start:ee,end:ue}}else u=null}u=u||{start:0,end:0}}else u=null;for(Bh={focusedElem:o,selectionRange:u},Rf=!1,ir=a;ir!==null;)if(a=ir,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ir=o;else for(;ir!==null;){switch(a=ir,E=a.alternate,o=a.flags,a.tag){case 0:if((o&4)!==0&&(o=a.updateQueue,o=o!==null?o.events:null,o!==null))for(u=0;u<o.length;u++)v=o[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&E!==null){o=void 0,u=a,v=E.memoizedProps,E=E.memoizedState,m=u.stateNode;try{var st=Oi(u.type,v);o=m.getSnapshotBeforeUpdate(st,E),m.__reactInternalSnapshotBeforeUpdate=o}catch(vt){pn(u,u.return,vt)}}break;case 3:if((o&1024)!==0){if(o=a.stateNode.containerInfo,u=o.nodeType,u===9)Fh(o);else if(u===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Fh(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=a.sibling,o!==null){o.return=a.return,ir=o;break}ir=a.return}}function B$(o,a,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:fa(o,u),m&4&&mc(5,u);break;case 1:if(fa(o,u),m&4)if(o=u.stateNode,a===null)try{o.componentDidMount()}catch(F){pn(u,u.return,F)}else{var v=Oi(u.type,a.memoizedProps);a=a.memoizedState;try{o.componentDidUpdate(v,a,o.__reactInternalSnapshotBeforeUpdate)}catch(F){pn(u,u.return,F)}}m&64&&z$(u),m&512&&pc(u,u.return);break;case 3:if(fa(o,u),m&64&&(o=u.updateQueue,o!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{xC(o,a)}catch(F){pn(u,u.return,F)}}break;case 27:a===null&&m&4&&_$(u);case 26:case 5:fa(o,u),a===null&&m&4&&D$(u),m&512&&pc(u,u.return);break;case 12:fa(o,u);break;case 31:fa(o,u),m&4&&F$(o,u);break;case 13:fa(o,u),m&4&&k$(o,u),m&64&&(o=u.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(u=BI.bind(null,u),aP(o,u))));break;case 22:if(m=u.memoizedState!==null||ua,!m){a=a!==null&&a.memoizedState!==null||Un,v=ua;var E=Un;ua=m,(Un=a)&&!E?ma(o,u,(u.subtreeFlags&8772)!==0):fa(o,u),ua=v,Un=E}break;case 30:break;default:fa(o,u)}}function L$(o){var a=o.alternate;a!==null&&(o.alternate=null,L$(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&an(a)),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 Nn=null,Dr=!1;function da(o,a,u){for(u=u.child;u!==null;)V$(o,a,u),u=u.sibling}function V$(o,a,u){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(Qe,u)}catch{}switch(u.tag){case 26:Un||Fo(u,a),da(o,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Un||Fo(u,a);var m=Nn,v=Dr;qa(u.type)&&(Nn=u.stateNode,Dr=!1),da(o,a,u),xc(u.stateNode),Nn=m,Dr=v;break;case 5:Un||Fo(u,a);case 6:if(m=Nn,v=Dr,Nn=null,da(o,a,u),Nn=m,Dr=v,Nn!==null)if(Dr)try{(Nn.nodeType===9?Nn.body:Nn.nodeName==="HTML"?Nn.ownerDocument.body:Nn).removeChild(u.stateNode)}catch(E){pn(u,a,E)}else try{Nn.removeChild(u.stateNode)}catch(E){pn(u,a,E)}break;case 18:Nn!==null&&(Dr?(o=Nn,zx(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,u.stateNode),Yl(o)):zx(Nn,u.stateNode));break;case 4:m=Nn,v=Dr,Nn=u.stateNode.containerInfo,Dr=!0,da(o,a,u),Nn=m,Dr=v;break;case 0:case 11:case 14:case 15:Ha(2,u,a),Un||Ha(4,u,a),da(o,a,u);break;case 1:Un||(Fo(u,a),m=u.stateNode,typeof m.componentWillUnmount=="function"&&A$(u,a,m)),da(o,a,u);break;case 21:da(o,a,u);break;case 22:Un=(m=Un)||u.memoizedState!==null,da(o,a,u),Un=m;break;default:da(o,a,u)}}function F$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Yl(o)}catch(u){pn(a,a.return,u)}}}function k$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Yl(o)}catch(u){pn(a,a.return,u)}}function II(o){switch(o.tag){case 31:case 13:case 19:var a=o.stateNode;return a===null&&(a=o.stateNode=new H$),a;case 22:return o=o.stateNode,a=o._retryCache,a===null&&(a=o._retryCache=new H$),a;default:throw Error(r(435,o.tag))}}function lf(o,a){var u=II(o);a.forEach(function(m){if(!u.has(m)){u.add(m);var v=LI.bind(null,o,m);m.then(v,v)}})}function jr(o,a){var u=a.deletions;if(u!==null)for(var m=0;m<u.length;m++){var v=u[m],E=o,F=a,ee=F;e:for(;ee!==null;){switch(ee.tag){case 27:if(qa(ee.type)){Nn=ee.stateNode,Dr=!1;break e}break;case 5:Nn=ee.stateNode,Dr=!1;break e;case 3:case 4:Nn=ee.stateNode.containerInfo,Dr=!0;break e}ee=ee.return}if(Nn===null)throw Error(r(160));V$(E,F,v),Nn=null,Dr=!1,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)W$(a,o),a=a.sibling}var Oo=null;function W$(o,a){var u=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:jr(a,o),_r(o),m&4&&(Ha(3,o,o.return),mc(3,o),Ha(5,o,o.return));break;case 1:jr(a,o),_r(o),m&512&&(Un||u===null||Fo(u,u.return)),m&64&&ua&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(u=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=u===null?m:u.concat(m))));break;case 26:var v=Oo;if(jr(a,o),_r(o),m&512&&(Un||u===null||Fo(u,u.return)),m&4){var E=u!==null?u.memoizedState:null;if(m=o.memoizedState,u===null)if(m===null)if(o.stateNode===null){e:{m=o.type,u=o.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":E=v.getElementsByTagName("title")[0],(!E||E[Ut]||E[$t]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=v.createElement(m),v.head.insertBefore(E,v.querySelector("head > title"))),vr(E,m,u),E[$t]=o,fn(E),m=E;break e;case"link":var F=Wx("link","href",v).get(m+(u.href||""));if(F){for(var ee=0;ee<F.length;ee++)if(E=F[ee],E.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&E.getAttribute("rel")===(u.rel==null?null:u.rel)&&E.getAttribute("title")===(u.title==null?null:u.title)&&E.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){F.splice(ee,1);break t}}E=v.createElement(m),vr(E,m,u),v.head.appendChild(E);break;case"meta":if(F=Wx("meta","content",v).get(m+(u.content||""))){for(ee=0;ee<F.length;ee++)if(E=F[ee],E.getAttribute("content")===(u.content==null?null:""+u.content)&&E.getAttribute("name")===(u.name==null?null:u.name)&&E.getAttribute("property")===(u.property==null?null:u.property)&&E.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&E.getAttribute("charset")===(u.charSet==null?null:u.charSet)){F.splice(ee,1);break t}}E=v.createElement(m),vr(E,m,u),v.head.appendChild(E);break;default:throw Error(r(468,m))}E[$t]=o,fn(E),m=E}o.stateNode=m}else qx(v,o.type,o.stateNode);else o.stateNode=kx(v,m,o.memoizedProps);else E!==m?(E===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):E.count--,m===null?qx(v,o.type,o.stateNode):kx(v,m,o.memoizedProps)):m===null&&o.stateNode!==null&&ph(o,o.memoizedProps,u.memoizedProps)}break;case 27:jr(a,o),_r(o),m&512&&(Un||u===null||Fo(u,u.return)),u!==null&&m&4&&ph(o,o.memoizedProps,u.memoizedProps);break;case 5:if(jr(a,o),_r(o),m&512&&(Un||u===null||Fo(u,u.return)),o.flags&32){v=o.stateNode;try{Bo(v,"")}catch(st){pn(o,o.return,st)}}m&4&&o.stateNode!=null&&(v=o.memoizedProps,ph(o,v,u!==null?u.memoizedProps:v)),m&1024&&(yh=!0);break;case 6:if(jr(a,o),_r(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,u=o.stateNode;try{u.nodeValue=m}catch(st){pn(o,o.return,st)}}break;case 3:if(xf=null,v=Oo,Oo=Cf(a.containerInfo),jr(a,o),Oo=v,_r(o),m&4&&u!==null&&u.memoizedState.isDehydrated)try{Yl(a.containerInfo)}catch(st){pn(o,o.return,st)}yh&&(yh=!1,q$(o));break;case 4:m=Oo,Oo=Cf(o.stateNode.containerInfo),jr(a,o),_r(o),Oo=m;break;case 12:jr(a,o),_r(o);break;case 31:jr(a,o),_r(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,lf(o,m)));break;case 13:jr(a,o),_r(o),o.child.flags&8192&&o.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(cf=be()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,lf(o,m)));break;case 22:v=o.memoizedState!==null;var ue=u!==null&&u.memoizedState!==null,$e=ua,je=Un;if(ua=$e||v,Un=je||ue,jr(a,o),Un=je,ua=$e,_r(o),m&8192)e:for(a=o.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(u===null||ue||ua||Un||Ti(o)),u=null,a=o;;){if(a.tag===5||a.tag===26){if(u===null){ue=u=a;try{if(E=ue.stateNode,v)F=E.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else{ee=ue.stateNode;var ke=ue.memoizedProps.style,xe=ke!=null&&ke.hasOwnProperty("display")?ke.display:null;ee.style.display=xe==null||typeof xe=="boolean"?"":(""+xe).trim()}}catch(st){pn(ue,ue.return,st)}}}else if(a.tag===6){if(u===null){ue=a;try{ue.stateNode.nodeValue=v?"":ue.memoizedProps}catch(st){pn(ue,ue.return,st)}}}else if(a.tag===18){if(u===null){ue=a;try{var Te=ue.stateNode;v?Ax(Te,!0):Ax(ue.stateNode,!1)}catch(st){pn(ue,ue.return,st)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===o)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}m&4&&(m=o.updateQueue,m!==null&&(u=m.retryQueue,u!==null&&(m.retryQueue=null,lf(o,u))));break;case 19:jr(a,o),_r(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,lf(o,m)));break;case 30:break;case 21:break;default:jr(a,o),_r(o)}}function _r(o){var a=o.flags;if(a&2){try{for(var u,m=o.return;m!==null;){if(j$(m)){u=m;break}m=m.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,E=gh(o);af(o,E,v);break;case 5:var F=u.stateNode;u.flags&32&&(Bo(F,""),u.flags&=-33);var ee=gh(o);af(o,ee,F);break;case 3:case 4:var ue=u.stateNode.containerInfo,$e=gh(o);hh(o,$e,ue);break;default:throw Error(r(161))}}catch(je){pn(o,o.return,je)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function q$(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var a=o;q$(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),o=o.sibling}}function fa(o,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)B$(o,a.alternate,a),a=a.sibling}function Ti(o){for(o=o.child;o!==null;){var a=o;switch(a.tag){case 0:case 11:case 14:case 15:Ha(4,a,a.return),Ti(a);break;case 1:Fo(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&A$(a,a.return,u),Ti(a);break;case 27:xc(a.stateNode);case 26:case 5:Fo(a,a.return),Ti(a);break;case 22:a.memoizedState===null&&Ti(a);break;case 30:Ti(a);break;default:Ti(a)}o=o.sibling}}function ma(o,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var m=a.alternate,v=o,E=a,F=E.flags;switch(E.tag){case 0:case 11:case 15:ma(v,E,u),mc(4,E);break;case 1:if(ma(v,E,u),m=E,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch($e){pn(m,m.return,$e)}if(m=E,v=m.updateQueue,v!==null){var ee=m.stateNode;try{var ue=v.shared.hiddenCallbacks;if(ue!==null)for(v.shared.hiddenCallbacks=null,v=0;v<ue.length;v++)$C(ue[v],ee)}catch($e){pn(m,m.return,$e)}}u&&F&64&&z$(E),pc(E,E.return);break;case 27:_$(E);case 26:case 5:ma(v,E,u),u&&m===null&&F&4&&D$(E),pc(E,E.return);break;case 12:ma(v,E,u);break;case 31:ma(v,E,u),u&&F&4&&F$(v,E);break;case 13:ma(v,E,u),u&&F&4&&k$(v,E);break;case 22:E.memoizedState===null&&ma(v,E,u),pc(E,E.return);break;case 30:break;default:ma(v,E,u)}a=a.sibling}}function bh(o,a){var u=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(o!=null&&o.refCount++,u!=null&&ec(u))}function vh(o,a){o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&ec(o))}function To(o,a,u,m){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Y$(o,a,u,m),a=a.sibling}function Y$(o,a,u,m){var v=a.flags;switch(a.tag){case 0:case 11:case 15:To(o,a,u,m),v&2048&&mc(9,a);break;case 1:To(o,a,u,m);break;case 3:To(o,a,u,m),v&2048&&(o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&ec(o)));break;case 12:if(v&2048){To(o,a,u,m),o=a.stateNode;try{var E=a.memoizedProps,F=E.id,ee=E.onPostCommit;typeof ee=="function"&&ee(F,a.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ue){pn(a,a.return,ue)}}else To(o,a,u,m);break;case 31:To(o,a,u,m);break;case 13:To(o,a,u,m);break;case 23:break;case 22:E=a.stateNode,F=a.alternate,a.memoizedState!==null?E._visibility&2?To(o,a,u,m):gc(o,a):E._visibility&2?To(o,a,u,m):(E._visibility|=2,Dl(o,a,u,m,(a.subtreeFlags&10256)!==0||!1)),v&2048&&bh(F,a);break;case 24:To(o,a,u,m),v&2048&&vh(a.alternate,a);break;default:To(o,a,u,m)}}function Dl(o,a,u,m,v){for(v=v&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var E=o,F=a,ee=u,ue=m,$e=F.flags;switch(F.tag){case 0:case 11:case 15:Dl(E,F,ee,ue,v),mc(8,F);break;case 23:break;case 22:var je=F.stateNode;F.memoizedState!==null?je._visibility&2?Dl(E,F,ee,ue,v):gc(E,F):(je._visibility|=2,Dl(E,F,ee,ue,v)),v&&$e&2048&&bh(F.alternate,F);break;case 24:Dl(E,F,ee,ue,v),v&&$e&2048&&vh(F.alternate,F);break;default:Dl(E,F,ee,ue,v)}a=a.sibling}}function gc(o,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=o,m=a,v=m.flags;switch(m.tag){case 22:gc(u,m),v&2048&&bh(m.alternate,m);break;case 24:gc(u,m),v&2048&&vh(m.alternate,m);break;default:gc(u,m)}a=a.sibling}}var hc=8192;function jl(o,a,u){if(o.subtreeFlags&hc)for(o=o.child;o!==null;)U$(o,a,u),o=o.sibling}function U$(o,a,u){switch(o.tag){case 26:jl(o,a,u),o.flags&hc&&o.memoizedState!==null&&yP(u,Oo,o.memoizedState,o.memoizedProps);break;case 5:jl(o,a,u);break;case 3:case 4:var m=Oo;Oo=Cf(o.stateNode.containerInfo),jl(o,a,u),Oo=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=hc,hc=16777216,jl(o,a,u),hc=m):jl(o,a,u));break;default:jl(o,a,u)}}function G$(o){var a=o.alternate;if(a!==null&&(o=a.child,o!==null)){a.child=null;do a=o.sibling,o.sibling=null,o=a;while(o!==null)}}function yc(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];ir=m,K$(m,o)}G$(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)X$(o),o=o.sibling}function X$(o){switch(o.tag){case 0:case 11:case 15:yc(o),o.flags&2048&&Ha(9,o,o.return);break;case 3:yc(o);break;case 12:yc(o);break;case 22:var a=o.stateNode;o.memoizedState!==null&&a._visibility&2&&(o.return===null||o.return.tag!==13)?(a._visibility&=-3,sf(o)):yc(o);break;default:yc(o)}}function sf(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];ir=m,K$(m,o)}G$(o)}for(o=o.child;o!==null;){switch(a=o,a.tag){case 0:case 11:case 15:Ha(8,a,a.return),sf(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,sf(a));break;default:sf(a)}o=o.sibling}}function K$(o,a){for(;ir!==null;){var u=ir;switch(u.tag){case 0:case 11:case 15:Ha(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var m=u.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:ec(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,ir=m;else e:for(u=o;ir!==null;){m=ir;var v=m.sibling,E=m.return;if(L$(m),m===u){ir=null;break e}if(v!==null){v.return=E,ir=v;break e}ir=E}}}var PI={getCacheForType:function(o){var a=yr(Wn),u=a.data.get(o);return u===void 0&&(u=o(),a.data.set(o,u)),u},cacheSignal:function(){return yr(Wn).controller.signal}},zI=typeof WeakMap=="function"?WeakMap:Map,ln=0,Cn=null,Wt=null,Gt=0,mn=0,Qr=null,Ba=!1,_l=!1,Sh=!1,pa=0,Dn=0,La=0,Ni=0,Ch=0,Zr=0,Hl=0,bc=null,Hr=null,$h=!1,cf=0,Q$=0,uf=1/0,df=null,Va=null,Zn=0,Fa=null,Bl=null,ga=0,xh=0,wh=null,Z$=null,vc=0,Eh=null;function Jr(){return(ln&2)!==0&&Gt!==0?Gt&-Gt:_.T!==null?Ih():ft()}function J$(){if(Zr===0)if((Gt&536870912)===0||Qt){var o=Xe;Xe<<=1,(Xe&3932160)===0&&(Xe=262144),Zr=o}else Zr=536870912;return o=Xr.current,o!==null&&(o.flags|=32),Zr}function Br(o,a,u){(o===Cn&&(mn===2||mn===9)||o.cancelPendingCommit!==null)&&(Ll(o,0),ka(o,Gt,Zr,!1)),He(o,u),((ln&2)===0||o!==Cn)&&(o===Cn&&((ln&2)===0&&(Ni|=u),Dn===4&&ka(o,Gt,Zr,!1)),ko(o))}function ex(o,a,u){if((ln&6)!==0)throw Error(r(327));var m=!u&&(a&127)===0&&(a&o.expiredLanes)===0||St(o,a),v=m?jI(o,a):Rh(o,a,!0),E=m;do{if(v===0){_l&&!m&&ka(o,a,0,!1);break}else{if(u=o.current.alternate,E&&!AI(u)){v=Rh(o,a,!1),E=!1;continue}if(v===2){if(E=a,o.errorRecoveryDisabledLanes&E)var F=0;else F=o.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){a=F;e:{var ee=o;v=bc;var ue=ee.current.memoizedState.isDehydrated;if(ue&&(Ll(ee,F).flags|=256),F=Rh(ee,F,!1),F!==2){if(Sh&&!ue){ee.errorRecoveryDisabledLanes|=E,Ni|=E,v=4;break e}E=Hr,Hr=v,E!==null&&(Hr===null?Hr=E:Hr.push.apply(Hr,E))}v=F}if(E=!1,v!==2)continue}}if(v===1){Ll(o,0),ka(o,a,0,!0);break}e:{switch(m=o,E=v,E){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ka(m,a,Zr,!Ba);break e;case 2:Hr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(v=cf+300-be(),10<v)){if(ka(m,a,Zr,!Ba),lt(m,0,!0)!==0)break e;ga=a,m.timeoutHandle=Ix(tx.bind(null,m,u,Hr,df,$h,a,Zr,Ni,Hl,Ba,E,"Throttled",-0,0),v);break e}tx(m,u,Hr,df,$h,a,Zr,Ni,Hl,Ba,E,null,-0,0)}}break}while(!0);ko(o)}function tx(o,a,u,m,v,E,F,ee,ue,$e,je,ke,xe,Te){if(o.timeoutHandle=-1,ke=a.subtreeFlags,ke&8192||(ke&16785408)===16785408){ke={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mo},U$(a,E,ke);var st=(E&62914560)===E?cf-be():(E&4194048)===E?Q$-be():0;if(st=bP(ke,st),st!==null){ga=E,o.cancelPendingCommit=st(cx.bind(null,o,a,E,u,m,v,F,ee,ue,je,ke,null,xe,Te)),ka(o,E,F,!$e);return}}cx(o,a,E,u,m,v,F,ee,ue)}function AI(o){for(var a=o;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var v=u[m],E=v.getSnapshot;v=v.value;try{if(!Ur(E(),v))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ka(o,a,u,m){a&=~Ch,a&=~Ni,o.suspendedLanes|=a,o.pingedLanes&=~a,m&&(o.warmLanes|=a),m=o.expirationTimes;for(var v=a;0<v;){var E=31-Ae(v),F=1<<E;m[E]=-1,v&=~F}u!==0&&We(o,u,a)}function ff(){return(ln&6)===0?(Sc(0),!1):!0}function Mh(){if(Wt!==null){if(mn===0)var o=Wt.return;else o=Wt,oa=Ci=null,Fg(o),Nl=null,nc=0,o=Wt;for(;o!==null;)P$(o.alternate,o),o=o.return;Wt=null}}function Ll(o,a){var u=o.timeoutHandle;u!==-1&&(o.timeoutHandle=-1,eP(u)),u=o.cancelPendingCommit,u!==null&&(o.cancelPendingCommit=null,u()),ga=0,Mh(),Cn=o,Wt=u=na(o.current,null),Gt=a,mn=0,Qr=null,Ba=!1,_l=St(o,a),Sh=!1,Hl=Zr=Ch=Ni=La=Dn=0,Hr=bc=null,$h=!1,(a&8)!==0&&(a|=a&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=a;0<m;){var v=31-Ae(m),E=1<<v;a|=o[v],m&=~E}return pa=a,Pd(),u}function nx(o,a){zt=null,_.H=uc,a===Tl||a===Ld?(a=bC(),mn=3):a===Ng?(a=bC(),mn=4):mn=a===oh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Qr=a,Wt===null&&(Dn=1,ef(o,so(a,o.current)))}function rx(){var o=Xr.current;return o===null?!0:(Gt&4194048)===Gt?mo===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?o===mo:!1}function ox(){var o=_.H;return _.H=uc,o===null?uc:o}function ax(){var o=_.A;return _.A=PI,o}function mf(){Dn=4,Ba||(Gt&4194048)!==Gt&&Xr.current!==null||(_l=!0),(La&134217727)===0&&(Ni&134217727)===0||Cn===null||ka(Cn,Gt,Zr,!1)}function Rh(o,a,u){var m=ln;ln|=2;var v=ox(),E=ax();(Cn!==o||Gt!==a)&&(df=null,Ll(o,a)),a=!1;var F=Dn;e:do try{if(mn!==0&&Wt!==null){var ee=Wt,ue=Qr;switch(mn){case 8:Mh(),F=6;break e;case 3:case 2:case 9:case 6:Xr.current===null&&(a=!0);var $e=mn;if(mn=0,Qr=null,Vl(o,ee,ue,$e),u&&_l){F=0;break e}break;default:$e=mn,mn=0,Qr=null,Vl(o,ee,ue,$e)}}DI(),F=Dn;break}catch(je){nx(o,je)}while(!0);return a&&o.shellSuspendCounter++,oa=Ci=null,ln=m,_.H=v,_.A=E,Wt===null&&(Cn=null,Gt=0,Pd()),F}function DI(){for(;Wt!==null;)ix(Wt)}function jI(o,a){var u=ln;ln|=2;var m=ox(),v=ax();Cn!==o||Gt!==a?(df=null,uf=be()+500,Ll(o,a)):_l=St(o,a);e:do try{if(mn!==0&&Wt!==null){a=Wt;var E=Qr;t:switch(mn){case 1:mn=0,Qr=null,Vl(o,a,E,1);break;case 2:case 9:if(hC(E)){mn=0,Qr=null,lx(a);break}a=function(){mn!==2&&mn!==9||Cn!==o||(mn=7),ko(o)},E.then(a,a);break e;case 3:mn=7;break e;case 4:mn=5;break e;case 7:hC(E)?(mn=0,Qr=null,lx(a)):(mn=0,Qr=null,Vl(o,a,E,7));break;case 5:var F=null;switch(Wt.tag){case 26:F=Wt.memoizedState;case 5:case 27:var ee=Wt;if(F?Yx(F):ee.stateNode.complete){mn=0,Qr=null;var ue=ee.sibling;if(ue!==null)Wt=ue;else{var $e=ee.return;$e!==null?(Wt=$e,pf($e)):Wt=null}break t}}mn=0,Qr=null,Vl(o,a,E,5);break;case 6:mn=0,Qr=null,Vl(o,a,E,6);break;case 8:Mh(),Dn=6;break e;default:throw Error(r(462))}}_I();break}catch(je){nx(o,je)}while(!0);return oa=Ci=null,_.H=m,_.A=v,ln=u,Wt!==null?0:(Cn=null,Gt=0,Pd(),Dn)}function _I(){for(;Wt!==null&&!we();)ix(Wt)}function ix(o){var a=N$(o.alternate,o,pa);o.memoizedProps=o.pendingProps,a===null?pf(o):Wt=a}function lx(o){var a=o,u=a.alternate;switch(a.tag){case 15:case 0:a=w$(u,a,a.pendingProps,a.type,void 0,Gt);break;case 11:a=w$(u,a,a.pendingProps,a.type.render,a.ref,Gt);break;case 5:Fg(a);default:P$(u,a),a=Wt=aC(a,pa),a=N$(u,a,pa)}o.memoizedProps=o.pendingProps,a===null?pf(o):Wt=a}function Vl(o,a,u,m){oa=Ci=null,Fg(a),Nl=null,nc=0;var v=a.return;try{if(EI(o,v,a,u,Gt)){Dn=1,ef(o,so(u,o.current)),Wt=null;return}}catch(E){if(v!==null)throw Wt=v,E;Dn=1,ef(o,so(u,o.current)),Wt=null;return}a.flags&32768?(Qt||m===1?o=!0:_l||(Gt&536870912)!==0?o=!1:(Ba=o=!0,(m===2||m===9||m===3||m===6)&&(m=Xr.current,m!==null&&m.tag===13&&(m.flags|=16384))),sx(a,o)):pf(a)}function pf(o){var a=o;do{if((a.flags&32768)!==0){sx(a,Ba);return}o=a.return;var u=OI(a.alternate,a,pa);if(u!==null){Wt=u;return}if(a=a.sibling,a!==null){Wt=a;return}Wt=a=o}while(a!==null);Dn===0&&(Dn=5)}function sx(o,a){do{var u=TI(o.alternate,o);if(u!==null){u.flags&=32767,Wt=u;return}if(u=o.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(o=o.sibling,o!==null)){Wt=o;return}Wt=o=u}while(o!==null);Dn=6,Wt=null}function cx(o,a,u,m,v,E,F,ee,ue){o.cancelPendingCommit=null;do gf();while(Zn!==0);if((ln&6)!==0)throw Error(r(327));if(a!==null){if(a===o.current)throw Error(r(177));if(E=a.lanes|a.childLanes,E|=gg,ze(o,u,E,F,ee,ue),o===Cn&&(Wt=Cn=null,Gt=0),Bl=a,Fa=o,ga=u,xh=E,wh=v,Z$=m,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,VI(Ge,function(){return px(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||m){m=_.T,_.T=null,v=B.p,B.p=2,F=ln,ln|=4;try{NI(o,a,u)}finally{ln=F,B.p=v,_.T=m}}Zn=1,ux(),dx(),fx()}}function ux(){if(Zn===1){Zn=0;var o=Fa,a=Bl,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=_.T,_.T=null;var m=B.p;B.p=2;var v=ln;ln|=4;try{W$(a,o);var E=Bh,F=K1(o.containerInfo),ee=E.focusedElem,ue=E.selectionRange;if(F!==ee&&ee&&ee.ownerDocument&&X1(ee.ownerDocument.documentElement,ee)){if(ue!==null&&ug(ee)){var $e=ue.start,je=ue.end;if(je===void 0&&(je=$e),"selectionStart"in ee)ee.selectionStart=$e,ee.selectionEnd=Math.min(je,ee.value.length);else{var ke=ee.ownerDocument||document,xe=ke&&ke.defaultView||window;if(xe.getSelection){var Te=xe.getSelection(),st=ee.textContent.length,vt=Math.min(ue.start,st),bn=ue.end===void 0?vt:Math.min(ue.end,st);!Te.extend&&vt>bn&&(F=bn,bn=vt,vt=F);var ye=G1(ee,vt),me=G1(ee,bn);if(ye&&me&&(Te.rangeCount!==1||Te.anchorNode!==ye.node||Te.anchorOffset!==ye.offset||Te.focusNode!==me.node||Te.focusOffset!==me.offset)){var Ce=ke.createRange();Ce.setStart(ye.node,ye.offset),Te.removeAllRanges(),vt>bn?(Te.addRange(Ce),Te.extend(me.node,me.offset)):(Ce.setEnd(me.node,me.offset),Te.addRange(Ce))}}}}for(ke=[],Te=ee;Te=Te.parentNode;)Te.nodeType===1&&ke.push({element:Te,left:Te.scrollLeft,top:Te.scrollTop});for(typeof ee.focus=="function"&&ee.focus(),ee=0;ee<ke.length;ee++){var Le=ke[ee];Le.element.scrollLeft=Le.left,Le.element.scrollTop=Le.top}}Rf=!!Hh,Bh=Hh=null}finally{ln=v,B.p=m,_.T=u}}o.current=a,Zn=2}}function dx(){if(Zn===2){Zn=0;var o=Fa,a=Bl,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=_.T,_.T=null;var m=B.p;B.p=2;var v=ln;ln|=4;try{B$(o,a.alternate,a)}finally{ln=v,B.p=m,_.T=u}}Zn=3}}function fx(){if(Zn===4||Zn===3){Zn=0,se();var o=Fa,a=Bl,u=ga,m=Z$;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Zn=5:(Zn=0,Bl=Fa=null,mx(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(Va=null),it(u),a=a.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(Qe,a,void 0,(a.current.flags&128)===128)}catch{}if(m!==null){a=_.T,v=B.p,B.p=2,_.T=null;try{for(var E=o.onRecoverableError,F=0;F<m.length;F++){var ee=m[F];E(ee.value,{componentStack:ee.stack})}}finally{_.T=a,B.p=v}}(ga&3)!==0&&gf(),ko(o),v=o.pendingLanes,(u&261930)!==0&&(v&42)!==0?o===Eh?vc++:(vc=0,Eh=o):vc=0,Sc(0)}}function mx(o,a){(o.pooledCacheLanes&=a)===0&&(a=o.pooledCache,a!=null&&(o.pooledCache=null,ec(a)))}function gf(){return ux(),dx(),fx(),px()}function px(){if(Zn!==5)return!1;var o=Fa,a=xh;xh=0;var u=it(ga),m=_.T,v=B.p;try{B.p=32>u?32:u,_.T=null,u=wh,wh=null;var E=Fa,F=ga;if(Zn=0,Bl=Fa=null,ga=0,(ln&6)!==0)throw Error(r(331));var ee=ln;if(ln|=4,X$(E.current),Y$(E,E.current,F,u),ln=ee,Sc(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(Qe,E)}catch{}return!0}finally{B.p=v,_.T=m,mx(o,a)}}function gx(o,a,u){a=so(u,a),a=rh(o.stateNode,a,2),o=Da(o,a,2),o!==null&&(He(o,2),ko(o))}function pn(o,a,u){if(o.tag===3)gx(o,o,u);else for(;a!==null;){if(a.tag===3){gx(a,o,u);break}else if(a.tag===1){var m=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Va===null||!Va.has(m))){o=so(u,o),u=h$(2),m=Da(a,u,2),m!==null&&(y$(u,m,a,o),He(m,2),ko(m));break}}a=a.return}}function Oh(o,a,u){var m=o.pingCache;if(m===null){m=o.pingCache=new zI;var v=new Set;m.set(a,v)}else v=m.get(a),v===void 0&&(v=new Set,m.set(a,v));v.has(u)||(Sh=!0,v.add(u),o=HI.bind(null,o,a,u),a.then(o,o))}function HI(o,a,u){var m=o.pingCache;m!==null&&m.delete(a),o.pingedLanes|=o.suspendedLanes&u,o.warmLanes&=~u,Cn===o&&(Gt&u)===u&&(Dn===4||Dn===3&&(Gt&62914560)===Gt&&300>be()-cf?(ln&2)===0&&Ll(o,0):Ch|=u,Hl===Gt&&(Hl=0)),ko(o)}function hx(o,a){a===0&&(a=qe()),o=bi(o,a),o!==null&&(He(o,a),ko(o))}function BI(o){var a=o.memoizedState,u=0;a!==null&&(u=a.retryLane),hx(o,u)}function LI(o,a){var u=0;switch(o.tag){case 31:case 13:var m=o.stateNode,v=o.memoizedState;v!==null&&(u=v.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(a),hx(o,u)}function VI(o,a){return Ie(o,a)}var hf=null,Fl=null,Th=!1,yf=!1,Nh=!1,Wa=0;function ko(o){o!==Fl&&o.next===null&&(Fl===null?hf=Fl=o:Fl=Fl.next=o),yf=!0,Th||(Th=!0,kI())}function Sc(o,a){if(!Nh&&yf){Nh=!0;do for(var u=!1,m=hf;m!==null;){if(o!==0){var v=m.pendingLanes;if(v===0)var E=0;else{var F=m.suspendedLanes,ee=m.pingedLanes;E=(1<<31-Ae(42|o)+1)-1,E&=v&~(F&~ee),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,Sx(m,E))}else E=Gt,E=lt(m,m===Cn?E:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(E&3)===0||St(m,E)||(u=!0,Sx(m,E));m=m.next}while(u);Nh=!1}}function FI(){yx()}function yx(){yf=Th=!1;var o=0;Wa!==0&&JI()&&(o=Wa);for(var a=be(),u=null,m=hf;m!==null;){var v=m.next,E=bx(m,a);E===0?(m.next=null,u===null?hf=v:u.next=v,v===null&&(Fl=u)):(u=m,(o!==0||(E&3)!==0)&&(yf=!0)),m=v}Zn!==0&&Zn!==5||Sc(o),Wa!==0&&(Wa=0)}function bx(o,a){for(var u=o.suspendedLanes,m=o.pingedLanes,v=o.expirationTimes,E=o.pendingLanes&-62914561;0<E;){var F=31-Ae(E),ee=1<<F,ue=v[F];ue===-1?((ee&u)===0||(ee&m)!==0)&&(v[F]=Ct(ee,a)):ue<=a&&(o.expiredLanes|=ee),E&=~ee}if(a=Cn,u=Gt,u=lt(o,o===a?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,u===0||o===a&&(mn===2||mn===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&Me(m),o.callbackNode=null,o.callbackPriority=0;if((u&3)===0||St(o,u)){if(a=u&-u,a===o.callbackPriority)return a;switch(m!==null&&Me(m),it(u)){case 2:case 8:u=Fe;break;case 32:u=Ge;break;case 268435456:u=Oe;break;default:u=Ge}return m=vx.bind(null,o),u=Ie(u,m),o.callbackPriority=a,o.callbackNode=u,a}return m!==null&&m!==null&&Me(m),o.callbackPriority=2,o.callbackNode=null,2}function vx(o,a){if(Zn!==0&&Zn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var u=o.callbackNode;if(gf()&&o.callbackNode!==u)return null;var m=Gt;return m=lt(o,o===Cn?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(ex(o,m,a),bx(o,be()),o.callbackNode!=null&&o.callbackNode===u?vx.bind(null,o):null)}function Sx(o,a){if(gf())return null;ex(o,a,!0)}function kI(){tP(function(){(ln&6)!==0?Ie(Ne,FI):yx()})}function Ih(){if(Wa===0){var o=Rl;o===0&&(o=Pe,Pe<<=1,(Pe&261888)===0&&(Pe=256)),Wa=o}return Wa}function Cx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:yl(""+o)}function $x(o,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,o.id&&u.setAttribute("form",o.id),a.parentNode.insertBefore(u,a),o=new FormData(o),u.parentNode.removeChild(u),o}function WI(o,a,u,m,v){if(a==="submit"&&u&&u.stateNode===v){var E=Cx((v[nn]||null).action),F=m.submitter;F&&(a=(a=F[nn]||null)?Cx(a.formAction):F.getAttribute("formAction"),a!==null&&(E=a,F=null));var ee=new Od("action","action",null,m,v);o.push({event:ee,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Wa!==0){var ue=F?$x(v,F):new FormData(v);Qg(u,{pending:!0,data:ue,method:v.method,action:E},null,ue)}}else typeof E=="function"&&(ee.preventDefault(),ue=F?$x(v,F):new FormData(v),Qg(u,{pending:!0,data:ue,method:v.method,action:E},E,ue))},currentTarget:v}]})}}for(var Ph=0;Ph<pg.length;Ph++){var zh=pg[Ph],qI=zh.toLowerCase(),YI=zh[0].toUpperCase()+zh.slice(1);Ro(qI,"on"+YI)}Ro(J1,"onAnimationEnd"),Ro(eC,"onAnimationIteration"),Ro(tC,"onAnimationStart"),Ro("dblclick","onDoubleClick"),Ro("focusin","onFocus"),Ro("focusout","onBlur"),Ro(sI,"onTransitionRun"),Ro(cI,"onTransitionStart"),Ro(uI,"onTransitionCancel"),Ro(nC,"onTransitionEnd"),pr("onMouseEnter",["mouseout","mouseover"]),pr("onMouseLeave",["mouseout","mouseover"]),pr("onPointerEnter",["pointerout","pointerover"]),pr("onPointerLeave",["pointerout","pointerover"]),$r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$r("onBeforeInput",["compositionend","keypress","textInput","paste"]),$r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cc="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(" "),UI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cc));function xx(o,a){a=(a&4)!==0;for(var u=0;u<o.length;u++){var m=o[u],v=m.event;m=m.listeners;e:{var E=void 0;if(a)for(var F=m.length-1;0<=F;F--){var ee=m[F],ue=ee.instance,$e=ee.currentTarget;if(ee=ee.listener,ue!==E&&v.isPropagationStopped())break e;E=ee,v.currentTarget=$e;try{E(v)}catch(je){Id(je)}v.currentTarget=null,E=ue}else for(F=0;F<m.length;F++){if(ee=m[F],ue=ee.instance,$e=ee.currentTarget,ee=ee.listener,ue!==E&&v.isPropagationStopped())break e;E=ee,v.currentTarget=$e;try{E(v)}catch(je){Id(je)}v.currentTarget=null,E=ue}}}}function qt(o,a){var u=a[Ke];u===void 0&&(u=a[Ke]=new Set);var m=o+"__bubble";u.has(m)||(wx(a,o,2,!1),u.add(m))}function Ah(o,a,u){var m=0;a&&(m|=4),wx(u,o,m,a)}var bf="_reactListening"+Math.random().toString(36).slice(2);function Dh(o){if(!o[bf]){o[bf]=!0,mr.forEach(function(u){u!=="selectionchange"&&(UI.has(u)||Ah(u,!1,o),Ah(u,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[bf]||(a[bf]=!0,Ah("selectionchange",!1,a))}}function wx(o,a,u,m){switch(Jx(a)){case 2:var v=CP;break;case 8:v=$P;break;default:v=Kh}u=v.bind(null,a,u,o),v=void 0,!tg||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),m?v!==void 0?o.addEventListener(a,u,{capture:!0,passive:v}):o.addEventListener(a,u,!0):v!==void 0?o.addEventListener(a,u,{passive:v}):o.addEventListener(a,u,!1)}function jh(o,a,u,m,v){var E=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var F=m.tag;if(F===3||F===4){var ee=m.stateNode.containerInfo;if(ee===v)break;if(F===4)for(F=m.return;F!==null;){var ue=F.tag;if((ue===3||ue===4)&&F.stateNode.containerInfo===v)return;F=F.return}for(;ee!==null;){if(F=kt(ee),F===null)return;if(ue=F.tag,ue===5||ue===6||ue===26||ue===27){m=E=F;continue e}ee=ee.parentNode}}m=m.return}T1(function(){var $e=E,je=bt(u),ke=[];e:{var xe=rC.get(o);if(xe!==void 0){var Te=Od,st=o;switch(o){case"keypress":if(Md(u)===0)break e;case"keydown":case"keyup":Te=LN;break;case"focusin":st="focus",Te=ag;break;case"focusout":st="blur",Te=ag;break;case"beforeblur":case"afterblur":Te=ag;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Te=P1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Te=ON;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Te=kN;break;case J1:case eC:case tC:Te=IN;break;case nC:Te=qN;break;case"scroll":case"scrollend":Te=MN;break;case"wheel":Te=UN;break;case"copy":case"cut":case"paste":Te=zN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Te=A1;break;case"toggle":case"beforetoggle":Te=XN}var vt=(a&4)!==0,bn=!vt&&(o==="scroll"||o==="scrollend"),ye=vt?xe!==null?xe+"Capture":null:xe;vt=[];for(var me=$e,Ce;me!==null;){var Le=me;if(Ce=Le.stateNode,Le=Le.tag,Le!==5&&Le!==26&&Le!==27||Ce===null||ye===null||(Le=ks(me,ye),Le!=null&&vt.push($c(me,Le,Ce))),bn)break;me=me.return}0<vt.length&&(xe=new Te(xe,st,null,u,je),ke.push({event:xe,listeners:vt}))}}if((a&7)===0){e:{if(xe=o==="mouseover"||o==="pointerover",Te=o==="mouseout"||o==="pointerout",xe&&u!==Vt&&(st=u.relatedTarget||u.fromElement)&&(kt(st)||st[wt]))break e;if((Te||xe)&&(xe=je.window===je?je:(xe=je.ownerDocument)?xe.defaultView||xe.parentWindow:window,Te?(st=u.relatedTarget||u.toElement,Te=$e,st=st?kt(st):null,st!==null&&(bn=s(st),vt=st.tag,st!==bn||vt!==5&&vt!==27&&vt!==6)&&(st=null)):(Te=null,st=$e),Te!==st)){if(vt=P1,Le="onMouseLeave",ye="onMouseEnter",me="mouse",(o==="pointerout"||o==="pointerover")&&(vt=A1,Le="onPointerLeave",ye="onPointerEnter",me="pointer"),bn=Te==null?xe:En(Te),Ce=st==null?xe:En(st),xe=new vt(Le,me+"leave",Te,u,je),xe.target=bn,xe.relatedTarget=Ce,Le=null,kt(je)===$e&&(vt=new vt(ye,me+"enter",st,u,je),vt.target=Ce,vt.relatedTarget=bn,Le=vt),bn=Le,Te&&st)t:{for(vt=GI,ye=Te,me=st,Ce=0,Le=ye;Le;Le=vt(Le))Ce++;Le=0;for(var pt=me;pt;pt=vt(pt))Le++;for(;0<Ce-Le;)ye=vt(ye),Ce--;for(;0<Le-Ce;)me=vt(me),Le--;for(;Ce--;){if(ye===me||me!==null&&ye===me.alternate){vt=ye;break t}ye=vt(ye),me=vt(me)}vt=null}else vt=null;Te!==null&&Ex(ke,xe,Te,vt,!1),st!==null&&bn!==null&&Ex(ke,bn,st,vt,!0)}}e:{if(xe=$e?En($e):window,Te=xe.nodeName&&xe.nodeName.toLowerCase(),Te==="select"||Te==="input"&&xe.type==="file")var rn=F1;else if(L1(xe))if(k1)rn=aI;else{rn=rI;var ct=nI}else Te=xe.nodeName,!Te||Te.toLowerCase()!=="input"||xe.type!=="checkbox"&&xe.type!=="radio"?$e&&zr($e.elementType)&&(rn=F1):rn=oI;if(rn&&(rn=rn(o,$e))){V1(ke,rn,u,je);break e}ct&&ct(o,xe,$e),o==="focusout"&&$e&&xe.type==="number"&&$e.memoizedProps.value!=null&&Ho(xe,"number",xe.value)}switch(ct=$e?En($e):window,o){case"focusin":(L1(ct)||ct.contentEditable==="true")&&(vl=ct,dg=$e,Qs=null);break;case"focusout":Qs=dg=vl=null;break;case"mousedown":fg=!0;break;case"contextmenu":case"mouseup":case"dragend":fg=!1,Q1(ke,u,je);break;case"selectionchange":if(lI)break;case"keydown":case"keyup":Q1(ke,u,je)}var jt;if(lg)e:{switch(o){case"compositionstart":var Xt="onCompositionStart";break e;case"compositionend":Xt="onCompositionEnd";break e;case"compositionupdate":Xt="onCompositionUpdate";break e}Xt=void 0}else bl?H1(o,u)&&(Xt="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(Xt="onCompositionStart");Xt&&(D1&&u.locale!=="ko"&&(bl||Xt!=="onCompositionStart"?Xt==="onCompositionEnd"&&bl&&(jt=N1()):(Oa=je,ng="value"in Oa?Oa.value:Oa.textContent,bl=!0)),ct=vf($e,Xt),0<ct.length&&(Xt=new z1(Xt,o,null,u,je),ke.push({event:Xt,listeners:ct}),jt?Xt.data=jt:(jt=B1(u),jt!==null&&(Xt.data=jt)))),(jt=QN?ZN(o,u):JN(o,u))&&(Xt=vf($e,"onBeforeInput"),0<Xt.length&&(ct=new z1("onBeforeInput","beforeinput",null,u,je),ke.push({event:ct,listeners:Xt}),ct.data=jt)),WI(ke,o,$e,u,je)}xx(ke,a)})}function $c(o,a,u){return{instance:o,listener:a,currentTarget:u}}function vf(o,a){for(var u=a+"Capture",m=[];o!==null;){var v=o,E=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||E===null||(v=ks(o,u),v!=null&&m.unshift($c(o,v,E)),v=ks(o,a),v!=null&&m.push($c(o,v,E))),o.tag===3)return m;o=o.return}return[]}function GI(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Ex(o,a,u,m,v){for(var E=a._reactName,F=[];u!==null&&u!==m;){var ee=u,ue=ee.alternate,$e=ee.stateNode;if(ee=ee.tag,ue!==null&&ue===m)break;ee!==5&&ee!==26&&ee!==27||$e===null||(ue=$e,v?($e=ks(u,E),$e!=null&&F.unshift($c(u,$e,ue))):v||($e=ks(u,E),$e!=null&&F.push($c(u,$e,ue)))),u=u.return}F.length!==0&&o.push({event:a,listeners:F})}var XI=/\r\n?/g,KI=/\u0000|\uFFFD/g;function Mx(o){return(typeof o=="string"?o:""+o).replace(XI,`
9
+ `).replace(KI,"")}function Rx(o,a){return a=Mx(a),Mx(o)===a}function yn(o,a,u,m,v,E){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||Bo(o,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&Bo(o,""+m);break;case"className":Mn(o,"class",m);break;case"tabIndex":Mn(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Mn(o,u,m);break;case"style":Qn(o,m,E);break;case"data":if(a!=="object"){Mn(o,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){o.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(u);break}m=yl(""+m),o.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){o.setAttribute(u,"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 E=="function"&&(u==="formAction"?(a!=="input"&&yn(o,a,"name",v.name,v,null),yn(o,a,"formEncType",v.formEncType,v,null),yn(o,a,"formMethod",v.formMethod,v,null),yn(o,a,"formTarget",v.formTarget,v,null)):(yn(o,a,"encType",v.encType,v,null),yn(o,a,"method",v.method,v,null),yn(o,a,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(u);break}m=yl(""+m),o.setAttribute(u,m);break;case"onClick":m!=null&&(o.onclick=Mo);break;case"onScroll":m!=null&&qt("scroll",o);break;case"onScrollEnd":m!=null&&qt("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}u=yl(""+m),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,""+m):o.removeAttribute(u);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":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,""):o.removeAttribute(u);break;case"capture":case"download":m===!0?o.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,m):o.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(u,m):o.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(u):o.setAttribute(u,m);break;case"popover":qt("beforetoggle",o),qt("toggle",o),Sn(o,"popover",m);break;case"xlinkActuate":Fn(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Fn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Fn(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Fn(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Fn(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Fn(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Fn(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Fn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Fn(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Sn(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=hl.get(u)||u,Sn(o,u,m))}}function _h(o,a,u,m,v,E){switch(u){case"style":Qn(o,m,E);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"children":typeof m=="string"?Bo(o,m):(typeof m=="number"||typeof m=="bigint")&&Bo(o,""+m);break;case"onScroll":m!=null&&qt("scroll",o);break;case"onScrollEnd":m!=null&&qt("scrollend",o);break;case"onClick":m!=null&&(o.onclick=Mo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zn.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),a=u.slice(2,v?u.length-7:void 0),E=o[nn]||null,E=E!=null?E[u]:null,typeof E=="function"&&o.removeEventListener(a,E,v),typeof m=="function")){typeof E!="function"&&E!==null&&(u in o?o[u]=null:o.hasAttribute(u)&&o.removeAttribute(u)),o.addEventListener(a,m,v);break e}u in o?o[u]=m:m===!0?o.setAttribute(u,""):Sn(o,u,m)}}}function vr(o,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",o),qt("load",o);var m=!1,v=!1,E;for(E in u)if(u.hasOwnProperty(E)){var F=u[E];if(F!=null)switch(E){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:yn(o,a,E,F,u,null)}}v&&yn(o,a,"srcSet",u.srcSet,u,null),m&&yn(o,a,"src",u.src,u,null);return;case"input":qt("invalid",o);var ee=E=F=v=null,ue=null,$e=null;for(m in u)if(u.hasOwnProperty(m)){var je=u[m];if(je!=null)switch(m){case"name":v=je;break;case"type":F=je;break;case"checked":ue=je;break;case"defaultChecked":$e=je;break;case"value":E=je;break;case"defaultValue":ee=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(r(137,a));break;default:yn(o,a,m,je,u,null)}}ea(o,E,ee,ue,$e,F,v,!1);return;case"select":qt("invalid",o),m=F=E=null;for(v in u)if(u.hasOwnProperty(v)&&(ee=u[v],ee!=null))switch(v){case"value":E=ee;break;case"defaultValue":F=ee;break;case"multiple":m=ee;default:yn(o,a,v,ee,u,null)}a=E,u=F,o.multiple=!!m,a!=null?io(o,!!m,a,!1):u!=null&&io(o,!!m,u,!0);return;case"textarea":qt("invalid",o),E=v=m=null;for(F in u)if(u.hasOwnProperty(F)&&(ee=u[F],ee!=null))switch(F){case"value":m=ee;break;case"defaultValue":v=ee;break;case"children":E=ee;break;case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(91));break;default:yn(o,a,F,ee,u,null)}gl(o,m,v,E);return;case"option":for(ue in u)u.hasOwnProperty(ue)&&(m=u[ue],m!=null)&&(ue==="selected"?o.selected=m&&typeof m!="function"&&typeof m!="symbol":yn(o,a,ue,m,u,null));return;case"dialog":qt("beforetoggle",o),qt("toggle",o),qt("cancel",o),qt("close",o);break;case"iframe":case"object":qt("load",o);break;case"video":case"audio":for(m=0;m<Cc.length;m++)qt(Cc[m],o);break;case"image":qt("error",o),qt("load",o);break;case"details":qt("toggle",o);break;case"embed":case"source":case"link":qt("error",o),qt("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($e in u)if(u.hasOwnProperty($e)&&(m=u[$e],m!=null))switch($e){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:yn(o,a,$e,m,u,null)}return;default:if(zr(a)){for(je in u)u.hasOwnProperty(je)&&(m=u[je],m!==void 0&&_h(o,a,je,m,u,void 0));return}}for(ee in u)u.hasOwnProperty(ee)&&(m=u[ee],m!=null&&yn(o,a,ee,m,u,null))}function QI(o,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,E=null,F=null,ee=null,ue=null,$e=null,je=null;for(Te in u){var ke=u[Te];if(u.hasOwnProperty(Te)&&ke!=null)switch(Te){case"checked":break;case"value":break;case"defaultValue":ue=ke;default:m.hasOwnProperty(Te)||yn(o,a,Te,null,m,ke)}}for(var xe in m){var Te=m[xe];if(ke=u[xe],m.hasOwnProperty(xe)&&(Te!=null||ke!=null))switch(xe){case"type":E=Te;break;case"name":v=Te;break;case"checked":$e=Te;break;case"defaultChecked":je=Te;break;case"value":F=Te;break;case"defaultValue":ee=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,a));break;default:Te!==ke&&yn(o,a,xe,Te,m,ke)}}Jo(o,F,ee,ue,$e,je,E,v);return;case"select":Te=F=ee=xe=null;for(E in u)if(ue=u[E],u.hasOwnProperty(E)&&ue!=null)switch(E){case"value":break;case"multiple":Te=ue;default:m.hasOwnProperty(E)||yn(o,a,E,null,m,ue)}for(v in m)if(E=m[v],ue=u[v],m.hasOwnProperty(v)&&(E!=null||ue!=null))switch(v){case"value":xe=E;break;case"defaultValue":ee=E;break;case"multiple":F=E;default:E!==ue&&yn(o,a,v,E,m,ue)}a=ee,u=F,m=Te,xe!=null?io(o,!!u,xe,!1):!!m!=!!u&&(a!=null?io(o,!!u,a,!0):io(o,!!u,u?[]:"",!1));return;case"textarea":Te=xe=null;for(ee in u)if(v=u[ee],u.hasOwnProperty(ee)&&v!=null&&!m.hasOwnProperty(ee))switch(ee){case"value":break;case"children":break;default:yn(o,a,ee,null,m,v)}for(F in m)if(v=m[F],E=u[F],m.hasOwnProperty(F)&&(v!=null||E!=null))switch(F){case"value":xe=v;break;case"defaultValue":Te=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==E&&yn(o,a,F,v,m,E)}pl(o,xe,Te);return;case"option":for(var st in u)xe=u[st],u.hasOwnProperty(st)&&xe!=null&&!m.hasOwnProperty(st)&&(st==="selected"?o.selected=!1:yn(o,a,st,null,m,xe));for(ue in m)xe=m[ue],Te=u[ue],m.hasOwnProperty(ue)&&xe!==Te&&(xe!=null||Te!=null)&&(ue==="selected"?o.selected=xe&&typeof xe!="function"&&typeof xe!="symbol":yn(o,a,ue,xe,m,Te));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 vt in u)xe=u[vt],u.hasOwnProperty(vt)&&xe!=null&&!m.hasOwnProperty(vt)&&yn(o,a,vt,null,m,xe);for($e in m)if(xe=m[$e],Te=u[$e],m.hasOwnProperty($e)&&xe!==Te&&(xe!=null||Te!=null))switch($e){case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(r(137,a));break;default:yn(o,a,$e,xe,m,Te)}return;default:if(zr(a)){for(var bn in u)xe=u[bn],u.hasOwnProperty(bn)&&xe!==void 0&&!m.hasOwnProperty(bn)&&_h(o,a,bn,void 0,m,xe);for(je in m)xe=m[je],Te=u[je],!m.hasOwnProperty(je)||xe===Te||xe===void 0&&Te===void 0||_h(o,a,je,xe,m,Te);return}}for(var ye in u)xe=u[ye],u.hasOwnProperty(ye)&&xe!=null&&!m.hasOwnProperty(ye)&&yn(o,a,ye,null,m,xe);for(ke in m)xe=m[ke],Te=u[ke],!m.hasOwnProperty(ke)||xe===Te||xe==null&&Te==null||yn(o,a,ke,xe,m,Te)}function Ox(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ZI(){if(typeof performance.getEntriesByType=="function"){for(var o=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var v=u[m],E=v.transferSize,F=v.initiatorType,ee=v.duration;if(E&&ee&&Ox(F)){for(F=0,ee=v.responseEnd,m+=1;m<u.length;m++){var ue=u[m],$e=ue.startTime;if($e>ee)break;var je=ue.transferSize,ke=ue.initiatorType;je&&Ox(ke)&&(ue=ue.responseEnd,F+=je*(ue<ee?1:(ee-$e)/(ue-$e)))}if(--m,a+=8*(E+F)/(v.duration/1e3),o++,10<o)break}}if(0<o)return a/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Hh=null,Bh=null;function Sf(o){return o.nodeType===9?o:o.ownerDocument}function Tx(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 Nx(o,a){if(o===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&a==="foreignObject"?0:o}function Lh(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Vh=null;function JI(){var o=window.event;return o&&o.type==="popstate"?o===Vh?!1:(Vh=o,!0):(Vh=null,!1)}var Ix=typeof setTimeout=="function"?setTimeout:void 0,eP=typeof clearTimeout=="function"?clearTimeout:void 0,Px=typeof Promise=="function"?Promise:void 0,tP=typeof queueMicrotask=="function"?queueMicrotask:typeof Px<"u"?function(o){return Px.resolve(null).then(o).catch(nP)}:Ix;function nP(o){setTimeout(function(){throw o})}function qa(o){return o==="head"}function zx(o,a){var u=a,m=0;do{var v=u.nextSibling;if(o.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(m===0){o.removeChild(v),Yl(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")xc(o.ownerDocument.documentElement);else if(u==="head"){u=o.ownerDocument.head,xc(u);for(var E=u.firstChild;E;){var F=E.nextSibling,ee=E.nodeName;E[Ut]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=F}}else u==="body"&&xc(o.ownerDocument.body);u=v}while(u);Yl(a)}function Ax(o,a){var u=o;o=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(o===0)break;o--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||o++;u=m}while(u)}function Fh(o){var a=o.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Fh(u),an(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}o.removeChild(u)}}function rP(o,a,u,m){for(;o.nodeType===1;){var v=u;if(o.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Ut])switch(a){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(E=o.getAttribute("rel"),E==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(E!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(E=o.getAttribute("src"),(E!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&E&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(a==="input"&&o.type==="hidden"){var E=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===E)return o}else return o;if(o=po(o.nextSibling),o===null)break}return null}function oP(o,a,u){if(a==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=po(o.nextSibling),o===null))return null;return o}function Dx(o,a){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=po(o.nextSibling),o===null))return null;return o}function kh(o){return o.data==="$?"||o.data==="$~"}function Wh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function aP(o,a){var u=o.ownerDocument;if(o.data==="$~")o._reactRetry=a;else if(o.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function po(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return o}var qh=null;function jx(o){o=o.nextSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"||u==="/&"){if(a===0)return po(o.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}o=o.nextSibling}return null}function _x(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return o;a--}else u!=="/$"&&u!=="/&"||a++}o=o.previousSibling}return null}function Hx(o,a,u){switch(a=Sf(u),o){case"html":if(o=a.documentElement,!o)throw Error(r(452));return o;case"head":if(o=a.head,!o)throw Error(r(453));return o;case"body":if(o=a.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function xc(o){for(var a=o.attributes;a.length;)o.removeAttributeNode(a[0]);an(o)}var go=new Map,Bx=new Set;function Cf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ha=B.d;B.d={f:iP,r:lP,D:sP,C:cP,L:uP,m:dP,X:mP,S:fP,M:pP};function iP(){var o=ha.f(),a=ff();return o||a}function lP(o){var a=wn(o);a!==null&&a.tag===5&&a.type==="form"?n$(a):ha.r(o)}var kl=typeof document>"u"?null:document;function Lx(o,a,u){var m=kl;if(m&&typeof a=="string"&&a){var v=Hn(a);v='link[rel="'+o+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),Bx.has(v)||(Bx.add(v),o={rel:o,crossOrigin:u,href:a},m.querySelector(v)===null&&(a=m.createElement("link"),vr(a,"link",o),fn(a),m.head.appendChild(a)))}}function sP(o){ha.D(o),Lx("dns-prefetch",o,null)}function cP(o,a){ha.C(o,a),Lx("preconnect",o,a)}function uP(o,a,u){ha.L(o,a,u);var m=kl;if(m&&o&&a){var v='link[rel="preload"][as="'+Hn(a)+'"]';a==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Hn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Hn(u.imageSizes)+'"]')):v+='[href="'+Hn(o)+'"]';var E=v;switch(a){case"style":E=Wl(o);break;case"script":E=ql(o)}go.has(E)||(o=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:o,as:a},u),go.set(E,o),m.querySelector(v)!==null||a==="style"&&m.querySelector(wc(E))||a==="script"&&m.querySelector(Ec(E))||(a=m.createElement("link"),vr(a,"link",o),fn(a),m.head.appendChild(a)))}}function dP(o,a){ha.m(o,a);var u=kl;if(u&&o){var m=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+Hn(m)+'"][href="'+Hn(o)+'"]',E=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=ql(o)}if(!go.has(E)&&(o=h({rel:"modulepreload",href:o},a),go.set(E,o),u.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ec(E)))return}m=u.createElement("link"),vr(m,"link",o),fn(m),u.head.appendChild(m)}}}function fP(o,a,u){ha.S(o,a,u);var m=kl;if(m&&o){var v=Cr(m).hoistableStyles,E=Wl(o);a=a||"default";var F=v.get(E);if(!F){var ee={loading:0,preload:null};if(F=m.querySelector(wc(E)))ee.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":a},u),(u=go.get(E))&&Yh(o,u);var ue=F=m.createElement("link");fn(ue),vr(ue,"link",o),ue._p=new Promise(function($e,je){ue.onload=$e,ue.onerror=je}),ue.addEventListener("load",function(){ee.loading|=1}),ue.addEventListener("error",function(){ee.loading|=2}),ee.loading|=4,$f(F,a,m)}F={type:"stylesheet",instance:F,count:1,state:ee},v.set(E,F)}}}function mP(o,a){ha.X(o,a);var u=kl;if(u&&o){var m=Cr(u).hoistableScripts,v=ql(o),E=m.get(v);E||(E=u.querySelector(Ec(v)),E||(o=h({src:o,async:!0},a),(a=go.get(v))&&Uh(o,a),E=u.createElement("script"),fn(E),vr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function pP(o,a){ha.M(o,a);var u=kl;if(u&&o){var m=Cr(u).hoistableScripts,v=ql(o),E=m.get(v);E||(E=u.querySelector(Ec(v)),E||(o=h({src:o,async:!0,type:"module"},a),(a=go.get(v))&&Uh(o,a),E=u.createElement("script"),fn(E),vr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function Vx(o,a,u,m){var v=(v=J.current)?Cf(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Wl(u.href),u=Cr(v).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){o=Wl(u.href);var E=Cr(v).hoistableStyles,F=E.get(o);if(F||(v=v.ownerDocument||v,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(o,F),(E=v.querySelector(wc(o)))&&!E._p&&(F.instance=E,F.state.loading=5),go.has(o)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},go.set(o,u),E||gP(v,o,u,F.state))),a&&m===null)throw Error(r(528,""));return F}if(a&&m!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ql(u),u=Cr(v).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Wl(o){return'href="'+Hn(o)+'"'}function wc(o){return'link[rel="stylesheet"]['+o+"]"}function Fx(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function gP(o,a,u,m){o.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=o.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),vr(a,"link",u),fn(a),o.head.appendChild(a))}function ql(o){return'[src="'+Hn(o)+'"]'}function Ec(o){return"script[async]"+o}function kx(o,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=o.querySelector('style[data-href~="'+Hn(u.href)+'"]');if(m)return a.instance=m,fn(m),m;var v=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),fn(m),vr(m,"style",v),$f(m,u.precedence,o),a.instance=m;case"stylesheet":v=Wl(u.href);var E=o.querySelector(wc(v));if(E)return a.state.loading|=4,a.instance=E,fn(E),E;m=Fx(u),(v=go.get(v))&&Yh(m,v),E=(o.ownerDocument||o).createElement("link"),fn(E);var F=E;return F._p=new Promise(function(ee,ue){F.onload=ee,F.onerror=ue}),vr(E,"link",m),a.state.loading|=4,$f(E,u.precedence,o),a.instance=E;case"script":return E=ql(u.src),(v=o.querySelector(Ec(E)))?(a.instance=v,fn(v),v):(m=u,(v=go.get(E))&&(m=h({},u),Uh(m,v)),o=o.ownerDocument||o,v=o.createElement("script"),fn(v),vr(v,"link",m),o.head.appendChild(v),a.instance=v);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,$f(m,u.precedence,o));return a.instance}function $f(o,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,E=v,F=0;F<m.length;F++){var ee=m[F];if(ee.dataset.precedence===a)E=ee;else if(E!==v)break}E?E.parentNode.insertBefore(o,E.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(o,a.firstChild))}function Yh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.title==null&&(o.title=a.title)}function Uh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.integrity==null&&(o.integrity=a.integrity)}var xf=null;function Wx(o,a,u){if(xf===null){var m=new Map,v=xf=new Map;v.set(u,m)}else v=xf,m=v.get(u),m||(m=new Map,v.set(u,m));if(m.has(o))return m;for(m.set(o,null),u=u.getElementsByTagName(o),v=0;v<u.length;v++){var E=u[v];if(!(E[Ut]||E[$t]||o==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var F=E.getAttribute(a)||"";F=o+F;var ee=m.get(F);ee?ee.push(E):m.set(F,[E])}}return m}function qx(o,a,u){o=o.ownerDocument||o,o.head.insertBefore(u,a==="title"?o.querySelector("head > title"):null)}function hP(o,a,u){if(u===1||a.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(o=a.disabled,typeof a.precedence=="string"&&o==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Yx(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function yP(o,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=Wl(m.href),E=a.querySelector(wc(v));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o.count++,o=wf.bind(o),a.then(o,o)),u.state.loading|=4,u.instance=E,fn(E);return}E=a.ownerDocument||a,m=Fx(m),(v=go.get(v))&&Yh(m,v),E=E.createElement("link"),fn(E);var F=E;F._p=new Promise(function(ee,ue){F.onload=ee,F.onerror=ue}),vr(E,"link",m),u.instance=E}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(o.count++,u=wf.bind(o),a.addEventListener("load",u),a.addEventListener("error",u))}}var Gh=0;function bP(o,a){return o.stylesheets&&o.count===0&&Mf(o,o.stylesheets),0<o.count||0<o.imgCount?function(u){var m=setTimeout(function(){if(o.stylesheets&&Mf(o,o.stylesheets),o.unsuspend){var E=o.unsuspend;o.unsuspend=null,E()}},6e4+a);0<o.imgBytes&&Gh===0&&(Gh=62500*ZI());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Mf(o,o.stylesheets),o.unsuspend)){var E=o.unsuspend;o.unsuspend=null,E()}},(o.imgBytes>Gh?50:800)+a);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function wf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Ef=null;function Mf(o,a){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Ef=new Map,a.forEach(vP,o),Ef=null,wf.call(o))}function vP(o,a){if(!(a.state.loading&4)){var u=Ef.get(o);if(u)var m=u.get(null);else{u=new Map,Ef.set(o,u);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<v.length;E++){var F=v[E];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(u.set(F.dataset.precedence,F),m=F)}m&&u.set(null,m)}v=a.instance,F=v.getAttribute("data-precedence"),E=u.get(F)||m,E===m&&u.set(null,v),u.set(F,v),this.count++,m=wf.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),E?E.parentNode.insertBefore(v,E.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),a.state.loading|=4}}var Mc={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function SP(o,a,u,m,v,E,F,ee,ue){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=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=E,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ue,this.incompleteTransitions=new Map}function Ux(o,a,u,m,v,E,F,ee,ue,$e,je,ke){return o=new SP(o,a,u,F,ue,$e,je,ke,ee),a=1,E===!0&&(a|=24),E=Gr(3,null,null,a),o.current=E,E.stateNode=o,a=Rg(),a.refCount++,o.pooledCache=a,a.refCount++,E.memoizedState={element:m,isDehydrated:u,cache:a},Ig(E),o}function Gx(o){return o?(o=$l,o):$l}function Xx(o,a,u,m,v,E){v=Gx(v),m.context===null?m.context=v:m.pendingContext=v,m=Aa(a),m.payload={element:u},E=E===void 0?null:E,E!==null&&(m.callback=E),u=Da(o,m,a),u!==null&&(Br(u,o,a),oc(u,o,a))}function Kx(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<a?u:a}}function Xh(o,a){Kx(o,a),(o=o.alternate)&&Kx(o,a)}function Qx(o){if(o.tag===13||o.tag===31){var a=bi(o,67108864);a!==null&&Br(a,o,67108864),Xh(o,67108864)}}function Zx(o){if(o.tag===13||o.tag===31){var a=Jr();a=Je(a);var u=bi(o,a);u!==null&&Br(u,o,a),Xh(o,a)}}var Rf=!0;function CP(o,a,u,m){var v=_.T;_.T=null;var E=B.p;try{B.p=2,Kh(o,a,u,m)}finally{B.p=E,_.T=v}}function $P(o,a,u,m){var v=_.T;_.T=null;var E=B.p;try{B.p=8,Kh(o,a,u,m)}finally{B.p=E,_.T=v}}function Kh(o,a,u,m){if(Rf){var v=Qh(m);if(v===null)jh(o,a,m,Of,u),ew(o,m);else if(wP(v,o,a,u,m))m.stopPropagation();else if(ew(o,m),a&4&&-1<xP.indexOf(o)){for(;v!==null;){var E=wn(v);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var F=ot(E.pendingLanes);if(F!==0){var ee=E;for(ee.pendingLanes|=2,ee.entangledLanes|=2;F;){var ue=1<<31-Ae(F);ee.entanglements[1]|=ue,F&=~ue}ko(E),(ln&6)===0&&(uf=be()+500,Sc(0))}}break;case 31:case 13:ee=bi(E,2),ee!==null&&Br(ee,E,2),ff(),Xh(E,2)}if(E=Qh(m),E===null&&jh(o,a,m,Of,u),E===v)break;v=E}v!==null&&m.stopPropagation()}else jh(o,a,m,null,u)}}function Qh(o){return o=bt(o),Zh(o)}var Of=null;function Zh(o){if(Of=null,o=kt(o),o!==null){var a=s(o);if(a===null)o=null;else{var u=a.tag;if(u===13){if(o=c(a),o!==null)return o;o=null}else if(u===31){if(o=d(a),o!==null)return o;o=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Of=o,null}function Jx(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(Ee()){case Ne:return 2;case Fe:return 8;case Ge:case et:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var Jh=!1,Ya=null,Ua=null,Ga=null,Rc=new Map,Oc=new Map,Xa=[],xP="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 ew(o,a){switch(o){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":Rc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oc.delete(a.pointerId)}}function Tc(o,a,u,m,v,E){return o===null||o.nativeEvent!==E?(o={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:E,targetContainers:[v]},a!==null&&(a=wn(a),a!==null&&Qx(a)),o):(o.eventSystemFlags|=m,a=o.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),o)}function wP(o,a,u,m,v){switch(a){case"focusin":return Ya=Tc(Ya,o,a,u,m,v),!0;case"dragenter":return Ua=Tc(Ua,o,a,u,m,v),!0;case"mouseover":return Ga=Tc(Ga,o,a,u,m,v),!0;case"pointerover":var E=v.pointerId;return Rc.set(E,Tc(Rc.get(E)||null,o,a,u,m,v)),!0;case"gotpointercapture":return E=v.pointerId,Oc.set(E,Tc(Oc.get(E)||null,o,a,u,m,v)),!0}return!1}function tw(o){var a=kt(o.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){o.blockedOn=a,Ft(o.priority,function(){Zx(u)});return}}else if(a===31){if(a=d(u),a!==null){o.blockedOn=a,Ft(o.priority,function(){Zx(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){o.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Tf(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var u=Qh(o.nativeEvent);if(u===null){u=o.nativeEvent;var m=new u.constructor(u.type,u);Vt=m,u.target.dispatchEvent(m),Vt=null}else return a=wn(u),a!==null&&Qx(a),o.blockedOn=u,!1;a.shift()}return!0}function nw(o,a,u){Tf(o)&&u.delete(a)}function EP(){Jh=!1,Ya!==null&&Tf(Ya)&&(Ya=null),Ua!==null&&Tf(Ua)&&(Ua=null),Ga!==null&&Tf(Ga)&&(Ga=null),Rc.forEach(nw),Oc.forEach(nw)}function Nf(o,a){o.blockedOn===a&&(o.blockedOn=null,Jh||(Jh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,EP)))}var If=null;function rw(o){If!==o&&(If=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){If===o&&(If=null);for(var a=0;a<o.length;a+=3){var u=o[a],m=o[a+1],v=o[a+2];if(typeof m!="function"){if(Zh(m||u)===null)continue;break}var E=wn(u);E!==null&&(o.splice(a,3),a-=3,Qg(E,{pending:!0,data:v,method:u.method,action:m},m,v))}}))}function Yl(o){function a(ue){return Nf(ue,o)}Ya!==null&&Nf(Ya,o),Ua!==null&&Nf(Ua,o),Ga!==null&&Nf(Ga,o),Rc.forEach(a),Oc.forEach(a);for(var u=0;u<Xa.length;u++){var m=Xa[u];m.blockedOn===o&&(m.blockedOn=null)}for(;0<Xa.length&&(u=Xa[0],u.blockedOn===null);)tw(u),u.blockedOn===null&&Xa.shift();if(u=(o.ownerDocument||o).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var v=u[m],E=u[m+1],F=v[nn]||null;if(typeof E=="function")F||rw(u);else if(F){var ee=null;if(E&&E.hasAttribute("formAction")){if(v=E,F=E[nn]||null)ee=F.formAction;else if(Zh(v)!==null)continue}else ee=F.action;typeof ee=="function"?u[m+1]=ee:(u.splice(m,3),m-=3),rw(u)}}}function ow(){function o(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(F){return v=F})},focusReset:"manual",scroll:"manual"})}function a(){v!==null&&(v(),v=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),v!==null&&(v(),v=null)}}}function ey(o){this._internalRoot=o}Pf.prototype.render=ey.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=Jr();Xx(u,m,o,a,null,null)},Pf.prototype.unmount=ey.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;Xx(o.current,2,null,o,null,null),ff(),a[wt]=null}};function Pf(o){this._internalRoot=o}Pf.prototype.unstable_scheduleHydration=function(o){if(o){var a=ft();o={blockedOn:null,target:o,priority:a};for(var u=0;u<Xa.length&&a!==0&&a<Xa[u].priority;u++);Xa.splice(u,0,o),u===0&&tw(o)}};var aw=t.version;if(aw!=="19.2.3")throw Error(r(527,aw,"19.2.3"));B.findDOMNode=function(o){var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=p(a),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var MP={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zf.isDisabled&&zf.supportsFiber)try{Qe=zf.inject(MP),De=zf}catch{}}return Ic.createRoot=function(o,a){if(!i(o))throw Error(r(299));var u=!1,m="",v=f$,E=m$,F=p$;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(F=a.onRecoverableError)),a=Ux(o,1,!1,null,null,u,m,null,v,E,F,ow),o[wt]=a.current,Dh(o),new ey(a)},Ic.hydrateRoot=function(o,a,u){if(!i(o))throw Error(r(299));var m=!1,v="",E=f$,F=m$,ee=p$,ue=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(F=u.onCaughtError),u.onRecoverableError!==void 0&&(ee=u.onRecoverableError),u.formState!==void 0&&(ue=u.formState)),a=Ux(o,1,!0,a,u??null,m,v,ue,E,F,ee,ow),a.context=Gx(null),u=a.current,m=Jr(),m=Je(m),v=Aa(m),v.callback=null,Da(u,v,m),u=m,a.current.lanes=u,He(a,u),ko(a),o[wt]=a.current,Dh(o),new Pf(a)},Ic.version="19.2.3",Ic}var gw;function _P(){if(gw)return ry.exports;gw=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(),ry.exports=jP(),ry.exports}var J4=_P();function ut(e){const t=l.useRef(e);return t.current=e,l.useCallback((...r)=>t.current?.(...r),[])}function Fr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const hw=Fr()?l.useLayoutEffect:l.useEffect,Nt=(e,t)=>{const n=l.useRef(!0);hw(()=>e(n.current),t),hw(()=>(n.current=!1,()=>{n.current=!0}),[])},eR=(e,t)=>{Nt(n=>{if(!n)return e()},t)};function Am(e){const t=l.useRef(!1),[n,r]=l.useState(e);l.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(s,c){c&&t.current||r(s)}return[n,i]}function Yt(e,t){const[n,r]=l.useState(e),i=t!==void 0?t:n;return Nt(s=>{s||r(t)},[t]),[i,r]}var ly={exports:{}},un={};var yw;function HP(){if(yw)return un;yw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function $(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case e:switch(S=S.type,S){case n:case i:case r:case p:case g:return S;default:switch(S=S&&S.$$typeof,S){case d:case c:case f:case y:case h:case s:return S;default:return w}}case t:return w}}}return un.ContextConsumer=c,un.ContextProvider=s,un.Element=e,un.ForwardRef=f,un.Fragment=n,un.Lazy=y,un.Memo=h,un.Portal=t,un.Profiler=i,un.StrictMode=r,un.Suspense=p,un.SuspenseList=g,un.isAsyncMode=function(){return!1},un.isConcurrentMode=function(){return!1},un.isContextConsumer=function(S){return $(S)===c},un.isContextProvider=function(S){return $(S)===s},un.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},un.isForwardRef=function(S){return $(S)===f},un.isFragment=function(S){return $(S)===n},un.isLazy=function(S){return $(S)===y},un.isMemo=function(S){return $(S)===h},un.isPortal=function(S){return $(S)===t},un.isProfiler=function(S){return $(S)===i},un.isStrictMode=function(S){return $(S)===r},un.isSuspense=function(S){return $(S)===p},un.isSuspenseList=function(S){return $(S)===g},un.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===p||S===g||S===C||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===h||S.$$typeof===s||S.$$typeof===c||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},un.typeOf=$,un}var bw;function BP(){return bw||(bw=1,ly.exports=HP()),ly.exports}var sy=BP();function rd(e,t,n){const r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const LP=Symbol.for("react.element"),VP=Symbol.for("react.transitional.element"),FP=Symbol.for("react.fragment");function tR(e){return e&&typeof e=="object"&&(e.$$typeof===LP||e.$$typeof===VP)&&e.type===FP}const kP=Number(l.version.split(".")[0]),WP=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},or=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{WP(r,n)})}},di=(...e)=>rd(()=>or(...e),e,(t,n)=>t.length!==n.length||t.every((r,i)=>r!==n[i])),ol=e=>{if(!e)return!1;if(bS(e)&&kP>=19)return!0;const t=sy.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==sy.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==sy.ForwardRef)};function bS(e){return l.isValidElement(e)&&!tR(e)}const qP=e=>bS(e)&&ol(e),al=e=>{if(e&&bS(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function zo(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function nR(e,t,n,r){if(!t.length)return n;const[i,...s]=t;let c;return!e&&typeof i=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},r&&n===void 0&&s.length===1?delete c[i][s[0]]:c[i]=nR(c[i],s,n,r),c}function vo(e,t,n,r=!1){return t.length&&r&&n===void 0&&!zo(e,t.slice(0,-1))?e:nR(e,t,n,r)}function YP(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function vw(e){return Array.isArray(e)?[]:{}}const UP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function rR(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let i=vw(e[0]);return e.forEach(s=>{function c(d,f){const p=new Set(f),g=zo(s,d),h=Array.isArray(g);if(h||YP(g)){if(!p.has(g)){p.add(g);const y=zo(i,d);h?i=vo(i,d,r(y,g)):(!y||typeof y!="object")&&(i=vo(i,d,vw(g))),UP(g).forEach(C=>{Object.getOwnPropertyDescriptor(g,C).enumerable&&c([...d,C],p)})}}else i=vo(i,d,g)}c([])}),i}function cs(...e){return rR(e)}let db={};const GP=e=>{};function XP(e,t){}function KP(e,t){}function QP(){db={}}function oR(e,t,n){!t&&!db[n]&&(e(!1,n),db[n]=!0)}function tr(e,t){oR(XP,e,t)}function ZP(e,t){oR(KP,e,t)}tr.preMessage=GP;tr.resetWarned=QP;tr.noteOnce=ZP;function tn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}function dr(e,t={}){let n=[];return ae.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(dr(r)):tR(r)&&r.props?n=n.concat(dr(r.props.children,t)):n.push(r))}),n}const JP=l.createContext({});function vs(e){return e instanceof HTMLElement||e instanceof SVGElement}function fu(e){return e&&typeof e=="object"&&vs(e.nativeElement)?e.nativeElement:vs(e)?e:null}const fb=l.createContext(null);function e8({children:e,onBatchResize:t}){const n=l.useRef(0),r=l.useRef([]),i=l.useContext(fb),s=l.useCallback((c,d,f)=>{n.current+=1;const p=n.current;r.current.push({size:c,element:d,data:f}),Promise.resolve().then(()=>{p===n.current&&(t?.(r.current),r.current=[])}),i?.(c,d,f)},[t,i]);return l.createElement(fb.Provider,{value:s},e)}const ri=new Map;function t8(e){e.forEach(t=>{const{target:n}=t;ri.get(n)?.forEach(r=>r(n))})}let cy;function aR(){return cy||(cy=new ResizeObserver(t8)),cy}function n8(e,t){ri.has(e)||(ri.set(e,new Set),aR().observe(e)),ri.get(e).add(t)}function r8(e,t){ri.has(e)&&(ri.get(e).delete(t),ri.get(e).size||(aR().unobserve(e),ri.delete(e)))}function o8(e,t){const{children:n,disabled:r}=e,i=l.useRef(null),s=l.useContext(fb),c=typeof n=="function",d=c?n(i):n,f=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!c&&l.isValidElement(d)&&ol(d),g=p?al(d):null,h=di(g,i),y=()=>fu(i.current);l.useImperativeHandle(t,()=>y());const C=l.useRef(e);C.current=e;const b=l.useCallback($=>{const{onResize:S,data:w}=C.current,{width:M,height:x}=$.getBoundingClientRect(),{offsetWidth:R,offsetHeight:O}=$,N=Math.floor(M),T=Math.floor(x);if(f.current.width!==N||f.current.height!==T||f.current.offsetWidth!==R||f.current.offsetHeight!==O){const P={width:N,height:T,offsetWidth:R,offsetHeight:O};f.current=P;const D=R===Math.round(M)?M:R,k=O===Math.round(x)?x:O,W={...P,offsetWidth:D,offsetHeight:k};s?.(W,$,w),S&&Promise.resolve().then(()=>{S(W,$)})}},[]);return l.useEffect(()=>{const $=y();return $&&!r&&n8($,b),()=>r8($,b)},[i.current,r]),p?l.cloneElement(d,{ref:h}):d}const a8=l.forwardRef(o8);function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(this,arguments)}const i8="rc-observer-key";function l8(e,t){const{children:n}=e;return(typeof n=="function"?[n]:dr(n)).map((i,s)=>{const c=i?.key||`${i8}-${s}`;return l.createElement(a8,mb({},e,{key:c,ref:s===0?t:void 0}),i)})}const Vr=l.forwardRef(l8);Vr.Collection=e8;function iR(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=iR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Q(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=iR(e))&&(r&&(r+=" "),r+=t);return r}function pb(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 s8(e){if(Array.isArray(e))return pb(e)}function c8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lR(e,t){if(e){if(typeof e=="string")return pb(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)?pb(e,t):void 0}}function u8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xn(e){return s8(e)||c8(e)||lR(e)||u8()}let sR=e=>+setTimeout(e,16),cR=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(sR=e=>window.requestAnimationFrame(e),cR=e=>window.cancelAnimationFrame(e));let Sw=0;const vS=new Map;function uR(e){vS.delete(e)}const Ht=(e,t=1)=>{Sw+=1;const n=Sw;function r(i){if(i===0)uR(n),e();else{const s=sR(()=>{r(i-1)});vS.set(n,s)}}return r(t),n};Ht.cancel=e=>{const t=vS.get(e);return uR(e),cR(t)};const mu="ant",yp="anticon",d8=["outlined","borderless","filled","underlined"],f8=(e,t)=>t||(e?`${mu}-${e}`:mu),dt=l.createContext({getPrefixCls:f8,iconPrefixCls:yp}),{Consumer:vee}=dt,Cw={};function It(e){const t=l.useContext(dt),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}=t,c=t[e];return{classNames:Cw,styles:Cw,...c,getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}}function pu(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 gb(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const $w="data-rc-order",xw="data-rc-priority",m8="rc-util-key",hb=new Map;function dR({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:m8}function bp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function p8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function SS(e){return Array.from((hb.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function fR(e,t={}){if(!Fr())return null;const{csp:n,prepend:r,priority:i=0}=t,s=p8(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute($w,s),c&&i&&d.setAttribute(xw,`${i}`),n?.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;const f=bp(t),{firstChild:p}=f;if(r){if(c){const g=(t.styles||SS(f)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute($w)))return!1;const y=Number(h.getAttribute(xw)||0);return i>=y});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,p)}else f.appendChild(d);return d}function mR(e,t={}){let{styles:n}=t;return n||=SS(bp(t)),n.find(r=>r.getAttribute(dR(t))===e)}function gu(e,t={}){const n=mR(e,t);n&&bp(t).removeChild(n)}function g8(e,t){const n=hb.get(e);if(!n||!gb(document,n)){const r=fR("",t),{parentNode:i}=r;hb.set(e,i),e.removeChild(r)}}function ai(e,t,n={}){const r=bp(n),i=SS(r),s={...n,styles:i};g8(r,s);const c=mR(t,s);if(c)return s.csp?.nonce&&c.nonce!==s.csp?.nonce&&(c.nonce=s.csp?.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const d=fR(e,s);return d.setAttribute(dR(s),t),d}function hu(e,t,n=!1){const r=new Set;function i(s,c,d=1){const f=r.has(s);if(tr(!f,"Warning: There may be circular references"),f)return!1;if(s===c)return!0;if(n&&d>1)return!1;r.add(s);const p=d+1;if(Array.isArray(s)){if(!Array.isArray(c)||s.length!==c.length)return!1;for(let g=0;g<s.length;g++)if(!i(s[g],c[g],p))return!1;return!0}if(s&&c&&typeof s=="object"&&typeof c=="object"){const g=Object.keys(s);return g.length!==Object.keys(c).length?!1:g.every(h=>i(s[h],c[h],p))}return!1}return i(e,t)}const h8="%";function yb(e){return e.join(h8)}let ww=0;class y8{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(yb(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(yb(t),n)}opUpdate(t,n){const r=this.cache.get(t),i=n(r);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,ww),ww+=1)}}const CS="data-token-hash",Ca="data-css-hash",Ui="__cssinjs_instance__";function b8(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Ca}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(i=>{i[Ui]||=e,i[Ui]===e&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${Ca}]`)).forEach(i=>{const s=i.getAttribute(Ca);r[s]?i[Ui]===e&&i.parentNode?.removeChild(i):r[s]=!0})}return new y8(e)}const od=l.createContext({hashPriority:"low",cache:b8(),defaultCache:!0,autoPrefix:!1});function v8(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class Dm{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(i=>{r?r=r?.map?.get(i):r=void 0}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Dm.MAX_CACHE_SIZE+Dm.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((s,c)=>{const[,d]=s;return this.internalGet(c)[1]<d?[c,this.internalGet(c)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(t)}let r=this.cache;t.forEach((i,s)=>{if(s===t.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const c=r.get(i);c?c.map||(c.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(t,n){const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),r.value?.[0];const i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!v8(n,t)),this.deleteByPath(this.cache,t)}}let Ew=0;class pR{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Ew,t.length===0&&(t.length>0,void 0),Ew+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const uy=new Dm;function bb(e){const t=Array.isArray(e)?e:[e];return uy.has(t)||uy.set(t,new pR(t)),uy.get(t)}const S8=new WeakMap,dy={};function C8(e,t){let n=S8;for(let r=0;r<t.length;r+=1){const i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(dy)||n.set(dy,e()),n.get(dy)}const Mw=new WeakMap;function tu(e){let t=Mw.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof pR?t+=r.id:r&&typeof r=="object"?t+=tu(r):t+=r}),t=pu(t),Mw.set(e,t)),t}function $8(e,t){return pu(`${t}_${tu(e)}`)}const vb=Fr();function te(e){return typeof e=="number"?`${e}px`:e}function gR(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const gm=(e,t="")=>`--${t?`${t}-`:""}${e}`.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(),x8=(e,t,n)=>{const{hashCls:r,hashPriority:i="low"}=n||{};return Object.keys(e).length?`${gR({hashCls:r,hashPriority:i})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([s,c])=>`${s}:${c};`).join("")}}`:""},hR=(e,t,n)=>{const{hashCls:r,hashPriority:i="low",prefix:s,unitless:c,ignore:d,preserve:f}=n||{},p={},g={};return Object.entries(e).forEach(([h,y])=>{if(f?.[h])g[h]=y;else if((typeof y=="string"||typeof y=="number")&&!d?.[h]){const C=gm(h,s);p[C]=typeof y=="number"&&!c?.[h]?`${y}px`:String(y),g[h]=`var(${C})`}}),[g,x8(p,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},Af=new Map;function $S(e,t,n,r,i){const{cache:s}=l.useContext(od),c=[e,...t],d=yb(c),f=h=>{s.opUpdate(d,y=>{const[C=0,b]=y||[void 0,void 0],S=b||n(),w=[C,S];return h?h(w):w})};l.useMemo(()=>{f()},[d]);const g=s.opGet(d)[1];return l.useInsertionEffect(()=>(f(([h,y])=>[h+1,y]),Af.has(d)||(i?.(g),Af.set(d,!0),Promise.resolve().then(()=>{Af.delete(d)})),()=>{s.opUpdate(d,h=>{const[y=0,C]=h||[];return y-1===0?(r?.(C,!1),Af.delete(d),null):[y-1,C]})}),[d]),g}const w8={},E8="css",Li=new Map;function M8(e){Li.set(e,(Li.get(e)||0)+1)}function R8(e,t){typeof document<"u"&&document.querySelectorAll(`style[${CS}="${e}"]`).forEach(r=>{r[Ui]===t&&r.parentNode?.removeChild(r)})}const O8=-1;function T8(e,t){Li.set(e,(Li.get(e)||0)-1);const n=new Set;Li.forEach((r,i)=>{r<=0&&n.add(i)}),Li.size-n.size>O8&&n.forEach(r=>{R8(r,t),Li.delete(r)})}const N8=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},I8="token";function P8(e,t,n){const{cache:{instanceId:r},container:i,hashPriority:s}=l.useContext(od),{salt:c="",override:d=w8,formatToken:f,getComputedToken:p,cssVar:g}=n,h=C8(()=>Object.assign({},...t),t),y=tu(h),C=tu(d),b=tu(g);return $S(I8,[c,e.id,y,C,b],()=>{const S=p?p(h,d,e):N8(h,d,e,f),w={...S},M=`${c}_${g.prefix}`,x=pu(M),R=`${E8}-${x}`;w._tokenKey=$8(w,M);const[O,N]=hR(S,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve,hashPriority:s,hashCls:g.hashed?R:void 0});return O._hashId=x,M8(g.key),[O,R,w,N,g.key]},([,,,,S])=>{T8(S,r)},([,,,S,w])=>{if(!S)return;const M=ai(S,pu(`css-var-${w}`),{mark:Ca,prepend:"queue",attachTo:i,priority:-999});M[Ui]=r,M.setAttribute(CS,w)})}var z8={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},Tn="-ms-",nu="-moz-",sn="-webkit-",yR="comm",xS="rule",wS="decl",A8="@import",D8="@namespace",bR="@keyframes",j8="@layer",vR=Math.abs,ES=String.fromCharCode,Sb=Object.assign;function _8(e,t){return Jn(e,0)^45?(((t<<2^Jn(e,0))<<2^Jn(e,1))<<2^Jn(e,2))<<2^Jn(e,3):0}function SR(e){return e.trim()}function ba(e,t){return(e=t.exec(e))?e[0]:e}function Bt(e,t,n){return e.replace(t,n)}function hm(e,t,n){return e.indexOf(t,n)}function Jn(e,t){return e.charCodeAt(t)|0}function Ki(e,t,n){return e.slice(t,n)}function Io(e){return e.length}function CR(e){return e.length}function Yc(e,t){return t.push(e),e}function H8(e,t){return e.map(t).join("")}function Rw(e,t){return e.filter(function(n){return!ba(n,t)})}var vp=1,Ss=1,$R=0,Co=0,Gn=0,Ts="";function Sp(e,t,n,r,i,s,c,d){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:vp,column:Ss,length:c,return:"",siblings:d}}function Ja(e,t){return Sb(Sp("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ul(e){for(;e.root;)e=Ja(e.root,{children:[e]});Yc(e,e.siblings)}function B8(){return Gn}function L8(){return Gn=Co>0?Jn(Ts,--Co):0,Ss--,Gn===10&&(Ss=1,vp--),Gn}function Ao(){return Gn=Co<$R?Jn(Ts,Co++):0,Ss++,Gn===10&&(Ss=1,vp++),Gn}function oi(){return Jn(Ts,Co)}function ym(){return Co}function Cp(e,t){return Ki(Ts,e,t)}function yu(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 V8(e){return vp=Ss=1,$R=Io(Ts=e),Co=0,[]}function F8(e){return Ts="",e}function fy(e){return SR(Cp(Co-1,Cb(e===91?e+2:e===40?e+1:e)))}function k8(e){for(;(Gn=oi())&&Gn<33;)Ao();return yu(e)>2||yu(Gn)>3?"":" "}function W8(e,t){for(;--t&&Ao()&&!(Gn<48||Gn>102||Gn>57&&Gn<65||Gn>70&&Gn<97););return Cp(e,ym()+(t<6&&oi()==32&&Ao()==32))}function Cb(e){for(;Ao();)switch(Gn){case e:return Co;case 34:case 39:e!==34&&e!==39&&Cb(Gn);break;case 40:e===41&&Cb(e);break;case 92:Ao();break}return Co}function q8(e,t){for(;Ao()&&e+Gn!==57;)if(e+Gn===84&&oi()===47)break;return"/*"+Cp(t,Co-1)+"*"+ES(e===47?e:Ao())}function Y8(e){for(;!yu(oi());)Ao();return Cp(e,Co)}function Ow(e){return F8(bm("",null,null,null,[""],e=V8(e),0,[0],e))}function bm(e,t,n,r,i,s,c,d,f){for(var p=0,g=0,h=c,y=0,C=0,b=0,$=1,S=1,w=1,M=0,x="",R=i,O=s,N=r,T=x;S;)switch(b=M,M=Ao()){case 40:if(b!=108&&Jn(T,h-1)==58){hm(T+=Bt(fy(M),"&","&\f"),"&\f",vR(p?d[p-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:T+=fy(M);break;case 9:case 10:case 13:case 32:T+=k8(b);break;case 92:T+=W8(ym()-1,7);continue;case 47:switch(oi()){case 42:case 47:Yc(U8(q8(Ao(),ym()),t,n,f),f),(yu(b||1)==5||yu(oi()||1)==5)&&Io(T)&&Ki(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*$:d[p++]=Io(T)*w;case 125*$:case 59:case 0:switch(M){case 0:case 125:S=0;case 59+g:w==-1&&(T=Bt(T,/\f/g,"")),C>0&&(Io(T)-h||$===0&&b===47)&&Yc(C>32?Nw(T+";",r,n,h-1,f):Nw(Bt(T," ","")+";",r,n,h-2,f),f);break;case 59:T+=";";default:if(Yc(N=Tw(T,t,n,p,g,i,d,x,R=[],O=[],h,s),s),M===123)if(g===0)bm(T,t,N,N,R,s,h,d,O);else{switch(y){case 99:if(Jn(T,3)===110)break;case 108:if(Jn(T,2)===97)break;default:g=0;case 100:case 109:case 115:}g?bm(e,N,N,r&&Yc(Tw(e,N,N,0,0,i,d,x,i,R=[],h,O),O),i,O,h,d,r?R:O):bm(T,N,N,N,[""],O,0,d,O)}}p=g=C=0,$=w=1,x=T="",h=c;break;case 58:h=1+Io(T),C=b;default:if($<1){if(M==123)--$;else if(M==125&&$++==0&&L8()==125)continue}switch(T+=ES(M),M*$){case 38:w=g>0?1:(T+="\f",-1);break;case 44:d[p++]=(Io(T)-1)*w,w=1;break;case 64:oi()===45&&(T+=fy(Ao())),y=oi(),g=h=Io(x=T+=Y8(ym())),M++;break;case 45:b===45&&Io(T)==2&&($=0)}}return s}function Tw(e,t,n,r,i,s,c,d,f,p,g,h){for(var y=i-1,C=i===0?s:[""],b=CR(C),$=0,S=0,w=0;$<r;++$)for(var M=0,x=Ki(e,y+1,y=vR(S=c[$])),R=e;M<b;++M)(R=SR(S>0?C[M]+" "+x:Bt(x,/&\f/g,C[M])))&&(f[w++]=R);return Sp(e,t,n,i===0?xS:d,f,p,g,h)}function U8(e,t,n,r){return Sp(e,t,n,yR,ES(B8()),Ki(e,2,-2),0,r)}function Nw(e,t,n,r,i){return Sp(e,t,n,wS,Ki(e,0,r),Ki(e,r+1,-1),r,i)}function xR(e,t,n){switch(_8(e,t)){case 5103:return sn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return sn+e+e;case 4855:return sn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return nu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sn+e+nu+e+Tn+e+e;case 5936:switch(Jn(e,t+11)){case 114:return sn+e+Tn+Bt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sn+e+Tn+Bt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sn+e+Tn+Bt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return sn+e+Tn+e+e;case 6165:return sn+e+Tn+"flex-"+e+e;case 5187:return sn+e+Bt(e,/(\w+).+(:[^]+)/,sn+"box-$1$2"+Tn+"flex-$1$2")+e;case 5443:return sn+e+Tn+"flex-item-"+Bt(e,/flex-|-self/g,"")+(ba(e,/flex-|baseline/)?"":Tn+"grid-row-"+Bt(e,/flex-|-self/g,""))+e;case 4675:return sn+e+Tn+"flex-line-pack"+Bt(e,/align-content|flex-|-self/g,"")+e;case 5548:return sn+e+Tn+Bt(e,"shrink","negative")+e;case 5292:return sn+e+Tn+Bt(e,"basis","preferred-size")+e;case 6060:return sn+"box-"+Bt(e,"-grow","")+sn+e+Tn+Bt(e,"grow","positive")+e;case 4554:return sn+Bt(e,/([^-])(transform)/g,"$1"+sn+"$2")+e;case 6187:return Bt(Bt(Bt(e,/(zoom-|grab)/,sn+"$1"),/(image-set)/,sn+"$1"),e,"")+e;case 5495:case 3959:return Bt(e,/(image-set\([^]*)/,sn+"$1$`$1");case 4968:return Bt(Bt(e,/(.+:)(flex-)?(.*)/,sn+"box-pack:$3"+Tn+"flex-pack:$3"),/space-between/,"justify")+sn+e+e;case 4200:if(!ba(e,/flex-|baseline/))return Tn+"grid-column-align"+Ki(e,t)+e;break;case 2592:case 3360:return Tn+Bt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ba(r.props,/grid-\w+-end/)})?~hm(e+(n=n[t].value),"span",0)?e:Tn+Bt(e,"-start","")+e+Tn+"grid-row-span:"+(~hm(n,"span",0)?ba(n,/\d+/):+ba(n,/\d+/)-+ba(e,/\d+/))+";":Tn+Bt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ba(r.props,/grid-\w+-start/)})?e:Tn+Bt(Bt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Bt(e,/(.+)-inline(.+)/,sn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Io(e)-1-t>6)switch(Jn(e,t+1)){case 109:if(Jn(e,t+4)!==45)break;case 102:return Bt(e,/(.+:)(.+)-([^]+)/,"$1"+sn+"$2-$3$1"+nu+(Jn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hm(e,"stretch",0)?xR(Bt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Bt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,c,d,f,p){return Tn+i+":"+s+p+(c?Tn+i+"-span:"+(d?f:+f-+s)+p:"")+e});case 4949:if(Jn(e,t+6)===121)return Bt(e,":",":"+sn)+e;break;case 6444:switch(Jn(e,Jn(e,14)===45?18:11)){case 120:return Bt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+sn+(Jn(e,14)===45?"inline-":"")+"box$3$1"+sn+"$2$3$1"+Tn+"$2box$3")+e;case 100:return Bt(e,":",":"+Tn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Bt(e,"scroll-","scroll-snap-")+e}return e}function bu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Iw(e,t,n,r){switch(e.type){case j8:if(e.children.length)break;case A8:case D8:case wS:return e.return=e.return||e.value;case yR:return"";case bR:return e.return=e.value+"{"+bu(e.children,r)+"}";case xS:if(!Io(e.value=e.props.join(",")))return""}return Io(n=bu(e.children,r))?e.return=e.value+"{"+n+"}":""}function G8(e){var t=CR(e);return function(n,r,i,s){for(var c="",d=0;d<t;d++)c+=e[d](n,r,i,s)||"";return c}}function X8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case wS:e.return=xR(e.value,e.length,n);return;case bR:return bu([Ja(e,{value:Bt(e.value,"@","@"+sn)})],r);case xS:if(e.length)return H8(n=e.props,function(i){switch(ba(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ul(Ja(e,{props:[Bt(i,/:(read-\w+)/,":"+nu+"$1")]})),Ul(Ja(e,{props:[i]})),Sb(e,{props:Rw(n,r)});break;case"::placeholder":Ul(Ja(e,{props:[Bt(i,/:(plac\w+)/,":"+sn+"input-$1")]})),Ul(Ja(e,{props:[Bt(i,/:(plac\w+)/,":"+nu+"$1")]})),Ul(Ja(e,{props:[Bt(i,/:(plac\w+)/,Tn+"input-$1")]})),Ul(Ja(e,{props:[i]})),Sb(e,{props:Rw(n,r)});break}return""})}}const Pw="data-ant-cssinjs-cache-path",wR="_FILE_STYLE__";let Gi,ER=!0;function K8(){if(!Gi&&(Gi={},Fr())){const e=document.createElement("div");e.className=Pw,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[i,s]=r.split(":");Gi[i]=s});const n=document.querySelector(`style[${Pw}]`);n&&(ER=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function Q8(e){return K8(),!!Gi[e]}function Z8(e){const t=Gi[e];let n=null;if(t&&Fr())if(ER)n=wR;else{const r=document.querySelector(`style[${Ca}="${Gi[e]}"]`);r?n=r.innerHTML:delete Gi[e]}return[n,t]}const J8="_skip_check_",MR="_multi_value_";function my(e,t){return(t?bu(Ow(e),G8([X8,Iw])):bu(Ow(e),Iw)).replace(/\{%%%\:[^;];}/g,";")}function ez(e){return typeof e=="object"&&e&&(J8 in e||MR in e)}function zw(e,t,n="high"){if(!t)return e;const r=gR({hashCls:t,hashPriority:n});return e.split(",").map(s=>{const c=s.trim().split(/\s+/);let d=c[0]||"";const f=d.match(/^\w+/)?.[0]||"";return d=`${f}${r}${d.slice(f.length)}`,[d,...c.slice(1)].join(" ")}).join(",")}const $b=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:c,path:d,hashPriority:f,transformers:p=[],linters:g=[]}=t;let h="",y={};function C(S){const w=S.getName(s);if(!y[w]){const[M]=$b(S.style,t,{root:!1,parentSelectors:i});y[w]=`@keyframes ${S.getName(s)}${M}`}}function b(S,w=[]){return S.forEach(M=>{Array.isArray(M)?b(M,w):M&&w.push(M)}),w}return b(Array.isArray(e)?e:[e]).forEach(S=>{const w=typeof S=="string"&&!n?{}:S;if(typeof w=="string")h+=`${w}
11
+ `;else if(w._keyframe)C(w);else{const M=p.reduce((x,R)=>R?.visit?.(x)||x,w);Object.keys(M).forEach(x=>{const R=M[x];if(typeof R=="object"&&R&&(x!=="animationName"||!R._keyframe)&&!ez(R)){let O=!1,N=x.trim(),T=!1;(n||r)&&s?N.startsWith("@")?O=!0:N==="&"?N=zw("",s,f):N=zw(x,s,f):n&&!s&&(N==="&"||N==="")&&(N="",T=!0);const[P,D]=$b(R,t,{root:T,injectHash:O,parentSelectors:[...i,N]});y={...y,...D},h+=`${N}${P}`}else{let O=function(T,P){const D=T.replace(/[A-Z]/g,W=>`-${W.toLowerCase()}`);let k=P;!z8[T]&&typeof k=="number"&&k!==0&&(k=`${k}px`),T==="animationName"&&P?._keyframe&&(C(P),k=P.getName(s)),h+=`${D}:${k};`};const N=R?.value??R;typeof R=="object"&&R?.[MR]&&Array.isArray(N)?N.forEach(T=>{O(x,T)}):O(x,N)}})}}),n?c&&(h&&(h=`@layer ${c.name} {${h}}`),c.dependencies&&(y[`@layer ${c.name}`]=c.dependencies.map(S=>`@layer ${S}, ${c.name};`).join(`
12
+ `))):h=`{${h}}`,[h,y]};function RR(e,t){return pu(`${e.join("%")}${t}`)}const tz="style";function xb(e,t){const{path:n,hashId:r,layer:i,nonce:s,clientOnly:c,order:d=0}=e,{mock:f,hashPriority:p,container:g,transformers:h,linters:y,cache:C,layer:b,autoPrefix:$}=l.useContext(od),S=[r||""];b&&S.push("layer"),S.push(...n);let w=vb;$S(tz,S,()=>{const M=S.join("|");if(Q8(M)){const[P,D]=Z8(M);if(P)return[P,D,{},c,d]}const x=t(),[R,O]=$b(x,{hashId:r,hashPriority:p,layer:b?i:void 0,path:n.join("-"),transformers:h,linters:y}),N=my(R,$||!1),T=RR(S,N);return[N,T,O,c,d]},(M,x)=>{const[,R]=M;x&&vb&&gu(R,{mark:Ca,attachTo:g})},M=>{const[x,R,O,,N]=M;if(w&&x!==wR){const T={mark:Ca,prepend:b?!1:"queue",attachTo:g,priority:N},P=typeof s=="function"?s():s;P&&(T.csp={nonce:P});const D=[],k=[];Object.keys(O).forEach(U=>{U.startsWith("@layer")?D.push(U):k.push(U)}),D.forEach(U=>{ai(my(O[U],$||!1),`_layer-${U}`,{...T,prepend:!0})});const W=ai(x,R,T);W[Ui]=C.instanceId,k.forEach(U=>{ai(my(O[U],$||!1),`_effect-${U}`,T)})}})}const nz="cssVar",rz=(e,t)=>{const{key:n,prefix:r,unitless:i,ignore:s,token:c,hashId:d,scope:f=""}=e,{cache:{instanceId:p},container:g,hashPriority:h}=l.useContext(od),{_tokenKey:y}=c,C=[...e.path,n,f,y];return $S(nz,C,()=>{const $=t(),[S,w]=hR($,n,{prefix:r,unitless:i,ignore:s,scope:f,hashPriority:h,hashCls:d}),M=RR(C,w);return[S,w,M,n]},([,,$])=>{vb&&gu($,{mark:Ca,attachTo:g})},([,$,S])=>{if(!$)return;const w=ai($,S,{mark:Ca,prepend:"queue",attachTo:g,priority:-999});w[Ui]=p,w.setAttribute(CS,n)})};class At{name;style;constructor(t,n){this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function Gl(e){return e.notSplit=!0,e}Gl(["borderTop","borderBottom"]),Gl(["borderTop"]),Gl(["borderBottom"]),Gl(["borderLeft","borderRight"]),Gl(["borderLeft"]),Gl(["borderRight"]);function Kn(e){"@babel/helpers - typeof";return Kn=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},Kn(e)}function oz(e){if(Array.isArray(e))return e}function az(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function iz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OR(e,t){return oz(e)||az(e,t)||lR(e,t)||iz()}function lz(e,t){if(Kn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TR(e){var t=lz(e,"string");return Kn(t)=="symbol"?t:t+""}function cr(e,t,n){return(t=TR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(n),!0).forEach(function(r){cr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sz(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,TR(r.key),r)}}function ll(e,t,n){return t&&sz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vu(e,t){return vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},vu(e,t)}function MS(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&&vu(e,t)}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qi(e)}function $p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($p=function(){return!!e})()}function NR(e,t){if(t&&(Kn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hs(e)}function IR(e){var t=$p();return function(){var n,r=Qi(e);if(t){var i=Qi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return NR(this,n)}}var cz=ll(function e(){il(this,e)}),PR="CALC_UNIT",uz=new RegExp(PR,"g");function py(e){return typeof e=="number"?"".concat(e).concat(PR):e}var dz=(function(e){MS(n,e);var t=IR(n);function n(r,i){var s;il(this,n),s=t.call(this),cr(hs(s),"result",""),cr(hs(s),"unitlessCssVar",void 0),cr(hs(s),"lowPriority",void 0);var c=Kn(r);return s.unitlessCssVar=i,r instanceof n?s.result="(".concat(r.result,")"):c==="number"?s.result=py(r):c==="string"&&(s.result=r),s}return ll(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(py(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(py(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var s=this,c=i||{},d=c.unit,f=!0;return typeof d=="boolean"?f=d:Array.from(this.unitlessCssVar).some(function(p){return s.result.includes(p)})&&(f=!1),this.result=this.result.replace(uz,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(cz),fz=function(t,n){var r=dz;return function(i){return new r(i,n)}},Dw=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 jw(e,t,n,r){var i=_n({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(d){var f=OR(d,2),p=f[0],g=f[1];if(i!=null&&i[p]||i!=null&&i[g]){var h;(h=i[g])!==null&&h!==void 0||(i[g]=i?.[p])}})}var c=_n(_n({},n),i);return Object.keys(c).forEach(function(d){c[d]===t[d]&&delete c[d]}),c}var zR=typeof CSSINJS_STATISTIC<"u",wb=!0;function Tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!zR)return Object.assign.apply(Object,[{}].concat(t));wb=!1;var r={};return t.forEach(function(i){if(Kn(i)==="object"){var s=Object.keys(i);s.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return i[c]}})})}}),wb=!0,r}var _w={};function mz(){}var pz=function(t){var n,r=t,i=mz;return zR&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,d){if(wb){var f;(f=n)===null||f===void 0||f.add(d)}return c[d]}}),i=function(c,d){var f;_w[c]={global:Array.from(n),component:_n(_n({},(f=_w[c])===null||f===void 0?void 0:f.component),d)}}),{token:r,keys:n,flush:i}};function Hw(e,t,n){if(typeof n=="function"){var r;return n(Tt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function gz(e){return{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(s){return te(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(s){return te(s)}).join(","),")")}}}var hz=1e3*60*10,yz=(function(){function e(){il(this,e),cr(this,"map",new Map),cr(this,"objectIDMap",new WeakMap),cr(this,"nextID",0),cr(this,"lastAccessBeat",new Map),cr(this,"accessBeat",0)}return ll(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(s){return s&&Kn(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Kn(s),"_").concat(s)});return i.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(i,s){r-i>hz&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),Bw=new yz;function bz(e,t){return ae.useMemo(function(){var n=Bw.get(t);if(n)return n;var r=e();return Bw.set(t,r),r},t)}var vz=function(){return{}};function Sz(e){var t=e.useCSP,n=t===void 0?vz:t,r=e.useToken,i=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function f(y,C,b,$){var S=Array.isArray(y)?y[0]:y;function w(P){return"".concat(String(S)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var M=$?.unitless||{},x=typeof d=="function"?d(y):{},R=_n(_n({},x),{},cr({},w("zIndexPopup"),!0));Object.keys(M).forEach(function(P){R[w(P)]=M[P]});var O=_n(_n({},$),{},{unitless:R,prefixToken:w}),N=g(y,C,b,O),T=p(S,b,O);return function(P){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,k=N(P,D),W=T(D);return[k,W]}}function p(y,C,b){var $=b.unitless,S=b.prefixToken,w=b.ignore;return function(M){var x=r(),R=x.cssVar,O=x.realToken;return rz({path:[y],prefix:R.prefix,key:R.key,unitless:$,ignore:w,token:O,scope:M},function(){var N=Hw(y,O,C),T=jw(y,O,N,{deprecatedTokens:b?.deprecatedTokens});return N&&Object.keys(N).forEach(function(P){T[S(P)]=T[P],delete T[P]}),T}),R?.key}}function g(y,C,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(y)?y:[y,y],w=OR(S,1),M=w[0],x=S.join("-"),R=e.layer||{name:"antd"};return function(O){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,T=r(),P=T.theme,D=T.realToken,k=T.hashId,W=T.token,U=T.cssVar,G=T.zeroRuntime,L=l.useMemo(function(){return G},[]);if(L)return k;var H=i(),_=H.rootPrefixCls,B=H.iconPrefixCls,I=n(),z="css",V=bz(function(){var K=new Set;return Object.keys($.unitless||{}).forEach(function(J){K.add(gm(J,U.prefix)),K.add(gm(J,Dw(M,U.prefix)))}),fz(z,K)},[z,M,U?.prefix]),A=gz(),j=A.max,q=A.min,X={theme:P,token:W,hashId:k,nonce:function(){return I.nonce},clientOnly:$.clientOnly,layer:R,order:$.order||-999};return typeof s=="function"&&xb(_n(_n({},X),{},{clientOnly:!1,path:["Shared",_]}),function(){return s(W,{prefix:{rootPrefixCls:_,iconPrefixCls:B},csp:I})}),xb(_n(_n({},X),{},{path:[x,O,B]}),function(){if($.injectStyle===!1)return[];var K=pz(W),J=K.token,Z=K.flush,oe=Hw(M,D,b),ne=".".concat(O),ie=jw(M,D,oe,{deprecatedTokens:$.deprecatedTokens});oe&&Kn(oe)==="object"&&Object.keys(oe).forEach(function(ge){oe[ge]="var(".concat(gm(ge,Dw(M,U.prefix)),")")});var de=Tt(J,{componentCls:ne,prefixCls:O,iconCls:".".concat(B),antCls:".".concat(_),calc:V,max:j,min:q},oe),le=C(de,{hashId:k,prefixCls:O,rootPrefixCls:_,iconPrefixCls:B});Z(M,ie);var fe=typeof c=="function"?c(de,O,N,$.resetFont):null;return[$.resetStyle===!1?null:fe,le]}),k}}function h(y,C,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=g(y,C,b,_n({resetStyle:!1,order:-998},$)),w=function(x){var R=x.prefixCls,O=x.rootCls,N=O===void 0?R:O;return S(R,N),null};return w}return{genStyleHooks:f,genSubStyleComponent:h,genComponentStyleHook:g}}const si=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function vm(e){return(e+8)/e}function Cz(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,s=e*Math.E**(i/5),c=r>1?Math.floor(s):Math.ceil(s);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:vm(n)}))}const $z="6.1.4",AR={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"},Su={...AR,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
14
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
15
+ '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},xz={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},lr=Math.round;function gy(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Lw=(e,t,n)=>n===0?e:e/100;function Pc(e,t){const n=t||255;return e>n?n:e<0?0:e}class en{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let s=function(c){return i.startsWith(c)};var r=s;const i=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(i))this.fromHexString(i);else if(s("rgb"))this.fromRgbString(i);else if(s("hsl"))this.fromHslString(i);else if(s("hsv")||s("hsb"))this.fromHsvString(i);else{const c=xz[i.toLowerCase()];c&&this.fromHexString(parseInt(c,36).toString(16).padStart(6,"0"))}}else if(t instanceof en)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=Pc(t.r),this.g=Pc(t.g),this.b=Pc(t.b),this.a=typeof t.a=="number"?Pc(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(s){const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(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 i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,s=d=>(r[d]-this[d])*i+this[d],c={r:lr(s("r")),g:lr(s("g")),b:lr(s("b")),a:lr(s("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),i=s=>lr((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=lr(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=lr(this.getSaturation()*100),r=lr(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 i=this.clone();return i[t]=Pc(n,r),i}_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(i,s){return parseInt(n[i]+n[s||i],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:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const y=lr(r*255);this.r=y,this.g=y,this.b=y}let s=0,c=0,d=0;const f=t/60,p=(1-Math.abs(2*r-1))*n,g=p*(1-Math.abs(f%2-1));f>=0&&f<1?(s=p,c=g):f>=1&&f<2?(s=g,c=p):f>=2&&f<3?(c=p,d=g):f>=3&&f<4?(c=g,d=p):f>=4&&f<5?(s=g,d=p):f>=5&&f<6&&(s=p,d=g);const h=r-p/2;this.r=lr((s+h)*255),this.g=lr((c+h)*255),this.b=lr((d+h)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const s=lr(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const c=t/60,d=Math.floor(c),f=c-d,p=lr(r*(1-n)*255),g=lr(r*(1-n*f)*255),h=lr(r*(1-n*(1-f))*255);switch(d){case 0:this.g=h,this.b=p;break;case 1:this.r=g,this.b=p;break;case 2:this.r=p,this.b=h;break;case 3:this.r=p,this.g=g;break;case 4:this.r=h,this.g=p;break;default:this.g=p,this.b=g;break}}fromHsvString(t){const n=gy(t,Lw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=gy(t,Lw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=gy(t,(r,i)=>i.includes("%")?lr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Df=2,Vw=.16,wz=.05,Ez=.05,Mz=.15,DR=5,jR=4,Rz=[{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 Fw(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Df*t:Math.round(e.h)+Df*t:r=n?Math.round(e.h)+Df*t:Math.round(e.h)-Df*t,r<0?r+=360:r>=360&&(r-=360),r}function kw(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Vw*t:t===jR?r=e.s+Vw:r=e.s+wz*t,r>1&&(r=1),n&&t===DR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Ww(e,t,n){let r;return n?r=e.v+Ez*t:r=e.v-Mz*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function RS(e,t={}){const n=[],r=new en(e),i=r.toHsv();for(let s=DR;s>0;s-=1){const c=new en({h:Fw(i,s,!0),s:kw(i,s,!0),v:Ww(i,s,!0)});n.push(c)}n.push(r);for(let s=1;s<=jR;s+=1){const c=new en({h:Fw(i,s),s:kw(i,s),v:Ww(i,s)});n.push(c)}return t.theme==="dark"?Rz.map(({index:s,amount:c})=>new en(t.backgroundColor||"#141414").mix(n[s],c).toHexString()):n.map(s=>s.toHexString())}const ys={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"},Eb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Eb.primary=Eb[5];const Mb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Mb.primary=Mb[5];const Rb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Rb.primary=Rb[5];const jm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];jm.primary=jm[5];const Ob=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ob.primary=Ob[5];const Tb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Tb.primary=Tb[5];const Nb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Nb.primary=Nb[5];const Ib=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ib.primary=Ib[5];const _m=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];_m.primary=_m[5];const Pb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Pb.primary=Pb[5];const zb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zb.primary=zb[5];const Ab=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ab.primary=Ab[5];const Db=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Db.primary=Db[5];const hy={red:Eb,volcano:Mb,orange:Rb,gold:jm,yellow:Ob,lime:Tb,green:Nb,cyan:Ib,blue:_m,geekblue:Pb,purple:zb,magenta:Ab,grey:Db};function Oz(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:s,colorInfo:c,colorPrimary:d,colorBgBase:f,colorTextBase:p}=e,g=t(d),h=t(r),y=t(i),C=t(s),b=t(c),$=n(f,p),S=e.colorLink||e.colorInfo,w=t(S),M=new en(C[1]).mix(new en(C[3]),50).toHexString();return{...$,colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:M,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new en("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Tz=e=>{let t=e,n=e,r=e,i=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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Nz(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...Tz(r)}}const Iz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Pz=e=>{const t=Cz(e),n=t.map(g=>g.size),r=t.map(g=>g.lineHeight),i=n[1],s=n[0],c=n[2],d=r[1],f=r[0],p=r[2];return{fontSizeSM:s,fontSize:i,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:d,lineHeightLG:p,lineHeightSM:f,fontHeight:Math.round(d*i),fontHeightLG:Math.round(p*c),fontHeightSM:Math.round(f*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function zz(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 ho=(e,t)=>new en(e).setA(t).toRgbString(),Xl=(e,t)=>new en(e).darken(t).toHexString(),Az=e=>{const t=RS(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]}},Dz=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ho(r,.88),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.15),colorFillSecondary:ho(r,.06),colorFillTertiary:ho(r,.04),colorFillQuaternary:ho(r,.02),colorBgSolid:ho(r,1),colorBgSolidHover:ho(r,.75),colorBgSolidActive:ho(r,.95),colorBgLayout:Xl(n,4),colorBgContainer:Xl(n,0),colorBgElevated:Xl(n,0),colorBgSpotlight:ho(r,.85),colorBgBlur:"transparent",colorBorder:Xl(n,15),colorBorderDisabled:Xl(n,15),colorBorderSecondary:Xl(n,6)}};function _R(e){ys.pink=ys.magenta,hy.pink=hy.magenta;const t=Object.keys(AR).map(n=>{const r=e[n]===ys[n]?hy[n]:RS(e[n]);return Array.from({length:10},()=>1).reduce((i,s,c)=>(i[`${n}-${c+1}`]=r[c],i[`${n}${c+1}`]=r[c],i),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...Oz(e,{generateColorPalettes:Az,generateNeutralColorPalettes:Dz}),...Pz(e.fontSize),...zz(e),...Iz(e),...Nz(e)}}const HR=bb(_R),Hm={token:Su,override:{override:Su},hashed:!0},BR=ae.createContext(Hm);function yy(e){return e>=0&&e<=255}function Uc(e,t){const{r:n,g:r,b:i,a:s}=new en(e).toRgb();if(s<1)return e;const{r:c,g:d,b:f}=new en(t).toRgb();for(let p=.01;p<=1;p+=.01){const g=Math.round((n-c*(1-p))/p),h=Math.round((r-d*(1-p))/p),y=Math.round((i-f*(1-p))/p);if(yy(g)&&yy(h)&&yy(y))return new en({r:g,g:h,b:y,a:Math.round(p*100)/100}).toRgbString()}return new en({r:n,g:r,b:i,a:1}).toRgbString()}function jz(e){const{override:t,...n}=e,r={...t};Object.keys(Su).forEach(y=>{delete r[y]});const i={...n,...r},s=480,c=576,d=768,f=992,p=1200,g=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Uc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Uc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Uc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Uc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
16
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
17
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
18
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
19
+ `,boxShadowSecondary:`
20
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
21
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
22
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
23
+ `,boxShadowTertiary:`
24
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
25
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
26
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
27
+ `,screenXS:s,screenXSMin:s,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
28
+ 0 1px 2px -2px ${new en("rgba(0, 0, 0, 0.16)").toRgbString()},
29
+ 0 3px 6px 0 ${new en("rgba(0, 0, 0, 0.12)").toRgbString()},
30
+ 0 5px 12px 4px ${new en("rgba(0, 0, 0, 0.09)").toRgbString()}
31
+ `,boxShadowDrawerRight:`
32
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
33
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
34
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
35
+ `,boxShadowDrawerLeft:`
36
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
37
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
38
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
39
+ `,boxShadowDrawerUp:`
40
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
41
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
42
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
43
+ `,boxShadowDrawerDown:`
44
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
45
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
46
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
47
+ `,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}}const LR={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},_z={motionBase:!0,motionUnit:!0},Hz={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},VR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i,...s}=t;let c={...r,override:i};return c=jz(c),s&&Object.entries(s).forEach(([d,f])=>{const{theme:p,...g}=f;let h=g;p&&(h=VR({...c,...g},{override:g},p)),c[d]=h}),c};function Wr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:s}=ae.useContext(BR),c={prefix:i?.prefix??"ant",key:i?.key??"css-var-root"},d=`${$z}-${t||""}`,f=n||HR,[p,g,h]=P8(f,[Su,e],{salt:d,override:r,getComputedToken:VR,cssVar:{...c,unitless:LR,ignore:_z,preserve:Hz}});return[f,h,t?g:"",p,c,!!s]}const $o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Zt=(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}),Ns=()=>({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"}}),Zi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Bz=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"}}}),Lz=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:i,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return r!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...d,...c,[i]:c}}},Uo=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),xo=(e,t)=>({"&:focus-visible":Uo(e,t)}),FR=e=>({[`.${e}`]:{...Ns(),[`.${e} .${e}-icon`]:{display:"block"}}}),kR=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...xo(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Pt,genComponentStyleHook:Vz,genSubStyleComponent:ad}=Sz({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(dt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i,s]=Wr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:s}},useCSP:()=>{const{csp:e}=l.useContext(dt);return e??{}},getResetStyles:(e,t)=>{const n=Bz(e);return[n,{"&":n},FR(t?.prefix.iconPrefixCls??yp)]},getCommonStyle:Lz,getCompUnitless:()=>LR}),Fz=(e,t)=>{const n=`--${e.replace(".","")}-${t}-`;return(r,i=!1)=>{const s=`${n}${r}`;return i?`var(${s})`:s}};function xp(e,t){return si.reduce((n,r)=>{const i=e[`${r}1`],s=e[`${r}3`],c=e[`${r}6`],d=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:s,darkColor:c,textColor:d})}},{})}const kz=(e,t)=>(Wr(),xb({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>FR(e)));var Wz={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"};const OS=l.createContext({});function WR(e){return e?.getRootNode?.()}function qz(e){return WR(e)instanceof ShadowRoot}function Bm(e){return qz(e)?WR(e):null}function Yz(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function Uz(e,t){tr(e,`[@ant-design/icons] ${t}`)}function qw(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Yw(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];return n==="class"?(t.className=r,delete t.class):(delete t[n],t[Yz(n)]=r),t},{})}function jb(e,t,n){return n?ae.createElement(e.tag,{key:t,...Yw(e.attrs),...n},(e.children||[]).map((r,i)=>jb(r,`${t}-${e.tag}-${i}`))):ae.createElement(e.tag,{key:t,...Yw(e.attrs)},(e.children||[]).map((r,i)=>jb(r,`${t}-${e.tag}-${i}`)))}function qR(e){return RS(e)[0]}function YR(e){return e?Array.isArray(e)?e:[e]:[]}const Gz=`
48
+ .anticon {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ color: inherit;
52
+ font-style: normal;
53
+ line-height: 0;
54
+ text-align: center;
55
+ text-transform: none;
56
+ vertical-align: -0.125em;
57
+ text-rendering: optimizeLegibility;
58
+ -webkit-font-smoothing: antialiased;
59
+ -moz-osx-font-smoothing: grayscale;
60
+ }
61
+
62
+ .anticon > * {
63
+ line-height: 1;
64
+ }
65
+
66
+ .anticon svg {
67
+ display: inline-block;
68
+ vertical-align: inherit;
69
+ }
70
+
71
+ .anticon::before {
72
+ display: none;
73
+ }
74
+
75
+ .anticon .anticon-icon {
76
+ display: block;
77
+ }
78
+
79
+ .anticon[tabindex] {
80
+ cursor: pointer;
81
+ }
82
+
83
+ .anticon-spin::before,
84
+ .anticon-spin {
85
+ display: inline-block;
86
+ -webkit-animation: loadingCircle 1s infinite linear;
87
+ animation: loadingCircle 1s infinite linear;
88
+ }
89
+
90
+ @-webkit-keyframes loadingCircle {
91
+ 100% {
92
+ -webkit-transform: rotate(360deg);
93
+ transform: rotate(360deg);
94
+ }
95
+ }
96
+
97
+ @keyframes loadingCircle {
98
+ 100% {
99
+ -webkit-transform: rotate(360deg);
100
+ transform: rotate(360deg);
101
+ }
102
+ }
103
+ `,Xz=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(OS);let i=Gz;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {
104
+ ${i}
105
+ }`),l.useEffect(()=>{const s=e.current,c=Bm(s);ai(i,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},ru={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Kz({primaryColor:e,secondaryColor:t}){ru.primaryColor=e,ru.secondaryColor=t||qR(e),ru.calculated=!!t}function Qz(){return{...ru}}const Is=e=>{const{icon:t,className:n,onClick:r,style:i,primaryColor:s,secondaryColor:c,...d}=e,f=l.useRef(null);let p=ru;if(s&&(p={primaryColor:s,secondaryColor:c||qR(s)}),Xz(f),Uz(qw(t),`icon should be icon definiton, but got ${t}`),!qw(t))return null;let g=t;return g&&typeof g.icon=="function"&&(g={...g,icon:g.icon(p.primaryColor,p.secondaryColor)}),jb(g.icon,`svg-${g.name}`,{className:n,onClick:r,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:f})};Is.displayName="IconReact";Is.getTwoToneColors=Qz;Is.setTwoToneColors=Kz;function UR(e){const[t,n]=YR(e);return Is.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Zz(){const e=Is.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_b.apply(this,arguments)}UR(_m.primary);const gt=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:i,rotate:s,tabIndex:c,onClick:d,twoToneColor:f,...p}=e,{prefixCls:g="anticon",rootClassName:h}=l.useContext(OS),y=Q(h,g,{[`${g}-${r.name}`]:!!r.name,[`${g}-spin`]:!!i||r.name==="loading"},n);let C=c;C===void 0&&d&&(C=-1);const b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[$,S]=YR(f);return l.createElement("span",_b({role:"img","aria-label":r.name},p,{ref:t,tabIndex:C,onClick:d,className:y}),l.createElement(Is,{icon:r,primaryColor:$,secondaryColor:S,style:b}))});gt.getTwoToneColor=Zz;gt.setTwoToneColor=UR;function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hb.apply(this,arguments)}const Jz=(e,t)=>l.createElement(gt,Hb({},e,{ref:t,icon:Wz})),wp=l.forwardRef(Jz);var e5={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"};function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bb.apply(this,arguments)}const t5=(e,t)=>l.createElement(gt,Bb({},e,{ref:t,icon:e5})),Ps=l.forwardRef(t5);var n5={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"};function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lb.apply(this,arguments)}const r5=(e,t)=>l.createElement(gt,Lb({},e,{ref:t,icon:n5})),qr=l.forwardRef(r5);var o5={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"};function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vb.apply(this,arguments)}const a5=(e,t)=>l.createElement(gt,Vb({},e,{ref:t,icon:o5})),zs=l.forwardRef(a5);var i5={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"};function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fb.apply(this,arguments)}const l5=(e,t)=>l.createElement(gt,Fb({},e,{ref:t,icon:i5})),TS=l.forwardRef(l5),GR=l.createContext({});function s5({children:e,...t}){return l.createElement(GR.Provider,{value:t},e)}function c5(e){const[,t]=l.useReducer(s=>s+1,0),n=l.useRef(e),r=ut(()=>n.current),i=ut(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,i]}const va="none",jf="appear",_f="enter",Hf="leave",Uw="none",Po="prepare",us="start",ds="active",NS="end",XR="prepared";function Gw(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function u5(e,t){const n={animationend:Gw("Animation","AnimationEnd"),transitionend:Gw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const d5=u5(Fr(),typeof window<"u"?window:{});let KR={};Fr()&&({style:KR}=document.createElement("div"));const Bf={};function QR(e){if(Bf[e])return Bf[e];const t=d5[e];if(t){const n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){const s=n[i];if(Object.prototype.hasOwnProperty.call(t,s)&&s in KR)return Bf[e]=t[s],Bf[e]}}return""}const ZR=QR("animationend"),JR=QR("transitionend"),f5=!!(ZR&&JR),Xw=ZR||"animationend",Kw=JR||"transitionend";function Qw(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return`${e}-${t}`}const m5=(e=>{const t=l.useRef();function n(i){i&&(i.removeEventListener(Kw,e),i.removeEventListener(Xw,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(Kw,e),i.addEventListener(Xw,e),t.current=i)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),eO=Fr()?l.useLayoutEffect:l.useEffect,p5=(()=>{const e=l.useRef(null);function t(){Ht.cancel(e.current)}function n(r,i=2){t();const s=Ht(()=>{i<=1?r({isCanceled:()=>s!==e.current}):n(r,i-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]}),g5=[Po,us,ds,NS],h5=[Po,XR],tO=!1,y5=!0;function nO(e){return e===ds||e===NS}const b5=((e,t,n)=>{const[r,i]=Am(Uw),[s,c]=p5();function d(){i(Po,!0)}const f=t?h5:g5;return eO(()=>{if(r!==Uw&&r!==NS){const p=f.indexOf(r),g=f[p+1],h=n(r);h===tO?i(g,!0):g&&s(y=>{function C(){y.isCanceled()||i(g,!0)}h===!0?C():Promise.resolve(h).then(C)})}},[e,r]),l.useEffect(()=>()=>{c()},[]),[d,r]});function v5(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:s=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:f,onEnterPrepare:p,onLeavePrepare:g,onAppearStart:h,onEnterStart:y,onLeaveStart:C,onAppearActive:b,onEnterActive:$,onLeaveActive:S,onAppearEnd:w,onEnterEnd:M,onLeaveEnd:x,onVisibleChanged:R}){const[O,N]=Am(),[T,P]=c5(va),[D,k]=Am(null),W=T(),U=l.useRef(!1),G=l.useRef(null);function L(){return n()}const H=l.useRef(!1);function _(){P(va),k(null,!0)}const B=ut(Z=>{const oe=T();if(oe===va)return;const ne=L();if(Z&&!Z.deadline&&Z.target!==ne)return;const ie=H.current;let de;oe===jf&&ie?de=w?.(ne,Z):oe===_f&&ie?de=M?.(ne,Z):oe===Hf&&ie&&(de=x?.(ne,Z)),ie&&de!==!1&&_()}),[I]=m5(B),z=Z=>{switch(Z){case jf:return{[Po]:f,[us]:h,[ds]:b};case _f:return{[Po]:p,[us]:y,[ds]:$};case Hf:return{[Po]:g,[us]:C,[ds]:S};default:return{}}},V=l.useMemo(()=>z(W),[W]),[A,j]=b5(W,!e,Z=>{if(Z===Po){const oe=V[Po];return oe?oe(L()):tO}return j in V&&k(V[j]?.(L(),null)||null),j===ds&&W!==va&&(I(L()),c>0&&(clearTimeout(G.current),G.current=setTimeout(()=>{B({deadline:!0})},c))),j===XR&&_(),y5}),q=nO(j);H.current=q;const X=l.useRef(null);eO(()=>{if(U.current&&X.current===t)return;N(t);const Z=U.current;U.current=!0;let oe;!Z&&t&&i&&(oe=jf),Z&&t&&r&&(oe=_f),(Z&&!t&&s||!Z&&d&&!t&&s)&&(oe=Hf);const ne=z(oe);oe&&(e||ne[Po])?(P(oe),A()):P(va),X.current=t},[t]),l.useEffect(()=>{(W===jf&&!i||W===_f&&!r||W===Hf&&!s)&&P(va)},[i,r,s]),l.useEffect(()=>()=>{U.current=!1,clearTimeout(G.current)},[]);const K=l.useRef(!1);l.useEffect(()=>{O&&(K.current=!0),O!==void 0&&W===va&&((K.current||O)&&R?.(O),K.current=!0)},[O,W]);let J=D;return V[Po]&&j===us&&(J={transition:"none",...J}),[T,j,J,O??t]}function S5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(i,s){return!!(i.motionName&&t&&s!==!1)}const r=l.forwardRef((i,s)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:f,children:p,motionName:g,leavedClassName:h,eventProps:y}=i,{motion:C}=l.useContext(GR),b=n(i,C),$=l.useRef();function S(){return fu($.current)}const[w,M,x,R]=v5(b,c,S,i),O=w(),N=l.useRef(R);R&&(N.current=!0);const T=l.useMemo(()=>{const k={};return Object.defineProperties(k,{nativeElement:{enumerable:!0,get:S},inMotion:{enumerable:!0,get:()=>()=>w()!==va},enableMotion:{enumerable:!0,get:()=>()=>b}}),k},[]);l.useImperativeHandle(s,()=>T,[]);let P;const D={...y,visible:c};if(!p)P=null;else if(O===va)R?P=p({...D},$):!d&&N.current&&h?P=p({...D,className:h},$):f||!d&&!h?P=p({...D,style:{display:"none"}},$):P=null;else{let k;M===Po?k="prepare":nO(M)?k="active":M===us&&(k="start");const W=Qw(g,`${O}-${k}`);P=p({...D,className:Q(Qw(g,O),{[W]:W&&k,[g]:typeof g=="string"}),style:x},$)}return l.isValidElement(P)&&ol(P)&&(al(P)||(P=l.cloneElement(P,{ref:$}))),P});return r.displayName="CSSMotion",r}const Sr=S5(f5),kb="add",Wb="keep",qb="remove",by="removed";function C5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Yb(e=[]){return e.map(C5)}function $5(e=[],t=[]){let n=[],r=0;const i=t.length,s=Yb(e),c=Yb(t);s.forEach(p=>{let g=!1;for(let h=r;h<i;h+=1){const y=c[h];if(y.key===p.key){r<h&&(n=n.concat(c.slice(r,h).map(C=>({...C,status:kb}))),r=h),n.push({...y,status:Wb}),r+=1,g=!0;break}}g||n.push({...p,status:qb})}),r<i&&(n=n.concat(c.slice(r).map(p=>({...p,status:kb}))));const d={};return n.forEach(({key:p})=>{d[p]=(d[p]||0)+1}),Object.keys(d).filter(p=>d[p]>1).forEach(p=>{n=n.filter(({key:g,status:h})=>g!==p||h!==qb),n.forEach(g=>{g.key===p&&(g.status=Wb)})}),n}function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ub.apply(this,arguments)}const x5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function w5(e,t=Sr){class n extends l.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:s}){const c=Yb(i);return{keyEntities:$5(s,c).filter(f=>{const p=s.find(({key:g})=>f.key===g);return!(p&&p.status===by&&f.status===qb)})}}removeKey=i=>{this.setState(s=>({keyEntities:s.keyEntities.map(d=>d.key!==i?d:{...d,status:by})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:d})=>d!==by).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:i}=this.state,{component:s,children:c,onVisibleChanged:d,onAllRemoved:f,...p}=this.props,g=s||l.Fragment,h={};return x5.forEach(y=>{h[y]=p[y],delete p[y]}),delete p.keys,l.createElement(g,p,i.map(({status:y,...C},b)=>{const $=y===kb||y===Wb;return l.createElement(t,Ub({},h,{key:C.key,visible:$,eventProps:C,onVisibleChanged:S=>{d?.(S,{key:C.key}),S||this.removeKey(C.key)}}),(S,w)=>c({...S,index:b},w))}))}}return n}const E5=w5(),M5=`accept acceptCharset accessKey action allowFullScreen allowTransparency
106
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
107
+ charSet checked classID className colSpan cols content contentEditable contextMenu
108
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
109
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
110
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
111
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
112
+ mediaGroup method min minLength multiple muted name noValidate nonce open
113
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
114
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
115
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
116
+ summary tabIndex target title type useMap value width wmode wrap`,R5=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
117
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
118
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
119
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
120
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
121
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
122
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,O5=`${M5} ${R5}`.split(/[\s\n]+/),T5="aria-",N5="data-";function Zw(e,t){return e.indexOf(t)===0}function Pn(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(i=>{(n.aria&&(i==="role"||Zw(i,T5))||n.data&&Zw(i,N5)||n.attr&&O5.includes(i))&&(r[i]=e[i])}),r}const rO={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"};var I5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Cu(e){"@babel/helpers - typeof";return Cu=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},Cu(e)}function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(r){P5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P5(e,t,n){return t=z5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z5(e){var t=A5(e,"string");return Cu(t)=="symbol"?t:String(t)}function A5(e,t){if(Cu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D5=eE(eE({},I5),{},{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",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 oO={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},$u={lang:{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"],...D5},timePickerLocale:{...oO}},eo="${label} is not a valid ${type}",$a={locale:"en",Pagination:rO,DatePicker:$u,TimePicker:oO,Calendar:$u,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},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:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Sm={...$a.Modal},Cm=[];const tE=()=>Cm.reduce((e,t)=>({...e,...t}),$a.Modal);function j5(e){if(e){const t={...e};return Cm.push(t),Sm=tE(),()=>{Cm=Cm.filter(n=>n!==t),Sm=tE()}}Sm={...$a.Modal}}function aO(){return Sm}const IS=l.createContext(void 0),oo=(e,t)=>{const n=l.useContext(IS),r=l.useMemo(()=>{const s=t||$a[e],c=n?.[e]??{};return{...typeof s=="function"?s():s,...c||{}}},[e,t,n]),i=l.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?$a.locale:s},[n]);return[r,i]},_5="internalMark",H5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>j5(t?.Modal),[t]);const i=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(IS.Provider,{value:i},n)};function Gb(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}const Mr=e=>e!=null,Cs=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},iO={},nE=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return e&&typeof e=="object"&&(n={...n,...e}),n},B5=(e,t,n)=>e===!1?!1:e?Gb(n,t,e):t===!1?!1:t?Gb(n,t):n.closable?n:!1,L5=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:i,...s}=e;let c=i;const d=Pn(s,!0);return Mr(c)&&(r&&(c=r(c)),c=ae.isValidElement(c)?ae.cloneElement(c,{"aria-label":n,...c.props,...d}):ae.createElement("span",{"aria-label":n,...d},c)),[c,d]},V5=(e,t,n=iO,r="Close")=>{const i=nE(e?.closable,e?.closeIcon),s=nE(t?.closable,t?.closeIcon),c={closeIcon:ae.createElement(qr,null),...n},d=B5(i,s,c),f=typeof d!="boolean"?!!d?.disabled:!1;if(d===!1)return[!1,null,f,{}];const[p,g]=L5(d,c,r);return[!0,p,f,g]},PS=(e,t,n=iO)=>{const[r]=oo("global",$a.global);return ae.useMemo(()=>V5(e,t,{closeIcon:ae.createElement(qr,null),...n},r.close),[e,t,n,r.close])},F5=()=>ae.useReducer(e=>e+1,0),rE=e=>e&&typeof e=="object"?e:typeof e=="boolean"?{enabled:e,blur:e}:{},lO=(e,t,n)=>l.useMemo(()=>{const r=rE(e),s={...rE(t),...r},c=s.blur!==!1?`${n}-mask-blur`:void 0;return[s.enabled!==!1,{mask:c}]},[e,t,n]),zS=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,i)=>(Object.keys(i||{}).forEach(s=>{const c=n[s],d=i[s];if(c&&typeof c=="object")if(d&&typeof d=="object")r[s]=zS(c,r[s],d);else{const{_default:f}=c;f&&(r[s]=r[s]||{},r[s][f]=Q(r[s][f],d))}else r[s]=Q(r[s],d)}),r),{})},k5=(e,...t)=>l.useMemo(()=>zS.apply(void 0,[e].concat(t)),[e].concat(t)),sO=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),W5=(...e)=>l.useMemo(()=>sO.apply(void 0,e),[].concat(e)),Xb=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const i=t[r],s=n[r]||{};n[r]=i?Xb(s,i):s}}),n},fs=(e,t)=>typeof e=="function"?e(t):e,Lt=(e,t,n,r)=>{const i=e.map(f=>f?fs(f,n):void 0),s=t.map(f=>f?fs(f,n):void 0),c=k5.apply(void 0,[r].concat(xn(i))),d=W5.apply(void 0,xn(s));return l.useMemo(()=>r?[Xb(c,r),Xb(d,r)]:[c,d],[c,d,r])},oE=e=>e==="horizontal"||e==="vertical",id=(e,t,n)=>l.useMemo(()=>{const r=oE(e);let i;return r?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=oE(n)?n:"horizontal",[i,i==="vertical"]},[n,e,t]),q5=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(i=>[].concat(xn(i),[r])),()=>{t(i=>i.filter(s=>s!==r))}),[]);return[e,n]},ld=ae.createContext(void 0),ei=100,Y5=10,cO=ei*Y5,uO={Modal:ei,Drawer:ei,Popover:ei,Popconfirm:ei,Tooltip:ei,Tour:ei,FloatButton:ei},U5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},G5=e=>e in uO,fi=(e,t)=>{const[,n]=Wr(),r=ae.useContext(ld),i=G5(e);let s;if(t!==void 0)s=[t,t];else{let c=r??0;i?c+=(r?0:n.zIndexPopupBase)+uO[e]:c+=U5[e],s=[r===void 0?t:c,c]}return s};function dO(e){return e&&ae.isValidElement(e)&&e.type===ae.Fragment}const AS=(e,t,n)=>ae.isValidElement(e)?ae.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function nr(e,t){return AS(e,e,t)}const Lf=(e,t,n,r,i)=>({background:e,border:`${te(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),X5=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:s,fontSizeLG:c,lineHeight:d,borderRadiusLG:f,motionEaseInOutCirc:p,withDescriptionIconSize:g,colorText:h,colorTextHeading:y,withDescriptionPadding:C,defaultPadding:b}=e;return{[t]:{...Zt(e),position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:f,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:d},"&-title":{color:y},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${p}, opacity ${n} ${p},
123
+ padding-top ${n} ${p}, padding-bottom ${n} ${p},
124
+ margin-bottom ${n} ${p}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:C,[`${t}-icon`]:{marginInlineEnd:i,fontSize:g,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:y,fontSize:c},[`${t}-description`]:{display:"block",color:h}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},K5=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:s,colorWarningBorder:c,colorWarningBg:d,colorError:f,colorErrorBorder:p,colorErrorBg:g,colorInfo:h,colorInfoBorder:y,colorInfoBg:C}=e;return{[t]:{"&-success":Lf(i,r,n,e,t),"&-info":Lf(C,y,h,e,t),"&-warning":Lf(d,c,s,e,t),"&-error":{...Lf(g,p,f,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},Q5=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:s,colorIcon:c,colorIconHover:d}=e;return{[t]:{"&-actions":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:s,lineHeight:te(s),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:c,transition:`color ${r}`,"&:hover":{color:d}}},"&-close-text":{color:c,transition:`color ${r}`,"&:hover":{color:d}}}}},Z5=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),J5=Pt("Alert",e=>[X5(e),K5(e),Q5(e)],Z5),eA={success:wp,info:TS,error:Ps,warning:zs},tA=e=>{const{icon:t,prefixCls:n,type:r,className:i,style:s}=e,c=eA[r]||null;return t?AS(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:Q(t.props.className,i),style:s})):l.createElement(c,{className:i,style:s})},nA=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:s,className:c,style:d}=e,f=r===!0||r===void 0?l.createElement(qr,null):r;return t?l.createElement("button",{type:"button",onClick:i,className:Q(`${n}-close-icon`,c),tabIndex:0,style:d,...s},f):null},fO=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,title:s,banner:c,className:d,rootClassName:f,style:p,onMouseEnter:g,onMouseLeave:h,onClick:y,afterClose:C,showIcon:b,closable:$,closeText:S,closeIcon:w,action:M,id:x,styles:R,classNames:O,...N}=e,T=s??i,[P,D]=l.useState(!1),k=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:k.current}));const{getPrefixCls:W,direction:U,closable:G,closeIcon:L,className:H,style:_,classNames:B,styles:I}=It("alert"),z=W("alert",r),[V,A]=J5(z),{onClose:j,afterClose:q}=$&&typeof $=="object"?$:{},X=re=>{D(!0),(j??e.onClose)?.(re)},K=l.useMemo(()=>e.type!==void 0?e.type:c?"warning":"info",[e.type,c]),J=l.useMemo(()=>typeof $=="object"&&$.closeIcon||S?!0:typeof $=="boolean"?$:w!==!1&&Mr(w)?!0:!!G,[S,w,$,G]),Z=c&&b===void 0?!0:b,oe={...e,prefixCls:z,type:K,showIcon:Z,closable:J},[ne,ie]=Lt([B,O],[I,R],{props:oe}),de=Q(z,`${z}-${K}`,{[`${z}-with-description`]:!!n,[`${z}-no-icon`]:!Z,[`${z}-banner`]:!!c,[`${z}-rtl`]:U==="rtl"},H,d,f,ne.root,A,V),le=Pn(N,{aria:!0,data:!0}),fe=l.useMemo(()=>typeof $=="object"&&$.closeIcon?$.closeIcon:S||(w!==void 0?w:typeof G=="object"&&G.closeIcon?G.closeIcon:L),[w,$,G,S,L]),ge=l.useMemo(()=>{const re=$??G;return typeof re=="object"?Pn(re,{data:!0,aria:!0}):{}},[$,G]);return l.createElement(Sr,{visible:!P,motionName:`${z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:re=>({maxHeight:re.offsetHeight}),onLeaveEnd:q??C},({className:re,style:ce},he)=>l.createElement("div",{id:x,ref:or(k,he),"data-show":!P,className:Q(de,re),style:{...ie.root,..._,...p,...ce},onMouseEnter:g,onMouseLeave:h,onClick:y,role:"alert",...le},Z?l.createElement(tA,{className:Q(`${z}-icon`,ne.icon),style:ie.icon,description:n,icon:e.icon,prefixCls:z,type:K}):null,l.createElement("div",{className:Q(`${z}-section`,ne.section),style:ie.section},T?l.createElement("div",{className:Q(`${z}-title`,ne.title),style:ie.title},T):null,n?l.createElement("div",{className:Q(`${z}-description`,ne.description),style:ie.description},n):null),M?l.createElement("div",{className:Q(`${z}-actions`,ne.actions),style:ie.actions},M):null,l.createElement(nA,{className:ne.close,style:ie.close,isClosable:J,prefixCls:z,closeIcon:fe,handleClose:X,ariaProps:ge})))});function rA(e,t,n){return t=Qi(t),NR(e,$p()?Reflect.construct(t,n||[],Qi(e).constructor):t.apply(e,n))}let oA=(function(e){function t(){var n;return il(this,t),n=rA(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return MS(t,e),ll(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,title:i,description:s,id:c,children:d}=this.props,{error:f,info:p}=this.state,g=i??r,h=p?.componentStack||null,y=typeof g>"u"?(f||"").toString():g,C=typeof s>"u"?h:s;return f?l.createElement(fO,{id:c,type:"error",title:y,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},C)}):d}}])})(l.Component);const mO=fO;mO.ErrorBoundary=oA;const ar=e=>`${e}-css-var`,aA=l.createContext(void 0);var Ji=Z4();const pO=l.createContext(null);let iA=!1;function lA(e){return iA}const aE=[];function sA(e,t){const[n]=l.useState(()=>Fr()?document.createElement("div"):null),r=l.useRef(!1),i=l.useContext(pO),[s,c]=l.useState(aE),d=i||(r.current?void 0:g=>{c(h=>[g,...h])});function f(){n.parentElement||document.body.appendChild(n),r.current=!0}function p(){n.parentElement?.removeChild(n),r.current=!1}return Nt(()=>(e?i?i(f):f():p(),p),[e]),Nt(()=>{s.length&&(s.forEach(g=>g()),c(aE))},[s]),[n,d]}function cA(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let i,s;if(e){const f=getComputedStyle(e);r.scrollbarColor=f.scrollbarColor,r.scrollbarWidth=f.scrollbarWidth;const p=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(p.width,10),h=parseInt(p.height,10);try{const y=g?`width: ${p.width};`:"",C=h?`height: ${p.height};`:"";ai(`
125
+ #${t}::-webkit-scrollbar {
126
+ ${y}
127
+ ${C}
128
+ }`,t)}catch(y){console.error(y),i=g,s=h}}document.body.appendChild(n);const c=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,d=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),gu(t),{width:c,height:d}}function uA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:cA(e)}function dA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const fA=`rc-util-locker-${Date.now()}`;let iE=0;function mA(e){const t=!!e,[n]=l.useState(()=>(iE+=1,`${fA}_${iE}`));Nt(()=>{if(t){const r=uA(document.body).width,i=dA();ai(`
129
+ html body {
130
+ overflow-y: hidden;
131
+ ${i?`width: calc(100% - ${r}px);`:""}
132
+ }`,n)}else gu(n);return()=>{gu(n)}},[t,n])}function pA(){return{...PP}.useId}let lE=0;const sE=pA(),Ko=sE?(function(t){const n=sE();return t||n}):(function(t){const[n,r]=l.useState("ssr-id");return l.useEffect(()=>{const i=lE;lE+=1,r(`rc_unique_${i}`)},[]),t||n});let ki=[];const gA=200;let gO=0;const hO=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-gO<gA)return;const n=ki.length;for(let r=n-1;r>=0;r-=1)ki[r].onEsc({top:r===n-1,event:e})}},yO=()=>{gO=Date.now()};function hA(){window.addEventListener("keydown",hO),window.addEventListener("compositionend",yO)}function yA(){ki.length===0&&(window.removeEventListener("keydown",hO),window.removeEventListener("compositionend",yO))}function bA(e,t){const n=Ko(),r=ut(t),i=()=>{ki.find(c=>c.id===n)||ki.push({id:n,onEsc:r})},s=()=>{ki=ki.filter(c=>c.id!==n)};l.useMemo(()=>{e?i():e||s()},[e]),l.useEffect(()=>{if(e)return i(),hA(),()=>{s(),yA()}},[e])}const cE=e=>e===!1?!1:!Fr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,sd=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:i,debug:s,autoDestroy:c=!0,children:d,onEsc:f}=e,[p,g]=l.useState(n),h=p||n;l.useEffect(()=>{(c||n)&&g(n)},[n,c]);const[y,C]=l.useState(()=>cE(i));l.useEffect(()=>{const O=cE(i);C(()=>O??null)});const[b,$]=sA(h&&!y),S=y??b;mA(r&&n&&Fr()&&(S===b||S===document.body)),bA(n,f);let w=null;d&&ol(d)&&t&&(w=al(d));const M=di(w,t);if(!h||!Fr()||y===void 0)return null;const x=S===!1||lA();let R=d;return t&&(R=l.cloneElement(d,{ref:M})),l.createElement(pO.Provider,{value:$},x?R:Ji.createPortal(R,S))});function vA(e){const{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:s,content:c,style:d}=r||{},{x:f=0,y:p=0}=i,g=l.useRef(null);if(!n||!n.points)return null;const h={position:"absolute"};if(n.autoArrow!==!1){const y=n.points[0],C=n.points[1],b=y[0],$=y[1],S=C[0],w=C[1];b===S||!["t","b"].includes(b)?h.top=p:b==="t"?h.top=0:h.bottom=0,$===w||!["l","r"].includes($)?h.left=f:$==="l"?h.left=0:h.right=0}return l.createElement("div",{ref:g,className:Q(`${t}-arrow`,s),style:{...h,...d}},c)}function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(this,arguments)}function SA(e){const{prefixCls:t,open:n,zIndex:r,mask:i,motion:s,mobile:c}=e;return i?l.createElement(Sr,Kb({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:d})=>l.createElement("div",{style:{zIndex:r},className:Q(`${t}-mask`,c&&`${t}-mobile-mask`,d)})):null}const CA=l.memo(({children:e})=>e,(e,t)=>t.cache);function bO(e,t,n,r,i,s,c,d){const f="auto",p=e?{}:{left:"-1000vw",top:"-1000vh",right:f,bottom:f};if(!e&&(t||!n)){const{points:g}=r,h=r.dynamicInset||r._experimental?.dynamicInset,y=h&&g[0][1]==="r",C=h&&g[0][0]==="b";y?(p.right=i,p.left=f):(p.left=c,p.right=f),C?(p.bottom=s,p.top=f):(p.top=d,p.bottom=f)}return p}function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qb.apply(this,arguments)}const vO=l.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:i,prefixCls:s,style:c,target:d,onVisibleChanged:f,open:p,keepDom:g,fresh:h,onClick:y,mask:C,arrow:b,arrowPos:$,align:S,motion:w,maskMotion:M,mobile:x,forceRender:R,getPopupContainer:O,autoDestroy:N,portal:T,children:P,zIndex:D,onMouseEnter:k,onMouseLeave:W,onPointerEnter:U,onPointerDownCapture:G,ready:L,offsetX:H,offsetY:_,offsetR:B,offsetB:I,onAlign:z,onPrepare:V,onResize:A,stretch:j,targetWidth:q,targetHeight:X}=e,K=typeof r=="function"?r():r,J=p||g,Z=!!x,[oe,ne,ie]=l.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[C,M,w],[x,C,M,w]),de=O?.length>0,[le,fe]=l.useState(!O||!de);Nt(()=>{!le&&de&&d&&fe(!0)},[le,de,d]);const ge=ut((he,pe)=>{A?.(he,pe),z()}),re=bO(Z,L,p,S,B,I,H,_);if(!le)return null;const ce={};return j&&(j.includes("height")&&X?ce.height=X:j.includes("minHeight")&&X&&(ce.minHeight=X),j.includes("width")&&q?ce.width=q:j.includes("minWidth")&&q&&(ce.minWidth=q)),p||(ce.pointerEvents="none"),l.createElement(T,{open:R||J,getContainer:O&&(()=>O(d)),autoDestroy:N,onEsc:n},l.createElement(SA,{prefixCls:s,open:p,zIndex:D,mask:oe,motion:ne,mobile:Z}),l.createElement(Vr,{onResize:ge,disabled:!p},he=>l.createElement(Sr,Qb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:R,leavedClassName:`${s}-hidden`},ie,{onAppearPrepare:V,onEnterPrepare:V,visible:p,onVisibleChanged:pe=>{w?.onVisibleChanged?.(pe),f(pe)}}),({className:pe,style:Se},Ie)=>{const Me=Q(s,pe,i,{[`${s}-mobile`]:Z});return l.createElement("div",{ref:or(he,t,Ie),className:Me,style:{"--arrow-x":`${$.x||0}px`,"--arrow-y":`${$.y||0}px`,...re,...ce,...Se,boxSizing:"border-box",zIndex:D,...c},onMouseEnter:k,onMouseLeave:W,onPointerEnter:U,onClick:y,onPointerDownCapture:G},b&&l.createElement(vA,{prefixCls:s,arrow:b,arrowPos:$,align:S}),l.createElement(CA,{cache:!p&&!h},K))})),P)}),Lm=l.createContext(null),SO=l.createContext(null);function uE(e){return e?Array.isArray(e)?e:[e]:[]}function $A(e,t,n){return l.useMemo(()=>{const r=uE(t??e),i=uE(n??e),s=new Set(r),c=new Set(i);return s.has("hover")&&!s.has("click")&&s.add("touch"),c.has("hover")&&!c.has("click")&&c.add("touch"),[s,c]},[e,t,n])}const Ep=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function xA(e=[],t=[],n){const r=(i,s)=>i[s]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function CO(e,t,n,r){const{points:i}=n,s=Object.keys(e);for(let c=0;c<s.length;c+=1){const d=s[c];if(xA(e[d]?.points,i,r))return`${t}-placement-${d}`}return""}function cd(e){return e.ownerDocument.defaultView}function Zb(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:i,overflowY:s,overflow:c}=cd(n).getComputedStyle(n);[i,s,c].some(d=>r.includes(d))&&t.push(n),n=n.parentElement}return t}function xu(e,t=1){return Number.isNaN(e)?t:e}function zc(e){return xu(parseFloat(e),0)}function dE(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:s,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:f,borderRightWidth:p}=cd(r).getComputedStyle(r),g=r.getBoundingClientRect(),{offsetHeight:h,clientHeight:y,offsetWidth:C,clientWidth:b}=r,$=zc(c),S=zc(d),w=zc(f),M=zc(p),x=xu(Math.round(g.width/C*1e3)/1e3),R=xu(Math.round(g.height/h*1e3)/1e3),O=(C-b-w-M)*x,N=(h-y-$-S)*R,T=$*R,P=S*R,D=w*x,k=M*x;let W=0,U=0;if(i==="clip"){const B=zc(s);W=B*x,U=B*R}const G=g.x+D-W,L=g.y+T-U,H=G+g.width+2*W-D-k-O,_=L+g.height+2*U-T-P-N;n.left=Math.max(n.left,G),n.top=Math.max(n.top,L),n.right=Math.min(n.right,H),n.bottom=Math.min(n.bottom,_)}),n}function fE(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function mE(e,t){const[n,r]=t||[];return[fE(e.width,n),fE(e.height,r)]}function pE(e=""){return[e[0],e[1]]}function Kl(e,t){const n=t[0],r=t[1];let i,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:s}}function Qa(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function gE(e){return e.join("")}function $O(e,t,n,r,i,s,c,d){const[f,p]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),g=l.useRef(0),h=l.useMemo(()=>!t||d?[]:Zb(t),[t]),y=l.useRef({});e||(y.current={});const b=ut(()=>{if(t&&n&&e&&!d){let Ze=function(yt,Sn,Mn=ce){const Fn=H.x+yt,In=H.y+Sn,wo=Fn+K,Zo=In+X,Eo=Math.max(Fn,Mn.left),_o=Math.max(In,Mn.top),tt=Math.min(wo,Mn.right),Jt=Math.min(Zo,Mn.bottom);return Math.max(0,(tt-Eo)*(Jt-_o))},Je=function(){ze=H.y+Ae,We=ze+X,Re=H.x+ve,Ye=Re+K};var w=Ze,M=Je;const x=t,R=x.ownerDocument,O=cd(x),{position:N}=O.getComputedStyle(x),T=x.style.left,P=x.style.top,D=x.style.right,k=x.style.bottom,W=x.style.overflow,U={...i[r],...s},G=R.createElement("div");x.parentElement?.appendChild(G),G.style.left=`${x.offsetLeft}px`,G.style.top=`${x.offsetTop}px`,G.style.position=N,G.style.height=`${x.offsetHeight}px`,G.style.width=`${x.offsetWidth}px`,x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";let L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{const yt=n.getBoundingClientRect();yt.x=yt.x??yt.left,yt.y=yt.y??yt.top,L={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}const H=x.getBoundingClientRect(),{height:_,width:B}=O.getComputedStyle(x);H.x=H.x??H.left,H.y=H.y??H.top;const{clientWidth:I,clientHeight:z,scrollWidth:V,scrollHeight:A,scrollTop:j,scrollLeft:q}=R.documentElement,X=H.height,K=H.width,J=L.height,Z=L.width,oe={left:0,top:0,right:I,bottom:z},ne={left:-q,top:-j,right:V-q,bottom:A-j};let{htmlRegion:ie}=U;const de="visible",le="visibleFirst";ie!=="scroll"&&ie!==le&&(ie=de);const fe=ie===le,ge=dE(ne,h),re=dE(oe,h),ce=ie===de?re:ge,he=fe?re:ce;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";const pe=x.getBoundingClientRect();x.style.left=T,x.style.top=P,x.style.right=D,x.style.bottom=k,x.style.overflow=W,x.parentElement?.removeChild(G);const Se=xu(Math.round(K/parseFloat(B)*1e3)/1e3),Ie=xu(Math.round(X/parseFloat(_)*1e3)/1e3);if(Se===0||Ie===0||vs(n)&&!Ep(n))return;const{offset:Me,targetOffset:we}=U;let[se,be]=mE(H,Me);const[Ee,Ne]=mE(L,we);L.x-=Ee,L.y-=Ne;const[Fe,Ge]=U.points||[],et=pE(Ge),Oe=pE(Fe),_e=Kl(L,et),Ve=Kl(H,Oe),Qe={...U};let De=[Oe,et],ve=_e.x-Ve.x+se,Ae=_e.y-Ve.y+be;const Be=Ze(ve,Ae),Ue=Ze(ve,Ae,re),Pe=Kl(L,["t","l"]),Xe=Kl(H,["t","l"]),rt=Kl(L,["b","r"]),ot=Kl(H,["b","r"]),lt=U.overflow||{},{adjustX:St,adjustY:Ct,shiftX:qe,shiftY:at}=lt,He=yt=>typeof yt=="boolean"?yt:yt>=0;let ze,We,Re,Ye;Je();const it=He(Ct),ft=Oe[0]===et[0];if(it&&Oe[0]==="t"&&(We>he.bottom||y.current.bt)){let yt=Ae;ft?yt-=X-J:yt=Pe.y-ot.y-be;const Sn=Ze(ve,yt),Mn=Ze(ve,yt,re);Sn>Be||Sn===Be&&(!fe||Mn>=Ue)?(y.current.bt=!0,Ae=yt,be=-be,De=[Qa(De[0],0),Qa(De[1],0)]):y.current.bt=!1}if(it&&Oe[0]==="b"&&(ze<he.top||y.current.tb)){let yt=Ae;ft?yt+=X-J:yt=rt.y-Xe.y-be;const Sn=Ze(ve,yt),Mn=Ze(ve,yt,re);Sn>Be||Sn===Be&&(!fe||Mn>=Ue)?(y.current.tb=!0,Ae=yt,be=-be,De=[Qa(De[0],0),Qa(De[1],0)]):y.current.tb=!1}const Ft=He(St),Dt=Oe[1]===et[1];if(Ft&&Oe[1]==="l"&&(Ye>he.right||y.current.rl)){let yt=ve;Dt?yt-=K-Z:yt=Pe.x-ot.x-se;const Sn=Ze(yt,Ae),Mn=Ze(yt,Ae,re);Sn>Be||Sn===Be&&(!fe||Mn>=Ue)?(y.current.rl=!0,ve=yt,se=-se,De=[Qa(De[0],1),Qa(De[1],1)]):y.current.rl=!1}if(Ft&&Oe[1]==="r"&&(Re<he.left||y.current.lr)){let yt=ve;Dt?yt+=K-Z:yt=rt.x-Xe.x-se;const Sn=Ze(yt,Ae),Mn=Ze(yt,Ae,re);Sn>Be||Sn===Be&&(!fe||Mn>=Ue)?(y.current.lr=!0,ve=yt,se=-se,De=[Qa(De[0],1),Qa(De[1],1)]):y.current.lr=!1}Qe.points=[gE(De[0]),gE(De[1])],Je();const $t=qe===!0?0:qe;typeof $t=="number"&&(Re<re.left&&(ve-=Re-re.left-se,L.x+Z<re.left+$t&&(ve+=L.x-re.left+Z-$t)),Ye>re.right&&(ve-=Ye-re.right-se,L.x>re.right-$t&&(ve+=L.x-re.right+$t)));const nn=at===!0?0:at;typeof nn=="number"&&(ze<re.top&&(Ae-=ze-re.top-be,L.y+J<re.top+nn&&(Ae+=L.y-re.top+J-nn)),We>re.bottom&&(Ae-=We-re.bottom-be,L.y>re.bottom-nn&&(Ae+=L.y-re.bottom+nn)));const wt=H.x+ve,Ke=wt+K,Et=H.y+Ae,mt=Et+X,Rt=L.x,Ut=Rt+Z,an=L.y,kt=an+J,wn=Math.max(wt,Rt),En=Math.min(Ke,Ut),fn=(wn+En)/2-wt,mr=Math.max(Et,an),zn=Math.min(mt,kt),pr=(mr+zn)/2-Et;c?.(t,Qe);let gr=pe.right-H.x-(ve+H.width),Pr=pe.bottom-H.y-(Ae+H.height);Se===1&&(ve=Math.round(ve),gr=Math.round(gr)),Ie===1&&(Ae=Math.round(Ae),Pr=Math.round(Pr));const Yr={ready:!0,offsetX:ve/Se,offsetY:Ae/Ie,offsetR:gr/Se,offsetB:Pr/Ie,arrowX:fn/Se,arrowY:pr/Ie,scaleX:Se,scaleY:Ie,align:Qe};p(Yr)}}),$=()=>{g.current+=1;const w=g.current;Promise.resolve().then(()=>{g.current===w&&b()})},S=()=>{p(w=>({...w,ready:!1}))};return Nt(S,[r]),Nt(()=>{e||S()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,$]}function xO(){const e=l.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,i)=>{t(),i===0?r():e.current=setTimeout(()=>{r()},i*1e3)};return l.useEffect(()=>()=>{t()},[]),n}function wA(e,t,n,r,i){Nt(()=>{if(e&&t&&n){let y=function(){r(),i()};var s=y;const c=t,d=n,f=Zb(c),p=Zb(d),g=cd(d),h=new Set([g,...f,...p]);return h.forEach(C=>{C.addEventListener("scroll",y,{passive:!0})}),g.addEventListener("resize",y,{passive:!0}),r(),()=>{h.forEach(C=>{C.removeEventListener("scroll",y),g.removeEventListener("resize",y)})}}},[e,t,n])}function EA(e,t,n,r,i,s,c,d){const f=l.useRef(e);f.current=e;const p=l.useRef(!1);l.useEffect(()=>{if(t&&r&&(!i||s)){const h=()=>{p.current=!1},y=$=>{f.current&&!c($.composedPath?.()?.[0]||$.target)&&!p.current&&d(!1)},C=cd(r);C.addEventListener("pointerdown",h,!0),C.addEventListener("mousedown",y,!0),C.addEventListener("contextmenu",y,!0);const b=Bm(n);return b&&(b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0)),()=>{C.removeEventListener("pointerdown",h,!0),C.removeEventListener("mousedown",y,!0),C.removeEventListener("contextmenu",y,!0),b&&(b.removeEventListener("mousedown",y,!0),b.removeEventListener("contextmenu",y,!0))}}},[t,n,r,i,s]);function g(){p.current=!0}return g}function MA(){const[e,t]=ae.useState(null),[n,r]=ae.useState(!1),[i,s]=ae.useState(!1),c=ae.useRef(null),d=ut(p=>{p===!1?(c.current=null,r(!1)):i&&n?c.current=p:(r(!0),t(p),c.current=null,n||s(!0))}),f=ut(p=>{p?(s(!1),c.current&&(t(c.current),c.current=null)):(s(!1),c.current=null)});return[d,n,e,f]}function Jb(){return Jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jb.apply(this,arguments)}const RA=e=>{const{prefixCls:t,isMobile:n,ready:r,open:i,align:s,offsetR:c,offsetB:d,offsetX:f,offsetY:p,arrowPos:g,popupSize:h,motion:y,uniqueContainerClassName:C,uniqueContainerStyle:b}=e,$=`${t}-unique-container`,[S,w]=ae.useState(!1),M=bO(n,r,i,s,c,d,f,p),x=ae.useRef(M);r&&(x.current=M);const R={};return h&&(R.width=h.width,R.height=h.height),ae.createElement(Sr,Jb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${$}-hidden`},y,{visible:i,onVisibleChanged:O=>{w(O)}}),({className:O,style:N})=>{const T=Q($,O,C,{[`${$}-visible`]:S});return ae.createElement("div",{className:T,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...x.current,...R,...N,...b}})})},OA=({children:e,postTriggerProps:t})=>{const[n,r,i,s]=MA(),c=l.useMemo(()=>!i||!t?i:t(i),[i,t]),[d,f]=l.useState(null),[p,g]=l.useState(null),h=l.useRef(null),y=ut(I=>{h.current=I,vs(I)&&d!==I&&f(I)}),C=l.useRef(null),b=xO(),$=ut((I,z)=>{C.current=z,b(()=>{n(I)},I.delay)}),S=I=>{b(()=>{C.current?.()||n(!1)},I)},w=ut(I=>{s(I)}),[M,x,R,O,N,T,P,,,D,k]=$O(r,d,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),W=l.useMemo(()=>{if(!c)return"";const I=CO(c.builtinPlacements||{},c.prefixCls||"",D,!1);return Q(I,c.getPopupClassNameFromAlign?.(D))},[D,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),U=l.useMemo(()=>({show:$,hide:S}),[]);l.useEffect(()=>{k()},[c?.target]);const G=ut(()=>(k(),Promise.resolve())),L=l.useRef({}),H=l.useContext(Lm),_=l.useMemo(()=>({registerSubPopup:(I,z)=>{L.current[I]=z,H?.registerSubPopup(I,z)}}),[H]),B=c?.prefixCls;return l.createElement(SO.Provider,{value:U},e,c&&l.createElement(Lm.Provider,{value:_},l.createElement(vO,{ref:y,portal:sd,onEsc:c.onEsc,prefixCls:B,popup:c.popup,className:Q(c.popupClassName,W,`${B}-unique-controlled`),style:c.popupStyle,target:c.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:w,ready:M,offsetX:x,offsetY:R,offsetR:O,offsetB:N,onAlign:k,onPrepare:G,onResize:I=>g({width:I.offsetWidth,height:I.offsetHeight}),arrowPos:{x:T,y:P},align:D,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},l.createElement(RA,{prefixCls:B,isMobile:!1,ready:M,open:r,align:D,offsetR:O,offsetB:N,offsetX:x,offsetY:R,arrowPos:{x:T,y:P},popupSize:p,motion:c.popupMotion,uniqueContainerClassName:Q(c.uniqueContainerClassName,W),uniqueContainerStyle:c.uniqueContainerStyle}))))};function TA(e=sd){return l.forwardRef((n,r)=>{const{prefixCls:i="rc-trigger-popup",children:s,action:c="hover",showAction:d,hideAction:f,popupVisible:p,defaultPopupVisible:g,onOpenChange:h,afterOpenChange:y,onPopupVisibleChange:C,afterPopupVisibleChange:b,mouseEnterDelay:$,mouseLeaveDelay:S=.1,focusDelay:w,blurDelay:M,mask:x,maskClosable:R=!0,getPopupContainer:O,forceRender:N,autoDestroy:T,popup:P,popupClassName:D,uniqueContainerClassName:k,uniqueContainerStyle:W,popupStyle:U,popupPlacement:G,builtinPlacements:L={},popupAlign:H,zIndex:_,stretch:B,getPopupClassNameFromAlign:I,fresh:z,unique:V,alignPoint:A,onPopupClick:j,onPopupAlign:q,arrow:X,popupMotion:K,maskMotion:J,mobile:Z,...oe}=n,ne=T||!1,ie=p===void 0,de=!!Z,le=l.useRef({}),fe=l.useContext(Lm),ge=l.useMemo(()=>({registerSubPopup:(tt,Jt)=>{le.current[tt]=Jt,fe?.registerSubPopup(tt,Jt)}}),[fe]),re=l.useContext(SO),ce=Ko(),[he,pe]=l.useState(null),Se=l.useRef(null),Ie=ut(tt=>{Se.current=tt,vs(tt)&&he!==tt&&pe(tt),fe?.registerSubPopup(ce,tt)}),[Me,we]=l.useState(null),se=l.useRef(null),be=ut(tt=>{vs(tt)&&Me!==tt&&(we(tt),se.current=tt)}),Ee={},Ne=ut(tt=>{const Jt=Me;return Jt?.contains(tt)||Bm(Jt)?.host===tt||tt===Jt||he?.contains(tt)||Bm(he)?.host===tt||tt===he||Object.values(le.current).some(Hn=>Hn?.contains(tt)||tt===Hn)}),Fe=X?{...X!==!0?X:{}}:null,[Ge,et]=Yt(g||!1,p),Oe=Ge||!1,_e=l.useMemo(()=>{const tt=typeof s=="function"?s({open:Oe}):s;return l.Children.only(tt)},[s,Oe]),Ve=_e?.props||{},Qe=ut(()=>Oe),De=ut((tt=0)=>({popup:P,target:Me,delay:tt,prefixCls:i,popupClassName:D,uniqueContainerClassName:k,uniqueContainerStyle:W,popupStyle:U,popupPlacement:G,builtinPlacements:L,popupAlign:H,zIndex:_,mask:x,maskClosable:R,popupMotion:K,maskMotion:J,arrow:Fe,getPopupContainer:O,getPopupClassNameFromAlign:I,id:ce,onEsc:Ue}));Nt(()=>{re&&V&&Me&&!ie&&!fe&&(Oe?re.show(De($),Qe):re.hide(S))},[Oe,Me]);const ve=l.useRef(Oe);ve.current=Oe;const Ae=ut(tt=>{Ji.flushSync(()=>{Oe!==tt&&(et(tt),h?.(tt),C?.(tt))})}),Ze=xO(),Be=(tt,Jt=0)=>{if(p!==void 0){Ze(()=>{Ae(tt)},Jt);return}if(re&&V&&ie&&!fe){tt?re.show(De(Jt),Qe):re.hide(Jt);return}Ze(()=>{Ae(tt)},Jt)};function Ue({top:tt}){tt&&Be(!1)}const[Pe,Xe]=l.useState(!1);Nt(tt=>{(!tt||Oe)&&Xe(!0)},[Oe]);const[rt,ot]=l.useState(null),[lt,St]=l.useState(null),Ct=tt=>{St([tt.clientX,tt.clientY])},[qe,at,He,ze,We,Re,Ye,Je,it,ft,Ft]=$O(Oe,he,A&&lt!==null?lt:Me,G,L,H,q,de),[Dt,$t]=$A(c,d,f),nn=Dt.has("click"),wt=$t.has("click")||$t.has("contextMenu"),Ke=ut(()=>{Pe||Ft()});wA(Oe,Me,he,Ke,()=>{ve.current&&A&&wt&&Be(!1)}),Nt(()=>{Ke()},[lt,G]),Nt(()=>{Oe&&!L?.[G]&&Ke()},[JSON.stringify(H)]);const mt=l.useMemo(()=>{const tt=CO(L,i,ft,A);return Q(tt,I?.(ft))},[ft,I,L,i,A]);l.useImperativeHandle(r,()=>({nativeElement:se.current,popupElement:Se.current,forceAlign:Ke}));const[Rt,Ut]=l.useState(0),[an,kt]=l.useState(0),wn=()=>{if(B&&Me){const tt=Me.getBoundingClientRect();Ut(tt.width),kt(tt.height)}},En=()=>{wn(),Ke()},Cr=tt=>{Xe(!1),Ft(),y?.(tt),b?.(tt)},fn=()=>new Promise(tt=>{wn(),ot(()=>tt)});Nt(()=>{rt&&(Ft(),rt(),ot(null))},[rt]);function mr(tt,Jt,Hn,Jo,ea){Ee[tt]=(Ho,...io)=>{(!ea||!ea())&&(Jo?.(Ho),Be(Jt,Hn)),Ve[tt]?.(Ho,...io)}}const zn=Dt.has("touch"),$r=$t.has("touch"),pr=l.useRef(!1);(zn||$r)&&(Ee.onTouchStart=(...tt)=>{pr.current=!0,ve.current&&$r?Be(!1):!ve.current&&zn&&Be(!0),Ve.onTouchStart?.(...tt)}),(nn||wt)&&(Ee.onClick=(tt,...Jt)=>{ve.current&&wt?Be(!1):!ve.current&&nn&&(Ct(tt),Be(!0)),Ve.onClick?.(tt,...Jt),pr.current=!1});const gr=EA(Oe,wt||$r,Me,he,x,R,Ne,Be),Pr=Dt.has("hover"),Yr=$t.has("hover");let yt,Sn;const Mn=()=>pr.current;if(Pr){const tt=Jt=>{Ct(Jt)};mr("onMouseEnter",!0,$,tt,Mn),mr("onPointerEnter",!0,$,tt,Mn),yt=Jt=>{(Oe||Pe)&&he?.contains(Jt.target)&&Be(!0,$)},A&&(Ee.onMouseMove=Jt=>{Ve.onMouseMove?.(Jt)})}Yr&&(mr("onMouseLeave",!1,S,void 0,Mn),mr("onPointerLeave",!1,S,void 0,Mn),Sn=()=>{Be(!1,S)}),Dt.has("focus")&&mr("onFocus",!0,w),$t.has("focus")&&mr("onBlur",!1,M),Dt.has("contextMenu")&&(Ee.onContextMenu=(tt,...Jt)=>{ve.current&&$t.has("contextMenu")?Be(!1):(Ct(tt),Be(!0)),tt.preventDefault(),Ve.onContextMenu?.(tt,...Jt)});const Fn=l.useRef(!1);Fn.current||=N||Oe||Pe;const In={...Ve,...Ee},wo={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(tt=>{oe[tt]&&(wo[tt]=(...Jt)=>{In[tt]?.(...Jt),oe[tt](...Jt)})});const Eo={x:Re,y:Ye},_o=l.cloneElement(_e,{...In,...wo});return l.createElement(l.Fragment,null,l.createElement(Vr,{disabled:!Oe,ref:be,onResize:En},_o),Fn.current&&(!re||!V)&&l.createElement(Lm.Provider,{value:ge},l.createElement(vO,{portal:e,ref:Ie,prefixCls:i,popup:P,className:Q(D,!de&&mt),style:U,target:Me,onMouseEnter:yt,onMouseLeave:Sn,onPointerEnter:yt,zIndex:_,open:Oe,keepDom:Pe,fresh:z,onClick:j,onPointerDownCapture:gr,mask:x,motion:K,maskMotion:J,onVisibleChanged:Cr,onPrepare:fn,forceRender:N,autoDestroy:ne,getPopupContainer:O,onEsc:Ue,align:ft,arrow:Fe,arrowPos:Eo,ready:qe,offsetX:at,offsetY:He,offsetR:ze,offsetB:We,onAlign:Ke,stretch:B,targetWidth:Rt/Je,targetHeight:an/it,mobile:Z})))})}const ud=TA(sd),NA=({children:e})=>{const{getPrefixCls:t}=ae.useContext(dt),n=t();return ae.isValidElement(e)?ae.createElement(Sr,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:i})=>{const{className:s,style:c}=e.props,d={...c,...r};return ae.cloneElement(e,{className:Q(s,i),style:d})}):e},Vf=[null,null];function IA(e){if(Vf[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Vf[0]=e,Vf[1]=t}return Vf[1]}const wO=({children:e})=>{const t=n=>{const r=typeof n.popup=="function"?n.popup():n.popup,{id:i,builtinPlacements:s}=n,c=IA(s);return{...n,getPopupContainer:null,arrow:!1,popup:ae.createElement(NA,{key:i},r),builtinPlacements:c}};return ae.createElement(OA,{postTriggerProps:t},e)},kr=l.createContext(!1),EO=({children:e,disabled:t})=>{const n=l.useContext(kr);return l.createElement(kr.Provider,{value:t??n},e)},$s=l.createContext(void 0),PA=({children:e,size:t})=>{const n=l.useContext($s);return l.createElement($s.Provider,{value:t||n},e)};function zA(){const e=l.useContext(kr),t=l.useContext($s);return{componentDisabled:e,componentSize:t}}function AA(e,t,n){const r=e||{},i=r.inherit===!1||!t?{...Hm,hashed:t?.hashed??Hm.hashed,cssVar:t?.cssVar}:t,s=l.useId();return rd(()=>{if(!e)return t;const c={...i.components};Object.keys(e.components||{}).forEach(p=>{c[p]={...c[p],...e.components[p]}});const d=`css-var-${s.replace(/:/g,"")}`,f={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||d};return{...i,...r,token:{...i.token,...r.token},components:c,cssVar:f}},[r,i],(c,d)=>c.some((f,p)=>{const g=d[p];return!hu(f,g,!0)}))}const hE=l.createContext(!0);function DA(e){const t=l.useContext(hE),{children:n}=e,[,r]=Wr(),{motion:i}=r,s=l.useRef(!1);return s.current||(s.current=t!==i),s.current?l.createElement(hE.Provider,{value:i},l.createElement(s5,{motion:i},n)):n}const jA=()=>null,_A=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vm,MO,RO,OO;function vy(){return Vm||mu}function HA(){return MO||yp}const BA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Vm=t),n!==void 0&&(MO=n),"holderRender"in e&&(OO=i),r&&(RO=r)},TO=()=>({getPrefixCls:(e,t)=>t||(e?`${vy()}-${e}`:vy()),getIconPrefixCls:HA,getRootPrefixCls:()=>Vm||vy(),getTheme:()=>RO,holderRender:OO}),LA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:c,form:d,locale:f,componentSize:p,direction:g,space:h,splitter:y,virtual:C,dropdownMatchSelectWidth:b,popupMatchSelectWidth:$,popupOverflow:S,legacyLocale:w,parentContext:M,iconPrefixCls:x,theme:R,componentDisabled:O,segmented:N,statistic:T,spin:P,calendar:D,carousel:k,cascader:W,collapse:U,typography:G,checkbox:L,descriptions:H,divider:_,drawer:B,skeleton:I,steps:z,image:V,layout:A,list:j,mentions:q,modal:X,progress:K,result:J,slider:Z,breadcrumb:oe,masonry:ne,menu:ie,pagination:de,input:le,textArea:fe,otp:ge,empty:re,badge:ce,radio:he,rate:pe,ribbon:Se,switch:Ie,transfer:Me,avatar:we,message:se,tag:be,table:Ee,card:Ne,cardMeta:Fe,tabs:Ge,timeline:et,timePicker:Oe,upload:_e,notification:Ve,tree:Qe,colorPicker:De,datePicker:ve,rangePicker:Ae,flex:Ze,wave:Be,dropdown:Ue,warning:Pe,tour:Xe,tooltip:rt,popover:ot,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:qe,variant:at,inputNumber:He,treeSelect:ze,watermark:We}=e,Re=l.useCallback((mt,Rt)=>{const{prefixCls:Ut}=e;if(Rt)return Rt;const an=Ut||M.getPrefixCls("");return mt?`${an}-${mt}`:an},[M.getPrefixCls,e.prefixCls]),Ye=x||M.iconPrefixCls||yp,Je=n||M.csp;kz(Ye,Je);const it=AA(R,M.theme,{prefixCls:Re("")}),ft={csp:Je,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:c,locale:f||w,direction:g,space:h,splitter:y,virtual:C,popupMatchSelectWidth:$??b,popupOverflow:S,getPrefixCls:Re,iconPrefixCls:Ye,theme:it,segmented:N,statistic:T,spin:P,calendar:D,carousel:k,cascader:W,collapse:U,typography:G,checkbox:L,descriptions:H,divider:_,drawer:B,skeleton:I,steps:z,image:V,input:le,textArea:fe,otp:ge,layout:A,list:j,mentions:q,modal:X,progress:K,result:J,slider:Z,breadcrumb:oe,masonry:ne,menu:ie,pagination:de,empty:re,badge:ce,radio:he,rate:pe,ribbon:Se,switch:Ie,transfer:Me,avatar:we,message:se,tag:be,table:Ee,card:Ne,cardMeta:Fe,tabs:Ge,timeline:et,timePicker:Oe,upload:_e,notification:Ve,tree:Qe,colorPicker:De,datePicker:ve,rangePicker:Ae,flex:Ze,wave:Be,dropdown:Ue,warning:Pe,tour:Xe,tooltip:rt,popover:ot,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:qe,variant:at,inputNumber:He,treeSelect:ze,watermark:We},Ft={...M};Object.keys(ft).forEach(mt=>{ft[mt]!==void 0&&(Ft[mt]=ft[mt])}),_A.forEach(mt=>{const Rt=e[mt];Rt&&(Ft[mt]=Rt)}),typeof r<"u"&&(Ft.button={autoInsertSpace:r,...Ft.button});const Dt=rd(()=>Ft,Ft,(mt,Rt)=>{const Ut=Object.keys(mt),an=Object.keys(Rt);return Ut.length!==an.length||Ut.some(kt=>mt[kt]!==Rt[kt])}),{layer:$t}=l.useContext(od),nn=l.useMemo(()=>({prefixCls:Ye,csp:Je,layer:$t?"antd":void 0}),[Ye,Je,$t]);let wt=l.createElement(l.Fragment,null,l.createElement(jA,{dropdownMatchSelectWidth:b}),t);const Ke=l.useMemo(()=>cs($a.Form?.defaultValidateMessages||{},Dt.locale?.Form?.defaultValidateMessages||{},Dt.form?.validateMessages||{},d?.validateMessages||{}),[Dt,d?.validateMessages]);Object.keys(Ke).length>0&&(wt=l.createElement(aA.Provider,{value:Ke},wt)),f&&(wt=l.createElement(H5,{locale:f,_ANT_MARK__:_5},wt)),wt=l.createElement(OS.Provider,{value:nn},wt),p&&(wt=l.createElement(PA,{size:p},wt)),wt=l.createElement(DA,null,wt),rt?.unique&&(wt=l.createElement(wO,null,wt));const Et=l.useMemo(()=>{const{algorithm:mt,token:Rt,components:Ut,cssVar:an,...kt}=it||{},wn=mt&&(!Array.isArray(mt)||mt.length>0)?bb(mt):HR,En={};Object.entries(Ut||{}).forEach(([fn,mr])=>{const zn={...mr};"algorithm"in zn&&(zn.algorithm===!0?zn.theme=wn:(Array.isArray(zn.algorithm)||typeof zn.algorithm=="function")&&(zn.theme=bb(zn.algorithm)),delete zn.algorithm),En[fn]=zn});const Cr={...Su,...Rt};return{...kt,theme:wn,token:Cr,components:En,override:{override:Cr,...En},cssVar:an}},[it]);return R&&(wt=l.createElement(BR.Provider,{value:Et},wt)),Dt.warning&&(wt=l.createElement(JP.Provider,{value:Dt.warning},wt)),O!==void 0&&(wt=l.createElement(EO,{disabled:O},wt)),l.createElement(dt.Provider,{value:Dt},wt)},Qo=e=>{const t=l.useContext(dt),n=l.useContext(IS);return l.createElement(LA,{parentContext:t,legacyLocale:n,...e})};Qo.ConfigContext=dt;Qo.SizeContext=$s;Qo.config=BA;Qo.useConfig=zA;Object.defineProperty(Qo,"SizeContext",{get:()=>$s});const nt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fm.apply(this,arguments)}const NO=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,duration:s=4.5,showProgress:c,pauseOnHover:d=!0,eventKey:f,content:p,closable:g,props:h,onClick:y,onNoticeClose:C,times:b,hovering:$}=e,[S,w]=l.useState(!1),[M,x]=l.useState(0),[R,O]=l.useState(0),N=$||S,T=typeof s=="number"?s:0,P=T>0&&c,D=()=>{C(f)},k=H=>{(H.key==="Enter"||H.code==="Enter"||H.keyCode===nt.ENTER)&&D()};l.useEffect(()=>{if(!N&&T>0){const H=Date.now()-R,_=setTimeout(()=>{D()},T*1e3-R);return()=>{d&&clearTimeout(_),O(Date.now()-H)}}},[T,N,b]),l.useEffect(()=>{if(!N&&P&&(d||R===0)){const H=performance.now();let _;const B=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(I=>{const z=I+R-H,V=Math.min(z/(T*1e3),1);x(V*100),V<1&&B()})};return B(),()=>{d&&cancelAnimationFrame(_)}}},[T,R,N,P,b]);const W=l.useMemo(()=>typeof g=="object"&&g!==null?g:{},[g]),U=Pn(W,!0),G=100-(!M||M<0?0:M>100?100:M),L=`${n}-notice`;return l.createElement("div",Fm({},h,{ref:t,className:Q(L,i,{[`${L}-closable`]:g}),style:r,onMouseEnter:H=>{w(!0),h?.onMouseEnter?.(H)},onMouseLeave:H=>{w(!1),h?.onMouseLeave?.(H)},onClick:y}),l.createElement("div",{className:`${L}-content`},p),g&&l.createElement("button",Fm({className:`${L}-close`,onKeyDown:k,"aria-label":"Close"},U,{onClick:H=>{H.preventDefault(),H.stopPropagation(),D()}}),W.closeIcon??"x"),P&&l.createElement("progress",{className:`${L}-progress`,max:"100",value:G},G+"%"))}),IO=ae.createContext({}),VA=({children:e,classNames:t})=>ae.createElement(IO.Provider,{value:{classNames:t}},e),yE=8,bE=3,vE=16,FA=e=>{const t={offset:yE,threshold:bE,gap:vE};return e&&typeof e=="object"&&(t.offset=e.offset??yE,t.threshold=e.threshold??bE,t.gap=e.gap??vE),[!!e,t]};function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},km.apply(this,arguments)}const kA=e=>{const{configList:t,placement:n,prefixCls:r,className:i,style:s,motion:c,onAllNoticeRemoved:d,onNoticeClose:f,stack:p}=e,{classNames:g}=l.useContext(IO),h=l.useRef({}),[y,C]=l.useState(null),[b,$]=l.useState([]),S=t.map(T=>({config:T,key:String(T.key)})),[w,{offset:M,threshold:x,gap:R}]=FA(p),O=w&&(b.length>0||S.length<=x),N=typeof c=="function"?c(n):c;return l.useEffect(()=>{w&&b.length>1&&$(T=>T.filter(P=>S.some(({key:D})=>P===D)))},[b,S,w]),l.useEffect(()=>{w&&h.current[S[S.length-1]?.key]&&C(h.current[S[S.length-1]?.key])},[S,w]),ae.createElement(E5,km({key:n,className:Q(r,`${r}-${n}`,g?.list,i,{[`${r}-stack`]:!!w,[`${r}-stack-expanded`]:O}),style:s,keys:S,motionAppear:!0},N,{onAllRemoved:()=>{d(n)}}),({config:T,className:P,style:D,index:k},W)=>{const{key:U,times:G}=T,L=String(U),{className:H,style:_,classNames:B,styles:I,...z}=T,V=S.findIndex(j=>j.key===L),A={};if(w){const j=S.length-1-(V>-1?V:k-1),q=n==="top"||n==="bottom"?"-50%":"0";if(j>0){A.height=O?h.current[L]?.offsetHeight:y?.offsetHeight;let X=0;for(let Z=0;Z<j;Z++)X+=h.current[S[S.length-1-Z].key]?.offsetHeight+R;const K=(O?X:j*M)*(n.startsWith("top")?1:-1),J=!O&&y?.offsetWidth&&h.current[L]?.offsetWidth?(y?.offsetWidth-M*2*(j<3?j:3))/h.current[L]?.offsetWidth:1;A.transform=`translate3d(${q}, ${K}px, 0) scaleX(${J})`}else A.transform=`translate3d(${q}, 0, 0)`}return ae.createElement("div",{ref:W,className:Q(`${r}-notice-wrapper`,P,B?.wrapper),style:{...D,...A,...I?.wrapper},onMouseEnter:()=>$(j=>j.includes(L)?j:[...j,L]),onMouseLeave:()=>$(j=>j.filter(q=>q!==L))},ae.createElement(NO,km({},z,{ref:j=>{V>-1?h.current[L]=j:delete h.current[L]},prefixCls:r,classNames:B,styles:I,className:Q(H,g?.notice),style:_,times:G,key:U,eventKey:U,onNoticeClose:f,hovering:w&&b.length>0})))})},WA=l.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:i,maxCount:s,className:c,style:d,onAllRemoved:f,stack:p,renderNotifications:g}=e,[h,y]=l.useState([]),C=x=>{const R=h.find(P=>P.key===x),O=R?.closable,N=O&&typeof O=="object"?O:{},{onClose:T}=N;T?.(),R?.onClose?.(),y(P=>P.filter(D=>D.key!==x))};l.useImperativeHandle(t,()=>({open:x=>{y(R=>{let O=[...R];const N=O.findIndex(P=>P.key===x.key),T={...x};return N>=0?(T.times=(R[N]?.times||0)+1,O[N]=T):(T.times=0,O.push(T)),s>0&&O.length>s&&(O=O.slice(-s)),O})},close:x=>{C(x)},destroy:()=>{y([])}}));const[b,$]=l.useState({});l.useEffect(()=>{const x={};h.forEach(R=>{const{placement:O="topRight"}=R;O&&(x[O]=x[O]||[],x[O].push(R))}),Object.keys(b).forEach(R=>{x[R]=x[R]||[]}),$(x)},[h]);const S=x=>{$(R=>{const O={...R};return(O[x]||[]).length||delete O[x],O})},w=l.useRef(!1);if(l.useEffect(()=>{Object.keys(b).length>0?w.current=!0:w.current&&(f?.(),w.current=!1)},[b]),!r)return null;const M=Object.keys(b);return Ji.createPortal(l.createElement(l.Fragment,null,M.map(x=>{const R=b[x],O=l.createElement(kA,{key:x,configList:R,placement:x,prefixCls:n,className:c?.(x),style:d?.(x),motion:i,onNoticeClose:C,onAllNoticeRemoved:S,stack:p});return g?g(O,{prefixCls:n,key:x}):O})),r)}),qA=()=>document.body;let SE=0;function YA(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(t[r]=i)})}),t}function UA(e={}){const{getContainer:t=qA,motion:n,prefixCls:r,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p,...g}=e,[h,y]=l.useState(),C=l.useRef(),b=l.createElement(WA,{container:h,ref:C,prefixCls:r,motion:n,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p}),[$,S]=l.useState([]),w=ut(x=>{const R=YA(g,x);(R.key===null||R.key===void 0)&&(R.key=`rc-notification-${SE}`,SE+=1),S(O=>[...O,{type:"open",config:R}])}),M=l.useMemo(()=>({open:w,close:x=>{S(R=>[...R,{type:"close",key:x}])},destroy:()=>{S(x=>[...x,{type:"destroy"}])}}),[]);return l.useEffect(()=>{y(t())}),l.useEffect(()=>{if(C.current&&$.length){$.forEach(O=>{switch(O.type){case"open":C.current.open(O.config);break;case"close":C.current.close(O.key);break;case"destroy":C.current.destroy();break}});let x,R;S(O=>((x!==O||!R)&&(x=O,R=O.filter(N=>!$.includes(N))),R))}},[$]),[M,b]}var GA={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"};function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ev.apply(this,arguments)}const XA=(e,t)=>l.createElement(gt,ev({},e,{ref:t,icon:GA})),Mp=l.forwardRef(XA),KA=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:s,colorError:c,colorWarning:d,colorInfo:f,fontSizeLG:p,motionEaseInOutCirc:g,motionDurationSlow:h,marginXS:y,paddingXS:C,borderRadiusLG:b,zIndexPopup:$,contentPadding:S,contentBg:w}=e,M=`${t}-notice`,x=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:C,transform:"translateY(0)",opacity:1}}),R=new At("MessageMoveOut",{"0%":{maxHeight:e.height,padding:C,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O={padding:C,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:p},[`${M}-content`]:{display:"inline-block",padding:S,background:w,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:d},[`${t}-info > ${n},
133
+ ${t}-loading > ${n}`]:{color:f}};return[{[t]:{...Zt(e),color:i,position:"fixed",top:y,width:"100%",pointerEvents:"none",zIndex:$,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
134
+ ${t}-move-up-appear,
135
+ ${t}-move-up-enter
136
+ `]:{animationName:x,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`
137
+ ${t}-move-up-appear${t}-move-up-appear-active,
138
+ ${t}-move-up-enter${t}-move-up-enter-active
139
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:R,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${M}-wrapper`]:{...O}}},{[`${t}-notice-pure-panel`]:{...O,padding:0,textAlign:"start"}}]},QA=e=>({zIndexPopup:e.zIndexPopupBase+cO+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),PO=Pt("Message",e=>{const t=Tt(e,{height:150});return KA(t)},QA),ZA={info:l.createElement(TS,null),success:l.createElement(wp,null),error:l.createElement(Ps,null),warning:l.createElement(zs,null),loading:l.createElement(Mp,null)},zO=e=>{const{prefixCls:t,type:n,icon:r,children:i,classNames:s,styles:c}=e,d=r||n&&ZA[n],f=nr(d,p=>{const g={...p?.style,...c?.icon};return{className:Q(p.className,s?.icon),style:g}});return l.createElement("div",{className:Q(`${t}-custom-content`,`${t}-${n}`)},f,l.createElement("span",{className:s?.content,style:c?.content},i))},JA=e=>{const{prefixCls:t,className:n,style:r,type:i,icon:s,content:c,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:h,style:y,classNames:C,styles:b}=It("message"),$=t||g("message"),S=ar($),[w,M]=PO($,S),[x,R]=Lt([C,d],[b,f],{props:e});return l.createElement(NO,{...p,prefixCls:$,className:Q(h,x.root,n,w,`${$}-notice-pure-panel`,M,S),style:{...R.root,...y,...r},eventKey:"pure",duration:null,content:l.createElement(zO,{prefixCls:$,type:i,icon:s,classNames:x,styles:R},c)})};function eD(e,t){return{motionName:t??`${e}-move-up`}}function DS(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t?.()};return r.then=(i,s)=>n.then(i,s),r.promise=n,r}const tD=8,nD=3,rD=({children:e,prefixCls:t})=>{const n=ar(t),[r,i]=PO(t,n);return l.createElement(VA,{classNames:{list:Q(r,i,n)}},e)},oD=(e,{prefixCls:t,key:n})=>l.createElement(rD,{prefixCls:t,key:n},e),aD=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:s,duration:c=nD,rtl:d,transitionName:f,onAllRemoved:p,pauseOnHover:g=!0}=e,{getPrefixCls:h,direction:y,getPopupContainer:C}=It("message"),{message:b}=l.useContext(dt),$=r||h("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??tD}),w=()=>Q({[`${$}-rtl`]:d??y==="rtl"}),M=()=>eD($,f),[x,R]=Lt([e?.classNames,b?.classNames],[e?.styles,b?.styles],{props:e}),[O,N]=UA({prefixCls:$,style:S,className:w,motion:M,closable:!1,duration:c,getContainer:()=>i?.()||C?.()||document.body,maxCount:s,onAllRemoved:p,renderNotifications:oD,pauseOnHover:g});return l.useImperativeHandle(t,()=>({...O,prefixCls:$,message:b,classNames:x,styles:R})),N});let CE=0;function AO(e){const t=l.useRef(null);return[l.useMemo(()=>{const r=f=>{t.current?.close(f)},i=f=>{if(!t.current){const A=()=>{};return A.then=()=>{},A}const{open:p,prefixCls:g,message:h,classNames:y,styles:C}=t.current,b=h?.className||{},$=h?.style||{},S=h?.classNames||{},w=h?.styles||{},M=`${g}-notice`,{content:x,icon:R,type:O,key:N,className:T,style:P,onClose:D,classNames:k={},styles:W={},...U}=f;let G=N;Mr(G)||(CE+=1,G=`antd-message-${CE}`);const L={...e,...f},H=fs(S,{props:L}),_=fs(k,{props:L}),B=fs(w,{props:L}),I=fs(W,{props:L}),z=zS(void 0,H,_,y),V=sO(B,I,C);return DS(A=>(p({...U,key:G,content:l.createElement(zO,{prefixCls:g,type:O,icon:R,classNames:z,styles:V},x),placement:"top",className:Q({[`${M}-${O}`]:O},T,b,z.root),style:{...V.root,...$,...P},onClose:()=>{D?.(),A()}}),()=>{r(G)}))},c={open:i,destroy:f=>{f!==void 0?r(f):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const p=(g,h,y)=>{let C;g&&typeof g=="object"&&"content"in g?C=g:C={content:g};let b,$;typeof h=="function"?$=h:(b=h,$=y);const S={onClose:$,duration:b,...C,type:f};return i(S)};c[f]=p}),c},[]),l.createElement(aD,{key:"message-holder",...e,ref:t})]}function iD(e){return AO(e)}const Wm="__rc_react_root__";function jS(e,t){const n=t[Wm]||J4.createRoot(t);n.render(e),t[Wm]=n}async function DO(e){return Promise.resolve().then(()=>{e[Wm]?.unmount(),delete e[Wm]})}const Sy=()=>({height:0,opacity:0}),$E=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},lD=e=>({height:e?e.offsetHeight:0}),Cy=(e,t)=>t?.deadline===!0||t.propertyName==="height",jO=(e=mu)=>({motionName:`${e}-motion-collapse`,onAppearStart:Sy,onEnterStart:Sy,onAppearActive:$E,onEnterActive:$E,onLeaveStart:lD,onLeaveActive:Sy,onAppearEnd:Cy,onEnterEnd:Cy,onLeaveEnd:Cy,motionDeadline:500}),Go=(e,t,n)=>n!==void 0?n:`${e}-${t}`,sD=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(",")}}}}},cD=Vz("Wave",sD),dd=`${mu}-wave-target`;function xE(e){return e&&typeof e=="string"&&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 uD(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:s}=n;return t&&xE(n[t])?n[t]:[r,i,s].find(xE)??null}function $y(e){return Number.isNaN(e)?0:e}const dD=e=>{const{className:t,target:n,component:r,colorSource:i}=e,s=l.useRef(null),[c,d]=l.useState(null),[f,p]=l.useState([]),[g,h]=l.useState(0),[y,C]=l.useState(0),[b,$]=l.useState(0),[S,w]=l.useState(0),[M,x]=l.useState(!1),R={left:g,top:y,width:b,height:S,borderRadius:f.map(T=>`${T}px`).join(" ")};c&&(R["--wave-color"]=c);function O(){const T=getComputedStyle(n);d(uD(n,i));const P=T.position==="static",{borderLeftWidth:D,borderTopWidth:k}=T;h(P?n.offsetLeft:$y(-Number.parseFloat(D))),C(P?n.offsetTop:$y(-Number.parseFloat(k))),$(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:U,borderBottomLeftRadius:G,borderBottomRightRadius:L}=T;p([W,U,L,G].map(H=>$y(Number.parseFloat(H))))}if(l.useEffect(()=>{if(n){const T=Ht(()=>{O(),x(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(O),P.observe(n)),()=>{Ht.cancel(T),P?.disconnect()}}},[n]),!M)return null;const N=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(dd);return l.createElement(Sr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,P)=>{if(P.deadline||P.propertyName==="opacity"){const D=s.current?.parentElement;DO(D).then(()=>{D?.remove()})}return!1}},({className:T},P)=>l.createElement("div",{ref:or(s,P),className:Q(t,T,{"wave-quick":N}),style:R}))},fD=(e,t)=>{const{component:n}=t;if(n==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),jS(l.createElement(dD,{...t,target:e}),r)},mD=(e,t,n,r)=>{const{wave:i}=l.useContext(dt),[,s,c]=Wr(),d=ut(g=>{const h=e.current;if(i?.disabled||!h)return;const y=h.querySelector(`.${dd}`)||h,{showEffect:C}=i||{};(C||fD)(y,{className:t,token:s,component:n,event:g,hashId:c,colorSource:r})}),f=l.useRef(null);return l.useEffect(()=>()=>{Ht.cancel(f.current)},[]),g=>{Ht.cancel(f.current),f.current=Ht(()=>{d(g)})}},fd=e=>{const{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:s}=l.useContext(dt),c=l.useRef(null),d=s("wave"),f=cD(d),p=mD(c,Q(d,f),r,i);if(ae.useEffect(()=>{const h=c.current;if(!h||h.nodeType!==window.Node.ELEMENT_NODE||n)return;const y=C=>{!Ep(C.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")&&!h.className.includes("disabled:")||h.getAttribute("aria-disabled")==="true"||h.className.includes("-leave")||p(C)};return h.addEventListener("click",y,!0),()=>{h.removeEventListener("click",y,!0)}},[n]),!ae.isValidElement(t))return t??null;const g=ol(t)?or(al(t),c):c;return nr(t,{ref:g})},fr=e=>{const t=ae.useContext($s);return ae.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},pD=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},gD=Pt(["Space","Compact"],e=>[pD(e)],()=>({}),{resetStyle:!1}),Rp=l.createContext(null),Ma=(e,t)=>{const n=l.useContext(Rp),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:s,isLastItem:c}=n,d=i==="vertical"?"-vertical-":"-";return Q(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:s,[`${e}-compact${d}last-item`]:c,[`${e}-compact${d}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},hD=e=>{const{children:t}=e;return l.createElement(Rp.Provider,{value:null},t)},yD=e=>{const{children:t,...n}=e;return l.createElement(Rp.Provider,{value:l.useMemo(()=>n,[n])},t)},_O=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{size:r,direction:i,orientation:s,block:c,prefixCls:d,className:f,rootClassName:p,children:g,vertical:h,...y}=e,[C,b]=id(s,h,i),$=fr(N=>r??N),S=t("space-compact",d),[w]=gD(S),M=Q(S,w,{[`${S}-rtl`]:n==="rtl",[`${S}-block`]:c,[`${S}-vertical`]:b},f,p),x=l.useContext(Rp),R=dr(g),O=l.useMemo(()=>R.map((N,T)=>{const P=N?.key||`${S}-item-${T}`;return l.createElement(yD,{key:P,compactSize:$,compactDirection:C,isFirstItem:T===0&&(!x||x?.isFirstItem),isLastItem:T===R.length-1&&(!x||x?.isLastItem)},N)}),[R,x,C,$,S]);return R.length===0?null:l.createElement("div",{className:M,...y},O)},HO=l.createContext(void 0),bD=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,size:i,className:s,...c}=e,d=t("btn-group",r),[,,f]=Wr(),p=l.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),g=Q(d,{[`${d}-${p}`]:p,[`${d}-rtl`]:n==="rtl"},s,f);return l.createElement(HO.Provider,{value:i},l.createElement("div",{...c,className:g}))},wE=/^[\u4E00-\u9FA5]{2}$/,tv=wE.test.bind(wE);function _S(e){return e==="danger"?{danger:!0}:{type:e}}function EE(e){return typeof e=="string"}function xy(e){return e==="text"||e==="link"}function vD(e,t,n,r){if(!Mr(e)||e==="")return;const i=t?" ":"";return typeof e!="string"&&typeof e!="number"&&EE(e.type)&&tv(e.props.children)?nr(e,s=>({...s,children:s.children.split("").join(i),className:r,style:n})):EE(e)?ae.createElement("span",{className:r,style:n},tv(e)?e.split("").join(i):e):dO(e)?ae.createElement("span",{className:r,style:n},e):nr(e,s=>({...s,className:Q(s.className,r)||void 0,style:{...s.style,...n}}))}function SD(e,t,n,r){let i=!1;const s=[];return ae.Children.forEach(e,c=>{const d=typeof c,f=d==="string"||d==="number";if(i&&f){const p=s.length-1,g=s[p];s[p]=`${g}${c}`}else s.push(c);i=f}),ae.Children.map(s,c=>vD(c,t,n,r))}["default","primary","danger"].concat(xn(si));const BO=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:s}=e,c=Q(`${s}-icon`,n);return ae.createElement("span",{ref:t,className:c,style:r},i)}),ME=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:s}=e,c=Q(`${n}-loading-icon`,r);return ae.createElement(BO,{prefixCls:n,className:c,style:i,ref:t},ae.createElement(Mp,{className:s}))}),wy=()=>({width:0,opacity:0,transform:"scale(0)"}),Ey=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),CD=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:s,mount:c}=e,d=!!n;return r?ae.createElement(ME,{prefixCls:t,className:i,style:s}):ae.createElement(Sr,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:wy,onAppearActive:Ey,onEnterStart:wy,onEnterActive:Ey,onLeaveStart:Ey,onLeaveActive:wy},({className:f,style:p},g)=>{const h={...s,...p};return ae.createElement(ME,{prefixCls:t,className:Q(i,f),style:h,ref:g})})},RE=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),$D=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:s}=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}},RE(`${t}-primary`,i),RE(`${t}-danger`,s)]}},My=e=>Math.round(Number(e||0)),xD=e=>{if(e instanceof en)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class wu extends en{constructor(t){super(xD(t))}toHsbString(){const t=this.toHsb(),n=My(t.s*100),r=My(t.b*100),i=My(t.h),s=t.a,c=`hsb(${i}, ${n}%, ${r}%)`,d=`hsba(${i}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?c:d}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const wD=e=>e instanceof wu?e:new wu(e);wD("#1677ff");const ED=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",MD=(e,t)=>e?ED(e,t):"";let qm=(function(){function e(t){if(il(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:r,percent:i})=>({color:new e(r),percent:i})),this.metaColor=new wu(this.colors[0].color.metaColor)):this.metaColor=new wu(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ll(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return MD(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(i=>`${i.color.toRgbString()} ${i.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,i)=>{const s=n.colors[i];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();var RD={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"};function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}const OD=(e,t)=>l.createElement(gt,nv({},e,{ref:t,icon:RD})),xs=l.forwardRef(OD);function Xn(){return Xn=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},Xn.apply(null,arguments)}const TD=ae.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:i,style:s,children:c,isActive:d,role:f,classNames:p,styles:g}=e,[h,y]=ae.useState(d||r);return ae.useEffect(()=>{(r||d)&&y(!0)},[r,d]),h?ae.createElement("div",{ref:t,className:Q(`${n}-panel`,{[`${n}-panel-active`]:d,[`${n}-panel-inactive`]:!d},i),style:s,role:f},ae.createElement("div",{className:Q(`${n}-body`,p?.body),style:g?.body},c)):null}),LO=ae.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:s,forceRender:c,className:d,classNames:f={},styles:p={},prefixCls:g,collapsible:h,accordion:y,panelKey:C,extra:b,header:$,expandIcon:S,openMotion:w,destroyOnHidden:M,children:x,...R}=e,O=h==="disabled",N=b!=null&&typeof b!="boolean",T={onClick:()=>{s?.(C)},onKeyDown:G=>{(G.key==="Enter"||G.keyCode===nt.ENTER||G.which===nt.ENTER)&&s?.(C)},role:y?"tab":"button","aria-expanded":i,"aria-disabled":O,tabIndex:O?-1:0},P=typeof S=="function"?S(e):ae.createElement("i",{className:"arrow"}),D=P&&ae.createElement("div",Xn({className:Q(`${g}-expand-icon`,f?.icon),style:p?.icon},["header","icon"].includes(h)?T:{}),P),k=Q(`${g}-item`,{[`${g}-item-active`]:i,[`${g}-item-disabled`]:O},d),U={className:Q(r,`${g}-header`,{[`${g}-collapsible-${h}`]:!!h},f?.header),style:p?.header,...["header","icon"].includes(h)?{}:T};return ae.createElement("div",Xn({},R,{ref:t,className:k}),ae.createElement("div",U,n&&D,ae.createElement("span",Xn({className:Q(`${g}-title`,f?.title),style:p?.title},h==="header"?T:{}),$),N&&ae.createElement("div",{className:`${g}-extra`},b)),ae.createElement(Sr,Xn({visible:i,leavedClassName:`${g}-panel-hidden`},w,{forceRender:c,removeOnLeave:M}),({className:G,style:L},H)=>ae.createElement(TD,{ref:H,prefixCls:g,className:G,classNames:f,style:L,styles:p,isActive:i,forceRender:c,role:y?"tabpanel":void 0},x)))}),ND=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:s,onItemClick:c,activeKey:d,openMotion:f,expandIcon:p,classNames:g,styles:h}=t;return e.map((y,C)=>{const{children:b,label:$,key:S,collapsible:w,onItemClick:M,destroyOnHidden:x,...R}=y,O=String(S??C),N=w??i,T=x??s,P=k=>{N!=="disabled"&&(c(k),M?.(k))};let D=!1;return r?D=d[0]===O:D=d.indexOf(O)>-1,ae.createElement(LO,Xn({},R,{classNames:g,styles:h,prefixCls:n,key:O,panelKey:O,isActive:D,accordion:r,openMotion:f,expandIcon:p,header:$,collapsible:N,onItemClick:P,destroyOnHidden:T}),b)})},ID=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:i,collapsible:s,destroyOnHidden:c,onItemClick:d,activeKey:f,openMotion:p,expandIcon:g,classNames:h,styles:y}=n,C=e.key||String(t),{header:b,headerClass:$,destroyOnHidden:S,collapsible:w,onItemClick:M}=e.props;let x=!1;i?x=f[0]===C:x=f.indexOf(C)>-1;const R=w??s,O=T=>{R!=="disabled"&&(d(T),M?.(T))},N={key:C,panelKey:C,header:b,headerClass:$,classNames:h,styles:y,isActive:x,prefixCls:r,destroyOnHidden:S??c,openMotion:p,accordion:i,children:e.props.children,onItemClick:O,expandIcon:g,collapsible:R};return typeof e.type=="string"?e:(Object.keys(N).forEach(T=>{typeof N[T]>"u"&&delete N[T]}),ae.cloneElement(e,N))};function PD(e,t,n){return Array.isArray(e)?ND(e,n):dr(t).map((r,i)=>ID(r,i,n))}function OE(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const zD=ae.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:i,accordion:s,className:c,children:d,collapsible:f,openMotion:p,expandIcon:g,activeKey:h,defaultActiveKey:y,onChange:C,items:b,classNames:$,styles:S}=e,w=Q(n,c),[M,x]=Yt(y,h),R=OE(M),O=ut(P=>{const D=OE(P);x(D),C?.(D)}),N=P=>{O(s?R[0]===P?[]:[P]:R.includes(P)?R.filter(D=>D!==P):[...R,P])};tr(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const T=PD(b,d,{prefixCls:n,accordion:s,openMotion:p,expandIcon:g,collapsible:f,destroyOnHidden:r,onItemClick:N,activeKey:R,classNames:$,styles:S});return ae.createElement("div",Xn({ref:t,className:w,style:i,role:s?"tablist":void 0},Pn(e,{aria:!0,data:!0})),T)}),HS=Object.assign(zD,{Panel:LO}),{Panel:See}=HS,AD=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,className:i,showArrow:s=!0}=e,c=n("collapse",r),d=Q({[`${c}-no-arrow`]:!s},i);return l.createElement(HS.Panel,{ref:t,...e,prefixCls:c,className:d})}),VO=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
140
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
141
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),DD=e=>({animationDuration:e,animationFillMode:"both"}),jD=e=>({animationDuration:e,animationFillMode:"both"}),Op=(e,t,n,r,i=!1)=>{const s=i?"&":"";return{[`
142
+ ${s}${e}-enter,
143
+ ${s}${e}-appear
144
+ `]:{...DD(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...jD(r),animationPlayState:"paused"},[`
145
+ ${s}${e}-enter${e}-enter-active,
146
+ ${s}${e}-appear${e}-appear-active
147
+ `]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},_D=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),HD=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),FO=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[Op(r,_D,HD,e.motionDurationMid,t),{[`
148
+ ${i}${r}-enter,
149
+ ${i}${r}-appear
150
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},BD=new At("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),LD=new At("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),VD=new At("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FD=new At("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kD=new At("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),WD=new At("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),qD=new At("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),YD=new At("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),UD={"move-up":{inKeyframes:qD,outKeyframes:YD},"move-down":{inKeyframes:BD,outKeyframes:LD},"move-left":{inKeyframes:VD,outKeyframes:FD},"move-right":{inKeyframes:kD,outKeyframes:WD}},ws=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=UD[t];return[Op(r,i,s,e.motionDurationMid),{[`
151
+ ${r}-enter,
152
+ ${r}-appear
153
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Tp=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Np=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ip=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Pp=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),GD=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),XD=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),KD=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),QD=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ZD={"slide-up":{inKeyframes:Tp,outKeyframes:Np},"slide-down":{inKeyframes:Ip,outKeyframes:Pp},"slide-left":{inKeyframes:GD,outKeyframes:XD},"slide-right":{inKeyframes:KD,outKeyframes:QD}},Xo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=ZD[t];return[Op(r,i,s,e.motionDurationMid),{[`
154
+ ${r}-enter,
155
+ ${r}-appear
156
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},JD=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ej=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),TE=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),NE=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),tj=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),nj=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),rj=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),oj=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),aj=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ij=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lj=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),sj=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),cj={zoom:{inKeyframes:JD,outKeyframes:ej},"zoom-big":{inKeyframes:TE,outKeyframes:NE},"zoom-big-fast":{inKeyframes:TE,outKeyframes:NE},"zoom-left":{inKeyframes:rj,outKeyframes:oj},"zoom-right":{inKeyframes:aj,outKeyframes:ij},"zoom-up":{inKeyframes:tj,outKeyframes:nj},"zoom-down":{inKeyframes:lj,outKeyframes:sj}},md=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=cj[t];return[Op(r,i,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
157
+ ${r}-enter,
158
+ ${r}-appear
159
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},uj=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:s,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:d,collapsePanelBorderRadius:f,lineWidth:p,lineType:g,colorBorder:h,colorText:y,colorTextHeading:C,colorTextDisabled:b,fontSizeLG:$,lineHeight:S,lineHeightLG:w,marginSM:M,paddingSM:x,paddingLG:R,paddingXS:O,motionDurationSlow:N,fontSizeIcon:T,contentPadding:P,fontHeight:D,fontHeightLG:k}=e,W=`${te(p)} ${g} ${h}`;return{[t]:{...Zt(e),backgroundColor:i,border:W,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:W,"&:first-child":{[`
160
+ &,
161
+ & > ${t}-header`]:{borderRadius:`${te(f)} ${te(f)} 0 0`}},"&:last-child":{[`
162
+ &,
163
+ & > ${t}-header`]:{borderRadius:`0 0 ${te(f)} ${te(f)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:C,lineHeight:S,cursor:"pointer",transition:`all ${N}, visibility 0s`,...xo(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:D,display:"flex",alignItems:"center",marginInlineEnd:M},[`${t}-arrow`]:{...Ns(),fontSize:T,transition:`transform ${N}`,svg:{transition:`transform ${N}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:y,backgroundColor:n,borderTop:W,[`& > ${t}-body`]:{padding:P},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:O,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(O).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:$,lineHeight:w,[`> ${t}-header`]:{padding:d,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(R).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:R}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${te(f)} ${te(f)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:b,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:M}}}}}}},dj=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},fj=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:s}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${s}`},[`
164
+ > ${t}-item:last-child,
165
+ > ${t}-item:last-child ${t}-header
166
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},mj=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},pj=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),gj=Pt("Collapse",e=>{const t=Tt(e,{collapseHeaderPaddingSM:`${te(e.paddingXS)} ${te(e.paddingSM)}`,collapseHeaderPaddingLG:`${te(e.padding)} ${te(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[uj(t),fj(t),mj(t),dj(t),VO(t)]},pj),hj=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:i,className:s,style:c,classNames:d,styles:f}=It("collapse"),{prefixCls:p,className:g,rootClassName:h,style:y,bordered:C=!0,ghost:b,size:$,expandIconPlacement:S,expandIconPosition:w,children:M,destroyInactivePanel:x,destroyOnHidden:R,expandIcon:O,classNames:N,styles:T}=e,P=fr(j=>$??j??"middle"),D=n("collapse",p),k=n(),[W,U]=gj(D),G=S??w??"start",L={...e,size:P,bordered:C,expandIconPlacement:G},[H,_]=Lt([d,N],[f,T],{props:L}),B=O??i,I=l.useCallback((j={})=>{const q=typeof B=="function"?B(j):l.createElement(xs,{rotate:j.isActive?r==="rtl"?-90:90:void 0,"aria-label":j.isActive?"expanded":"collapsed"});return nr(q,()=>({className:Q(q?.props?.className,`${D}-arrow`)}))},[B,D,r]),z=Q(`${D}-icon-placement-${G}`,{[`${D}-borderless`]:!C,[`${D}-rtl`]:r==="rtl",[`${D}-ghost`]:!!b,[`${D}-${P}`]:P!=="middle"},s,g,h,W,U,H.root),V=l.useMemo(()=>({...jO(k),motionAppear:!1,leavedClassName:`${D}-panel-hidden`}),[k,D]),A=l.useMemo(()=>M?dr(M).map(j=>j):null,[M]);return l.createElement(HS,{ref:t,openMotion:V,...tn(e,["rootClassName"]),expandIcon:I,prefixCls:D,className:z,style:{..._.root,...c,...y},classNames:H,styles:_,destroyOnHidden:R??x},A)}),IE=Object.assign(hj,{Panel:AD}),yj=e=>e instanceof qm?e:new qm(e),kO=(e,t)=>{const{r:n,g:r,b:i,a:s}=e.toRgb(),c=new wu(e.toRgbString()).onBackground(t).toHsv();return s<=.5?c.v>.5:n*.299+r*.587+i*.114>192},WO=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Tt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},qO=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??vm(t),s=e.contentLineHeightSM??vm(n),c=e.contentLineHeightLG??vm(r),d=kO(new qm(e.colorBgSolid),"#fff")?"#000":"#fff",f=si.reduce((h,y)=>({...h,[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Uc(e[`${y}1`],e.colorBgContainer)}`}),{}),p=e.colorBgContainerDisabled,g=e.colorBgContainerDisabled;return{...f,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.colorBorderDisabled,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:d,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:s,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*s)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*c)/2-e.lineWidth,0),defaultBgDisabled:p,dashedBgDisabled:g}},bj=e=>{const{componentCls:t,antCls:n}=e,r=Fz(n,"btn");return{[t]:[{[r("border-width")]:"1px",[r("border-color")]:"#000",[r("border-color-hover")]:`var(${r("border-color")})`,[r("border-color-active")]:`var(${r("border-color")})`,[r("border-color-disabled")]:`var(${r("border-color")})`,[r("border-style")]:"solid",[r("text-color")]:"#000",[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`,[r("text-color-disabled")]:`var(${r("text-color")})`,[r("bg-color")]:"#ddd",[r("bg-color-hover")]:`var(${r("bg-color")})`,[r("bg-color-active")]:`var(${r("bg-color")})`,[r("bg-color-disabled")]:e.colorBgContainerDisabled,[r("bg-color-container")]:e.colorBgContainer,[r("shadow")]:"none"},{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color")})`,color:`var(${r("text-color")})`,backgroundColor:`var(${r("bg-color")})`,[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color-hover")})`,color:`var(${r("text-color-hover")})`,backgroundColor:`var(${r("bg-color-hover")})`},"&:active":{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color-active")})`,color:`var(${r("text-color-active")})`,backgroundColor:`var(${r("bg-color-active")})`}}},{[`&${t}-variant-solid`]:{[r("solid-bg-color")]:`var(${r("color-base")})`,[r("solid-bg-color-hover")]:`var(${r("color-hover")})`,[r("solid-bg-color-active")]:`var(${r("color-active")})`,[r("border-color")]:"transparent",[r("text-color")]:e.colorTextLightSolid,[r("bg-color")]:`var(${r("solid-bg-color")})`,[r("bg-color-hover")]:`var(${r("solid-bg-color-hover")})`,[r("bg-color-active")]:`var(${r("solid-bg-color-active")})`,boxShadow:`var(${r("shadow")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("border-color")]:`var(${r("color-base")})`,[r("border-color-hover")]:`var(${r("color-hover")})`,[r("border-color-active")]:`var(${r("color-active")})`,[r("bg-color")]:`var(${r("bg-color-container")})`,[r("text-color")]:`var(${r("color-base")})`,[r("text-color-hover")]:`var(${r("color-hover")})`,[r("text-color-active")]:`var(${r("color-active")})`,boxShadow:`var(${r("shadow")})`},[`&${t}-variant-dashed`]:{[r("border-style")]:"dashed",[r("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[r("border-color")]:"transparent",[r("text-color")]:`var(${r("color-base")})`,[r("bg-color")]:`var(${r("color-light")})`,[r("bg-color-hover")]:`var(${r("color-light-hover")})`,[r("bg-color-active")]:`var(${r("color-light-active")})`},[`&${t}-variant-text, &${t}-variant-link`]:{[r("border-color")]:"transparent",[r("text-color")]:`var(${r("color-base")})`,[r("text-color-hover")]:`var(${r("color-hover")})`,[r("text-color-active")]:`var(${r("color-active")})`,[r("bg-color")]:"transparent",[r("bg-color-hover")]:"transparent",[r("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[r("bg-color-hover")]:`var(${r("color-light")})`,[r("bg-color-active")]:`var(${r("color-light-active")})`}},{[`&${t}-variant-link`]:{[r("color-base")]:e.colorLink,[r("color-hover")]:e.colorLinkHover,[r("color-active")]:e.colorLinkActive},[`&${t}-color-primary`]:{[r("color-base")]:e.colorPrimary,[r("color-hover")]:e.colorPrimaryHover,[r("color-active")]:e.colorPrimaryActive,[r("color-light")]:e.colorPrimaryBg,[r("color-light-hover")]:e.colorPrimaryBgHover,[r("color-light-active")]:e.colorPrimaryBorder,[r("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.primaryColor,[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`}},[`&${t}-color-dangerous`]:{[r("color-base")]:e.colorError,[r("color-hover")]:e.colorErrorHover,[r("color-active")]:e.colorErrorActive,[r("color-light")]:e.colorErrorBg,[r("color-light-hover")]:e.colorErrorBgFilledHover,[r("color-light-active")]:e.colorErrorBgActive,[r("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.dangerColor,[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`}},[`&${t}-color-default`]:{[r("solid-bg-color")]:e.colorBgSolid,[r("solid-bg-color-hover")]:e.colorBgSolidHover,[r("solid-bg-color-active")]:e.colorBgSolidActive,[r("color-base")]:e.defaultBorderColor,[r("color-hover")]:e.defaultHoverBorderColor,[r("color-active")]:e.defaultActiveBorderColor,[r("color-light")]:e.colorFillTertiary,[r("color-light-hover")]:e.colorFillSecondary,[r("color-light-active")]:e.colorFill,[r("text-color")]:e.colorText,[r("text-color-hover")]:e.defaultHoverBorderColor,[r("text-color-active")]:e.defaultActiveBorderColor,[r("shadow")]:e.defaultShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.solidTextColor,[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`},[`&${t}-variant-filled, &${t}-variant-text`]:{[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("bg-color-hover")]:e.defaultHoverBg,[r("bg-color-active")]:e.defaultActiveBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("text-color")]:e.defaultGhostColor,[r("border-color")]:e.defaultGhostBorderColor}}}},si.map(i=>{const s=e[`${i}6`],c=e[`${i}1`],d=e[`${i}5`],f=e[`${i}2`],p=e[`${i}3`],g=e[`${i}7`],h=e[`${i}ShadowColor`];return{[`&${t}-color-${i}`]:{[r("color-base")]:s,[r("color-hover")]:d,[r("color-active")]:g,[r("color-light")]:c,[r("color-light-hover")]:f,[r("color-light-active")]:p,[r("shadow")]:h}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:`var(${r("bg-color-disabled")})`,color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[r("bg-color")]:"transparent",[r("shadow")]:"none"}}]}},vj=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:s,motionEaseInOut:c,iconGap:d,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:d,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ns(),"> a":{color:"currentColor"},"&:not(:disabled)":xo(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:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(p=>`${p} ${s} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(d).mul(-1).equal()}}}}}},Sj=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),BS=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:s,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:f,buttonIconOnlyFontSize:p}=e;return[{[t]:{fontSize:i,height:r,padding:`${te(f)} ${te(c)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[d]:{fontSize:p}}}},{[`${n}${n}-circle${t}`]:Sj(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Cj=e=>{const t=Tt(e,{fontSize:e.contentFontSize});return BS(t,e.componentCls)},$j=e=>{const t=Tt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return BS(t,`${e.componentCls}-sm`)},xj=e=>{const t=Tt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return BS(t,`${e.componentCls}-lg`)},wj=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ej=Pt("Button",e=>{const t=WO(e);return[vj(t),Cj(t),$j(t),xj(t),wj(t),bj(t),$D(t)]},qO,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Mj(e,t,n,r){const{focusElCls:i,focus:s,borderElCls:c}=n,d=c?"> *":"",f=["hover",s?"focus":null,"active"].filter(Boolean).map(p=>`&:${p} ${d}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[f]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function Rj(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function pd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,s=`${i}-compact`;return{[s]:{...Mj(e,s,t,i),...Rj(i,s,t)}}}function Oj(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 Tj(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 Nj(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Oj(e,t,e.componentCls),...Tj(e.componentCls,t)}}}const Ij=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,s=i(r).mul(-1).equal(),c=d=>{const f=`${t}-compact${d?"-vertical":""}-item`,p=`${f}${t}-primary:not([disabled])`;return{[f]:{transition:"none"},[`${p} + ${p}::before`]:{position:"absolute",top:d?s:0,insetInlineStart:d?0:s,backgroundColor:n,content:'""',width:d?"100%":r,height:d?r:"100%"}}};return{...c(),...c(!0)}},Pj=ad(["Button","compact"],e=>{const t=WO(e);return[pd(t),Nj(t),Ij(t)]},qO);function zj(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Aj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Dj=ae.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:i,color:s,variant:c,type:d,danger:f=!1,shape:p,size:g,disabled:h,className:y,rootClassName:C,children:b,icon:$,iconPosition:S,iconPlacement:w,ghost:M=!1,block:x=!1,htmlType:R="button",classNames:O,styles:N,style:T,autoInsertSpace:P,autoFocus:D,...k}=e,W=dr(b),U=d||"default",{button:G}=ae.useContext(dt),L=p||G?.shape||"default",[H,_]=l.useMemo(()=>{if(s&&c)return[s,c];if(d||f){const lt=Aj[U]||[];return f?["danger",lt[1]]:lt}return G?.color&&G?.variant?[G.color,G.variant]:["default","outlined"]},[s,c,d,f,G?.color,G?.variant,U]),[B,I]=l.useMemo(()=>M&&_==="solid"?[H,"outlined"]:[H,_],[H,_,M]),z=B==="danger",V=z?"dangerous":B,{getPrefixCls:A,direction:j,autoInsertSpace:q,className:X,style:K,classNames:J,styles:Z}=It("button"),oe=P??q??!0,ne=A("btn",i),[ie,de]=Ej(ne),le=l.useContext(kr),fe=h??le,ge=l.useContext(HO),re=l.useMemo(()=>zj(r),[r]),[ce,he]=l.useState(re.loading),[pe,Se]=l.useState(!1),Ie=l.useRef(null),Me=di(t,Ie),we=W.length===1&&!$&&!xy(I),se=l.useRef(!0);ae.useEffect(()=>(se.current=!1,()=>{se.current=!0}),[]),Nt(()=>{let lt=null;re.delay>0?lt=setTimeout(()=>{lt=null,he(!0)},re.delay):he(re.loading);function St(){lt&&(clearTimeout(lt),lt=null)}return St},[re.delay,re.loading]),l.useEffect(()=>{if(!Ie.current||!oe)return;const lt=Ie.current.textContent||"";we&&tv(lt)?pe||Se(!0):pe&&Se(!1)}),l.useEffect(()=>{D&&Ie.current&&Ie.current.focus()},[]);const be=ae.useCallback(lt=>{if(ce||fe){lt.preventDefault();return}e.onClick?.(("href"in e,lt))},[e.onClick,ce,fe]),{compactSize:Ee,compactItemClassnames:Ne}=Ma(ne,j),Fe={large:"lg",small:"sm",middle:void 0},Ge=fr(lt=>g??Ee??ge??lt),et=Ge?Fe[Ge]??"":"",Oe=ce?"loading":$,_e=w??S??"start",Ve=tn(k,["navigate"]),Qe={...e,type:U,color:B,variant:I,danger:z,shape:L,size:Ge,disabled:fe,loading:ce,iconPlacement:_e},[De,ve]=Lt([n?void 0:J,O],[n?void 0:Z,N],{props:Qe}),Ae=Q(ne,ie,de,{[`${ne}-${L}`]:L!=="default"&&L!=="square"&&L,[`${ne}-${U}`]:U,[`${ne}-dangerous`]:f,[`${ne}-color-${V}`]:V,[`${ne}-variant-${I}`]:I,[`${ne}-${et}`]:et,[`${ne}-icon-only`]:!b&&b!==0&&!!Oe,[`${ne}-background-ghost`]:M&&!xy(I),[`${ne}-loading`]:ce,[`${ne}-two-chinese-chars`]:pe&&oe&&!ce,[`${ne}-block`]:x,[`${ne}-rtl`]:j==="rtl",[`${ne}-icon-end`]:_e==="end"},Ne,y,C,X,De.root),Ze={...ve.root,...K,...T},Be={className:De.icon,style:ve.icon},Ue=lt=>ae.createElement(BO,{prefixCls:ne,...Be},lt),Pe=ae.createElement(CD,{existIcon:!!$,prefixCls:ne,loading:ce,mount:se.current,...Be});let Xe;$&&!ce?Xe=Ue($):r&&typeof r=="object"&&r.icon?Xe=Ue(r.icon):Xe=Pe;const rt=Mr(b)?SD(b,we&&oe,ve.content,De.content):null;if(Ve.href!==void 0)return ae.createElement("a",{...Ve,className:Q(Ae,{[`${ne}-disabled`]:fe}),href:fe?void 0:Ve.href,style:Ze,onClick:be,ref:Me,tabIndex:fe?-1:0,"aria-disabled":fe},Xe,rt);let ot=ae.createElement("button",{...k,type:R,className:Ae,style:Ze,onClick:be,disabled:fe,ref:Me},Xe,rt,Ne&&ae.createElement(Pj,{prefixCls:ne}));return xy(I)||(ot=ae.createElement(fd,{component:"Button",disabled:ce},ot)),ot}),_t=Dj;_t.Group=bD;_t.__ANT_BUTTON=!0;const Ry=e=>typeof e?.then=="function",LS=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:s,autoFocus:c,emitEvent:d,isSilent:f,quitOnNullishReturnValue:p,actionFn:g}=e,h=l.useRef(!1),y=l.useRef(null),[C,b]=Am(!1),$=(...M)=>{s?.(...M)};l.useEffect(()=>{let M=null;return c&&(M=setTimeout(()=>{y.current?.focus({preventScroll:!0})})),()=>{M&&clearTimeout(M)}},[c]);const S=M=>{Ry(M)&&(b(!0),M.then((...x)=>{b(!1,!0),$.apply(void 0,x),h.current=!1},x=>{if(b(!1,!0),h.current=!1,!f?.())return Promise.reject(x)}))},w=M=>{if(h.current)return;if(h.current=!0,!g){$();return}let x;if(d){if(x=g(M),p&&!Ry(x)){h.current=!1,$(M);return}}else if(g.length)x=g(s),h.current=!1;else if(x=g(),!Ry(x)){$();return}S(x)};return l.createElement(_t,{..._S(t),onClick:w,loading:C,prefixCls:r,...i,ref:y},n)},gd=ae.createContext({}),{Provider:YO}=gd,PE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:s,close:c,onCancel:d,onConfirm:f,onClose:p}=l.useContext(gd);return i?ae.createElement(LS,{isSilent:r,actionFn:d,close:(...g)=>{c?.(...g),f?.(!1),p?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},zE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:s,okType:c,onConfirm:d,onOk:f,onClose:p}=l.useContext(gd);return ae.createElement(LS,{isSilent:n,type:c||"primary",actionFn:f,close:(...g)=>{t?.(...g),d?.(!0),p?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},s)},UO=l.createContext({});function AE(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function DE(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function jj(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=DE(i),n.top+=DE(i,!0),n}const _j=l.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Ym(){return Ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ym.apply(this,arguments)}const Hj={width:0,height:0,overflow:"hidden",outline:"none"},Bj={outline:"none"},GO=ae.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,title:s,ariaId:c,footer:d,closable:f,closeIcon:p,onClose:g,children:h,bodyStyle:y,bodyProps:C,modalRender:b,onMouseDown:$,onMouseUp:S,holderRef:w,visible:M,forceRender:x,width:R,height:O,classNames:N,styles:T}=e,{panel:P}=ae.useContext(UO),D=di(w,P),k=l.useRef(null),W=l.useRef(null);ae.useImperativeHandle(t,()=>({focus:()=>{k.current?.focus({preventScroll:!0})},changeActive:V=>{const{activeElement:A}=document;V&&A===W.current?k.current.focus({preventScroll:!0}):!V&&A===k.current&&W.current.focus({preventScroll:!0})}}));const U={};R!==void 0&&(U.width=R),O!==void 0&&(U.height=O);const G=d?ae.createElement("div",{className:Q(`${n}-footer`,N?.footer),style:{...T?.footer}},d):null,L=s?ae.createElement("div",{className:Q(`${n}-header`,N?.header),style:{...T?.header}},ae.createElement("div",{className:Q(`${n}-title`,N?.title),id:c,style:{...T?.title}},s)):null,H=l.useMemo(()=>typeof f=="object"&&f!==null?f:f?{closeIcon:p??ae.createElement("span",{className:`${n}-close-x`})}:{},[f,p,n]),_=Pn(H,!0),B=typeof f=="object"&&f.disabled,I=f?ae.createElement("button",Ym({type:"button",onClick:g,"aria-label":"Close"},_,{className:`${n}-close`,disabled:B}),H.closeIcon):null,z=ae.createElement("div",{className:Q(`${n}-container`,N?.container),style:T?.container},I,L,ae.createElement("div",Ym({className:Q(`${n}-body`,N?.body),style:{...y,...T?.body}},C),h),G);return ae.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?c:null,"aria-modal":"true",ref:D,style:{...i,...U},className:Q(n,r),onMouseDown:$,onMouseUp:S},ae.createElement("div",{ref:k,tabIndex:0,style:Bj},ae.createElement(_j,{shouldUpdate:M||x},b?b(z):z)),ae.createElement("div",{tabIndex:0,ref:W,style:Hj}))});function rv(){return rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rv.apply(this,arguments)}const Lj=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:i,className:s,visible:c,forceRender:d,destroyOnHidden:f,motionName:p,ariaId:g,onVisibleChanged:h,mousePosition:y}=e,C=l.useRef(null),b=l.useRef(null);l.useImperativeHandle(t,()=>({...b.current,inMotion:C.current.inMotion,enableMotion:C.current.enableMotion}));const[$,S]=l.useState(),w={};$&&(w.transformOrigin=$);function M(){const x=jj(C.current.nativeElement);S(y&&(y.x||y.y)?`${y.x-x.left}px ${y.y-x.top}px`:"")}return l.createElement(Sr,{visible:c,onVisibleChanged:h,onAppearPrepare:M,onEnterPrepare:M,forceRender:d,motionName:p,removeOnLeave:f,ref:C},({className:x,style:R},O)=>l.createElement(GO,rv({},e,{ref:b,title:r,ariaId:g,prefixCls:n,holderRef:O,style:{...R,...i,...w},className:Q(s,x)})))});function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ov.apply(this,arguments)}const Vj=e=>{const{prefixCls:t,style:n,visible:r,maskProps:i,motionName:s,className:c}=e;return l.createElement(Sr,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:d,style:f},p)=>l.createElement("div",ov({ref:p,style:{...f,...n},className:Q(`${t}-mask`,d,c)},i)))};function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(this,arguments)}const Fj=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,keyboard:i=!0,focusTriggerAfterClose:s=!0,wrapStyle:c,wrapClassName:d,wrapProps:f,onClose:p,afterOpenChange:g,afterClose:h,transitionName:y,animation:C,closable:b=!0,mask:$=!0,maskTransitionName:S,maskAnimation:w,maskClosable:M=!0,maskStyle:x,maskProps:R,rootClassName:O,rootStyle:N,classNames:T,styles:P}=e,D=l.useRef(null),k=l.useRef(null),W=l.useRef(null),[U,G]=l.useState(r),L=Ko();function H(){gb(k.current,document.activeElement)||(D.current=document.activeElement)}function _(){gb(k.current,document.activeElement)||W.current?.focus()}function B(){if(G(!1),$&&D.current&&s){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}U&&h?.()}function I(Z){Z?_():B(),g?.(Z)}function z(Z){p?.(Z)}const V=l.useRef(!1),A=l.useRef(null),j=()=>{clearTimeout(A.current),V.current=!0},q=()=>{A.current=setTimeout(()=>{V.current=!1})};let X=null;M&&(X=Z=>{V.current?V.current=!1:k.current===Z.target&&z(Z)});function K(Z){if(i&&Z.keyCode===nt.ESC){Z.stopPropagation(),z(Z);return}r&&Z.keyCode===nt.TAB&&W.current.changeActive(!Z.shiftKey)}l.useEffect(()=>{r?(G(!0),H()):U&&W.current.enableMotion()&&!W.current.inMotion()&&B()},[r]),l.useEffect(()=>()=>{clearTimeout(A.current)},[]);const J={zIndex:n,...c,...P?.wrapper,display:U?null:"none"};return l.createElement("div",ou({className:Q(`${t}-root`,O),style:N},Pn(e,{data:!0})),l.createElement(Vj,{prefixCls:t,visible:$&&r,motionName:AE(t,S,w),style:{zIndex:n,...x,...P?.mask},maskProps:R,className:T?.mask}),l.createElement("div",ou({tabIndex:-1,onKeyDown:K,className:Q(`${t}-wrap`,d,T?.wrapper),ref:k,onClick:X,style:J},f),l.createElement(Lj,ou({},e,{onMouseDown:j,onMouseUp:q,ref:W,closable:b,ariaId:L,prefixCls:t,visible:r&&U,onClose:z,onVisibleChanged:I,motionName:AE(t,y,C)}))))};function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}const kj=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:s,closable:c,panelRef:d}=e,[f,p]=l.useState(t),g=l.useMemo(()=>({panel:d}),[d]);return l.useEffect(()=>{t&&p(!0)},[t]),!r&&i&&!f?null:l.createElement(UO.Provider,{value:g},l.createElement(sd,{open:t||r||f,autoDestroy:!1,getContainer:n,autoLock:t||f},l.createElement(Fj,av({},e,{destroyOnHidden:i,afterClose:()=>{const h=c&&typeof c=="object"?c:{},{afterClose:y}=h||{};y?.(),s?.(),p(!1)}}))))},Wi="RC_FORM_INTERNAL_HOOKS",vn=()=>{tr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Es=l.createContext({getFieldValue:vn,getFieldsValue:vn,getFieldError:vn,getFieldWarning:vn,getFieldsError:vn,isFieldsTouched:vn,isFieldTouched:vn,isFieldValidating:vn,isFieldsValidating:vn,resetFields:vn,setFields:vn,setFieldValue:vn,setFieldsValue:vn,validateFields:vn,submit:vn,getInternalHooks:()=>(vn(),{dispatch:vn,initEntityValue:vn,registerField:vn,useSubscribe:vn,setInitialValues:vn,destroyForm:vn,setCallbacks:vn,registerWatch:vn,getFields:vn,setValidateMessages:vn,setPreserve:vn,getInitialValue:vn})}),Um=l.createContext(null);function iv(e){return e==null?[]:Array.isArray(e)?e:[e]}function Wj(e){return e&&!!e._init}function lv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var sv=lv();function qj(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Yj(e,t,n){if($p())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&vu(i,n.prototype),i}function cv(e){var t=typeof Map=="function"?new Map:void 0;return cv=function(r){if(r===null||!qj(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,i)}function i(){return Yj(r,arguments,Qi(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),vu(i,r)},cv(e)}var Uj=/%[sdj%]/g,Gj=function(){};function uv(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 ro(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 i=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(Uj,function(d){if(d==="%%")return"%";if(i>=s)return d;switch(d){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function Xj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function rr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Xj(t)&&typeof e=="string"&&!e)}function Kj(e,t,n){var r=[],i=0,s=e.length;function c(d){r.push.apply(r,xn(d||[])),i++,i===s&&n(r)}e.forEach(function(d){t(d,c)})}function jE(e,t,n){var r=0,i=e.length;function s(c){if(c&&c.length){n(c);return}var d=r;r=r+1,d<i?t(e[d],s):n([])}s([])}function Qj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,xn(e[n]||[]))}),t}var _E=(function(e){MS(n,e);var t=IR(n);function n(r,i){var s;return il(this,n),s=t.call(this,"Async Validation Error"),cr(hs(s),"errors",void 0),cr(hs(s),"fields",void 0),s.errors=r,s.fields=i,s}return ll(n)})(cv(Error));function Zj(e,t,n,r,i){if(t.first){var s=new Promise(function(y,C){var b=function(w){return r(w),w.length?C(new _E(w,uv(w))):y(i)},$=Qj(e);jE($,n,b)});return s.catch(function(y){return y}),s}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],d=Object.keys(e),f=d.length,p=0,g=[],h=new Promise(function(y,C){var b=function(S){if(g.push.apply(g,S),p++,p===f)return r(g),g.length?C(new _E(g,uv(g))):y(i)};d.length||(r(g),y(i)),d.forEach(function($){var S=e[$];c.indexOf($)!==-1?jE(S,n,b):Kj(S,n,b)})});return h.catch(function(y){return y}),h}function Jj(e){return!!(e&&e.message!==void 0)}function e_(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function HE(e,t){return function(n){var r;return e.fullFields?r=e_(t,e.fullFields):r=t[n.field||e.fullField],Jj(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 BE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Kn(r)==="object"&&Kn(e[n])==="object"?e[n]=_n(_n({},e[n]),r):e[n]=r}}return e}var Ql="enum",t_=function(t,n,r,i,s){t[Ql]=Array.isArray(t[Ql])?t[Ql]:[],t[Ql].indexOf(n)===-1&&i.push(ro(s.messages[Ql],t.fullField,t[Ql].join(", ")))},n_=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||i.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},r_=function(t,n,r,i,s){var c=typeof t.len=="number",d=typeof t.min=="number",f=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,h=null,y=typeof n=="number",C=typeof n=="string",b=Array.isArray(n);if(y?h="number":C?h="string":b&&(h="array"),!h)return!1;b&&(g=n.length),C&&(g=n.replace(p,"_").length),c?g!==t.len&&i.push(ro(s.messages[h].len,t.fullField,t.len)):d&&!f&&g<t.min?i.push(ro(s.messages[h].min,t.fullField,t.min)):f&&!d&&g>t.max?i.push(ro(s.messages[h].max,t.fullField,t.max)):d&&f&&(g<t.min||g>t.max)&&i.push(ro(s.messages[h].range,t.fullField,t.min,t.max))},XO=function(t,n,r,i,s,c){t.required&&(!r.hasOwnProperty(t.field)||rr(n,c||t.type))&&i.push(ro(s.messages.required,t.fullField))},Ff;const o_=(function(){if(Ff)return Ff;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}",i=["(?:".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}|:))")],s="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(i.join("|"),")").concat(s),d=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),f=new RegExp("^".concat(n,"$")),p=new RegExp("^".concat(c,"$")),g=function(N){return N&&N.exact?d:new RegExp("(?:".concat(t(N)).concat(n).concat(t(N),")|(?:").concat(t(N)).concat(c).concat(t(N),")"),"g")};g.v4=function(O){return O&&O.exact?f:new RegExp("".concat(t(O)).concat(n).concat(t(O)),"g")},g.v6=function(O){return O&&O.exact?p:new RegExp("".concat(t(O)).concat(c).concat(t(O)),"g")};var h="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",C=g.v4().source,b=g.v6().source,$="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",M="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',R="(?:".concat(h,"|www\\.)").concat(y,"(?:localhost|").concat(C,"|").concat(b,"|").concat($).concat(S).concat(w,")").concat(M).concat(x);return Ff=new RegExp("(?:^".concat(R,"$)"),"i"),Ff});var LE={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Gc={integer:function(t){return Gc.number(t)&&parseInt(t,10)===t},float:function(t){return Gc.number(t)&&!Gc.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 Kn(t)==="object"&&!Gc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(LE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(o_())},hex:function(t){return typeof t=="string"&&!!t.match(LE.hex)}},a_=function(t,n,r,i,s){if(t.required&&n===void 0){XO(t,n,r,i,s);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],d=t.type;c.indexOf(d)>-1?Gc[d](n)||i.push(ro(s.messages.types[d],t.fullField,t.type)):d&&Kn(n)!==t.type&&i.push(ro(s.messages.types[d],t.fullField,t.type))},i_=function(t,n,r,i,s){(/^\s+$/.test(n)||n==="")&&i.push(ro(s.messages.whitespace,t.fullField))};const Kt={required:XO,whitespace:i_,type:a_,range:r_,enum:t_,pattern:n_};var l_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s)}r(c)},s_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n==null&&!t.required)return r();Kt.required(t,n,i,c,s,"array"),n!=null&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},c_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},u_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n,"date")&&!t.required)return r();if(Kt.required(t,n,i,c,s),!rr(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Kt.type(t,f,i,c,s),f&&Kt.range(t,f.getTime(),i,c,s)}}r(c)},d_="enum",f_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt[d_](t,n,i,c,s)}r(c)},m_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},p_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},g_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},h_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},y_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},b_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s),rr(n,"string")||Kt.pattern(t,n,i,c,s)}r(c)},v_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),rr(n)||Kt.type(t,n,i,c,s)}r(c)},S_=function(t,n,r,i,s){var c=[],d=Array.isArray(n)?"array":Kn(n);Kt.required(t,n,i,c,s,d),r(c)},C_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s,"string"),rr(n,"string")||(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s),Kt.pattern(t,n,i,c,s),t.whitespace===!0&&Kt.whitespace(t,n,i,c,s))}r(c)},Oy=function(t,n,r,i,s){var c=t.type,d=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(rr(n,c)&&!t.required)return r();Kt.required(t,n,i,d,s,c),rr(n,c)||Kt.type(t,n,i,d,s)}r(d)};const au={string:C_,method:g_,number:h_,boolean:c_,regexp:v_,integer:p_,float:m_,array:s_,object:y_,enum:f_,pattern:b_,date:u_,url:Oy,hex:Oy,email:Oy,required:S_,any:l_};var hd=(function(){function e(t){il(this,e),cr(this,"rules",null),cr(this,"_messages",sv),this.define(t)}return ll(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Kn(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var s=n[i];r.rules[i]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=BE(lv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,d=i,f=s;if(typeof d=="function"&&(f=d,d={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,c),Promise.resolve(c);function p(b){var $=[],S={};function w(x){if(Array.isArray(x)){var R;$=(R=$).concat.apply(R,xn(x))}else $.push(x)}for(var M=0;M<b.length;M++)w(b[M]);$.length?(S=uv($),f($,S)):f(null,c)}if(d.messages){var g=this.messages();g===sv&&(g=lv()),BE(g,d.messages),d.messages=g}else d.messages=this.messages();var h={},y=d.keys||Object.keys(this.rules);y.forEach(function(b){var $=r.rules[b],S=c[b];$.forEach(function(w){var M=w;typeof M.transform=="function"&&(c===n&&(c=_n({},c)),S=c[b]=M.transform(S),S!=null&&(M.type=M.type||(Array.isArray(S)?"array":Kn(S)))),typeof M=="function"?M={validator:M}:M=_n({},M),M.validator=r.getValidationMethod(M),M.validator&&(M.field=b,M.fullField=M.fullField||b,M.type=r.getType(M),h[b]=h[b]||[],h[b].push({rule:M,value:S,source:c,field:b}))})});var C={};return Zj(h,d,function(b,$){var S=b.rule,w=(S.type==="object"||S.type==="array")&&(Kn(S.fields)==="object"||Kn(S.defaultField)==="object");w=w&&(S.required||!S.required&&b.value),S.field=b.field;function M(T,P){return _n(_n({},P),{},{fullField:"".concat(S.fullField,".").concat(T),fullFields:S.fullFields?[].concat(xn(S.fullFields),[T]):[T]})}function x(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(T)?T:[T];!d.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&S.message!==void 0&&(P=[].concat(S.message));var D=P.map(HE(S,c));if(d.first&&D.length)return C[S.field]=1,$(D);if(!w)$(D);else{if(S.required&&!b.value)return S.message!==void 0?D=[].concat(S.message).map(HE(S,c)):d.error&&(D=[d.error(S,ro(d.messages.required,S.field))]),$(D);var k={};S.defaultField&&Object.keys(b.value).map(function(G){k[G]=S.defaultField}),k=_n(_n({},k),b.rule.fields);var W={};Object.keys(k).forEach(function(G){var L=k[G],H=Array.isArray(L)?L:[L];W[G]=H.map(M.bind(null,G))});var U=new e(W);U.messages(d.messages),b.rule.options&&(b.rule.options.messages=d.messages,b.rule.options.error=d.error),U.validate(b.value,b.rule.options||d,function(G){var L=[];D&&D.length&&L.push.apply(L,xn(D)),G&&G.length&&L.push.apply(L,xn(G)),$(L.length?L:null)})}}var R;if(S.asyncValidator)R=S.asyncValidator(S,b.value,x,b.source,d);else if(S.validator){try{R=S.validator(S,b.value,x,b.source,d)}catch(T){var O,N;(O=(N=console).error)===null||O===void 0||O.call(N,T),d.suppressValidatorError||setTimeout(function(){throw T},0),x(T.message)}R===!0?x():R===!1?x(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):R instanceof Array?x(R):R instanceof Error&&x(R.message)}R&&R.then&&R.then(function(){return x()},function(T){return x(T)})},function(b){p(b)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!au.hasOwnProperty(n.type))throw new Error(ro("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),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?au.required:au[this.getType(n)]||void 0}}]),e})();cr(hd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");au[t]=n});cr(hd,"warning",Gj);cr(hd,"messages",sv);cr(hd,"validators",au);const to="'${name}' is not a valid ${type}",KO={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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},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}"}},VE=hd;function $_(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const FE="CODE_LOGIC_ERROR";async function dv(e,t,n,r,i){const s={...n};if(delete s.ruleIndex,VE.warning=()=>{},s.validator){const y=s.validator;s.validator=(...C)=>{try{return y(...C)}catch(b){return console.error(b),Promise.reject(FE)}}}let c=null;s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField);const d=new VE({[e]:[s]}),f=cs(KO,r.validateMessages);d.messages(f);let p=[];try{await Promise.resolve(d.validate({[e]:t},{...r}))}catch(y){y.errors&&(p=y.errors.map(({message:C},b)=>{const $=C===FE?f.default:C;return l.isValidElement($)?l.cloneElement($,{key:`error_${b}`}):$}))}if(!p.length&&c&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((C,b)=>dv(`${e}.${b}`,C,c,r,i)))).reduce((C,b)=>[...C,...b],[]);const g={...n,name:e,enum:(n.enum||[]).join(", "),...i};return p.map(y=>typeof y=="string"?$_(y,g):y)}function x_(e,t,n,r,i,s){const c=e.join("."),d=n.map((p,g)=>{const h=p.validator,y={...p,ruleIndex:g};return h&&(y.validator=(C,b,$)=>{let S=!1;const M=h(C,b,(...x)=>{Promise.resolve().then(()=>{tr(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||$(...x)})});S=M&&typeof M.then=="function"&&typeof M.catch=="function",tr(S,"`callback` is deprecated. Please return a promise instead."),S&&M.then(()=>{$()}).catch(x=>{$(x||" ")})}),y}).sort(({warningOnly:p,ruleIndex:g},{warningOnly:h,ruleIndex:y})=>!!p==!!h?g-y:p?1:-1);let f;if(i===!0)f=new Promise(async(p,g)=>{for(let h=0;h<d.length;h+=1){const y=d[h],C=await dv(c,t,y,r,s);if(C.length){g([{errors:C,rule:y}]);return}}p([])});else{const p=d.map(g=>dv(c,t,g,r,s).then(h=>({errors:h,rule:g})));f=(i?E_(p):w_(p)).then(g=>Promise.reject(g))}return f.catch(p=>p),f}async function w_(e){return Promise.all(e).then(t=>[].concat(...t))}async function E_(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),t+=1,t===e.length&&n([])})})})}function jn(e){return iv(e)}function kE(e,t){let n={};return t.forEach(r=>{const i=zo(e,r);n=vo(n,r,i)}),n}function bs(e,t,n=!1){return e&&e.some(r=>Gm(t,r,n))}function Gm(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,i)=>e[i]===r)}function M_(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(s=>{const c=e[s],d=t[s];return typeof c=="function"&&typeof d=="function"?!0:c===d})}function R_(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function WE(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const i=e[t],s=t-n;return s>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fv.apply(this,arguments)}const Ii=[],Ac=[];function Ty(e,t,n,r,i,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==i}class O_ extends l.Component{static contextType=Es;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Ii;warnings=Ac;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(Wi);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:r}=n,{registerField:i}=r(Wi);this.cancelRegisterFunc=i(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:n,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,t,jn(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:n}=this.props,{prefixName:r=[]}=n;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:n}=this.props;return t.map(r=>typeof r=="function"?r(n):r)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:n}=this.props;if(n){const r={...this.getMeta(),destroy:t};hu(this.metaCache,r)||n(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,n,r)=>{const{shouldUpdate:i,dependencies:s=[],onReset:c}=this.props,{store:d}=r,f=this.getNamePath(),p=this.getValue(t),g=this.getValue(d),h=n&&bs(n,f);switch(r.type==="valueUpdate"&&r.source==="external"&&!hu(p,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Ii,this.warnings=Ac,this.triggerMetaEvent()),r.type){case"reset":if(!n||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Ii,this.warnings=Ac,this.triggerMetaEvent(),c?.(),this.refresh();return}break;case"remove":{if(i&&Ty(i,t,d,p,g,r)){this.reRender();return}break}case"setField":{const{data:y}=r;if(h){"touched"in y&&(this.touched=y.touched),"validating"in y&&!("originRCField"in y)&&(this.validatePromise=y.validating?Promise.resolve([]):null),"errors"in y&&(this.errors=y.errors||Ii),"warnings"in y&&(this.warnings=y.warnings||Ac),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&bs(n,f,!0)){this.reRender();return}if(i&&!f.length&&Ty(i,t,d,p,g,r)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(jn).some(C=>bs(r.relatedFields,C))){this.reRender();return}break}default:if(h||(!s.length||f.length||i)&&Ty(i,t,d,p,g,r)){this.reRender();return}break}i===!0&&this.reRender()};validateRules=t=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:i,validateOnly:s=!1}=t||{},c=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:d=!1,messageVariables:f,validateDebounce:p}=this.props;let g=this.getRules();if(i&&(g=g.filter(y=>y).filter(y=>{const{validateTrigger:C}=y;return C?iv(C).includes(i):!0})),p&&i&&(await new Promise(y=>{setTimeout(y,p)}),this.validatePromise!==c))return[];const h=x_(n,r,g,t,d,f);return h.catch(y=>y).then((y=Ii)=>{if(this.validatePromise===c){this.validatePromise=null;const C=[],b=[];y.forEach?.(({rule:{warningOnly:$},errors:S=Ii})=>{$?b.push(...S):C.push(...S)}),this.errors=C,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),h});return s||(this.validatePromise=c,this.dirty=!0,this.errors=Ii,this.warnings=Ac,this.triggerMetaEvent(),this.reRender()),c};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:n}=t.getInternalHooks(Wi);return n(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:!0}}const n=dr(t);return n.length!==1||!l.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:n}=this.props.fieldContext,r=this.getNamePath();return zo(t||n(!0),r)};getControlled=(t={})=>{const{name:n,trigger:r="onChange",validateTrigger:i,getValueFromEvent:s,normalize:c,valuePropName:d="value",getValueProps:f,fieldContext:p}=this.props,g=i!==void 0?i:p.validateTrigger,h=this.getNamePath(),{getInternalHooks:y,getFieldsValue:C}=p,{dispatch:b}=y(Wi),$=this.getValue(),S=f||(O=>({[d]:O})),w=t[r],M=n!==void 0?S($):{},x={...t,...M};return x[r]=(...O)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;s?N=s(...O):N=R_(d,...O),c&&(N=c(N,$,C(!0))),N!==$&&b({type:"updateValue",namePath:h,value:N}),w&&w(...O)},iv(g||[]).forEach(O=>{const N=x[O];x[O]=(...T)=>{N&&N(...T);const{rules:P}=this.props;P&&P.length&&b({type:"validateField",namePath:h,triggerName:O})}}),x};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:r,isFunction:i}=this.getOnlyChild(n);let s;return i?s=r:l.isValidElement(r)?s=l.cloneElement(r,this.getControlled(r.props)):(tr(!r,"`children` of Field is not validate ReactElement."),s=r),l.createElement(l.Fragment,{key:t},s)}}function QO({name:e,...t}){const n=l.useContext(Es),r=l.useContext(Um),i=e!==void 0?jn(e):void 0,s=t.isListField??!!r;let c="keep";return s||(c=`_${(i||[]).join("_")}`),l.createElement(O_,fv({key:c,name:i,isListField:s},t,{fieldContext:n}))}function T_({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:s}){const c=l.useContext(Es),d=l.useContext(Um),p=l.useRef({keys:[],id:0}).current,g=l.useMemo(()=>[...jn(c.prefixName)||[],...jn(e)],[c.prefixName,e]),h=l.useMemo(()=>({...c,prefixName:g}),[c,g]),y=l.useMemo(()=>({getKey:b=>{const $=g.length,S=b[$];return[p.keys[S],b.slice($+1)]}}),[p,g]);if(typeof n!="function")return tr(!1,"Form.List only accepts function as children."),null;const C=(b,$,{source:S})=>S==="internal"?!1:b!==$;return l.createElement(Um.Provider,{value:y},l.createElement(Es.Provider,{value:h},l.createElement(QO,{name:[],shouldUpdate:C,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:s??!!d},({value:b=[],onChange:$},S)=>{const{getFieldValue:w}=c,M=()=>w(g||[])||[],x={add:(O,N)=>{const T=M();N>=0&&N<=T.length?(p.keys=[...p.keys.slice(0,N),p.id,...p.keys.slice(N)],$([...T.slice(0,N),O,...T.slice(N)])):(p.keys=[...p.keys,p.id],$([...T,O])),p.id+=1},remove:O=>{const N=M(),T=new Set(Array.isArray(O)?O:[O]);T.size<=0||(p.keys=p.keys.filter((P,D)=>!T.has(D)),$(N.filter((P,D)=>!T.has(D))))},move(O,N){if(O===N)return;const T=M();O<0||O>=T.length||N<0||N>=T.length||(p.keys=WE(p.keys,O,N),$(WE(T,O,N)))}};let R=b||[];return Array.isArray(R)||(R=[]),n(R.map((O,N)=>{let T=p.keys[N];return T===void 0&&(p.keys[N]=p.id,T=p.keys[N],p.id+=1),{name:N,key:T,isListField:!0}}),x,S)})))}function N_(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((i,s)=>{e.forEach((c,d)=>{c.catch(f=>(t=!0,f)).then(f=>{n-=1,r[d]=f,!(n>0)&&(t&&s(r),i(r))})})}):Promise.resolve([])}const mv="__@field_split__";function kf(e){return e.map(t=>`${typeof t}:${t}`).join(mv)}class Zl{kvs=new Map;set(t,n){this.kvs.set(kf(t),n)}get(t){return this.kvs.get(kf(t))}getAsPrefix(t){const n=kf(t),r=n+mv,i=[],s=this.kvs.get(n);return s!==void 0&&i.push(s),this.kvs.forEach((c,d)=>{d.startsWith(r)&&i.push(c)}),i}update(t,n){const r=this.get(t),i=n(r);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(kf(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const i=n.split(mv);return t({key:i.map(s=>{const[,c,d]=s.match(/^([^:]*):(.*)$/);return c==="number"?Number(d):d}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}const I_=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class P_{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!Gm(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;I_(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),i=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,i,this.namePathList)}),this.namePathList=[]}})}}class z_{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new P_(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===Wi?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(tr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,n)=>{if(this.initialValues=t||{},n){let r=cs(t,this.store);this.prevWithoutPreserves?.map(({key:i})=>{r=vo(r,i,zo(t,i))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const n=new Zl;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=t=>{const n=zo(this.initialValues,t);return t.length?cs(n):n};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const n=new Zl;return this.getFieldEntities(t).forEach(r=>{const i=r.getNamePath();n.set(i,r)}),n};getFieldEntitiesForNamePathList=(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(i=>{const s=jn(i),c=r.getAsPrefix(s);return c.length?c:[{INVALIDATE_NAME_PATH:s}]}):t.map(i=>{const s=jn(i);return r.get(s)||{INVALIDATE_NAME_PATH:jn(i)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let r,i;if(t===!0||Array.isArray(t)?(r=t,i=n):t&&typeof t=="object"&&(i=t.filter),r===!0&&!i)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),c=[],d=[];s.forEach(p=>{const g=p.INVALIDATE_NAME_PATH||p.getNamePath();if(p.isList?.()){d.push(g);return}if(!i)c.push(g);else{const h="getMeta"in p?p.getMeta():null;i(h)&&c.push(g)}});let f=kE(this.store,c.map(jn));return d.forEach(p=>{zo(f,p)||(f=vo(f,p,[]))}),f};getFieldValue=t=>{this.warningUnhooked();const n=jn(t);return zo(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,i)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:jn(t[i]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=jn(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=jn(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,r]=t;let i,s=!1;t.length===0?i=null:t.length===1?Array.isArray(n)?(i=n.map(jn),s=!1):(i=null,s=n):(i=n.map(jn),s=r);const c=this.getFieldEntities(!0),d=h=>h.isFieldTouched();if(!i)return s?c.every(h=>d(h)||h.isList()):c.some(d);const f=new Zl;i.forEach(h=>{f.set(h,[])}),c.forEach(h=>{const y=h.getNamePath();i.forEach(C=>{C.every((b,$)=>y[$]===b)&&f.update(C,b=>[...b,h])})});const p=h=>h.some(d),g=f.map(({value:h})=>h);return s?g.every(p):g.some(p)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(i=>i.isFieldValidating());const r=t.map(jn);return n.some(i=>{const s=i.getNamePath();return bs(r,s)&&i.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Zl,r=this.getFieldEntities(!0);r.forEach(c=>{const{initialValue:d}=c.props,f=c.getNamePath();if(d!==void 0){const p=n.get(f)||new Set;p.add({entity:c,value:d}),n.set(f,p)}});const i=c=>{c.forEach(d=>{const{initialValue:f}=d.props;if(f!==void 0){const p=d.getNamePath();if(this.getInitialValue(p)!==void 0)tr(!1,`Form already set 'initialValues' with path '${p.join(".")}'. Field can not overwrite it.`);else{const h=n.get(p);if(h&&h.size>1)tr(!1,`Multiple Field with path '${p.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(h){const y=this.getFieldValue(p);!d.isListField()&&(!t.skipExist||y===void 0)&&this.updateStore(vo(this.store,p,[...h][0].value))}}}})};let s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(c=>{const d=n.get(c);d&&s.push(...[...d].map(f=>f.entity))})):s=r,i(s)};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(cs(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(jn);r.forEach(i=>{const s=this.getInitialValue(i);this.updateStore(vo(this.store,i,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)};setFields=t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(i=>{const{name:s,...c}=i,d=jn(s);r.push(d),"value"in c&&this.updateStore(vo(this.store,d,c.value)),this.notifyObservers(n,[d],{type:"setField",data:i})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const i=r.getNamePath(),c={...r.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(c,"originRCField",{value:!0}),c});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();zo(this.store,r)===void 0&&this.updateStore(vo(this.store,r,n))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,i,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==t),!this.isMergedPreserve(i)&&(!r||s.length>1)){const c=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==c&&this.fieldEntities.every(d=>!Gm(d.getNamePath(),n))){const d=this.store;this.updateStore(vo(d,n,c,!0)),this.notifyObservers(d,[n],{type:"remove"}),this.triggerDependenciesUpdate(d,n)}}this.notifyWatch([n])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}};notifyObservers=(t,n,r)=>{if(this.subscribable){const i={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,i)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r};updateValue=(t,n)=>{const r=jn(t),i=this.store;this.updateStore(vo(this.store,r,n)),this.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(i,r),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(r),f=kE(this.store,[r]),p=this.getFieldsValue(),g=rR([p,f],{prepareArray:h=>d?.isList()?[]:[...h||[]]});c(f,g)}this.triggerOnFieldsChange([r,...s])};setFieldsValue=t=>{this.warningUnhooked();const n=this.store;if(t){const r=cs(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const n=new Set,r=[],i=new Zl;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(f=>{const p=jn(f);i.update(p,(g=new Set)=>(g.add(c),g))})});const s=c=>{(i.get(c)||new Set).forEach(f=>{if(!n.has(f)){n.add(f);const p=f.getNamePath();f.isFieldDirty()&&p.length&&(r.push(p),s(p))}})};return s(t),r};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const i=this.getFields();if(n){const c=new Zl;n.forEach(({name:d,errors:f})=>{c.set(d,f)}),i.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const s=i.filter(({name:c})=>bs(t,c));s.length&&r(s,i)}};validateFields=(t,n)=>{this.warningUnhooked();let r,i;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,i=n):i=t;const s=!!r,c=s?r.map(jn):[],d=[...c],f=[],p=String(Date.now()),g=new Set,{recursive:h,dirty:y}=i||{};this.getFieldEntities(!0).forEach(S=>{const w=S.getNamePath();if(s||((!S.isList()||!c.some(M=>Gm(M,w,!0)))&&d.push(w),c.push(w)),!(!S.props.rules||!S.props.rules.length)&&!(y&&!S.isFieldDirty())&&(g.add(w.join(p)),!s||bs(c,w,h))){const M=S.validateRules({validateMessages:{...KO,...this.validateMessages},...i});f.push(M.then(()=>({name:w,errors:[],warnings:[]})).catch(x=>{const R=[],O=[];return x.forEach?.(({rule:{warningOnly:N},errors:T})=>{N?O.push(...T):R.push(...T)}),R.length?Promise.reject({name:w,errors:R,warnings:O}):{name:w,errors:R,warnings:O}}))}});const C=N_(f);this.lastValidatePromise=C,C.catch(S=>S).then(S=>{const w=S.map(({name:M})=>M);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,S)});const b=C.then(()=>this.lastValidatePromise===C?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(S=>{const w=S.filter(x=>x&&x.errors.length),M=w[0]?.errors?.[0];return Promise.reject({message:M,values:this.getFieldsValue(c),errorFields:w,outOfDate:this.lastValidatePromise!==C})});b.catch(S=>S);const $=c.filter(S=>g.has(S.join(p)));return this.triggerOnFieldsChange($),b};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})}}function ZO(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},i=new z_(r);t.current=i.getForm()}return[t.current]}const pv=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),A_=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const i=l.useContext(pv),s=l.useRef({});return l.createElement(pv.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(c,d)=>{t&&t(c,{changedFields:d,forms:s.current}),i.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{n&&n(c,{values:d,forms:s.current}),i.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(s.current={...s.current,[c]:d}),i.registerForm(c,d)},unregisterForm:c=>{const d={...s.current};delete d[c],s.current=d,i.unregisterForm(c)}}},r)};function gv(){return gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gv.apply(this,arguments)}const D_=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:s,component:c="form",validateMessages:d,validateTrigger:f="onChange",onValuesChange:p,onFieldsChange:g,onFinish:h,onFinishFailed:y,clearOnDestroy:C,...b},$)=>{const S=l.useRef(null),w=l.useContext(pv),[M]=ZO(r),{useSubscribe:x,setInitialValues:R,setCallbacks:O,setValidateMessages:N,setPreserve:T,destroyForm:P}=M.getInternalHooks(Wi);l.useImperativeHandle($,()=>({...M,nativeElement:S.current})),l.useEffect(()=>(w.registerForm(e,M),()=>{w.unregisterForm(e)}),[w,M,e]),N({...w.validateMessages,...d}),O({onValuesChange:p,onFieldsChange:(H,..._)=>{w.triggerFormChange(e,H),g&&g(H,..._)},onFinish:H=>{w.triggerFormFinish(e,H),h&&h(H)},onFinishFailed:y}),T(i);const D=l.useRef(null);R(t,!D.current),D.current||(D.current=!0),l.useEffect(()=>()=>P(C),[]);let k;const W=typeof s=="function";if(W){const H=M.getFieldsValue(!0);k=s(H,M)}else k=s;x(!W);const U=l.useRef(null);l.useEffect(()=>{M_(U.current||[],n||[])||M.setFields(n||[]),U.current=n},[n,M]);const G=l.useMemo(()=>({...M,validateTrigger:f}),[M,f]),L=l.createElement(Um.Provider,{value:null},l.createElement(Es.Provider,{value:G},k));return c===!1?L:l.createElement(c,gv({},b,{ref:S,onSubmit:H=>{H.preventDefault(),H.stopPropagation(),M.submit()},onReset:H=>{H.preventDefault(),M.resetFields(),b.onReset?.(H)}}),L)};function Ny(e){try{return JSON.stringify(e)}catch{return Math.random()}}function j_(...e){const[t,n={}]=e,r=Wj(n)?{form:n}:n,i=r.form,[s,c]=l.useState(()=>typeof t=="function"?t({}):void 0),d=l.useMemo(()=>Ny(s),[s]),f=l.useRef(d);f.current=d;const p=l.useContext(Es),g=i||p,h=g&&g._init,{getFieldsValue:y,getInternalHooks:C}=g,{registerWatch:b}=C(Wi),$=ut((w,M)=>{const x=r.preserve?M??y(!0):w??y(),R=typeof t=="function"?t(x):zo(x,jn(t));Ny(s)!==Ny(R)&&c(R)}),S=typeof t=="function"?t:JSON.stringify(t);return l.useEffect(()=>{h&&$()},[h,S]),l.useEffect(()=>h?b((M,x)=>{$(M,x)}):void 0,[h]),s}const __=l.forwardRef(D_),yd=__;yd.FormProvider=A_;yd.Field=QO;yd.List=T_;yd.useForm=ZO;yd.useWatch=j_;const Or=l.createContext({}),H_=({children:e,status:t,override:n})=>{const r=l.useContext(Or),i=l.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return l.createElement(Or.Provider,{value:i},e)},B_=l.createContext(void 0),xa=e=>{const{space:t,form:n,children:r}=e;if(!Mr(r))return null;let i=r;return n&&(i=ae.createElement(H_,{override:!0,status:!0},i)),t&&(i=ae.createElement(hD,null,i)),i},L_=e=>{if(Fr()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1};function qE(e,t){return L_(e)}const V_=()=>Fr()&&window.document.documentElement,zp=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:s}=e,c=Q({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),d=Q({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),f=l.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return l.createElement("span",{className:Q(t,c,d,n),style:{...f,...r}})},F_=new At("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),VS=e=>({height:e,lineHeight:te(e)}),ii=e=>({width:e,...VS(e)}),k_=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:F_,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Iy=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...VS(e)}),W_=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...ii(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...ii(i)},[`${t}${t}-sm`]:{...ii(s)}}},q_=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:n,...Iy(t,d)},[`${r}-lg`]:{...Iy(i,d)},[`${r}-sm`]:{...Iy(s,d)}}},JO=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...ii(i(r).mul(2).equal())}},Y_=e=>({[e.skeletonNodeCls]:{...JO(e)}}),U_=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...JO(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...ii(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Py=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},zy=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...VS(e)}),G_=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:d(r).mul(2).equal(),minWidth:d(r).mul(2).equal(),...zy(r,d)},...Py(e,r,n),[`${n}-lg`]:{...zy(i,d)},...Py(e,i,`${n}-lg`),[`${n}-sm`]:{...zy(s,d)},...Py(e,s,`${n}-sm`)}},X_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:s,skeletonInputCls:c,skeletonNodeCls:d,skeletonImageCls:f,controlHeight:p,controlHeightLG:g,controlHeightSM:h,gradientFromColor:y,padding:C,marginSM:b,borderRadius:$,titleHeight:S,blockRadius:w,paragraphLiHeight:M,controlHeightXS:x,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:C,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...ii(p)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...ii(g)},[`${n}-sm`]:{...ii(h)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:y,borderRadius:w,[`+ ${i}`]:{marginBlockStart:h}},[i]:{padding:0,"> li":{width:"100%",height:M,listStyle:"none",background:y,borderRadius:w,"+ li":{marginBlockStart:x}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:$}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:b,[`+ ${i}`]:{marginBlockStart:R}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...G_(e),...W_(e),...q_(e),...Y_(e),...U_(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
167
+ ${r},
168
+ ${i} > li,
169
+ ${n},
170
+ ${s},
171
+ ${c},
172
+ ${d},
173
+ ${f}
174
+ `]:{...k_(e)}}}},K_=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},bd=Pt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Tt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,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 X_(r)},K_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Q_=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,style:c,styles:d,shape:f="circle",size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,i,C,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(zp,{prefixCls:`${y}-avatar`,className:r?.content,style:{...d?.content,...c},shape:f,size:p,...g}))},Z_=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:i,active:s,style:c,styles:d,block:f=!1,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:f},i?.root,n,r,C,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(zp,{prefixCls:`${y}-button`,className:i?.content,style:{...d?.content,...c},size:p,...g}))},eT=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:s,style:c,styles:d,active:f,children:p}=e,{getPrefixCls:g}=l.useContext(dt),h=g("skeleton",t),[y,C]=bd(h),b=Q(h,`${h}-element`,{[`${h}-active`]:f},y,r?.root,n,i,C);return l.createElement("div",{className:b,style:d?.root},l.createElement("div",{className:Q(r?.content,s||`${h}-node`),style:{...d?.content,...c}},p))},J_="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",e9=e=>{const{getPrefixCls:t}=l.useContext(dt),n=t("skeleton",e.prefixCls);return l.createElement(eT,{...e,internalClassName:`${n}-image`},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:J_,className:`${n}-image-path`})))},t9=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,block:c,style:d,styles:f,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:c},r?.root,n,i,C,b);return l.createElement("div",{className:$,style:f?.root},l.createElement(zp,{prefixCls:`${y}-input`,className:r?.content,style:{...f?.content,...d},size:p,...g}))},n9=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},r9=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,s=Array.from({length:i}).map((c,d)=>l.createElement("li",{key:d,style:{width:n9(d,e)}}));return l.createElement("ul",{className:Q(t,n),style:r},s)},o9=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Q(e,t),style:{width:n,...r}});function Ay(e){return e&&typeof e=="object"?e:{}}function a9(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function i9(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function l9(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const mi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:s,style:c,styles:d,children:f,avatar:p=!1,title:g=!0,paragraph:h=!0,active:y,round:C}=e,{getPrefixCls:b,direction:$,className:S,style:w,classNames:M,styles:x}=It("skeleton"),R=b("skeleton",t),[O,N]=bd(R),T={...e,avatar:p,title:g,paragraph:h},[P,D]=Lt([M,s],[x,d],{props:T});if(n||!("loading"in e)){const k=!!p,W=!!g,U=!!h;let G;if(k){const _={className:P.avatar,prefixCls:`${R}-avatar`,...a9(W,U),...Ay(p),style:D.avatar};G=l.createElement("div",{className:Q(P.header,`${R}-header`),style:D.header},l.createElement(zp,{..._}))}let L;if(W||U){let _;if(W){const I={className:P.title,prefixCls:`${R}-title`,...i9(k,U),...Ay(g),style:D.title};_=l.createElement(o9,{...I})}let B;if(U){const I={className:P.paragraph,prefixCls:`${R}-paragraph`,...l9(k,W),...Ay(h),style:D.paragraph};B=l.createElement(r9,{...I})}L=l.createElement("div",{className:Q(P.section,`${R}-section`),style:D.section},_,B)}const H=Q(R,{[`${R}-with-avatar`]:k,[`${R}-active`]:y,[`${R}-rtl`]:$==="rtl",[`${R}-round`]:C},P.root,S,r,i,O,N);return l.createElement("div",{className:H,style:{...D.root,...w,...c}},G,L)}return f??null};mi.Button=Z_;mi.Avatar=Q_;mi.Input=t9;mi.Image=e9;mi.Node=eT;function YE(){}const s9=l.createContext({add:YE,remove:YE});function tT(e){const t=l.useContext(s9),n=l.useRef(null);return ut(i=>{if(i){const s=e?i.querySelector(e):i;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const UE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(gd);return ae.createElement(_t,{onClick:n,...e},t)},GE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=l.useContext(gd);return ae.createElement(_t,{..._S(n),loading:e,onClick:i,...t},r)};function nT(e,t){return ae.createElement("span",{className:`${e}-close-x`},t||ae.createElement(qr,{className:`${e}-close-icon`}))}const rT=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:s,onCancel:c,okButtonProps:d,cancelButtonProps:f,footer:p}=e,[g]=oo("Modal",aO()),h=t||g?.okText,y=r||g?.cancelText,C=ae.useMemo(()=>({confirmLoading:i,okButtonProps:d,cancelButtonProps:f,okTextLocale:h,cancelTextLocale:y,okType:n,onOk:s,onCancel:c}),[i,d,f,h,y,n,s,c]);let b;return typeof p=="function"||typeof p>"u"?(b=ae.createElement(ae.Fragment,null,ae.createElement(UE,null),ae.createElement(GE,null)),typeof p=="function"&&(b=p(b,{OkBtn:GE,CancelBtn:UE})),b=ae.createElement(YO,{value:C},b)):b=p,ae.createElement(EO,{disabled:!1},b)},c9=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"}}}},u9=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},d9=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,s={};for(let c=i;c>=0;c--)c===0?(s[`${r}${t}-${c}`]={display:"none"},s[`${r}-push-${c}`]={insetInlineStart:"auto"},s[`${r}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},s[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-offset-${c}`]={marginInlineStart:0},s[`${r}${t}-order-${c}`]={order:0}):(s[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/i*100}%`,maxWidth:`${c/i*100}%`}],s[`${r}${t}-push-${c}`]={insetInlineStart:`${c/i*100}%`},s[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/i*100}%`},s[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/i*100}%`},s[`${r}${t}-order-${c}`]={order:c});return s[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},s},hv=(e,t)=>d9(e,t),f9=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...hv(e,n)}}),m9=()=>({}),p9=()=>({}),g9=Pt("Grid",c9,m9),oT=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),h9=Pt("Grid",e=>{const t=Tt(e,{gridColumns:24}),n=oT(t);return delete n.xs,[u9(t),hv(t,""),hv(t,"-xs"),Object.keys(n).map(r=>f9(t,n[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},p9);function XE(e){return{position:e,inset:0}}const y9=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}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...XE("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...XE("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:FO(e)}]},b9=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:`${te(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Zt(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(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}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{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:te(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...xo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${te(e.borderRadiusLG)} ${te(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:`${te(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}-container,
175
+ ${t}-body,
176
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},v9=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},S9=e=>{const{componentCls:t}=e,n=oT(e),r={...n};delete r.xs;const i=`--${t.replace(".","")}-`,s=Object.keys(r).map(c=>({[`@media (min-width: ${te(r[c])})`]:{width:`var(${i}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(xn(Object.keys(n).map((c,d)=>{const f=Object.keys(n)[d-1];return f?{[`${i}${c}-width`]:`var(${i}${f}-width)`}:null})),[{width:`var(${i}xs-width)`}],xn(s))}}},aT=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Tt(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()})},iT=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${te(e.padding)} ${te(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${te(e.paddingXS)} ${te(e.padding)}`:0,footerBorderTop:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${te(e.padding*2)} ${te(e.padding*2)} ${te(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),lT=Pt("Modal",e=>{const t=aT(e);return[b9(t),v9(t),y9(t),md(t,"zoom"),S9(t)]},iT,{unitless:{titleLineHeight:!0}});let yv;const C9=e=>{yv={x:e.pageX,y:e.pageY},setTimeout(()=>{yv=null},100)};V_()&&document.documentElement.addEventListener("click",C9,!0);const sT=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:s,centered:c,getContainer:d,focusTriggerAfterClose:f=!0,style:p,width:g=520,footer:h,classNames:y,styles:C,children:b,loading:$,confirmLoading:S,zIndex:w,mousePosition:M,onOk:x,onCancel:R,okButtonProps:O,cancelButtonProps:N,destroyOnHidden:T,destroyOnClose:P,panelRef:D=null,closable:k,mask:W,modalRender:U,...G}=e,{getPopupContainer:L,getPrefixCls:H,direction:_,className:B,style:I,classNames:z,styles:V,centered:A,cancelButtonProps:j,okButtonProps:q,mask:X}=It("modal"),{modal:K}=l.useContext(dt),[J,Z]=l.useMemo(()=>typeof k=="boolean"?[void 0,void 0]:[k?.afterClose,k?.onClose],[k]),oe=H("modal",t),ne=H(),[ie,de]=lO(W,X,oe),le=Ae=>{S||(R?.(Ae),Z?.())},fe=Ae=>{x?.(Ae),Z?.()},ge=ar(oe),[re,ce]=lT(oe,ge),he=Q(s,{[`${oe}-centered`]:c??A,[`${oe}-wrap-rtl`]:_==="rtl"}),pe=h!==null&&!$?l.createElement(rT,{...e,okButtonProps:{...q,...O},onOk:fe,cancelButtonProps:{...j,...N},onCancel:le}):null,[Se,Ie,Me,we]=PS(Cs(e),Cs(K),{closable:!0,closeIcon:l.createElement(qr,{className:`${oe}-close-icon`}),closeIconRender:Ae=>nT(oe,Ae)}),se=Se?{disabled:Me,closeIcon:Ie,afterClose:J,...we}:!1,be=U?Ae=>l.createElement("div",{className:`${oe}-render`},U(Ae)):void 0,Ee=`.${oe}-${U?"render":"container"}`,Ne=tT(Ee),Fe=or(D,Ne),[Ge,et]=fi("Modal",w),Oe={...e,width:g,panelRef:D,focusTriggerAfterClose:f,mask:ie,zIndex:Ge},[_e,Ve]=Lt([z,y,de],[V,C],{props:Oe}),[Qe,De]=l.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ve=l.useMemo(()=>{const Ae={};return De&&Object.keys(De).forEach(Ze=>{const Be=De[Ze];Be!==void 0&&(Ae[`--${oe}-${Ze}-width`]=typeof Be=="number"?`${Be}px`:Be)}),Ae},[oe,De]);return l.createElement(xa,{form:!0,space:!0},l.createElement(ld.Provider,{value:et},l.createElement(kj,{width:Qe,...G,zIndex:Ge,getContainer:d===void 0?L:d,prefixCls:oe,rootClassName:Q(re,r,ce,ge,_e.root),rootStyle:Ve.root,footer:pe,visible:i,mousePosition:M??yv,onClose:le,closable:se,closeIcon:Ie,focusTriggerAfterClose:f,transitionName:Go(ne,"zoom",e.transitionName),maskTransitionName:Go(ne,"fade",e.maskTransitionName),mask:ie,className:Q(re,n,B),style:{...I,...p,...ve},classNames:{..._e,wrapper:Q(_e.wrapper,he)},styles:Ve,panelRef:Fe,destroyOnHidden:T??P,modalRender:be},$?l.createElement(mi,{active:!0,title:!1,paragraph:{rows:4},className:`${oe}-body-skeleton`}):b)))},$9=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:s,lineHeight:c,modalTitleHeight:d,fontHeight:f,confirmBodyPadding:p}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...Zi()},[`&${t} ${t}-body`]:{padding:p},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(d).sub(i).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${te(e.marginSM)})`},[`${e.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${te(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${g}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${g}-container`]:{color:e.colorText,fontSize:s,lineHeight:c},[`${g}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${g}-error ${g}-body > ${e.iconCls}`]:{color:e.colorError},[`${g}-warning ${g}-body > ${e.iconCls},
177
+ ${g}-confirm ${g}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${g}-info ${g}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${g}-success ${g}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},x9=ad(["Modal","confirm"],e=>{const t=aT(e);return $9(t)},iT,{order:-1e3}),cT=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:s,type:c,okCancel:d,footer:f,locale:p,...g}=e;let h=n;if(!n&&n!==null)switch(c){case"info":h=l.createElement(TS,null);break;case"success":h=l.createElement(wp,null);break;case"error":h=l.createElement(Ps,null);break;default:h=l.createElement(zs,null)}const y=d??c==="confirm",C=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=oo("Modal"),$=p||b,S=r||(y?$?.okText:$?.justOkText),w=i||$?.cancelText,{closable:M}=g,{onClose:x}=M&&typeof M=="object"?M:{},R=l.useMemo(()=>({autoFocusButton:C,cancelTextLocale:w,okTextLocale:S,mergedOkCancel:y,onClose:x,...g}),[C,w,S,y,x,g]),O=l.createElement(l.Fragment,null,l.createElement(PE,null),l.createElement(zE,null)),N=e.title!==void 0&&e.title!==null,T=`${s}-body`;return l.createElement("div",{className:`${s}-body-wrapper`},l.createElement("div",{className:Q(T,{[`${T}-has-title`]:N})},h,l.createElement("div",{className:`${s}-paragraph`},N&&l.createElement("span",{className:`${s}-title`},e.title),l.createElement("div",{className:`${s}-content`},e.content))),f===void 0||typeof f=="function"?l.createElement(YO,{value:R},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(O,{OkBtn:zE,CancelBtn:PE}):O)):f,l.createElement(x9,{prefixCls:t}))},w9=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:s,wrapClassName:c,rootPrefixCls:d,bodyStyle:f,closable:p=!1,onConfirm:g,styles:h,title:y,okButtonProps:C,cancelButtonProps:b}=e,{cancelButtonProps:$,okButtonProps:S}=It("modal"),w=`${s}-confirm`,M=e.width||416,x=e.style||{},R=e.maskClosable===void 0?!1:e.maskClosable,O=Q(w,`${w}-${e.type}`,{[`${w}-rtl`]:i==="rtl"},e.className),[,N]=Wr(),T=l.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+cO,[n,N]);return l.createElement(sT,{...e,className:O,wrapClassName:Q({[`${w}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Go(d||"","zoom",e.transitionName),maskTransitionName:Go(d||"","fade",e.maskTransitionName),maskClosable:R,style:x,styles:{body:f,mask:r,...h},width:M,zIndex:T,closable:p},l.createElement(cT,{...e,confirmPrefixCls:w,okButtonProps:{...S,...C},cancelButtonProps:{...$,...b}}))},uT=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return l.createElement(Qo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},l.createElement(w9,{...e}))},qi=[];let dT="";function fT(){return dT}const E9=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,i=aO(),s=l.useContext(dt),c=fT()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),ae.createElement(uT,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??i,getContainer:f})};function vd(e){const t=TO(),n=document.createDocumentFragment();let r={...e,close:d,open:!0},i;function s(...p){p.some(h=>h?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let h=0;h<qi.length;h++)if(qi[h]===d){qi.splice(h,1);break}DO(n).then(()=>{})}const c=p=>{clearTimeout(i),i=setTimeout(()=>{const g=t.getPrefixCls(void 0,fT()),h=t.getIconPrefixCls(),y=t.getTheme(),C=ae.createElement(E9,{...p});jS(ae.createElement(Qo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...p){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}},c(r)}function f(p){typeof p=="function"?r=p(r):r={...r,...p},c(r)}return c(r),qi.push(d),{destroy:d,update:f}}function mT(e){return{...e,type:"warning"}}function pT(e){return{...e,type:"info"}}function gT(e){return{...e,type:"success"}}function hT(e){return{...e,type:"error"}}function yT(e){return{...e,type:"confirm"}}function M9({rootPrefixCls:e}){dT=e}const R9=({afterClose:e,config:t,...n},r)=>{const[i,s]=l.useState(!0),[c,d]=l.useState(t),{direction:f,getPrefixCls:p}=l.useContext(dt),g=p("modal"),h=p(),y=()=>{e(),c.afterClose?.()},C=(...S)=>{s(!1),S.some(M=>M?.triggerCancel)&&c.onCancel?.(()=>{},...S.slice(1))};l.useImperativeHandle(r,()=>({destroy:C,update:S=>{d(w=>{const M=typeof S=="function"?S(w):S;return{...w,...M}})}}));const b=c.okCancel??c.type==="confirm",[$]=oo("Modal",$a.Modal);return l.createElement(uT,{prefixCls:g,rootPrefixCls:h,...c,close:C,open:i,afterClose:y,okText:c.okText||(b?$?.okText:$?.justOkText),direction:c.direction||f,cancelText:c.cancelText||$?.cancelText,...n})},O9=l.forwardRef(R9);let KE=0;const T9=l.memo(l.forwardRef((e,t)=>{const[n,r]=q5();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function N9(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(xn(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(s=>function(d){KE+=1;const f=l.createRef();let p;const g=new Promise($=>{p=$});let h=!1,y;const C=l.createElement(O9,{key:`modal-${KE}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:$=>{p($)}});return y=e.current?.patchElement(C),y&&qi.push(y),{destroy:()=>{function $(){f.current?.destroy()}f.current?$():n(S=>[].concat(xn(S),[$]))},update:$=>{function S(){f.current?.update($)}f.current?S():n(w=>[].concat(xn(w),[S]))},then:$=>(h=!0,g.then($))}},[]);return[l.useMemo(()=>({info:r(pT),success:r(gT),error:r(hT),warning:r(mT),confirm:r(yT)}),[r]),l.createElement(T9,{key:"modal-holder",ref:e})]}const I9=ae.createContext({});function bT(e){return t=>l.createElement(Qo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const Ap=(e,t,n,r,i)=>bT(c=>{const{prefixCls:d,style:f}=c,p=l.useRef(null),[g,h]=l.useState(0),[y,C]=l.useState(0),[b,$]=Yt(!1,c.open),{getPrefixCls:S}=l.useContext(dt),w=S(r||"select",d);l.useEffect(()=>{if($(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(N=>{const T=N[0].target;h(T.offsetHeight+8),C(T.offsetWidth)}),O=setInterval(()=>{const N=i?`.${i(w)}`:`.${w}-dropdown`,T=p.current?.querySelector(N);T&&(clearInterval(O),R.observe(T))},10);return()=>{clearInterval(O),R.disconnect()}}},[w]);let M={...c,style:{...f,margin:0},open:b,getPopupContainer:()=>p.current};t&&Object.assign(M,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:g,position:"relative",minWidth:y};return l.createElement("div",{ref:p,style:x},l.createElement(e,{...M}))}),P9=(e,t,n,r,i=!1,s,c)=>{const d=l.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return l.useMemo(()=>{const f=!i&&d.allowClear!==!1&&(t.length||s)&&!(c==="combobox"&&s==="");return{allowClear:f,clearIcon:f?d.clearIcon||r||"×":null}},[d,r,i,t.length,s,c])},vT=l.createContext(null);function sl(){return l.useContext(vT)}function z9(e=250){const t=l.useRef(null),n=l.useRef(null);l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function ST(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function A9(e,t,n,r){const i=ut(s=>{if(r)return;let c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),s._ori_target&&(c=s._ori_target),t&&!ST(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(this,arguments)}const D9=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},j9=(e,t)=>{const{prefixCls:n,disabled:r,visible:i,children:s,popupElement:c,animation:d,transitionName:f,popupStyle:p,popupClassName:g,direction:h="ltr",placement:y,builtinPlacements:C,popupMatchSelectWidth:b,popupRender:$,popupAlign:S,getPopupContainer:w,empty:M,onPopupVisibleChange:x,onPopupMouseEnter:R,onPopupMouseDown:O,onPopupBlur:N,...T}=e,P=`${n}-dropdown`;let D=c;$&&(D=$(c));const k=l.useMemo(()=>C||D9(b),[C,b]),W=d?`${P}-${d}`:f,U=typeof b=="number",G=l.useMemo(()=>U?null:b===!1?"minWidth":"width",[b,U]);let L=p;U&&(L={...p,width:b});const H=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>H.current?.popupElement})),l.createElement(ud,bv({},T,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:P,popupMotion:{motionName:W},popup:l.createElement("div",{onMouseEnter:R,onMouseDown:O,onBlur:N},D),ref:H,stretch:G,popupAlign:S,popupVisible:i,getPopupContainer:w,popupClassName:Q(g,{[`${P}-empty`]:M}),popupStyle:L,onPopupVisibleChange:x}),s)},_9=l.forwardRef(j9);function QE(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function vv(e){return typeof e<"u"&&!Number.isNaN(e)}function CT(e,t){const{label:n,value:r,options:i,groupLabel:s}=e||{},c=n||(t?"children":"label");return{label:c,value:r||"value",options:i||"options",groupLabel:s||c}}function H9(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:i,value:s,options:c,groupLabel:d}=CT(t,!1);function f(p,g){Array.isArray(p)&&p.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:QE(h,r.length),groupOption:g,data:h,label:h[i],value:y})}else{let y=h[d];y===void 0&&n&&(y=h.label),r.push({key:QE(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function Sv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return tr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const B9=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const i=(c,[d,...f])=>{if(!d)return[c];const p=c.split(d);return r=r||p.length>1,p.reduce((g,h)=>[...g,...i(h,f)],[]).filter(Boolean)},s=i(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function L9(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:i,value:s})=>["number","string"].includes(typeof i)?i:s).join(", ")}`,n.length>r?", ...":null)}const V9=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},FS=(e,t=1)=>{if(t<=0){e();return}V9(()=>{FS(e,t-1)})};function F9(e,t,n,r){const[i,s]=l.useState(!1);l.useEffect(()=>{s(!0)},[]);const[c,d]=Yt(e,t),p=r(i?c:!1),g=l.useRef(0),h=ut(C=>{n&&p!==C&&n(C),d(C)}),y=ut((C,b={})=>{const{cancelFun:$}=b;g.current+=1;const S=g.current,w=typeof C=="boolean"?C:!p;function M(){S===g.current&&!$?.()&&h(w)}w?M():FS(()=>{M()})});return[p,y]}function Dy(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const $T=l.createContext(null);function Sd(){return l.useContext($T)}const xT=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:i,style:s,syncWidth:c,value:d,className:f,autoComplete:p,...g}=e,{prefixCls:h,mode:y,onSearch:C,onSearchSubmit:b,onInputBlur:$,autoFocus:S,tokenWithEnter:w,placeholder:M,components:{input:x="input"}}=Sd(),{id:R,classNames:O,styles:N,open:T,activeDescendantId:P,role:D,disabled:k}=sl()||{},W=Q(`${h}-input`,O?.input,f),U=l.useRef(!1),G=l.useRef(null),L=l.useRef(null);l.useImperativeHandle(t,()=>L.current);const H=K=>{let{value:J}=K.target;if(w&&G.current&&/[\r\n]/.test(G.current)){const Z=G.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");J=J.replace(Z,G.current)}G.current=null,C&&C(J,!0,U.current),n?.(K)},_=K=>{const{key:J}=K,{value:Z}=K.currentTarget;J==="Enter"&&y==="tags"&&!U.current&&b&&b(Z),r?.(K)},B=K=>{$?.(),i?.(K)},I=()=>{U.current=!0},z=K=>{if(U.current=!1,y!=="combobox"){const{value:J}=K.currentTarget;C?.(J,!0,!1)}},V=K=>{const{clipboardData:J}=K,Z=J?.getData("text");G.current=Z||""},[A,j]=l.useState(void 0);Nt(()=>{const K=L.current;if(c&&K){K.style.width="0px";const J=K.scrollWidth;j(J),K.style.width=""}},[c,d]);const q={id:R,type:y==="combobox"?"text":"search",...g,ref:L,style:{...N?.input,...s,"--select-input-width":A},autoFocus:S,autoComplete:p||"off",className:W,disabled:k,value:d||"",onChange:H,onKeyDown:_,onBlur:B,onPaste:V,onCompositionStart:I,onCompositionEnd:z,role:D||"combobox","aria-expanded":T||!1,"aria-haspopup":"listbox","aria-owns":T?`${R}_list`:void 0,"aria-autocomplete":"list","aria-controls":T?`${R}_list`:void 0,"aria-activedescendant":T?P:void 0};if(l.isValidElement(x)){const K=x.props||{},J={placeholder:e.placeholder||M,...q,...K};return Object.keys(K).forEach(Z=>{const oe=K[Z];typeof oe=="function"&&(J[Z]=(...ne)=>{oe(...ne),q[Z]?.(...ne)})}),J.ref=or(x.ref,q.ref),l.cloneElement(x,J)}const X=x;return l.createElement(X,q)});function wT(e){const{prefixCls:t,placeholder:n,displayValues:r}=Sd(),{classNames:i,styles:s}=sl(),{show:c=!0}=e;return r.length?null:l.createElement("div",{className:Q(`${t}-placeholder`,i?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},n)}const kS=l.createContext(null);function ET(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function k9(e){return e!=null}function W9(e){return!e&&e!==0}function ZE(e){return["string","number"].includes(typeof e)}function Cv(e){let t;return e&&(ZE(e.title)?t=e.title.toString():ZE(e.label)&&(t=e.label.toString())),t}function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$v.apply(this,arguments)}const q9=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:i,displayValues:s,maxLength:c,mode:d}=Sd(),{triggerOpen:f,title:p,showSearch:g,classNames:h,styles:y}=sl(),C=l.useContext(kS),[b,$]=l.useState(!1),S=d==="combobox",w=s[0],M=l.useMemo(()=>S&&i&&!b&&f?i:g?r:"",[S,i,b,f,r,g]),x=l.useMemo(()=>{const R={className:`${n}-content-value`,style:{visibility:M?"hidden":"visible"}};if(w&&C?.flattenOptions){const O=C.flattenOptions.find(N=>N.value===w.value);if(O?.data){const{className:N,style:T}=O.data;Object.assign(R,{title:Cv(O.data),className:Q(R.className,N),style:{...R.style,...T}})}}return w&&!R.title&&(R.title=Cv(w)),p!==void 0&&(R.title=p),R},[w,C?.flattenOptions,n,M,p]);return l.useEffect(()=>{S&&$(!1)},[S,i]),l.createElement("div",{className:Q(`${n}-content`,h?.content),style:y?.content},w?l.createElement("div",x,w.label):l.createElement(wT,{show:!M}),l.createElement(xT,$v({ref:t},e,{value:M,maxLength:d==="combobox"?c:void 0,onChange:R=>{$(!0),e.onChange?.(R)}})))}),Jl=void 0;function Y9(e,t){const{prefixCls:n,invalidate:r,item:i,renderItem:s,responsive:c,responsiveDisabled:d,registerSize:f,itemKey:p,className:g,style:h,children:y,display:C,order:b,component:$="div",...S}=e,w=c&&!C;function M(T){f(p,T)}l.useEffect(()=>()=>{M(null)},[]);const x=s&&i!==Jl?s(i,{index:b}):y;let R;r||(R={opacity:w?0:1,height:w?0:Jl,overflowY:w?"hidden":Jl,order:c?b:Jl,pointerEvents:w?"none":Jl,position:w?"absolute":Jl});const O={};w&&(O["aria-hidden"]=!0);let N=l.createElement($,Xn({className:Q(!r&&n,g),style:{...R,...h}},O,S,{ref:t}),x);return c&&(N=l.createElement(Vr,{onResize:({offsetWidth:T})=>{M(T)},disabled:d},N)),N}const Xc=l.forwardRef(Y9);function U9(e){if(typeof MessageChannel>"u")Ht(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function G9(){const e=l.useRef(null);return n=>{e.current||(e.current=[],U9(()=>{Ji.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function es(e,t){const[n,r]=l.useState(t),i=ut(s=>{e(()=>{r(s)})});return[n,i]}const Xm=ae.createContext(null),X9=(e,t)=>{const n=l.useContext(Xm);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Xn({},f,{ref:t}))}const{className:r,...i}=n,{className:s,...c}=e;return l.createElement(Xm.Provider,{value:null},l.createElement(Xc,Xn({ref:t,className:Q(r,s)},i,c)))},K9=l.forwardRef(X9),MT="responsive",RT="invalidate";function Q9(e){return`+ ${e.length} ...`}function Z9(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:i,renderRawItem:s,itemKey:c,itemWidth:d=10,ssr:f,style:p,className:g,maxCount:h,renderRest:y,renderRawRest:C,prefix:b,suffix:$,component:S="div",itemComponent:w,onVisibleChange:M,...x}=e,R=f==="full",O=G9(),[N,T]=es(O,null),P=N||0,[D,k]=es(O,new Map),[W,U]=es(O,0),[G,L]=es(O,0),[H,_]=es(O,0),[B,I]=es(O,0),[z,V]=l.useState(null),[A,j]=l.useState(null),q=l.useMemo(()=>A===null&&R?Number.MAX_SAFE_INTEGER:A||0,[A,N]),[X,K]=l.useState(!1),J=`${n}-item`,Z=Math.max(W,G),oe=h===MT,ne=r.length&&oe,ie=h===RT,de=ne||typeof h=="number"&&r.length>h,le=l.useMemo(()=>{let _e=r;return ne?N===null&&R?_e=r:_e=r.slice(0,Math.min(r.length,P/d)):typeof h=="number"&&(_e=r.slice(0,h)),_e},[r,d,N,h,ne]),fe=l.useMemo(()=>ne?r.slice(q+1):r.slice(le.length),[r,le,ne,q]),ge=l.useCallback((_e,Ve)=>typeof c=="function"?c(_e):(c&&_e?.[c])??Ve,[c]),re=l.useCallback(i||(_e=>_e),[i]);function ce(_e,Ve,Qe){A===_e&&(Ve===void 0||Ve===z)||(j(_e),Qe||(K(_e<r.length-1),M?.(_e)),Ve!==void 0&&V(Ve))}function he(_e,Ve){T(Ve.clientWidth)}function pe(_e,Ve){k(Qe=>{const De=new Map(Qe);return Ve===null?De.delete(_e):De.set(_e,Ve),De})}function Se(_e,Ve){L(Ve),U(G)}function Ie(_e,Ve){_(Ve)}function Me(_e,Ve){I(Ve)}function we(_e){return D.get(ge(le[_e],_e))}Nt(()=>{if(P&&typeof Z=="number"&&le){let _e=H+B;const Ve=le.length,Qe=Ve-1;if(!Ve){ce(0,null);return}for(let De=0;De<Ve;De+=1){let ve=we(De);if(R&&(ve=ve||0),ve===void 0){ce(De-1,void 0,!0);break}if(_e+=ve,Qe===0&&_e<=P||De===Qe-1&&_e+we(Qe)<=P){ce(Qe,null);break}else if(_e+Z>P){ce(De-1,_e-ve-B+G);break}}$&&we(0)+B>P&&V(null)}},[P,D,G,H,B,ge,le]);const se=X&&!!fe.length;let be={};z!==null&&ne&&(be={position:"absolute",left:z,top:0});const Ee={prefixCls:J,responsive:ne,component:w,invalidate:ie},Ne=s?(_e,Ve)=>{const Qe=ge(_e,Ve);return l.createElement(Xm.Provider,{key:Qe,value:{...Ee,order:Ve,item:_e,itemKey:Qe,registerSize:pe,display:Ve<=q}},s(_e,Ve))}:(_e,Ve)=>{const Qe=ge(_e,Ve);return l.createElement(Xc,Xn({},Ee,{order:Ve,key:Qe,item:_e,renderItem:re,itemKey:Qe,registerSize:pe,display:Ve<=q}))},Fe={order:se?q:Number.MAX_SAFE_INTEGER,className:`${J}-rest`,registerSize:Se,display:se},Ge=y||Q9,et=C?l.createElement(Xm.Provider,{value:{...Ee,...Fe}},C(fe)):l.createElement(Xc,Xn({},Ee,Fe),typeof Ge=="function"?Ge(fe):Ge),Oe=l.createElement(S,Xn({className:Q(!ie&&n,g),style:p,ref:t},x),b&&l.createElement(Xc,Xn({},Ee,{responsive:oe,responsiveDisabled:!ne,order:-1,className:`${J}-prefix`,registerSize:Ie,display:!0}),b),le.map(Ne),de?et:null,$&&l.createElement(Xc,Xn({},Ee,{responsive:oe,responsiveDisabled:!ne,order:q,className:`${J}-suffix`,registerSize:Me,display:!0,style:be}),$));return oe?l.createElement(Vr,{onResize:he,disabled:!ne},Oe):Oe}const Yo=l.forwardRef(Z9);Yo.Item=K9;Yo.RESPONSIVE=MT;Yo.INVALIDATE=RT;const OT=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:s,onMouseDown:c,onClick:d}=e,f=typeof r=="function"?r(i):r;return l.createElement("span",{className:t,onMouseDown:p=>{p.preventDefault(),c?.(p)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:d,"aria-hidden":!0},f!==void 0?f:l.createElement("span",{className:Q(t.split(/\s+/).map(p=>`${p}-icon`))},s))};function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(this,arguments)}function J9(e){return e.key??e.value}const JE=e=>{e.preventDefault(),e.stopPropagation()},e7=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:i,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=Sd(),{disabled:p,showSearch:g,triggerOpen:h,toggleOpen:y,autoClearSearchValue:C,tagRender:b,maxTagPlaceholder:$,maxTagTextLength:S,maxTagCount:w,classNames:M,styles:x}=sl(),R=`${r}-selection-item`;let O=s;!h&&c==="multiple"&&C!==!1&&(O="");const N=g&&O||"",T=g&&!p,P=f??"×",D=$??(B=>`+ ${B.length} ...`),k=b,W=B=>{y(B)},U=B=>{d?.(B)},G=(B,I,z,V,A)=>l.createElement("span",{title:Cv(B),className:Q(R,{[`${R}-disabled`]:z},M?.item),style:x?.item},l.createElement("span",{className:Q(`${R}-content`,M?.itemContent),style:x?.itemContent},I),V&&l.createElement(OT,{className:Q(`${R}-remove`,M?.itemRemove),style:x?.itemRemove,onMouseDown:JE,onClick:A,customizeIcon:P},"×")),L=(B,I,z,V,A,j,q)=>{const X=K=>{JE(K),W(!h)};return l.createElement("span",{onMouseDown:X},k({label:I,value:B,index:q?.index,disabled:z,closable:V,onClose:A,isMaxTag:!!j}))},H=(B,I)=>{const{disabled:z,label:V,value:A}=B,j=!p&&!z;let q=V;if(typeof S=="number"&&(typeof V=="string"||typeof V=="number")){const K=String(q);K.length>S&&(q=`${K.slice(0,S)}...`)}const X=K=>{K&&K.stopPropagation(),U(B)};return typeof k=="function"?L(A,q,z,j,X,void 0,I):G(B,q,z,j,X)},_=B=>{if(!i.length)return null;const I=typeof D=="function"?D(B):D;return typeof k=="function"?L(void 0,I,!1,!1,void 0,!0):G({title:I},I,!1)};return l.createElement(Yo,{prefixCls:`${r}-content`,className:M?.content,style:x?.content,prefix:!i.length&&(!s||!h)?l.createElement(wT,null):null,data:i,renderItem:H,renderRest:_,suffix:l.createElement(xT,xv({ref:n,disabled:p,readOnly:!T},t,{value:N||"",syncWidth:!0})),itemKey:J9,maxCount:w})}),t7=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:i,tabIndex:s}=Sd(),c=sl(),{showSearch:d}=c,p={...Pn(c,{aria:!0}),onKeyDown:i,readOnly:!d,tabIndex:s};return r?l.createElement(e7,{ref:n,inputProps:p}):l.createElement(q9,{ref:n,inputProps:p})});function n7(e){return e&&![nt.ESC,nt.SHIFT,nt.BACKSPACE,nt.TAB,nt.WIN_KEY,nt.ALT,nt.META,nt.WIN_KEY_RIGHT,nt.CTRL,nt.SEMICOLON,nt.EQUALS,nt.CAPS_LOCK,nt.CONTEXT_MENU,nt.UP,nt.LEFT,nt.RIGHT,nt.F1,nt.F2,nt.F3,nt.F4,nt.F5,nt.F6,nt.F7,nt.F8,nt.F9,nt.F10,nt.F11,nt.F12].includes(e)}function Km(){return Km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Km.apply(this,arguments)}const r7=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],o7=l.forwardRef(function(t,n){const{prefixCls:r,className:i,style:s,prefix:c,suffix:d,clearIcon:f,children:p,multiple:g,displayValues:h,placeholder:y,mode:C,searchValue:b,onSearch:$,onSearchSubmit:S,onInputBlur:w,maxLength:M,autoFocus:x,onMouseDown:R,onClearMouseDown:O,onInputKeyDown:N,onSelectorRemove:T,tokenWithEnter:P,components:D,...k}=t,{triggerOpen:W,toggleOpen:U,showSearch:G,disabled:L,loading:H,classNames:_,styles:B}=sl(),I=l.useRef(null),z=l.useRef(null),V=ut(Z=>{const{which:oe}=Z,ne=z.current instanceof HTMLTextAreaElement;if(!ne&&W&&(oe===nt.UP||oe===nt.DOWN)&&Z.preventDefault(),N&&N(Z),ne&&!W&&~[nt.UP,nt.DOWN,nt.LEFT,nt.RIGHT].indexOf(oe))return;!(Z.ctrlKey||Z.altKey||Z.metaKey)&&n7(oe)&&U(!0)});l.useImperativeHandle(n,()=>({focus:Z=>{(z.current||I.current).focus?.(Z)},blur:()=>{(z.current||I.current).blur?.()},nativeElement:I.current}));const A=ut(Z=>{if(!L){const oe=fu(z.current);Z.nativeEvent._ori_target=oe,oe&&Z.target!==oe&&!oe.contains(Z.target)&&Z.preventDefault();const ne=W&&!g&&(C==="combobox"||G);Z.nativeEvent._select_lazy?W&&U(!1):(z.current?.focus(),ne||U())}R?.(Z)}),{root:j}=D,q=tn(k,r7),X=Pn(q,{aria:!0}),K=Object.keys(X),J={...t,onInputKeyDown:V};return j?l.isValidElement(j)?l.cloneElement(j,{...q,ref:or(j.ref,I)}):l.createElement(j,Km({},q,{ref:I})):l.createElement($T.Provider,{value:J},l.createElement("div",Km({},tn(q,K),{ref:I,className:i,style:s,onMouseDown:A}),l.createElement(Dy,{className:Q(`${r}-prefix`,_?.prefix),style:B?.prefix},c),l.createElement(t7,{ref:z}),l.createElement(Dy,{className:Q(`${r}-suffix`,{[`${r}-suffix-loading`]:H},_?.suffix),style:B?.suffix},d),f&&l.createElement(Dy,{className:Q(`${r}-clear`,_?.clear),style:B?.clear,onMouseDown:Z=>{Z.nativeEvent._select_lazy=!0,O?.(Z)}},f),p))});function a7(e,t,n){return l.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wv.apply(this,arguments)}const Ev=e=>e==="tags"||e==="multiple",i7=l.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:i,styles:s,classNames:c,showSearch:d,tagRender:f,showScrollBar:p="optional",direction:g,omitDomProps:h,displayValues:y,onDisplayValuesChange:C,emptyOptions:b,notFoundContent:$="Not Found",onClear:S,maxCount:w,placeholder:M,mode:x,disabled:R,loading:O,getInputElement:N,getRawInputElement:T,open:P,defaultOpen:D,onPopupVisibleChange:k,activeValue:W,onActiveValueChange:U,activeDescendantId:G,searchValue:L,autoClearSearchValue:H,onSearch:_,onSearchSplit:B,tokenSeparators:I,allowClear:z,prefix:V,suffix:A,suffixIcon:j,clearIcon:q,OptionList:X,animation:K,transitionName:J,popupStyle:Z,popupClassName:oe,popupMatchSelectWidth:ne,popupRender:ie,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,showAction:re=[],onFocus:ce,onBlur:he,onKeyUp:pe,onKeyDown:Se,onMouseDown:Ie,components:Me,...we}=e,se=Ev(x),be=l.useRef(null),Ee=l.useRef(null),Ne=l.useRef(null),[Fe,Ge]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:be.current?.focus,blur:be.current?.blur,scrollTo:Ke=>Ne.current?.scrollTo(Ke),nativeElement:fu(be.current)}));const et=a7(Me,N,T),Oe=l.useMemo(()=>{if(x!=="combobox")return L;const Ke=y[0]?.value;return typeof Ke=="string"||typeof Ke=="number"?String(Ke):""},[L,x,y]),_e=x==="combobox"&&typeof N=="function"&&N()||null,Ve=!$&&b,[Qe,De]=F9(D||!1,P,k,Ke=>R||Ve?!1:Ke),ve=l.useMemo(()=>(I||[]).some(Ke=>[`
178
+ `,`\r
179
+ `].includes(Ke)),[I]),Ae=(Ke,Et,mt)=>{if(se&&vv(w)&&y.length>=w)return;let Rt=!0,Ut=Ke;U?.(null);const an=B9(Ke,I,vv(w)?w-y.length:void 0),kt=mt?null:an;return x!=="combobox"&&kt&&(Ut="",B?.(kt),De(!1),Rt=!1),_&&Oe!==Ut&&_(Ut,{source:Et?"typing":"effect"}),Ke&&Et&&Rt&&De(!0),Rt},Ze=Ke=>{!Ke||!Ke.trim()||_(Ke,{source:"submit"})};l.useEffect(()=>{!Qe&&!se&&x!=="combobox"&&Ae("",!1,!1)},[Qe]),l.useEffect(()=>{R&&(De(!1),Ge(!1))},[R,Qe]);const[Be,Ue]=z9(),Pe=l.useRef(!1),Xe=Ke=>{const Et=Be(),{key:mt}=Ke,Rt=mt==="Enter";if(Rt&&(x!=="combobox"&&Ke.preventDefault(),Qe||De(!0)),Ue(!!Oe),mt==="Backspace"&&!Et&&se&&!Oe&&y.length){const Ut=[...y];let an=null;for(let kt=Ut.length-1;kt>=0;kt-=1){const wn=Ut[kt];if(!wn.disabled){Ut.splice(kt,1),an=wn;break}}an&&C(Ut,{type:"remove",values:[an]})}Qe&&(!Rt||!Pe.current)&&(Rt&&(Pe.current=!0),Ne.current?.onKeyDown(Ke)),Se?.(Ke)},rt=(Ke,...Et)=>{Qe&&Ne.current?.onKeyUp(Ke,...Et),Ke.key==="Enter"&&(Pe.current=!1),pe?.(Ke,...Et)},ot=ut(Ke=>{const Et=y.filter(mt=>mt!==Ke);C(Et,{type:"remove",values:[Ke]})}),lt=()=>{Pe.current=!1},St=()=>[fu(be.current),Ee.current?.getPopupElement()];A9(St,Qe,De,!!et.root);const Ct=l.useRef(!1),qe=Ke=>{Ge(!0),R||(re.includes("focus")&&De(!0),ce?.(Ke))},at=()=>{Qe&&!Ct.current&&De(!1,{cancelFun:()=>ST(St(),document.activeElement)})},He=Ke=>{Ge(!1),Oe&&(x==="tags"?_(Oe,{source:"submit"}):x==="multiple"&&_("",{source:"blur"})),at(),R||he?.(Ke)},ze=(Ke,...Et)=>{const{target:mt}=Ke;Ee.current?.getPopupElement()?.contains(mt)&&De&&De(!0),Ie?.(Ke,...Et),Ct.current=!0,FS(()=>{Ct.current=!1})},[,We]=l.useState({});function Re(){We({})}let Ye;et.root&&(Ye=Ke=>{De(Ke)});const Je=l.useMemo(()=>({...e,notFoundContent:$,open:Qe,triggerOpen:Qe,id:n,showSearch:d,multiple:se,toggleOpen:De,showScrollBar:p,styles:s,classNames:c}),[e,$,De,n,d,se,Qe,p,s,c]),it=l.useMemo(()=>{const Ke=A??j;return typeof Ke=="function"?Ke({searchValue:Oe,open:Qe,focused:Fe,showSearch:d,loading:O}):Ke},[A,j,Oe,Qe,Fe,d,O]),ft=()=>{S?.(),be.current?.focus(),C([],{type:"clear",values:y}),Ae("",!1,!1)},{allowClear:Ft,clearIcon:Dt}=P9(r,y,z,q,R,Oe,x),$t=l.createElement(X,{ref:Ne}),nn=Q(r,i,{[`${r}-focused`]:Fe,[`${r}-multiple`]:se,[`${r}-single`]:!se,[`${r}-allow-clear`]:Ft,[`${r}-show-arrow`]:it!=null,[`${r}-disabled`]:R,[`${r}-loading`]:O,[`${r}-open`]:Qe,[`${r}-customize-input`]:_e,[`${r}-show-search`]:d});let wt=l.createElement(o7,wv({},we,{ref:be,prefixCls:r,className:nn,focused:Fe,prefix:V,suffix:it,clearIcon:Dt,multiple:se,mode:x,displayValues:y,placeholder:M,searchValue:Oe,activeValue:W,onSearch:Ae,onSearchSubmit:Ze,onInputBlur:lt,onFocus:qe,onBlur:He,onClearMouseDown:ft,onKeyDown:Xe,onKeyUp:rt,onSelectorRemove:ot,tokenWithEnter:ve,onMouseDown:ze,components:et}));return wt=l.createElement(_9,{ref:Ee,disabled:R,prefixCls:r,visible:Qe,popupElement:$t,animation:K,transitionName:J,popupStyle:Z,popupClassName:oe,direction:g,popupMatchSelectWidth:ne,popupRender:ie,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,empty:b,onPopupVisibleChange:Ye,onPopupMouseEnter:Re,onPopupMouseDown:ze,onPopupBlur:at},wt),l.createElement(vT.Provider,{value:Je},l.createElement(L9,{visible:Fe&&!Qe,values:y}),wt)}),WS=()=>null;WS.isSelectOptGroup=!0;const qS=()=>null;qS.isSelectOption=!0;const TT=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:s,innerProps:c,rtl:d,extra:f},p)=>{let g={},h={display:"flex",flexDirection:"column"};return t!==void 0&&(g={height:e,position:"relative",overflow:"hidden"},h={...h,transform:`translateY(${t}px)`,[d?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),l.createElement("div",{style:g},l.createElement(Vr,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Xn({style:h,className:Q({[`${i}-holder-inner`]:i}),ref:p},c),r,f)))});TT.displayName="Filler";function l7({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function s7(e,t,n,r,i,s,c,{getKey:d}){return e.slice(t,n+1).map((f,p)=>{const g=t+p,h=c(f,g,{style:{width:r},offsetX:i}),y=d(f);return l.createElement(l7,{key:y,setRef:C=>s(f,C)},h)})}function c7(e,t,n){const r=e.length,i=t.length;let s,c;if(r===0&&i===0)return null;r<i?(s=e,c=t):(s=t,c=e);const d={__EMPTY_ITEM__:!0};function f(h){return h!==void 0?n(h):d}let p=null,g=Math.abs(r-i)!==1;for(let h=0;h<c.length;h+=1){const y=f(s[h]),C=f(c[h]);if(y!==C){p=h,g=g||y!==f(c[h+1]);break}}return p===null?null:{index:p,multiple:g}}function u7(e,t,n){const[r,i]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=c7(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),i(e)},[e]),[s]}const e2=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),NT=((e,t,n,r)=>{const i=l.useRef(!1),s=l.useRef(null);function c(){clearTimeout(s.current),i.current=!0,s.current=setTimeout(()=>{i.current=!1},50)}const d=l.useRef({top:e,bottom:t,left:n,right:r});return d.current.top=e,d.current.bottom=t,d.current.left=n,d.current.right=r,(f,p,g=!1)=>{const h=f?p<0&&d.current.left||p>0&&d.current.right:p<0&&d.current.top||p>0&&d.current.bottom;return g&&h?(clearTimeout(s.current),i.current=!1):(!h||i.current)&&c(),!i.current&&h}});function d7(e,t,n,r,i,s,c){const d=l.useRef(0),f=l.useRef(null),p=l.useRef(null),g=l.useRef(!1),h=NT(t,n,r,i);function y(M,x){if(Ht.cancel(f.current),h(!1,x))return;const R=M;if(!R._virtualHandled)R._virtualHandled=!0;else return;d.current+=x,p.current=x,e2||R.preventDefault(),f.current=Ht(()=>{const O=g.current?10:1;c(d.current*O,!1),d.current=0})}function C(M,x){c(x,!0),e2||M.preventDefault()}const b=l.useRef(null),$=l.useRef(null);function S(M){if(!e)return;Ht.cancel($.current),$.current=Ht(()=>{b.current=null},2);const{deltaX:x,deltaY:R,shiftKey:O}=M;let N=x,T=R;(b.current==="sx"||!b.current&&O&&R&&!x)&&(N=R,T=0,b.current="sx");const P=Math.abs(N),D=Math.abs(T);b.current===null&&(b.current=s&&P>D?"x":"y"),b.current==="y"?y(M,T):C(M,N)}function w(M){e&&(g.current=M.detail===p.current)}return[S,w]}function f7(e,t,n,r){const[i,s]=l.useMemo(()=>[new Map,[]],[e,n.id,r]);return(d,f=d)=>{let p=i.get(d),g=i.get(f);if(p===void 0||g===void 0){const h=e.length;for(let y=s.length;y<h;y+=1){const C=e[y],b=t(C);i.set(b,y);const $=n.get(b)??r;if(s[y]=(s[y-1]||0)+$,b===d&&(p=y),b===f&&(g=y),p!==void 0&&g!==void 0)break}}return{top:s[p-1]||0,bottom:s[g]}}}class m7{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function t2(e){const t=parseFloat(e);return isNaN(t)?0:t}function p7(e,t,n){const[r,i]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new m7),d=l.useRef(0);function f(){d.current+=1}function p(h=!1){f();const y=()=>{let C=!1;s.current.forEach((b,$)=>{if(b&&b.offsetParent){const{offsetHeight:S}=b,{marginTop:w,marginBottom:M}=getComputedStyle(b),x=t2(w),R=t2(M),O=S+x+R;c.current.get($)!==O&&(c.current.set($,O),C=!0)}}),C&&i(b=>b+1)};if(h)y();else{d.current+=1;const C=d.current;Promise.resolve().then(()=>{C===d.current&&y()})}}function g(h,y){const C=e(h);s.current.get(C),y?(s.current.set(C,y),p()):s.current.delete(C)}return l.useEffect(()=>f,[]),[g,p,c.current,r]}const n2=14/15;function g7(e,t,n){const r=l.useRef(!1),i=l.useRef(0),s=l.useRef(0),c=l.useRef(null),d=l.useRef(null);let f;const p=y=>{if(r.current){const C=Math.ceil(y.touches[0].pageX),b=Math.ceil(y.touches[0].pageY);let $=i.current-C,S=s.current-b;const w=Math.abs($)>Math.abs(S);w?i.current=C:s.current=b;const M=n(w,w?$:S,!1,y);M&&y.preventDefault(),clearInterval(d.current),M&&(d.current=setInterval(()=>{w?$*=n2:S*=n2;const x=Math.floor(w?$:S);(!n(w,x,!0)||Math.abs(x)<=.1)&&clearInterval(d.current)},16))}},g=()=>{r.current=!1,f()},h=y=>{f(),y.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(y.touches[0].pageX),s.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",p,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};f=()=>{c.current&&(c.current.removeEventListener("touchmove",p),c.current.removeEventListener("touchend",g))},Nt(()=>(e&&t.current.addEventListener("touchstart",h,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",h),f(),clearInterval(d.current)}),[e])}function r2(e){return Math.floor(e**.5)}function Mv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function h7(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,s,c;const d=()=>{Ht.cancel(s)},f=()=>{d(),s=Ht(()=>{n(c),f()})},p=()=>{i=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const C=y;C._virtualHandled||(C._virtualHandled=!0,i=!0)},h=y=>{if(i){const C=Mv(y,!1),{top:b,bottom:$}=r.getBoundingClientRect();if(C<=b){const S=b-C;c=-r2(S),f()}else if(C>=$){const S=C-$;c=r2(S),f()}else d()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",p),r.ownerDocument.addEventListener("mousemove",h),r.ownerDocument.addEventListener("dragend",p),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",p),r.ownerDocument.removeEventListener("mousemove",h),r.ownerDocument.removeEventListener("dragend",p),d()}}},[e])}const y7=10;function b7(e,t,n,r,i,s,c,d){const f=l.useRef(),[p,g]=l.useState(null);return Nt(()=>{if(p&&p.times<y7){if(!e.current){g(x=>({...x}));return}s();const{targetAlign:h,originAlign:y,index:C,offset:b}=p,$=e.current.clientHeight;let S=!1,w=h,M=null;if($){const x=h||y;let R=0,O=0,N=0;const T=Math.min(t.length-1,C);for(let D=0;D<=T;D+=1){const k=i(t[D]);O=R;const W=n.get(k);N=O+(W===void 0?r:W),R=N}let P=x==="top"?b:$-b;for(let D=T;D>=0;D-=1){const k=i(t[D]),W=n.get(k);if(W===void 0){S=!0;break}if(P-=W,P<=0)break}switch(x){case"top":M=O-b;break;case"bottom":M=N-$+b;break;default:{const{scrollTop:D}=e.current,k=D+$;O<D?w="top":N>k&&(w="bottom")}}M!==null&&c(M),M!==p.lastTop&&(S=!0)}S&&g({...p,times:p.times+1,targetAlign:w,lastTop:M})}},[p,e.current]),h=>{if(h==null){d();return}if(Ht.cancel(f.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y;const{align:C}=h;"index"in h?{index:y}=h:y=t.findIndex($=>i($)===h.key);const{offset:b=0}=h;g({times:0,index:y,offset:b,originAlign:C})}}}const o2=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:s,onStartMove:c,onStopMove:d,onScroll:f,horizontal:p,spinSize:g,containerSize:h,style:y,thumbStyle:C,showScrollBar:b}=e,[$,S]=l.useState(!1),[w,M]=l.useState(null),[x,R]=l.useState(null),O=!r,N=l.useRef(),T=l.useRef(),[P,D]=l.useState(b),k=l.useRef(),W=()=>{b===!0||b===!1||(clearTimeout(k.current),D(!0),k.current=setTimeout(()=>{D(!1)},3e3))},U=s-h||0,G=h-g||0,L=l.useMemo(()=>i===0||U===0?0:i/U*G,[i,U,G]),H=q=>{q.stopPropagation(),q.preventDefault()},_=l.useRef({top:L,dragging:$,pageY:w,startTop:x});_.current={top:L,dragging:$,pageY:w,startTop:x};const B=q=>{S(!0),M(Mv(q,p)),R(_.current.top),c(),q.stopPropagation(),q.preventDefault()};l.useEffect(()=>{const q=J=>{J.preventDefault()},X=N.current,K=T.current;return X.addEventListener("touchstart",q,{passive:!1}),K.addEventListener("touchstart",B,{passive:!1}),()=>{X.removeEventListener("touchstart",q),K.removeEventListener("touchstart",B)}},[]);const I=l.useRef();I.current=U;const z=l.useRef();z.current=G,l.useEffect(()=>{if($){let q;const X=J=>{const{dragging:Z,pageY:oe,startTop:ne}=_.current;Ht.cancel(q);const ie=N.current.getBoundingClientRect(),de=h/(p?ie.width:ie.height);if(Z){const le=(Mv(J,p)-oe)*de;let fe=ne;!O&&p?fe-=le:fe+=le;const ge=I.current,re=z.current,ce=re?fe/re:0;let he=Math.ceil(ce*ge);he=Math.max(he,0),he=Math.min(he,ge),q=Ht(()=>{f(he,p)})}},K=()=>{S(!1),d()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),Ht.cancel(q)}}},[$]),l.useEffect(()=>(W(),()=>{clearTimeout(k.current)}),[i]),l.useImperativeHandle(t,()=>({delayHidden:W}));const V=`${n}-scrollbar`,A={position:"absolute",visibility:P?null:"hidden"},j={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(A,{height:8,left:0,right:0,bottom:0}),Object.assign(j,{height:"100%",width:g,[O?"left":"right"]:L})):(Object.assign(A,{width:8,top:0,bottom:0,[O?"right":"left"]:0}),Object.assign(j,{width:"100%",height:g,top:L})),l.createElement("div",{ref:N,className:Q(V,{[`${V}-horizontal`]:p,[`${V}-vertical`]:!p,[`${V}-visible`]:P}),style:{...A,...y},onMouseDown:H,onMouseMove:W},l.createElement("div",{ref:T,className:Q(`${V}-thumb`,{[`${V}-thumb-moving`]:$}),style:{...j,...C},onMouseDown:B}))}),v7=20;function a2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,v7),Math.floor(n)}const S7=[],C7={overflowY:"auto",overflowAnchor:"none"};function $7(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:i,itemHeight:s,fullHeight:c=!0,style:d,data:f,children:p,itemKey:g,virtual:h,direction:y,scrollWidth:C,component:b="div",onScroll:$,onVirtualScroll:S,onVisibleChange:w,innerProps:M,extraRender:x,styles:R,showScrollBar:O="optional",...N}=e,T=l.useCallback(He=>typeof g=="function"?g(He):He?.[g],[g]),[P,D,k,W]=p7(T),U=!!(h!==!1&&i&&s),G=l.useMemo(()=>Object.values(k.maps).reduce((He,ze)=>He+ze,0),[k.id,k.maps]),L=U&&f&&(Math.max(s*f.length,G)>i||!!C),H=y==="rtl",_=Q(n,{[`${n}-rtl`]:H},r),B=f||S7,I=l.useRef(),z=l.useRef(),V=l.useRef(),[A,j]=l.useState(0),[q,X]=l.useState(0),[K,J]=l.useState(!1),Z=()=>{J(!0)},oe=()=>{J(!1)},ne={getKey:T};function ie(He){j(ze=>{let We;typeof He=="function"?We=He(ze):We=He;const Re=Fe(We);return I.current.scrollTop=Re,Re})}const de=l.useRef({start:0,end:B.length}),le=l.useRef(),[fe]=u7(B,T);le.current=fe;const{scrollHeight:ge,start:re,end:ce,offset:he}=l.useMemo(()=>{if(!U)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!L)return{scrollHeight:z.current?.offsetHeight||0,start:0,end:B.length-1,offset:void 0};let He=0,ze,We,Re;const Ye=B.length;for(let Je=0;Je<Ye;Je+=1){const it=B[Je],ft=T(it),Ft=k.get(ft),Dt=He+(Ft===void 0?s:Ft);Dt>=A&&ze===void 0&&(ze=Je,We=He),Dt>A+i&&Re===void 0&&(Re=Je),He=Dt}return ze===void 0&&(ze=0,We=0,Re=Math.ceil(i/s)),Re===void 0&&(Re=B.length-1),Re=Math.min(Re+1,B.length-1),{scrollHeight:He,start:ze,end:Re,offset:We}},[L,U,A,B,W,i]);de.current.start=re,de.current.end=ce,l.useLayoutEffect(()=>{const He=k.getRecord();if(He.size===1){const ze=Array.from(He.keys())[0],We=He.get(ze),Re=B[re];if(Re&&We===void 0&&T(Re)===ze){const it=k.get(ze)-s;ie(ft=>ft+it)}}k.resetRecord()},[ge]);const[pe,Se]=l.useState({width:0,height:i}),Ie=He=>{Se({width:He.offsetWidth,height:He.offsetHeight})},Me=l.useRef(),we=l.useRef(),se=l.useMemo(()=>a2(pe.width,C),[pe.width,C]),be=l.useMemo(()=>a2(pe.height,ge),[pe.height,ge]),Ee=ge-i,Ne=l.useRef(Ee);Ne.current=Ee;function Fe(He){let ze=He;return Number.isNaN(Ne.current)||(ze=Math.min(ze,Ne.current)),ze=Math.max(ze,0),ze}const Ge=A<=0,et=A>=Ee,Oe=q<=0,_e=q>=C,Ve=NT(Ge,et,Oe,_e),Qe=()=>({x:H?-q:q,y:A}),De=l.useRef(Qe()),ve=ut(He=>{if(S){const ze={...Qe(),...He};(De.current.x!==ze.x||De.current.y!==ze.y)&&(S(ze),De.current=ze)}});function Ae(He,ze){const We=He;ze?(Ji.flushSync(()=>{X(We)}),ve()):ie(We)}function Ze(He){const{scrollTop:ze}=He.currentTarget;ze!==A&&ie(ze),$?.(He),ve()}const Be=He=>{let ze=He;const We=C?C-pe.width:0;return ze=Math.max(ze,0),ze=Math.min(ze,We),ze},Ue=ut((He,ze)=>{ze?(Ji.flushSync(()=>{X(We=>{const Re=We+(H?-He:He);return Be(Re)})}),ve()):ie(We=>We+He)}),[Pe,Xe]=d7(U,Ge,et,Oe,_e,!!C,Ue);g7(U,I,(He,ze,We,Re)=>{const Ye=Re;return Ve(He,ze,We)?!1:!Ye||!Ye._virtualHandled?(Ye&&(Ye._virtualHandled=!0),Pe({preventDefault(){},deltaX:He?ze:0,deltaY:He?0:ze}),!0):!1}),h7(L,I,He=>{ie(ze=>ze+He)}),Nt(()=>{function He(We){const Re=Ge&&We.detail<0,Ye=et&&We.detail>0;U&&!Re&&!Ye&&We.preventDefault()}const ze=I.current;return ze.addEventListener("wheel",Pe,{passive:!1}),ze.addEventListener("DOMMouseScroll",Xe,{passive:!0}),ze.addEventListener("MozMousePixelScroll",He,{passive:!1}),()=>{ze.removeEventListener("wheel",Pe),ze.removeEventListener("DOMMouseScroll",Xe),ze.removeEventListener("MozMousePixelScroll",He)}},[U,Ge,et]),Nt(()=>{if(C){const He=Be(q);X(He),ve({x:He})}},[pe.width,C]);const rt=()=>{Me.current?.delayHidden(),we.current?.delayHidden()},ot=b7(I,B,k,s,T,()=>D(!0),ie,rt);l.useImperativeHandle(t,()=>({nativeElement:V.current,getScrollInfo:Qe,scrollTo:He=>{function ze(We){return We&&typeof We=="object"&&("left"in We||"top"in We)}ze(He)?(He.left!==void 0&&X(Be(He.left)),ot(He.top)):ot(He)}})),Nt(()=>{if(w){const He=B.slice(re,ce+1);w(He,B)}},[re,ce,B]);const lt=f7(B,T,k,s),St=x?.({start:re,end:ce,virtual:L,offsetX:q,offsetY:he,rtl:H,getSize:lt}),Ct=s7(B,re,ce,C,q,P,p,ne);let qe=null;i&&(qe={[c?"height":"maxHeight"]:i,...C7},U&&(qe.overflowY="hidden",C&&(qe.overflowX="hidden"),K&&(qe.pointerEvents="none")));const at={};return H&&(at.dir="rtl"),l.createElement("div",Xn({ref:V,style:{...d,position:"relative"},className:_},at,N),l.createElement(Vr,{onResize:Ie},l.createElement(b,{className:`${n}-holder`,style:qe,ref:I,onScroll:Ze,onMouseEnter:rt},l.createElement(TT,{prefixCls:n,height:ge,offsetX:q,offsetY:he,scrollWidth:C,onInnerResize:D,ref:z,innerProps:M,rtl:H,extra:St},Ct))),L&&ge>i&&l.createElement(o2,{ref:Me,prefixCls:n,scrollOffset:A,scrollRange:ge,rtl:H,onScroll:Ae,onStartMove:Z,onStopMove:oe,spinSize:be,containerSize:pe.height,style:R?.verticalScrollBar,thumbStyle:R?.verticalScrollBarThumb,showScrollBar:O}),L&&C>pe.width&&l.createElement(o2,{ref:we,prefixCls:n,scrollOffset:q,scrollRange:C,rtl:H,onScroll:Ae,onStartMove:Z,onStopMove:oe,spinSize:se,containerSize:pe.width,horizontal:!0,style:R?.horizontalScrollBar,thumbStyle:R?.horizontalScrollBarThumb,showScrollBar:O}))}const IT=l.forwardRef($7);IT.displayName="List";function x7(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function iu(){return iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iu.apply(this,arguments)}function i2(e){return typeof e=="string"||typeof e=="number"}const w7=(e,t)=>{const{prefixCls:n,id:r,open:i,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:p,onPopupScroll:g,showScrollBar:h}=sl(),{maxCount:y,flattenOptions:C,onActiveValue:b,defaultActiveFirstOption:$,onSelect:S,menuItemSelectedIcon:w,rawValues:M,fieldNames:x,virtual:R,direction:O,listHeight:N,listItemHeight:T,optionRender:P,classNames:D,styles:k}=l.useContext(kS),W=`${n}-item`,U=rd(()=>C,[i,C],(ne,ie)=>ie[0]&&ne[1]!==ie[1]),G=l.useRef(null),L=l.useMemo(()=>s&&vv(y)&&M?.size>=y,[s,y,M?.size]),H=ne=>{ne.preventDefault()},_=ne=>{G.current?.scrollTo(typeof ne=="number"?{index:ne}:ne)},B=l.useCallback(ne=>c==="combobox"?!1:M.has(ne),[c,[...M].toString(),M.size]),I=(ne,ie=1)=>{const de=U.length;for(let le=0;le<de;le+=1){const fe=(ne+le*ie+de)%de,{group:ge,data:re}=U[fe]||{};if(!ge&&!re?.disabled&&(B(re.value)||!L))return fe}return-1},[z,V]=l.useState(()=>I(0)),A=(ne,ie=!1)=>{V(ne);const de={source:ie?"keyboard":"mouse"},le=U[ne];if(!le){b(null,-1,de);return}b(le.value,ne,de)};l.useEffect(()=>{A($!==!1?I(0):-1)},[U.length,d]);const j=l.useCallback(ne=>c==="combobox"?String(ne).toLowerCase()===d.toLowerCase():M.has(ne),[c,d,[...M].toString(),M.size]);l.useEffect(()=>{let ne;if(!s&&i&&M.size===1){const ie=Array.from(M)[0],de=U.findIndex(({data:le})=>d?String(le.value).startsWith(d):le.value===ie);de!==-1&&(A(de),ne=setTimeout(()=>{_(de)}))}return i&&G.current?.scrollTo(void 0),()=>clearTimeout(ne)},[i,d]);const q=ne=>{ne!==void 0&&S(ne,{selected:!M.has(ne)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:ie,ctrlKey:de}=ne;switch(ie){case nt.N:case nt.P:case nt.UP:case nt.DOWN:{let le=0;if(ie===nt.UP?le=-1:ie===nt.DOWN?le=1:x7()&&de&&(ie===nt.N?le=1:ie===nt.P&&(le=-1)),le!==0){const fe=I(z+le,le);_(fe),A(fe,!0)}break}case nt.TAB:case nt.ENTER:{const le=U[z];if(!le||le.data.disabled)return q(void 0);!L||M.has(le.value)?q(le.value):q(void 0),i&&ne.preventDefault();break}case nt.ESC:f(!1),i&&ne.stopPropagation()}},onKeyUp:()=>{},scrollTo:ne=>{_(ne)}})),U.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${W}-empty`,onMouseDown:H},p);const X=Object.keys(x).map(ne=>x[ne]),K=ne=>ne.label;function J(ne,ie){const{group:de}=ne;return{role:de?"presentation":"option",id:`${r}_list_${ie}`}}const Z=ne=>{const ie=U[ne];if(!ie)return null;const de=ie.data||{},{value:le}=de,{group:fe}=ie,ge=Pn(de,!0),re=K(ie);return ie?l.createElement("div",iu({"aria-label":typeof re=="string"&&!fe?re:null},ge,{key:ne},J(ie,ne),{"aria-selected":j(le)}),le):null},oe={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,R&&l.createElement("div",iu({},oe,{style:{height:0,width:0,overflow:"hidden"}}),Z(z-1),Z(z),Z(z+1)),l.createElement(IT,{itemKey:"key",ref:G,data:U,height:N,itemHeight:T,fullHeight:!1,onMouseDown:H,onScroll:g,virtual:R,direction:O,innerProps:R?null:oe,showScrollBar:h,className:D?.popup?.list,style:k?.popup?.list},(ne,ie)=>{const{group:de,groupOption:le,data:fe,label:ge,value:re}=ne,{key:ce}=fe;if(de){const Ve=fe.title??(i2(ge)?ge.toString():void 0);return l.createElement("div",{className:Q(W,`${W}-group`,fe.className),title:Ve},ge!==void 0?ge:ce)}const{disabled:he,title:pe,children:Se,style:Ie,className:Me,...we}=fe,se=tn(we,X),be=B(re),Ee=he||!be&&L,Ne=`${W}-option`,Fe=Q(W,Ne,Me,D?.popup?.listItem,{[`${Ne}-grouped`]:le,[`${Ne}-active`]:z===ie&&!Ee,[`${Ne}-disabled`]:Ee,[`${Ne}-selected`]:be}),Ge=K(ne),et=!w||typeof w=="function"||be,Oe=typeof Ge=="number"?Ge:Ge||re;let _e=i2(Oe)?Oe.toString():void 0;return pe!==void 0&&(_e=pe),l.createElement("div",iu({},Pn(se),R?{}:J(ne,ie),{"aria-selected":R?void 0:j(re),className:Fe,title:_e,onMouseMove:()=>{z===ie||Ee||A(ie)},onClick:()=>{Ee||q(re)},style:{...k?.popup?.listItem,...Ie}}),l.createElement("div",{className:`${Ne}-content`},typeof P=="function"?P(ne,{index:ie}):Oe),l.isValidElement(w)||be,et&&l.createElement(OT,{className:`${W}-option-state`,customizeIcon:w,customizeIconProps:{value:re,disabled:Ee,isSelected:be}},be?"✓":null))}))},E7=l.forwardRef(w7),M7=((e,t)=>{const n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(()=>{const{values:s,options:c}=n.current,d=e.map(g=>g.label===void 0?{...g,label:s.get(g.value)?.label}:g),f=new Map,p=new Map;return d.forEach(g=>{f.set(g.value,g),p.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=f,n.current.options=p,d},[e,t]),i=l.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,i]});function jy(e,t){return ET(e).join("").toUpperCase().includes(t)}const R7=((e,t,n,r,i)=>l.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:c,value:d}=t,f=[],p=typeof r=="function",g=n.toUpperCase(),h=p?r:(C,b)=>i&&i.length?i.some($=>jy(b[$],g)):b[s]?jy(b[c!=="children"?c:"label"],g):jy(b[d],g),y=p?C=>Sv(C):C=>C;return e.forEach(C=>{if(C[s]){if(h(n,y(C)))f.push(C);else{const $=C[s].filter(S=>h(n,y(S)));$.length&&f.push({...C,[s]:$})}return}h(n,y(C))&&f.push(C)}),f},[e,r,i,n,t]));function O7(e){const{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:n,...i}}function PT(e,t=!1){return dr(e).map((n,r)=>{if(!l.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:i},key:s,props:{children:c,...d}}=n;return t||!i?O7(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:PT(c)}}).filter(n=>n)}const T7=(e,t,n,r,i)=>l.useMemo(()=>{let s=e;!e&&(s=PT(t));const d=new Map,f=new Map,p=(h,y,C)=>{C&&typeof C=="string"&&h.set(y[C],y)},g=(h,y=!1)=>{for(let C=0;C<h.length;C+=1){const b=h[C];!b[n.options]||y?(d.set(b[n.value],b),p(f,b,n.label),r.forEach($=>{p(f,b,$)}),p(f,b,i)):g(b[n.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:f}},[e,t,n,r,i]);function l2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function N7(e,t,n){const{filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f}=t;return l.useMemo(()=>{const p=typeof e=="object",g={filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f,...p?e:{}};return[p||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,r,i,s,c,d,f])}function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rv.apply(this,arguments)}const I7=["inputValue"];function P7(e){return!e||typeof e!="object"}const z7=l.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:i="rc-select",backfill:s,fieldNames:c,showSearch:d,searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C,onSelect:b,onDeselect:$,onActive:S,popupMatchSelectWidth:w=!0,optionLabelProp:M,options:x,optionRender:R,children:O,defaultActiveFirstOption:N,menuItemSelectedIcon:T,virtual:P,direction:D,listHeight:k=200,listItemHeight:W=20,labelRender:U,value:G,defaultValue:L,labelInValue:H,onChange:_,maxCount:B,classNames:I,styles:z,...V}=e,A={searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C},[j,q]=N7(d,A,r),{filterOption:X,searchValue:K,optionFilterProp:J,filterSort:Z,onSearch:oe,autoClearSearchValue:ne=!0}=q,ie=l.useMemo(()=>J?Array.isArray(J)?J:[J]:[],[J]),de=Ko(n),le=Ev(r),fe=!!(!x&&O),ge=l.useMemo(()=>X===void 0&&r==="combobox"?!1:X,[X,r]),re=l.useMemo(()=>CT(c,fe),[JSON.stringify(c),fe]),[ce,he]=Yt("",K),pe=ce||"",Se=T7(x,O,re,ie,M),{valueOptions:Ie,labelOptions:Me,options:we}=Se,se=l.useCallback(Re=>ET(Re).map(Je=>{let it,ft,Ft,Dt;P7(Je)?it=Je:(ft=Je.label,it=Je.value);const $t=Ie.get(it);return $t&&(ft===void 0&&(ft=$t?.[M||re.label]),Ft=$t?.disabled,Dt=$t?.title),{label:ft,value:it,key:it,disabled:Ft,title:Dt}}),[re,M,Ie]),[be,Ee]=Yt(L,G),Ne=l.useMemo(()=>{const Ye=se(le&&be===null?[]:be);return r==="combobox"&&W9(Ye[0]?.value)?[]:Ye},[be,se,r,le]),[Fe,Ge]=M7(Ne,Ie),et=l.useMemo(()=>{if(!r&&Fe.length===1){const Re=Fe[0];if(Re.value===null&&(Re.label===null||Re.label===void 0))return[]}return Fe.map(Re=>({...Re,label:(typeof U=="function"?U(Re):Re.label)??Re.value}))},[r,Fe,U]),Oe=l.useMemo(()=>new Set(Fe.map(Re=>Re.value)),[Fe]);l.useEffect(()=>{if(r==="combobox"){const Re=Fe[0]?.value;he(k9(Re)?String(Re):"")}},[Fe]);const _e=l2((Re,Ye)=>{const Je=Ye??Re;return{[re.value]:Re,[re.label]:Je}}),Ve=l.useMemo(()=>{if(r!=="tags")return we;const Re=[...we],Ye=Je=>Ie.has(Je);return[...Fe].sort((Je,it)=>Je.value<it.value?-1:1).forEach(Je=>{const it=Je.value;Ye(it)||Re.push(_e(it,Je.label))}),Re},[_e,we,Ie,Fe,r]),Qe=R7(Ve,re,pe,ge,ie),De=l.useMemo(()=>{const Re=Ye=>ie.length?ie.some(Je=>Ye?.[Je]===pe):Ye?.value===pe;return r!=="tags"||!pe||Qe.some(Ye=>Re(Ye))||Qe.some(Ye=>Ye[re.value]===pe)?Qe:[_e(pe),...Qe]},[_e,ie,r,Qe,pe,re]),ve=Re=>[...Re].sort((Je,it)=>Z(Je,it,{searchValue:pe})).map(Je=>Array.isArray(Je.options)?{...Je,options:Je.options.length>0?ve(Je.options):Je.options}:Je),Ae=l.useMemo(()=>Z?ve(De):De,[De,Z,pe]),Ze=l.useMemo(()=>H9(Ae,{fieldNames:re,childrenAsData:fe}),[Ae,re,fe]),Be=Re=>{const Ye=se(Re);if(Ee(Ye),_&&(Ye.length!==Fe.length||Ye.some((Je,it)=>Fe[it]?.value!==Je?.value))){const Je=H?Ye.map(({label:ft,value:Ft})=>({label:ft,value:Ft})):Ye.map(ft=>ft.value),it=Ye.map(ft=>Sv(Ge(ft.value)));_(le?Je:Je[0],le?it:it[0])}},[Ue,Pe]=l.useState(null),[Xe,rt]=l.useState(0),ot=N!==void 0?N:r!=="combobox",lt=l.useRef(),St=l.useCallback((Re,Ye,{source:Je="keyboard"}={})=>{rt(Ye),s&&r==="combobox"&&Re!==null&&Je==="keyboard"&&Pe(String(Re));const it=Promise.resolve().then(()=>{lt.current===it&&S?.(Re)});lt.current=it},[s,r,S]),Ct=(Re,Ye,Je)=>{const it=()=>{const ft=Ge(Re);return[H?{label:ft?.[re.label],value:Re}:Re,Sv(ft)]};if(Ye&&b){const[ft,Ft]=it();b(ft,Ft)}else if(!Ye&&$&&Je!=="clear"){const[ft,Ft]=it();$(ft,Ft)}},qe=l2((Re,Ye)=>{let Je;const it=le?Ye.selected:!0;it?Je=le?[...Fe,Re]:[Re]:Je=Fe.filter(ft=>ft.value!==Re),Be(Je),Ct(Re,it),r==="combobox"?Pe(""):(!Ev||ne)&&(he(""),Pe(""))}),at=(Re,Ye)=>{Be(Re);const{type:Je,values:it}=Ye;(Je==="remove"||Je==="clear")&&it.forEach(ft=>{Ct(ft.value,!1,Je)})},He=(Re,Ye)=>{if(he(Re),Pe(null),Ye.source==="submit"){const Je=(Re||"").trim();if(Je){const it=Array.from(new Set([...Oe,Je]));Be(it),Ct(Je,!0),he("")}return}Ye.source!=="blur"&&(r==="combobox"&&Be(Re),oe?.(Re))},ze=Re=>{let Ye=Re;r!=="tags"&&(Ye=Re.map(it=>Me.get(it)?.value).filter(it=>it!==void 0));const Je=Array.from(new Set([...Oe,...Ye]));Be(Je),Je.forEach(it=>{Ct(it,!0)})},We=l.useMemo(()=>({...Se,flattenOptions:Ze,onActiveValue:St,defaultActiveFirstOption:ot,onSelect:qe,menuItemSelectedIcon:T,rawValues:Oe,fieldNames:re,virtual:P!==!1&&w!==!1,direction:D,listHeight:k,listItemHeight:W,childrenAsData:fe,maxCount:B,optionRender:R,classNames:I,styles:z}),[B,Se,Ze,St,ot,qe,T,Oe,re,P,w,D,k,W,fe,R,I,z]);return l.createElement(kS.Provider,{value:We},l.createElement(i7,Rv({},V,{id:de,prefixCls:i,ref:t,omitDomProps:I7,mode:r,classNames:I,styles:z,displayValues:et,onDisplayValuesChange:at,maxCount:B,direction:D,showSearch:j,searchValue:pe,onSearch:He,autoClearSearchValue:ne,onSearchSplit:ze,popupMatchSelectWidth:w,OptionList:E7,emptyOptions:!Ze.length,activeValue:Ue,activeDescendantId:`${de}_list_${Xe}`})))}),YS=z7;YS.Option=qS;YS.OptGroup=WS;const el=(e,t,n)=>Q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),As=(e,t)=>t||e,A7=()=>{const[,e]=Wr(),[t]=oo("Empty"),r=new en(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?.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"}))))},D7=()=>{const[,e]=Wr(),[t]=oo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:c,shadowColor:d,contentColor:f}=l.useMemo(()=>({borderColor:new en(n).onBackground(s).toHexString(),shadowColor:new en(r).onBackground(s).toHexString(),contentColor:new en(i).onBackground(s).toHexString()}),[n,r,i,s]);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?.description||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:d,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:f}))))},j7=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:s,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:s,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},_7=Pt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Tt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return j7(i)}),zT=l.createElement(A7,null),AT=l.createElement(D7,null),Vi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:i,description:s,children:c,imageStyle:d,style:f,classNames:p,styles:g,...h}=e,{getPrefixCls:y,direction:C,className:b,style:$,classNames:S,styles:w,image:M}=It("empty"),x=y("empty",r),[R,O]=_7(x),[N,T]=Lt([S,p],[w,g],{props:e}),[P]=oo("Empty"),D=typeof s<"u"?s:P?.description,k=typeof D=="string"?D:"empty",W=i??M??zT;let U=null;return typeof W=="string"?U=l.createElement("img",{draggable:!1,alt:k,src:W}):U=W,l.createElement("div",{className:Q(R,O,x,b,{[`${x}-normal`]:W===AT,[`${x}-rtl`]:C==="rtl"},t,n,N.root),style:{...T.root,...$,...f},...h},l.createElement("div",{className:Q(`${x}-image`,N.image),style:{...d,...T.image}},U),D&&l.createElement("div",{className:Q(`${x}-description`,N.description),style:T.description},D),c&&l.createElement("div",{className:Q(`${x}-footer`,N.footer),style:T.footer},c))};Vi.PRESENTED_IMAGE_DEFAULT=zT;Vi.PRESENTED_IMAGE_SIMPLE=AT;const DT=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(Vi,{image:Vi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Vi,{image:Vi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(Vi,null)}},Ds=(e,t,n)=>{const{variant:r,[e]:i}=l.useContext(dt),s=l.useContext(B_),c=i?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=d8.includes(d);return[d,f]},H7=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function B7(e,t){return e||H7(t)}const s2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},L7=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Zt(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,[`
180
+ ${i}${d}bottomLeft,
181
+ ${s}${d}bottomLeft
182
+ `]:{animationName:Tp},[`
183
+ ${i}${d}topLeft,
184
+ ${s}${d}topLeft,
185
+ ${i}${d}topRight,
186
+ ${s}${d}topRight
187
+ `]:{animationName:Ip},[`${c}${d}bottomLeft`]:{animationName:Np},[`
188
+ ${c}${d}topLeft,
189
+ ${c}${d}topRight
190
+ `]:{animationName:Pp},"&-hidden":{display:"none"},[r]:{...s2(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...$o},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...s2(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Xo(e,"slide-up"),Xo(e,"slide-down"),ws(e,"move-up"),ws(e,"move-down")]},V7=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},c2=4,F7=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:c,lineWidth:d,colorIcon:f,colorIconHover:p,inputPaddingHorizontalBase:g}=e;return{"&-multiple":{"--select-multi-item-background":e.multipleItemBg,"--select-multi-item-border-color":"transparent","--select-multi-item-border-radius":e.borderRadiusSM,"--select-multi-item-height":e.multipleItemHeight,"--select-multi-padding-base":"calc((var(--select-height) - var(--select-multi-item-height)) / 2)","--select-multi-padding-vertical":`calc(var(--select-multi-padding-base) - ${c} - ${d})`,"--select-multi-item-padding-horizontal":`calc(${g} - var(--select-multi-padding-vertical) - ${d} * 2)`,paddingBlock:"var(--select-multi-padding-vertical)",paddingInlineStart:`calc(var(--select-multi-padding-base) - ${d})`,[`${t}-prefix`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:"var(--select-line-height)",insetInlineStart:"var(--select-multi-item-padding-horizontal)",width:"calc(100% - var(--select-multi-item-padding-horizontal))",top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:"var(--select-font-size)"},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${c2}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
191
+ ${t}-content-item-suffix:first-child`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-selection-item`]:{lineHeight:`calc(var(--select-multi-item-height) - ${d} * 2)`,border:`${d} solid var(--select-multi-item-border-color)`,display:"flex",marginBlock:c,marginInlineEnd:n(c).mul(2).equal(),background:"var(--select-multi-item-background)",borderRadius:"var(--select-multi-item-border-radius)",paddingInlineStart:i,paddingInlineEnd:s,transition:["height","line-height","padding"].map(h=>`${h} ${e.motionDurationSlow}`).join(","),"&-content":{...$o,marginInlineEnd:s},"&-remove":{...Ns(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}},[`${t}-input`]:{lineHeight:n(c).mul(2).add("var(--select-multi-item-height)").equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:c2,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{"--select-multi-item-height":e.multipleItemHeightSM,"--select-multi-item-border-radius":e.borderRadiusXS},[`&${t}-lg`]:{"--select-multi-item-height":e.multipleItemHeightLG,"--select-multi-item-border-radius":e.borderRadius},[`&${t}-filled`]:{"--select-multi-item-border-color":e.colorSplit,"--select-multi-item-background":e.colorBgContainer,[`&${t}-disabled`]:{"--select-multi-item-border-color":"transparent"}}}}},_y=(e,t)=>{const{componentCls:n}=e,{border:r,borderHover:i,borderActive:s,borderOutline:c}=t,d=t.background||e.selectorBg||e.colorBgContainer;return{"--select-border-color":r,"--select-background":d,"--select-color":t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{"--select-border-color":i,"--select-background":t.backgroundHover||d},[`&${n}-focused`]:{"--select-border-color":s,"--select-background":t.backgroundActive||d,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},Wf=(e,t,n,r={},i={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[_y(e,n),{[`&${c}-status-error`]:_y(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:_y(e,{...n,color:i.color||e.colorWarning,...i})},s]}},k7=e=>{const{componentCls:t,calc:n,fontHeight:r,controlHeight:i,iconCls:s}=e;return{[t]:[{"--select-border-radius":e.borderRadius,"--select-border-color":"#000","--select-border-size":e.lineWidth,"--select-background":e.colorBgContainer,"--select-font-size":e.fontSize,"--select-line-height":e.lineHeight,"--select-font-height":r,"--select-color":e.colorText,"--select-height":i,"--select-padding-horizontal":n(e.paddingSM).sub(e.lineWidth).equal(),"--select-padding-vertical":"calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",...Zt(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:"var(--select-border-radius)",borderWidth:"var(--select-border-size)",borderStyle:e.lineType,borderColor:"var(--select-border-color)",background:"var(--select-background)",fontSize:"var(--select-font-size)",lineHeight:"var(--select-line-height)",color:"var(--select-color)",paddingInline:"var(--select-padding-horizontal)",paddingBlock:"var(--select-padding-vertical)",[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...$o,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:n(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...$o,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`&-open ${t}-content-value`]:{color:e.colorTextPlaceholder},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[s]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{"--select-height":e.controlHeightSM,"--select-padding-horizontal":n(e.paddingXS).sub(e.lineWidth).equal(),"--select-border-radius":e.borderRadiusSM},"&-lg":{"--select-height":e.controlHeightLG,"--select-font-size":e.fontSizeLG,"--select-line-height":e.lineHeightLG,"--select-font-height":e.fontHeightLG,"--select-border-radius":e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:"calc(var(--select-padding-vertical) * -1)",lineHeight:"calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"},[`${t}-content`]:{alignSelf:"center"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},F7(e),Wf(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),Wf(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Wf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Wf(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),V7(e)]}},W7=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:s,controlHeightLG:c,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:p,colorText:g,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:C,colorBgContainer:b,colorFillSecondary:$,colorBgContainerDisabled:S,colorTextDisabled:w,colorPrimaryHover:M,colorPrimary:x,controlOutline:R}=e,O=d*2,N=r*2,T=Math.min(i-O,i-N),P=Math.min(s-O,s-N),D=Math.min(c-O,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:p+50,optionSelectedColor:g,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:C,optionPadding:`${(i-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:c,multipleItemBg:$,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:P,multipleItemHeightLG:D,multipleSelectorBgDisabled:S,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:M,activeBorderColor:x,activeOutlineColor:R,selectAffixPadding:d}},q7=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Zt(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...$o,[`> ${t}-typography`]:{display:"inline"}},[`${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()}}}}}},Y7=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},q7(e),L7(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(e,{focusElCls:`${t}-focused`})]},U7=Pt("Select",(e,{rootPrefixCls:t})=>{const n=Tt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Y7(n),k7(n)]},W7,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var G7={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"};function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(this,arguments)}const X7=(e,t)=>l.createElement(gt,Ov({},e,{ref:t,icon:G7})),cl=l.forwardRef(X7);var K7={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"};function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}const Q7=(e,t)=>l.createElement(gt,Tv({},e,{ref:t,icon:K7})),Z7=l.forwardRef(Q7);var J7={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"};function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nv.apply(this,arguments)}const eH=(e,t)=>l.createElement(gt,Nv({},e,{ref:t,icon:J7})),jT=l.forwardRef(eH);function _T({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:s,hasFeedback:c,showSuffixIcon:d,feedbackIcon:f,showArrow:p,componentName:g}){const h=t??l.createElement(Ps,null),y=S=>e===null&&!c&&!p?null:l.createElement(l.Fragment,null,d!==!1&&S,c&&f);let C=null;e!==void 0?C=y(e):i?C=y(l.createElement(Mp,{spin:!0})):C=({open:S,showSearch:w})=>y(S&&w?l.createElement(jT,null):l.createElement(Z7,null));let b=null;n!==void 0?b=n:s?b=l.createElement(cl,null):b=null;let $=null;return r!==void 0?$=r:$=l.createElement(qr,null),{clearIcon:h,suffixIcon:C,itemIcon:b,removeIcon:$}}function tH(e){return ae.useMemo(()=>{if(e)return(...t)=>ae.createElement(xa,{space:!0},e.apply(void 0,t))},[e])}function nH(e,t){return t!==void 0?t:e!==null}const HT="SECRET_COMBOBOX_MODE_DO_NOT_USE",rH=(e,t)=>{const{prefixCls:n,bordered:r,className:i,rootClassName:s,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:p=256,placement:g,listItemHeight:h,size:y,disabled:C,notFoundContent:b,status:$,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:M,direction:x,style:R,allowClear:O,variant:N,popupStyle:T,dropdownStyle:P,transitionName:D,tagRender:k,maxCount:W,prefix:U,dropdownRender:G,popupRender:L,onDropdownVisibleChange:H,onOpenChange:_,styles:B,classNames:I,...z}=e,{getPopupContainer:V,getPrefixCls:A,renderEmpty:j,direction:q,virtual:X,popupMatchSelectWidth:K,popupOverflow:J}=l.useContext(dt),{showSearch:Z,style:oe,styles:ne,className:ie,classNames:de}=It("select"),[,le]=Wr(),fe=h??le?.controlHeight,ge=A("select",n),re=A(),ce=x??q,{compactSize:he,compactItemClassnames:pe}=Ma(ge,ce),[Se,Ie]=Ds("select",N,r),Me=ar(ge),[we,se]=U7(ge,Me),be=l.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===HT?"combobox":Ye},[e.mode]),Ee=be==="multiple"||be==="tags",Ne=nH(e.suffixIcon,e.showArrow),Fe=M??w??K,Ge=tH(L||G),et=_||H,{status:Oe,hasFeedback:_e,isFormItemInput:Ve,feedbackIcon:Qe}=l.useContext(Or),De=As(Oe,$);let ve;b!==void 0?ve=b:be==="combobox"?ve=null:ve=j?.("Select")||l.createElement(DT,{componentName:"Select"});const{suffixIcon:Ae,itemIcon:Ze,removeIcon:Be,clearIcon:Ue}=_T({...z,multiple:Ee,hasFeedback:_e,feedbackIcon:Qe,showSuffixIcon:Ne,componentName:"Select"}),Pe=O===!0?{clearIcon:Ue}:O,Xe=tn(z,["suffixIcon","itemIcon"]),rt=fr(Ye=>y??he??Ye),ot=l.useContext(kr),lt=C??ot,St={...e,variant:Se,status:De,disabled:lt,size:rt},[Ct,qe]=Lt([de,I],[ne,B],{props:St},{popup:{_default:"root"}}),at=Q(Ct.popup?.root,d,f,{[`${ge}-dropdown-${ce}`]:ce==="rtl"},s,se,Me,we),He={...qe.popup?.root,...T??P},ze=Q({[`${ge}-lg`]:rt==="large",[`${ge}-sm`]:rt==="small",[`${ge}-rtl`]:ce==="rtl",[`${ge}-${Se}`]:Ie,[`${ge}-in-form-item`]:Ve},el(ge,De,_e),pe,ie,i,Ct.root,s,se,Me,we),We=l.useMemo(()=>g!==void 0?g:ce==="rtl"?"bottomRight":"bottomLeft",[g,ce]),[Re]=fi("SelectLike",qe.popup?.root?.zIndex??He?.zIndex);return l.createElement(YS,{ref:t,virtual:X,classNames:Ct,styles:qe,showSearch:Z,...Xe,style:{...qe.root,...oe,...R},popupMatchSelectWidth:Fe,transitionName:Go(re,"slide-up",D),builtinPlacements:B7(S,J),listHeight:p,listItemHeight:fe,mode:be,prefixCls:ge,placement:We,direction:ce,prefix:U,suffixIcon:Ae,menuItemSelectedIcon:Ze,removeIcon:Be,allowClear:Pe,notFoundContent:ve,className:ze,getPopupContainer:c||V,popupClassName:at,disabled:lt,popupStyle:{...qe.popup?.root,...He,zIndex:Re},maxCount:Ee?W:void 0,tagRender:Ee?k:void 0,popupRender:Ge,onPopupVisibleChange:et})},Lr=l.forwardRef(rH),oH=Ap(Lr,"popupAlign");Lr.SECRET_COMBOBOX_MODE_DO_NOT_USE=HT;Lr.Option=qS;Lr.OptGroup=WS;Lr._InternalPanelDoNotUseOrYouWillBeFired=oH;const tl=["xxl","xl","lg","md","sm","xs"],aH=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)`}),iH=e=>{const t=e,n=[].concat(tl).reverse();return n.forEach((r,i)=>{const s=r.toUpperCase(),c=`screen${s}Min`,d=`screen${s}`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);if(i<n.length-1){const f=`screen${s}Max`;if(!(t[d]<=t[f]))throw new Error(`${d}<=${f} fails : !(${t[d]}<=${t[f]})`);const g=`screen${n[i+1].toUpperCase()}Min`;if(!(t[f]<=t[g]))throw new Error(`${f}<=${g} fails : !(${t[f]}<=${t[g]})`)}}),e},lH=()=>{const[,e]=Wr(),t=aH(iH(e));return ae.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return i=s,n.forEach(c=>c(i)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(i),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,c])=>{const d=({matches:p})=>{this.dispatch({...i,[s]:p})},f=window.matchMedia(c);typeof f?.addEventListener=="function"&&f.addEventListener("change",d),this.matchHandlers[c]={mql:f,listener:d},d(f)})},unregister(){Object.values(t).forEach(s=>{const c=this.matchHandlers[s];typeof c?.mql?.removeEventListener=="function"&&c.mql.removeEventListener("change",c?.listener)}),n.clear()}}},[t])};function Dp(e=!0,t={}){const n=l.useRef(t),[,r]=F5(),i=lH();return Nt(()=>{const s=i.subscribe(c=>{n.current=c,e&&r()});return()=>i.unsubscribe(s)},[]),n.current}const Ms=e=>e?typeof e=="function"?e():e:null,US=e=>{const{children:t,prefixCls:n,id:r,classNames:i,styles:s,className:c,style:d}=e;return l.createElement("div",{id:r,className:Q(`${n}-container`,i?.container,c),style:{...s?.container,...d},role:"tooltip"},typeof t=="function"?t():t)},ts={shiftX:64,adjustY:1},ns={adjustX:1,shiftY:!0},yo=[0,0],sH={left:{points:["cr","cl"],overflow:ns,offset:[-4,0],targetOffset:yo},right:{points:["cl","cr"],overflow:ns,offset:[4,0],targetOffset:yo},top:{points:["bc","tc"],overflow:ts,offset:[0,-4],targetOffset:yo},bottom:{points:["tc","bc"],overflow:ts,offset:[0,4],targetOffset:yo},topLeft:{points:["bl","tl"],overflow:ts,offset:[0,-4],targetOffset:yo},leftTop:{points:["tr","tl"],overflow:ns,offset:[-4,0],targetOffset:yo},topRight:{points:["br","tr"],overflow:ts,offset:[0,-4],targetOffset:yo},rightTop:{points:["tl","tr"],overflow:ns,offset:[4,0],targetOffset:yo},bottomRight:{points:["tr","br"],overflow:ts,offset:[0,4],targetOffset:yo},rightBottom:{points:["bl","br"],overflow:ns,offset:[4,0],targetOffset:yo},bottomLeft:{points:["tl","bl"],overflow:ts,offset:[0,4],targetOffset:yo},leftBottom:{points:["br","bl"],overflow:ns,offset:[-4,0],targetOffset:yo}};function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(this,arguments)}const cH=l.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:s="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:f,motion:p,placement:g="right",align:h={},destroyOnHidden:y=!1,defaultVisible:C,getTooltipContainer:b,arrowContent:$,overlay:S,id:w,showArrow:M=!0,classNames:x,styles:R,...O}=e,N=Ko(w),T=l.useRef(null);l.useImperativeHandle(t,()=>T.current);const P={...O};"visible"in e&&(P.popupVisible=e.visible);const D=l.useMemo(()=>{if(!M)return!1;const W=M===!0?{}:M;return{...W,className:Q(W.className,x?.arrow),style:{...W.style,...R?.arrow},content:W.content??$}},[M,x?.arrow,R?.arrow,$]),k=({open:W})=>{const U=l.Children.only(c),G={"aria-describedby":S&&W?N:void 0};return l.cloneElement(U,G)};return l.createElement(ud,Iv({popupClassName:x?.root,prefixCls:s,popup:l.createElement(US,{key:"content",prefixCls:s,id:N,classNames:x,styles:R},S),action:n,builtinPlacements:sH,popupPlacement:g,ref:T,popupAlign:h,getPopupContainer:b,onOpenChange:d,afterOpenChange:f,popupMotion:p,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:i,popupStyle:R?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:R?.uniqueContainer},P),k)});function jp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,s=0,c=i,d=r*1/Math.sqrt(2),f=i-r*(1-1/Math.sqrt(2)),p=i-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-p,y=g,C=2*i-d,b=f,$=2*i-s,S=c,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),M=r*(Math.sqrt(2)-1),x=`polygon(${M}px 100%, 50% ${M}px, ${2*i-M}px 100%, ${M}px 100%)`,R=`path('M ${s} ${c} A ${r} ${r} 0 0 0 ${d} ${f} L ${p} ${g} A ${n} ${n} 0 0 1 ${h} ${y} L ${C} ${b} A ${r} ${r} 0 0 0 ${$} ${S} Z')`;return{arrowShadowWidth:w,arrowPath:R,arrowPolygon:x}}const BT=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:s,arrowShadowWidth:c,borderRadiusXS:d,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},LT=8;function _p(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?LT:r}}function qf(e,t){return e?t:{}}function GS(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:c}=e,{arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...BT(e,t,i),"&:before":{background:t}}],...qf(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,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% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...qf(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,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% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...qf(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},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:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}}),...qf(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},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:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}})}}}function uH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const c={...s,...i};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const u2={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"]}},dH={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"]}},fH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function VT(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},p=_p({contentRadius:s,limitVerticalRadius:!0});return Object.keys(u2).forEach(g=>{const y={...r&&dH[g]||u2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,fH.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-d-i;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+i;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-i;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+i;break}if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-p.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=p.arrowOffsetHorizontal*2-d;break}y.overflow=uH(g,p,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const XS=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return ae.useMemo(()=>{const r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},mH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:s,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:f,boxShadowSecondary:p,paddingSM:g,paddingXS:h,arrowOffsetHorizontal:y,sizePopupArrow:C}=e,b=t(c).add(C).add(y).equal(),S={minWidth:t(c).mul(2).add(C).equal(),minHeight:f,padding:`${te(e.calc(g).div(2).equal())} ${te(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:c,boxShadow:p,boxSizing:"border-box"},w={"--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Zt(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...w,"&-hidden":{display:"none"},"--antd-arrow-background-color":s,[`${n}-container`]:[S,FO(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,LT)}},[`${n}-content`]:{position:"relative"},...xp(e,(M,{darkColor:x})=>({[`&${n}-${M}`]:{[`${n}-container`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}})),"&-rtl":{direction:"rtl"}}},GS(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...S,...w,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},pH=e=>({zIndexPopup:e.zIndexPopupBase+70,..._p({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...jp(Tt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),FT=(e,t,n=!0)=>Pt("Tooltip",i=>{const{borderRadius:s,colorTextLightSolid:c,colorBgSpotlight:d}=i,f=Tt(i,{tooltipMaxWidth:250,tooltipColor:c,tooltipBorderRadius:s,tooltipBg:d});return[mH(f),md(i,"zoom-big-fast")]},pH,{resetStyle:!1,injectStyle:n})(e,t),gH=si.map(e=>`${e}-inverse`),hH=["success","processing","error","default","warning"];function Hp(e,t=!0){return t?[].concat(xn(gH),xn(si)).includes(e):si.includes(e)}function yH(e){return hH.includes(e)}function kT(e,t){const n=Hp(t),r=Q({[`${e}-${t}`]:t&&n}),i={},s={},c=yj(t).toRgb(),f=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=f,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:s}}const bH=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:s,overlayInnerStyle:c,classNames:d,styles:f}=e,{getPrefixCls:p}=l.useContext(dt),g=p("tooltip",t),h=ar(g),[y,C]=FT(g,h),b=kT(g,s),$=b.arrowStyle,S=l.useMemo(()=>({container:{...c,...b.overlayStyle}}),[c,b.overlayStyle]),w={...e,placement:r},[M,x]=Lt([d],[S,f],{props:w}),R=Q(h,y,C,g,`${g}-pure`,`${g}-placement-${r}`,n,b.className);return l.createElement("div",{className:R,style:$},l.createElement("div",{className:`${g}-arrow`}),l.createElement(US,{...e,className:y,prefixCls:g,classNames:M,styles:x},i))},vH=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:i,color:s,children:c,afterOpenChange:d,arrow:f,destroyTooltipOnHide:p,destroyOnHidden:g,title:h,overlay:y,trigger:C,builtinPlacements:b,autoAdjustOverflow:$=!0,motion:S,getPopupContainer:w,placement:M="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,rootClassName:O,styles:N,classNames:T,onOpenChange:P,overlayInnerStyle:D,overlayStyle:k,overlayClassName:W,...U}=e,[,G]=Wr(),{getPopupContainer:L,getPrefixCls:H,direction:_,className:B,style:I,classNames:z,styles:V,arrow:A,trigger:j}=It("tooltip"),q=XS(f,A),X=q.show,K=C||j||"hover",J=l.useRef(null),Z=()=>{J.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:Z,nativeElement:J.current?.nativeElement,popupElement:J.current?.popupElement}));const[oe,ne]=Yt(e.defaultOpen??!1,e.open),ie=!h&&!y&&h!==0,de=Ae=>{ne(ie?!1:Ae),!ie&&P&&P(Ae)},le=l.useMemo(()=>b||VT({arrowPointAtCenter:q?.pointAtCenter??!1,autoAdjustOverflow:$,arrowWidth:X?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0}),[q,b,G,X,$]),fe=l.useMemo(()=>h===0?h:y||h||"",[y,h]),ge=l.createElement(xa,{space:!0},typeof fe=="function"?fe():fe),re={...e,trigger:K,color:s,placement:M,builtinPlacements:b,openClassName:r,arrow:f,autoAdjustOverflow:$,getPopupContainer:w,children:c,destroyTooltipOnHide:p,destroyOnHidden:g},[ce,he]=Lt([z,T],[V,N],{props:re}),pe=H("tooltip",n),Se=H(),Ie=e["data-popover-inject"];let Me=oe;!("open"in e)&&ie&&(Me=!1);const we=l.isValidElement(c)&&!dO(c)?c:l.createElement("span",null,c),se=we.props,be=!se.className||typeof se.className=="string"?Q(se.className,r||`${pe}-open`):se.className,Ee=ar(pe),[Ne,Fe]=FT(pe,Ee,!Ie),Ge=kT(pe,s),et=Ge.arrowStyle,Oe=Q(Ee,Ne,Fe),_e=Q(W,{[`${pe}-rtl`]:_==="rtl"},Ge.className,O,Oe,B,ce.root),[Ve,Qe]=fi("Tooltip",U.zIndex),De={...he.container,...D,...Ge.overlayStyle},ve=l.createElement(cH,{unique:!0,...U,trigger:K,zIndex:Ve,showArrow:X,placement:M,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:pe,classNames:{root:_e,container:ce.container,arrow:ce.arrow,uniqueContainer:Q(Oe,ce.container)},styles:{root:{...et,...he.root,...I,...k},container:De,uniqueContainer:De,arrow:he.arrow},getTooltipContainer:w||i||L,ref:J,builtinPlacements:le,overlay:ge,visible:Me,onVisibleChange:de,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:Go(Se,"zoom-big-fast",typeof S?.motionName=="string"?S?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!p},Me?nr(we,{className:be}):we);return l.createElement(ld.Provider,{value:Qe},ve)}),ur=vH;ur._InternalPanelDoNotUseOrYouWillBeFired=bH;ur.UniqueProvider=wO;const SH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:s,boxShadowSecondary:c,colorTextHeading:d,borderRadiusLG:f,zIndexPopup:p,titleMarginBottom:g,colorBgElevated:h,popoverBg:y,titleBorderBottom:C,innerContentPadding:b,titlePadding:$}=e;return[{[t]:{...Zt(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,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":h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:f,boxShadow:c,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:g,color:d,fontWeight:i,borderBottom:C,padding:$},[`${t}-content`]:{color:n,padding:b}}},GS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},CH=e=>{const{componentCls:t}=e;return{[t]:si.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},$H=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:s,zIndexPopupBase:c,borderRadiusLG:d,marginXS:f,lineType:p,colorSplit:g,paddingSM:h}=e,y=n-r,C=y/2,b=y/2-t,$=i;return{titleMinWidth:177,zIndexPopup:c+30,...jp(e),..._p({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${C}px ${$}px ${b}px`:0,titleBorderBottom:s?`${t}px ${p} ${g}`:"none",innerContentPadding:s?`${h}px ${$}px`:0}},WT=Pt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Tt(e,{popoverBg:t,popoverColor:n});return[SH(r),CH(r),md(r,"zoom-big")]},$H,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),qT=e=>{const{title:t,content:n,prefixCls:r,classNames:i,styles:s}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:Q(`${r}-title`,i?.title),style:s?.title},t),n&&l.createElement("div",{className:Q(`${r}-content`,i?.content),style:s?.content},n))},xH=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:s="top",title:c,content:d,children:f,classNames:p,styles:g}=e,h=Ms(c),y=Ms(d),C={...e,placement:s},[b,$]=Lt([p],[g],{props:C}),S=Q(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:S,style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(US,{...e,className:t,prefixCls:n,classNames:b,styles:$},f||l.createElement(qT,{prefixCls:n,title:h,content:y,classNames:b,styles:$})))},YT=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=l.useContext(dt),s=i("popover",t),[c,d]=WT(s);return l.createElement(xH,{...r,prefixCls:s,hashId:c,className:Q(n,d)})},wH=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:i,overlayClassName:s,placement:c="top",trigger:d,children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:y={},styles:C,classNames:b,motion:$,arrow:S,...w}=e,{getPrefixCls:M,className:x,style:R,classNames:O,styles:N,arrow:T,trigger:P}=It("popover"),D=M("popover",n),[k,W]=WT(D),U=M(),G=XS(S,T),L=d||P||"hover",H={...e,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:y,styles:C,classNames:b},[_,B]=Lt([O,b],[N,C],{props:H}),I=Q(s,k,W,x,_.root),[z,V]=Yt(e.defaultOpen??!1,e.open),A=(J,Z)=>{V(J),h?.(J,Z)},j=J=>{J.keyCode===nt.ESC&&A(!1,J)},q=J=>{A(J)},X=Ms(r),K=Ms(i);return l.createElement(ur,{unique:!1,arrow:G,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,...w,prefixCls:D,classNames:{root:I,container:_.container,arrow:_.arrow},styles:{root:{...B.root,...R,...y},container:B.container,arrow:B.arrow},ref:t,open:z,onOpenChange:q,overlay:X||K?l.createElement(qT,{prefixCls:D,title:X,content:K,classNames:_,styles:B}):null,motion:{motionName:Go(U,"zoom-big",typeof $?.motionName=="string"?$?.motionName:void 0)},"data-popover-inject":!0},nr(f,{onKeyDown:J=>{l.isValidElement(f)&&f?.props.onKeyDown?.(J),j(J)}}))}),UT=wH;UT._InternalPanelDoNotUseOrYouWillBeFired=YT;const d2=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let s;return i&&(s={position:"absolute",top:`${i}00%`,left:0}),l.createElement("span",{style:s,className:Q(`${t}-only-unit`,{current:r})},n)};function EH(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const MH=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),s=Math.abs(n),[c,d]=l.useState(i),[f,p]=l.useState(s),g=()=>{d(i),p(s)};l.useEffect(()=>{const C=setTimeout(g,1e3);return()=>clearTimeout(C)},[i]);let h,y;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(d2,{...e,key:i,current:!0})],y={transition:"none"};else{h=[];const C=i+10,b=[];for(let M=i;M<=C;M+=1)b.push(M);const $=f<s?1:-1,S=b.findIndex(M=>M%10===c);h=($<0?b.slice(0,S+1):b.slice(S)).map((M,x)=>{const R=M%10;return l.createElement(d2,{...e,key:M,value:R,offset:$<0?x-S:x,current:x===S})}),y={transform:`translateY(${-EH(c,i,$)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},RH=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:s,style:c,title:d,show:f,component:p="sup",children:g,...h}=e,{getPrefixCls:y}=l.useContext(dt),C=y("scroll-number",n),b={...h,"data-show":f,style:c,className:Q(C,i,s),title:d};let $=r;if(r&&Number(r)%1===0){const S=String(r).split("");$=l.createElement("bdi",null,S.map((w,M)=>l.createElement(MH,{prefixCls:C,count:Number(r),value:w,key:S.length-M})))}return c?.borderColor&&(b.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?nr(g,S=>({className:Q(`${C}-custom-component`,S?.className,s)})):l.createElement(p,{...b,ref:t},$)}),OH=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),TH=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),NH=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),IH=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),PH=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),zH=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),AH=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:s,textFontSizeSM:c,statusSize:d,dotSize:f,textFontWeight:p,indicatorHeight:g,indicatorHeightSM:h,marginXS:y,calc:C}=e,b=`${r}-scroll-number`,$=xp(e,(S,{darkColor:w})=>({[`&${t} ${t}-color-${S}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:{...Zt(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:p,fontSize:s,lineHeight:te(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:C(g).div(2).equal(),boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:h,height:h,fontSize:c,lineHeight:te(h),borderRadius:C(h).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${te(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:f,minWidth:f,height:f,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:zH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:d,height:d,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:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:OH,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:y,color:e.colorText,fontSize:e.fontSize}},...$,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:TH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:NH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:IH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:PH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},GT=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,s=t,c=n,d=e.colorTextLightSolid,f=e.colorError,p=e.colorErrorHover;return Tt(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:d,badgeColor:f,badgeColorHover:p,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},XT=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},DH=Pt("Badge",e=>{const t=GT(e);return AH(t)},XT),jH=l.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:i,status:s,text:c,color:d,count:f=null,overflowCount:p=99,dot:g=!1,size:h="default",title:y,offset:C,style:b,className:$,rootClassName:S,classNames:w,styles:M,showZero:x=!1,...R}=e,{getPrefixCls:O,direction:N,className:T,style:P,classNames:D,styles:k}=It("badge"),W=O("badge",n),[U,G]=DH(W),L={...e,overflowCount:p,size:h,dot:g,showZero:x},[H,_]=Lt([D,w],[k,M],{props:L}),B=f>p?`${p}+`:f,I=B==="0"||B===0||c==="0"||c===0,z=f===null||I&&!x,V=(Mr(s)||Mr(d))&&z,A=Mr(s)||!I,j=g&&!I,q=j?"":B,X=l.useMemo(()=>((!Mr(q)||q==="")&&(!Mr(c)||c==="")||I&&!x)&&!j,[q,I,x,j,c]),K=l.useRef(f);X||(K.current=f);const J=K.current,Z=l.useRef(q);X||(Z.current=q);const oe=Z.current,ne=l.useRef(j);X||(ne.current=j);const ie=l.useMemo(()=>{if(!C)return{...P,...b};const Se=Number.parseInt(C[0],10);return{...{marginTop:C[1],insetInlineEnd:-Se},...P,...b}},[C,b,P]),de=y??(typeof J=="string"||typeof J=="number"?J:void 0),le=!X&&(c===0?x:!!c&&c!==!0),fe=le?l.createElement("span",{className:`${W}-status-text`},c):null,ge=!J||typeof J!="object"?void 0:nr(J,Se=>({style:{...ie,...Se.style}})),re=Hp(d,!1),ce=Q(H.indicator,{[`${W}-status-dot`]:V,[`${W}-status-${s}`]:!!s,[`${W}-color-${d}`]:re}),he={};d&&!re&&(he.color=d,he.background=d);const pe=Q(W,{[`${W}-status`]:V,[`${W}-not-a-wrapper`]:!i,[`${W}-rtl`]:N==="rtl"},$,S,T,H.root,U,G);if(!i&&V&&(c||A||!z)){const Se=ie.color;return l.createElement("span",{...R,className:pe,style:{..._.root,...ie}},l.createElement("span",{className:ce,style:{..._.indicator,...he}}),le&&l.createElement("span",{style:{color:Se},className:`${W}-status-text`},c))}return l.createElement("span",{ref:t,...R,className:pe,style:_.root},i,l.createElement(Sr,{visible:!X,motionName:`${W}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Se})=>{const Ie=O("scroll-number",r),Me=ne.current,we=Q(H.indicator,{[`${W}-dot`]:Me,[`${W}-count`]:!Me,[`${W}-count-sm`]:h==="small",[`${W}-multiple-words`]:!Me&&oe&&oe.toString().length>1,[`${W}-status-${s}`]:!!s,[`${W}-color-${d}`]:re});let se={..._.indicator,...ie};return d&&!re&&(se=se||{},se.background=d),l.createElement(RH,{prefixCls:Ie,show:!X,motionClassName:Se,className:we,count:oe,title:de,style:se,key:"scrollNumber"},ge)}),fe)}),_H=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=xp(e,(p,{darkColor:g})=>({[`&${c}-color-${p}`]:{background:g,color:g}}));return{[d]:{position:"relative"},[c]:{...Zt(e),position:"absolute",top:r,padding:`0 ${te(e.paddingXS)}`,color:e.colorPrimary,lineHeight:te(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-content`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${te(s(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...f,[`&${c}-placement-end`]:{insetInlineEnd:s(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},HH=Pt(["Badge","Ribbon"],e=>{const t=GT(e);return _H(t)},XT),BH=e=>{const{className:t,prefixCls:n,style:r,color:i,children:s,text:c,placement:d="end",rootClassName:f,styles:p,classNames:g}=e,{getPrefixCls:h,direction:y,className:C,style:b,classNames:$,styles:S}=It("ribbon"),w=h("ribbon",n),M=`${w}-wrapper`,[x,R]=HH(w,M),O={...e,placement:d},[N,T]=Lt([$,g],[S,p],{props:O}),P=Hp(i,!1),D=Q(w,`${w}-placement-${d}`,{[`${w}-rtl`]:y==="rtl",[`${w}-color-${i}`]:P},t,C,N.indicator),k={},W={};return i&&!P&&(k.background=i,W.color=i),l.createElement("div",{className:Q(M,f,x,R,N.root),style:T.root},s,l.createElement("div",{className:Q(D,x),style:{...k,...T.indicator,...b,...r}},l.createElement("span",{className:Q(`${w}-content`,N.content),style:T.content},c),l.createElement("div",{className:`${w}-corner`,style:W})))},ci=jH;ci.Ribbon=BH;var LH={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"};function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pv.apply(this,arguments)}const VH=(e,t)=>l.createElement(gt,Pv({},e,{ref:t,icon:LH})),Eu=l.forwardRef(VH),{ESC:FH,TAB:kH}=nt;function WH({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){const s=l.useRef(!1),c=()=>{e&&(t.current?.focus?.(),n?.(!1))},d=()=>i.current?.focus?(i.current.focus(),s.current=!0,!0):!1,f=p=>{switch(p.keyCode){case FH:c();break;case kH:{let g=!1;s.current||(g=d()),g?p.preventDefault():c();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",f),r&&Ht(d,3),()=>{window.removeEventListener("keydown",f),s.current=!1}):()=>{s.current=!1},[e])}const qH=l.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:i}=e,s=l.useMemo(()=>{let d;return typeof n=="function"?d=n():d=n,d},[n]),c=or(t,al(s));return ae.createElement(ae.Fragment,null,r&&ae.createElement("div",{className:`${i}-arrow`}),ae.cloneElement(s,{ref:ol(s)?c:void 0}))}),rs={adjustX:1,adjustY:1},os=[0,0],YH={topLeft:{points:["bl","tl"],overflow:rs,offset:[0,-4],targetOffset:os},top:{points:["bc","tc"],overflow:rs,offset:[0,-4],targetOffset:os},topRight:{points:["br","tr"],overflow:rs,offset:[0,-4],targetOffset:os},bottomLeft:{points:["tl","bl"],overflow:rs,offset:[0,4],targetOffset:os},bottom:{points:["tc","bc"],overflow:rs,offset:[0,4],targetOffset:os},bottomRight:{points:["tr","br"],overflow:rs,offset:[0,4],targetOffset:os}};function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zv.apply(this,arguments)}const KT=ae.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:s,align:c,placement:d="bottomLeft",placements:f=YH,getPopupContainer:p,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:C,visible:b,trigger:$=["hover"],autoFocus:S,overlay:w,children:M,onVisibleChange:x,...R}=e,[O,N]=ae.useState(),T="visible"in e?b:O,P=s?`${r}-${s}`:i,D=ae.useRef(null),k=ae.useRef(null),W=ae.useRef(null);ae.useImperativeHandle(t,()=>D.current);const U=V=>{N(V),x?.(V)};WH({visible:T,triggerRef:W,onVisibleChange:U,autoFocus:S,overlayRef:k});const G=V=>{const{onOverlayClick:A}=e;N(!1),A&&A(V)},L=()=>ae.createElement(qH,{ref:k,overlay:w,prefixCls:r,arrow:n}),H=()=>typeof w=="function"?L:L(),_=()=>{const{minOverlayWidthMatchTrigger:V,alignPoint:A}=e;return"minOverlayWidthMatchTrigger"in e?V:!A},B=()=>{const{openClassName:V}=e;return V!==void 0?V:`${r}-open`},I=ae.cloneElement(M,{className:Q(M.props?.className,T&&B()),ref:ol(M)?or(W,al(M)):void 0});let z=h;return!z&&$.indexOf("contextMenu")!==-1&&(z=["click"]),ae.createElement(ud,zv({builtinPlacements:f},R,{prefixCls:r,ref:D,popupClassName:Q(y,{[`${r}-show-arrow`]:n}),popupStyle:C,action:$,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupMotion:{motionName:P},popupVisible:T,stretch:_()?"minWidth":"",popup:H(),onOpenChange:U,onPopupClick:G,getPopupContainer:p}),I)}),UH=e=>typeof e!="object"&&typeof e!="function"||e===null,QT=l.createContext(null);function ZT(e,t){return`${e}-${t}`}function JT(e){const t=l.useContext(QT);return ZT(t,e)}const Do=l.createContext(null);function GH(e,t){const n={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(n[r]=i)}),n}function Mu({children:e,locked:t,...n}){const r=l.useContext(Do),i=rd(()=>GH(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!hu(s[1],c[1],!0)));return l.createElement(Do.Provider,{value:i},e)}const XH=[],e6=l.createContext(null);function Bp(){return l.useContext(e6)}const t6=l.createContext(XH);function js(e){const t=l.useContext(t6);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const n6=l.createContext(null),KS=l.createContext({});function f2(e,t=!1){if(Ep(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i);let c=null;return i&&!Number.isNaN(s)?c=s:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function KH(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>f2(r,t));return f2(e,t)&&n.unshift(e),n}function r6(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const{LEFT:Av,RIGHT:Dv,UP:jv,DOWN:$m,ENTER:xm,ESC:o6,HOME:Dc,END:jc}=nt,m2=[jv,$m,Av,Dv];function QH(e,t,n,r){const i="prev",s="next",c="children",d="parent";if(e==="inline"&&r===xm)return{inlineTrigger:!0};const f={[jv]:i,[$m]:s},p={[Av]:n?s:i,[Dv]:n?i:s,[$m]:c,[xm]:c},g={[jv]:i,[$m]:s,[xm]:c,[o6]:d,[Av]:n?c:d,[Dv]:n?d:c};switch({inline:f,horizontal:p,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case i:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function ZH(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function JH(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function QS(e,t){return KH(e,!0).filter(r=>t.has(r))}function p2(e,t,n,r=1){if(!e)return null;const i=QS(e,t),s=i.length;let c=i.findIndex(d=>n===d);return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,i[c]}const Qm=(e,t)=>{const n=new Set,r=new Map,i=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${ZT(t,s)}']`);c&&(n.add(c),i.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:i}};function eB(e,t,n,r,i,s,c,d,f,p){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{Ht.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),C=>{const{which:b}=C;if([...m2,xm,o6,Dc,jc].includes(b)){const $=s();let S=Qm($,r);const{elements:w,key2element:M,element2key:x}=S,R=M.get(t),O=JH(R,w),N=x.get(O),T=QH(e,c(N,!0).length===1,n,b);if(!T&&b!==Dc&&b!==jc)return;(m2.includes(b)||[Dc,jc].includes(b))&&C.preventDefault();const P=D=>{if(D){let k=D;const W=D.querySelector("a");W?.getAttribute("href")&&(k=W);const U=x.get(D);d(U),y(),g.current=Ht(()=>{h.current===U&&k.focus()})}};if([Dc,jc].includes(b)||T.sibling||!O){let D;!O||e==="inline"?D=i.current:D=ZH(O);let k;const W=QS(D,w);b===Dc?k=W[0]:b===jc?k=W[W.length-1]:k=p2(D,w,O,T.offset),P(k)}else if(T.inlineTrigger)f(N);else if(T.offset>0)f(N,!0),y(),g.current=Ht(()=>{S=Qm($,r);const D=O.getAttribute("aria-controls"),k=document.getElementById(D),W=p2(k,S.elements);P(W)},5);else if(T.offset<0){const D=c(N,!0),k=D[D.length-2],W=M.get(k);f(k,!1),P(W)}}p?.(C)}}function tB(e){Promise.resolve().then(e)}const ZS="__RC_UTIL_PATH_SPLIT__",g2=e=>e.join(ZS),nB=e=>e.split(ZS),_v="rc-menu-more";function rB(){const[,e]=l.useState({}),t=l.useRef(new Map),n=l.useRef(new Map),[r,i]=l.useState([]),s=l.useRef(0),c=l.useRef(!1),d=()=>{c.current||e({})},f=l.useCallback(($,S)=>{const w=g2(S);n.current.set(w,$),t.current.set($,w),s.current+=1;const M=s.current;tB(()=>{M===s.current&&d()})},[]),p=l.useCallback(($,S)=>{const w=g2(S);n.current.delete(w),t.current.delete($)},[]),g=l.useCallback($=>{i($)},[]),h=l.useCallback(($,S)=>{const w=t.current.get($)||"",M=nB(w);return S&&r.includes(M[0])&&M.unshift(_v),M},[r]),y=l.useCallback(($,S)=>$.filter(w=>w!==void 0).some(w=>h(w,!0).includes(S)),[h]),C=()=>{const $=[...t.current.keys()];return r.length&&$.push(_v),$},b=l.useCallback($=>{const S=`${t.current.get($)}${ZS}`,w=new Set;return[...n.current.keys()].forEach(M=>{M.startsWith(S)&&w.add(n.current.get(M))}),w},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:C,getSubPathKeys:b}}function Kc(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function a6(e,t,n,r){const{activeKey:i,onActive:s,onInactive:c}=l.useContext(Do),d={active:i===e};return t||(d.onMouseEnter=f=>{n?.({key:e,domEvent:f}),s(e)},d.onMouseLeave=f=>{r?.({key:e,domEvent:f}),c(e)}),d}function i6(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(Do);if(t!=="inline")return null;const i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function l6({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=l.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function Zm({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(tr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ru.apply(this,arguments)}class oB extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...i}=this.props,s=tn(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return tr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Yo.Item,Ru({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const aB=l.forwardRef((e,t)=>{const{style:n,className:r,eventKey:i,warnKey:s,disabled:c,itemIcon:d,children:f,role:p,onMouseEnter:g,onMouseLeave:h,onClick:y,onKeyDown:C,onFocus:b,...$}=e,S=JT(i),{prefixCls:w,onItemClick:M,disabled:x,overflowDisabled:R,itemIcon:O,selectedKeys:N,onActive:T}=l.useContext(Do),{_internalRenderMenuItem:P}=l.useContext(KS),D=`${w}-item`,k=l.useRef(),W=l.useRef(),U=x||c,G=di(t,W),L=js(i),H=J=>({key:i,keyPath:[...L].reverse(),item:k.current,domEvent:J}),_=d||O,{active:B,...I}=a6(i,U,g,h),z=N.includes(i),V=i6(L.length),A=J=>{if(U)return;const Z=H(J);y?.(Zm(Z)),M(Z)},j=J=>{if(C?.(J),J.which===nt.ENTER){const Z=H(J);y?.(Zm(Z)),M(Z)}},q=J=>{T(i),b?.(J)},X={};e.role==="option"&&(X["aria-selected"]=z);let K=l.createElement(oB,Ru({ref:k,elementRef:G,role:p===null?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":R&&S?null:S},tn($,["extra"]),I,X,{component:"li","aria-disabled":c,style:{...V,...n},className:Q(D,{[`${D}-active`]:B,[`${D}-selected`]:z,[`${D}-disabled`]:U},r),onClick:A,onKeyDown:j,onFocus:q}),f,l.createElement(l6,{props:{...e,isSelected:z},icon:_}));return P&&(K=P(K,e,{selected:z})),K});function iB(e,t){const{eventKey:n}=e,r=Bp(),i=js(n);return l.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:l.createElement(aB,Ru({},e,{ref:t}))}const Cd=l.forwardRef(iB);function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}const lB=({className:e,children:t,...n},r)=>{const{prefixCls:i,mode:s,rtl:c}=l.useContext(Do);return l.createElement("ul",Hv({className:Q(i,c&&`${i}-rtl`,`${i}-sub`,`${i}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},s6=l.forwardRef(lB);function JS(e,t){return dr(e).map((n,r)=>{if(l.isValidElement(n)){const{key:i}=n;let s=n.props?.eventKey??i;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const d={key:s,eventKey:s};return l.cloneElement(n,d)}return n})}const Er={adjustX:1,adjustY:1},sB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},leftTop:{points:["tr","tl"],overflow:Er},leftBottom:{points:["br","bl"],overflow:Er},rightTop:{points:["tl","tr"],overflow:Er},rightBottom:{points:["bl","br"],overflow:Er}},cB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},rightTop:{points:["tr","tl"],overflow:Er},rightBottom:{points:["br","bl"],overflow:Er},leftTop:{points:["tl","tr"],overflow:Er},leftBottom:{points:["bl","br"],overflow:Er}};function c6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const uB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function dB({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:s,popupOffset:c,disabled:d,mode:f,onVisibleChange:p}){const{getPopupContainer:g,rtl:h,subMenuOpenDelay:y,subMenuCloseDelay:C,builtinPlacements:b,triggerSubMenuAction:$,forceSubMenuRender:S,rootClassName:w,motion:M,defaultMotions:x}=l.useContext(Do),[R,O]=l.useState(!1),N=h?{...cB,...b}:{...sB,...b},T=uB[f],P=c6(f,M,x),D=l.useRef(P);f!=="inline"&&(D.current=P);const k={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},W=l.useRef();return l.useEffect(()=>(W.current=Ht(()=>{O(t)}),()=>{Ht.cancel(W.current)}),[t]),l.createElement(ud,{prefixCls:e,popupClassName:Q(`${e}-popup`,{[`${e}-rtl`]:h},s,w),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:T,popupVisible:R,popup:r,popupStyle:i,popupAlign:c&&{offset:c},action:d?[]:[$],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:p,forceRender:S,popupMotion:k,fresh:!0},n)}function Bv(){return Bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bv.apply(this,arguments)}function fB({id:e,open:t,keyPath:n,children:r}){const i="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:p}=l.useContext(Do),g=l.useRef(!1);g.current=p===i;const[h,y]=l.useState(!g.current),C=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[p]);const b={...c6(i,d,f)};n.length>1&&(b.motionAppear=!1);const $=b.onVisibleChanged;return b.onVisibleChanged=S=>(!g.current&&!S&&y(!0),$?.(S)),h?null:l.createElement(Mu,{mode:i,locked:!g.current},l.createElement(Sr,Bv({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:S,style:w})=>l.createElement(s6,{id:e,className:S,style:w},r)))}function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ou.apply(this,arguments)}const mB=l.forwardRef((e,t)=>{const{style:n,className:r,styles:i,classNames:s,title:c,eventKey:d,warnKey:f,disabled:p,internalPopupClose:g,children:h,itemIcon:y,expandIcon:C,popupClassName:b,popupOffset:$,popupStyle:S,onClick:w,onMouseEnter:M,onMouseLeave:x,onTitleClick:R,onTitleMouseEnter:O,onTitleMouseLeave:N,popupRender:T,...P}=e,D=JT(d),{prefixCls:k,mode:W,openKeys:U,disabled:G,overflowDisabled:L,activeKey:H,selectedKeys:_,itemIcon:B,expandIcon:I,onItemClick:z,onOpenChange:V,onActive:A,popupRender:j}=l.useContext(Do),{_internalRenderSubMenuItem:q}=l.useContext(KS),{isSubPathKey:X}=l.useContext(n6),K=js(),J=`${k}-submenu`,Z=G||p,oe=l.useRef(),ne=l.useRef(),ie=y??B,de=C??I,le=U.includes(d),fe=!L&&le,ge=X(_,d),{active:re,...ce}=a6(d,Z,O,N),[he,pe]=l.useState(!1),Se=ve=>{Z||pe(ve)},Ie=ve=>{Se(!0),M?.({key:d,domEvent:ve})},Me=ve=>{Se(!1),x?.({key:d,domEvent:ve})},we=l.useMemo(()=>re||(W!=="inline"?he||X([H],d):!1),[W,re,H,he,d,X]),se=i6(K.length),be=ve=>{Z||(R?.({key:d,domEvent:ve}),W==="inline"&&V(d,!le))},Ee=Kc(ve=>{w?.(Zm(ve)),z(ve)}),Ne=ve=>{W!=="inline"&&V(d,ve)},Fe=()=>{A(d)},Ge=D&&`${D}-popup`,et=l.useMemo(()=>l.createElement(l6,{icon:W!=="horizontal"?de:void 0,props:{...e,isOpen:fe,isSubMenu:!0}},l.createElement("i",{className:`${J}-arrow`})),[W,de,e,fe,J]);let Oe=l.createElement("div",Ou({role:"menuitem",style:se,className:`${J}-title`,tabIndex:Z?null:-1,ref:oe,title:typeof c=="string"?c:null,"data-menu-id":L&&D?null:D,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":Z,onClick:be,onFocus:Fe},ce),c,et);const _e=l.useRef(W);W!=="inline"&&K.length>1?_e.current="vertical":_e.current=W;const Ve=_e.current,Qe=l.useMemo(()=>{const ve=l.createElement(Mu,{classNames:s,styles:i,mode:Ve==="horizontal"?"vertical":Ve},l.createElement(s6,{id:Ge,ref:ne},h)),Ae=T||j;return Ae?Ae(ve,{item:e,keys:K}):ve},[T,j,K,Ge,h,e,Ve]);if(!L){const ve=_e.current;Oe=l.createElement(dB,{mode:ve,prefixCls:J,visible:!g&&fe&&W!=="inline",popupClassName:b,popupOffset:$,popupStyle:S,popup:Qe,disabled:Z,onVisibleChange:Ne},Oe)}let De=l.createElement(Yo.Item,Ou({ref:t,role:"none"},P,{component:"li",style:n,className:Q(J,`${J}-${W}`,r,{[`${J}-open`]:fe,[`${J}-active`]:we,[`${J}-selected`]:ge,[`${J}-disabled`]:Z}),onMouseEnter:Ie,onMouseLeave:Me}),Oe,!L&&l.createElement(fB,{id:Ge,open:fe,keyPath:K},h));return q&&(De=q(De,e,{selected:ge,active:we,open:fe,disabled:Z})),l.createElement(Mu,{classNames:s,styles:i,onItemClick:Ee,mode:W==="horizontal"?"vertical":W,itemIcon:ie,expandIcon:de},De)}),Lp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=js(n),s=JS(r,i),c=Bp();l.useEffect(()=>{if(c)return c.registerPath(n,i),()=>{c.unregisterPath(n,i)}},[i]);let d;return c?d=s:d=l.createElement(mB,Ou({ref:t},e),s),l.createElement(t6.Provider,{value:i},d)});function e1({className:e,style:t}){const{prefixCls:n}=l.useContext(Do);return Bp()?null:l.createElement("li",{role:"separator",className:Q(`${n}-item-divider`,e),style:t})}function Jm(){return Jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jm.apply(this,arguments)}const pB=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:i,children:s,...c}=e,{prefixCls:d,classNames:f,styles:p}=l.useContext(Do),g=`${d}-item-group`;return l.createElement("li",Jm({ref:t,role:"presentation"},c,{onClick:h=>h.stopPropagation(),className:Q(g,n)}),l.createElement("div",{role:"presentation",className:Q(`${g}-title`,f?.listTitle),style:p?.listTitle,title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:Q(`${g}-list`,f?.list),style:p?.list},s))}),t1=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=js(n),s=JS(r,i);return Bp()?s:l.createElement(pB,Jm({ref:t},tn(e,["warnKey"])),s)});function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ms.apply(this,arguments)}function Lv(e,t,n){const{item:r,group:i,submenu:s,divider:c}=t;return(e||[]).map((d,f)=>{if(d&&typeof d=="object"){const{label:p,children:g,key:h,type:y,extra:C,...b}=d,$=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(i,ms({key:$},b,{title:p}),Lv(g,t,n)):l.createElement(s,ms({key:$},b,{title:p}),Lv(g,t,n)):y==="divider"?l.createElement(c,ms({key:$},b)):l.createElement(r,ms({key:$},b,{extra:C}),p,(!!C||C===0)&&l.createElement("span",{className:`${n}-item-extra`},C))}return null}).filter(d=>d)}function h2(e,t,n,r,i){let s=e;const c={divider:e1,item:Cd,group:t1,submenu:Lp,...r};return t&&(s=Lv(t,c,i)),JS(s,n)}function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vv.apply(this,arguments)}const Pi=[],gB=l.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:i,className:s,styles:c,classNames:d,tabIndex:f=0,items:p,children:g,direction:h,id:y,mode:C="vertical",inlineCollapsed:b,disabled:$,disabledOverflow:S,subMenuOpenDelay:w=.1,subMenuCloseDelay:M=.1,forceSubMenuRender:x,defaultOpenKeys:R,openKeys:O,activeKey:N,defaultActiveFirst:T,selectable:P=!0,multiple:D=!1,defaultSelectedKeys:k,selectedKeys:W,onSelect:U,onDeselect:G,inlineIndent:L=24,motion:H,defaultMotions:_,triggerSubMenuAction:B="hover",builtinPlacements:I,itemIcon:z,expandIcon:V,overflowedIndicator:A="...",overflowedIndicatorPopupClassName:j,getPopupContainer:q,onClick:X,onOpenChange:K,onKeyDown:J,openAnimation:Z,openTransitionName:oe,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:ie,_internalComponents:de,popupRender:le,...fe}=e,[ge,re]=l.useMemo(()=>[h2(g,p,Pi,de,n),h2(g,p,Pi,{},n)],[g,p,de]),[ce,he]=l.useState(!1),pe=l.useRef(),Se=Ko(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Ie=h==="rtl",[Me,we]=Yt(R,O),se=Me||Pi,be=(Ke,Et=!1)=>{function mt(){we(Ke),K?.(Ke)}Et?Ji.flushSync(mt):mt()},[Ee,Ne]=l.useState(se),Fe=l.useRef(!1),[Ge,et]=l.useMemo(()=>(C==="inline"||C==="vertical")&&b?["vertical",b]:[C,!1],[C,b]),Oe=Ge==="inline",[_e,Ve]=l.useState(Ge),[Qe,De]=l.useState(et);l.useEffect(()=>{Ve(Ge),De(et),Fe.current&&(Oe?we(Ee):be(Pi))},[Ge,et]);const[ve,Ae]=l.useState(0),Ze=ve>=ge.length-1||_e!=="horizontal"||S;l.useEffect(()=>{Oe&&Ne(se)},[se]),l.useEffect(()=>(Fe.current=!0,()=>{Fe.current=!1}),[]);const{registerPath:Be,unregisterPath:Ue,refreshOverflowKeys:Pe,isSubPathKey:Xe,getKeyPath:rt,getKeys:ot,getSubPathKeys:lt}=rB(),St=l.useMemo(()=>({registerPath:Be,unregisterPath:Ue}),[Be,Ue]),Ct=l.useMemo(()=>({isSubPathKey:Xe}),[Xe]);l.useEffect(()=>{Pe(Ze?Pi:ge.slice(ve+1).map(Ke=>Ke.key))},[ve,Ze]);const[qe,at]=Yt(N||T&&ge[0]?.key,N),He=Kc(Ke=>{at(Ke)}),ze=Kc(()=>{at(void 0)});l.useImperativeHandle(t,()=>({list:pe.current,focus:Ke=>{const Et=ot(),{elements:mt,key2element:Rt,element2key:Ut}=Qm(Et,Se),an=QS(pe.current,mt);let kt;qe&&Et.includes(qe)?kt=qe:kt=an[0]?Ut.get(an[0]):ge.find(En=>!En.props.disabled)?.key;const wn=Rt.get(kt);kt&&wn&&wn?.focus?.(Ke)},findItem:({key:Ke})=>{const Et=ot(),{key2element:mt}=Qm(Et,Se);return mt.get(Ke)||null}}));const[We,Re]=Yt(k||[],W),Ye=l.useMemo(()=>Array.isArray(We)?We:We==null?Pi:[We],[We]),Je=Ke=>{if(P){const{key:Et}=Ke,mt=Ye.includes(Et);let Rt;D?mt?Rt=Ye.filter(an=>an!==Et):Rt=[...Ye,Et]:Rt=[Et],Re(Rt);const Ut={...Ke,selectedKeys:Rt};mt?G?.(Ut):U?.(Ut)}!D&&se.length&&_e!=="inline"&&be(Pi)},it=Kc(Ke=>{X?.(Zm(Ke)),Je(Ke)}),ft=Kc((Ke,Et)=>{let mt=se.filter(Rt=>Rt!==Ke);if(Et)mt.push(Ke);else if(_e!=="inline"){const Rt=lt(Ke);mt=mt.filter(Ut=>!Rt.has(Ut))}hu(se,mt,!0)||be(mt,!0)}),Dt=eB(_e,qe,Ie,Se,pe,ot,rt,at,(Ke,Et)=>{const mt=Et??!se.includes(Ke);ft(Ke,mt)},J);l.useEffect(()=>{he(!0)},[]);const $t=l.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:ie}),[ne,ie]),nn=_e!=="horizontal"||S?ge:ge.map((Ke,Et)=>l.createElement(Mu,{key:Ke.key,overflowDisabled:Et>ve,classNames:d,styles:c},Ke)),wt=l.createElement(Yo,Vv({id:y,ref:pe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Cd,className:Q(n,`${n}-root`,`${n}-${_e}`,s,{[`${n}-inline-collapsed`]:Qe,[`${n}-rtl`]:Ie},r),dir:h,style:i,role:"menu",tabIndex:f,data:nn,renderRawItem:Ke=>Ke,renderRawRest:Ke=>{const Et=Ke.length,mt=Et?ge.slice(-Et):null;return l.createElement(Lp,{eventKey:_v,title:A,disabled:Ze,internalPopupClose:Et===0,popupClassName:j},mt)},maxCount:_e!=="horizontal"||S?Yo.INVALIDATE:Yo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ke=>{Ae(Ke)},onKeyDown:Dt},fe));return l.createElement(KS.Provider,{value:$t},l.createElement(QT.Provider,{value:Se},l.createElement(Mu,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:_e,openKeys:se,rtl:Ie,disabled:$,motion:ce?H:null,defaultMotions:ce?_:null,activeKey:qe,onActive:He,onInactive:ze,selectedKeys:Ye,inlineIndent:L,subMenuOpenDelay:w,subMenuCloseDelay:M,forceSubMenuRender:x,builtinPlacements:I,triggerSubMenuAction:B,getPopupContainer:q,itemIcon:z,expandIcon:V,onItemClick:it,onOpenChange:ft,popupRender:le},l.createElement(n6.Provider,{value:Ct},wt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(e6.Provider,{value:St},re)))))}),_s=gB;_s.Item=Cd;_s.SubMenu=Lp;_s.ItemGroup=t1;_s.Divider=e1;var hB={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"};function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}const yB=(e,t)=>l.createElement(gt,Fv({},e,{ref:t,icon:hB})),bB=l.forwardRef(yB),u6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),vB=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:s,headerPadding:c,headerColor:d,footerPadding:f,fontSize:p,bodyBg:g,headerBg:h}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{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:s,padding:c,color:d,lineHeight:te(s),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:p,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},d6=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:s,marginXXS:c,colorTextLightSolid:d,colorBgContainer:f}=e,p=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${p}px`,headerColor:i,footerPadding:`${s}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:i}},f6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],m6=Pt("Layout",vB,d6,{deprecatedTokens:f6}),SB=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:s,triggerHeight:c,triggerColor:d,triggerBg:f,headerHeight:p,zeroTriggerWidth:g,zeroTriggerHeight:h,borderRadiusLG:y,lightSiderBg:C,lightTriggerColor:b,lightTriggerBg:$,bodyBg:S}=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,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:te(c),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:p,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:h,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${te(y)} ${te(y)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${te(y)} 0 0 ${te(y)}`}},"&-light":{background:C,[`${t}-trigger`]:{color:b,background:$},[`${t}-zero-width-trigger`]:{color:b,background:$,border:`1px solid ${S}`,borderInlineStart:0}}}}},CB=Pt(["Layout","Sider"],SB,d6,{deprecatedTokens:f6}),y2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},$B=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Vp=l.createContext({}),xB=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),p6=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:s,defaultCollapsed:c=!1,theme:d="dark",style:f={},collapsible:p=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:y=80,zeroWidthTriggerStyle:C,breakpoint:b,onCollapse:$,onBreakpoint:S,...w}=e,{siderHook:M}=l.useContext(u6),[x,R]=l.useState("collapsed"in e?e.collapsed:c),[O,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const T=(Z,oe)=>{"collapsed"in e||R(Z),$?.(Z,oe)},{getPrefixCls:P,direction:D}=l.useContext(dt),k=P("layout-sider",n),[W,U]=CB(k),G=l.useRef(null);G.current=Z=>{N(Z.matches),S?.(Z.matches),x!==Z.matches&&T(Z.matches,"responsive")},l.useEffect(()=>{function Z(ne){return G.current?.(ne)}let oe;return typeof window?.matchMedia<"u"&&b&&b in y2&&(oe=window.matchMedia(`screen and (max-width: ${y2[b]})`),typeof oe?.addEventListener=="function"&&oe.addEventListener("change",Z),Z(oe)),()=>{typeof oe?.removeEventListener=="function"&&oe.removeEventListener("change",Z)}},[b]),l.useEffect(()=>{const Z=xB("ant-sider-");return M.addSider(Z),()=>M.removeSider(Z)},[]);const L=()=>{T(!x,"clickTrigger")},H=tn(w,["collapsed"]),_=x?y:h,B=$B(_)?`${_}px`:String(_),I=Number.parseFloat(String(y||0))===0?l.createElement("span",{onClick:L,className:Q(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${g?"right":"left"}`),style:C},i||l.createElement(bB,null)):null,z=D==="rtl"==!g,j={expanded:z?l.createElement(xs,null):l.createElement(Eu,null),collapsed:z?l.createElement(Eu,null):l.createElement(xs,null)}[x?"collapsed":"expanded"],q=i!==null?I||l.createElement("div",{className:`${k}-trigger`,onClick:L,style:{width:B}},i||j):null,X={...f,flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B},K=Q(k,`${k}-${d}`,{[`${k}-collapsed`]:!!x,[`${k}-has-trigger`]:p&&i!==null&&!I,[`${k}-below`]:!!O,[`${k}-zero-width`]:Number.parseFloat(B)===0},r,W,U),J=l.useMemo(()=>({siderCollapsed:x}),[x]);return l.createElement(Vp.Provider,{value:J},l.createElement("aside",{className:K,...H,style:X,ref:t},l.createElement("div",{className:`${k}-children`},s),p||O&&I?q:null))});var wB={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"};function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(this,arguments)}const EB=(e,t)=>l.createElement(gt,kv({},e,{ref:t,icon:wB})),n1=l.forwardRef(EB),ep=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),g6=e=>{const{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),d=Q({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(e1,{className:d,...i})},h6=e=>{const{className:t,children:n,icon:r,title:i,danger:s,extra:c}=e,{prefixCls:d,firstLevel:f,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h,styles:y,classNames:C}=l.useContext(ep),b=R=>{const O=n?.[0],N=l.createElement("span",{className:Q(`${d}-title-content`,f?C.itemContent:C.subMenu.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:f?y.itemContent:y.subMenu.itemContent},n);return(!r||l.isValidElement(n)&&n.type==="span")&&n&&R&&f&&typeof O=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},O.charAt(0)):N},{siderCollapsed:$}=l.useContext(Vp);let S=i;typeof i>"u"?S=f?n:"":i===!1&&(S="");const w={title:S};!$&&!h&&(w.title=null,w.open=!1);const M=dr(n).length;let x=l.createElement(Cd,{...tn(e,["title","icon","danger"]),className:Q(f?C.item:C.subMenu.item,{[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(r?M+1:M)===1},t),style:{...f?y.item:y.subMenu.item,...e.style},title:typeof i=="string"?i:void 0},nr(r,R=>({className:Q(`${d}-item-icon`,f?C.itemIcon:C.subMenu.itemIcon,R.className),style:{...f?y.itemIcon:y.subMenu.itemIcon,...R.style}})),b(h));return g||(x=l.createElement(ur,{...w,placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},x)),x},tp=l.createContext(null),MB=l.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.useContext(tp),s=l.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=qP(n),d=di(t,c?al(n):null);return l.createElement(tp.Provider,{value:s},l.createElement(xa,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),RB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:s,lineType:c,itemPaddingInline:d}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${c} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${t}-item:hover,
192
+ > ${t}-item-active,
193
+ > ${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"}}}},OB=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
194
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${te(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${te(t)})`}}}}),b2=e=>Uo(e),v2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:s,groupTitleColor:c,itemBg:d,subMenuItemBg:f,itemSelectedBg:p,activeBarHeight:g,activeBarWidth:h,activeBarBorderWidth:y,motionDurationSlow:C,motionEaseInOut:b,motionEaseOut:$,itemPaddingInline:S,motionDurationMid:w,itemHoverColor:M,lineType:x,colorSplit:R,itemDisabledColor:O,dangerItemColor:N,dangerItemHoverColor:T,dangerItemSelectedColor:P,dangerItemActiveBg:D,dangerItemSelectedBg:k,popupBg:W,itemHoverBg:U,itemActiveBg:G,menuSubMenuBg:L,horizontalItemSelectedColor:H,horizontalItemSelectedBg:_,horizontalItemBorderRadius:B,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:d,[`&${n}-root:focus-visible`]:{...b2(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...b2(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:M}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:U},"&:active":{backgroundColor:G}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:U},"&:active":{backgroundColor:G}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:p,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:W},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:W},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${te(g)} solid transparent`,transition:`border-color ${C} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:g,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:g,borderBottomColor:H}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(y)} ${x} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(h)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${$}`,`opacity ${w} ${$}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${b}`,`opacity ${w} ${b}`].join(",")}}}}}},S2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:s,marginXS:c,itemMarginBlock:d,itemWidth:f,itemPaddingInline:p}=e,g=e.calc(s).add(i).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:p,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:d,width:f},[`> ${t}-item,
195
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:te(n)},[`${t}-item-group-list ${t}-submenu-title,
196
+ ${t}-submenu-title`]:{paddingInlineEnd:g}}},TB=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:s,controlHeightLG:c,motionEaseOut:d,paddingXL:f,itemMarginInline:p,fontSizeLG:g,motionDurationFast:h,motionDurationSlow:y,paddingXS:C,boxShadowSecondary:b,collapsedWidth:$,collapsedIconSize:S}=e,w={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...S2(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...S2(e),boxShadow:b}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${te(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 ${y}`,`background ${y}`,`padding ${h} ${d}`].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`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:$,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:g,textAlign:"center"}}},[`> ${t}-item,
197
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
198
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
199
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${te(e.calc(S).div(2).equal())} - ${te(p)})`,textOverflow:"clip",[`
200
+ ${t}-submenu-arrow,
201
+ ${t}-submenu-expand-icon
202
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:te(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:i}},[`${t}-item-group-title`]:{...$o,paddingInline:C}}}]},C2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:s,iconCls:c,iconSize:d,iconMarginInlineEnd:f}=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) ${i}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${r} ${s}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Ns()},[`&${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"}}}},$2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:s,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${te(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${te(c)})`}}}}},NB=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:s,motionEaseInOut:c,paddingXS:d,padding:f,colorSplit:p,lineWidth:g,zIndexPopup:h,borderRadiusLG:y,subMenuItemBorderRadius:C,menuArrowSize:b,menuArrowOffset:$,lineType:S,groupTitleLineHeight:w,groupTitleFontSize:M}=e;return[{"":{[n]:{...Zi(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Zt(e),...Zi(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} 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:`${te(d)} ${te(f)}`,fontSize:M,lineHeight:w,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${c}`,`background ${i} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${c}`,`background ${i} ${c}`,`padding ${s} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${c}`,`padding ${i} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-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:p,borderStyle:S,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...C2(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${te(e.calc(r).mul(2).equal())} ${te(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:y,...C2(e),...$2(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:C},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${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}},...$2(e),[`&-inline-collapsed ${n}-submenu-arrow,
203
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${te($)})`},"&::after":{transform:`rotate(45deg) translateX(${te(e.calc($).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${te(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${te(e.calc($).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${te($)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},IB=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:h,controlItemBgActive:y,colorBgTextHover:C,controlHeightLG:b,lineHeight:$,colorBgElevated:S,marginXXS:w,padding:M,fontSize:x,controlHeightSM:R,fontSizeLG:O,colorTextLightSolid:N,colorErrorHover:T}=e,P=e.activeBarWidth??0,D=e.activeBarBorderWidth??g,k=e.itemMarginInline??e.marginXXS,W=new en(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:d,itemBg:d,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:p,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:D,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:$,collapsedWidth:b*2,popupBg:S,itemMarginBlock:w,itemPaddingInline:M,horizontalLineHeight:`${b*1.15}px`,iconSize:x,iconMarginInlineEnd:R-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new en(N).setA(.25).toRgbString(),darkItemColor:W,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:W,darkItemHoverColor:N,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${D}px)`:`calc(100% - ${k*2}px)`}},PB=(e,t=e,n=!0)=>Pt("Menu",i=>{const{colorBgElevated:s,controlHeightLG:c,fontSize:d,darkItemColor:f,darkDangerItemColor:p,darkItemBg:g,darkSubMenuItemBg:h,darkItemSelectedColor:y,darkItemSelectedBg:C,darkDangerItemSelectedBg:b,darkItemHoverBg:$,darkGroupTitleColor:S,darkItemHoverColor:w,darkItemDisabledColor:M,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:O,popupBg:N,darkPopupBg:T}=i,P=i.calc(d).div(7).mul(5).equal(),D=Tt(i,{menuArrowSize:P,menuHorizontalHeight:i.calc(c).mul(1.15).equal(),menuArrowOffset:i.calc(P).mul(.25).equal(),menuSubMenuBg:s,calc:i.calc,popupBg:N}),k=Tt(D,{itemColor:f,itemHoverColor:w,groupTitleColor:S,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:g,popupBg:T,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:C,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:$,itemDisabledColor:M,dangerItemColor:p,dangerItemHoverColor:x,dangerItemSelectedColor:R,dangerItemActiveBg:O,dangerItemSelectedBg:b,menuSubMenuBg:h,horizontalItemSelectedColor:y,horizontalItemSelectedBg:C});return[NB(D),RB(D),TB(D),v2(D,"light"),v2(k,"dark"),OB(D),VO(D),Xo(D,"slide-up"),Xo(D,"slide-down"),md(D,"zoom-big")]},IB,{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),y6=e=>{const{popupClassName:t,icon:n,title:r,theme:i}=e,s=l.useContext(ep),{prefixCls:c,inlineCollapsed:d,theme:f,classNames:p,styles:g}=s,h=js();let y;if(!n)y=d&&!h.length&&r&&typeof r=="string"?l.createElement("div",{className:`${c}-inline-collapsed-noicon`},r.charAt(0)):l.createElement("span",{className:`${c}-title-content`},r);else{const $=l.isValidElement(r)&&r.type==="span";y=l.createElement(l.Fragment,null,nr(n,S=>({className:Q(S.className,`${c}-item-icon`,p.itemIcon),style:{...S.style,...g.itemIcon}})),$?r:l.createElement("span",{className:`${c}-title-content`},r))}const C=l.useMemo(()=>({...s,firstLevel:!1}),[s]),[b]=fi("Menu");return l.createElement(ep.Provider,{value:C},l.createElement(Lp,{...tn(e,["icon"]),title:y,classNames:{list:p.subMenu.list,listTitle:p.subMenu.itemTitle},styles:{list:g.subMenu.list,listTitle:g.subMenu.itemTitle},popupClassName:Q(c,t,p.popup.root,`${c}-${i||f}`),popupStyle:{zIndex:b,...e.popupStyle,...g.popup.root}}))};function Hy(e){return e===null||e===!1}const zB={item:h6,submenu:y6,divider:g6},AB=l.forwardRef((e,t)=>{const n=l.useContext(tp),r=n||{},{prefixCls:i,className:s,style:c,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:g,siderCollapsed:h,rootClassName:y,mode:C,selectable:b,onClick:$,overflowedIndicatorPopupClassName:S,classNames:w,styles:M,...x}=e,{menu:R}=l.useContext(dt),{getPrefixCls:O,getPopupContainer:N,direction:T,className:P,style:D,classNames:k,styles:W}=It("menu"),U=O(),G=tn(x,["collapsedWidth"]);r.validator?.({mode:C});const L=ut((...ne)=>{$?.(...ne),r.onClick?.()}),H=r.mode||C,_=b??r.selectable,B=g??h,I={...e,mode:H,inlineCollapsed:B,selectable:_,theme:d},[z,V]=Lt([k,w],[W,M],{props:I},{popup:{_default:"root"},subMenu:{_default:"item"}}),A={horizontal:{motionName:`${U}-slide-up`},inline:jO(U),other:{motionName:`${U}-zoom-big`}},j=O("menu",i||r.prefixCls),q=ar(j),[X,K]=PB(j,q,!n),J=Q(`${j}-${d}`,P,s),Z=l.useMemo(()=>{if(typeof f=="function"||Hy(f))return f||null;if(typeof r.expandIcon=="function"||Hy(r.expandIcon))return r.expandIcon||null;if(typeof R?.expandIcon=="function"||Hy(R?.expandIcon))return R?.expandIcon||null;const ne=f??r?.expandIcon??R?.expandIcon;return nr(ne,{className:Q(`${j}-submenu-expand-icon`,l.isValidElement(ne)?ne.props?.className:void 0)})},[f,r?.expandIcon,R?.expandIcon,j]),oe=l.useMemo(()=>({prefixCls:j,inlineCollapsed:B||!1,direction:T,firstLevel:!0,theme:d,mode:H,disableMenuItemTitleTooltip:p,classNames:z,styles:V}),[j,B,T,p,d,H,z,V]);return l.createElement(tp.Provider,{value:null},l.createElement(ep.Provider,{value:oe},l.createElement(_s,{getPopupContainer:N,overflowedIndicator:l.createElement(n1,null),overflowedIndicatorPopupClassName:Q(j,`${j}-${d}`,S),classNames:{list:z.list,listTitle:z.itemTitle},styles:{list:V.list,listTitle:V.itemTitle},mode:H,selectable:_,onClick:L,...G,inlineCollapsed:B,style:{...V.root,...D,...c},className:J,prefixCls:j,direction:T,defaultMotions:A,expandIcon:Z,ref:t,rootClassName:Q(y,X,r.rootClassName,K,q,z.root),_internalComponents:zB})))}),$d=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Vp);return l.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{n.current?.focus(i)}})),l.createElement(AB,{ref:n,...e,...r})});$d.Item=h6;$d.SubMenu=y6;$d.Divider=g6;$d.ItemGroup=t1;const DB=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},jB=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:s,antCls:c,iconCls:d,motionDurationMid:f,paddingBlock:p,fontSize:g,dropdownEdgeChildPadding:h,colorTextDisabled:y,fontSizeIcon:C,controlPaddingHorizontal:b,colorBgElevated:$}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:C}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:C},[`${d}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${d}-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,
204
+ &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
205
+ &${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
206
+ &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
207
+ &${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
208
+ &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Tp},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
209
+ &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
210
+ &${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
211
+ &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
212
+ &${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
213
+ &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ip},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
214
+ &${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
215
+ &${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Np},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
216
+ &${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
217
+ &${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Pp}}},GS(e,$,{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`]:{...Zt(e),[n]:{padding:h,listStyleType:"none",backgroundColor:$,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...xo(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(p)} ${te(b)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:g,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 ${f}`,"&: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`]:{display:"flex",margin:0,padding:`${te(p)} ${te(b)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...xo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:$,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(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:C,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:$,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Xo(e,"slide-up"),Xo(e,"slide-down"),ws(e,"move-up"),ws(e,"move-down"),md(e,"zoom-big")]]},_B=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,..._p({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...jp(e)}),HB=Pt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,s=Tt(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[jB(s),DB(s)]},_B,{resetStyle:!1}),Fp=e=>{const{menu:t,arrow:n,prefixCls:r,children:i,trigger:s,disabled:c,dropdownRender:d,popupRender:f,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:C,onOpenChange:b,mouseEnterDelay:$=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:w=!0,placement:M="",transitionName:x,classNames:R,styles:O,destroyPopupOnHide:N,destroyOnHidden:T}=e,{getPrefixCls:P,direction:D,getPopupContainer:k,className:W,style:U,classNames:G,styles:L}=It("dropdown"),H={...e,mouseEnterDelay:$,mouseLeaveDelay:S,autoAdjustOverflow:w},[_,B]=Lt([G,R],[L,O],{props:H}),I={...U,...y,...B.root},z=f||d,V=l.useMemo(()=>{const Me=P();return x!==void 0?x:M.includes("top")?`${Me}-slide-down`:`${Me}-slide-up`},[P,M,x]),A=l.useMemo(()=>M?M.includes("Center")?M.slice(0,M.indexOf("Center")):M:D==="rtl"?"bottomRight":"bottomLeft",[M,D]),j=P("dropdown",r),q=ar(j),[X,K]=HB(j,q),[,J]=Wr(),Z=l.Children.only(UH(i)?l.createElement("span",null,i):i),oe=nr(Z,{className:Q(`${j}-trigger`,{[`${j}-rtl`]:D==="rtl"},Z.props.className),disabled:Z.props.disabled??c}),ne=c?[]:s,ie=!!ne?.includes("contextMenu"),[de,le]=Yt(!1,C),fe=ut(Me=>{b?.(Me,{source:"trigger"}),le(Me)}),ge=Q(g,h,X,K,q,W,_.root,{[`${j}-rtl`]:D==="rtl"}),re=VT({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:J.marginXXS,arrowWidth:n?J.sizePopupArrow:0,borderRadius:J.borderRadius}),ce=ut(()=>{t?.selectable&&t?.multiple||(b?.(!1,{source:"menu"}),le(!1))}),he=()=>{const Me=tn(_,["root"]),we=tn(B,["root"]);let se;return t?.items&&(se=l.createElement($d,{...t,classNames:{...Me,subMenu:{...Me}},styles:{...we,subMenu:{...we}}})),z&&(se=z(se)),se=l.Children.only(typeof se=="string"?l.createElement("span",null,se):se),l.createElement(MB,{prefixCls:`${j}-menu`,rootClassName:Q(K,q),expandIcon:l.createElement("span",{className:`${j}-menu-submenu-arrow`},D==="rtl"?l.createElement(Eu,{className:`${j}-menu-submenu-arrow-icon`}):l.createElement(xs,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ce,validator:({mode:be})=>{}},se)},[pe,Se]=fi("Dropdown",I.zIndex);let Ie=l.createElement(KT,{alignPoint:ie,...tn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:$,mouseLeaveDelay:S,visible:de,builtinPlacements:re,arrow:!!n,overlayClassName:ge,prefixCls:j,getPopupContainer:p||k,transitionName:V,trigger:ne,overlay:he,placement:A,onVisibleChange:fe,overlayStyle:{...I,zIndex:pe},autoDestroy:T??N},oe);return pe&&(Ie=l.createElement(ld.Provider,{value:Se},Ie)),Ie},BB=Ap(Fp,"align",void 0,"dropdown",e=>e),LB=e=>l.createElement(BB,{...e},l.createElement("span",null));Fp._InternalPanelDoNotUseOrYouWillBeFired=LB;var wm={exports:{}},VB=wm.exports,x2;function b6(){return x2||(x2=1,(function(e,t){(function(n,r){e.exports=r()})(VB,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",c="second",d="minute",f="hour",p="day",g="week",h="month",y="quarter",C="year",b="date",$="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={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(L){var H=["th","st","nd","rd"],_=L%100;return"["+L+(H[(_-20)%10]||H[_]||H[0])+"]"}},x=function(L,H,_){var B=String(L);return!B||B.length>=H?L:""+Array(H+1-B.length).join(_)+L},R={s:x,z:function(L){var H=-L.utcOffset(),_=Math.abs(H),B=Math.floor(_/60),I=_%60;return(H<=0?"+":"-")+x(B,2,"0")+":"+x(I,2,"0")},m:function L(H,_){if(H.date()<_.date())return-L(_,H);var B=12*(_.year()-H.year())+(_.month()-H.month()),I=H.clone().add(B,h),z=_-I<0,V=H.clone().add(B+(z?-1:1),h);return+(-(B+(_-I)/(z?I-V:V-I))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:C,w:g,d:p,D:b,h:f,m:d,s:c,ms:s,Q:y}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},O="en",N={};N[O]=M;var T="$isDayjsObject",P=function(L){return L instanceof U||!(!L||!L[T])},D=function L(H,_,B){var I;if(!H)return O;if(typeof H=="string"){var z=H.toLowerCase();N[z]&&(I=z),_&&(N[z]=_,I=z);var V=H.split("-");if(!I&&V.length>1)return L(V[0])}else{var A=H.name;N[A]=H,I=A}return!B&&I&&(O=I),I||!B&&O},k=function(L,H){if(P(L))return L.clone();var _=typeof H=="object"?H:{};return _.date=L,_.args=arguments,new U(_)},W=R;W.l=D,W.i=P,W.w=function(L,H){return k(L,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var U=(function(){function L(_){this.$L=D(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[T]=!0}var H=L.prototype;return H.parse=function(_){this.$d=(function(B){var I=B.date,z=B.utc;if(I===null)return new Date(NaN);if(W.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var V=I.match(S);if(V){var A=V[2]-1||0,j=(V[7]||"0").substring(0,3);return z?new Date(Date.UTC(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(I)})(_),this.init()},H.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},H.$utils=function(){return W},H.isValid=function(){return this.$d.toString()!==$},H.isSame=function(_,B){var I=k(_);return this.startOf(B)<=I&&I<=this.endOf(B)},H.isAfter=function(_,B){return k(_)<this.startOf(B)},H.isBefore=function(_,B){return this.endOf(B)<k(_)},H.$g=function(_,B,I){return W.u(_)?this[B]:this.set(I,_)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(_,B){var I=this,z=!!W.u(B)||B,V=W.p(_),A=function(ne,ie){var de=W.w(I.$u?Date.UTC(I.$y,ie,ne):new Date(I.$y,ie,ne),I);return z?de:de.endOf(p)},j=function(ne,ie){return W.w(I.toDate()[ne].apply(I.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ie)),I)},q=this.$W,X=this.$M,K=this.$D,J="set"+(this.$u?"UTC":"");switch(V){case C:return z?A(1,0):A(31,11);case h:return z?A(1,X):A(0,X+1);case g:var Z=this.$locale().weekStart||0,oe=(q<Z?q+7:q)-Z;return A(z?K-oe:K+(6-oe),X);case p:case b:return j(J+"Hours",0);case f:return j(J+"Minutes",1);case d:return j(J+"Seconds",2);case c:return j(J+"Milliseconds",3);default:return this.clone()}},H.endOf=function(_){return this.startOf(_,!1)},H.$set=function(_,B){var I,z=W.p(_),V="set"+(this.$u?"UTC":""),A=(I={},I[p]=V+"Date",I[b]=V+"Date",I[h]=V+"Month",I[C]=V+"FullYear",I[f]=V+"Hours",I[d]=V+"Minutes",I[c]=V+"Seconds",I[s]=V+"Milliseconds",I)[z],j=z===p?this.$D+(B-this.$W):B;if(z===h||z===C){var q=this.clone().set(b,1);q.$d[A](j),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},H.set=function(_,B){return this.clone().$set(_,B)},H.get=function(_){return this[W.p(_)]()},H.add=function(_,B){var I,z=this;_=Number(_);var V=W.p(B),A=function(X){var K=k(z);return W.w(K.date(K.date()+Math.round(X*_)),z)};if(V===h)return this.set(h,this.$M+_);if(V===C)return this.set(C,this.$y+_);if(V===p)return A(1);if(V===g)return A(7);var j=(I={},I[d]=r,I[f]=i,I[c]=n,I)[V]||1,q=this.$d.getTime()+_*j;return W.w(q,this)},H.subtract=function(_,B){return this.add(-1*_,B)},H.format=function(_){var B=this,I=this.$locale();if(!this.isValid())return I.invalidDate||$;var z=_||"YYYY-MM-DDTHH:mm:ssZ",V=W.z(this),A=this.$H,j=this.$m,q=this.$M,X=I.weekdays,K=I.months,J=I.meridiem,Z=function(ie,de,le,fe){return ie&&(ie[de]||ie(B,z))||le[de].slice(0,fe)},oe=function(ie){return W.s(A%12||12,ie,"0")},ne=J||function(ie,de,le){var fe=ie<12?"AM":"PM";return le?fe.toLowerCase():fe};return z.replace(w,(function(ie,de){return de||(function(le){switch(le){case"YY":return String(B.$y).slice(-2);case"YYYY":return W.s(B.$y,4,"0");case"M":return q+1;case"MM":return W.s(q+1,2,"0");case"MMM":return Z(I.monthsShort,q,K,3);case"MMMM":return Z(K,q);case"D":return B.$D;case"DD":return W.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Z(I.weekdaysMin,B.$W,X,2);case"ddd":return Z(I.weekdaysShort,B.$W,X,3);case"dddd":return X[B.$W];case"H":return String(A);case"HH":return W.s(A,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ne(A,j,!0);case"A":return ne(A,j,!1);case"m":return String(j);case"mm":return W.s(j,2,"0");case"s":return String(B.$s);case"ss":return W.s(B.$s,2,"0");case"SSS":return W.s(B.$ms,3,"0");case"Z":return V}return null})(ie)||V.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(_,B,I){var z,V=this,A=W.p(B),j=k(_),q=(j.utcOffset()-this.utcOffset())*r,X=this-j,K=function(){return W.m(V,j)};switch(A){case C:z=K()/12;break;case h:z=K();break;case y:z=K()/3;break;case g:z=(X-q)/6048e5;break;case p:z=(X-q)/864e5;break;case f:z=X/i;break;case d:z=X/r;break;case c:z=X/n;break;default:z=X}return I?z:W.a(z)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return N[this.$L]},H.locale=function(_,B){if(!_)return this.$L;var I=this.clone(),z=D(_,B,!0);return z&&(I.$L=z),I},H.clone=function(){return W.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},L})(),G=U.prototype;return k.prototype=G,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",p],["$M",h],["$y",C],["$D",b]].forEach((function(L){G[L[1]]=function(H){return this.$g(H,L[0],L[1])}})),k.extend=function(L,H){return L.$i||(L(H,U,k),L.$i=!0),k},k.locale=D,k.isDayjs=P,k.unix=function(L){return k(1e3*L)},k.en=N[O],k.Ls=N,k.p={},k}))})(wm)),wm.exports}var FB=b6();const gn=Ea(FB);var Em={exports:{}},kB=Em.exports,w2;function WB(){return w2||(w2=1,(function(e,t){(function(n,r){e.exports=r()})(kB,(function(){return function(n,r){r.prototype.weekday=function(i){var s=this.$locale().weekStart||0,c=this.$W,d=(c<s?c+7:c)-s;return this.$utils().u(i)?d:this.subtract(d,"day").add(i,"day")}}}))})(Em)),Em.exports}var qB=WB();const YB=Ea(qB);var Mm={exports:{}},UB=Mm.exports,E2;function GB(){return E2||(E2=1,(function(e,t){(function(n,r){e.exports=r()})(UB,(function(){return function(n,r,i){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,C,b,$){var S=h.name?h:h.$locale(),w=c(S[y]),M=c(S[C]),x=w||M.map((function(O){return O.slice(0,b)}));if(!$)return x;var R=S.weekStart;return x.map((function(O,N){return x[(N+(R||0))%7]}))},f=function(){return i.Ls[i.locale()]},p=function(h,y){return h.formats[y]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,$,S){return $||S.slice(1)}))})(h.formats[y.toUpperCase()])},g=function(){var h=this;return{months:function(y){return y?y.format("MMMM"):d(h,"months")},monthsShort:function(y){return y?y.format("MMM"):d(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):d(h,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):d(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):d(h,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return p(h.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},i.localeData=function(){var h=f();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(y){return p(h,y)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return d(f(),"months")},i.monthsShort=function(){return d(f(),"monthsShort","months",3)},i.weekdays=function(h){return d(f(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return d(f(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return d(f(),"weekdaysMin","weekdays",2,h)}}}))})(Mm)),Mm.exports}var XB=GB();const KB=Ea(XB);var Rm={exports:{}},QB=Rm.exports,M2;function ZB(){return M2||(M2=1,(function(e,t){(function(n,r){e.exports=r()})(QB,(function(){var n="week",r="year";return function(i,s,c){var d=s.prototype;d.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(r).add(1,r).date(p),h=c(this).endOf(n);if(g.isBefore(h))return 1}var y=c(this).startOf(r).date(p).startOf(n).subtract(1,"millisecond"),C=this.diff(y,n,!0);return C<0?c(this).startOf("week").week():Math.ceil(C)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Rm)),Rm.exports}var JB=ZB();const eL=Ea(JB);var Om={exports:{}},tL=Om.exports,R2;function nL(){return R2||(R2=1,(function(e,t){(function(n,r){e.exports=r()})(tL,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),s=this.week(),c=this.year();return s===1&&i===11?c+1:i===0&&s>=52?c-1:c}}}))})(Om)),Om.exports}var rL=nL();const oL=Ea(rL);var Tm={exports:{}},aL=Tm.exports,O2;function iL(){return O2||(O2=1,(function(e,t){(function(n,r){e.exports=r()})(aL,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(c){var d=this,f=this.$locale();if(!this.isValid())return s.bind(this)(c);var p=this.$utils(),g=(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(h){switch(h){case"Q":return Math.ceil((d.$M+1)/3);case"Do":return f.ordinal(d.$D);case"gggg":return d.weekYear();case"GGGG":return d.isoWeekYear();case"wo":return f.ordinal(d.week(),"W");case"w":case"ww":return p.s(d.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(d.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(d.$H===0?24:d.$H),h==="k"?1:2,"0");case"X":return Math.floor(d.$d.getTime()/1e3);case"x":return d.$d.getTime();case"z":return"["+d.offsetName()+"]";case"zzz":return"["+d.offsetName("long")+"]";default:return h}}));return s.bind(this)(g)}}}))})(Tm)),Tm.exports}var lL=iL();const sL=Ea(lL);var Nm={exports:{}},cL=Nm.exports,T2;function uL(){return T2||(T2=1,(function(e,t){(function(n,r){e.exports=r()})(cL,(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,i=/\d/,s=/\d\d/,c=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,f={},p=function(S){return(S=+S)+(S>68?1900:2e3)},g=function(S){return function(w){this[S]=+w}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var M=w.match(/([+-]|\d\d)/g),x=60*M[1]+(+M[2]||0);return x===0?0:M[0]==="+"?-x:x})(S)}],y=function(S){var w=f[S];return w&&(w.indexOf?w:w.s.concat(w.f))},C=function(S,w){var M,x=f.meridiem;if(x){for(var R=1;R<=24;R+=1)if(S.indexOf(x(R,0,w))>-1){M=R>12;break}}else M=S===(w?"pm":"PM");return M},b={A:[d,function(S){this.afternoon=C(S,!1)}],a:[d,function(S){this.afternoon=C(S,!0)}],Q:[i,function(S){this.month=3*(S-1)+1}],S:[i,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[c,g("seconds")],ss:[c,g("seconds")],m:[c,g("minutes")],mm:[c,g("minutes")],H:[c,g("hours")],h:[c,g("hours")],HH:[c,g("hours")],hh:[c,g("hours")],D:[c,g("day")],DD:[s,g("day")],Do:[d,function(S){var w=f.ordinal,M=S.match(/\d+/);if(this.day=M[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===S&&(this.day=x)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(S){var w=y("months"),M=(y("monthsShort")||w.map((function(x){return x.slice(0,3)}))).indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[d,function(S){var w=y("months").indexOf(S)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(S){this.year=p(S)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function $(S){var w,M;w=S,M=f&&f.formats;for(var x=(S=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(k,W,U){var G=U&&U.toUpperCase();return W||M[U]||n[U]||M[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,H,_){return H||_.slice(1)}))}))).match(r),R=x.length,O=0;O<R;O+=1){var N=x[O],T=b[N],P=T&&T[0],D=T&&T[1];x[O]=D?{regex:P,parser:D}:N.replace(/^\[|\]$/g,"")}return function(k){for(var W={},U=0,G=0;U<R;U+=1){var L=x[U];if(typeof L=="string")G+=L.length;else{var H=L.regex,_=L.parser,B=k.slice(G),I=H.exec(B)[0];_.call(W,I),k=k.replace(I,"")}}return(function(z){var V=z.afternoon;if(V!==void 0){var A=z.hours;V?A<12&&(z.hours+=12):A===12&&(z.hours=0),delete z.afternoon}})(W),W}}return function(S,w,M){M.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(p=S.parseTwoDigitYear);var x=w.prototype,R=x.parse;x.parse=function(O){var N=O.date,T=O.utc,P=O.args;this.$u=T;var D=P[1];if(typeof D=="string"){var k=P[2]===!0,W=P[3]===!0,U=k||W,G=P[2];W&&(G=P[2]),f=this.$locale(),!k&&G&&(f=M.Ls[G]),this.$d=(function(B,I,z,V){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*B);var A=$(I)(B),j=A.year,q=A.month,X=A.day,K=A.hours,J=A.minutes,Z=A.seconds,oe=A.milliseconds,ne=A.zone,ie=A.week,de=new Date,le=X||(j||q?1:de.getDate()),fe=j||de.getFullYear(),ge=0;j&&!q||(ge=q>0?q-1:de.getMonth());var re,ce=K||0,he=J||0,pe=Z||0,Se=oe||0;return ne?new Date(Date.UTC(fe,ge,le,ce,he,pe,Se+60*ne.offset*1e3)):z?new Date(Date.UTC(fe,ge,le,ce,he,pe,Se)):(re=new Date(fe,ge,le,ce,he,pe,Se),ie&&(re=V(re).week(ie).toDate()),re)}catch{return new Date("")}})(N,D,T,M),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),U&&N!=this.format(D)&&(this.$d=new Date("")),f={}}else if(D instanceof Array)for(var L=D.length,H=1;H<=L;H+=1){P[1]=D[H-1];var _=M.apply(this,P);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}H===L&&(this.$d=new Date(""))}else R.call(this,O)}}}))})(Nm)),Nm.exports}var dL=uL();const fL=Ea(dL);gn.extend(fL);gn.extend(sL);gn.extend(YB);gn.extend(KB);gn.extend(eL);gn.extend(oL);gn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(s){var c=(s||"").replace("Wo","wo");return r.bind(this)(c)}});var mL={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"},zi=function(t){var n=mL[t];return n||t.split("_")[0]},v6={getNow:function(){var t=gn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return gn(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 gn().locale(zi(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(zi(t)).weekday(0)},getWeek:function(t,n){return n.locale(zi(t)).week()},getShortWeekDays:function(t){return gn().locale(zi(t)).localeData().weekdaysMin()},getShortMonths:function(t){return gn().locale(zi(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(zi(t)).format(r)},parse:function(t,n,r){for(var i=zi(t),s=0;s<r.length;s+=1){var c=r[s],d=n;if(c.includes("wo")||c.includes("Wo")){for(var f=d.split("-")[0],p=d.split("-")[1],g=gn(f,"YYYY").startOf("year").locale(i),h=0;h<=52;h+=1){var y=g.add(h,"week");if(y.format("Wo")===p)return y}return null}var C=gn(d,c,!0).locale(i);if(C.isValid())return C}return null}}};function pL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var jo=l.createContext(null);function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function N2(e,t,n){return t=gL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gL(e){var t=hL(e,"string");return Tu(t)=="symbol"?t:String(t)}function hL(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yL={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 S6(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,s=e.transitionName,c=e.getPopupContainer,d=e.children,f=e.range,p=e.placement,g=e.builtinPlacements,h=g===void 0?yL:g,y=e.direction,C=e.visible,b=e.onClose,$=l.useContext(jo),S=$.prefixCls,w="".concat(S,"-dropdown"),M=pL(p,y==="rtl");return l.createElement(ud,{showAction:[],hideAction:["click"],popupPlacement:M,builtinPlacements:h,prefixCls:w,popupMotion:{motionName:s},popup:t,popupAlign:i,popupVisible:C,popupClassName:Q(r,N2(N2({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(R){R||b()}},d)}function bL(e){return $L(e)||CL(e)||SL(e)||vL()}function vL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
218
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SL(e,t){if(e){if(typeof e=="string")return Wv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wv(e,t)}}function CL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $L(e){if(Array.isArray(e))return Wv(e)}function Wv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r1(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 ul(e){return e==null?[]:Array.isArray(e)?e:[e]}function lu(e,t,n){var r=bL(e);return r[t]=n,r}function kp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function C6(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 $6(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(s){return e[s]});return r!==i?e[i]:void 0}function x6(e){return kp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Nu(e){"@babel/helpers - typeof";return Nu=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},Nu(e)}function I2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function P2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I2(Object(n),!0).forEach(function(r){xL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xL(e,t,n){return t=wL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wL(e){var t=EL(e,"string");return Nu(t)=="symbol"?t:String(t)}function EL(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o1(e,t,n,r){var i=l.useMemo(function(){return e||function(c,d){var f=c;return t&&d.type==="date"?t(f,d.today):n&&d.type==="month"?n(f,d.locale):d.originNode}},[e,n,t]),s=l.useCallback(function(c,d){return i(c,P2(P2({},d),{},{range:r}))},[i,r]);return s}function ML(e,t){return NL(e)||TL(e,t)||OL(e,t)||RL()}function RL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
219
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OL(e,t){if(e){if(typeof e=="string")return z2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z2(e,t)}}function z2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function NL(e){if(Array.isArray(e))return e}function w6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),i=ML(r,2),s=i[0],c=i[1],d=function(g,h){c(function(y){return lu(y,h,g)})},f=l.useMemo(function(){return s.map(function(p,g){if(p)return!0;var h=e[g];return h?!!(!n[g]&&!h||h&&t(h,{activeIndex:g})):!1})},[e,s,t,n]);return[f,d]}function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}function A2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function D2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A2(Object(n),!0).forEach(function(r){IL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IL(e,t,n){return t=PL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PL(e){var t=zL(e,"string");return Iu(t)=="symbol"?t:String(t)}function zL(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E6(e,t,n,r,i){var s="",c=[];return e&&c.push(i?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),s=c.join(":"),r&&(s+=".SSS"),i&&(s+=" A"),s}function AL(e,t,n,r,i,s){var c=e.fieldDateTimeFormat,d=e.fieldDateFormat,f=e.fieldTimeFormat,p=e.fieldMonthFormat,g=e.fieldYearFormat,h=e.fieldWeekFormat,y=e.fieldQuarterFormat,C=e.yearFormat,b=e.cellYearFormat,$=e.cellQuarterFormat,S=e.dayFormat,w=e.cellDateFormat,M=E6(t,n,r,i,s);return D2(D2({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(M),fieldDateFormat:d||"YYYY-MM-DD",fieldTimeFormat:f||M,fieldMonthFormat:p||"YYYY-MM",fieldYearFormat:g||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:y||"YYYY-[Q]Q",yearFormat:C||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:$||"[Q]Q",cellDateFormat:w||S||"D"})}function M6(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return ae.useMemo(function(){return AL(e,n,r,i,s,c)},[e,n,r,i,s,c])}function j2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j2(Object(n),!0).forEach(function(r){DL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DL(e,t,n){return t=jL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jL(e){var t=_L(e,"string");return nl(t)=="symbol"?t:String(t)}function _L(e,t){if(nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qv(e,t){return VL(e)||LL(e,t)||BL(e,t)||HL()}function HL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
220
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BL(e,t){if(e){if(typeof e=="string")return _2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _2(e,t)}}function _2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function VL(e){if(Array.isArray(e))return e}function nl(e){"@babel/helpers - typeof";return nl=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},nl(e)}function _c(e,t,n){return n??t.some(function(r){return e.includes(r)})}var FL=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function kL(e){var t=kp(e,FL),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=nl(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function WL(e){return e&&typeof e=="string"}function R6(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function O6(e,t,n,r,i){var s=t,c=n,d=r;if(!e&&!s&&!c&&!d&&!i)s=!0,c=!0,d=!0;else if(e){var f,p,g,h=[s,c,d].some(function(b){return b===!1}),y=[s,c,d].some(function(b){return b===!0}),C=h?!0:!y;s=(f=s)!==null&&f!==void 0?f:C,c=(p=c)!==null&&p!==void 0?p:C,d=(g=d)!==null&&g!==void 0?g:C}return[s,c,d,i]}function T6(e){var t=e.showTime,n=kL(e),r=qv(n,2),i=r[0],s=r[1],c=t&&nl(t)==="object"?t:{},d=ps(ps({defaultOpenValue:c.defaultOpenValue||c.defaultValue},i),c),f=d.showMillisecond,p=d.showHour,g=d.showMinute,h=d.showSecond,y=R6(p,g,h,f),C=O6(y,p,g,h,f),b=qv(C,3);return p=b[0],g=b[1],h=b[2],[d,ps(ps({},d),{},{showHour:p,showMinute:g,showSecond:h,showMillisecond:f}),d.format,s]}function N6(e,t,n,r,i){var s=e==="time";if(e==="datetime"||s){for(var c=r,d=C6(e,i,null),f=d,p=[t,n],g=0;g<p.length;g+=1){var h=ul(p[g])[0];if(WL(h)){f=h;break}}var y=c.showHour,C=c.showMinute,b=c.showSecond,$=c.showMillisecond,S=c.use12Hours,w=_c(f,["a","A","LT","LLL","LTS"],S),M=R6(y,C,b,$);M||(y=_c(f,["H","h","k","LT","LLL"]),C=_c(f,["m","LT","LLL"]),b=_c(f,["s","LTS"]),$=_c(f,["SSS"]));var x=O6(M,y,C,b,$),R=qv(x,3);y=R[0],C=R[1],b=R[2];var O=t||E6(y,C,b,$,w);return ps(ps({},c),{},{format:O,showHour:y,showMinute:C,showSecond:b,showMillisecond:$,use12Hours:w})}return null}function Yv(e){"@babel/helpers - typeof";return Yv=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},Yv(e)}function qL(e,t,n){if(t===!1)return null;var r=t&&Yv(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var By=7;function pi(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Uv(e,t,n){return pi(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function rl(e,t,n){return pi(t,n,function(){return e.getYear(t)===e.getYear(n)})}function H2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function YL(e,t,n){return pi(t,n,function(){return rl(e,t,n)&&H2(e,t)===H2(e,n)})}function a1(e,t,n){return pi(t,n,function(){return rl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function i1(e,t,n){return pi(t,n,function(){return rl(e,t,n)&&a1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function I6(e,t,n){return pi(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function P6(e,t,n){return pi(t,n,function(){return i1(e,t,n)&&I6(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Qc(e,t,n,r){return pi(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return rl(e,i,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Rr(e,t,n,r,i){switch(i){case"date":return i1(e,n,r);case"week":return Qc(e,t.locale,n,r);case"month":return a1(e,n,r);case"quarter":return YL(e,n,r);case"year":return rl(e,n,r);case"decade":return Uv(e,n,r);case"time":return I6(e,n,r);default:return P6(e,n,r)}}function Wp(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Yf(e,t,n,r,i){return Rr(e,t,n,r,i)?!0:e.isAfter(n,r)}function UL(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),s=t.getWeekDay(i),c=t.addDate(i,r-s);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function er(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function np(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(c,d){n?r=e[c](r,e[i[d]](n)):r=e[c](r,0)}),r}function GL(e,t,n,r,i){var s=ut(function(c,d){return!!(n&&n(c,d)||r&&e.isAfter(r,c)&&!Rr(e,t,r,c,d.type)||i&&e.isAfter(c,i)&&!Rr(e,t,i,c,d.type))});return s}function Gv(e){"@babel/helpers - typeof";return Gv=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},Gv(e)}function XL(e,t,n){return l.useMemo(function(){var r=C6(e,t,n),i=ul(r),s=i[0],c=Gv(s)==="object"&&s.type==="mask"?s.format:null;return[i.map(function(d){return typeof d=="string"||typeof d=="function"?d:d.format}),c]},[e,t,n])}function KL(e,t,n){return typeof e[0]=="function"||n?!0:t}function Pu(e){"@babel/helpers - typeof";return Pu=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},Pu(e)}function B2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(n),!0).forEach(function(r){ZL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZL(e,t,n){return t=JL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JL(e){var t=eV(e,"string");return Pu(t)=="symbol"?t:String(t)}function eV(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tV(e,t,n,r){var i=ut(function(s,c){var d=QL({type:t},c);if(delete d.activeIndex,!e.isValidate(s)||n&&n(s,d))return!0;if((t==="date"||t==="time")&&r){var f,p=c&&c.activeIndex===1?"end":"start",g=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,s,p,{from:d.from}))||{},h=g.disabledHours,y=g.disabledMinutes,C=g.disabledSeconds,b=g.disabledMilliseconds,$=r.disabledHours,S=r.disabledMinutes,w=r.disabledSeconds,M=h||$,x=y||S,R=C||w,O=e.getHour(s),N=e.getMinute(s),T=e.getSecond(s),P=e.getMillisecond(s);if(M&&M().includes(O)||x&&x(O).includes(N)||R&&R(O,N).includes(T)||b&&b(O,N,T).includes(P))return!0}return!1});return i}function zu(e){"@babel/helpers - typeof";return zu=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},zu(e)}function L2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(n),!0).forEach(function(r){nV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nV(e,t,n){return t=rV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rV(e){var t=oV(e,"string");return zu(t)=="symbol"?t:String(t)}function oV(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V2(e,t){return sV(e)||lV(e,t)||iV(e,t)||aV()}function aV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
221
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iV(e,t){if(e){if(typeof e=="string")return F2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F2(e,t)}}function F2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function sV(e){if(Array.isArray(e))return e}function Uf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&ul(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function z6(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,s=i===void 0?"date":i,c=e.prefixCls,d=c===void 0?"rc-picker":c,f=e.previewValue,p=f===void 0?"hover":f,g=e.styles,h=g===void 0?{}:g,y=e.classNames,C=y===void 0?{}:y,b=e.order,$=b===void 0?!0:b,S=e.components,w=S===void 0?{}:S,M=e.inputRender,x=e.allowClear,R=e.clearIcon,O=e.needConfirm,N=e.multiple,T=e.format,P=e.inputReadOnly,D=e.disabledDate,k=e.minDate,W=e.maxDate,U=e.showTime,G=e.value,L=e.defaultValue,H=e.pickerValue,_=e.defaultPickerValue,B=Uf(G),I=Uf(L),z=Uf(H),V=Uf(_),A=s==="date"&&U?"datetime":s,j=A==="time"||A==="datetime",q=j||N,X=O??j,K=T6(e),J=V2(K,4),Z=J[0],oe=J[1],ne=J[2],ie=J[3],de=M6(r,oe),le=l.useMemo(function(){return N6(A,ne,ie,Z,de)},[A,ne,ie,Z,de]),fe=l.useMemo(function(){return Hc(Hc({},e),{},{previewValue:p,prefixCls:d,locale:de,picker:s,styles:h,classNames:C,order:$,components:Hc({input:M},w),clearIcon:qL(d,x,R),showTime:le,value:B,defaultValue:I,pickerValue:z,defaultPickerValue:V},t?.())},[e]),ge=XL(A,de,T),re=V2(ge,2),ce=re[0],he=re[1],pe=KL(ce,P,N),Se=GL(n,r,D,k,W),Ie=tV(n,s,Se,le),Me=l.useMemo(function(){return Hc(Hc({},fe),{},{needConfirm:X,inputReadOnly:pe,disabledDate:Se})},[fe,X,pe,Se]);return[Me,A,q,ce,he,Ie]}function k2(e,t){return fV(e)||dV(e,t)||uV(e,t)||cV()}function cV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
222
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uV(e,t){if(e){if(typeof e=="string")return W2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W2(e,t)}}function W2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function fV(e){if(Array.isArray(e))return e}function mV(e,t,n){var r=Yt(t,e),i=k2(r,2),s=i[0],c=i[1],d=ae.useState({}),f=k2(d,2),p=f[1],g=ut(function(S){c(S),p({})}),h=ae.useRef(e),y=ae.useRef(),C=function(){Ht.cancel(y.current)},b=ut(function(){g(h.current),n&&s!==h.current&&n(h.current)}),$=ut(function(S,w){C(),h.current=S,S||w?b():y.current=Ht(b)});return ae.useEffect(function(){return C},[]),[s,$]}function pV(e,t){return bV(e)||yV(e,t)||hV(e,t)||gV()}function gV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
223
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hV(e,t){if(e){if(typeof e=="string")return q2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q2(e,t)}}function q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function bV(e){if(Array.isArray(e))return e}function A6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(g){return g})?!1:e,s=mV(i,t||!1,r),c=pV(s,2),d=c[0],f=c[1];function p(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!h.inherit||d)&&f(g,h.force)}return[d,p]}function D6(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(i){var s;(s=t.current)===null||s===void 0||s.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function vV(e,t){return xV(e)||$V(e,t)||CV(e,t)||SV()}function SV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
224
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CV(e,t){if(e){if(typeof e=="string")return Y2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y2(e,t)}}function Y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $V(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function xV(e){if(Array.isArray(e))return e}function j6(e,t){return l.useMemo(function(){return e||(t?(tr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=vV(n,2),i=r[0],s=r[1];return{label:i,value:s}})):[])},[e,t])}function l1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,eR(function(){if(e)r.current(e);else{var i=Ht(function(){r.current(e)},n);return function(){Ht.cancel(i)}}},[e])}function U2(e,t){return RV(e)||MV(e,t)||EV(e,t)||wV()}function wV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EV(e,t){if(e){if(typeof e=="string")return G2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G2(e,t)}}function G2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function RV(e){if(Array.isArray(e))return e}function _6(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),i=U2(r,2),s=i[0],c=i[1],d=l.useState(!1),f=U2(d,2),p=f[0],g=f[1],h=l.useRef([]),y=l.useRef(null),C=l.useRef(null),b=function(R){y.current=R},$=function(R){return y.current===R},S=function(R){g(R)},w=function(R){return R&&(C.current=R),C.current},M=function(R){var O=h.current,N=new Set(O.filter(function(P){return R[P]||t[P]})),T=O[O.length-1]===0?1:0;return N.size>=2||e[T]?null:T};return l1(p||n,function(){p||(h.current=[],b(null))}),l.useEffect(function(){p&&h.current.push(s)},[p,s]),[p,S,w,s,c,M,h.current,b,$]}function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function X2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function K2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(n),!0).forEach(function(r){OV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OV(e,t,n){return t=TV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TV(e){var t=NV(e,"string");return Au(t)=="symbol"?t:String(t)}function NV(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IV(e,t){return DV(e)||AV(e,t)||zV(e,t)||PV()}function PV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
226
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zV(e,t){if(e){if(typeof e=="string")return Q2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q2(e,t)}}function Q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function DV(e){if(Array.isArray(e))return e}function jV(e,t,n,r,i,s){var c=n[n.length-1],d=function(p,g){var h=IV(e,2),y=h[0],C=h[1],b=K2(K2({},g),{},{from:$6(e,n)});return c===1&&t[0]&&y&&!Rr(r,i,y,p,b.type)&&r.isAfter(y,p)||c===0&&t[1]&&C&&!Rr(r,i,C,p,b.type)&&r.isAfter(p,C)?!0:s?.(p,b)};return d}function Ly(e,t){return LV(e)||BV(e,t)||HV(e,t)||_V()}function _V(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
227
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HV(e,t){if(e){if(typeof e=="string")return Z2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z2(e,t)}}function Z2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function LV(e){if(Array.isArray(e))return e}function Zc(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 Vy=[];function H6(e,t,n,r,i,s,c,d){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Vy,p=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Vy,g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Vy,h=arguments.length>11?arguments[11]:void 0,y=arguments.length>12?arguments[12]:void 0,C=arguments.length>13?arguments[13]:void 0,b=c==="time",$=s||0,S=function(B){var I=e.getNow();return b&&(I=np(e,I)),f[B]||n[B]||I},w=Ly(p,2),M=w[0],x=w[1],R=Yt(function(){return S(0)},M),O=Ly(R,2),N=O[0],T=O[1],P=Yt(function(){return S(1)},x),D=Ly(P,2),k=D[0],W=D[1],U=l.useMemo(function(){var _=[N,k][$];return b?_:np(e,_,g[$])},[b,N,k,$,e,g]),G=function(B){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[T,W][$];z(B);var V=[N,k];V[$]=B,h&&(!Rr(e,t,N,V[0],c)||!Rr(e,t,k,V[1],c))&&h(V,{source:I,range:$===1?"end":"start",mode:r})},L=function(B,I){if(d){var z={date:"month",week:"month",month:"year",quarter:"year"},V=z[c];if(V&&!Rr(e,t,B,I,V))return Zc(e,c,I,-1);if(c==="year"&&B){var A=Math.floor(e.getYear(B)/10),j=Math.floor(e.getYear(I)/10);if(A!==j)return Zc(e,c,I,-1)}}return I},H=l.useRef(null);return Nt(function(){if(i&&!f[$]){var _=b?null:e.getNow();if(H.current!==null&&H.current!==$?_=[N,k][$^1]:n[$]?_=$===0?n[0]:L(n[0],n[1]):n[$^1]&&(_=n[$^1]),_){y&&e.isAfter(y,_)&&(_=y);var B=d?Zc(e,c,_,1):_;C&&e.isAfter(B,C)&&(_=d?Zc(e,c,C,-1):C),G(_,"reset")}}},[i,$,n[$]]),l.useEffect(function(){i?H.current=$:H.current=null},[i,$]),Nt(function(){i&&f&&f[$]&&G(f[$],"reset")},[i,$]),[U,G]}function VV(e,t){return qV(e)||WV(e,t)||kV(e,t)||FV()}function FV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
228
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kV(e,t){if(e){if(typeof e=="string")return J2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J2(e,t)}}function J2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function qV(e){if(Array.isArray(e))return e}function B6(e,t){var n=l.useRef(e),r=l.useState({}),i=VV(r,2),s=i[1],c=function(p){return p&&t!==void 0?t:n.current},d=function(p){n.current=p,s({})};return[c,d,c(!0)]}function Sa(e,t){return GV(e)||UV(e,t)||L6(e,t)||YV()}function YV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
229
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function GV(e){if(Array.isArray(e))return e}function s1(e){return QV(e)||KV(e)||L6(e)||XV()}function XV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
230
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L6(e,t){if(e){if(typeof e=="string")return Xv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xv(e,t)}}function KV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QV(e){if(Array.isArray(e))return Xv(e)}function Xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ZV=[];function V6(e,t,n){var r=function(c){return c.map(function(d){return er(d,{generateConfig:e,locale:t,format:n[0]})})},i=function(c,d){for(var f=Math.max(c.length,d.length),p=-1,g=0;g<f;g+=1){var h=c[g]||null,y=d[g]||null;if(h!==y&&!P6(e,h,y)){p=g;break}}return[p<0,p!==0]};return[r,i]}function F6(e,t){return s1(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function JV(e){var t=B6(e),n=Sa(t,2),r=n[0],i=n[1],s=ut(function(){i(e)});return l.useEffect(function(){s()},[e]),[r,i]}function k6(e,t,n,r,i,s,c,d,f){var p=Yt(s,c),g=Sa(p,2),h=g[0],y=g[1],C=h||ZV,b=JV(C),$=Sa(b,2),S=$[0],w=$[1],M=V6(e,t,n),x=Sa(M,2),R=x[0],O=x[1],N=ut(function(P){var D=s1(P);if(r)for(var k=0;k<2;k+=1)D[k]=D[k]||null;else i&&(D=F6(D.filter(function(_){return _}),e));var W=O(S(),D),U=Sa(W,2),G=U[0],L=U[1];if(!G&&(w(D),d)){var H=R(D);d(D,H,{range:L?"end":"start"})}}),T=function(){f&&f(S())};return[C,y,S,N,T]}function W6(e,t,n,r,i,s,c,d,f,p){var g=e.generateConfig,h=e.locale,y=e.picker,C=e.onChange,b=e.allowEmpty,$=e.order,S=s.some(function(G){return G})?!1:$,w=V6(g,h,c),M=Sa(w,2),x=M[0],R=M[1],O=B6(t),N=Sa(O,2),T=N[0],P=N[1],D=ut(function(){P(t)});l.useEffect(function(){D()},[t]);var k=ut(function(G){var L=G===null,H=s1(G||T());if(L)for(var _=Math.max(s.length,H.length),B=0;B<_;B+=1)s[B]||(H[B]=null);S&&H[0]&&H[1]&&(H=F6(H,g)),i(H);var I=H,z=Sa(I,2),V=z[0],A=z[1],j=!V,q=!A,X=b?(!j||b[0])&&(!q||b[1]):!0,K=!$||j||q||Rr(g,h,V,A,y)||g.isAfter(A,V),J=(s[0]||!V||!p(V,{activeIndex:0}))&&(s[1]||!A||!p(A,{from:V,activeIndex:1})),Z=L||X&&K&&J;if(Z){n(H);var oe=R(H,t),ne=Sa(oe,1),ie=ne[0];if(C&&!ie){var de=H.every(function(le){return!le});C(L&&de?null:H,de?null:x(H))}}return Z}),W=ut(function(G,L){var H=lu(T(),G,r()[G]);P(H),L&&k()}),U=!d&&!f;return l1(!U,function(){U&&(k(),i(t),D())},2),[W,k]}function q6(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function eF(e){return oF(e)||rF(e)||nF(e)||tF()}function tF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
231
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nF(e,t){if(e){if(typeof e=="string")return Kv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kv(e,t)}}function rF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oF(e){if(Array.isArray(e))return Kv(e)}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aF(e,t,n,r,i,s){var c=e;function d(h,y,C){var b=s[h](c),$=C.find(function(x){return x.value===b});if(!$||$.disabled){var S=C.filter(function(x){return!x.disabled}),w=eF(S).reverse(),M=w.find(function(x){return x.value<=b})||S[0];M&&(b=M.value,c=s[y](c,b))}return b}var f=d("getHour","setHour",t()),p=d("getMinute","setMinute",n(f)),g=d("getSecond","setSecond",r(f,p));return d("getMillisecond","setMillisecond",i(f,p,g)),c}function Du(e){"@babel/helpers - typeof";return Du=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},Du(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eM(Object(n),!0).forEach(function(r){iF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iF(e,t,n){return t=lF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lF(e){var t=sF(e,"string");return Du(t)=="symbol"?t:String(t)}function sF(e,t){if(Du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gf(e,t){return fF(e)||dF(e,t)||uF(e,t)||cF()}function cF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
232
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uF(e,t){if(e){if(typeof e=="string")return nM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nM(e,t)}}function nM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function fF(e){if(Array.isArray(e))return e}function Xf(){return[]}function Kf(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,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,c=[],d=n>=1?n|0:1,f=e;f<=t;f+=d){var p=i.includes(f);(!p||!r)&&c.push({label:r1(f,s),value:f,disabled:p})}return c}function c1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,s=r.hourStep,c=s===void 0?1:s,d=r.minuteStep,f=d===void 0?1:d,p=r.secondStep,g=p===void 0?1:p,h=r.millisecondStep,y=h===void 0?100:h,C=r.hideDisabledOptions,b=r.disabledTime,$=r.disabledHours,S=r.disabledMinutes,w=r.disabledSeconds,M=l.useMemo(function(){return n||e.getNow()},[n,e]),x=l.useCallback(function(I){var z=b?.(I)||{};return[z.disabledHours||$||Xf,z.disabledMinutes||S||Xf,z.disabledSeconds||w||Xf,z.disabledMilliseconds||Xf]},[b,$,S,w]),R=l.useMemo(function(){return x(M)},[M,x]),O=Gf(R,4),N=O[0],T=O[1],P=O[2],D=O[3],k=l.useCallback(function(I,z,V,A){var j=Kf(0,23,c,C,I()),q=i?j.map(function(Z){return tM(tM({},Z),{},{label:r1(Z.value%12||12,2)})}):j,X=function(oe){return Kf(0,59,f,C,z(oe))},K=function(oe,ne){return Kf(0,59,g,C,V(oe,ne))},J=function(oe,ne,ie){return Kf(0,999,y,C,A(oe,ne,ie),3)};return[q,X,K,J]},[C,c,i,y,f,g]),W=l.useMemo(function(){return k(N,T,P,D)},[k,N,T,P,D]),U=Gf(W,4),G=U[0],L=U[1],H=U[2],_=U[3],B=function(z,V){var A=function(){return G},j=L,q=H,X=_;if(V){var K=x(V),J=Gf(K,4),Z=J[0],oe=J[1],ne=J[2],ie=J[3],de=k(Z,oe,ne,ie),le=Gf(de,4),fe=le[0],ge=le[1],re=le[2],ce=le[3];A=function(){return fe},j=ge,q=re,X=ce}var he=aF(z,A,j,q,X,e);return he};return[B,G,L,H,_]}function mF(e,t){return yF(e)||hF(e,t)||gF(e,t)||pF()}function pF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
233
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gF(e,t){if(e){if(typeof e=="string")return rM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rM(e,t)}}function rM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function yF(e){if(Array.isArray(e))return e}function bF(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,s=e.showTime,c=e.onSubmit,d=e.onNow,f=e.invalid,p=e.needConfirm,g=e.generateConfig,h=e.disabledDate,y=l.useContext(jo),C=y.prefixCls,b=y.locale,$=y.button,S=$===void 0?"button":$,w=y.classNames,M=y.styles,x=g.getNow(),R=c1(g,s,x),O=mF(R,1),N=O[0],T=r?.(t),P=h(x,{type:t}),D=function(){if(!P){var _=N(x);d(_)}},k="".concat(C,"-now"),W="".concat(k,"-btn"),U=i&&l.createElement("li",{className:k},l.createElement("a",{className:Q(W,P&&"".concat(W,"-disabled")),"aria-disabled":P,onClick:D},n==="date"?b.today:b.now)),G=p&&l.createElement("li",{className:"".concat(C,"-ok")},l.createElement(S,{disabled:f,onClick:c},b.ok)),L=(U||G)&&l.createElement("ul",{className:"".concat(C,"-ranges")},U,G);return!T&&!L?null:l.createElement("div",{className:Q("".concat(C,"-footer"),w.popup.footer),style:M.popup.footer},T&&l.createElement("div",{className:"".concat(C,"-footer-extra")},T),L)}function oM(e){return $F(e)||CF(e)||SF(e)||vF()}function vF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
234
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SF(e,t){if(e){if(typeof e=="string")return Qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qv(e,t)}}function CF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $F(e){if(Array.isArray(e))return Qv(e)}function Qv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y6(e,t,n){function r(i,s){var c=i.findIndex(function(f){return Rr(e,t,f,s,n)});if(c===-1)return[].concat(oM(i),[s]);var d=oM(i);return d.splice(c,1),d}return r}var U6=l.createContext(null),dl=l.createContext(null);function qp(){return l.useContext(dl)}function Hs(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,s=e.disabledDate,c=e.minDate,d=e.maxDate,f=e.cellRender,p=e.hoverValue,g=e.hoverRangeValue,h=e.onHover,y=e.values,C=e.pickerValue,b=e.onSelect,$=e.prevIcon,S=e.nextIcon,w=e.superPrevIcon,M=e.superNextIcon,x=l.useContext(U6),R=x.classNames,O=x.styles,N=r.getNow(),T={now:N,values:y,pickerValue:C,prefixCls:n,classNames:R,styles:O,disabledDate:s,minDate:c,maxDate:d,cellRender:f,hoverValue:p,hoverRangeValue:g,onHover:h,locale:i,generateConfig:r,onSelect:b,panelType:t,prevIcon:$,nextIcon:S,superPrevIcon:w,superNextIcon:M};return[T,N]}var li=l.createContext({});function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aM(Object(n),!0).forEach(function(r){Hi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hi(e,t,n){return t=wF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wF(e){var t=EF(e,"string");return ju(t)=="symbol"?t:String(t)}function EF(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MF(e,t){return NF(e)||TF(e,t)||OF(e,t)||RF()}function RF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
235
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OF(e,t){if(e){if(typeof e=="string")return iM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iM(e,t)}}function iM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function NF(e){if(Array.isArray(e))return e}function xd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,s=e.prefixColumn,c=e.rowClassName,d=e.titleFormat,f=e.getCellText,p=e.getCellClassName,g=e.headerCells,h=e.cellSelection,y=h===void 0?!0:h,C=e.disabledDate,b=qp(),$=b.prefixCls,S=b.classNames,w=b.styles,M=b.panelType,x=b.now,R=b.disabledDate,O=b.cellRender,N=b.onHover,T=b.hoverValue,P=b.hoverRangeValue,D=b.generateConfig,k=b.values,W=b.locale,U=b.onSelect,G=C||R,L="".concat($,"-cell"),H=l.useContext(li),_=H.onCellDblClick,B=function(K){return k.some(function(J){return J&&Rr(D,W,K,J,M)})},I=[],z=0;z<t;z+=1){for(var V=[],A=void 0,j=function(){var K=z*n+q,J=i(r,K),Z=G?.(J,{type:M});q===0&&(A=J,s&&V.push(s(A)));var oe=!1,ne=!1,ie=!1;if(y&&P){var de=MF(P,2),le=de[0],fe=de[1];oe=Wp(D,le,fe,J),ne=Rr(D,W,J,le,M),ie=Rr(D,W,J,fe,M)}var ge=d?er(J,{locale:W,format:d,generateConfig:D}):void 0,re=l.createElement("div",{className:"".concat(L,"-inner")},f(J));V.push(l.createElement("td",{key:q,title:ge,className:Q(L,S.item,xF(Hi(Hi(Hi(Hi(Hi(Hi({},"".concat(L,"-disabled"),Z),"".concat(L,"-hover"),(T||[]).some(function(ce){return Rr(D,W,J,ce,M)})),"".concat(L,"-in-range"),oe&&!ne&&!ie),"".concat(L,"-range-start"),ne),"".concat(L,"-range-end"),ie),"".concat($,"-cell-selected"),!P&&M!=="week"&&B(J)),p(J))),style:w.item,onClick:function(){Z||U(J)},onDoubleClick:function(){!Z&&_&&_()},onMouseEnter:function(){Z||N?.(J)},onMouseLeave:function(){Z||N?.(null)}},O?O(J,{prefixCls:$,originNode:re,today:x,type:M,locale:W}):re))},q=0;q<n;q+=1)j();I.push(l.createElement("tr",{key:z,className:c?.(A)},V))}return l.createElement("div",{className:Q("".concat($,"-body"),S.body),style:w.body},l.createElement("table",{className:Q("".concat($,"-content"),S.content),style:w.content},g&&l.createElement("thead",null,l.createElement("tr",null,g)),l.createElement("tbody",null,I)))}var Qf={visibility:"hidden"};function Bs(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,s=e.getEnd,c=e.children,d=qp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.prevIcon,y=h===void 0?"‹":h,C=d.nextIcon,b=C===void 0?"›":C,$=d.superPrevIcon,S=$===void 0?"«":$,w=d.superNextIcon,M=w===void 0?"»":w,x=d.minDate,R=d.maxDate,O=d.generateConfig,N=d.locale,T=d.pickerValue,P=d.panelType,D="".concat(f,"-header"),k=l.useContext(li),W=k.hidePrev,U=k.hideNext,G=k.hideHeader,L=l.useMemo(function(){if(!x||!t||!s)return!1;var X=s(t(-1,T));return!Yf(O,N,X,x,P)},[x,t,T,s,O,N,P]),H=l.useMemo(function(){if(!x||!n||!s)return!1;var X=s(n(-1,T));return!Yf(O,N,X,x,P)},[x,n,T,s,O,N,P]),_=l.useMemo(function(){if(!R||!t||!i)return!1;var X=i(t(1,T));return!Yf(O,N,R,X,P)},[R,t,T,i,O,N,P]),B=l.useMemo(function(){if(!R||!n||!i)return!1;var X=i(n(1,T));return!Yf(O,N,R,X,P)},[R,n,T,i,O,N,P]),I=function(K){t&&r(t(K,T))},z=function(K){n&&r(n(K,T))};if(G)return null;var V="".concat(D,"-prev-btn"),A="".concat(D,"-next-btn"),j="".concat(D,"-super-prev-btn"),q="".concat(D,"-super-next-btn");return l.createElement("div",{className:Q(D,p.header),style:g.header},n&&l.createElement("button",{type:"button","aria-label":N.previousYear,onClick:function(){return z(-1)},tabIndex:-1,className:Q(j,H&&"".concat(j,"-disabled")),disabled:H,style:W?Qf:{}},S),t&&l.createElement("button",{type:"button","aria-label":N.previousMonth,onClick:function(){return I(-1)},tabIndex:-1,className:Q(V,L&&"".concat(V,"-disabled")),disabled:L,style:W?Qf:{}},y),l.createElement("div",{className:"".concat(D,"-view")},c),t&&l.createElement("button",{type:"button","aria-label":N.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:Q(A,_&&"".concat(A,"-disabled")),disabled:_,style:U?Qf:{}},b),n&&l.createElement("button",{type:"button","aria-label":N.nextYear,onClick:function(){return z(1)},tabIndex:-1,className:Q(q,B&&"".concat(q,"-disabled")),disabled:B,style:U?Qf:{}},M))}function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zv.apply(this,arguments)}function Fy(e,t,n){return t=IF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IF(e){var t=PF(e,"string");return _u(t)=="symbol"?t:String(t)}function PF(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zF(e,t){return _F(e)||jF(e,t)||DF(e,t)||AF()}function AF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DF(e,t){if(e){if(typeof e=="string")return lM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lM(e,t)}}function lM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function _F(e){if(Array.isArray(e))return e}function Yp(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,s=e.generateConfig,c=e.pickerValue,d=e.onPickerValueChange,f=e.onModeChange,p=e.mode,g=p===void 0?"date":p,h=e.disabledDate,y=e.onSelect,C=e.onHover,b=e.showWeek,$="".concat(t,"-").concat(r,"-panel"),S="".concat(t,"-cell"),w=g==="week",M=Hs(e,g),x=zF(M,2),R=x[0],O=x[1],N=s.locale.getWeekFirstDay(i.locale),T=s.setDate(c,1),P=UL(i.locale,s,T),D=s.getMonth(c),k=b===void 0?w:b,W=k?function(j){var q=h?.(j,{type:"week"});return l.createElement("td",{key:"week",className:Q(S,"".concat(S,"-week"),Fy({},"".concat(S,"-disabled"),q)),onClick:function(){q||y(j)},onMouseEnter:function(){q||C?.(j)},onMouseLeave:function(){q||C?.(null)}},l.createElement("div",{className:"".concat(S,"-inner")},s.locale.getWeek(i.locale,j)))}:null,U=[],G=i.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(i.locale):[]);W&&U.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var L=0;L<By;L+=1)U.push(l.createElement("th",{key:L},G[(L+N)%By]));var H=function(q,X){return s.addDate(q,X)},_=function(q){return er(q,{locale:i,format:i.cellDateFormat,generateConfig:s})},B=function(q){var X=Fy(Fy({},"".concat(t,"-cell-in-view"),a1(s,q,c)),"".concat(t,"-cell-today"),i1(s,q,O));return X},I=i.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(i.locale):[]),z=l.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){f("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},er(c,{locale:i,format:i.yearFormat,generateConfig:s})),V=l.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){f("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?er(c,{locale:i,format:i.monthFormat,generateConfig:s}):I[D]),A=i.monthBeforeYear?[V,z]:[z,V];return l.createElement(dl.Provider,{value:R},l.createElement("div",{className:Q($,b&&"".concat($,"-show-week"))},l.createElement(Bs,{offset:function(q){return s.addMonth(c,q)},superOffset:function(q){return s.addYear(c,q)},onChange:d,getStart:function(q){return s.setDate(q,1)},getEnd:function(q){var X=s.setDate(q,1);return X=s.addMonth(X,1),s.addDate(X,-1)}},A),l.createElement(xd,Zv({titleFormat:i.fieldDateFormat},e,{colNum:By,rowNum:6,baseDate:P,headerCells:U,getCellDate:H,getCellText:_,getCellClassName:B,prefixColumn:W,cellSelection:!w}))))}var HF=1/3;function BF(e,t){var n=l.useRef(!1),r=l.useRef(null),i=l.useRef(null),s=function(){return n.current},c=function(){Ht.cancel(r.current),n.current=!1},d=l.useRef(),f=function(){var h=e.current;if(i.current=null,d.current=0,h){var y=h.querySelector('[data-value="'.concat(t,'"]')),C=h.querySelector("li"),b=function $(){c(),n.current=!0,d.current+=1;var S=h.scrollTop,w=C.offsetTop,M=y.offsetTop,x=M-w;if(M===0&&y!==C||!Ep(h)){d.current<=5&&(r.current=Ht($));return}var R=S+(x-S)*HF,O=Math.abs(x-R);if(i.current!==null&&i.current<O){c();return}if(i.current=O,O<=1){h.scrollTop=x,c();return}h.scrollTop=R,r.current=Ht($)};y&&C&&b()}},p=ut(f);return[p,c,s]}function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function sM(e,t,n){return t=LF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LF(e){var t=VF(e,"string");return Hu(t)=="symbol"?t:String(t)}function VF(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FF(e){return qF(e)||WF(e)||G6(e)||kF()}function kF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
237
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qF(e){if(Array.isArray(e))return Jv(e)}function YF(e,t){return XF(e)||GF(e,t)||G6(e,t)||UF()}function UF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
238
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G6(e,t){if(e){if(typeof e=="string")return Jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jv(e,t)}}function Jv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function XF(e){if(Array.isArray(e))return e}var KF=300;function QF(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function Bc(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,s=e.onChange,c=e.onHover,d=e.onDblClick,f=e.changeOnScroll,p=qp(),g=p.prefixCls,h=p.cellRender,y=p.now,C=p.locale,b=p.classNames,$=p.styles,S="".concat(g,"-time-panel"),w="".concat(g,"-time-panel-cell"),M=l.useRef(null),x=l.useRef(),R=function(){clearTimeout(x.current)},O=BF(M,n??r),N=YF(O,3),T=N[0],P=N[1],D=N[2];Nt(function(){return T(),R(),function(){P(),R()}},[n,r,QF(t)]);var k=function(G){R();var L=G.target;!D()&&f&&(x.current=setTimeout(function(){var H=M.current,_=H.querySelector("li").offsetTop,B=Array.from(H.querySelectorAll("li")),I=B.map(function(q){return q.offsetTop-_}),z=I.map(function(q,X){return t[X].disabled?Number.MAX_SAFE_INTEGER:Math.abs(q-L.scrollTop)}),V=Math.min.apply(Math,FF(z)),A=z.findIndex(function(q){return q===V}),j=t[A];j&&!j.disabled&&s(j.value)},KF))},W="".concat(S,"-column");return l.createElement("ul",{className:W,ref:M,"data-type":i,onScroll:k},t.map(function(U){var G=U.label,L=U.value,H=U.disabled,_=l.createElement("div",{className:"".concat(w,"-inner")},G);return l.createElement("li",{key:L,style:$.item,className:Q(w,b.item,sM(sM({},"".concat(w,"-selected"),n===L),"".concat(w,"-disabled"),H)),onClick:function(){H||s(L)},onDoubleClick:function(){!H&&d&&d()},onMouseEnter:function(){c(L)},onMouseLeave:function(){c(null)},"data-value":L},h?h(L,{prefixCls:g,originNode:_,today:y,type:"time",subType:i,locale:C}):_)}))}function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fi.apply(this,arguments)}function Lc(e,t){return tk(e)||ek(e,t)||JF(e,t)||ZF()}function ZF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
239
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JF(e,t){if(e){if(typeof e=="string")return cM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cM(e,t)}}function cM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ek(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function tk(e){if(Array.isArray(e))return e}function Za(e){return e<12}function nk(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,s=e.use12Hours,c=e.changeOnScroll,d=qp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.values,y=d.generateConfig,C=d.locale,b=d.onSelect,$=d.onHover,S=$===void 0?function(){}:$,w=d.pickerValue,M=h?.[0]||null,x=l.useContext(li),R=x.onCellDblClick,O=c1(y,e,M),N=Lc(O,5),T=N[0],P=N[1],D=N[2],k=N[3],W=N[4],U=function(Pe){var Xe=M&&y[Pe](M),rt=w&&y[Pe](w);return[Xe,rt]},G=U("getHour"),L=Lc(G,2),H=L[0],_=L[1],B=U("getMinute"),I=Lc(B,2),z=I[0],V=I[1],A=U("getSecond"),j=Lc(A,2),q=j[0],X=j[1],K=U("getMillisecond"),J=Lc(K,2),Z=J[0],oe=J[1],ne=H===null?null:Za(H)?"am":"pm",ie=l.useMemo(function(){return s?Za(H)?P.filter(function(Ue){return Za(Ue.value)}):P.filter(function(Ue){return!Za(Ue.value)}):P},[H,P,s]),de=function(Pe,Xe){var rt,ot=Pe.filter(function(lt){return!lt.disabled});return Xe??(ot==null||(rt=ot[0])===null||rt===void 0?void 0:rt.value)},le=de(P,H),fe=l.useMemo(function(){return D(le)},[D,le]),ge=de(fe,z),re=l.useMemo(function(){return k(le,ge)},[k,le,ge]),ce=de(re,q),he=l.useMemo(function(){return W(le,ge,ce)},[W,le,ge,ce]),pe=de(he,Z),Se=l.useMemo(function(){if(!s)return[];var Ue=y.getNow(),Pe=y.setHour(Ue,6),Xe=y.setHour(Ue,18),rt=function(lt,St){var Ct=C.cellMeridiemFormat;return Ct?er(lt,{generateConfig:y,locale:C,format:Ct}):St};return[{label:rt(Pe,"AM"),value:"am",disabled:P.every(function(ot){return ot.disabled||!Za(ot.value)})},{label:rt(Xe,"PM"),value:"pm",disabled:P.every(function(ot){return ot.disabled||Za(ot.value)})}]},[P,s,y,C]),Ie=function(Pe){var Xe=T(Pe);b(Xe)},Me=l.useMemo(function(){var Ue=M||w||y.getNow(),Pe=function(rt){return rt!=null};return Pe(H)?(Ue=y.setHour(Ue,H),Ue=y.setMinute(Ue,z),Ue=y.setSecond(Ue,q),Ue=y.setMillisecond(Ue,Z)):Pe(_)?(Ue=y.setHour(Ue,_),Ue=y.setMinute(Ue,V),Ue=y.setSecond(Ue,X),Ue=y.setMillisecond(Ue,oe)):Pe(le)&&(Ue=y.setHour(Ue,le),Ue=y.setMinute(Ue,ge),Ue=y.setSecond(Ue,ce),Ue=y.setMillisecond(Ue,pe)),Ue},[M,w,H,z,q,Z,le,ge,ce,pe,_,V,X,oe,y]),we=function(Pe,Xe){return Pe===null?null:y[Xe](Me,Pe)},se=function(Pe){return we(Pe,"setHour")},be=function(Pe){return we(Pe,"setMinute")},Ee=function(Pe){return we(Pe,"setSecond")},Ne=function(Pe){return we(Pe,"setMillisecond")},Fe=function(Pe){return Pe===null?null:Pe==="am"&&!Za(H)?y.setHour(Me,H-12):Pe==="pm"&&Za(H)?y.setHour(Me,H+12):Me},Ge=function(Pe){Ie(se(Pe))},et=function(Pe){Ie(be(Pe))},Oe=function(Pe){Ie(Ee(Pe))},_e=function(Pe){Ie(Ne(Pe))},Ve=function(Pe){Ie(Fe(Pe))},Qe=function(Pe){S(se(Pe))},De=function(Pe){S(be(Pe))},ve=function(Pe){S(Ee(Pe))},Ae=function(Pe){S(Ne(Pe))},Ze=function(Pe){S(Fe(Pe))},Be={onDblClick:R,changeOnScroll:c};return l.createElement("div",{className:Q("".concat(f,"-content"),p.content),style:g.content},t&&l.createElement(Bc,Fi({units:ie,value:H,optionalValue:_,type:"hour",onChange:Ge,onHover:Qe},Be)),n&&l.createElement(Bc,Fi({units:fe,value:z,optionalValue:V,type:"minute",onChange:et,onHover:De},Be)),r&&l.createElement(Bc,Fi({units:re,value:q,optionalValue:X,type:"second",onChange:Oe,onHover:ve},Be)),i&&l.createElement(Bc,Fi({units:he,value:Z,optionalValue:oe,type:"millisecond",onChange:_e,onHover:Ae},Be)),s&&l.createElement(Bc,Fi({units:Se,value:ne,type:"meridiem",onChange:Ve,onHover:Ze},Be)))}function rk(e,t){return lk(e)||ik(e,t)||ak(e,t)||ok()}function ok(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
240
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ak(e,t){if(e){if(typeof e=="string")return uM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uM(e,t)}}function uM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ik(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function lk(e){if(Array.isArray(e))return e}function X6(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,s=e.showTime,c=s||{},d=c.format,f="".concat(t,"-time-panel"),p=Hs(e,"time"),g=rk(p,1),h=g[0];return l.createElement(dl.Provider,{value:h},l.createElement("div",{className:Q(f)},l.createElement(Bs,null,n?er(n,{locale:r,format:d,generateConfig:i}):" "),l.createElement(nk,s)))}function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e0.apply(this,arguments)}function sk(e,t){return fk(e)||dk(e,t)||uk(e,t)||ck()}function ck(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
241
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uk(e,t){if(e){if(typeof e=="string")return dM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dM(e,t)}}function dM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function fk(e){if(Array.isArray(e))return e}function mk(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,s=e.value,c=e.pickerValue,d=e.onHover,f="".concat(t,"-datetime-panel"),p=c1(n,r),g=sk(p,1),h=g[0],y=function(S){return s?np(n,S,s):np(n,S,c)},C=function(S){d?.(S&&y(S))},b=function(S){var w=y(S);i(h(w,w))};return l.createElement("div",{className:f},l.createElement(Yp,e0({},e,{onSelect:b,onHover:C})),l.createElement(X6,e))}function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(this,arguments)}function pk(e,t,n){return t=gk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gk(e){var t=hk(e,"string");return Bu(t)=="symbol"?t:String(t)}function hk(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yk(e,t){return Ck(e)||Sk(e,t)||vk(e,t)||bk()}function bk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
242
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vk(e,t){if(e){if(typeof e=="string")return fM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fM(e,t)}}function fM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Ck(e){if(Array.isArray(e))return e}function $k(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d="".concat(t,"-decade-panel"),f=Hs(e,"decade"),p=yk(f,1),g=p[0],h=function(N){var T=Math.floor(r.getYear(N)/100)*100;return r.setYear(N,T)},y=function(N){var T=h(N);return r.addYear(T,99)},C=h(i),b=y(i),$=r.addYear(C,-10),S=function(N,T){return r.addYear(N,T*10)},w=function(N){var T=n.cellYearFormat,P=er(N,{locale:n,format:T,generateConfig:r}),D=er(r.addYear(N,9),{locale:n,format:T,generateConfig:r});return"".concat(P,"-").concat(D)},M=function(N){return pk({},"".concat(t,"-cell-in-view"),Uv(r,N,C)||Uv(r,N,b)||Wp(r,C,b,N))},x=s?function(O,N){var T=r.setDate(O,1),P=r.setMonth(T,0),D=r.setYear(P,Math.floor(r.getYear(P)/10)*10),k=r.addYear(D,10),W=r.addDate(k,-1);return s(D,N)&&s(W,N)}:null,R="".concat(er(C,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(er(b,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(dl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Bs,{superOffset:function(N){return r.addYear(i,N*100)},onChange:c,getStart:h,getEnd:y},R),l.createElement(xd,t0({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:$,getCellDate:S,getCellText:w,getCellClassName:M}))))}function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}function xk(e,t,n){return t=wk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wk(e){var t=Ek(e,"string");return Lu(t)=="symbol"?t:String(t)}function Ek(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mk(e,t){return Nk(e)||Tk(e,t)||Ok(e,t)||Rk()}function Rk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
243
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ok(e,t){if(e){if(typeof e=="string")return mM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mM(e,t)}}function mM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Nk(e){if(Array.isArray(e))return e}function Ik(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-month-panel"),p=Hs(e,"month"),g=Mk(p,1),h=g[0],y=r.setMonth(i,0),C=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),b=function(R,O){return r.addMonth(R,O)},$=function(R){var O=r.getMonth(R);return n.monthFormat?er(R,{locale:n,format:n.monthFormat,generateConfig:r}):C[O]},S=function(){return xk({},"".concat(t,"-cell-in-view"),!0)},w=s?function(x,R){var O=r.setDate(x,1),N=r.setMonth(O,r.getMonth(O)+1),T=r.addDate(N,-1);return s(O,R)&&s(T,R)}:null,M=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){d("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},er(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(dl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Bs,{superOffset:function(R){return r.addYear(i,R)},onChange:c,getStart:function(R){return r.setMonth(R,0)},getEnd:function(R){return r.setMonth(R,11)}},M),l.createElement(xd,n0({},e,{disabledDate:w,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:b,getCellText:$,getCellClassName:S}))))}function Vu(e){"@babel/helpers - typeof";return Vu=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},Vu(e)}function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(this,arguments)}function Pk(e,t,n){return t=zk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zk(e){var t=Ak(e,"string");return Vu(t)=="symbol"?t:String(t)}function Ak(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dk(e,t){return Bk(e)||Hk(e,t)||_k(e,t)||jk()}function jk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
244
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _k(e,t){if(e){if(typeof e=="string")return pM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pM(e,t)}}function pM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Bk(e){if(Array.isArray(e))return e}function Lk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,d="".concat(t,"-quarter-panel"),f=Hs(e,"quarter"),p=Dk(f,1),g=p[0],h=r.setMonth(i,0),y=function(w,M){return r.addMonth(w,M*3)},C=function(w){return er(w,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},b=function(){return Pk({},"".concat(t,"-cell-in-view"),!0)},$=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},er(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(dl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Bs,{superOffset:function(w){return r.addYear(i,w)},onChange:s,getStart:function(w){return r.setMonth(w,0)},getEnd:function(w){return r.setMonth(w,11)}},$),l.createElement(xd,r0({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:h,getCellDate:y,getCellText:C,getCellClassName:b}))))}function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function Vk(e,t,n){return t=Fk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fk(e){var t=kk(e,"string");return Fu(t)=="symbol"?t:String(t)}function kk(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wk(e,t){return Gk(e)||Uk(e,t)||Yk(e,t)||qk()}function qk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
245
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yk(e,t){if(e){if(typeof e=="string")return gM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gM(e,t)}}function gM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Gk(e){if(Array.isArray(e))return e}function Xk(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,s=e.hoverValue,c=e.hoverRangeValue,d=r.locale,f="".concat(t,"-week-panel-row"),p=function(h){var y={};if(c){var C=Wk(c,2),b=C[0],$=C[1],S=Qc(n,d,b,h),w=Qc(n,d,$,h);y["".concat(f,"-range-start")]=S,y["".concat(f,"-range-end")]=w,y["".concat(f,"-range-hover")]=!S&&!w&&Wp(n,b,$,h)}return s&&(y["".concat(f,"-hover")]=s.some(function(M){return Qc(n,d,h,M)})),Q(f,Vk({},"".concat(f,"-selected"),!c&&Qc(n,d,i,h)),y)};return l.createElement(Yp,o0({},e,{mode:"week",panelName:"week",rowClassName:p}))}function ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}function a0(){return a0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a0.apply(this,arguments)}function Kk(e,t,n){return t=Qk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qk(e){var t=Zk(e,"string");return ku(t)=="symbol"?t:String(t)}function Zk(e,t){if(ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jk(e,t){return rW(e)||nW(e,t)||tW(e,t)||eW()}function eW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
246
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tW(e,t){if(e){if(typeof e=="string")return hM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hM(e,t)}}function hM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function rW(e){if(Array.isArray(e))return e}function oW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-year-panel"),p=Hs(e,"year"),g=Jk(p,1),h=g[0],y=function(T){var P=Math.floor(r.getYear(T)/10)*10;return r.setYear(T,P)},C=function(T){var P=y(T);return r.addYear(P,9)},b=y(i),$=C(i),S=r.addYear(b,-1),w=function(T,P){return r.addYear(T,P)},M=function(T){return er(T,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(T){return Kk({},"".concat(t,"-cell-in-view"),rl(r,T,b)||rl(r,T,$)||Wp(r,b,$,T))},R=s?function(N,T){var P=r.setMonth(N,0),D=r.setDate(P,1),k=r.addYear(D,1),W=r.addDate(k,-1);return s(D,T)&&s(W,T)}:null,O=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){d("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},er(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-",er($,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(dl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Bs,{superOffset:function(T){return r.addYear(i,T*10)},onChange:c,getStart:y,getEnd:C},O),l.createElement(xd,a0({},e,{disabledDate:R,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:S,getCellDate:w,getCellText:M,getCellClassName:x}))))}function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(this,arguments)}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){K6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K6(e,t,n){return t=aW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aW(e){var t=iW(e,"string");return Wu(t)=="symbol"?t:String(t)}function iW(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vM(e){return cW(e)||sW(e)||Q6(e)||lW()}function lW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
247
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(e){if(Array.isArray(e))return l0(e)}function Vc(e,t){return fW(e)||dW(e,t)||Q6(e,t)||uW()}function uW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
248
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q6(e,t){if(e){if(typeof e=="string")return l0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l0(e,t)}}function l0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function fW(e){if(Array.isArray(e))return e}var mW={date:Yp,datetime:mk,week:Xk,month:Ik,quarter:Lk,year:oW,decade:$k,time:X6};function pW(e,t){var n=e.classNames,r=e.styles,i=e.locale,s=e.generateConfig,c=e.direction,d=e.prefixCls,f=e.tabIndex,p=f===void 0?0:f,g=e.multiple,h=e.defaultValue,y=e.value,C=e.onChange,b=e.onSelect,$=e.defaultPickerValue,S=e.pickerValue,w=e.onPickerValueChange,M=e.mode,x=e.onPanelChange,R=e.picker,O=R===void 0?"date":R,N=e.showTime,T=e.hoverValue,P=e.hoverRangeValue,D=e.cellRender,k=e.dateRender,W=e.monthCellRender,U=e.components,G=U===void 0?{}:U,L=e.hideHeader,H=l.useContext(jo)||{},_=H.prefixCls,B=H.classNames,I=H.styles,z=_||d||"rc-picker",V=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:V.current}});var A=T6(e),j=Vc(A,4),q=j[0],X=j[1],K=j[2],J=j[3],Z=M6(i,X),oe=O==="date"&&N?"datetime":O,ne=l.useMemo(function(){return N6(oe,K,J,q,Z)},[oe,K,J,q,Z]),ie=s.getNow(),de=Yt(O||"date",M),le=Vc(de,2),fe=le[0],ge=le[1],re=fe==="date"&&ne?"datetime":fe,ce=Y6(s,i,oe),he=Yt(h,y),pe=Vc(he,2),Se=pe[0],Ie=pe[1],Me=l.useMemo(function(){var Pe=ul(Se).filter(function(Xe){return Xe});return g?Pe:Pe.slice(0,1)},[Se,g]),we=ut(function(Pe){Ie(Pe),C&&(Pe===null||Me.length!==Pe.length||Me.some(function(Xe,rt){return!Rr(s,i,Xe,Pe[rt],oe)}))&&C?.(g?Pe:Pe[0])}),se=ut(function(Pe){if(b?.(Pe),fe===O){var Xe=g?ce(Me,Pe):[Pe];we(Xe)}}),be=Yt($||Me[0]||ie,S),Ee=Vc(be,2),Ne=Ee[0],Fe=Ee[1];l.useEffect(function(){Me[0]&&!S&&Fe(Me[0])},[Me[0]]);var Ge=function(Xe,rt){x?.(Xe||S,rt||fe)},et=function(Xe){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Fe(Xe),w?.(Xe),rt&&Ge(Xe)},Oe=function(Xe,rt){ge(Xe),rt&&et(rt),Ge(rt,Xe)},_e=function(Xe){if(se(Xe),et(Xe),fe!==O){var rt=["decade","year"],ot=[].concat(rt,["month"]),lt={quarter:[].concat(rt,["quarter"]),week:[].concat(vM(ot),["week"]),date:[].concat(vM(ot),["date"])},St=lt[O]||ot,Ct=St.indexOf(fe),qe=St[Ct+1];qe&&Oe(qe,Xe)}},Ve=l.useMemo(function(){var Pe,Xe;if(Array.isArray(P)){var rt=Vc(P,2);Pe=rt[0],Xe=rt[1]}else Pe=P;return!Pe&&!Xe?null:(Pe=Pe||Xe,Xe=Xe||Pe,s.isAfter(Pe,Xe)?[Xe,Pe]:[Pe,Xe])},[P,s]),Qe=o1(D,k,W),De=G[re]||mW[re]||Yp,ve=l.useMemo(function(){var Pe,Xe,rt,ot;return{classNames:(Pe=(Xe=B?.popup)!==null&&Xe!==void 0?Xe:n)!==null&&Pe!==void 0?Pe:{},styles:(rt=(ot=I?.popup)!==null&&ot!==void 0?ot:r)!==null&&rt!==void 0?rt:{}}},[B,n,I,r]),Ae=l.useContext(li),Ze=l.useMemo(function(){return bM(bM({},Ae),{},{hideHeader:L})},[Ae,L]),Be="".concat(z,"-panel"),Ue=kp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(U6.Provider,{value:ve},l.createElement(li.Provider,{value:Ze},l.createElement("div",{ref:V,tabIndex:p,className:Q(Be,K6({},"".concat(Be,"-rtl"),c==="rtl"))},l.createElement(De,i0({},Ue,{showTime:ne,prefixCls:z,locale:Z,generateConfig:s,onModeChange:Oe,pickerValue:Ne,onPickerValueChange:function(Xe){et(Xe,!0)},value:Me[0],onSelect:_e,values:Me,cellRender:Qe,hoverRangeValue:Ve,hoverValue:T})))))}var Im=l.memo(l.forwardRef(pW));function qu(e){"@babel/helpers - typeof";return qu=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},qu(e)}function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0.apply(this,arguments)}function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SM(Object(n),!0).forEach(function(r){gW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gW(e,t,n){return t=hW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hW(e){var t=yW(e,"string");return qu(t)=="symbol"?t:String(t)}function yW(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bW(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,s=e.needConfirm,c=e.onSubmit,d=e.range,f=e.hoverValue,p=l.useContext(jo),g=p.prefixCls,h=p.generateConfig,y=l.useCallback(function(M,x){return Zc(h,t,M,x)},[h,t]),C=l.useMemo(function(){return y(r,1)},[r,y]),b=function(x){i(y(x,-1))},$={onCellDblClick:function(){s&&c()}},S=t==="time",w=Ai(Ai({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:S});return d?w.hoverRangeValue=f:w.hoverValue=f,n?l.createElement("div",{className:"".concat(g,"-panels")},l.createElement(li.Provider,{value:Ai(Ai({},$),{},{hideNext:!0})},l.createElement(Im,w)),l.createElement(li.Provider,{value:Ai(Ai({},$),{},{hidePrev:!0})},l.createElement(Im,s0({},w,{pickerValue:C,onPickerValueChange:b})))):l.createElement(li.Provider,{value:Ai({},$)},l.createElement(Im,w))}function CM(e){return typeof e=="function"?e():e}function vW(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(s,c){var d=s.label,f=s.value;return l.createElement("li",{key:c,onClick:function(){r(CM(f))},onMouseEnter:function(){i(CM(f))},onMouseLeave:function(){i(null)}},d)}))):null}function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function $M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){c0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c0(e,t,n){return t=CW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CW(e){var t=$W(e,"string");return Yu(t)=="symbol"?t:String(t)}function $W(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rp(){return rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rp.apply(this,arguments)}function Fc(e,t){return MW(e)||EW(e,t)||wW(e,t)||xW()}function xW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
249
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wW(e,t){if(e){if(typeof e=="string")return xM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xM(e,t)}}function xM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function MW(e){if(Array.isArray(e))return e}function Z6(e){var t,n,r=e.panelRender,i=e.internalMode,s=e.picker,c=e.showNow,d=e.range,f=e.multiple,p=e.activeInfo,g=p===void 0?[0,0,0]:p,h=e.presets,y=e.onPresetHover,C=e.onPresetSubmit,b=e.onFocus,$=e.onBlur,S=e.onPanelMouseDown,w=e.direction,M=e.value,x=e.onSelect,R=e.isInvalid,O=e.defaultOpenValue,N=e.onOk,T=e.onSubmit,P=e.classNames,D=e.styles,k=l.useContext(jo),W=k.prefixCls,U="".concat(W,"-panel"),G=w==="rtl",L=l.useRef(null),H=l.useRef(null),_=l.useState(0),B=Fc(_,2),I=B[0],z=B[1],V=l.useState(0),A=Fc(V,2),j=A[0],q=A[1],X=l.useState(0),K=Fc(X,2),J=K[0],Z=K[1],oe=function(Oe){Oe.width&&z(Oe.width)},ne=Fc(g,3),ie=ne[0],de=ne[1],le=ne[2],fe=l.useState(0),ge=Fc(fe,2),re=ge[0],ce=ge[1];l.useEffect(function(){ce(10)},[ie]),l.useEffect(function(){if(d&&H.current){var et,Oe=((et=L.current)===null||et===void 0?void 0:et.offsetWidth)||0,_e=H.current.getBoundingClientRect();if(!_e.height||_e.right<0){ce(function(ve){return Math.max(0,ve-1)});return}var Ve=(G?de-Oe:ie)-_e.left;if(Z(Ve),I&&I<le){var Qe=G?_e.right-(de-Oe+I):ie+Oe-_e.left-I,De=Math.max(0,Qe);q(De)}else q(0)}},[re,G,I,ie,de,le,d]);function he(et){return et.filter(function(Oe){return Oe})}var pe=l.useMemo(function(){return he(ul(M))},[M]),Se=s==="time"&&!pe.length,Ie=l.useMemo(function(){return Se?he([O]):pe},[Se,pe,O]),Me=Se?O:pe,we=l.useMemo(function(){return Ie.length?Ie.some(function(et){return R(et)}):!0},[Ie,R]),se=function(){Se&&x(O),N(),T()},be=l.createElement("div",{className:"".concat(W,"-panel-layout")},l.createElement(vW,{prefixCls:W,presets:h,onClick:C,onHover:y}),l.createElement("div",null,l.createElement(bW,rp({},e,{value:Me})),l.createElement(bF,rp({},e,{showNow:f?!1:c,invalid:we,onSubmit:se}))));r&&(be=r(be));var Ee="".concat(U,"-container"),Ne="marginLeft",Fe="marginRight",Ge=l.createElement("div",{onMouseDown:S,tabIndex:-1,className:Q(Ee,"".concat(W,"-").concat(i,"-panel-container"),P==null||(t=P.popup)===null||t===void 0?void 0:t.container),style:SW(c0(c0({},G?Fe:Ne,j),G?Ne:Fe,"auto"),D==null||(n=D.popup)===null||n===void 0?void 0:n.container),onFocus:b,onBlur:$},be);return d&&(Ge=l.createElement("div",{onMouseDown:S,ref:H,className:Q("".concat(W,"-range-wrapper"),"".concat(W,"-").concat(s,"-range-wrapper"))},l.createElement("div",{ref:L,className:"".concat(W,"-range-arrow"),style:{left:J}}),l.createElement(Vr,{onResize:oe},Ge))),Ge}function Uu(e){"@babel/helpers - typeof";return Uu=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},Uu(e)}function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wM(Object(n),!0).forEach(function(r){RW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RW(e,t,n){return t=OW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OW(e){var t=TW(e,"string");return Uu(t)=="symbol"?t:String(t)}function TW(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J6(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,s=e.locale,c=e.preserveInvalidOnBlur,d=e.inputReadOnly,f=e.required,p=e["aria-required"],g=e.onSubmit,h=e.onFocus,y=e.onBlur,C=e.onInputChange,b=e.onInvalid,$=e.open,S=e.onOpenChange,w=e.onKeyDown,M=e.onChange,x=e.activeHelp,R=e.name,O=e.autoComplete,N=e.id,T=e.value,P=e.invalid,D=e.placeholder,k=e.disabled,W=e.activeIndex,U=e.allHelp,G=e.picker,L=function(j,q){var X=i.locale.parse(s.locale,j,[q]);return X&&i.isValidate(X)?X:null},H=n[0],_=l.useCallback(function(A){return er(A,{locale:s,format:H,generateConfig:i})},[s,i,H]),B=l.useMemo(function(){return T.map(_)},[T,_]),I=l.useMemo(function(){var A=G==="time"?8:10,j=typeof H=="function"?H(i.getNow()).length:H.length;return Math.max(A,j)+2},[H,G,i]),z=function(j){for(var q=0;q<n.length;q+=1){var X=n[q];if(typeof X=="string"){var K=L(j,X);if(K)return K}}return!1},V=function(j){function q(J){return j!==void 0?J[j]:J}var X=Pn(e,{aria:!0,data:!0}),K=EM(EM({},X),{},{format:r,validateFormat:function(Z){return!!z(Z)},preserveInvalidOnBlur:c,readOnly:d,required:f,"aria-required":p,name:R,autoComplete:O,size:I,id:q(N),value:q(B)||"",invalid:q(P),placeholder:q(D),active:W===j,helped:U||x&&W===j,disabled:q(k),onFocus:function(Z){h(Z,j)},onBlur:function(Z){y(Z,j)},onSubmit:g,onChange:function(Z){C();var oe=z(Z);if(oe){b(!1,j),M(oe,j);return}b(!!Z,j)},onHelp:function(){S(!0,{index:j})},onKeyDown:function(Z){var oe=!1;if(w?.(Z,function(){oe=!0}),!Z.defaultPrevented&&!oe)switch(Z.key){case"Escape":S(!1,{index:j});break;case"Enter":$||S(!0);break}}},t?.({valueTexts:B}));return Object.keys(K).forEach(function(J){K[J]===void 0&&delete K[J]}),K};return[V,_]}var NW=["onMouseEnter","onMouseLeave"];function e3(e){return l.useMemo(function(){return kp(e,NW)},[e])}var IW=["icon","type"],PW=["onClear"];function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(this,arguments)}function t3(e,t){if(e==null)return{};var n=zW(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Up(e){var t=e.icon,n=e.type,r=t3(e,IW),i=l.useContext(jo),s=i.prefixCls,c=i.classNames,d=i.styles;return t?l.createElement("span",op({className:Q("".concat(s,"-").concat(n),c.suffix),style:d.suffix},r),t):null}function u0(e){var t=e.onClear,n=t3(e,PW);return l.createElement(Up,op({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}function Gu(e){"@babel/helpers - typeof";return Gu=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},Gu(e)}function AW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DW(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,n3(r.key),r)}}function jW(e,t,n){return t&&DW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zf(e,t,n){return t=n3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n3(e){var t=_W(e,"string");return Gu(t)=="symbol"?t:String(t)}function _W(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ky=["YYYY","MM","DD","HH","mm","ss","SSS"],MM="顧",HW=(function(){function e(t){AW(this,e),Zf(this,"format",void 0),Zf(this,"maskFormat",void 0),Zf(this,"cells",void 0),Zf(this,"maskCells",void 0),this.format=t;var n=ky.map(function(d){return"(".concat(d,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(d){return MM.repeat(d.length)});var i=new RegExp("(".concat(ky.join("|"),")")),s=(t.split(i)||[]).filter(function(d){return d}),c=0;this.cells=s.map(function(d){var f=ky.includes(d),p=c,g=c+d.length;return c=g,{text:d,mask:f,start:p,end:g}}),this.maskCells=this.cells.filter(function(d){return d.mask})}return jW(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,s=r.end;return[i||0,s||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],s=n[r];if(!s||i!==MM&&i!==s)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,i=0,s=0;s<this.maskCells.length;s+=1){var c=this.maskCells[s],d=c.start,f=c.end;if(n>=d&&n<=f)return s;var p=Math.min(Math.abs(n-d),Math.abs(n-f));p<r&&(r=p,i=s)}return i}}]),e})();function BW(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]}function Xu(e){"@babel/helpers - typeof";return Xu=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},Xu(e)}var LW=["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d0.apply(this,arguments)}function RM(e,t,n){return t=VW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VW(e){var t=FW(e,"string");return Xu(t)=="symbol"?t:String(t)}function FW(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Di(e,t){return YW(e)||qW(e,t)||WW(e,t)||kW()}function kW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
250
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WW(e,t){if(e){if(typeof e=="string")return OM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OM(e,t)}}function OM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function YW(e){if(Array.isArray(e))return e}function UW(e,t){if(e==null)return{};var n=GW(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var f0=l.forwardRef(function(e,t){var n=e.className,r=e.active,i=e.showActiveCls,s=i===void 0?!0:i,c=e.suffixIcon,d=e.format,f=e.validateFormat,p=e.onChange;e.onInput;var g=e.helped,h=e.onHelp,y=e.onSubmit,C=e.onKeyDown,b=e.preserveInvalidOnBlur,$=b===void 0?!1:b,S=e.invalid,w=e.clearIcon,M=UW(e,LW),x=e.value,R=e.onFocus,O=e.onBlur,N=e.onMouseUp,T=l.useContext(jo),P=T.prefixCls,D=T.input,k=D===void 0?"input":D,W=T.classNames,U=T.styles,G="".concat(P,"-input"),L=l.useState(!1),H=Di(L,2),_=H[0],B=H[1],I=l.useState(x),z=Di(I,2),V=z[0],A=z[1],j=l.useState(""),q=Di(j,2),X=q[0],K=q[1],J=l.useState(null),Z=Di(J,2),oe=Z[0],ne=Z[1],ie=l.useState(null),de=Di(ie,2),le=de[0],fe=de[1],ge=V||"";l.useEffect(function(){A(x)},[x]);var re=l.useRef(null),ce=l.useRef(null);l.useImperativeHandle(t,function(){return{nativeElement:re.current,inputElement:ce.current,focus:function(Ze){ce.current.focus(Ze)},blur:function(){ce.current.blur()}}});var he=l.useMemo(function(){return new HW(d||"")},[d]),pe=l.useMemo(function(){return g?[0,0]:he.getSelection(oe)},[he,oe,g]),Se=Di(pe,2),Ie=Se[0],Me=Se[1],we=function(Ze){Ze&&Ze!==d&&Ze!==x&&h()},se=ut(function(Ae){f(Ae)&&p(Ae),A(Ae),we(Ae)}),be=function(Ze){if(!d){var Be=Ze.target.value;we(Be),A(Be),p(Be)}},Ee=function(Ze){var Be=Ze.clipboardData.getData("text");f(Be)&&se(Be)},Ne=l.useRef(!1),Fe=function(){Ne.current=!0},Ge=function(Ze){var Be=Ze.target,Ue=Be.selectionStart,Pe=he.getMaskCellIndex(Ue);ne(Pe),fe({}),N?.(Ze),Ne.current=!1},et=function(Ze){B(!0),ne(0),K(""),R(Ze)},Oe=function(Ze){O(Ze)},_e=function(Ze){B(!1),Oe(Ze)};l1(r,function(){!r&&!$&&A(x)});var Ve=function(Ze){Ze.key==="Enter"&&f(ge)&&y(),C?.(Ze)},Qe=function(Ze){Ve(Ze);var Be=Ze.key,Ue=null,Pe=null,Xe=Me-Ie,rt=d.slice(Ie,Me),ot=function(qe){ne(function(at){var He=at+qe;return He=Math.max(He,0),He=Math.min(He,he.size()-1),He})},lt=function(qe){var at=BW(rt),He=Di(at,3),ze=He[0],We=He[1],Re=He[2],Ye=ge.slice(Ie,Me),Je=Number(Ye);if(isNaN(Je))return String(Re||(qe>0?ze:We));var it=Je+qe,ft=We-ze+1;return String(ze+(ft+it-ze)%ft)};switch(Be){case"Backspace":case"Delete":Ue="",Pe=rt;break;case"ArrowLeft":Ue="",ot(-1);break;case"ArrowRight":Ue="",ot(1);break;case"ArrowUp":Ue="",Pe=lt(1);break;case"ArrowDown":Ue="",Pe=lt(-1);break;default:isNaN(Number(Be))||(Ue=X+Be,Pe=Ue);break}if(Ue!==null&&(K(Ue),Ue.length>=Xe&&(ot(1),K(""))),Pe!==null){var St=ge.slice(0,Ie)+r1(Pe,Xe)+ge.slice(Me);se(St.slice(0,d.length))}fe({})},De=l.useRef();Nt(function(){if(!(!_||!d||Ne.current)){if(!he.match(ge)){se(d);return}return ce.current.setSelectionRange(Ie,Me),De.current=Ht(function(){ce.current.setSelectionRange(Ie,Me)}),function(){Ht.cancel(De.current)}}},[he,d,_,ge,oe,Ie,Me,le,se]);var ve=d?{onFocus:et,onBlur:_e,onKeyDown:Qe,onMouseDown:Fe,onMouseUp:Ge,onPaste:Ee}:{};return l.createElement("div",{ref:re,className:Q(G,RM(RM({},"".concat(G,"-active"),r&&s),"".concat(G,"-placeholder"),g),n)},l.createElement(k,d0({ref:ce,"aria-invalid":S,autoComplete:"off"},M,{onKeyDown:Ve,onBlur:Oe},ve,{value:ge,onChange:be,className:W.input,style:U.input})),l.createElement(Up,{type:"suffix",icon:c}),w)}),XW=["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"],KW=["index"];function su(){return su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},su.apply(this,arguments)}function TM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TM(Object(n),!0).forEach(function(r){Jc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jc(e,t,n){return t=QW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QW(e){var t=ZW(e,"string");return Rs(t)=="symbol"?t:String(t)}function ZW(e,t){if(Rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NM(e,t){return nq(e)||tq(e,t)||eq(e,t)||JW()}function JW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
251
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eq(e,t){if(e){if(typeof e=="string")return IM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IM(e,t)}}function IM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function nq(e){if(Array.isArray(e))return e}function Rs(e){"@babel/helpers - typeof";return Rs=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},Rs(e)}function PM(e,t){if(e==null)return{};var n=rq(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function oq(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,s=e.suffixIcon,c=e.separator,d=c===void 0?"~":c,f=e.activeIndex;e.activeHelp,e.allHelp;var p=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var g=e.placeholder,h=e.className,y=e.style,C=e.onClick,b=e.onClear,$=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,w=e.invalid;e.inputReadOnly;var M=e.direction;e.onOpenChange;var x=e.onActiveInfo;e.placement;var R=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,N=e.tabIndex,T=PM(e,XW),P=M==="rtl",D=l.useContext(jo),k=D.prefixCls,W=D.classNames,U=D.styles,G=l.useMemo(function(){if(typeof n=="string")return[n];var de=n||{};return[de.start,de.end]},[n]),L=l.useRef(),H=l.useRef(),_=l.useRef(),B=function(le){var fe;return(fe=[H,_][le])===null||fe===void 0?void 0:fe.current};l.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(le){if(Rs(le)==="object"){var fe,ge=le||{},re=ge.index,ce=re===void 0?0:re,he=PM(ge,KW);(fe=B(ce))===null||fe===void 0||fe.focus(he)}else{var pe;(pe=B(le??0))===null||pe===void 0||pe.focus()}},blur:function(){var le,fe;(le=B(0))===null||le===void 0||le.blur(),(fe=B(1))===null||fe===void 0||fe.blur()}}});var I=e3(T),z=l.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),V=J6(Jf(Jf({},e),{},{id:G,placeholder:z})),A=NM(V,1),j=A[0],q=l.useState({position:"absolute",width:0}),X=NM(q,2),K=X[0],J=X[1],Z=ut(function(){var de=B(f);if(de){var le=de.nativeElement.getBoundingClientRect(),fe=L.current.getBoundingClientRect(),ge=le.left-fe.left;J(function(re){return Jf(Jf({},re),{},{width:le.width,left:ge})}),x([le.left,le.right,fe.width])}});l.useEffect(function(){Z()},[f]);var oe=i&&($[0]&&!S[0]||$[1]&&!S[1]),ne=O&&!S[0],ie=O&&!ne&&!S[1];return l.createElement(Vr,{onResize:Z},l.createElement("div",su({},I,{className:Q(k,"".concat(k,"-range"),Jc(Jc(Jc(Jc({},"".concat(k,"-focused"),p),"".concat(k,"-disabled"),S.every(function(de){return de})),"".concat(k,"-invalid"),w.some(function(de){return de})),"".concat(k,"-rtl"),P),h),style:y,ref:L,onClick:C,onMouseDown:function(le){var fe=le.target;fe!==H.current.inputElement&&fe!==_.current.inputElement&&le.preventDefault(),R?.(le)}}),r&&l.createElement("div",{className:Q("".concat(k,"-prefix"),W.prefix),style:U.prefix},r),l.createElement(f0,su({ref:H},j(0),{className:"".concat(k,"-input-start"),autoFocus:ne,tabIndex:N,"date-range":"start"})),l.createElement("div",{className:"".concat(k,"-range-separator")},d),l.createElement(f0,su({ref:_},j(1),{className:"".concat(k,"-input-end"),autoFocus:ie,tabIndex:N,"date-range":"end"})),l.createElement("div",{className:"".concat(k,"-active-bar"),style:K}),l.createElement(Up,{type:"suffix",icon:s}),oe&&l.createElement(u0,{icon:i,onClear:b})))}var aq=l.forwardRef(oq);function Ku(e){"@babel/helpers - typeof";return Ku=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},Ku(e)}function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function em(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zM(Object(n),!0).forEach(function(r){iq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iq(e,t,n){return t=lq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lq(e){var t=sq(e,"string");return Ku(t)=="symbol"?t:String(t)}function sq(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r3(e,t){return l.useMemo(function(){var n=em(em({},e),{},{popup:e?.popup||{}}),r=em(em({},t),{},{popup:t?.popup||{}});return[n,r]},[e,t])}function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cu.apply(this,arguments)}function AM(e){return dq(e)||uq(e)||o3(e)||cq()}function cq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
252
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dq(e){if(Array.isArray(e))return m0(e)}function DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DM(Object(n),!0).forEach(function(r){fq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fq(e,t,n){return t=mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mq(e){var t=pq(e,"string");return Qu(t)=="symbol"?t:String(t)}function pq(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bo(e,t){return yq(e)||hq(e,t)||o3(e,t)||gq()}function gq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
253
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o3(e,t){if(e){if(typeof e=="string")return m0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m0(e,t)}}function m0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function yq(e){if(Array.isArray(e))return e}function jM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function nm(e){return e===1?"end":"start"}function bq(e,t){var n=z6(e,function(){var Vt=e.disabled,bt=e.allowEmpty,xt=jM(Vt,!1),cn=jM(bt,!1);return{disabled:xt,allowEmpty:cn}}),r=bo(n,6),i=r[0],s=r[1],c=r[2],d=r[3],f=r[4],p=r[5],g=i.prefixCls,h=i.rootClassName,y=i.styles,C=i.classNames,b=i.previewValue,$=i.defaultValue,S=i.value,w=i.needConfirm,M=i.onKeyDown,x=i.disabled,R=i.allowEmpty,O=i.disabledDate,N=i.minDate,T=i.maxDate,P=i.defaultOpen,D=i.open,k=i.onOpenChange,W=i.locale,U=i.generateConfig,G=i.picker,L=i.showNow,H=i.showToday,_=i.showTime,B=i.mode,I=i.onPanelChange,z=i.onCalendarChange,V=i.onOk,A=i.defaultPickerValue,j=i.pickerValue,q=i.onPickerValueChange,X=i.inputReadOnly,K=i.suffixIcon,J=i.onFocus,Z=i.onBlur,oe=i.presets,ne=i.ranges,ie=i.components,de=i.cellRender,le=i.dateRender,fe=i.monthCellRender,ge=i.onClick,re=D6(t),ce=r3(C,y),he=bo(ce,2),pe=he[0],Se=he[1],Ie=A6(D,P,x,k),Me=bo(Ie,2),we=Me[0],se=Me[1],be=function(bt,xt){(x.some(function(cn){return!cn})||!bt)&&se(bt,xt)},Ee=k6(U,W,d,!0,!1,$,S,z,V),Ne=bo(Ee,5),Fe=Ne[0],Ge=Ne[1],et=Ne[2],Oe=Ne[3],_e=Ne[4],Ve=et(),Qe=_6(x,R,we),De=bo(Qe,9),ve=De[0],Ae=De[1],Ze=De[2],Be=De[3],Ue=De[4],Pe=De[5],Xe=De[6],rt=De[7],ot=De[8],lt=function(bt,xt){Ae(!0),J?.(bt,{range:nm(xt??Be)})},St=function(bt,xt){Ae(!1),Z?.(bt,{range:nm(xt??Be)})},Ct=l.useMemo(function(){if(!_)return null;var Vt=_.disabledTime,bt=Vt?function(xt){var cn=nm(Be),kn=$6(Ve,Xe,Be);return Vt(xt,cn,{from:kn})}:void 0;return tm(tm({},_),{},{disabledTime:bt})},[_,Be,Ve,Xe]),qe=Yt([G,G],B),at=bo(qe,2),He=at[0],ze=at[1],We=He[Be]||G,Re=We==="date"&&Ct?"datetime":We,Ye=Re===G&&Re!=="time",Je=q6(G,We,L,H,!0),it=W6(i,Fe,Ge,et,Oe,x,d,ve,we,p),ft=bo(it,2),Ft=ft[0],Dt=ft[1],$t=jV(Ve,x,Xe,U,W,O),nn=w6(Ve,p,R),wt=bo(nn,2),Ke=wt[0],Et=wt[1],mt=H6(U,W,Ve,He,we,Be,s,Ye,A,j,Ct?.defaultOpenValue,q,N,T),Rt=bo(mt,2),Ut=Rt[0],an=Rt[1],kt=ut(function(Vt,bt,xt){var cn=lu(He,Be,bt);if((cn[0]!==He[0]||cn[1]!==He[1])&&ze(cn),I&&xt!==!1){var kn=AM(Ve);Vt&&(kn[Be]=Vt),I(kn,cn)}}),wn=function(bt,xt){return lu(Ve,xt,bt)},En=function(bt,xt){var cn=Ve;bt&&(cn=wn(bt,Be)),rt(Be);var kn=Pe(cn);Oe(cn),Ft(Be,kn===null),kn===null?be(!1,{force:!0}):xt||re.current.focus({index:kn})},Cr=function(bt){var xt,cn=bt.target.getRootNode();if(!re.current.nativeElement.contains((xt=cn.activeElement)!==null&&xt!==void 0?xt:document.activeElement)){var kn=x.findIndex(function(Fs){return!Fs});kn>=0&&re.current.focus({index:kn})}be(!0),ge?.(bt)},fn=function(){Dt(null),be(!1,{force:!0})},mr=l.useState(null),zn=bo(mr,2),$r=zn[0],pr=zn[1],gr=l.useState(null),Pr=bo(gr,2),Yr=Pr[0],yt=Pr[1],Sn=l.useMemo(function(){return Yr||Ve},[Ve,Yr]);l.useEffect(function(){we||yt(null)},[we]);var Mn=l.useState([0,0,0]),Fn=bo(Mn,2),In=Fn[0],wo=Fn[1],Zo=function(bt,xt){b==="hover"&&(yt(bt),pr(xt))},Eo=j6(oe,ne),_o=function(bt){Zo(bt,"preset")},tt=function(bt){var xt=Dt(bt);xt&&be(!1,{force:!0})},Jt=function(bt){En(bt)},Hn=function(bt){Zo(bt?wn(bt,Be):null,"cell")},Jo=function(bt){be(!0),lt(bt)},ea=function(){Ze("panel")},Ho=function(bt){var xt=lu(Ve,Be,bt);Oe(xt),!w&&!c&&s===Re&&En(bt)},io=function(){be(!1)},pl=o1(de,le,fe,nm(Be)),gl=Ve[Be]||null,Bo=ut(function(Vt){return p(Vt,{activeIndex:Be})}),Mt=l.useMemo(function(){var Vt=Pn(i,!1),bt=tn(i,[].concat(AM(Object.keys(Vt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime","classNames","styles"]));return bt},[i]),ht=l.createElement(Z6,cu({},Mt,{showNow:Je,showTime:Ct,range:!0,multiplePanel:Ye,activeInfo:In,disabledDate:$t,onFocus:Jo,onBlur:St,onPanelMouseDown:ea,picker:G,mode:We,internalMode:Re,onPanelChange:kt,format:f,value:gl,isInvalid:Bo,onChange:null,onSelect:Ho,pickerValue:Ut,defaultOpenValue:ul(_?.defaultOpenValue)[Be],onPickerValueChange:an,hoverValue:Sn,onHover:Hn,needConfirm:w,onSubmit:En,onOk:_e,presets:Eo,onPresetHover:_o,onPresetSubmit:tt,onNow:Jt,cellRender:pl,classNames:pe,styles:Se})),Qn=function(bt,xt){var cn=wn(bt,xt);Oe(cn)},zr=function(){Ze("input")},hl=function(bt,xt){var cn=Xe.length,kn=Xe[cn-1];if(cn&&kn!==xt&&w&&!R[kn]&&!ot(kn)&&Ve[kn]){re.current.focus({index:kn});return}Ze("input"),be(!0,{inherit:!0}),Be!==xt&&we&&!w&&c&&En(null,!0),Ue(xt),lt(bt,xt)},eg=function(bt,xt){if(be(!1),!w&&Ze()==="input"){var cn=Pe(Ve);Ft(Be,cn===null)}St(bt,xt)},yl=function(bt,xt){bt.key==="Tab"&&En(null,!0),M?.(bt,xt)},Mo=l.useMemo(function(){return{prefixCls:g,locale:W,generateConfig:U,button:ie.button,input:ie.input,classNames:pe,styles:Se}},[g,W,U,ie.button,ie.input,pe,Se]);return Nt(function(){we&&Be!==void 0&&kt(null,G,!1)},[we,Be,G]),Nt(function(){var Vt=Ze();!we&&Vt==="input"&&(be(!1),En(null,!0)),!we&&c&&!w&&Vt==="panel"&&(be(!0),En())},[we]),l.createElement(jo.Provider,{value:Mo},l.createElement(S6,cu({},x6(i),{popupElement:ht,popupStyle:Se.popup.root,popupClassName:Q(h,pe.popup.root),visible:we,onClose:io,range:!0}),l.createElement(aq,cu({},i,{ref:re,className:Q(i.className,h,pe.root),style:tm(tm({},Se.root),i.style),suffixIcon:K,activeIndex:ve||we?Be:null,activeHelp:!!Yr,allHelp:!!Yr&&$r==="preset",focused:ve,onFocus:hl,onBlur:eg,onKeyDown:yl,onSubmit:En,value:Sn,maskFormat:f,onChange:Qn,onInputChange:zr,format:d,inputReadOnly:X,disabled:x,open:we,onOpenChange:be,onClick:Cr,onClear:fn,invalid:Ke,onInvalid:Et,onActiveInfo:wo}))))}var vq=l.forwardRef(bq);function Sq(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,s=i===void 0?"×":i,c=e.formatDate,d=e.disabled,f=e.maxTagCount,p=e.placeholder,g="".concat(t,"-selector"),h="".concat(t,"-selection"),y="".concat(h,"-overflow");function C(S,w){return l.createElement("span",{className:Q("".concat(h,"-item")),title:typeof S=="string"?S:null},l.createElement("span",{className:"".concat(h,"-item-content")},S),!d&&w&&l.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:w,className:"".concat(h,"-item-remove")},s))}function b(S){var w=c(S),M=function(R){R&&R.stopPropagation(),r(S)};return C(w,M)}function $(S){var w="+ ".concat(S.length," ...");return C(w)}return l.createElement("div",{className:g},l.createElement(Yo,{prefixCls:y,data:n,renderItem:b,renderRest:$,itemKey:function(w){return c(w)},maxCount:f}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},p))}function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}var Cq=["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 ap(){return ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ap.apply(this,arguments)}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){ls(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ls(e,t,n){return t=$q(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $q(e){var t=xq(e,"string");return Zu(t)=="symbol"?t:String(t)}function xq(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wq(e,t){return Oq(e)||Rq(e,t)||Mq(e,t)||Eq()}function Eq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
254
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mq(e,t){if(e){if(typeof e=="string")return BM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BM(e,t)}}function BM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Oq(e){if(Array.isArray(e))return e}function Tq(e,t){if(e==null)return{};var n=Nq(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Iq(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,s=e.suffixIcon;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var d=e.locale,f=e.generateConfig,p=e.placeholder,g=e.className,h=e.style,y=e.onClick,C=e.onClear,b=e.internalPicker,$=e.value,S=e.onChange,w=e.onSubmit;e.onInputChange;var M=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var R=e.disabled,O=e.invalid;e.inputReadOnly;var N=e.direction;e.onOpenChange;var T=e.onMouseDown;e.required,e["aria-required"];var P=e.autoFocus,D=e.tabIndex,k=e.removeIcon,W=Tq(e,Cq),U=N==="rtl",G=l.useContext(jo),L=G.prefixCls,H=G.classNames,_=G.styles,B=l.useRef(),I=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:B.current,focus:function(ne){var ie;(ie=I.current)===null||ie===void 0||ie.focus(ne)},blur:function(){var ne;(ne=I.current)===null||ne===void 0||ne.blur()}}});var z=e3(W),V=function(ne){S([ne])},A=function(ne){var ie=$.filter(function(de){return de&&!Rr(f,d,de,ne,b)});S(ie),n||w()},j=J6(HM(HM({},e),{},{onChange:V}),function(oe){var ne=oe.valueTexts;return{value:ne[0]||"",active:c}}),q=wq(j,2),X=q[0],K=q[1],J=!!(i&&$.length&&!R),Z=M?l.createElement(l.Fragment,null,l.createElement(Sq,{prefixCls:L,value:$,onRemove:A,formatDate:K,maxTagCount:x,disabled:R,removeIcon:k,placeholder:p}),l.createElement("input",{className:"".concat(L,"-multiple-input"),value:$.map(K).join(","),ref:I,readOnly:!0,autoFocus:P,tabIndex:D}),l.createElement(Up,{type:"suffix",icon:s}),J&&l.createElement(u0,{icon:i,onClear:C})):l.createElement(f0,ap({ref:I},X(),{autoFocus:P,tabIndex:D,suffixIcon:s,clearIcon:J&&l.createElement(u0,{icon:i,onClear:C}),showActiveCls:!1}));return l.createElement("div",ap({},z,{className:Q(L,ls(ls(ls(ls(ls({},"".concat(L,"-multiple"),M),"".concat(L,"-focused"),c),"".concat(L,"-disabled"),R),"".concat(L,"-invalid"),O),"".concat(L,"-rtl"),U),g),style:h,ref:B,onClick:y,onMouseDown:function(ne){var ie,de=ne.target;de!==((ie=I.current)===null||ie===void 0?void 0:ie.inputElement)&&ne.preventDefault(),T?.(ne)}}),r&&l.createElement("div",{className:Q("".concat(L,"-prefix"),H.prefix),style:_.prefix},r),Z)}var Pq=l.forwardRef(Iq);function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uu.apply(this,arguments)}function LM(e){return Dq(e)||Aq(e)||a3(e)||zq()}function zq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
255
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dq(e){if(Array.isArray(e))return p0(e)}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){jq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jq(e,t,n){return t=_q(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _q(e){var t=Hq(e,"string");return Ju(t)=="symbol"?t:String(t)}function Hq(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function No(e,t){return Vq(e)||Lq(e,t)||a3(e,t)||Bq()}function Bq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
256
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a3(e,t){if(e){if(typeof e=="string")return p0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p0(e,t)}}function p0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Vq(e){if(Array.isArray(e))return e}function Fq(e,t){var n=z6(e),r=No(n,6),i=r[0],s=r[1],c=r[2],d=r[3],f=r[4],p=r[5],g=i,h=g.prefixCls,y=g.rootClassName,C=g.styles,b=g.classNames,$=g.previewValue,S=g.order,w=g.defaultValue,M=g.value,x=g.needConfirm,R=g.onChange,O=g.onKeyDown,N=g.disabled,T=g.disabledDate,P=g.minDate,D=g.maxDate,k=g.defaultOpen,W=g.open,U=g.onOpenChange,G=g.locale,L=g.generateConfig,H=g.picker,_=g.showNow,B=g.showToday,I=g.showTime,z=g.mode,V=g.onPanelChange,A=g.onCalendarChange,j=g.onOk,q=g.multiple,X=g.defaultPickerValue,K=g.pickerValue,J=g.onPickerValueChange,Z=g.inputReadOnly,oe=g.suffixIcon,ne=g.removeIcon,ie=g.onFocus,de=g.onBlur,le=g.presets,fe=g.components,ge=g.cellRender,re=g.dateRender,ce=g.monthCellRender,he=g.onClick,pe=D6(t);function Se(Mt){return Mt===null?null:q?Mt:Mt[0]}var Ie=Y6(L,G,s),Me=r3(b,C),we=No(Me,2),se=we[0],be=we[1],Ee=A6(W,k,[N],U),Ne=No(Ee,2),Fe=Ne[0],Ge=Ne[1],et=function(ht,Qn,zr){if(A){var hl=ya({},zr);delete hl.range,A(Se(ht),Se(Qn),hl)}},Oe=function(ht){j?.(Se(ht))},_e=k6(L,G,d,!1,S,w,M,et,Oe),Ve=No(_e,5),Qe=Ve[0],De=Ve[1],ve=Ve[2],Ae=Ve[3],Ze=Ve[4],Be=ve(),Ue=_6([N]),Pe=No(Ue,4),Xe=Pe[0],rt=Pe[1],ot=Pe[2],lt=Pe[3],St=function(ht){rt(!0),ie?.(ht,{})},Ct=function(ht){rt(!1),de?.(ht,{})},qe=Yt(H,z),at=No(qe,2),He=at[0],ze=at[1],We=He==="date"&&I?"datetime":He,Re=q6(H,He,_,B),Ye=R&&function(Mt,ht){R(Se(Mt),Se(ht))},Je=W6(ya(ya({},i),{},{onChange:Ye}),Qe,De,ve,Ae,[],d,Xe,Fe,p),it=No(Je,2),ft=it[1],Ft=w6(Be,p),Dt=No(Ft,2),$t=Dt[0],nn=Dt[1],wt=l.useMemo(function(){return $t.some(function(Mt){return Mt})},[$t]),Ke=function(ht,Qn){if(J){var zr=ya(ya({},Qn),{},{mode:Qn.mode[0]});delete zr.range,J(ht[0],zr)}},Et=H6(L,G,Be,[He],Fe,lt,s,!1,X,K,ul(I?.defaultOpenValue),Ke,P,D),mt=No(Et,2),Rt=mt[0],Ut=mt[1],an=ut(function(Mt,ht,Qn){if(ze(ht),V&&Qn!==!1){var zr=Mt||Be[Be.length-1];V(zr,ht)}}),kt=function(){ft(ve()),Ge(!1,{force:!0})},wn=function(ht){!N&&!pe.current.nativeElement.contains(document.activeElement)&&pe.current.focus(),Ge(!0),he?.(ht)},En=function(){ft(null),Ge(!1,{force:!0})},Cr=l.useState(null),fn=No(Cr,2),mr=fn[0],zn=fn[1],$r=l.useState(null),pr=No($r,2),gr=pr[0],Pr=pr[1],Yr=l.useMemo(function(){var Mt=[gr].concat(LM(Be)).filter(function(ht){return ht});return q?Mt:Mt.slice(0,1)},[Be,gr,q]),yt=l.useMemo(function(){return!q&&gr?[gr]:Be.filter(function(Mt){return Mt})},[Be,gr,q]);l.useEffect(function(){Fe||Pr(null)},[Fe]);var Sn=function(ht,Qn){$==="hover"&&(Pr(ht),zn(Qn))},Mn=j6(le),Fn=function(ht){Sn(ht,"preset")},In=function(ht){var Qn=q?Ie(ve(),ht):[ht],zr=ft(Qn);zr&&!q&&Ge(!1,{force:!0})},wo=function(ht){In(ht)},Zo=function(ht){Sn(ht,"cell")},Eo=function(ht){Ge(!0),St(ht)},_o=function(ht){if(ot("panel"),!(q&&We!==H)){var Qn=q?Ie(ve(),ht):[ht];Ae(Qn),!x&&!c&&s===We&&kt()}},tt=function(){Ge(!1)},Jt=o1(ge,re,ce),Hn=l.useMemo(function(){var Mt=Pn(i,!1),ht=tn(i,[].concat(LM(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange","classNames","styles"]));return ya(ya({},ht),{},{multiple:i.multiple})},[i]),Jo=l.createElement(Z6,uu({},Hn,{showNow:Re,showTime:I,disabledDate:T,onFocus:Eo,onBlur:Ct,picker:H,mode:He,internalMode:We,onPanelChange:an,format:f,value:Be,isInvalid:p,onChange:null,onSelect:_o,pickerValue:Rt,defaultOpenValue:I?.defaultOpenValue,onPickerValueChange:Ut,hoverValue:Yr,onHover:Zo,needConfirm:x,onSubmit:kt,onOk:Ze,presets:Mn,onPresetHover:Fn,onPresetSubmit:In,onNow:wo,cellRender:Jt,classNames:se,styles:be})),ea=function(ht){Ae(ht)},Ho=function(){ot("input")},io=function(ht){ot("input"),Ge(!0,{inherit:!0}),St(ht)},pl=function(ht){Ge(!1),Ct(ht)},gl=function(ht,Qn){ht.key==="Tab"&&kt(),O?.(ht,Qn)},Bo=l.useMemo(function(){return{prefixCls:h,locale:G,generateConfig:L,button:fe.button,input:fe.input,classNames:se,styles:be}},[h,G,L,fe.button,fe.input,se,be]);return Nt(function(){Fe&&lt!==void 0&&an(null,H,!1)},[Fe,lt,H]),Nt(function(){var Mt=ot();!Fe&&Mt==="input"&&(Ge(!1),kt()),!Fe&&c&&!x&&Mt==="panel"&&kt()},[Fe]),l.createElement(jo.Provider,{value:Bo},l.createElement(S6,uu({},x6(i),{popupElement:Jo,popupStyle:be.popup.root,popupClassName:Q(y,se.popup.root),visible:Fe,onClose:tt}),l.createElement(Pq,uu({},i,{ref:pe,className:Q(i.className,y,se.root),style:ya(ya({},be.root),i.style),suffixIcon:oe,removeIcon:ne,activeHelp:!!gr,allHelp:!!gr&&mr==="preset",focused:Xe,onFocus:io,onBlur:pl,onKeyDown:gl,onSubmit:kt,value:yt,maskFormat:f,onChange:ea,onInputChange:Ho,internalPicker:s,format:d,inputReadOnly:Z,disabled:N,open:Fe,onOpenChange:Ge,onClick:wn,onClear:En,invalid:wt,onInvalid:function(ht){nn(ht,0)}}))))}var kq=l.forwardRef(Fq);function Wq(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function qq(e){return Wq(e).join("_")}const i3=l.createContext(null),Yq=i3.Provider,l3=l.createContext(null),Uq=l3.Provider;function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}const s3=l.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:i,checked:s,disabled:c,defaultChecked:d=!1,type:f="checkbox",title:p,onChange:g,...h}=e,y=l.useRef(null),C=l.useRef(null),[b,$]=Yt(d,s);l.useImperativeHandle(t,()=>({focus:M=>{y.current?.focus(M)},blur:()=>{y.current?.blur()},input:y.current,nativeElement:C.current}));const S=Q(n,r,{[`${n}-checked`]:b,[`${n}-disabled`]:c}),w=M=>{c||("checked"in e||$(M.target.checked),g?.({target:{...e,type:f,checked:M.target.checked},stopPropagation(){M.stopPropagation()},preventDefault(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return l.createElement("span",{className:S,title:p,style:i,ref:C},l.createElement("input",g0({},h,{className:`${n}-input`,ref:y,onChange:w,disabled:c,checked:!!b,type:f})),l.createElement("span",{className:`${n}-inner`}))});function c3(e){const t=ae.useRef(null),n=()=>{Ht.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ht(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e?.(s)}]}const Gq=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Zt(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"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS}}}},Xq=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:s,motionDurationMid:c,motionEaseInOutCirc:d,colorBgContainer:f,colorBorder:p,lineWidth:g,colorBgContainerDisabled:h,colorTextDisabled:y,paddingXS:C,dotColorDisabled:b,lineType:$,radioColor:S,radioBgColor:w,calc:M}=e,x=`${t}-inner`,O=M(i).sub(M(4).mul(2)),N=M(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:{...Zt(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:`${te(g)} ${$} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...Zt(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,
257
+ &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Uo(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:M(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:M(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:S,borderBlockStart:0,borderInlineStart:0,borderRadius:N,transform:"scale(0)",opacity:0,transition:`all ${s} ${d}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:N,height:N,backgroundColor:f,borderColor:p,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:w,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${s} ${d}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:h,borderColor:p,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:y,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${M(O).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:C,paddingInlineEnd:C}}}},Kq=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:s,colorBorder:c,motionDurationMid:d,buttonPaddingInline:f,fontSize:p,buttonBg:g,fontSizeLG:h,controlHeightLG:y,controlHeightSM:C,paddingXS:b,borderRadius:$,borderRadiusSM:S,borderRadiusLG:w,buttonCheckedBg:M,buttonSolidCheckedColor:x,colorTextDisabled:R,colorBgContainerDisabled:O,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:T,colorPrimary:P,colorPrimaryHover:D,colorPrimaryActive:k,buttonSolidCheckedBg:W,buttonSolidCheckedHoverBg:U,buttonSolidCheckedActiveBg:G,calc:L}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:p,lineHeight:te(L(n).sub(L(i).mul(2)).equal()),background:g,border:`${te(i)} ${s} ${c}`,borderBlockStartWidth:L(i).add(.02).equal(),borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${d}`,`background ${d}`,`box-shadow ${d}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:L(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${te(i)} ${s} ${c}`,borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$},"&:first-child:last-child":{borderRadius:$},[`${r}-group-large &`]:{height:y,fontSize:h,lineHeight:te(L(y).sub(L(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:C,paddingInline:L(b).sub(i).equal(),paddingBlock:0,lineHeight:te(L(C).sub(L(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Uo(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:P,background:M,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:D,borderColor:D,"&::before":{backgroundColor:D}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:W,borderColor:W,"&:hover":{color:x,background:U,borderColor:U},"&:active":{color:x,background:G,borderColor:G}},"&-disabled":{color:R,backgroundColor:O,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:O,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:N,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Qq=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:s,colorText:c,colorBgContainer:d,colorTextDisabled:f,controlItemBgActiveDisabled:p,colorTextLightSolid:g,colorPrimary:h,colorPrimaryHover:y,colorPrimaryActive:C,colorWhite:b}=e,$=4,S=s,w=t?S-$*2:S-($+i)*2;return{radioSize:S,dotSize:w,dotColorDisabled:f,buttonSolidCheckedColor:g,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:y,buttonSolidCheckedActiveBg:C,buttonBg:d,buttonCheckedBg:d,buttonColor:c,buttonCheckedBgDisabled:p,buttonCheckedColorDisabled:f,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?h:b,radioBgColor:t?d:h}},u3=Pt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,s=Tt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Gq(s),Xq(s),Kq(s)]},Qq,{unitless:{radioSize:!0,dotSize:!0}}),Zq=(e,t)=>{const n=l.useContext(i3),r=l.useContext(l3),{getPrefixCls:i,direction:s,className:c,style:d,classNames:f,styles:p}=It("radio"),g=l.useRef(null),h=or(t,g),{isFormItemInput:y}=l.useContext(Or),C=A=>{e.onChange?.(A),n?.onChange?.(A)},{prefixCls:b,className:$,rootClassName:S,children:w,style:M,title:x,classNames:R,styles:O,...N}=e,T=i("radio",b),P=(n?.optionType||r)==="button",D=P?`${T}-button`:T,k=ar(T),[W,U]=u3(T,k),G={...N},L=l.useContext(kr);n&&(G.name=n.name,G.onChange=C,G.checked=e.value===n.value,G.disabled=G.disabled??n.disabled),G.disabled=G.disabled??L;const H={...e,...G},[_,B]=Lt([f,R],[p,O],{props:H}),I=Q(`${D}-wrapper`,{[`${D}-wrapper-checked`]:G.checked,[`${D}-wrapper-disabled`]:G.disabled,[`${D}-wrapper-rtl`]:s==="rtl",[`${D}-wrapper-in-form-item`]:y,[`${D}-wrapper-block`]:!!n?.block},c,$,S,_.root,W,U,k),[z,V]=c3(G.onClick);return l.createElement(fd,{component:"Radio",disabled:G.disabled},l.createElement("label",{className:I,style:{...B.root,...d,...M},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:z},l.createElement(s3,{...G,className:Q(_.icon,{[dd]:!P}),style:B.icon,type:"radio",prefixCls:D,ref:h,onClick:V}),w!==void 0?l.createElement("span",{className:Q(`${D}-label`,_.label),style:B.label},w):null))},ip=l.forwardRef(Zq),Jq=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{name:i}=l.useContext(Or),s=Ko(qq(i)),{prefixCls:c,className:d,rootClassName:f,options:p,buttonStyle:g="outline",disabled:h,children:y,size:C,style:b,id:$,optionType:S,name:w=s,defaultValue:M,value:x,block:R=!1,onChange:O,onMouseEnter:N,onMouseLeave:T,onFocus:P,onBlur:D,orientation:k,vertical:W}=e,[U,G]=Yt(M,x),L=l.useCallback(K=>{const J=U,Z=K.target.value;"value"in e||G(Z),Z!==J&&O?.(K)},[U,G,O]),H=n("radio",c),_=`${H}-group`,B=ar(H),[I,z]=u3(H,B);let V=y;p&&p.length>0&&(V=p.map(K=>typeof K=="string"||typeof K=="number"?l.createElement(ip,{key:K.toString(),prefixCls:H,disabled:h,value:K,checked:U===K},K):l.createElement(ip,{key:`radio-group-value-options-${K.value}`,prefixCls:H,disabled:K.disabled||h,value:K.value,checked:U===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const A=fr(C),[,j]=id(k,W),q=Q(_,`${_}-${g}`,{[`${_}-${A}`]:A,[`${_}-rtl`]:r==="rtl",[`${_}-block`]:R},d,f,I,z,B),X=l.useMemo(()=>({onChange:L,value:U,disabled:h,name:w,optionType:S,block:R}),[L,U,h,w,S,R]);return l.createElement("div",{...Pn(e,{aria:!0,data:!0}),className:Q(q,{[`${H}-group-vertical`]:j}),style:b,onMouseEnter:N,onMouseLeave:T,onFocus:P,onBlur:D,id:$,ref:t},l.createElement(Yq,{value:X},V))}),d3=l.memo(Jq),eY=(e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,...i}=e,s=n("radio",r);return l.createElement(Uq,{value:"button"},l.createElement(ip,{prefixCls:s,...i,type:"radio",ref:t}))},h0=l.forwardRef(eY),u1=ip;u1.Button=h0;u1.Group=d3;u1.__ANT_RADIO=!0;const tY=10,nY=20;function rY(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:s,value:c,onChange:d,divRef:f}=e,p=r.getYear(c||r.getNow());let g=p-tY,h=g+nY;n&&(g=r.getYear(n[0]),h=r.getYear(n[1])+1);const y=i&&i.year==="年"?"年":"",C=[];for(let b=g;b<h;b++)C.push({label:`${b}${y}`,value:b});return l.createElement(Lr,{size:t?void 0:"small",options:C,value:p,className:`${s}-year-select`,onChange:b=>{let $=r.setYear(c,b);if(n){const[S,w]=n,M=r.getYear($),x=r.getMonth($);M===r.getYear(w)&&x>r.getMonth(w)&&($=r.setMonth($,r.getMonth(w))),M===r.getYear(S)&&x<r.getMonth(S)&&($=r.setMonth($,r.getMonth(S)))}d($)},getPopupContainer:()=>f.current})}function oY(e){const{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:s,locale:c,onChange:d,divRef:f}=e,p=s.getMonth(i||s.getNow());let g=0,h=11;if(r){const[b,$]=r,S=s.getYear(i);s.getYear($)===S&&(h=s.getMonth($)),s.getYear(b)===S&&(g=s.getMonth(b))}const y=c.shortMonths||s.locale.getShortMonths(c.locale),C=[];for(let b=g;b<=h;b+=1)C.push({label:y[b],value:b});return l.createElement(Lr,{size:n?void 0:"small",className:`${t}-month-select`,value:p,options:C,onChange:b=>{d(s.setMonth(i,b))},getPopupContainer:()=>f.current})}function aY(e){const{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:s}=e;return l.createElement(d3,{onChange:({target:{value:c}})=>{s(c)},value:r,size:i?void 0:"small",className:`${t}-mode-switch`},l.createElement(h0,{value:"month"},n.month),l.createElement(h0,{value:"year"},n.year))}function iY(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:s,className:c,style:d}=e,f=l.useRef(null),p=l.useContext(Or),g=l.useMemo(()=>({...p,isFormItemInput:!1}),[p]),h={...e,fullscreen:n,divRef:f};return l.createElement("div",{className:Q(`${t}-header`,c),style:d,ref:f},l.createElement(Or.Provider,{value:g},l.createElement(rY,{...h,onChange:y=>{i(y,"year")}}),r==="month"&&l.createElement(oY,{...h,onChange:y=>{i(y,"month")}})),l.createElement(aY,{...h,onModeChange:s}))}function Ls(e){return Tt(e,{inputAffixPadding:e.paddingXXS})}const Vs=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:s,controlHeightLG:c,fontSizeLG:d,lineHeightLG:f,paddingSM:p,controlPaddingHorizontalSM:g,controlPaddingHorizontal:h,colorFillAlter:y,colorPrimaryHover:C,colorPrimary:b,controlOutlineWidth:$,controlOutline:S,colorErrorOutline:w,colorWarningOutline:M,colorBgContainer:x,inputFontSize:R,inputFontSizeLG:O,inputFontSizeSM:N}=e,T=R||n,P=N||T,D=O||d,k=Math.round((t-T*r)/2*10)/10-i,W=Math.round((s-P*r)/2*10)/10-i,U=Math.ceil((c-D*f)/2*10)/10-i;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(W,0),paddingBlockLG:Math.max(U,0),paddingInline:p-i,paddingInlineSM:g-i,paddingInlineLG:h-i,addonBg:y,activeBorderColor:b,hoverBorderColor:C,activeShadow:`0 0 0 ${$}px ${S}`,errorActiveShadow:`0 0 0 ${$}px ${w}`,warningActiveShadow:`0 0 0 ${$}px ${M}`,hoverBg:x,activeBg:x,inputFontSize:T,inputFontSizeLG:D,inputFontSizeSM:P}},lY=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Gp=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])":{...lY(Tt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),d1=(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}}),FM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...d1(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),f3=(e,t)=>({"&-outlined":{...d1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Gp(e)},...FM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...FM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),kM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),sY=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...kM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...kM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Gp(e)}}}}),m3=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{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}}},p3=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),WM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...p3(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),g3=(e,t)=>({"&-filled":{...p3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Gp(e)},...WM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...WM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),qM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),cY=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...qM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...qM(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),h3=(e,t)=>({background:e.colorBgContainer,borderWidth:`${te(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}}),YM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...h3(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`}}),y3=(e,t)=>({"&-underlined":{...h3(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"},...YM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...YM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),b3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),v3=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${te(t)} ${te(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},f1=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),m1=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...b3(e.colorTextPlaceholder),"&-lg":{...v3(e),...t.largeStyle},"&-sm":{...f1(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),uY=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`]:{...v3(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...f1(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{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 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${te(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}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{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`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Zi(),[`${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},[`
258
+ & > ${t}-affix-wrapper,
259
+ & > ${t}-number-affix-wrapper,
260
+ & > ${n}-picker-range
261
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
262
+ & > ${n}-select-auto-complete ${t},
263
+ & > ${n}-cascader-picker ${t},
264
+ & > ${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,
265
+ & > ${n}-select:first-child,
266
+ & > ${n}-select-auto-complete:first-child ${t},
267
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
268
+ & > ${n}-select:last-child,
269
+ & > ${n}-cascader-picker:last-child ${t},
270
+ & > ${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`]:{}}}}},dY=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,c=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Zt(e),...m1(e),...f3(e),...g3(e),...m3(e),...y3(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"}}}},fY=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 ${te(e.inputAffixPadding)}`}}}},mY=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:s,colorIconHover:c,iconCls:d}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:{...m1(e),display:"inline-flex","&-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}},...fY(e),[`${d}${t}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:c}}},[`${t}-underlined`]:{borderRadius:0},[p]:{[`${d}${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},pY=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Zt(e),...uY(e),"&-rtl":{direction:"rtl"},"&-wrapper":{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}},...sY(e),...cY(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}}}}}},gY=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},S3=Pt(["Input","Shared"],e=>{const t=Tt(e,Ls(e));return[dY(t),mY(t)]},Vs,{resetFont:!1}),C3=Pt(["Input","Component"],e=>{const t=Tt(e,Ls(e));return[pY(t),gY(t),pd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Vs,{resetFont:!1}),hY=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,s=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(s).sub(i).equal(),0);return{basePadding:s,containerPadding:c,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},yY=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:s,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:d,colorIcon:f,colorIconHover:p,INTERNAL_FIXED_ITEM_MARGIN:g}=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:g,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(g).mul(2).equal(),paddingInlineStart:s,paddingInlineEnd:e.calc(s).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:d,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(s).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...Ns(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}}}}},Wy=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",s=hY(e);return[{[`${n}-multiple${i}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:te(s.itemLineHeight)}}}]},bY=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Tt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=Tt(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[Wy(i,"small"),Wy(e),Wy(s,"large"),{[`${t}${t}-multiple`]:{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"}},...yY(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},vY=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:s,cellHoverBg:c,lineWidth:d,lineType:f,colorPrimary:p,cellActiveWithRangeBg:g,colorTextLightSolid:h,colorTextDisabled:y,cellBgDisabled:C,colorFillSecondary:b}=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:te(r),borderRadius:i,transition:`background ${s}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
271
+ &: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:`${te(d)} ${f} ${p}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
272
+ &-in-view${t}-range-start,
273
+ &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:g}},[`&-in-view${t}-selected,
274
+ &-in-view${t}-range-start,
275
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:h,background:p},[`&${t}-disabled ${n}`]:{background:b}},[`&-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:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:y,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:C}},[`&-disabled${t}-today ${n}::before`]:{borderColor:y}}},$3=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:s,cellWidth:c,paddingSM:d,paddingXS:f,paddingXXS:p,colorBgContainer:g,lineWidth:h,lineType:y,borderRadiusLG:C,colorPrimary:b,colorTextHeading:$,colorSplit:S,pickerControlIconBorderWidth:w,colorIcon:M,textHeight:x,motionDurationMid:R,colorIconHover:O,fontWeightStrong:N,cellHeight:T,pickerCellPaddingVertical:P,colorTextDisabled:D,colorText:k,fontSize:W,motionDurationSlow:U,withoutTimeCellHeight:G,pickerQuarterPanelContentHeight:L,borderRadiusSM:H,colorTextLightSolid:_,cellHoverBg:B,timeColumnHeight:I,timeColumnWidth:z,timeCellHeight:V,controlItemBgActive:A,marginXXS:j,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:X}=e,K=e.calc(c).mul(7).add(e.calc(q).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:g,borderRadius:C,outline:"none","&-focused":{borderColor:b},"&-rtl":{[`${t}-prev-icon,
276
+ ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
277
+ ${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:K},"&-header":{display:"flex",padding:`0 ${te(f)}`,color:$,borderBottom:`${te(h)} ${y} ${S}`,"> *":{flex:"none"},button:{padding:0,color:M,lineHeight:te(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${R}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:W,"&:hover":{color:O},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:N,lineHeight:te(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:f},"&:hover":{color:b}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:s,height:s,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:w,borderInlineStartWidth:w,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:X,insetInlineStart:X,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:w,borderInlineStartWidth:w,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:T,fontWeight:"normal"},th:{height:e.calc(T).add(e.calc(P).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":{padding:`${te(P)} 0`,color:D,cursor:"pointer","&-in-view":{color:k},...vY(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(G).mul(4).equal()},[r]:{padding:`0 ${te(f)}`}},"&-quarter-panel":{[`${t}-content`]:{height:L}},"&-decade-panel":{[r]:{padding:`0 ${te(e.calc(f).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${te(f)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${te(f)} ${te(q)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${R}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:B},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:b},[`&${t}-cell-week`]:{color:new en(_).setA(.5).toHexString()},[r]:{color:_}}},"&-range-hover td:before":{background:A}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${te(f)} ${te(d)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${te(h)} ${y} ${S}`},[`${t}-date-panel,
278
+ ${t}-time-panel`]:{transition:`opacity ${U}`},"&-active":{[`${t}-date-panel,
279
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:I},"&-column":{flex:"1 0 auto",width:z,margin:`${te(p)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${R}`,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% - ${te(V)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${te(h)} ${y} ${S}`},"&-active":{background:new en(A).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:j,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(j).mul(2)).equal(),height:V,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(V).div(2).equal(),color:k,lineHeight:te(V),borderRadius:H,cursor:"pointer",transition:`background ${R}`,"&:hover":{background:B}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:A}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:D,background:"transparent",cursor:"not-allowed"}}}}}}}}},SY=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:s,colorPrimary:c,cellActiveWithRangeBg:d,colorPrimaryBorder:f,lineType:p,colorSplit:g}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${te(r)} ${p} ${g}`,"&-extra":{padding:`0 ${te(i)}`,lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${te(r)} ${p} ${g}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:te(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${s}-tag-blue`]:{color:c,background:d,borderColor:f,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},x3=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=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(i).add(e.calc(r).div(2)).equal()}},w3=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:s,lineWidth:c}=e,d=s*2,f=c*2,p=Math.min(n-d,n-f),g=Math.min(r-d,r-f),h=Math.min(i-d,i-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new en(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new en(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightSM:g,multipleItemHeightLG:h,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},CY=e=>({...Vs(e),...w3(e),...jp(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),$Y=e=>{const{componentCls:t}=e;return{[t]:[{...f3(e),...y3(e),...g3(e),...m3(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},qy=(e,t)=>({padding:`${te(e)} ${te(t)}`}),xY=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}}}}},wY=e=>{const{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:s,colorBorder:c,borderRadius:d,motionDurationMid:f,colorTextDisabled:p,colorTextPlaceholder:g,colorTextQuaternary:h,fontSizeLG:y,inputFontSizeLG:C,fontSizeSM:b,inputFontSizeSM:$,controlHeightSM:S,paddingInlineSM:w,paddingXS:M,marginXS:x,colorIcon:R,lineWidthBold:O,colorPrimary:N,motionDurationSlow:T,zIndexPopup:P,paddingXXS:D,sizePopupArrow:k,colorBgElevated:W,borderRadiusLG:U,boxShadowSecondary:G,borderRadiusSM:L,colorSplit:H,cellHoverBg:_,presetsWidth:B,presetsMaxWidth:I,boxShadowPopoverArrow:z,fontHeight:V,lineHeightLG:A}=e;return[{[t]:{...Zt(e),...qy(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`,...b3(g),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:p,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:g}}},"&-large":{...qy(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:C??y,lineHeight:A}},"&-small":{...qy(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:$??b}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(M).div(2).equal(),color:h,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:h,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:R}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:h,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:R},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:O,background:N,opacity:0,transition:`all ${T} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${te(M)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:w}}},"&-dropdown":{...Zt(e),...$3(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
280
+ &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
281
+ &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
282
+ &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
283
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
284
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Ip},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
285
+ &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
286
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
287
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Tp},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
288
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Pp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
289
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Np},[`${t}-panel > ${t}-time-panel`]:{paddingTop:D},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${T} ease-out`,...BT(e,W,z),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:W,borderRadius:U,boxShadow:G,transition:`margin ${T}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:M,borderInlineEnd:`${te(i)} ${s} ${H}`,li:{...$o,borderRadius:L,paddingInline:M,paddingBlock:e.calc(S).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${T}`,"+ li":{marginTop:x},"&:hover":{background:_}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}},"&-dropdown-range":{padding:`${te(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Xo(e,"slide-up"),Xo(e,"slide-down"),ws(e,"move-up"),ws(e,"move-down")]},E3=Pt("DatePicker",e=>{const t=Tt(Ls(e),x3(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[SY(t),wY(t),$Y(t),xY(t),bY(t),pd(e,{focusElCls:`${e.componentCls}-focused`})]},CY),EY=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:i,itemActiveBg:s}=e;return{[t]:{...$3(e),...Zt(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${te(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${n}-panel`]:{background:i,border:0,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${te(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:te(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:te(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${te(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:s}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${te(e.calc(e.marginXS).div(2).equal())}`,padding:`${te(e.calc(e.paddingXS).div(2).equal())} ${te(e.paddingXS)} 0`,border:0,borderTop:`${te(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:te(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${te(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${te(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},MY=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...w3(e)}),RY=Pt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Tt(e,x3(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return EY(n)},MY),M3=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},y0=(e,t,n)=>{const{getMonth:r}=n;return M3(e,t,n)&&r(e)===r(t)},UM=(e,t,n)=>{const{getDate:r}=n;return y0(e,t,n)&&r(e)===r(t)},R3=e=>n=>{const{prefixCls:r,className:i,rootClassName:s,style:c,dateFullCellRender:d,dateCellRender:f,monthFullCellRender:p,monthCellRender:g,cellRender:h,fullCellRender:y,headerRender:C,value:b,defaultValue:$,disabledDate:S,mode:w,validRange:M,fullscreen:x=!0,showWeek:R,onChange:O,onPanelChange:N,onSelect:T,styles:P,classNames:D}=n,{getPrefixCls:k,direction:W,className:U,style:G,classNames:L,styles:H}=It("calendar"),_={...n,mode:w,fullscreen:x,showWeek:R},[B,I]=Lt([L,D],[H,P],{props:_}),[z,V,A,j,q,X]=l.useMemo(()=>{const{root:Ee,header:Ne,...Fe}=B,{root:Ge,header:et,...Oe}=I;return[Ee,Ne,Fe,Ge,et,Oe]},[B,I]),K=k("picker",r),J=`${K}-calendar`,[Z,oe]=RY(K,J),ne=e.getNow(),[ie,de]=Yt(()=>$||e.getNow(),b),[le,fe]=Yt("month",w),ge=l.useMemo(()=>le==="year"?"month":"date",[le]),re=l.useCallback(Ee=>(M?e.isAfter(M[0],Ee)||e.isAfter(Ee,M[1]):!1)||!!S?.(Ee),[S,M]),ce=(Ee,Ne)=>{N?.(Ee,Ne)},he=Ee=>{de(Ee),UM(Ee,ie,e)||((ge==="date"&&!y0(Ee,ie,e)||ge==="month"&&!M3(Ee,ie,e))&&ce(Ee,le),O?.(Ee))},pe=Ee=>{fe(Ee),ce(ie,Ee)},Se=(Ee,Ne)=>{he(Ee),T?.(Ee,{source:Ne})},Ie=l.useCallback((Ee,Ne)=>y?y(Ee,Ne):d?d(Ee):l.createElement("div",{className:Q(`${K}-cell-inner`,`${J}-date`,{[`${J}-date-today`]:UM(ne,Ee,e)})},l.createElement("div",{className:`${J}-date-value`},String(e.getDate(Ee)).padStart(2,"0")),l.createElement("div",{className:`${J}-date-content`},typeof h=="function"?h(Ee,Ne):f?.(Ee))),[ne,K,J,y,d,h,f]),Me=l.useCallback((Ee,Ne)=>{if(y)return y(Ee,Ne);if(p)return p(Ee);const Fe=Ne.locale.shortMonths||e.locale.getShortMonths(Ne.locale.locale);return l.createElement("div",{className:Q(`${K}-cell-inner`,`${J}-date`,{[`${J}-date-today`]:y0(ne,Ee,e)})},l.createElement("div",{className:`${J}-date-value`},Fe[e.getMonth(Ee)]),l.createElement("div",{className:`${J}-date-content`},typeof h=="function"?h(Ee,Ne):g?.(Ee)))},[ne,K,J,y,p,h,g]),[we]=oo("Calendar",$u),se={...we,...n.locale},be=(Ee,Ne)=>{if(Ne.type==="date")return Ie(Ee,Ne);if(Ne.type==="month")return Me(Ee,{...Ne,locale:se?.lang})};return l.createElement("div",{className:Q(J,{[`${J}-full`]:x,[`${J}-mini`]:!x,[`${J}-rtl`]:W==="rtl"},U,i,s,z,Z,oe),style:{...j,...G,...c}},C?C({value:ie,type:le,onChange:Ee=>{Se(Ee,"customize")},onTypeChange:pe}):l.createElement(iY,{className:V,style:q,prefixCls:J,value:ie,generateConfig:e,mode:le,fullscreen:x,locale:se?.lang,validRange:M,onChange:Se,onModeChange:pe}),l.createElement(Im,{classNames:A,styles:X,value:ie,prefixCls:K,locale:se?.lang,generateConfig:e,cellRender:be,onSelect:Ee=>{Se(Ee,ge)},mode:ge,picker:ge,disabledDate:re,hideHeader:!0,showWeek:R}))},O3=R3(v6);O3.generateCalendar=R3;var OY={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"};function b0(){return b0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b0.apply(this,arguments)}const TY=(e,t)=>l.createElement(gt,b0({},e,{ref:t,icon:OY})),lp=l.forwardRef(TY);var kc={exports:{}},GM;function NY(){if(GM)return kc.exports;GM=1,kc.exports=r,kc.exports.isMobile=r,kc.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(i){i||(i={});let s=i.ua;if(!s&&typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),typeof s!="string")return!1;let c=e.test(s)&&!t.test(s)||!!i.tablet&&n.test(s);return!c&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(c=!0),c}return kc.exports}var IY=NY();const PY=Ea(IY);let Yy;const zY=(()=>(typeof Yy>"u"&&(Yy=PY()),Yy)),p1=l.createContext(null),AY=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:s,align:c="center"}=i,[d,f]=l.useState(),p=l.useRef(),g=ae.useCallback(y=>typeof s=="function"?s(y):typeof s=="number"?s:y,[s]);function h(){Ht.cancel(p.current)}return l.useEffect(()=>{const y={};if(t)if(n){y.width=g(t.width);const C=r?"right":"left";c==="start"&&(y[C]=t[C]),c==="center"&&(y[C]=t[C]+t.width/2,y.transform=r?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[C]=t[C]+t.width,y.transform="translateX(-100%)")}else y.height=g(t.height),c==="start"&&(y.top=t.top),c==="center"&&(y.top=t.top+t.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=t.top+t.height,y.transform="translateY(-100%)");return h(),p.current=Ht(()=>{d&&y&&Object.keys(y).every(b=>{const $=y[b],S=d[b];return typeof $=="number"&&typeof S=="number"?Math.round($)===Math.round(S):$===S})||f(y)}),h},[JSON.stringify(t),n,r,c,g]),{style:d}},XM={width:0,height:0,left:0,top:0};function DY(e,t,n){return l.useMemo(()=>{const r=new Map,i=t.get(e[0]?.key)||XM,s=i.left+i.width;for(let c=0;c<e.length;c+=1){const{key:d}=e[c];let f=t.get(d);f||(f=t.get(e[c-1]?.key)||XM);const p=r.get(d)||{...f};p.right=s-p.left-p.width,r.set(d,p)}return r},[e.map(r=>r.key).join("_"),t,n])}function KM(e,t){const n=l.useRef(e),[,r]=l.useState({});function i(s){const c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,r({})}return[n.current,i]}const jY=.1,QM=.01,Pm=20,ZM=.995**Pm;function _Y(e,t){const[n,r]=l.useState(),[i,s]=l.useState(0),[c,d]=l.useState(0),[f,p]=l.useState(),g=l.useRef();function h(w){const{screenX:M,screenY:x}=w.touches[0];r({x:M,y:x}),window.clearInterval(g.current)}function y(w){if(!n)return;const{screenX:M,screenY:x}=w.touches[0];r({x:M,y:x});const R=M-n.x,O=x-n.y;t(R,O);const N=Date.now();s(N),d(N-i),p({x:R,y:O})}function C(){if(n&&(r(null),p(null),f)){const w=f.x/c,M=f.y/c,x=Math.abs(w),R=Math.abs(M);if(Math.max(x,R)<jY)return;let O=w,N=M;g.current=window.setInterval(()=>{if(Math.abs(O)<QM&&Math.abs(N)<QM){window.clearInterval(g.current);return}O*=ZM,N*=ZM,t(O*Pm,N*Pm)},Pm)}}const b=l.useRef();function $(w){const{deltaX:M,deltaY:x}=w;let R=0;const O=Math.abs(M),N=Math.abs(x);O===N?R=b.current==="x"?M:x:O>N?(R=M,b.current="x"):(R=x,b.current="y"),t(-R,-R)&&w.preventDefault()}const S=l.useRef(null);S.current={onTouchStart:h,onTouchMove:y,onTouchEnd:C,onWheel:$},l.useEffect(()=>{function w(O){S.current.onTouchStart(O)}function M(O){S.current.onTouchMove(O)}function x(O){S.current.onTouchEnd(O)}function R(O){S.current.onWheel(O)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",x,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",x)}},[])}function T3(e){const[t,n]=l.useState(0),r=l.useRef(0),i=l.useRef();return i.current=e,eR(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function HY(e){const t=l.useRef([]),[,n]=l.useState({}),r=l.useRef(typeof e=="function"?e():e),i=T3(()=>{let c=r.current;t.current.forEach(d=>{c=d(c)}),t.current=[],r.current=c,n({})});function s(c){t.current.push(c),i()}return[r.current,s]}const JM={width:0,height:0,left:0,top:0,right:0};function BY(e,t,n,r,i,s,{tabs:c,tabPosition:d,rtl:f}){let p,g,h;return["top","bottom"].includes(d)?(p="width",g=f?"right":"left",h=Math.abs(n)):(p="height",g="top",h=-n),l.useMemo(()=>{if(!c.length)return[0,0];const y=c.length;let C=y;for(let $=0;$<y;$+=1){const S=e.get(c[$].key)||JM;if(Math.floor(S[g]+S[p])>Math.floor(h+t)){C=$-1;break}}let b=0;for(let $=y-1;$>=0;$-=1)if((e.get(c[$].key)||JM)[g]<h){b=$+1;break}return b>C?[0,-1]:[b,C]},[e,t,r,i,s,h,d,c.map(y=>y.key).join("_"),f])}function e4(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const LY="TABS_DQ";function N3(e){return String(e).replace(/"/g,LY)}function g1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const I3=l.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:i,style:s}=e;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":i?.addAriaLabel||"Add tab",onClick:c=>{r.onEdit("add",{event:c})}},r.addIcon||"+")}),t4=l.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let s,c={};return typeof i=="object"&&!l.isValidElement(i)?c=i:c.right=i,n==="right"&&(s=c.right),n==="left"&&(s=c.left),s?l.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}const VY=l.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:i,locale:s,mobile:c,more:d={},style:f,className:p,editable:g,tabBarGutter:h,rtl:y,removeAriaLabel:C,onTabClick:b,getPopupContainer:$,popupClassName:S,popupStyle:w}=e,[M,x]=l.useState(!1),[R,O]=l.useState(null),{icon:N="More"}=d,T=`${r}-more-popup`,P=`${n}-dropdown`,D=R!==null?`${T}-${R}`:null,k=s?.dropdownAriaLabel;function W(I,z){I.preventDefault(),I.stopPropagation(),g.onEdit("remove",{key:z,event:I})}const U=l.createElement(_s,{onClick:({key:I,domEvent:z})=>{b(I,z),x(!1)},prefixCls:`${P}-menu`,id:T,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[R],"aria-label":k!==void 0?k:"expanded dropdown"},i.map(I=>{const{closable:z,disabled:V,closeIcon:A,key:j,label:q}=I,X=g1(z,A,g,V);return l.createElement(Cd,{key:j,id:`${T}-${j}`,role:"option","aria-controls":r&&`${r}-panel-${j}`,disabled:V},l.createElement("span",null,q),X&&l.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:`${P}-menu-item-remove`,onClick:K=>{K.stopPropagation(),W(K,j)}},A||g.removeIcon||"×"))}));function G(I){const z=i.filter(j=>!j.disabled);let V=z.findIndex(j=>j.key===R)||0;const A=z.length;for(let j=0;j<A;j+=1){V=(V+I+A)%A;const q=z[V];if(!q.disabled){O(q.key);return}}}function L(I){const{which:z}=I;if(!M){[nt.DOWN,nt.SPACE,nt.ENTER].includes(z)&&(x(!0),I.preventDefault());return}switch(z){case nt.UP:G(-1),I.preventDefault();break;case nt.DOWN:G(1),I.preventDefault();break;case nt.ESC:x(!1);break;case nt.SPACE:case nt.ENTER:R!==null&&b(R,I);break}}l.useEffect(()=>{const I=document.getElementById(D);I?.scrollIntoView&&I.scrollIntoView(!1)},[D,R]),l.useEffect(()=>{M||O(null)},[M]);const H={marginInlineStart:h};i.length||(H.visibility="hidden",H.order=1);const _=Q(S,{[`${P}-rtl`]:y}),B=c?null:l.createElement(KT,v0({prefixCls:P,overlay:U,visible:i.length?M:!1,onVisibleChange:x,overlayClassName:_,overlayStyle:w,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:$},d),l.createElement("button",{type:"button",className:`${n}-nav-more`,style:H,"aria-haspopup":"listbox","aria-controls":T,id:`${r}-more`,"aria-expanded":M,onKeyDown:L},N));return l.createElement("div",{className:Q(`${n}-nav-operations`,p),style:f,ref:t},B,l.createElement(I3,{prefixCls:n,locale:s,editable:g}))}),FY=l.memo(VY,(e,t)=>t.tabMoving),kY=e=>{const{prefixCls:t,id:n,active:r,focus:i,tab:{key:s,label:c,disabled:d,closeIcon:f,icon:p},closable:g,renderWrapper:h,removeAriaLabel:y,editable:C,onClick:b,onFocus:$,onBlur:S,onKeyDown:w,onMouseDown:M,onMouseUp:x,style:R,className:O,tabCount:N,currentPosition:T}=e,P=`${t}-tab`,D=g1(g,f,C,d);function k(H){d||b(H)}function W(H){H.preventDefault(),H.stopPropagation(),C.onEdit("remove",{key:s,event:H})}const U=l.useMemo(()=>p&&typeof c=="string"?l.createElement("span",null,c):c,[c,p]),G=l.useRef(null);l.useEffect(()=>{i&&G.current&&G.current.focus()},[i]);const L=l.createElement("div",{key:s,"data-node-key":N3(s),className:Q(P,O,{[`${P}-with-remove`]:D,[`${P}-active`]:r,[`${P}-disabled`]:d,[`${P}-focus`]:i}),style:R,onClick:k},l.createElement("div",{ref:G,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${P}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:H=>{H.stopPropagation(),k(H)},onKeyDown:w,onMouseDown:M,onMouseUp:x,onFocus:$,onBlur:S},i&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${T} of ${N}`),p&&l.createElement("span",{className:`${P}-icon`},p),c&&U),D&&l.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:r?0:-1,className:`${P}-remove`,onClick:H=>{H.stopPropagation(),W(H)}},f||C.removeIcon||"×"));return h?h(L):L};function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S0.apply(this,arguments)}const WY=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:s}=e,{width:c,height:d,left:f,top:p}=e.getBoundingClientRect();return Math.abs(c-n)<1?[c,d,f-t.left,p-t.top]:[n,r,s,i]},as=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:i}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,i]}return[t,n]},rm=(e,t)=>e[t?0:1],n4=l.forwardRef((e,t)=>{const{className:n,style:r,id:i,animated:s,activeKey:c,rtl:d,extra:f,editable:p,locale:g,tabPosition:h,tabBarGutter:y,children:C,onTabClick:b,onTabScroll:$,indicator:S,classNames:w,styles:M}=e,{prefixCls:x,tabs:R}=l.useContext(p1),O=l.useRef(null),N=l.useRef(null),T=l.useRef(null),P=l.useRef(null),D=l.useRef(null),k=l.useRef(null),W=l.useRef(null),U=h==="top"||h==="bottom",[G,L]=KM(0,(ze,We)=>{U&&$&&$({direction:ze>We?"left":"right"})}),[H,_]=KM(0,(ze,We)=>{!U&&$&&$({direction:ze>We?"top":"bottom"})}),[B,I]=l.useState([0,0]),[z,V]=l.useState([0,0]),[A,j]=l.useState([0,0]),[q,X]=l.useState([0,0]),[K,J]=HY(new Map),Z=DY(R,K,z[0]),oe=rm(B,U),ne=rm(z,U),ie=rm(A,U),de=rm(q,U),le=Math.floor(oe)<Math.floor(ne+ie),fe=le?oe-de:oe-ie,ge=`${x}-nav-operations-hidden`;let re=0,ce=0;U&&d?(re=0,ce=Math.max(0,ne-fe)):(re=Math.min(0,fe-ne),ce=0);function he(ze){return ze<re?re:ze>ce?ce:ze}const pe=l.useRef(null),[Se,Ie]=l.useState();function Me(){Ie(Date.now())}function we(){pe.current&&clearTimeout(pe.current)}_Y(P,(ze,We)=>{function Re(Ye,Je){Ye(it=>he(it+Je))}return le?(U?Re(L,ze):Re(_,We),we(),Me(),!0):!1}),l.useEffect(()=>(we(),Se&&(pe.current=setTimeout(()=>{Ie(0)},100)),we),[Se]);const[se,be]=BY(Z,fe,U?G:H,ne,ie,de,{...e,tabs:R}),Ee=ut((ze=c)=>{const We=Z.get(ze)||{width:0,height:0,left:0,right:0,top:0};if(U){let Re=G;d?We.right<G?Re=We.right:We.right+We.width>G+fe&&(Re=We.right+We.width-fe):We.left<-G?Re=-We.left:We.left+We.width>-G+fe&&(Re=-(We.left+We.width-fe)),_(0),L(he(Re))}else{let Re=H;We.top<-H?Re=-We.top:We.top+We.height>-H+fe&&(Re=-(We.top+We.height-fe)),L(0),_(he(Re))}}),[Ne,Fe]=l.useState(),[Ge,et]=l.useState(!1),Oe=R.filter(ze=>!ze.disabled).map(ze=>ze.key),_e=ze=>{const We=Oe.indexOf(Ne||c),Re=Oe.length,Ye=(We+ze+Re)%Re,Je=Oe[Ye];Fe(Je)},Ve=(ze,We)=>{const Re=Oe.indexOf(ze),Ye=R.find(it=>it.key===ze);g1(Ye?.closable,Ye?.closeIcon,p,Ye?.disabled)&&(We.preventDefault(),We.stopPropagation(),p.onEdit("remove",{key:ze,event:We}),Re===Oe.length-1?_e(-1):_e(1))},Qe=(ze,We)=>{et(!0),We.button===1&&Ve(ze,We)},De=ze=>{const{code:We}=ze,Re=d&&U,Ye=Oe[0],Je=Oe[Oe.length-1];switch(We){case"ArrowLeft":{U&&_e(Re?1:-1);break}case"ArrowRight":{U&&_e(Re?-1:1);break}case"ArrowUp":{ze.preventDefault(),U||_e(-1);break}case"ArrowDown":{ze.preventDefault(),U||_e(1);break}case"Home":{ze.preventDefault(),Fe(Ye);break}case"End":{ze.preventDefault(),Fe(Je);break}case"Enter":case"Space":{ze.preventDefault(),b(Ne??c,ze);break}case"Backspace":case"Delete":{Ve(Ne,ze);break}}},ve={};U?ve.marginInlineStart=y:ve.marginTop=y;const Ae=R.map((ze,We)=>{const{key:Re}=ze;return l.createElement(kY,{id:i,prefixCls:x,key:Re,tab:ze,className:w?.item,style:We===0?M?.item:{...ve,...M?.item},closable:ze.closable,editable:p,active:Re===c,focus:Re===Ne,renderWrapper:C,removeAriaLabel:g?.removeAriaLabel,tabCount:Oe.length,currentPosition:We+1,onClick:Ye=>{b(Re,Ye)},onKeyDown:De,onFocus:()=>{Ge||Fe(Re),Ee(Re),Me(),P.current&&(d||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:()=>{Fe(void 0)},onMouseDown:Ye=>Qe(Re,Ye),onMouseUp:()=>{et(!1)}})}),Ze=()=>J(()=>{const ze=new Map,We=D.current?.getBoundingClientRect();return R.forEach(({key:Re})=>{const Ye=D.current?.querySelector(`[data-node-key="${N3(Re)}"]`);if(Ye){const[Je,it,ft,Ft]=WY(Ye,We);ze.set(Re,{width:Je,height:it,left:ft,top:Ft})}}),ze});l.useEffect(()=>{Ze()},[R.map(ze=>ze.key).join("_")]);const Be=T3(()=>{const ze=as(O),We=as(N),Re=as(T);I([ze[0]-We[0]-Re[0],ze[1]-We[1]-Re[1]]);const Ye=as(W);j(Ye);const Je=as(k);X(Je);const it=as(D);V([it[0]-Ye[0],it[1]-Ye[1]]),Ze()}),Ue=R.slice(0,se),Pe=R.slice(be+1),Xe=[...Ue,...Pe],rt=Z.get(c),{style:ot}=AY({activeTabOffset:rt,horizontal:U,indicator:S,rtl:d});l.useEffect(()=>{Ee()},[c,re,ce,e4(rt),e4(Z),U]),l.useEffect(()=>{Be()},[d]);const lt=!!Xe.length,St=`${x}-nav-wrap`;let Ct,qe,at,He;return U?d?(qe=G>0,Ct=G!==ce):(Ct=G<0,qe=G!==re):(at=H<0,He=H!==re),l.createElement(Vr,{onResize:Be},l.createElement("div",{ref:di(t,O),role:"tablist","aria-orientation":U?"horizontal":"vertical",className:Q(`${x}-nav`,n,w?.header),style:{...M?.header,...r},onKeyDown:()=>{Me()}},l.createElement(t4,{ref:N,position:"left",extra:f,prefixCls:x}),l.createElement(Vr,{onResize:Be},l.createElement("div",{className:Q(St,{[`${St}-ping-left`]:Ct,[`${St}-ping-right`]:qe,[`${St}-ping-top`]:at,[`${St}-ping-bottom`]:He}),ref:P},l.createElement(Vr,{onResize:Be},l.createElement("div",{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${G}px, ${H}px)`,transition:Se?"none":void 0}},Ae,l.createElement(I3,{ref:W,prefixCls:x,locale:g,editable:p,style:{...Ae.length===0?void 0:ve,visibility:lt?"hidden":null}}),l.createElement("div",{className:Q(`${x}-ink-bar`,w?.indicator,{[`${x}-ink-bar-animated`]:s.inkBar}),style:{...ot,...M?.indicator}}))))),l.createElement(FY,S0({},e,{removeAriaLabel:g?.removeAriaLabel,ref:k,prefixCls:x,tabs:Xe,className:!lt&&ge,popupStyle:M?.popup,tabMoving:!!Se})),l.createElement(t4,{ref:T,position:"right",extra:f,prefixCls:x})))}),qY=({renderTabBar:e,...t})=>e?e(t,n4):l.createElement(n4,t),YY=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,id:s,active:c,tabKey:d,children:f}=e,p=l.Children.count(f)>0;return l.createElement("div",{id:s&&`${s}-panel-${d}`,role:"tabpanel",tabIndex:c&&p?0:-1,"aria-labelledby":s&&`${s}-tab-${d}`,"aria-hidden":!c,style:i,className:Q(n,c&&`${n}-active`,r),ref:t},f)});function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(this,arguments)}const UY=e=>{const{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:s,contentStyle:c,contentClassName:d}=e,{prefixCls:f,tabs:p}=l.useContext(p1),g=r.tabPane,h=`${f}-tabpane`;return l.createElement("div",{className:Q(`${f}-content-holder`)},l.createElement("div",{className:Q(`${f}-content`,`${f}-content-${i}`,{[`${f}-content-animated`]:g})},p.map(y=>{const{key:C,forceRender:b,style:$,className:S,destroyOnHidden:w,...M}=y,x=C===n;return l.createElement(Sr,sp({key:C,visible:x,forceRender:b,removeOnLeave:!!(s??w),leavedClassName:`${h}-hidden`},r.tabPaneMotion),({style:R,className:O},N)=>l.createElement(YY,sp({},M,{prefixCls:h,id:t,tabKey:C,animated:g,active:x,style:{...c,...$,...R},className:Q(d,S,O),ref:N})))})))};function GY(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}let r4=0;const XY=l.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:i,items:s,direction:c,activeKey:d,defaultActiveKey:f,editable:p,animated:g,tabPosition:h="top",tabBarGutter:y,tabBarStyle:C,tabBarExtraContent:b,locale:$,more:S,destroyOnHidden:w,renderTabBar:M,onChange:x,onTabClick:R,onTabScroll:O,getPopupContainer:N,popupClassName:T,indicator:P,classNames:D,styles:k,...W}=e,U=l.useMemo(()=>(s||[]).filter(Z=>Z&&typeof Z=="object"&&"key"in Z),[s]),G=c==="rtl",L=GY(g),[H,_]=l.useState(!1);l.useEffect(()=>{_(zY())},[]);const[B,I]=Yt(f??U[0]?.key,d),[z,V]=l.useState(()=>U.findIndex(Z=>Z.key===B));l.useEffect(()=>{let Z=U.findIndex(oe=>oe.key===B);Z===-1&&(Z=Math.max(0,Math.min(z,U.length-1)),I(U[Z]?.key)),V(Z)},[U.map(Z=>Z.key).join("_"),B,z]);const[A,j]=Yt(null,n);l.useEffect(()=>{n||(j(`rc-tabs-${r4}`),r4+=1)},[]);function q(Z,oe){R?.(Z,oe);const ne=Z!==B;I(Z),ne&&x?.(Z)}const X={id:A,activeKey:B,animated:L,tabPosition:h,rtl:G,mobile:H},K={...X,editable:p,locale:$,more:S,tabBarGutter:y,onTabClick:q,onTabScroll:O,extra:b,style:C,getPopupContainer:N,popupClassName:Q(T,D?.popup),indicator:P,styles:k,classNames:D},J=l.useMemo(()=>({tabs:U,prefixCls:r}),[U,r]);return l.createElement(p1.Provider,{value:J},l.createElement("div",du({ref:t,id:n,className:Q(r,`${r}-${h}`,{[`${r}-mobile`]:H,[`${r}-editable`]:p,[`${r}-rtl`]:G},i)},W),l.createElement(qY,du({},K,{renderTabBar:M})),l.createElement(UY,du({destroyOnHidden:w},X,{contentStyle:k?.content,contentClassName:D?.content,animated:L}))))}),KY={motionAppear:!1,motionEnter:!0,motionLeave:!0};function QY(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...typeof t=="object"?t:{}},n.tabPane&&(n.tabPaneMotion={...KY,motionName:Go(e,"switch")}),n}function ZY(e){return e.filter(t=>t)}function JY(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=dr(t).map(r=>{if(l.isValidElement(r)){const{key:i,props:s}=r,{tab:c,...d}=s||{};return{key:String(i),...d,label:c}}return null});return ZY(n)}const eU=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}`}}}}},[Xo(e,"slide-up"),Xo(e,"slide-down")]]},tU=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:s,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${te(e.lineWidth)} ${e.lineType} ${s}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Uo(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:te(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:te(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadiusLG)} 0 0 ${te(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 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},nU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Zt(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:`${te(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":{...$o,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${te(e.paddingXXS)} ${te(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"}}}}}}},rU=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:s,verticalItemMargin:c,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${te(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
290
+ 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,
291
+ > 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:d(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:s,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:te(d(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${te(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:d(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},oU=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:s,horizontalItemPaddingSM:c,horizontalItemPaddingLG:d}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:d,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadius)} ${te(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${te(e.borderRadius)} ${te(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadius)} ${te(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadius)} 0 0 ${te(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:s,minHeight:s}}}}}},aU=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:s,horizontalItemPadding:c,itemSelectedColor:d,itemColor:f}=e,p=`${t}-tab`;return{[p]:{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:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${p}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{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},...xo(e)},"&:hover":{color:r},[`&${p}-active ${p}-btn`]:{color:d},[`&${p}-focus ${p}-btn:focus-visible`]:Uo(e),[`&${p}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${p}-disabled ${p}-btn, &${p}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${p}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${p} + ${p}`]:{margin:{_skip_check_:!0,value:s}}}},iU=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:s}=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:te(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:te(e.marginXS)},marginLeft:{_skip_check_:!0,value:te(s(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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},lU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:s,itemActiveColor:c,colorBorderSecondary:d}=e;return{[t]:{...Zt(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`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} ${d}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:s},"&:active, &:focus:not(:focus-visible)":{color:c},...xo(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...aU(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...xo(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"}}}}}},sU=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:s}=e,c=t||s,d=n||i,f=r||s+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:d,cardHeightLG:f,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(d-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-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}},cU=Pt("Tabs",e=>{const t=Tt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${te(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${te(e.horizontalItemGutter)}`});return[oU(t),iU(t),rU(t),nU(t),tU(t),lU(t),eU(t)]},sU),uU=()=>null,dU=l.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:i,size:s,onEdit:c,hideAdd:d,centered:f,addIcon:p,removeIcon:g,moreIcon:h,more:y,popupClassName:C,children:b,items:$,animated:S,style:w,indicatorSize:M,indicator:x,classNames:R,styles:O,destroyInactiveTabPane:N,destroyOnHidden:T,tabPlacement:P,tabPosition:D,...k}=e,{prefixCls:W}=k,{getPrefixCls:U,direction:G,getPopupContainer:L,className:H,style:_,classNames:B,styles:I}=It("tabs"),{tabs:z}=l.useContext(dt),V=U("tabs",W),A=ar(V),[j,q]=cU(V,A),X=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:X.current}));let K;n==="editable-card"&&(K={onEdit:(re,{key:ce,event:he})=>{c?.(re==="add"?he:ce,re)},removeIcon:g??z?.removeIcon??l.createElement(qr,null),addIcon:(p??z?.addIcon)||l.createElement(lp,null),showAdd:d!==!0});const J=U(),Z=fr(s),oe=JY($,b),ne=QY(V,S),ie={align:x?.align??z?.indicator?.align,size:x?.size??M??z?.indicator?.size??z?.indicatorSize},de=l.useMemo(()=>{const re=P??D??void 0,ce=G==="rtl";switch(re){case"start":return ce?"right":"left";case"end":return ce?"left":"right";default:return re}},[P,D,G]),le={...e,size:Z,tabPlacement:de,items:oe},[fe,ge]=Lt([B,R],[I,O],{props:le},{popup:{_default:"root"}});return l.createElement(XY,{ref:X,direction:G,getPopupContainer:L,...k,items:oe,className:Q({[`${V}-${Z}`]:Z,[`${V}-card`]:["card","editable-card"].includes(n),[`${V}-editable-card`]:n==="editable-card",[`${V}-centered`]:f},H,r,i,fe.root,j,q,A),classNames:{...fe,popup:Q(C,j,q,A,fe.popup?.root)},styles:ge,style:{...ge.root,..._,...w},editable:K,more:{icon:z?.more?.icon??z?.moreIcon??h??l.createElement(n1,null),transitionName:`${J}-slide-up`,...y},prefixCls:V,animated:ne,indicator:ie,destroyOnHidden:T??N,tabPosition:de})}),h1=dU;h1.TabPane=uU;const P3=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{const{getPrefixCls:i}=l.useContext(dt),s=i("card",e),c=Q(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return l.createElement("div",{...r,className:c})},fU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:s}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${te(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,...Zi(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...$o,[`
292
+ > ${n}-typography,
293
+ > ${n}-typography-edit-content
294
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},mU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
295
+ ${te(i)} 0 0 0 ${n},
296
+ 0 ${te(i)} 0 0 ${n},
297
+ ${te(i)} ${te(i)} 0 0 ${n},
298
+ ${te(i)} 0 0 0 ${n} inset,
299
+ 0 ${te(i)} 0 0 ${n} inset;
300
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},pU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:s,actionsBg:c}=e;return{margin:0,padding:0,listStyle:"none",background:c,borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`,...Zi(),"& > 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:te(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:te(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`}}}},gU=e=>({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Zi(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...$o},"&-description":{color:e.colorTextDescription}}),hU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(i)}`}}},yU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},bU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:s,bodyPadding:c,extraColor:d}=e;return{[t]:{...Zt(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:fU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-grid`]:mU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:pU(e),[`${t}-meta`]:gU(e)},[`${t}-bordered`]:{border:`${te(e.lineWidth)} ${e.lineType} ${i}`,[`${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:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius: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`]:hU(e),[`${t}-loading`]:yU(e),[`${t}-rtl`]:{direction:"rtl"}}},vU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${te(r)}`,fontSize:s,[`> ${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"}}}}},SU=e=>({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:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),CU=Pt("Card",e=>{const t=Tt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[bU(t),vU(t)]},SU),$U=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((i,s)=>{const c=`action-${s}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:c},l.createElement("span",null,i))}))},xU=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,extra:c,headStyle:d={},bodyStyle:f={},title:p,loading:g,bordered:h,variant:y,size:C,type:b,cover:$,actions:S,tabList:w,children:M,activeTabKey:x,defaultActiveTabKey:R,tabBarExtraContent:O,hoverable:N,tabProps:T={},classNames:P,styles:D,...k}=e,{getPrefixCls:W,direction:U,className:G,style:L,classNames:H,styles:_}=It("card"),[B]=Ds("card",y,h),I=fr(C),z={...e,size:I,variant:B,loading:g},[V,A]=Lt([H,P],[_,D],{props:z}),j=se=>{e.onTabChange?.(se)},q=l.useMemo(()=>dr(M).some(be=>l.isValidElement(be)&&be.type===P3),[M]),X=W("card",n),[K,J]=CU(X),Z=l.createElement(mi,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),oe=x!==void 0,ne={...T,[oe?"activeKey":"defaultActiveKey"]:oe?x:R,tabBarExtraContent:O};let ie;const de=!I||I==="default"?"large":I,le=w?l.createElement(h1,{size:de,...ne,className:`${X}-head-tabs`,onChange:j,items:w.map(({tab:se,...be})=>({label:se,...be}))}):null;if(p||c||le){const se=Q(`${X}-head`,V.header),be=Q(`${X}-head-title`,V.title),Ee=Q(`${X}-extra`,V.extra),Ne={...d,...A.header};ie=l.createElement("div",{className:se,style:Ne},l.createElement("div",{className:`${X}-head-wrapper`},p&&l.createElement("div",{className:be,style:A.title},p),c&&l.createElement("div",{className:Ee,style:A.extra},c)),le)}const fe=Q(`${X}-cover`,V.cover),ge=$?l.createElement("div",{className:fe,style:A.cover},$):null,re=Q(`${X}-body`,V.body),ce={...f,...A.body},he=l.createElement("div",{className:re,style:ce},g?Z:M),pe=Q(`${X}-actions`,V.actions),Se=S?.length?l.createElement($U,{actionClasses:pe,actionStyle:A.actions,actions:S}):null,Ie=tn(k,["onTabChange"]),Me=Q(X,G,{[`${X}-loading`]:g,[`${X}-bordered`]:B!=="borderless",[`${X}-hoverable`]:N,[`${X}-contain-grid`]:q,[`${X}-contain-tabs`]:w?.length,[`${X}-${I}`]:I,[`${X}-type-${b}`]:!!b,[`${X}-rtl`]:U==="rtl"},r,i,K,J,V.root),we={...A.root,...L,...s};return l.createElement("div",{ref:t,...Ie,className:Me,style:we},ie,ge,he,Se)}),wU=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:s,style:c,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:h,style:y,classNames:C,styles:b}=It("cardMeta"),S=`${g("card",t)}-meta`,[w,M]=Lt([C,d],[b,f],{props:e}),x=Q(S,n,h,w.root),R={...y,...M.root,...c},O=Q(`${S}-avatar`,w.avatar),N=Q(`${S}-title`,w.title),T=Q(`${S}-description`,w.description),P=Q(`${S}-section`,w.section),D=r?l.createElement("div",{className:O,style:M.avatar},r):null,k=i?l.createElement("div",{className:N,style:M.title},i):null,W=s?l.createElement("div",{className:T,style:M.description},s):null,U=k||W?l.createElement("div",{className:P,style:M.section},k,W):null;return l.createElement("div",{...p,className:x,style:R},D,U)},wa=xU;wa.Grid=P3;wa.Meta=wU;function EU(e,t,n){var r=n||{},i=r.noTrailing,s=i===void 0?!1:i,c=r.noLeading,d=c===void 0?!1:c,f=r.debounceMode,p=f===void 0?void 0:f,g,h=!1,y=0;function C(){g&&clearTimeout(g)}function b(S){var w=S||{},M=w.upcomingOnly,x=M===void 0?!1:M;C(),h=!x}function $(){for(var S=arguments.length,w=new Array(S),M=0;M<S;M++)w[M]=arguments[M];var x=this,R=Date.now()-y;if(h)return;function O(){y=Date.now(),t.apply(x,w)}function N(){g=void 0}!d&&p&&!g&&O(),C(),p===void 0&&R>e?d?(y=Date.now(),s||(g=setTimeout(p?N:O,e))):O():s!==!0&&(g=setTimeout(p?N:O,p===void 0?e-R:e))}return $.cancel=b,$}function MU(e,t,n){var r={},i=r.atBegin,s=i===void 0?!1:i;return EU(e,t,{debounceMode:s!==!1})}const RU=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:{...Zt(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[n]:{...Zt(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]:{...Zt(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`]:Uo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(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:`${te(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}}},{[`
301
+ ${n}:not(${n}-disabled),
302
+ ${t}:not(${t}-disabled)
303
+ `]:{[`&: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}`}}},[`
304
+ ${n}-checked:not(${n}-disabled),
305
+ ${t}-checked:not(${t}-disabled)
306
+ `]:{[`&: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 OU(e,t){const n=Tt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return RU(n)}const z3=Pt("Checkbox",(e,{prefixCls:t})=>[OU(t,e)]),A3=ae.createContext(null),TU=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,children:s,indeterminate:c=!1,style:d,onMouseEnter:f,onMouseLeave:p,skipGroup:g=!1,disabled:h,classNames:y,styles:C,...b}=e,{getPrefixCls:$,direction:S,className:w,style:M,classNames:x,styles:R}=It("checkbox"),O=l.useContext(A3),{isFormItemInput:N}=l.useContext(Or),T=l.useContext(kr),P=(O?.disabled||h)??T,D={...e,indeterminate:c,disabled:P},[k,W]=Lt([x,y],[R,C],{props:D}),U=l.useRef(b.value),G=l.useRef(null),L=or(t,G);l.useEffect(()=>{O?.registerValue(b.value)},[]),l.useEffect(()=>{if(!g)return b.value!==U.current&&(O?.cancelValue(U.current),O?.registerValue(b.value),U.current=b.value),()=>O?.cancelValue(b.value)},[b.value]),l.useEffect(()=>{G.current?.input&&(G.current.input.indeterminate=c)},[c]);const H=$("checkbox",n),_=ar(H),[B,I]=z3(H,_),z={...b};O&&!g&&(z.onChange=(...X)=>{b.onChange&&b.onChange.apply(b,X),O.toggleOption&&O.toggleOption({label:s,value:b.value})},z.name=O.name,z.checked=O.value.includes(b.value));const V=Q(`${H}-wrapper`,{[`${H}-rtl`]:S==="rtl",[`${H}-wrapper-checked`]:z.checked,[`${H}-wrapper-disabled`]:P,[`${H}-wrapper-in-form-item`]:N},w,r,k.root,i,I,_,B),A=Q(k.icon,{[`${H}-indeterminate`]:c},dd,B),[j,q]=c3(z.onClick);return l.createElement(fd,{component:"Checkbox",disabled:P},l.createElement("label",{className:V,style:{...W.root,...M,...d},onMouseEnter:f,onMouseLeave:p,onClick:j},l.createElement(s3,{...z,onClick:q,prefixCls:H,className:A,style:W.icon,disabled:P,ref:L}),Mr(s)&&l.createElement("span",{className:Q(`${H}-label`,k.label),style:W.label},s)))},D3=l.forwardRef(TU),NU=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:s,className:c,rootClassName:d,style:f,onChange:p,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(dt),[C,b]=l.useState(g.value||n||[]),[$,S]=l.useState([]);l.useEffect(()=>{"value"in g&&b(g.value||[])},[g.value]);const w=l.useMemo(()=>i.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[i]),M=L=>{S(H=>H.filter(_=>_!==L))},x=L=>{S(H=>[].concat(xn(H),[L]))},R=L=>{const H=C.indexOf(L.value),_=xn(C);H===-1?_.push(L.value):_.splice(H,1),"value"in g||b(_),p?.(_.filter(B=>$.includes(B)).sort((B,I)=>{const z=w.findIndex(A=>A.value===B),V=w.findIndex(A=>A.value===I);return z-V}))},O=h("checkbox",s),N=`${O}-group`,T=ar(O),[P,D]=z3(O,T),k=tn(g,["value","disabled"]),W=i.length?w.map(L=>l.createElement(D3,{prefixCls:O,key:L.value.toString(),disabled:"disabled"in L?L.disabled:g.disabled,value:L.value,checked:C.includes(L.value),onChange:L.onChange,className:Q(`${N}-item`,L.className),style:L.style,title:L.title,id:L.id,required:L.required},L.label)):r,U=l.useMemo(()=>({toggleOption:R,value:C,disabled:g.disabled,name:g.name,registerValue:x,cancelValue:M}),[R,C,g.disabled,g.name,x,M]),G=Q(N,{[`${N}-rtl`]:y==="rtl"},c,d,D,T,P);return l.createElement("div",{className:G,style:f,...k,ref:t},l.createElement(A3.Provider,{value:U},W))}),Os=D3;Os.Group=NU;Os.__ANT_CHECKBOX=!0;const j3=l.createContext({});function o4(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 IU=["xs","sm","md","lg","xl","xxl"],PU=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{gutter:i,wrap:s}=l.useContext(j3),{prefixCls:c,span:d,order:f,offset:p,push:g,pull:h,className:y,children:C,flex:b,style:$,...S}=e,w=n("col",c),[M,x]=h9(w),R={};let O={};IU.forEach(P=>{let D={};const k=e[P];typeof k=="number"?D.span=k:typeof k=="object"&&(D=k||{}),delete S[P],O={...O,[`${w}-${P}-${D.span}`]:D.span!==void 0,[`${w}-${P}-order-${D.order}`]:D.order||D.order===0,[`${w}-${P}-offset-${D.offset}`]:D.offset||D.offset===0,[`${w}-${P}-push-${D.push}`]:D.push||D.push===0,[`${w}-${P}-pull-${D.pull}`]:D.pull||D.pull===0,[`${w}-rtl`]:r==="rtl"},D.flex&&(O[`${w}-${P}-flex`]=!0,R[`--${w}-${P}-flex`]=o4(D.flex))});const N=Q(w,{[`${w}-${d}`]:d!==void 0,[`${w}-order-${f}`]:f,[`${w}-offset-${p}`]:p,[`${w}-push-${g}`]:g,[`${w}-pull-${h}`]:h},y,O,M,x),T={};if(i?.[0]){const P=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;T.paddingInline=P}return b&&(T.flex=o4(b),s===!1&&!T.minWidth&&(T.minWidth=0)),l.createElement("div",{...S,style:{...T,...$,...R},className:N,ref:t},C)});function zU(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((s,c)=>{if(typeof s=="object"&&s!==null)for(let d=0;d<tl.length;d++){const f=tl[d];if(i[f]&&s[f]!==void 0){n[c]=s[f];break}}else n[c]=s}),n}function a4(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let s=0;s<tl.length;s++){const c=tl[s];if(!t||!t[c])continue;const d=e[c];if(d!==void 0){r(d);return}}};return l.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const AU=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:s,style:c,children:d,gutter:f=0,wrap:p,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(dt),C=Dp(!0,null),b=a4(i,C),$=a4(r,C),S=h("row",n),[w,M]=g9(S),x=zU(f,C),R=Q(S,{[`${S}-no-wrap`]:p===!1,[`${S}-${$}`]:$,[`${S}-${b}`]:b,[`${S}-rtl`]:y==="rtl"},s,w,M),O={};if(x?.[0]){const D=typeof x[0]=="number"?`${x[0]/-2}px`:`calc(${x[0]} / -2)`;O.marginInline=D}const[N,T]=x;O.rowGap=T;const P=l.useMemo(()=>({gutter:[N,T],wrap:p}),[N,T,p]);return l.createElement(j3.Provider,{value:P},l.createElement("div",{...g,className:R,style:{...O,...c},ref:t},d))}),DU=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},jU=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:s,orientationMargin:c,verticalMarginInline:d}=e,f=`${t}-rail`;return{[t]:{...Zt(e),borderBlockStart:`${te(i)} solid ${r}`,[f]:{borderBlockStart:`${te(i)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${te(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${te(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${te(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${f}-start, ${f}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${f}-start`]:{width:`calc(${c} * 100%)`},[`${f}-end`]:{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${f}-start`]:{width:`calc(100% - ${c} * 100%)`},[`${f}-end`]:{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${te(i)} 0 0`,[f]:{borderBlockStart:`${te(i)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${f}-start, ${f}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${te(i)} 0 0`,[f]:{borderBlockStart:`${te(i)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,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`]:{[`${f}-start`]:{width:0},[`${f}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${f}-start`]:{width:"100%"},[`${f}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},_U=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),HU=Pt("Divider",e=>{const t=Tt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[jU(t),DU(t)]},_U,{unitless:{orientationMargin:!0}}),BU=["left","right","center","start","end"],LU={small:"sm",middle:"md"},ni=e=>{const{getPrefixCls:t,direction:n,className:r,style:i,classNames:s,styles:c}=It("divider"),{prefixCls:d,type:f,orientation:p,vertical:g,titlePlacement:h,orientationMargin:y,className:C,rootClassName:b,children:$,dashed:S,variant:w="solid",plain:M,style:x,size:R,classNames:O,styles:N,...T}=e,P=t("divider",d),D=`${P}-rail`,[k,W]=HU(P),U=fr(R),G=LU[U],L=!!$,H=BU.includes(p||""),_=l.useMemo(()=>{const Z=h??(H?p:"center");return Z==="left"?n==="rtl"?"end":"start":Z==="right"?n==="rtl"?"start":"end":Z},[n,p,h,H]),B=_==="start"&&y!=null,I=_==="end"&&y!=null,[z,V]=id(p,g,f),A={...e,orientation:z,titlePlacement:_,size:U},[j,q]=Lt([s,O],[c,N],{props:A}),X=Q(P,r,k,W,`${P}-${z}`,{[`${P}-with-text`]:L,[`${P}-with-text-${_}`]:L,[`${P}-dashed`]:!!S,[`${P}-${w}`]:w!=="solid",[`${P}-plain`]:!!M,[`${P}-rtl`]:n==="rtl",[`${P}-no-default-orientation-margin-start`]:B,[`${P}-no-default-orientation-margin-end`]:I,[`${P}-${G}`]:!!G,[D]:!$,[j.rail]:j.rail&&!$},C,b,j.root),K=l.useMemo(()=>typeof y=="number"?y:/^\d+$/.test(y)?Number(y):y,[y]),J={marginInlineStart:B?K:void 0,marginInlineEnd:I?K:void 0};return l.createElement("div",{className:X,style:{...i,...q.root,...$?{}:q.rail,...x},...T,role:"separator"},$&&!V&&l.createElement(l.Fragment,null,l.createElement("div",{className:Q(D,`${D}-start`,j.rail),style:q.rail}),l.createElement("span",{className:Q(`${P}-inner-text`,j.content),style:{...J,...q.content}},$),l.createElement("div",{className:Q(D,`${D}-end`,j.rail),style:q.rail})))},i4=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},Wo=e=>e!==void 0?`${e}px`:void 0;function VU(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:s,onMotionStart:c,onMotionEnd:d,direction:f,vertical:p=!1}=e,g=l.useRef(null),[h,y]=l.useState(r),C=T=>{const P=i(T),D=n.current?.querySelectorAll(`.${t}-item`)[P];return D?.offsetParent&&D},[b,$]=l.useState(null),[S,w]=l.useState(null);Nt(()=>{if(h!==r){const T=C(h),P=C(r),D=i4(T,p),k=i4(P,p);y(r),$(D),w(k),T&&P?c():d()}},[r]);const M=l.useMemo(()=>Wo(p?b?.top??0:f==="rtl"?-b?.right:b?.left),[p,f,b]),x=l.useMemo(()=>Wo(p?S?.top??0:f==="rtl"?-S?.right:S?.left),[p,f,S]),R=()=>p?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},O=()=>p?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},N=()=>{$(null),w(null),d()};return!b||!S?null:l.createElement(Sr,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:R,onAppearActive:O,onVisibleChanged:N},({className:T,style:P},D)=>{const k={...P,"--thumb-start-left":M,"--thumb-start-width":Wo(b?.width),"--thumb-active-left":x,"--thumb-active-width":Wo(S?.width),"--thumb-start-top":M,"--thumb-start-height":Wo(b?.height),"--thumb-active-top":x,"--thumb-active-height":Wo(S?.height)},W={ref:or(g,D),style:k,className:Q(`${t}-thumb`,T)};return l.createElement("div",W)})}function FU(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function kU(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=FU(t);return{...t,title:n}}return{label:t?.toString(),title:t?.toString(),value:t}})}const WU=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:s,disabled:c,checked:d,label:f,title:p,value:g,name:h,onChange:y,onFocus:C,onBlur:b,onKeyDown:$,onKeyUp:S,onMouseDown:w,itemRender:M=x=>x})=>{const x=O=>{c||y(O,g)},R=l.createElement("label",{className:Q(t,{[`${e}-item-disabled`]:c}),style:n,onMouseDown:w},l.createElement("input",{name:h,className:`${e}-item-input`,type:"radio",disabled:c,checked:d,onChange:x,onFocus:C,onBlur:b,onKeyDown:$,onKeyUp:S}),l.createElement("div",{className:Q(`${e}-item-label`,i?.label),title:p,style:r?.label},f));return M(R,{item:s})},qU=l.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:i,options:s=[],disabled:c,defaultValue:d,value:f,name:p,onChange:g,className:h="",style:y,styles:C,classNames:b,motionName:$="thumb-motion",itemRender:S,...w}=e,M=l.useRef(null),x=l.useMemo(()=>or(M,t),[M,t]),R=l.useMemo(()=>kU(s),[s]),[O,N]=Yt(d??R[0]?.value,f),[T,P]=l.useState(!1),D=(j,q)=>{N(q),g?.(q)},k=tn(w,["children"]),[W,U]=l.useState(!1),[G,L]=l.useState(!1),H=()=>{L(!0)},_=()=>{L(!1)},B=()=>{U(!1)},I=j=>{j.key==="Tab"&&U(!0)},z=j=>{const q=R.findIndex(Z=>Z.value===O),X=R.length,K=(q+j+X)%X,J=R[K];J&&(N(J.value),g?.(J.value))},V=j=>{switch(j.key){case"ArrowLeft":case"ArrowUp":z(-1);break;case"ArrowRight":case"ArrowDown":z(1);break}},A=j=>{const{value:q,disabled:X}=j;return l.createElement(WU,Xn({},j,{name:p,data:j,itemRender:S,key:q,prefixCls:n,className:Q(j.className,`${n}-item`,b?.item,{[`${n}-item-selected`]:q===O&&!T,[`${n}-item-focused`]:G&&W&&q===O}),style:C?.item,classNames:b,styles:C,checked:q===O,onChange:D,onFocus:H,onBlur:_,onKeyDown:V,onKeyUp:I,onMouseDown:B,disabled:!!c||!!X}))};return l.createElement("div",Xn({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,"aria-orientation":i?"vertical":"horizontal",style:y},k,{className:Q(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:c,[`${n}-vertical`]:i},h),ref:x}),l.createElement("div",{className:`${n}-group`},l.createElement(VU,{vertical:i,prefixCls:n,value:O,containerRef:M,motionName:`${n}-${$}`,direction:r,getValueIndex:j=>R.findIndex(q=>q.value===j),onMotionStart:()=>{P(!0)},onMotionEnd:()=>{P(!1)}}),R.map(A)))}),YU=qU;function l4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function s4(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const UU={overflow:"hidden",...$o},GU=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Zt(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...xo(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${te(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...s4(e),color:e.itemSelectedColor},"&-focused":Uo(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:n,lineHeight:te(n),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,...UU},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...s4(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${te(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:te(r),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:te(i),padding:`0 ${te(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...l4(`&-disabled ${t}-item`,e),...l4(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},XU=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:s,lineWidthBold:c,colorBgLayout:d}=e;return{trackPadding:c,trackBg:d,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:s,itemSelectedColor:n}},KU=Pt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Tt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return GU(r)},XU);function QU(e){return typeof e=="object"&&!!e?.icon}const ZU=l.forwardRef((e,t)=>{const n=Ko(),{prefixCls:r,className:i,rootClassName:s,block:c,options:d=[],size:f="middle",style:p,vertical:g,orientation:h,shape:y="default",name:C=n,styles:b,classNames:$,...S}=e,{getPrefixCls:w,direction:M,className:x,style:R,classNames:O,styles:N}=It("segmented"),T={...e,options:d,size:f,shape:y},[P,D]=Lt([O,$],[N,b],{props:T}),k=w("segmented",r),[W,U]=KU(k),G=fr(f),L=l.useMemo(()=>d.map(z=>{if(QU(z)){const{icon:V,label:A,...j}=z;return{...j,label:l.createElement(l.Fragment,null,l.createElement("span",{className:Q(`${k}-item-icon`,P.icon),style:D.icon},V),A&&l.createElement("span",null,A))}}return z}),[d,k,P.icon,D.icon]),[,H]=id(h,g),_=Q(i,s,x,P.root,{[`${k}-block`]:c,[`${k}-sm`]:G==="small",[`${k}-lg`]:G==="large",[`${k}-vertical`]:H,[`${k}-shape-${y}`]:y==="round"},W,U),B={...D.root,...R,...p},I=(z,{item:V})=>{if(!V.tooltip)return z;const A=typeof V.tooltip=="object"?V.tooltip:{title:V.tooltip};return l.createElement(ur,{...A},z)};return l.createElement(YU,{...S,name:C,className:_,style:B,classNames:P,styles:D,itemRender:I,options:L,ref:t,prefixCls:k,direction:M,vertical:H})}),JU=ZU;var eG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};function C0(){return C0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C0.apply(this,arguments)}const tG=(e,t)=>l.createElement(gt,C0({},e,{ref:t,icon:eG})),c4=l.forwardRef(tG);var nG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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:"border",theme:"outlined"};function $0(){return $0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$0.apply(this,arguments)}const rG=(e,t)=>l.createElement(gt,$0({},e,{ref:t,icon:nG})),oG=l.forwardRef(rG);var aG={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"};function x0(){return x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x0.apply(this,arguments)}const iG=(e,t)=>l.createElement(gt,x0({},e,{ref:t,icon:aG})),_3=l.forwardRef(iG);var lG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"filled"};function w0(){return w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w0.apply(this,arguments)}const sG=(e,t)=>l.createElement(gt,w0({},e,{ref:t,icon:lG})),cG=l.forwardRef(sG);var uG={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"};function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E0.apply(this,arguments)}const dG=(e,t)=>l.createElement(gt,E0({},e,{ref:t,icon:uG})),y1=l.forwardRef(dG);var fG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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-32zM695.5 365.7l-210.6 292a31.8 31.8 0 01-51.7 0L308.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.3H689c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-square",theme:"filled"};function M0(){return M0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M0.apply(this,arguments)}const mG=(e,t)=>l.createElement(gt,M0({},e,{ref:t,icon:fG})),pG=l.forwardRef(mG);var gG={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"};function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R0.apply(this,arguments)}const hG=(e,t)=>l.createElement(gt,R0({},e,{ref:t,icon:gG})),H3=l.forwardRef(hG);var yG={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"};function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}const bG=(e,t)=>l.createElement(gt,O0({},e,{ref:t,icon:yG})),wd=l.forwardRef(bG);var vG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"};function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(this,arguments)}const SG=(e,t)=>l.createElement(gt,T0({},e,{ref:t,icon:vG})),u4=l.forwardRef(SG);var CG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};function N0(){return N0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N0.apply(this,arguments)}const $G=(e,t)=>l.createElement(gt,N0({},e,{ref:t,icon:CG})),xG=l.forwardRef($G);var wG={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"};function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I0.apply(this,arguments)}const EG=(e,t)=>l.createElement(gt,I0({},e,{ref:t,icon:wG})),B3=l.forwardRef(EG);var MG={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"};function P0(){return P0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P0.apply(this,arguments)}const RG=(e,t)=>l.createElement(gt,P0({},e,{ref:t,icon:MG})),cp=l.forwardRef(RG);var OG={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"};function z0(){return z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z0.apply(this,arguments)}const TG=(e,t)=>l.createElement(gt,z0({},e,{ref:t,icon:OG})),d4=l.forwardRef(TG);var NG={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"};function A0(){return A0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A0.apply(this,arguments)}const IG=(e,t)=>l.createElement(gt,A0({},e,{ref:t,icon:NG})),f4=l.forwardRef(IG);var PG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};function D0(){return D0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D0.apply(this,arguments)}const zG=(e,t)=>l.createElement(gt,D0({},e,{ref:t,icon:PG})),AG=l.forwardRef(zG);var DG={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"};function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j0.apply(this,arguments)}const jG=(e,t)=>l.createElement(gt,j0({},e,{ref:t,icon:DG})),ui=l.forwardRef(jG);var _G={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"};function _0(){return _0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_0.apply(this,arguments)}const HG=(e,t)=>l.createElement(gt,_0({},e,{ref:t,icon:_G})),BG=l.forwardRef(HG);var LG={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"};function H0(){return H0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H0.apply(this,arguments)}const VG=(e,t)=>l.createElement(gt,H0({},e,{ref:t,icon:LG})),FG=l.forwardRef(VG);var kG={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"};function B0(){return B0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B0.apply(this,arguments)}const WG=(e,t)=>l.createElement(gt,B0({},e,{ref:t,icon:kG})),qG=l.forwardRef(WG);var YG={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"};function L0(){return L0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L0.apply(this,arguments)}const UG=(e,t)=>l.createElement(gt,L0({},e,{ref:t,icon:YG})),GG=l.forwardRef(UG);var XG={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"};function V0(){return V0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V0.apply(this,arguments)}const KG=(e,t)=>l.createElement(gt,V0({},e,{ref:t,icon:XG})),QG=l.forwardRef(KG);var ZG={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"};function F0(){return F0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F0.apply(this,arguments)}const JG=(e,t)=>l.createElement(gt,F0({},e,{ref:t,icon:ZG})),up=l.forwardRef(JG);var eX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};function k0(){return k0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k0.apply(this,arguments)}const tX=(e,t)=>l.createElement(gt,k0({},e,{ref:t,icon:eX})),nX=l.forwardRef(tX);var rX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"};function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W0.apply(this,arguments)}const oX=(e,t)=>l.createElement(gt,W0({},e,{ref:t,icon:rX})),aX=l.forwardRef(oX);var iX={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"};function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q0.apply(this,arguments)}const lX=(e,t)=>l.createElement(gt,q0({},e,{ref:t,icon:iX})),sX=l.forwardRef(lX);var cX={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"};function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y0.apply(this,arguments)}const uX=(e,t)=>l.createElement(gt,Y0({},e,{ref:t,icon:cX})),dX=l.forwardRef(uX);var fX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};function U0(){return U0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U0.apply(this,arguments)}const mX=(e,t)=>l.createElement(gt,U0({},e,{ref:t,icon:fX})),L3=l.forwardRef(mX);var pX={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 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};function G0(){return G0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G0.apply(this,arguments)}const gX=(e,t)=>l.createElement(gt,G0({},e,{ref:t,icon:pX})),hX=l.forwardRef(gX);var yX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"};function X0(){return X0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X0.apply(this,arguments)}const bX=(e,t)=>l.createElement(gt,X0({},e,{ref:t,icon:yX})),vX=l.forwardRef(bX);var SX={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"};function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K0.apply(this,arguments)}const CX=(e,t)=>l.createElement(gt,K0({},e,{ref:t,icon:SX})),V3=l.forwardRef(CX);var $X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"};function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(this,arguments)}const xX=(e,t)=>l.createElement(gt,Q0({},e,{ref:t,icon:$X})),wX=l.forwardRef(xX);var EX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.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-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0.apply(this,arguments)}const MX=(e,t)=>l.createElement(gt,Z0({},e,{ref:t,icon:EX})),RX=l.forwardRef(MX);var OX={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"};function J0(){return J0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J0.apply(this,arguments)}const TX=(e,t)=>l.createElement(gt,J0({},e,{ref:t,icon:OX})),F3=l.forwardRef(TX);var NX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(this,arguments)}const IX=(e,t)=>l.createElement(gt,eS({},e,{ref:t,icon:NX})),b1=l.forwardRef(IX);var PX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"};function tS(){return tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tS.apply(this,arguments)}const zX=(e,t)=>l.createElement(gt,tS({},e,{ref:t,icon:PX})),AX=l.forwardRef(zX);var DX={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"};function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nS.apply(this,arguments)}const jX=(e,t)=>l.createElement(gt,nS({},e,{ref:t,icon:DX})),_X=l.forwardRef(jX);var HX={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"};function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}const BX=(e,t)=>l.createElement(gt,rS({},e,{ref:t,icon:HX})),LX=l.forwardRef(BX);var VX={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"};function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}const FX=(e,t)=>l.createElement(gt,oS({},e,{ref:t,icon:VX})),kX=l.forwardRef(FX);var WX={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"};function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aS.apply(this,arguments)}const qX=(e,t)=>l.createElement(gt,aS({},e,{ref:t,icon:WX})),k3=l.forwardRef(qX),YX=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:s,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:f,borderRadiusSM:p,colorBgContainerDisabled:g,lineWidth:h}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:h,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:c,borderRadius:f},"&-small":{paddingInline:s,borderRadius:p,fontSize:d},"&-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},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{"--space-addon-border-color":i,"--space-addon-background":g,"--space-addon-border-color-outlined":i,"--space-addon-background-filled":g,borderColor:"var(--space-addon-border-color)",background:"var(--space-addon-background)","&-variant-outlined":{"--space-addon-border-color":"var(--space-addon-border-color-outlined)"},"&-variant-filled":{"--space-addon-border-color":"transparent","--space-addon-background":"var(--space-addon-background-filled)",[`&${t}-disabled`]:{"--space-addon-border-color":i,"--space-addon-background":g}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{"--space-addon-border-color-outlined":e.colorError,"--space-addon-background-filled":e.colorErrorBg,color:e.colorError},"&-status-warning":{"--space-addon-border-color-outlined":e.colorWarning,"--space-addon-background-filled":e.colorWarningBg,color:e.colorWarning}}]}},UX=Pt(["Space","Addon"],e=>[YX(e),pd(e,{focus:!1})]),GX=ae.forwardRef((e,t)=>{const{className:n,children:r,style:i,prefixCls:s,variant:c="outlined",disabled:d,status:f,...p}=e,{getPrefixCls:g,direction:h}=ae.useContext(dt),y=g("space-addon",s),[C,b]=UX(y),{compactItemClassnames:$,compactSize:S}=Ma(y,h),w=el(y,f),M=Q(y,C,$,b,`${y}-variant-${c}`,w,{[`${y}-${S}`]:S,[`${y}-disabled`]:d},n);return ae.createElement("div",{ref:t,className:M,style:i,...p},r)});function XX(e){return!!(e.addonBefore||e.addonAfter)}function KX(e){return!!(e.prefix||e.suffix||e.allowClear)}function m4(e,t,n){const r=t.cloneNode(!0),i=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=(...s)=>{t.setSelectionRange(...s)},i}function dp(e,t,n,r){if(!n)return;let i=t;if(t.type==="click"){i=m4(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=m4(t,e,r),n(i);return}n(i)}function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}const W3=ae.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:i,prefix:s,suffix:c,addonBefore:d,addonAfter:f,className:p,style:g,disabled:h,readOnly:y,focused:C,triggerFocus:b,allowClear:$,value:S,handleReset:w,hidden:M,classes:x,classNames:R,dataAttrs:O,styles:N,components:T,onClear:P}=e,D=r??n,k=T?.affixWrapper||"span",W=T?.groupWrapper||"span",U=T?.wrapper||"span",G=T?.groupAddon||"span",L=l.useRef(null),H=z=>{L.current?.contains(z.target)&&b?.()},_=KX(e);let B=l.cloneElement(D,{value:S,className:Q(D.props?.className,!_&&R?.variant)||null});const I=l.useRef(null);if(ae.useImperativeHandle(t,()=>({nativeElement:I.current||L.current})),_){let z=null;if($){const q=!h&&!y&&S,X=`${i}-clear-icon`,K=typeof $=="object"&&$?.clearIcon?$.clearIcon:"✖";z=ae.createElement("button",{type:"button",tabIndex:-1,onClick:J=>{w?.(J),P?.()},onMouseDown:J=>J.preventDefault(),className:Q(X,{[`${X}-hidden`]:!q,[`${X}-has-suffix`]:!!c})},K)}const V=`${i}-affix-wrapper`,A=Q(V,{[`${i}-disabled`]:h,[`${V}-disabled`]:h,[`${V}-focused`]:C,[`${V}-readonly`]:y,[`${V}-input-with-clear-btn`]:c&&$&&S},x?.affixWrapper,R?.affixWrapper,R?.variant),j=(c||$)&&ae.createElement("span",{className:Q(`${i}-suffix`,R?.suffix),style:N?.suffix},z,c);B=ae.createElement(k,iS({className:A,style:N?.affixWrapper,onClick:H},O?.affixWrapper,{ref:L}),s&&ae.createElement("span",{className:Q(`${i}-prefix`,R?.prefix),style:N?.prefix},s),B,j)}if(XX(e)){const z=`${i}-group`,V=`${z}-addon`,A=`${z}-wrapper`,j=Q(`${i}-wrapper`,z,x?.wrapper,R?.wrapper),q=Q(A,{[`${A}-disabled`]:h},x?.group,R?.groupWrapper);B=ae.createElement(W,{className:q,ref:I},ae.createElement(U,{className:j},d&&ae.createElement(G,{className:V},d),B,f&&ae.createElement(G,{className:V},f)))}return ae.cloneElement(B,{className:Q(B.props?.className,p)||null,style:{...B.props?.style,...g},hidden:M})});function q3(e,t){return l.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:i.strategy||(s=>s.length)}},[e,t])}function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(this,arguments)}const QX=l.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:i,onBlur:s,onPressEnter:c,onKeyDown:d,onKeyUp:f,prefixCls:p="rc-input",disabled:g,htmlSize:h,className:y,maxLength:C,suffix:b,showCount:$,count:S,type:w="text",classes:M,classNames:x,styles:R,onCompositionStart:O,onCompositionEnd:N,...T}=e,[P,D]=l.useState(!1),k=l.useRef(!1),W=l.useRef(!1),U=l.useRef(null),G=l.useRef(null),L=re=>{U.current&&r6(U.current,re)},[H,_]=Yt(e.defaultValue,e.value),B=H==null?"":String(H),[I,z]=l.useState(null),V=q3(S,$),A=V.max||C,j=V.strategy(B),q=!!A&&j>A;l.useImperativeHandle(t,()=>({focus:L,blur:()=>{U.current?.blur()},setSelectionRange:(re,ce,he)=>{U.current?.setSelectionRange(re,ce,he)},select:()=>{U.current?.select()},input:U.current,nativeElement:G.current?.nativeElement||U.current})),l.useEffect(()=>{W.current&&(W.current=!1),D(re=>re&&g?!1:re)},[g]);const X=(re,ce,he)=>{let pe=ce;if(!k.current&&V.exceedFormatter&&V.max&&V.strategy(ce)>V.max)pe=V.exceedFormatter(ce,{max:V.max}),ce!==pe&&z([U.current?.selectionStart||0,U.current?.selectionEnd||0]);else if(he.source==="compositionEnd")return;_(pe),U.current&&dp(U.current,re,r,pe)};l.useEffect(()=>{I&&U.current?.setSelectionRange(...I)},[I]);const K=re=>{X(re,re.target.value,{source:"change"})},J=re=>{k.current=!1,X(re,re.currentTarget.value,{source:"compositionEnd"}),N?.(re)},Z=re=>{c&&re.key==="Enter"&&!W.current&&!re.nativeEvent.isComposing&&(W.current=!0,c(re)),d?.(re)},oe=re=>{re.key==="Enter"&&(W.current=!1),f?.(re)},ne=re=>{D(!0),i?.(re)},ie=re=>{W.current&&(W.current=!1),D(!1),s?.(re)},de=re=>{_(""),L(),U.current&&dp(U.current,re,r)},le=q&&`${p}-out-of-range`,fe=()=>{const re=tn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ae.createElement("input",fp({autoComplete:n},re,{onChange:K,onFocus:ne,onBlur:ie,onKeyDown:Z,onKeyUp:oe,className:Q(p,{[`${p}-disabled`]:g},x?.input),style:R?.input,ref:U,size:h,type:w,onCompositionStart:ce=>{k.current=!0,O?.(ce)},onCompositionEnd:J}))},ge=()=>{const re=Number(A)>0;if(b||V.show){const ce=V.showFormatter?V.showFormatter({value:B,count:j,maxLength:A}):`${j}${re?` / ${A}`:""}`;return ae.createElement(ae.Fragment,null,V.show&&ae.createElement("span",{className:Q(`${p}-show-count-suffix`,{[`${p}-show-count-has-suffix`]:!!b},x?.count),style:{...R?.count}},ce),b)}return null};return ae.createElement(W3,fp({},T,{prefixCls:p,className:Q(y,le),handleReset:de,value:B,focused:P,triggerFocus:L,suffix:ge(),disabled:g,classes:M,classNames:x,styles:R,ref:G}),fe())}),Y3=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ae.createElement(Ps,null)}),t};function U3(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function ZX(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Xp=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:i,size:s,disabled:c,onBlur:d,onFocus:f,suffix:p,allowClear:g,addonAfter:h,addonBefore:y,className:C,style:b,styles:$,rootClassName:S,onChange:w,classNames:M,variant:x,...R}=e,{getPrefixCls:O,direction:N,allowClear:T,autoComplete:P,className:D,style:k,classNames:W,styles:U}=It("input"),G=O("input",n),L=l.useRef(null),H=ar(G),[_,B]=S3(G,S);C3(G,H);const{compactSize:I,compactItemClassnames:z}=Ma(G,N),V=fr(Se=>s??I??Se),A=ae.useContext(kr),j=c??A,q={...e,size:V,disabled:j},[X,K]=Lt([W,M],[U,$],{props:q}),{status:J,hasFeedback:Z,feedbackIcon:oe}=l.useContext(Or),ne=As(J,i),ie=ZX(e)||!!Z;l.useRef(ie);const de=U3(L,!0),le=Se=>{de(),d?.(Se)},fe=Se=>{de(),f?.(Se)},ge=Se=>{de(),w?.(Se)},re=(Z||p)&&ae.createElement(ae.Fragment,null,p,Z&&oe),ce=Y3(g??T),[he,pe]=Ds("input",x,r);return ae.createElement(QX,{ref:or(t,L),prefixCls:G,autoComplete:P,...R,disabled:j,onBlur:le,onFocus:fe,style:{...K.root,...k,...b},styles:K,suffix:re,allowClear:ce,className:Q(C,S,B,H,z,D,X.root),onChange:ge,addonBefore:y&&ae.createElement(xa,{form:!0,space:!0},y),addonAfter:h&&ae.createElement(xa,{form:!0,space:!0},h),classNames:{...X,input:Q({[`${G}-sm`]:V==="small",[`${G}-lg`]:V==="large",[`${G}-rtl`]:N==="rtl"},X.input,_),variant:Q({[`${G}-${he}`]:pe},el(G,ne)),affixWrapper:Q({[`${G}-affix-wrapper-sm`]:V==="small",[`${G}-affix-wrapper-lg`]:V==="large",[`${G}-affix-wrapper-rtl`]:N==="rtl"},_),wrapper:Q({[`${G}-group-rtl`]:N==="rtl"},_),groupWrapper:Q({[`${G}-group-wrapper-sm`]:V==="small",[`${G}-group-wrapper-lg`]:V==="large",[`${G}-group-wrapper-rtl`]:N==="rtl",[`${G}-group-wrapper-${he}`]:pe},el(`${G}-group-wrapper`,ne,Z),_)}})}),G3=(e,t,n,r,i,s)=>{const{classNames:c,styles:d}=It(e),[f,p]=Lt([c,t],[d,n],{props:s},{popup:{_default:"root"}});return l.useMemo(()=>{const g={...f,popup:{...f.popup,root:Q(f.popup?.root,r)}},h={...p,popup:{...p.popup,root:{...p.popup?.root,...i}}};return[g,h]},[f,p,r,i])};function JX(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 eK(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 X3(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=_T({...e,componentName:"DatePicker"});return[l.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]}const[tK,nK]=["week","WeekPicker"],[rK,oK]=["month","MonthPicker"],[aK,iK]=["year","YearPicker"],[lK,sK]=["quarter","QuarterPicker"],[v1,p4]=["time","TimePicker"],K3=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ae.createElement(ae.Fragment,null,e===v1?ae.createElement(wd,null):ae.createElement(_3,null),t&&n):r,cK=e=>l.createElement(_t,{size:"small",type:"primary",...e});function Q3(e){return l.useMemo(()=>({button:cK,...e}),[e])}const uK=e=>l.forwardRef((n,r)=>{const{prefixCls:i,getPopupContainer:s,components:c,className:d,style:f,classNames:p,styles:g,placement:h,size:y,disabled:C,bordered:b=!0,placeholder:$,status:S,variant:w,picker:M,dropdownClassName:x,popupClassName:R,popupStyle:O,rootClassName:N,suffixIcon:T,...P}=n,D=M===v1?"timePicker":"datePicker",[k,W]=G3(D,p,g,R||x,O),U=l.useRef(null),{getPrefixCls:G,direction:L,getPopupContainer:H,rangePicker:_}=l.useContext(dt),B=G("picker",i),{compactSize:I,compactItemClassnames:z}=Ma(B,L),V=G(),[A,j]=Ds("rangePicker",w,b),q=ar(B),[X,K]=E3(B,q),J=Q(X,K,q,N),[Z]=X3(n),oe=Q3(c),ne=fr(Ie=>y??I??Ie),ie=l.useContext(kr),de=C??ie,le=l.useContext(Or),{hasFeedback:fe,status:ge,feedbackIcon:re}=le,ce=l.createElement(K3,{picker:M,hasFeedback:fe,feedbackIcon:re,suffixIcon:T});l.useImperativeHandle(r,()=>U.current);const[he]=oo("Calendar",$u),pe={...he,...n.locale},[Se]=fi("DatePicker",W?.popup?.root?.zIndex);return l.createElement(xa,{space:!0},l.createElement(vq,{separator:l.createElement("span",{"aria-label":"to",className:`${B}-separator`},l.createElement(LX,null)),disabled:de,ref:U,placement:h,placeholder:eK(pe,M,$),suffixIcon:ce,prevIcon:l.createElement("span",{className:`${B}-prev-icon`}),nextIcon:l.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${V}-slide-up`,picker:M,...P,locale:pe.lang,getPopupContainer:s||H,generateConfig:e,components:oe,direction:L,prefixCls:B,rootClassName:J,className:Q({[`${B}-${ne}`]:ne,[`${B}-${A}`]:j},el(B,As(ge,S),fe),z,d,_?.className),style:{..._?.style,...f},classNames:k,styles:{...W,popup:{...W.popup,root:{...W.popup.root,zIndex:Se}}},allowClear:Z}))}),dK=e=>{const t=(f,p)=>{const g=p===p4?"timePicker":"datePicker";return l.forwardRef((y,C)=>{const{prefixCls:b,getPopupContainer:$,components:S,style:w,className:M,size:x,bordered:R,placement:O,placeholder:N,disabled:T,status:P,variant:D,onCalendarChange:k,classNames:W,styles:U,dropdownClassName:G,popupClassName:L,popupStyle:H,rootClassName:_,suffixIcon:B,...I}=y,{getPrefixCls:z,direction:V,getPopupContainer:A,[g]:j}=l.useContext(dt),q=z("picker",b),{compactSize:X,compactItemClassnames:K}=Ma(q,V),J=fr(Ze=>x??X??Ze),Z=l.useContext(kr),oe=T??Z,ne={...y,size:J,disabled:oe,status:P,variant:D},[ie,de]=G3(g,W,U,L||G,H,ne),le=l.useRef(null),[fe,ge]=Ds("datePicker",D,R),re=ar(q),[ce,he]=E3(q,re),pe=Q(ce,he,re,_);l.useImperativeHandle(C,()=>le.current);const Se={showToday:!0},Ie=f||y.picker,Me=z(),{onSelect:we,multiple:se}=I,be=we&&f==="time"&&!se,Ee=(Ze,Be,Ue)=>{k?.(Ze,Be,Ue),be&&we(Ze)},[Ne,Fe]=X3(y),Ge=Q3(S),et=l.useContext(Or),{hasFeedback:Oe,status:_e,feedbackIcon:Ve}=et,Qe=l.createElement(K3,{picker:Ie,hasFeedback:Oe,feedbackIcon:Ve,suffixIcon:B}),[De]=oo("DatePicker",$u),ve={...De,...y.locale},[Ae]=fi("DatePicker",de?.popup?.root?.zIndex);return l.createElement(xa,{space:!0},l.createElement(kq,{ref:le,placeholder:JX(ve,Ie,N),suffixIcon:Qe,placement:O,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:`${Me}-slide-up`,picker:f,onCalendarChange:Ee,...Se,...I,locale:ve.lang,getPopupContainer:$||A,generateConfig:e,components:Ge,direction:V,disabled:oe,prefixCls:q,rootClassName:pe,className:Q({[`${q}-${J}`]:J,[`${q}-${fe}`]:ge},el(q,As(_e,P),Oe),K,j?.className,M),style:{...j?.style,...w},classNames:ie,styles:{...de,popup:{...de.popup,root:{...de.popup.root,zIndex:Ae}}},allowClear:Ne,removeIcon:Fe}))})},n=t(),r=t(tK,nK),i=t(rK,oK),s=t(aK,iK),c=t(lK,sK),d=t(v1,p4);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:s,TimePicker:d,QuarterPicker:c}},Z3=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:s,QuarterPicker:c}=dK(e),d=uK(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=i,f.RangePicker=d,f.TimePicker=s,f.QuarterPicker=c,f},fl=Z3(v6),fK=Ap(fl,"popupAlign",void 0,"picker");fl._InternalPanelDoNotUseOrYouWillBeFired=fK;const mK=Ap(fl.RangePicker,"popupAlign",void 0,"picker");fl._InternalRangePanelDoNotUseOrYouWillBeFired=mK;fl.generatePicker=Z3;const g4=l.createContext(null),J3=l.createContext({});function lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}const pK=e=>{const{prefixCls:t,className:n,containerRef:r,...i}=e,{panel:s}=l.useContext(J3),c=di(s,r);return l.createElement("div",lS({className:Q(`${t}-section`,n),role:"dialog",ref:c},Pn(e,{aria:!0}),{"aria-modal":"true"},i))};function gK(e){const{prefixCls:t,direction:n,className:r,style:i,maxSize:s,containerRef:c,currentSize:d,onResize:f,onResizeEnd:p,onResizeStart:g}=e,[h,y]=l.useState(!1),[C,b]=l.useState(0),[$,S]=l.useState(0),w=n==="left"||n==="right",M=ut(N=>{N.preventDefault(),N.stopPropagation(),y(!0),b(w?N.clientX:N.clientY);let T;if(typeof d=="number")T=d;else if(c?.current){const P=c.current.getBoundingClientRect();T=w?P.width:P.height}S(T),g?.(T)}),x=ut(N=>{if(!h)return;let P=(w?N.clientX:N.clientY)-C;(n==="right"||n==="bottom")&&(P=-P);let D=$+P;D<0&&(D=0),s&&D>s&&(D=s),f?.(D)}),R=l.useCallback(()=>{if(h&&(y(!1),c?.current)){const N=c.current.getBoundingClientRect(),T=w?N.width:N.height;p?.(T)}},[h,c,p,w]);return l.useEffect(()=>{if(h)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",R),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",R)}},[h,x,R]),{dragElementProps:{className:Q(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:h,[`${t}-dragger-horizontal`]:w,[`${t}-dragger-vertical`]:!w},r),style:i,onMouseDown:M},isDragging:h}}function Uy(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&tr(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gs.apply(this,arguments)}const h4={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},hK=(e,t)=>{const{prefixCls:n,open:r,placement:i,inline:s,push:c,forceRender:d,autoFocus:f,keyboard:p,classNames:g,rootClassName:h,rootStyle:y,zIndex:C,className:b,id:$,style:S,motion:w,width:M,height:x,size:R,maxSize:O,children:N,mask:T,maskClosable:P,maskMotion:D,maskClassName:k,maskStyle:W,afterOpenChange:U,onClose:G,onMouseEnter:L,onMouseOver:H,onMouseLeave:_,onClick:B,onKeyDown:I,onKeyUp:z,styles:V,drawerRender:A,resizable:j,defaultSize:q}=e,X=l.useRef(null),K=l.useRef(null),J=l.useRef(null);l.useImperativeHandle(t,()=>X.current);const Z=Oe=>{const{keyCode:_e,shiftKey:Ve}=Oe;switch(_e){case nt.TAB:{_e===nt.TAB&&(!Ve&&document.activeElement===J.current?K.current?.focus({preventScroll:!0}):Ve&&document.activeElement===K.current&&J.current?.focus({preventScroll:!0}));break}case nt.ESC:{G&&p&&(Oe.stopPropagation(),G(Oe));break}}};l.useEffect(()=>{r&&f&&X.current?.focus({preventScroll:!0})},[r]);const[oe,ne]=l.useState(!1),ie=l.useContext(g4);let de;typeof c=="boolean"?de=c?{}:{distance:0}:de=c||{};const le=de?.distance??ie?.pushDistance??180,fe=l.useMemo(()=>({pushDistance:le,push:()=>{ne(!0)},pull:()=>{ne(!1)}}),[le]);l.useEffect(()=>{r?ie?.push?.():ie?.pull?.()},[r]),l.useEffect(()=>()=>{ie?.pull?.()},[]);const ge=l.createElement(Sr,gs({key:"mask"},D,{visible:T&&r}),({className:Oe,style:_e},Ve)=>l.createElement("div",{className:Q(`${n}-mask`,Oe,g?.mask,k),style:{..._e,...W,...V?.mask},onClick:P&&r?G:void 0,ref:Ve})),re=typeof w=="function"?w(i):w,[ce,he]=l.useState(),pe=i==="left"||i==="right",Se=l.useMemo(()=>Uy(R??(pe?M:x)??ce??q??(pe?378:void 0)),[R,M,x,q,pe,ce]),Ie=l.useMemo(()=>{const Oe={};if(oe&&le)switch(i){case"top":Oe.transform=`translateY(${le}px)`;break;case"bottom":Oe.transform=`translateY(${-le}px)`;break;case"left":Oe.transform=`translateX(${le}px)`;break;default:Oe.transform=`translateX(${-le}px)`;break}return pe?Oe.width=Uy(Se):Oe.height=Uy(Se),Oe},[oe,le,i,pe,Se]),Me=l.useRef(null),we=!!j,se=typeof j=="object"&&j||{},be=ut(Oe=>{he(Oe),se.onResize?.(Oe)}),{dragElementProps:Ee,isDragging:Ne}=gK({prefixCls:`${n}-resizable`,direction:i,className:g?.dragger,style:V?.dragger,maxSize:O,containerRef:Me,currentSize:Se,onResize:be,onResizeStart:se.onResizeStart,onResizeEnd:se.onResizeEnd}),Fe={onMouseEnter:L,onMouseOver:H,onMouseLeave:_,onClick:B,onKeyDown:I,onKeyUp:z},Ge=l.createElement(Sr,gs({key:"panel"},re,{visible:r,forceRender:d,onVisibleChanged:Oe=>{U?.(Oe)},removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:Oe,style:_e},Ve)=>{const Qe=l.createElement(pK,gs({id:$,containerRef:Ve,prefixCls:n,className:Q(b,g?.section),style:{...S,...V?.section}},Pn(e,{aria:!0}),Fe),N);return l.createElement("div",gs({ref:Me,className:Q(`${n}-content-wrapper`,Ne&&`${n}-content-wrapper-dragging`,g?.wrapper,!Ne&&Oe),style:{..._e,...Ie,...V?.wrapper}},Pn(e,{data:!0})),we&&l.createElement("div",Ee),A?A(Qe):Qe)}),et={...y};return C&&(et.zIndex=C),l.createElement(g4.Provider,{value:fe},l.createElement("div",{className:Q(n,`${n}-${i}`,h,{[`${n}-open`]:r,[`${n}-inline`]:s}),style:et,tabIndex:-1,ref:X,onKeyDown:Z},ge,l.createElement("div",{tabIndex:0,ref:K,style:h4,"aria-hidden":"true","data-sentinel":"start"}),Ge,l.createElement("div",{tabIndex:0,ref:J,style:h4,"aria-hidden":"true","data-sentinel":"end"})))},yK=l.forwardRef(hK),bK=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:r="right",autoFocus:i=!0,keyboard:s=!0,width:c,height:d,size:f,maxSize:p,mask:g=!0,maskClosable:h=!0,getContainer:y,forceRender:C,afterOpenChange:b,destroyOnHidden:$,onMouseEnter:S,onMouseOver:w,onMouseLeave:M,onClick:x,onKeyDown:R,onKeyUp:O,resizable:N,defaultSize:T,panelRef:P}=e,[D,k]=l.useState(!1),[W,U]=l.useState(!1);Nt(()=>{U(!0)},[]);const G=W?t:!1,L=l.useRef(null),H=l.useRef(null);Nt(()=>{G&&(H.current=document.activeElement)},[G]);const _=V=>{k(V),b?.(V),!V&&H.current&&!L.current?.contains(H.current)&&H.current?.focus({preventScroll:!0})},B=l.useMemo(()=>({panel:P}),[P]);if(!C&&!D&&!G&&$)return null;const z={...e,open:G,prefixCls:n,placement:r,autoFocus:i,keyboard:s,width:c,height:d,size:f,maxSize:p,defaultSize:T,mask:g,maskClosable:h,inline:y===!1,afterOpenChange:_,ref:L,resizable:N,...{onMouseEnter:S,onMouseOver:w,onMouseLeave:M,onClick:x,onKeyDown:R,onKeyUp:O}};return l.createElement(J3.Provider,{value:B},l.createElement(sd,{open:G||C||D,autoDestroy:!1,getContainer:y,autoLock:g&&(G||D)},l.createElement(yK,z)))},eN=e=>{const{prefixCls:t,ariaId:n,title:r,footer:i,extra:s,closable:c,loading:d,onClose:f,headerStyle:p,bodyStyle:g,footerStyle:h,children:y,classNames:C,styles:b}=e,$=It("drawer"),{classNames:S,styles:w,closable:M}=$,[x,R]=Lt([S,C],[w,b],{props:{...e,closable:c??M}}),O=l.useMemo(()=>{const W=c??M;if(W!==!1)return typeof W=="object"&&W&&W.placement==="end"?"end":"start"},[c,M]),N=l.useCallback(W=>l.createElement("button",{type:"button",onClick:f,className:Q(`${t}-close`,{[`${t}-close-${O}`]:O==="end"},x.close),style:R.close},W),[f,t,O,x.close,R.close]),[T,P]=PS(Cs(e),Cs($),{closable:!0,closeIconRender:N}),D=()=>!r&&!T?null:l.createElement("div",{style:{...R.header,...p},className:Q(`${t}-header`,x.header,{[`${t}-header-close-only`]:T&&!r&&!s})},l.createElement("div",{className:`${t}-header-title`},O==="start"&&P,r&&l.createElement("div",{className:Q(`${t}-title`,x.title),style:R.title,id:n},r)),s&&l.createElement("div",{className:Q(`${t}-extra`,x.extra),style:R.extra},s),O==="end"&&P),k=()=>i?l.createElement("div",{className:Q(`${t}-footer`,x.footer),style:{...R.footer,...h}},i):null;return l.createElement(l.Fragment,null,D(),l.createElement("div",{className:Q(`${t}-body`,x.body),style:{...R.body,...g}},d?l.createElement(mi,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):y),k())},vK=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},tN=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),nN=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...tN({opacity:e},{opacity:1})}),SK=(e,t)=>[nN(.7,t),tN({transform:vK(e)},{transform:"none"})],CK=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:nN(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>({...r,[`&-${i}`]:SK(i,n)}),{})}}},$K=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:s,motionDurationSlow:c,motionDurationMid:d,paddingXS:f,padding:p,paddingLG:g,fontSizeLG:h,lineHeightLG:y,lineWidth:C,lineType:b,colorSplit:$,marginXS:S,colorIcon:w,colorIconHover:M,colorBgTextHover:x,colorBgTextActive:R,colorText:O,fontWeightStrong:N,footerPaddingBlock:T,footerPaddingInline:P,draggerSize:D,calc:k}=e,W=`${n}-content-wrapper`,U=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:O,"&-pure":{position:"relative",background:s,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[W]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${W}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${W}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${W}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${W}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:s,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${te(p)} ${te(g)}`,fontSize:h,lineHeight:y,borderBottom:`${te(C)} ${b} ${$}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:k(h).add(f).equal(),height:k(h).add(f).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:w,fontWeight:N,fontSize:h,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${d}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:S},[`&:not(${n}-close-end)`]:{marginInlineEnd:S},"&:hover":{color:M,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:R},...xo(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:h,lineHeight:y},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${te(T)} ${te(P)}`,borderTop:`${te(C)} ${b} ${$}`},[U]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${U}-left`]:{top:0,bottom:0,insetInlineEnd:0,width:D,cursor:"col-resize"},[`${U}-right`]:{top:0,bottom:0,insetInlineStart:0,width:D,cursor:"col-resize"},[`${U}-top`]:{insetInline:0,bottom:0,height:D,cursor:"row-resize"},[`${U}-bottom`]:{insetInline:0,top:0,height:D,cursor:"row-resize"},[`${W}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},xK=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),rN=Pt("Drawer",e=>{const t=Tt(e,{});return[$K(t),CK(t)]},xK),wK={distance:180},y4=378,oN=e=>{const{rootClassName:t,size:n,defaultSize:r=y4,height:i,width:s,mask:c,push:d=wK,open:f,afterOpenChange:p,onClose:g,prefixCls:h,getContainer:y,panelRef:C=null,style:b,className:$,resizable:S,"aria-labelledby":w,maskStyle:M,drawerStyle:x,contentWrapperStyle:R,destroyOnClose:O,destroyOnHidden:N,...T}=e,{placement:P}=T,D=Ko(),k=T.title?D:void 0,{getPopupContainer:W,getPrefixCls:U,direction:G,className:L,style:H,classNames:_,styles:B,mask:I}=It("drawer"),z=U("drawer",h),[V,A]=rN(z),j=y===void 0&&W?()=>W(document.body):y,q=l.useMemo(()=>typeof n=="number"?n:n==="large"?736:n==="default"?y4:!P||P==="left"||P==="right"?s:i,[n,P,s,i]),X={motionName:Go(z,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},K=Se=>({motionName:Go(z,`panel-motion-${Se}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),J=tT(),Z=or(C,J),[oe,ne]=fi("Drawer",T.zIndex),{classNames:ie,styles:de,rootStyle:le}=T,[fe,ge]=lO(c,I,z),re={...e,zIndex:oe,panelRef:C,mask:fe,defaultSize:r,push:d},[ce,he]=Lt([_,ie],[B,de],{props:re}),pe=Q({"no-mask":!fe,[`${z}-rtl`]:G==="rtl"},t,V,A,ce.root);return l.createElement(xa,{form:!0,space:!0},l.createElement(ld.Provider,{value:ne},l.createElement(bK,{prefixCls:z,onClose:g,maskMotion:X,motion:K,...T,classNames:{mask:Q(ce.mask,ge.mask),section:ce.section,wrapper:ce.wrapper,dragger:ce.dragger},styles:{mask:{...he.mask,...M},section:{...he.section,...x},wrapper:{...he.wrapper,...R},dragger:he.dragger},open:f,mask:fe,push:d,size:q,defaultSize:r,style:{...H,...b},rootStyle:{...le,...he.root},className:Q(L,$),rootClassName:pe,getContainer:j,afterOpenChange:p,panelRef:Z,zIndex:oe,...S?{resizable:S}:{},"aria-labelledby":w??k,destroyOnHidden:N??O},l.createElement(eN,{prefixCls:z,size:n,...T,ariaId:k,onClose:g}))))},EK=e=>{const{prefixCls:t,style:n,className:r,placement:i="right",...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("drawer",t),[f,p]=rN(d),g=Q(d,`${d}-pure`,`${d}-${i}`,f,p,r);return l.createElement("div",{className:g,style:n},l.createElement(eN,{prefixCls:d,...s}))};oN._InternalPanelDoNotUseOrYouWillBeFired=EK;function b4(e){return["small","middle","large"].includes(e)}function v4(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const aN=ae.createContext({latestIndex:0}),MK=aN.Provider,RK=e=>{const{className:t,prefix:n,index:r,children:i,separator:s,style:c,classNames:d,styles:f}=e,{latestIndex:p}=l.useContext(aN);return Mr(i)?l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:c},i),r<p&&s&&l.createElement("span",{className:Q(`${n}-item-separator`,d.separator),style:f.separator},s)):null},OK=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"}}}},TK=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}}}},NK=Pt("Space",e=>{const t=Tt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[OK(t),TK(t)]},()=>({}),{resetStyle:!1}),IK=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:i,className:s,style:c,classNames:d,styles:f}=It("space"),{size:p=i??"small",align:g,className:h,rootClassName:y,children:C,direction:b,orientation:$,prefixCls:S,split:w,separator:M,style:x,vertical:R,wrap:O=!1,classNames:N,styles:T,...P}=e,[D,k]=Array.isArray(p)?p:[p,p],W=b4(k),U=b4(D),G=v4(k),L=v4(D),H=dr(C,{keepEmpty:!0}),[_,B]=id($,R,b),I=g===void 0&&!B?"center":g,z=M??w,V=n("space",S),[A,j]=NK(V),q={...e,size:p,orientation:_,align:I},[X,K]=Lt([d,N],[f,T],{props:q}),J=Q(V,s,A,`${V}-${_}`,{[`${V}-rtl`]:r==="rtl",[`${V}-align-${I}`]:I,[`${V}-gap-row-${k}`]:W,[`${V}-gap-col-${D}`]:U},h,y,j,X.root),Z=Q(`${V}-item`,X.item),oe=H.map((de,le)=>{const fe=de?.key||`${Z}-${le}`;return l.createElement(RK,{prefix:V,classNames:X,styles:K,className:Z,key:fe,index:le,separator:z,style:K.item},de)}),ne=l.useMemo(()=>({latestIndex:H.reduce((le,fe,ge)=>Mr(fe)?ge:le,0)}),[H]);if(H.length===0)return null;const ie={};return O&&(ie.flexWrap="wrap"),!U&&L&&(ie.columnGap=D),!W&&G&&(ie.rowGap=k),l.createElement("div",{ref:t,className:J,style:{...ie,...K.root,...c,...x},...P},l.createElement(MK,{value:ne},oe))}),dn=IK;dn.Compact=_O;dn.Addon=GX;const iN=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(dt),{prefixCls:i,type:s="default",danger:c,disabled:d,loading:f,onClick:p,htmlType:g,children:h,className:y,menu:C,arrow:b,autoFocus:$,trigger:S,align:w,open:M,onOpenChange:x,placement:R,getPopupContainer:O,href:N,icon:T=l.createElement(n1,null),title:P,buttonsRender:D=ie=>ie,mouseEnterDelay:k,mouseLeaveDelay:W,overlayClassName:U,overlayStyle:G,destroyOnHidden:L,destroyPopupOnHide:H,dropdownRender:_,popupRender:B,...I}=e,z=n("dropdown",i),V=`${z}-button`,j={menu:C,arrow:b,autoFocus:$,align:w,disabled:d,trigger:d?[]:S,onOpenChange:x,getPopupContainer:O||t,mouseEnterDelay:k,mouseLeaveDelay:W,classNames:{root:U},styles:{root:G},destroyOnHidden:L,popupRender:B||_},{compactSize:q,compactItemClassnames:X}=Ma(z,r),K=Q(V,X,y);"destroyPopupOnHide"in e&&(j.destroyPopupOnHide=H),"open"in e&&(j.open=M),"placement"in e?j.placement=R:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=l.createElement(_t,{type:s,danger:c,disabled:d,loading:f,onClick:p,htmlType:g,href:N,title:P},h),Z=l.createElement(_t,{type:s,danger:c,icon:T}),[oe,ne]=D([J,Z]);return l.createElement(dn.Compact,{className:K,size:q,block:!0,...I},oe,l.createElement(Fp,{...j},ne))};iN.__ANT_BUTTON=!0;const S1=Fp;S1.Button=iN;const PK=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,className:i}=e,s=t("input-group",r),c=t("input"),[d,f]=C3(c),p=Q(s,f,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},d,i),g=l.useContext(Or),h=l.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return l.createElement(Or.Provider,{value:h},l.createElement(dn.Compact,{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},zK=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}}}},AK=Pt(["Input","OTP"],e=>{const t=Tt(e,Ls(e));return zK(t)},Vs),DK=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:i,onActiveChange:s,index:c,mask:d,onFocus:f,...p}=e,{getPrefixCls:g}=l.useContext(dt),h=g("otp"),y=typeof d=="string"?d:r,C=l.useRef(null);l.useImperativeHandle(t,()=>C.current);const b=M=>{i(c,M.target.value)},$=()=>{Ht(()=>{const M=C.current?.input;document.activeElement===M&&M&&M.select()})},S=M=>{f?.(M),$()},w=M=>{const{key:x,ctrlKey:R,metaKey:O}=M;x==="ArrowLeft"?s(c-1):x==="ArrowRight"?s(c+1):x==="z"&&(R||O)?M.preventDefault():x==="Backspace"&&!r&&s(c-1),$()};return l.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},d&&r!==""&&r!==void 0&&l.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},y),l.createElement(Xp,{"aria-label":`OTP Input ${c+1}`,type:d===!0?"password":"text",...p,ref:C,value:r,onInput:b,onFocus:S,onKeyDown:w,onMouseDown:$,onMouseUp:$,className:Q(n,{[`${h}-mask-input`]:d})}))});function om(e){return(e||"").split("")}const jK=e=>{const{index:t,prefixCls:n,separator:r,className:i,style:s}=e,c=typeof r=="function"?r(t):r;return c?l.createElement("span",{className:Q(`${n}-separator`,i),style:s},c):null},_K=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:s,value:c,onChange:d,formatter:f,separator:p,variant:g,disabled:h,status:y,autoFocus:C,mask:b,type:$,onInput:S,onFocus:w,inputMode:M,classNames:x,styles:R,className:O,style:N,...T}=e,{classNames:P,styles:D,getPrefixCls:k,direction:W,style:U,className:G}=It("otp"),L=k("otp",n),H={...e,length:r},[_,B]=Lt([P,x],[D,R],{props:H}),I=Pn(T,{aria:!0,data:!0,attr:!0}),[z,V]=AK(L),A=fr(ce=>i??ce),j=l.useContext(Or),q=As(j.status,y),X=l.useMemo(()=>({...j,status:q,hasFeedback:!1,feedbackIcon:null}),[j,q]),K=l.useRef(null),J=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{J.current[0]?.focus()},blur:()=>{for(let ce=0;ce<r;ce+=1)J.current[ce]?.blur()},nativeElement:K.current}));const Z=ce=>f?f(ce):ce,[oe,ne]=l.useState(()=>om(Z(s||"")));l.useEffect(()=>{c!==void 0&&ne(om(c))},[c]);const ie=ut(ce=>{ne(ce),S&&S(ce),d&&ce.length===r&&ce.every(he=>he)&&ce.some((he,pe)=>oe[pe]!==he)&&d(ce.join(""))}),de=ut((ce,he)=>{let pe=xn(oe);for(let Ie=0;Ie<ce;Ie+=1)pe[Ie]||(pe[Ie]="");he.length<=1?pe[ce]=he:pe=pe.slice(0,ce).concat(om(he)),pe=pe.slice(0,r);for(let Ie=pe.length-1;Ie>=0&&!pe[Ie];Ie-=1)pe.pop();const Se=Z(pe.map(Ie=>Ie||" ").join(""));return pe=om(Se).map((Ie,Me)=>Ie===" "&&!pe[Me]?pe[Me]:Ie),pe}),le=(ce,he)=>{const pe=de(ce,he),Se=Math.min(ce+he.length,r-1);Se!==ce&&pe[ce]!==void 0&&J.current[Se]?.focus(),ie(pe)},fe=ce=>{J.current[ce]?.focus()},ge=(ce,he)=>{for(let pe=0;pe<he;pe+=1)if(!J.current[pe]?.input?.value){J.current[pe]?.focus();break}w?.(ce)},re={variant:g,disabled:h,status:q,mask:b,type:$,inputMode:M};return l.createElement("div",{...I,ref:K,className:Q(O,L,{[`${L}-sm`]:A==="small",[`${L}-lg`]:A==="large",[`${L}-rtl`]:W==="rtl"},V,z,G,_.root),style:{...B.root,...U,...N},role:"group"},l.createElement(Or.Provider,{value:X},Array.from({length:r}).map((ce,he)=>{const pe=`otp-${he}`,Se=oe[he]||"";return l.createElement(l.Fragment,{key:pe},l.createElement(DK,{ref:Ie=>{J.current[he]=Ie},index:he,size:A,htmlSize:1,className:Q(_.input,`${L}-input`),style:B.input,onChange:le,value:Se,onActiveChange:fe,autoFocus:he===0&&C,onFocus:Ie=>ge(Ie,he),...re}),he<r-1&&l.createElement(jK,{separator:p,index:he,prefixCls:L,className:Q(_.separator),style:B.separator}))})))}),HK=e=>e?l.createElement(GG,null):l.createElement(qG,null),BK={click:"onClick",hover:"onMouseOver"},LK=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:s=HK,suffix:c}=e,d=l.useContext(kr),f=n??d,p=typeof i=="object"&&i.visible!==void 0,[g,h]=l.useState(()=>p?i.visible:!1),y=l.useRef(null);l.useEffect(()=>{p&&h(i.visible)},[p,i]);const C=U3(y),b=()=>{if(f)return;g&&C();const W=!g;h(W),typeof i=="object"&&i.onVisibleChange?.(W)},$=W=>{const U=BK[r]||"",G=s(g),L={[U]:b,className:`${W}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return l.cloneElement(l.isValidElement(G)?G:l.createElement("span",null,G),L)},{className:S,prefixCls:w,inputPrefixCls:M,size:x,...R}=e,{getPrefixCls:O}=l.useContext(dt),N=O("input",M),T=O("input-password",w),P=i&&$(T),D=Q(T,S,{[`${T}-${x}`]:!!x}),k={...tn(R,["suffix","iconRender","visibilityToggle"]),type:g?"text":"password",className:D,prefixCls:N,suffix:l.createElement(l.Fragment,null,P,c)};return x&&(k.size=x),l.createElement(Xp,{ref:or(t,y),...k})}),VK=e=>{const{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}},FK=Pt(["Input","Search"],e=>[VK(e)]),kK=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:s,style:c,enterButton:d=!1,addonAfter:f,loading:p,disabled:g,onSearch:h,onChange:y,onCompositionStart:C,onCompositionEnd:b,variant:$,onPressEnter:S,classNames:w,styles:M,hidden:x,...R}=e,{direction:O,getPrefixCls:N,classNames:T,styles:P}=It("inputSearch"),D={...e,enterButton:d},[k,W]=Lt([T,w],[P,M],{props:D},{button:{_default:"root"}}),U=l.useRef(!1),G=N("input-search",n),L=N("input",r),[H,_]=FK(G),{compactSize:B}=Ma(G,O),I=fr(re=>s??B??re),z=l.useRef(null),V=re=>{re?.target&&re.type==="click"&&h&&h(re.target.value,re,{source:"clear"}),y?.(re)},A=re=>{document.activeElement===z.current?.input&&re.preventDefault()},j=re=>{h&&h(z.current?.input?.value,re,{source:"input"})},q=re=>{U.current||p||(S?.(re),j(re))},X=typeof d=="boolean"?l.createElement(jT,null):null,K=`${G}-btn`,J=Q(K,{[`${K}-${$}`]:$});let Z;const oe=d||{},ne=oe.type&&oe.type.__ANT_BUTTON===!0;ne||oe.type==="button"?Z=nr(oe,{onMouseDown:A,onClick:re=>{oe?.props?.onClick?.(re),j(re)},key:"enterButton",...ne?{className:J,size:I}:{}}):Z=l.createElement(_t,{classNames:k.button,styles:W.button,className:J,color:d?"primary":"default",size:I,disabled:g,key:"enterButton",onMouseDown:A,onClick:j,loading:p,icon:X,variant:$==="borderless"||$==="filled"||$==="underlined"?"text":d?"solid":void 0},d),f&&(Z=[Z,nr(f,{key:"addonAfter"})]);const ie=Q(G,_,{[`${G}-rtl`]:O==="rtl",[`${G}-${I}`]:!!I,[`${G}-with-button`]:!!d},i,H,k.root),de=re=>{U.current=!0,C?.(re)},le=re=>{U.current=!1,b?.(re)},fe=Pn(R,{data:!0}),ge=tn({...R,classNames:tn(k,["button","root"]),styles:tn(W,["button","root"]),prefixCls:L,type:"search",size:I,variant:$,onPressEnter:q,onCompositionStart:de,onCompositionEnd:le,onChange:V,disabled:g},Object.keys(fe));return l.createElement(_O,{className:ie,style:{...c,...W.root},...fe,hidden:x},l.createElement(Xp,{ref:or(z,t),...ge}),Z)}),WK=`
307
+ min-height:0 !important;
308
+ max-height:none !important;
309
+ height:0 !important;
310
+ visibility:hidden !important;
311
+ overflow:hidden !important;
312
+ position:absolute !important;
313
+ z-index:-1000 !important;
314
+ top:0 !important;
315
+ right:0 !important;
316
+ pointer-events: none !important;
317
+ `,qK=["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"],Gy={};let no;function YK(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Gy[n])return Gy[n];const r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),f={sizingStyle:qK.map(p=>`${p}:${r.getPropertyValue(p)}`).join(";"),paddingSize:s,borderSize:c,boxSizing:i};return t&&n&&(Gy[n]=f),f}function UK(e,t=!1,n=null,r=null){no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),no.setAttribute("name","hiddenTextarea"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");const{paddingSize:i,borderSize:s,boxSizing:c,sizingStyle:d}=YK(e,t);no.setAttribute("style",`${d};${WK}`),no.value=e.value||e.placeholder||"";let f,p,g,h=no.scrollHeight;if(c==="border-box"?h+=s:c==="content-box"&&(h-=i),n!==null||r!==null){no.value=" ";const C=no.scrollHeight-i;n!==null&&(f=C*n,c==="border-box"&&(f=f+i+s),h=Math.max(f,h)),r!==null&&(p=C*r,c==="border-box"&&(p=p+i+s),g=h>p?"":"hidden",h=Math.min(p,h))}const y={height:h,overflowY:g,resize:"none"};return f&&(y.minHeight=f),p&&(y.maxHeight=p),y}function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sS.apply(this,arguments)}const Xy=0,Ky=1,Qy=2,GK=l.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:i,autoSize:s,onResize:c,className:d,style:f,disabled:p,onChange:g,onInternalAutoSize:h,...y}=e,[C,b]=Yt(r,i),$=C??"",S=H=>{b(H.target.value),g?.(H)},w=l.useRef();l.useImperativeHandle(t,()=>({textArea:w.current}));const[M,x]=l.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),R=!!s,[O,N]=l.useState(Qy),[T,P]=l.useState(),D=()=>{N(Xy)};Nt(()=>{R&&D()},[i,M,x,R]),Nt(()=>{if(O===Xy)N(Ky);else if(O===Ky){const H=UK(w.current,!1,M,x);N(Qy),P(H)}},[O]);const k=l.useRef(),W=()=>{Ht.cancel(k.current)},U=H=>{O===Qy&&(c?.(H),s&&(W(),k.current=Ht(()=>{D()})))};l.useEffect(()=>W,[]);const L={...f,...R?T:null};return(O===Xy||O===Ky)&&(L.overflowY="hidden",L.overflowX="hidden"),l.createElement(Vr,{onResize:U,disabled:!(s||c)},l.createElement("textarea",sS({},y,{ref:w,style:L,className:Q(n,d,{[`${n}-disabled`]:p}),disabled:p,value:$,onChange:S})))});function cS(){return cS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cS.apply(this,arguments)}const XK=ae.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:s,maxLength:c,onCompositionStart:d,onCompositionEnd:f,suffix:p,prefixCls:g="rc-textarea",showCount:h,count:y,className:C,style:b,disabled:$,hidden:S,classNames:w,styles:M,onResize:x,onClear:R,onPressEnter:O,readOnly:N,autoSize:T,onKeyDown:P,...D},k)=>{const[W,U]=Yt(e,t),G=W==null?"":String(W),[L,H]=ae.useState(!1),_=ae.useRef(!1),[B,I]=ae.useState(null),z=l.useRef(null),V=l.useRef(null),A=()=>V.current?.textArea,j=()=>{A().focus()};l.useImperativeHandle(k,()=>({resizableTextArea:V.current,focus:j,blur:()=>{A().blur()},nativeElement:z.current?.nativeElement||A()})),l.useEffect(()=>{H(we=>!$&&we)},[$]);const[q,X]=ae.useState(null);ae.useEffect(()=>{q&&A().setSelectionRange(...q)},[q]);const K=q3(y,h),J=K.max??c,Z=Number(J)>0,oe=K.strategy(G),ne=!!J&&oe>J,ie=(we,se)=>{let be=se;!_.current&&K.exceedFormatter&&K.max&&K.strategy(se)>K.max&&(be=K.exceedFormatter(se,{max:K.max}),se!==be&&X([A().selectionStart||0,A().selectionEnd||0])),U(be),dp(we.currentTarget,we,i,be)},de=we=>{_.current=!0,d?.(we)},le=we=>{_.current=!1,ie(we,we.currentTarget.value),f?.(we)},fe=we=>{ie(we,we.target.value)},ge=we=>{we.key==="Enter"&&O&&!we.nativeEvent.isComposing&&O(we),P?.(we)},re=we=>{H(!0),n?.(we)},ce=we=>{H(!1),r?.(we)},he=we=>{U(""),j(),dp(A(),we,i)};let pe=p,Se;K.show&&(K.showFormatter?Se=K.showFormatter({value:G,count:oe,maxLength:J}):Se=`${oe}${Z?` / ${J}`:""}`,pe=ae.createElement(ae.Fragment,null,pe,ae.createElement("span",{className:Q(`${g}-data-count`,w?.count),style:M?.count},Se)));const Ie=we=>{x?.(we),A()?.style.height&&I(!0)},Me=!T&&!h&&!s;return ae.createElement(W3,{ref:z,value:G,allowClear:s,handleReset:he,suffix:pe,prefixCls:g,classNames:{...w,affixWrapper:Q(w?.affixWrapper,{[`${g}-show-count`]:h,[`${g}-textarea-allow-clear`]:s})},disabled:$,focused:L,className:Q(C,ne&&`${g}-out-of-range`),style:{...b,...B&&!Me?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:S,readOnly:N,onClear:R},ae.createElement(GK,cS({},D,{autoSize:T,maxLength:c,onKeyDown:ge,onChange:fe,onFocus:re,onBlur:ce,onCompositionStart:de,onCompositionEnd:le,className:Q(w?.textarea),style:{resize:b?.resize,...M?.textarea},disabled:$,prefixCls:g,onResize:Ie,ref:V,readOnly:N})))}),KK=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"}},[`
318
+ &-allow-clear > ${t},
319
+ &-affix-wrapper${r}-has-feedback ${t}
320
+ `]:{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}}}}}},QK=Pt(["Input","TextArea"],e=>{const t=Tt(e,Ls(e));return KK(t)},Vs,{resetFont:!1}),lN=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:i,disabled:s,status:c,allowClear:d,classNames:f,rootClassName:p,className:g,style:h,styles:y,variant:C,showCount:b,onMouseDown:$,onResize:S,...w}=e,{getPrefixCls:M,direction:x,allowClear:R,autoComplete:O,className:N,style:T,classNames:P,styles:D}=It("textArea"),k=l.useContext(kr),W=s??k,{status:U,hasFeedback:G,feedbackIcon:L}=l.useContext(Or),H=As(U,c),[_,B]=Lt([P,f],[D,y],{props:e}),I=l.useRef(null);l.useImperativeHandle(t,()=>({resizableTextArea:I.current?.resizableTextArea,focus:re=>{r6(I.current?.resizableTextArea?.textArea,re)},blur:()=>I.current?.blur()}));const z=M("input",n),V=ar(z),[A,j]=S3(z,p);QK(z,V);const{compactSize:q,compactItemClassnames:X}=Ma(z,x),K=fr(re=>i??q??re),[J,Z]=Ds("textArea",C,r),oe=Y3(d??R),[ne,ie]=l.useState(!1),[de,le]=l.useState(!1),fe=re=>{ie(!0),$?.(re);const ce=()=>{ie(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},ge=re=>{if(S?.(re),ne&&typeof getComputedStyle=="function"){const ce=I.current?.nativeElement?.querySelector("textarea");ce&&getComputedStyle(ce).resize==="both"&&le(!0)}};return l.createElement(XK,{autoComplete:O,...w,style:{...B.root,...T,...h},styles:B,disabled:W,allowClear:oe,className:Q(j,V,g,p,X,N,_.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:de}),classNames:{..._,textarea:Q({[`${z}-sm`]:K==="small",[`${z}-lg`]:K==="large"},A,_.textarea,ne&&`${z}-mouse-active`),variant:Q({[`${z}-${J}`]:Z},el(z,H)),affixWrapper:Q(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x==="rtl",[`${z}-affix-wrapper-sm`]:K==="small",[`${z}-affix-wrapper-lg`]:K==="large",[`${z}-textarea-show-count`]:b||e.count?.show},A)},prefixCls:z,suffix:G&&l.createElement("span",{className:`${z}-textarea-suffix`},L),showCount:b,ref:I,onResize:ge,onMouseDown:fe})}),Nr=Xp;Nr.Group=PK;Nr.Search=kK;Nr.TextArea=lN;Nr.Password=LK;Nr.OTP=_K;function ZK(e,t,n){return typeof n=="boolean"?n:e.length?!0:dr(t).some(i=>i.type===p6)}const Kp=({suffixCls:e,tagName:t,displayName:n})=>r=>l.forwardRef((s,c)=>l.createElement(r,{ref:c,suffixCls:e,tagName:t,...s})),C1=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:s,...c}=e,{getPrefixCls:d}=l.useContext(dt),f=d("layout",n),[p]=m6(f),g=r?`${f}-${r}`:f;return l.createElement(s,{className:Q(n||g,i,p),ref:t,...c})}),JK=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(dt),[r,i]=l.useState([]),{prefixCls:s,className:c,rootClassName:d,children:f,hasSider:p,tagName:g,style:h,...y}=e,C=tn(y,["suffixCls"]),{getPrefixCls:b,className:$,style:S}=It("layout"),w=b("layout",s),M=ZK(r,f,p),[x,R]=m6(w),O=Q(w,{[`${w}-has-sider`]:M,[`${w}-rtl`]:n==="rtl"},$,c,d,x,R),N=l.useMemo(()=>({siderHook:{addSider:T=>{i(P=>[].concat(xn(P),[T]))},removeSider:T=>{i(P=>P.filter(D=>D!==T))}}}),[]);return l.createElement(u6.Provider,{value:N},l.createElement(g,{ref:t,className:O,style:{...S,...h},...C},f))}),eQ=Kp({tagName:"div",displayName:"Layout"})(JK),tQ=Kp({suffixCls:"header",tagName:"header",displayName:"Header"})(C1),nQ=Kp({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(C1),rQ=Kp({suffixCls:"content",tagName:"main",displayName:"Content"})(C1),Ra=eQ;Ra.Header=tQ;Ra.Footer=nQ;Ra.Content=rQ;Ra.Sider=p6;Ra._InternalSiderContext=Vp;const oQ={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:"页码"},aQ=[10,20,50,100],iQ=e=>{const{pageSizeOptions:t=aQ,locale:n,changeSize:r,pageSize:i,goButton:s,quickGo:c,rootPrefixCls:d,disabled:f,buildOptionText:p,showSizeChanger:g,sizeChangerRender:h}=e,[y,C]=ae.useState(""),b=ae.useMemo(()=>!y||Number.isNaN(y)?void 0:Number(y),[y]),$=typeof p=="function"?p:P=>`${P} ${n.items_per_page}`,S=P=>{const D=P.target.value;/^\d*$/.test(D)&&C(D)},w=P=>{s||y===""||(C(""),!(P.relatedTarget&&(P.relatedTarget.className.includes(`${d}-item-link`)||P.relatedTarget.className.includes(`${d}-item`)))&&c?.(b))},M=P=>{y!==""&&(P.keyCode===nt.ENTER||P.type==="click")&&(C(""),c?.(b))},x=()=>t.some(P=>P.toString()===i.toString())?t:t.concat([i]).sort((P,D)=>{const k=Number.isNaN(Number(P))?0:Number(P),W=Number.isNaN(Number(D))?0:Number(D);return k-W}),R=`${d}-options`;if(!g&&!c)return null;let O=null,N=null,T=null;return g&&h&&(O=h({disabled:f,size:i,onSizeChange:P=>{r?.(Number(P))},"aria-label":n.page_size,className:`${R}-size-changer`,options:x().map(P=>({label:$(P),value:P}))})),c&&(s&&(T=typeof s=="boolean"?ae.createElement("button",{type:"button",onClick:M,onKeyUp:M,disabled:f,className:`${R}-quick-jumper-button`},n.jump_to_confirm):ae.createElement("span",{onClick:M,onKeyUp:M},s)),N=ae.createElement("div",{className:`${R}-quick-jumper`},n.jump_to,ae.createElement("input",{disabled:f,type:"text",value:y,onChange:S,onKeyUp:M,onBlur:w,"aria-label":n.page}),n.page,T)),ae.createElement("li",{className:R},O,N)},Wc=e=>{const{rootPrefixCls:t,page:n,active:r,className:i,style:s,showTitle:c,onClick:d,onKeyPress:f,itemRender:p}=e,g=`${t}-item`,h=Q(g,`${g}-${n}`,{[`${g}-active`]:r,[`${g}-disabled`]:!n},i),y=()=>{d(n)},C=$=>{f($,d,n)},b=p(n,"page",ae.createElement("a",{rel:"nofollow"},n));return b?ae.createElement("li",{title:c?String(n):null,className:h,style:s,onClick:y,onKeyDown:C,tabIndex:0},b):null};function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ti.apply(this,arguments)}const lQ=(e,t,n)=>n;function S4(){}function C4(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ji(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const sQ=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:i,styles:s,current:c,defaultCurrent:d=1,total:f=0,pageSize:p,defaultPageSize:g=10,onChange:h=S4,hideOnSinglePage:y,align:C,showPrevNextJumpers:b=!0,showQuickJumper:$,showLessItems:S,showTitle:w=!0,onShowSizeChange:M=S4,locale:x=oQ,style:R,totalBoundaryShowSizeChanger:O=50,disabled:N,simple:T,showTotal:P,showSizeChanger:D=f>O,sizeChangerRender:k,pageSizeOptions:W,itemRender:U=lQ,jumpPrevIcon:G,jumpNextIcon:L,prevIcon:H,nextIcon:_}=e,B=ae.useRef(null),[I,z]=Yt(g,p),[V,A]=Yt(d,c),j=Math.max(1,Math.min(V,ji(void 0,I,f))),[q,X]=ae.useState(j);l.useEffect(()=>{X(j)},[j]);const K=Math.max(1,j-(S?3:5)),J=Math.min(ji(void 0,I,f),j+(S?3:5));function Z(qe,at){let He=qe||ae.createElement("button",{type:"button","aria-label":at,className:`${t}-item-link`});return typeof qe=="function"&&(He=ae.createElement(qe,e)),He}function oe(qe){const at=qe.target.value,He=ji(void 0,I,f);let ze;return at===""?ze=at:Number.isNaN(Number(at))?ze=q:at>=He?ze=He:ze=Number(at),ze}function ne(qe){return C4(qe)&&qe!==j&&C4(f)&&f>0}const ie=f>I?$:!1;function de(qe){(qe.keyCode===nt.UP||qe.keyCode===nt.DOWN)&&qe.preventDefault()}function le(qe){const at=oe(qe);switch(at!==q&&X(at),qe.keyCode){case nt.ENTER:re(at);break;case nt.UP:re(at-1);break;case nt.DOWN:re(at+1);break}}function fe(qe){re(oe(qe))}function ge(qe){const at=ji(qe,I,f),He=j>at&&at!==0?at:j;z(qe),X(He),M?.(j,qe),A(He),h?.(He,qe)}function re(qe){if(ne(qe)&&!N){const at=ji(void 0,I,f);let He=qe;return qe>at?He=at:qe<1&&(He=1),He!==q&&X(He),A(He),h?.(He,I),He}return j}const ce=j>1,he=j<ji(void 0,I,f);function pe(){ce&&re(j-1)}function Se(){he&&re(j+1)}function Ie(){re(K)}function Me(){re(J)}function we(qe,at,...He){(qe.key==="Enter"||qe.charCode===nt.ENTER||qe.keyCode===nt.ENTER)&&at(...He)}function se(qe){we(qe,pe)}function be(qe){we(qe,Se)}function Ee(qe){we(qe,Ie)}function Ne(qe){we(qe,Me)}function Fe(qe){const at=U(qe,"prev",Z(H,"prev page"));return ae.isValidElement(at)?ae.cloneElement(at,{disabled:!ce}):at}function Ge(qe){const at=U(qe,"next",Z(_,"next page"));return ae.isValidElement(at)?ae.cloneElement(at,{disabled:!he}):at}function et(qe){(qe.type==="click"||qe.keyCode===nt.ENTER)&&re(q)}let Oe=null;const _e=Pn(e,{aria:!0,data:!0}),Ve=P&&ae.createElement("li",{className:`${t}-total-text`},P(f,[f===0?0:(j-1)*I+1,j*I>f?f:j*I]));let Qe=null;const De=ji(void 0,I,f);if(y&&f<=I)return null;const ve=[],Ae={rootPrefixCls:t,onClick:re,onKeyPress:we,showTitle:w,itemRender:U,page:-1,className:i?.item,style:s?.item},Ze=j-1>0?j-1:0,Be=j+1<De?j+1:De,Ue=$&&$.goButton,Pe=typeof T=="object"?T.readOnly:!T;let Xe=Ue,rt=null;T&&(Ue&&(typeof Ue=="boolean"?Xe=ae.createElement("button",{type:"button",onClick:et,onKeyUp:et},x.jump_to_confirm):Xe=ae.createElement("span",{onClick:et,onKeyUp:et},Ue),Xe=ae.createElement("li",{title:w?`${x.jump_to}${j}/${De}`:null,className:`${t}-simple-pager`},Xe)),rt=ae.createElement("li",{title:w?`${j}/${De}`:null,className:Q(`${t}-simple-pager`,i?.item),style:s?.item},Pe?q:ae.createElement("input",{type:"text","aria-label":x.jump_to,value:q,disabled:N,onKeyDown:de,onKeyUp:le,onChange:le,onBlur:fe,size:3}),ae.createElement("span",{className:`${t}-slash`},"/"),De));const ot=S?1:2;if(De<=3+ot*2){De||ve.push(ae.createElement(Wc,ti({},Ae,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let qe=1;qe<=De;qe+=1)ve.push(ae.createElement(Wc,ti({},Ae,{key:qe,page:qe,active:j===qe})))}else{const qe=S?x.prev_3:x.prev_5,at=S?x.next_3:x.next_5,He=U(K,"jump-prev",Z(G,"prev page")),ze=U(J,"jump-next",Z(L,"next page"));b&&(Oe=He?ae.createElement("li",{title:w?qe:null,key:"prev",onClick:Ie,tabIndex:0,onKeyDown:Ee,className:Q(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!G})},He):null,Qe=ze?ae.createElement("li",{title:w?at:null,key:"next",onClick:Me,tabIndex:0,onKeyDown:Ne,className:Q(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!L})},ze):null);let We=Math.max(1,j-ot),Re=Math.min(j+ot,De);j-1<=ot&&(Re=1+ot*2),De-j<=ot&&(We=De-ot*2);for(let Ye=We;Ye<=Re;Ye+=1)ve.push(ae.createElement(Wc,ti({},Ae,{key:Ye,page:Ye,active:j===Ye})));if(j-1>=ot*2&&j!==3&&(ve[0]=ae.cloneElement(ve[0],{className:Q(`${t}-item-after-jump-prev`,ve[0].props.className)}),ve.unshift(Oe)),De-j>=ot*2&&j!==De-2){const Ye=ve[ve.length-1];ve[ve.length-1]=ae.cloneElement(Ye,{className:Q(`${t}-item-before-jump-next`,Ye.props.className)}),ve.push(Qe)}We!==1&&ve.unshift(ae.createElement(Wc,ti({},Ae,{key:1,page:1}))),Re!==De&&ve.push(ae.createElement(Wc,ti({},Ae,{key:De,page:De})))}let lt=Fe(Ze);if(lt){const qe=!ce||!De;lt=ae.createElement("li",{title:w?x.prev_page:null,onClick:pe,tabIndex:qe?null:0,onKeyDown:se,className:Q(`${t}-prev`,i?.item,{[`${t}-disabled`]:qe}),style:s?.item,"aria-disabled":qe},lt)}let St=Ge(Be);if(St){let qe,at;T?(qe=!he,at=ce?0:null):(qe=!he||!De,at=qe?null:0),St=ae.createElement("li",{title:w?x.next_page:null,onClick:Se,tabIndex:at,onKeyDown:be,className:Q(`${t}-next`,i?.item,{[`${t}-disabled`]:qe}),style:s?.item,"aria-disabled":qe},St)}const Ct=Q(t,r,{[`${t}-start`]:C==="start",[`${t}-center`]:C==="center",[`${t}-end`]:C==="end",[`${t}-simple`]:T,[`${t}-disabled`]:N});return ae.createElement("ul",ti({className:Ct,style:R,ref:B},_e),Ve,lt,T?rt:ve,St,ae.createElement(iQ,{locale:x,rootPrefixCls:t,disabled:N,selectPrefixCls:n,changeSize:ge,pageSize:I,pageSizeOptions:W,quickGo:ie?re:null,goButton:Xe,showSizeChanger:D,sizeChangerRender:k}))},cQ=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}}}}},uQ=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(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"}}},[`
321
+ &${t}-mini ${t}-prev ${t}-item-link,
322
+ &${t}-mini ${t}-next ${t}-item-link
323
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),input:{...f1(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},dQ=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:te(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:te(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 ${te(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${te(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:`${te(e.inputOutlineOffset)} 0 ${te(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:te(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},fQ=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}}},[`
324
+ ${t}-prev,
325
+ ${t}-jump-prev,
326
+ ${t}-jump-next
327
+ `]:{marginInlineEnd:e.marginXS},[`
328
+ ${t}-prev,
329
+ ${t}-next,
330
+ ${t}-jump-prev,
331
+ ${t}-jump-next
332
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:te(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:`${te(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":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:te(e.controlHeight),verticalAlign:"top",input:{...m1(e),...d1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Gp(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},mQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te(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}}}}},pQ=e=>{const{componentCls:t}=e;return{[t]:{...Zt(e),display:"flex","&-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:te(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...mQ(e),...fQ(e),...dQ(e),...uQ(e),...cQ(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"}}},gQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...xo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Uo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Uo(e)}}}},sN=e=>({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,...Vs(e)}),cN=e=>Tt(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"},Ls(e)),hQ=Pt("Pagination",e=>{const t=cN(e);return[pQ(t),gQ(t)]},sN),yQ=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:`${te(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}}}}},bQ=ad(["Pagination","bordered"],e=>{const t=cN(e);return yQ(t)},sN);function $4(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const vQ=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:s,style:c,size:d,locale:f,responsive:p,showSizeChanger:g,selectComponentClass:h,pageSizeOptions:y,styles:C,classNames:b,...$}=e,{xs:S}=Dp(p),[,w]=Wr(),{getPrefixCls:M,direction:x,showSizeChanger:R,className:O,style:N,classNames:T,styles:P}=It("pagination"),D=M("pagination",n),[k,W]=hQ(D),U=fr(d),G=U==="small"||!!(S&&!U&&p),L={...e,size:U},[H,_]=Lt([T,b],[P,C],{props:L}),[B]=oo("Pagination",rO),I={...B,...f},[z,V]=$4(g),[A,j]=$4(R),q=z??A,X=V??j,K=h||Lr,J=l.useMemo(()=>y?y.map(le=>Number(le)):void 0,[y]),Z=le=>{const{disabled:fe,size:ge,onSizeChange:re,"aria-label":ce,className:he,options:pe}=le,{className:Se,onChange:Ie}=X||{},Me=pe.find(we=>String(we.value)===String(ge))?.value;return l.createElement(K,{disabled:fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:we=>we.parentNode,"aria-label":ce,options:pe,...X,value:Me,onChange:(we,se)=>{re?.(we),Ie?.(we,se)},size:G?"small":"middle",className:Q(he,Se)})},oe=l.useMemo(()=>{const le=l.createElement("span",{className:`${D}-item-ellipsis`},"•••"),fe=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(xs,null):l.createElement(Eu,null)),ge=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(Eu,null):l.createElement(xs,null)),re=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},x==="rtl"?l.createElement(f4,{className:`${D}-item-link-icon`}):l.createElement(d4,{className:`${D}-item-link-icon`}),le)),ce=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},x==="rtl"?l.createElement(d4,{className:`${D}-item-link-icon`}):l.createElement(f4,{className:`${D}-item-link-icon`}),le));return{prevIcon:fe,nextIcon:ge,jumpPrevIcon:re,jumpNextIcon:ce}},[x,D]),ne=M("select",r),ie=Q({[`${D}-${t}`]:!!t,[`${D}-mini`]:G,[`${D}-rtl`]:x==="rtl",[`${D}-bordered`]:w.wireframe},O,i,s,H.root,k,W),de={..._.root,...N,...c};return l.createElement(l.Fragment,null,w.wireframe&&l.createElement(bQ,{prefixCls:D}),l.createElement(sQ,{...oe,...$,styles:_,classNames:H,style:de,prefixCls:D,selectPrefixCls:ne,className:ie,locale:I,pageSizeOptions:J,showSizeChanger:q,sizeChangerRender:Z}))},mp=100,uN=mp/5,dN=mp/2-uN/2,Zy=dN*2*Math.PI,x4=50,w4=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:dN,cx:x4,cy:x4,strokeWidth:uN,style:n})},SQ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[s,c]=l.useState(!1);Nt(()=>{e!==0&&c(!0)},[e!==0]);const d=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${Zy/4}`,strokeDasharray:`${Zy*d/100} ${Zy*(100-d)/100}`};return l.createElement("span",{className:Q(r,`${n}-progress`,d<=0&&i)},l.createElement("svg",{viewBox:`0 0 ${mp} ${mp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},l.createElement(w4,{dotClassName:n,hasCircleCls:!0}),l.createElement(w4,{dotClassName:n,style:f})))};function CQ(e){const{prefixCls:t,percent:n=0,className:r,style:i}=e,s=`${t}-dot`,c=`${s}-holder`,d=`${c}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:Q(c,r,n>0&&d),style:i},l.createElement("span",{className:Q(s,`${t}-dot-spin`)},[1,2,3,4].map(f=>l.createElement("i",{className:`${t}-dot-item`,key:f})))),l.createElement(SQ,{prefixCls:t,percent:n}))}function $Q(e){const{prefixCls:t,indicator:n,percent:r,className:i,style:s}=e,c=`${t}-dot`;return n&&l.isValidElement(n)?nr(n,d=>({className:Q(d.className,c,i),style:{...d.style,...s},percent:r})):l.createElement(CQ,{prefixCls:t,percent:r,className:i,style:s})}const xQ=new At("antSpinMove",{to:{opacity:1}}),wQ=new At("antRotate",{to:{transform:"rotate(405deg)"}}),EQ=e=>{const{componentCls:t,calc:n}=e;return{[t]:{...Zt(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:xQ,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:wQ,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"}}}},MQ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},RQ=Pt("Spin",e=>{const t=Tt(e,{spinDotDefault:e.colorTextDescription});return EQ(t)},MQ),OQ=200,E4=[[30,.05],[70,.03],[96,.01]];function TQ(e,t){const[n,r]=l.useState(0),i=l.useRef(null),s=t==="auto";return l.useEffect(()=>(s&&e&&(r(0),i.current=setInterval(()=>{r(c=>{const d=100-c;for(let f=0;f<E4.length;f+=1){const[p,g]=E4[f];if(c<=p)return c+d*g}return c})},OQ)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[s,e]),s?n:t}let fN;function NQ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const pp=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:s,size:c="default",tip:d,wrapperClassName:f,style:p,children:g,fullscreen:h=!1,indicator:y,percent:C,classNames:b,styles:$,...S}=e,{getPrefixCls:w,direction:M,indicator:x,className:R,style:O,classNames:N,styles:T}=It("spin"),P=w("spin",t),[D,k]=RQ(P),[W,U]=l.useState(()=>n&&!NQ(n,r)),G=TQ(W,C);l.useEffect(()=>{if(n){const q=MU(r,()=>{U(!0)});return q(),()=>{q?.cancel?.()}}U(!1)},[r,n]);const L=l.useMemo(()=>typeof g<"u"&&!h,[g,h]),H={...e,size:c,spinning:W,tip:d,fullscreen:h,children:g,percent:G},[_,B]=Lt([N,b],[T,$],{props:H}),I=Q(P,R,{[`${P}-sm`]:c==="small",[`${P}-lg`]:c==="large",[`${P}-spinning`]:W,[`${P}-show-text`]:!!d,[`${P}-rtl`]:M==="rtl"},i,!h&&s,!h&&_.root,D,k),z=Q(`${P}-container`,{[`${P}-blur`]:W}),V=y??x??fN,A={...O,...p},j=l.createElement("div",{...S,style:h?A:{...B.root,...A},className:I,"aria-live":"polite","aria-busy":W},l.createElement($Q,{className:_.indicator,style:B.indicator,prefixCls:P,indicator:V,percent:G}),d&&(L||h)?l.createElement("div",{className:Q(`${P}-text`,_.tip),style:B.tip},d):null);return L?l.createElement("div",{...S,className:Q(`${P}-nested-loading`,f,_.wrapper,D,k),style:B.wrapper},W&&l.createElement("div",{key:"loading"},j),l.createElement("div",{className:z,key:"container"},g)):h?l.createElement("div",{className:Q(`${P}-fullscreen`,{[`${P}-fullscreen-show`]:W},s,D,k,_.mask),style:B.mask},j):j};pp.setDefaultIndicator=e=>{fN=e};const $1=ae.createContext({});$1.Consumer;const IQ=({prefixCls:e,className:t,avatar:n,title:r,description:i,...s})=>{const{getPrefixCls:c}=l.useContext(dt),d=c("list",e),f=Q(`${d}-item-meta`,t),p=ae.createElement("div",{className:`${d}-item-meta-content`},r&&ae.createElement("h4",{className:`${d}-item-meta-title`},r),i&&ae.createElement("div",{className:`${d}-item-meta-description`},i));return ae.createElement("div",{...s,className:f},n&&ae.createElement("div",{className:`${d}-item-meta-avatar`},n),(r||i)&&p)},PQ=ae.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:s,styles:c,className:d,classNames:f,colStyle:p,...g}=e,{grid:h,itemLayout:y}=l.useContext($1),{getPrefixCls:C,list:b}=l.useContext(dt),$=T=>Q(b?.item?.classNames?.[T],f?.[T]),S=T=>({...b?.item?.styles?.[T],...c?.[T]}),w=()=>{const T=dr(r);return T.some(D=>typeof D=="string")&&T.length>1},M=()=>y==="vertical"?!!s:!w(),x=C("list",n),R=i&&i.length>0&&ae.createElement("ul",{className:Q(`${x}-item-action`,$("actions")),key:"actions",style:S("actions")},i.map((T,P)=>ae.createElement("li",{key:`${x}-item-action-${P}`},T,P!==i.length-1&&ae.createElement("em",{className:`${x}-item-action-split`})))),O=h?"div":"li",N=ae.createElement(O,{...g,...h?{}:{ref:t},className:Q(`${x}-item`,{[`${x}-item-no-flex`]:!M()},d)},y==="vertical"&&s?[ae.createElement("div",{className:`${x}-item-main`,key:"content"},r,R),ae.createElement("div",{className:Q(`${x}-item-extra`,$("extra")),key:"extra",style:S("extra")},s)]:[r,R,nr(s,{key:"extra"})]);return h?ae.createElement(PU,{ref:t,flex:1,style:p},N):N}),mN=PQ;mN.Meta=IQ;const zQ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:s,itemPaddingLG:c,marginLG:d,borderRadiusLG:f}=e,p=te(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${p} ${p} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${p} ${p}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${te(i)} ${te(d)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},AQ=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:s,margin:c}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:s}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${te(c)}`}}}}}},DQ=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:s,marginLG:c,padding:d,itemPadding:f,colorPrimary:p,itemPaddingSM:g,itemPaddingLG:h,paddingXS:y,margin:C,colorText:b,colorTextDescription:$,motionDurationSlow:S,lineWidth:w,headerBg:M,footerBg:x,emptyTextPadding:R,metaMarginBottom:O,avatarMarginRight:N,titleMarginBottom:T,descriptionFontSize:P}=e;return{[t]:{...Zt(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:M},[`${t}-footer`]:{background:x},[`${t}-header, ${t}-footer`]:{paddingBlock:s},[`${t}-pagination`]:{marginBlockStart:c,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:b,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:N},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:b},[`${t}-item-meta-title`]:{margin:`0 0 ${te(e.marginXXS)} 0`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:b,transition:`all ${S}`,"&:hover":{color:p}}},[`${t}-item-meta-description`]:{color:$,fontSize:P,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${te(y)}`,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:w,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${te(d)} 0`,color:$,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:R,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:C,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:c},[`${t}-item-meta`]:{marginBlockEnd:O,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:b,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:d,marginInlineStart:"auto","> li":{padding:`0 ${te(d)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:h},[`${t}-sm ${t}-item`]:{padding:g},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},jQ=e=>({contentWidth:220,itemPadding:`${te(e.paddingContentVertical)} 0`,itemPaddingSM:`${te(e.paddingContentVerticalSM)} ${te(e.paddingContentHorizontal)}`,itemPaddingLG:`${te(e.paddingContentVerticalLG)} ${te(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),_Q=Pt("List",e=>{const t=Tt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[DQ(t),zQ(t),AQ(t)]},jQ),HQ=(e,t)=>{const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:s=!0,className:c,rootClassName:d,style:f,children:p,itemLayout:g,loadMore:h,grid:y,dataSource:C=[],size:b,header:$,footer:S,loading:w=!1,rowKey:M,renderItem:x,locale:R,...O}=e,N=n&&typeof n=="object"?n:{},[T,P]=l.useState(N.defaultCurrent||1),[D,k]=l.useState(N.defaultPageSize||10),{getPrefixCls:W,direction:U,className:G,style:L}=It("list"),{renderEmpty:H}=l.useContext(dt),_={current:1,total:0,position:"bottom"},B=Me=>(we,se)=>{P(we),k(se),n&&n?.[Me]?.(we,se)},I=B("onChange"),z=B("onShowSizeChange"),V=(Me,we)=>{if(!x)return null;let se;return typeof M=="function"?se=M(Me):M?se=Me[M]:se=Me.key,se||(se=`list-item-${we}`),l.createElement(l.Fragment,{key:se},x(Me,we))},A=!!(h||n||S),j=W("list",r),[q,X]=_Q(j);let K=w;typeof K=="boolean"&&(K={spinning:K});const J=!!K?.spinning,Z=fr(b);let oe="";switch(Z){case"large":oe="lg";break;case"small":oe="sm";break}const ne=Q(j,{[`${j}-vertical`]:g==="vertical",[`${j}-${oe}`]:oe,[`${j}-split`]:s,[`${j}-bordered`]:i,[`${j}-loading`]:J,[`${j}-grid`]:!!y,[`${j}-something-after-last-item`]:A,[`${j}-rtl`]:U==="rtl"},G,c,d,q,X),ie=Gb(_,{total:C.length,current:T,pageSize:D},n||{}),de=Math.ceil(ie.total/ie.pageSize);ie.current=Math.min(ie.current,de);const le=n&&l.createElement("div",{className:Q(`${j}-pagination`)},l.createElement(vQ,{align:"end",...ie,onChange:I,onShowSizeChange:z}));let fe=xn(C);n&&C.length>(ie.current-1)*ie.pageSize&&(fe=xn(C).splice((ie.current-1)*ie.pageSize,ie.pageSize));const ge=Object.keys(y||{}).some(Me=>["xs","sm","md","lg","xl","xxl"].includes(Me)),re=Dp(ge),ce=l.useMemo(()=>{for(let Me=0;Me<tl.length;Me+=1){const we=tl[Me];if(re[we])return we}},[re]),he=l.useMemo(()=>{if(!y)return;const Me=ce&&y[ce]?y[ce]:y.column;if(Me)return{width:`${100/Me}%`,maxWidth:`${100/Me}%`}},[JSON.stringify(y),ce]);let pe=J&&l.createElement("div",{style:{minHeight:53}});if(fe.length>0){const Me=fe.map(V);pe=y?l.createElement(AU,{gutter:y.gutter},l.Children.map(Me,we=>l.createElement("div",{key:we?.key,style:he},we))):l.createElement("ul",{className:`${j}-items`},Me)}else!p&&!J&&(pe=l.createElement("div",{className:`${j}-empty-text`},R?.emptyText||H?.("List")||l.createElement(DT,{componentName:"List"})));const Se=ie.position,Ie=l.useMemo(()=>({grid:y,itemLayout:g}),[JSON.stringify(y),g]);return l.createElement($1.Provider,{value:Ie},l.createElement("div",{ref:t,style:{...L,...f},className:ne,...O},(Se==="top"||Se==="both")&&le,$&&l.createElement("div",{className:`${j}-header`},$),l.createElement(pp,{...K},pe,p),S&&l.createElement("div",{className:`${j}-footer`},S),h||(Se==="bottom"||Se==="both")&&le))},BQ=l.forwardRef(HQ),So=BQ;So.Item=mN;const LQ=(e,t=!1)=>t&&!Mr(e)?[]:Array.isArray(e)?e:[e];let Bi=null,Yi=e=>e(),ed=[],td={};function M4(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=td,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:i}}const VQ=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=l.useContext(dt),s=td.prefixCls||i("message"),c=l.useContext(I9),[d,f]=AO({...n,prefixCls:s,...c.message});return ae.useImperativeHandle(t,()=>{const p={...d};return Object.keys(p).forEach(g=>{p[g]=(...h)=>(r(),d[g].apply(d,h))}),{instance:p,sync:r}}),f}),FQ=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(M4),i=()=>{r(M4)};ae.useEffect(i,[]);const s=TO(),c=s.getRootPrefixCls(),d=s.getIconPrefixCls(),f=s.getTheme(),p=ae.createElement(VQ,{ref:t,sync:i,messageConfig:n});return ae.createElement(Qo,{prefixCls:c,iconPrefixCls:d,theme:f},s.holderRender?s.holderRender(p):p)}),Qp=()=>{if(!Bi){const e=document.createDocumentFragment(),t={fragment:e};Bi=t,Yi(()=>{jS(ae.createElement(FQ,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,Qp())})}}),e)});return}Bi.instance&&(ed.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Yi(()=>{const r=Bi.instance.open({...td,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Yi(()=>{Bi?.instance.destroy(e.key)});break;default:Yi(()=>{var r;const i=(r=Bi.instance)[t].apply(r,xn(e.args));i?.then(e.resolve),e.setCloseFn(i)})}}),ed=[])};function kQ(e){td={...td,...e},Yi(()=>{Bi?.sync?.()})}function WQ(e){const t=DS(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return ed.push(i),()=>{r?Yi(()=>{r()}):i.skipped=!0}});return Qp(),t}function qQ(e,t){const n=DS(r=>{let i;const s={type:e,args:t,resolve:r,setCloseFn:c=>{i=c}};return ed.push(s),()=>{i?Yi(()=>{i()}):s.skipped=!0}});return Qp(),n}const YQ=e=>{ed.push({type:"destroy",key:e}),Qp()},UQ=["success","info","warning","error","loading"],GQ={open:WQ,destroy:YQ,config:kQ,useMessage:iD,_InternalPanelDoNotUseOrYouWillBeFired:JA},$n=GQ;UQ.forEach(e=>{$n[e]=(...t)=>qQ(e,t)});const XQ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:s,title:c,children:d,footer:f,...p}=e,{getPrefixCls:g}=l.useContext(dt),h=g(),y=t||g("modal"),C=ar(h),[b,$]=lT(y,C),S=`${y}-confirm`;let w={};return s?w={closable:i??!1,title:"",footer:"",children:l.createElement(cT,{...e,prefixCls:y,confirmPrefixCls:S,rootPrefixCls:h,content:d})}:w={closable:i??!0,title:c,footer:f!==null&&l.createElement(rT,{...e}),children:d},l.createElement(GO,{prefixCls:y,className:Q(b,`${y}-pure-panel`,s&&S,s&&`${S}-${s}`,n,$,C),...p,closeIcon:nT(y,r),closable:i,...w})},KQ=bT(XQ);function pN(e){return vd(mT(e))}const ao=sT;ao.useModal=N9;ao.info=function(t){return vd(pT(t))};ao.success=function(t){return vd(gT(t))};ao.error=function(t){return vd(hT(t))};ao.warning=pN;ao.warn=pN;ao.confirm=function(t){return vd(yT(t))};ao.destroyAll=function(){for(;qi.length;){const t=qi.pop();t&&t()}};ao.config=M9;ao._InternalPanelDoNotUseOrYouWillBeFired=KQ;const QQ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:s,colorWarning:c,marginXXS:d,marginXS:f,fontSize:p,fontWeightStrong:g,colorTextHeading:h}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:p},[`${t}-message`]:{marginBottom:f,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:p,lineHeight:1,marginInlineEnd:f},[`${t}-title`]:{fontWeight:g,color:h,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:d,color:s}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:f}}}}},ZQ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},gN=Pt("Popconfirm",e=>QQ(e),ZQ,{resetStyle:!1}),hN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:s,cancelText:c,okText:d,okType:f="primary",icon:p=l.createElement(zs,null),showCancel:g=!0,close:h,onConfirm:y,onCancel:C,onPopupClick:b,classNames:$,styles:S}=e,{getPrefixCls:w}=l.useContext(dt),[M]=oo("Popconfirm",$a.Popconfirm),x=Ms(i),R=Ms(s);return l.createElement("div",{className:`${t}-inner-content`,onClick:b},l.createElement("div",{className:`${t}-message`},p&&l.createElement("span",{className:`${t}-message-icon`},p),l.createElement("div",{className:`${t}-message-text`},x&&l.createElement("div",{className:Q(`${t}-title`,$?.title),style:S?.title},x),R&&l.createElement("div",{className:Q(`${t}-description`,$?.content),style:S?.content},R))),l.createElement("div",{className:`${t}-buttons`},g&&l.createElement(_t,{onClick:C,size:"small",...r},c||M?.cancelText),l.createElement(LS,{buttonProps:{size:"small",..._S(f),...n},actionFn:y,close:h,prefixCls:w("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||M?.okText)))},JQ=e=>{const{prefixCls:t,placement:n,className:r,style:i,...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("popconfirm",t);return gN(d),l.createElement(YT,{placement:n,className:Q(d,r),style:i,content:l.createElement(hN,{prefixCls:d,...s})})},eZ=l.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:i,okType:s="primary",icon:c=l.createElement(zs,null),children:d,overlayClassName:f,onOpenChange:p,overlayStyle:g,styles:h,arrow:y,classNames:C,...b}=e,{getPrefixCls:$,className:S,style:w,classNames:M,styles:x,arrow:R,trigger:O}=It("popconfirm"),[N,T]=Yt(e.defaultOpen??!1,e.open),P=XS(y,R),D=i||O||"click",k=(V,A)=>{T(V),p?.(V,A)},W=V=>{k(!1,V)},U=V=>e.onConfirm?.call(void 0,V),G=V=>{k(!1,V),e.onCancel?.call(void 0,V)},L=(V,A)=>{const{disabled:j=!1}=e;j||k(V,A)},H=$("popconfirm",n),_={...e,placement:r,trigger:D,okType:s,overlayStyle:g,styles:h,classNames:C},[B,I]=Lt([M,C],[x,h],{props:_}),z=Q(H,S,f,B.root);return gN(H),l.createElement(UT,{arrow:P,...tn(b,["title"]),trigger:D,placement:r,onOpenChange:L,open:N,ref:t,classNames:{root:z,container:B.container,arrow:B.arrow},styles:{root:{...w,...I.root,...g},container:I.container,arrow:I.arrow},content:l.createElement(hN,{okType:s,icon:c,...e,prefixCls:H,close:W,onConfirm:U,onCancel:G,classNames:B,styles:I}),"data-popover-inject":!0},d)}),uS=eZ;uS._InternalPanelDoNotUseOrYouWillBeFired=JQ;const tZ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},nZ=()=>{const e=l.useRef([]),t=l.useRef(null);return l.useEffect(()=>{const n=Date.now();let r=!1;e.current.forEach(i=>{if(!i)return;r=!0;const s=i.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(s.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},R4=({bg:e,children:t})=>l.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function O4(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),i=`${Math.floor(r*t)}%`;return`${e[n]} ${i}`})}const rZ=l.forwardRef((e,t)=>{const{prefixCls:n,color:r,gradientId:i,radius:s,className:c,style:d,ptg:f,strokeLinecap:p,strokeWidth:g,size:h,gapDegree:y}=e,C=r&&typeof r=="object",b=C?"#FFF":void 0,$=h/2,S=l.createElement("circle",{className:Q(`${n}-circle-path`,c),r:s,cx:$,cy:$,stroke:b,strokeLinecap:p,strokeWidth:g,opacity:f===0?0:1,style:d,ref:t});if(!C)return S;const w=`${i}-conic`,M=y?`${180+y/2}deg`:"0deg",x=O4(r,(360-y)/360),R=O4(r,1),O=`conic-gradient(from ${M}, ${x.join(", ")})`,N=`linear-gradient(to ${y?"bottom":"top"}, ${R.join(", ")})`;return l.createElement(l.Fragment,null,l.createElement("mask",{id:w},S),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:`url(#${w})`},l.createElement(R4,{bg:N},l.createElement(R4,{bg:O}))))}),eu=100,Jy=(e,t,n,r,i,s,c,d,f,p,g=0)=>{const h=n/100*360*((360-s)/360),y=s===0?0:{bottom:0,top:180,left:90,right:-90}[c];let C=(100-r)/100*t;f==="round"&&r!==100&&(C+=p/2,C>=t&&(C=t-.01));const b=eu/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:C+g,transform:`rotate(${i+h+y}deg)`,transformOrigin:`${b}px ${b}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}},oZ=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:ae.createElement("style",null,`@keyframes ${n} {
333
+ 0% { transform: rotate(0deg); }
334
+ 100% { transform: rotate(360deg); }
335
+ }`)}});function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(this,arguments)}function T4(e){const t=e??[];return Array.isArray(t)?t:[t]}const aZ=e=>{const{id:t,prefixCls:n,classNames:r={},styles:i={},steps:s,strokeWidth:c,railWidth:d,gapDegree:f=0,gapPosition:p,railColor:g,strokeLinecap:h,style:y,className:C,strokeColor:b,percent:$,loading:S,...w}={...tZ,...e},M=eu/2,x=Ko(t),R=`${x}-gradient`,O=M-c/2,N=Math.PI*2*O,T=f>0?90+f/2:-90,P=N*((360-f)/360),{count:D,gap:k}=typeof s=="object"?s:{count:s,gap:2},W=T4($),U=T4(b),G=U.find(j=>j&&typeof j=="object"),H=G&&typeof G=="object"?"butt":h,{indeterminateStyleProps:_,indeterminateStyleAnimation:B}=oZ({id:x,loading:S}),I=Jy(N,P,0,100,T,f,p,g,H,c),z=nZ(),V=()=>{let j=0;return W.map((q,X)=>{const K=U[X]||U[U.length-1],J=Jy(N,P,j,q,T,f,p,K,H,c);return j+=q,l.createElement(rZ,{key:X,color:K,ptg:q,radius:O,prefixCls:n,gradientId:R,className:r.track,style:{...J,..._,...i.track},strokeLinecap:H,strokeWidth:c,gapDegree:f,ref:Z=>{z[X]=Z},size:eu})}).reverse()},A=()=>{const j=Math.round(D*(W[0]/100)),q=100/D;let X=0;return new Array(D).fill(null).map((K,J)=>{const Z=J<=j-1?U[0]:g,oe=Z&&typeof Z=="object"?`url(#${R})`:void 0,ne=Jy(N,P,X,q,T,f,p,Z,"butt",c,k);return X+=(P-ne.strokeDashoffset+k)*100/P,l.createElement("circle",{key:J,className:Q(`${n}-circle-path`,r.track),r:O,cx:M,cy:M,stroke:oe,strokeWidth:c,opacity:1,style:{...ne,...i.track},ref:ie=>{z[J]=ie}})})};return l.createElement("svg",dS({className:Q(`${n}-circle`,r.root,C),viewBox:`0 0 ${eu} ${eu}`,style:{...i.root,...y},id:t,role:"presentation"},w),!D&&l.createElement("circle",{className:Q(`${n}-circle-rail`,r.rail),r:O,cx:M,cy:M,stroke:g,strokeLinecap:H,strokeWidth:d||c,style:{...I,...i.rail}}),D?A():V(),B)};function Xi(e){return!e||e<0?0:e>100?100:e}function gp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const iZ=({percent:e,success:t})=>{const n=Xi(gp({success:t}));return[n,Xi(Xi(e)-n)]},lZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||ys.green,t||null]},Zp=(e,t,n)=>{let r=-1,i=-1;if(t==="step"){const s=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,i=c??8):typeof e=="number"?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=s}else if(t==="line"){const s=n?.strokeWidth;typeof e=="string"||typeof e>"u"?i=s||(e==="small"?6:8):typeof e=="number"?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,i]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},sZ=3,cZ=e=>sZ/e*100,N4=["root","body","indicator"],uZ=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:f,gapDegree:p,width:g=120,type:h,children:y,success:C,size:b=g,steps:$}=e,{direction:S}=It("progress"),w=i??s,[M,x]=Zp(b,"circle");let{strokeWidth:R}=e;R===void 0&&(R=Math.max(cZ(M),6));const O={width:M,height:x,fontSize:M*.15+6},N=l.useMemo(()=>{if(p||p===0)return p;if(h==="dashboard")return 75},[p,h]),T=iZ(e),P=l.useMemo(()=>{const H=(f??d)||h==="dashboard"&&"bottom"||void 0,_=S==="rtl";switch(H){case"start":return _?"right":"left";case"end":return _?"left":"right";default:return H}},[S,f,d,h]),D=Object.prototype.toString.call(e.strokeColor)==="[object Object]",k=lZ({success:C,strokeColor:e.strokeColor}),W=Q(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),U=l.createElement(aZ,{steps:$,percent:$?T[1]:T,strokeWidth:R,railWidth:R,strokeColor:$?k[1]:k,strokeLinecap:c,railColor:w,prefixCls:t,gapDegree:N,gapPosition:P,classNames:tn(n,N4),styles:tn(r,N4)}),G=M<=20,L=l.createElement("div",{className:W,style:{...O,...r.body}},U,!G&&y);return G?l.createElement(ur,{title:y},L):L},fS="--progress-line-stroke-color",dZ=e=>{const t="-100%";return new At("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},fZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Zt(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},mZ=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:dZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},pZ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{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}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},gZ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},hZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},yZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),bZ=Pt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Tt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[fZ(n),mZ(n),pZ(n),gZ(n),hZ(n)]},yZ),vZ=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(", ")},SZ=(e,t)=>{const{from:n=ys.blue,to:r=ys.blue,direction:i=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=vZ(s),f=`linear-gradient(${i}, ${d})`;return{background:f,[fS]:f}}const c=`linear-gradient(${i}, ${n}, ${r})`;return{background:c,[fS]:c}},CZ=e=>{const{prefixCls:t,classNames:n,styles:r,direction:i,percent:s,size:c,strokeWidth:d,strokeColor:f,strokeLinecap:p="round",children:g,railColor:h,trailColor:y,percentPosition:C,success:b}=e,{align:$,type:S}=C,w=h??y,M=p==="square"||p==="butt"?0:void 0,x=c??[-1,d||(c==="small"?6:8)],[R,O]=Zp(x,"line",{strokeWidth:d}),N={backgroundColor:w||void 0,borderRadius:M,height:O},T=`${t}-track`,P=f&&typeof f!="string"?SZ(f,i):{[fS]:f,background:f},D={width:`${Xi(s)}%`,height:O,borderRadius:M,...P},k=gp(e),W={width:`${Xi(k)}%`,height:O,borderRadius:M,backgroundColor:b?.strokeColor};return l.createElement("div",{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:$==="center"&&S==="outer"}),style:{width:R>0?R:"100%",...r.body}},l.createElement("div",{className:Q(`${t}-rail`,n.rail),style:{...N,...r.rail}},l.createElement("div",{className:Q(T,n.track),style:{...D,...r.track}},S==="inner"&&g),k!==void 0&&l.createElement("div",{className:Q(T,`${T}-success`,n.track),style:{...W,...r.track}})),S==="outer"&&g)},$Z=e=>{const{classNames:t,styles:n,size:r,steps:i,rounding:s=Math.round,percent:c=0,strokeWidth:d=8,strokeColor:f,railColor:p,trailColor:g,prefixCls:h,children:y}=e,C=s(i*(c/100)),$=r??[r==="small"?2:14,d],[S,w]=Zp($,"step",{steps:i,strokeWidth:d}),M=S/i,x=Array.from({length:i}),R=p??g;for(let O=0;O<i;O++){const N=Array.isArray(f)?f[O]:f;x[O]=l.createElement("div",{key:O,className:Q(`${h}-steps-item`,{[`${h}-steps-item-active`]:O<=C-1},t.track),style:{backgroundColor:O<=C-1?N:R,width:M,height:w,...n.track}})}return l.createElement("div",{className:Q(`${h}-steps-body`,t.body),style:n.body},x,y)},xZ=["normal","exception","active","success"],wZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,classNames:s,styles:c,steps:d,strokeColor:f,percent:p=0,size:g="default",showInfo:h=!0,type:y="line",status:C,format:b,style:$,percentPosition:S={},...w}=e,{align:M="end",type:x="outer"}=S,R=Array.isArray(f)?f[0]:f,O=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(R){const Z=typeof R=="string"?R:Object.values(R)[0];return new en(Z).isLight()}return!1},[f]),T=l.useMemo(()=>{const Z=gp(e);return Number.parseInt(Z!==void 0?(Z??0)?.toString():(p??0)?.toString(),10)},[p,e.success]),P=l.useMemo(()=>!xZ.includes(C)&&T>=100?"success":C||"normal",[C,T]),{getPrefixCls:D,direction:k,className:W,style:U,classNames:G,styles:L}=It("progress"),H=D("progress",n),[_,B]=bZ(H),I={...e,percent:p,type:y,size:g,showInfo:h,percentPosition:S},[z,V]=Lt([G,s],[L,c],{props:I}),A=y==="line",j=A&&!d,q=l.useMemo(()=>{if(!h)return null;const Z=gp(e);let oe;const ne=b||(de=>`${de}%`),ie=A&&N&&x==="inner";return x==="inner"||b||P!=="exception"&&P!=="success"?oe=ne(Xi(p),Xi(Z)):P==="exception"?oe=A?l.createElement(Ps,null):l.createElement(qr,null):P==="success"&&(oe=A?l.createElement(wp,null):l.createElement(cl,null)),l.createElement("span",{className:Q(`${H}-indicator`,{[`${H}-indicator-bright`]:ie,[`${H}-indicator-${M}`]:j,[`${H}-indicator-${x}`]:j},z.indicator),style:V.indicator,title:typeof oe=="string"?oe:void 0},oe)},[h,p,T,P,y,H,b,A,N,x,M,j,z.indicator,V.indicator]),X={...e,classNames:z,styles:V};let K;y==="line"?K=d?l.createElement($Z,{...X,strokeColor:O,prefixCls:H,steps:typeof d=="object"?d.count:d},q):l.createElement(CZ,{...X,strokeColor:R,prefixCls:H,direction:k,percentPosition:{align:M,type:x}},q):(y==="circle"||y==="dashboard")&&(K=l.createElement(uZ,{...X,strokeColor:R,prefixCls:H,progressStatus:P},q));const J=Q(H,`${H}-status-${P}`,{[`${H}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${H}-inline-circle`]:y==="circle"&&Zp(g,"circle")[0]<=20,[`${H}-line`]:j,[`${H}-line-align-${M}`]:j,[`${H}-line-position-${x}`]:j,[`${H}-steps`]:d,[`${H}-show-info`]:h,[`${H}-${g}`]:typeof g=="string",[`${H}-rtl`]:k==="rtl"},W,r,i,z.root,_,B);return l.createElement("div",{ref:t,style:{...U,...V.root,...$},className:J,role:"progressbar","aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...tn(w,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},K)});function EZ(e){const{prefixCls:t,className:n,style:r,status:i}=e,s=`${t}-rail`;return l.createElement("div",{className:Q(s,`${s}-${i}`,n),style:r})}const MZ=l.createContext({}),x1=l.createContext(null);function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}const yN=l.createContext({}),I4=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext(x1),{className:p,style:g}=l.useContext(yN),h=`${c}-item`;return l.createElement("div",mS({},Pn(s,!1),{ref:t,className:Q(`${h}-icon`,d.itemIcon,p,n),style:{...f.itemIcon,...g,...r}}),i)});function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}function eb(e){return e!=null}function RZ(e){const{prefixCls:t,classNames:n,styles:r,data:i,last:s,nextStatus:c,active:d,index:f,itemRender:p,iconRender:g,itemWrapperRender:h,onClick:y}=e,C=`${t}-item`,{railFollowPrevStatus:b}=l.useContext(MZ),{ItemComponent:$}=l.useContext(x1),{onClick:S,title:w,subTitle:M,content:x,description:R,disabled:O,icon:N,status:T,className:P,style:D,classNames:k={},styles:W={},...U}=i,G=x??R,L={item:{...i,content:G},index:f,active:d},H=!!(y||S)&&!O,_={};H&&(_.role="button",_.tabIndex=0,_.onClick=X=>{S?.(X),y(f)},_.onKeyDown=X=>{const{which:K}=X;(K===nt.ENTER||K===nt.SPACE)&&y(f)});const B=T||"wait",I=eb(w),z=eb(M),V=Q(C,`${C}-${B}`,{[`${C}-custom`]:N,[`${C}-active`]:d,[`${C}-disabled`]:O===!0,[`${C}-empty-header`]:!I&&!z},P,n.item,k.root);let A=l.createElement(I4,null);g&&(A=g(A,{...L,components:{Icon:I4}}));const j=l.createElement("div",{className:Q(`${C}-wrapper`,n.itemWrapper,k.wrapper),style:{...r.itemWrapper,...W.wrapper}},l.createElement(yN.Provider,{value:{className:k.icon,style:W.icon}},A),l.createElement("div",{className:Q(`${C}-section`,n.itemSection,k.section),style:{...r.itemSection,...W.section}},l.createElement("div",{className:Q(`${C}-header`,n.itemHeader,k.header),style:{...r.itemHeader,...W.header}},I&&l.createElement("div",{className:Q(`${C}-title`,n.itemTitle,k.title),style:{...r.itemTitle,...W.title}},w),z&&l.createElement("div",{title:typeof M=="string"?M:void 0,className:Q(`${C}-subtitle`,n.itemSubtitle,k.subtitle),style:{...r.itemSubtitle,...W.subtitle}},M),!s&&l.createElement(EZ,{prefixCls:C,className:Q(n.itemRail,k.rail),style:{...r.itemRail,...W.rail},status:b?T:c})),eb(G)&&l.createElement("div",{className:Q(`${C}-content`,n.itemContent,k.content),style:{...r.itemContent,...W.content}},G)));let q=l.createElement($,pS({},U,_,{className:V,style:{...r.item,...W.root,...D}}),h?h(j):j);return p&&(q=p(q,L)||null),q}function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gS.apply(this,arguments)}const P4={};function OZ(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:i=P4,styles:s=P4,rootClassName:c,orientation:d,titlePlacement:f,components:p,status:g="process",current:h=0,initial:y=0,onChange:C,items:b,iconRender:$,itemRender:S,itemWrapperRender:w,...M}=e,x=d==="vertical",R=x?"vertical":"horizontal",O=!x&&f==="vertical"?"vertical":"horizontal",N=Q(t,`${t}-${R}`,`${t}-title-${O}`,c,r,i.root),T=ae.useMemo(()=>(b||[]).filter(Boolean),[b]),P=ae.useMemo(()=>T.map(({status:L},H)=>{const _=y+H;return L||(_===h?g:_<h?"finish":"wait")}),[T,g,h,y]),D=L=>{C&&h!==L&&C(L)},{root:k="div",item:W="div"}=p||{},U=ae.useMemo(()=>({prefixCls:t,classNames:i,styles:s,ItemComponent:W}),[t,i,s,W]),G=(L,H)=>{const _=y+H,B=P[H],I=P[H+1],z={...L,status:B};return ae.createElement(RZ,{key:_,prefixCls:t,classNames:i,styles:s,data:z,nextStatus:I,active:_===h,index:_,last:T.length-1===H,iconRender:$,itemRender:S,itemWrapperRender:w,onClick:C&&D})};return ae.createElement(k,gS({className:N,style:{...n,...s?.root}},M),ae.createElement(x1.Provider,{value:U},T.map(G)))}const TZ=l.createContext(null);function NZ(e){const{prefixCls:t}=e;return l.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},l.createElement("title",null,"Arrow"),l.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))}function IZ(e){const{prefixCls:t,children:n,percent:r}=e,i=`${t}-item-progress-icon`,s=`${i}-circle`,c=`calc(var(--progress-r) * 2 * ${Math.PI*r/100}) 9999`;return l.createElement(l.Fragment,null,l.createElement("svg",{className:`${i}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r},l.createElement("title",null,"Progress"),l.createElement("circle",{className:Q(s,`${s}-rail`)}),l.createElement("circle",{className:Q(s,`${s}-ptg`),strokeDasharray:c,transform:"rotate(-90 50 50)"})),n)}const PZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`> ${n}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${n}-rail`]:{"--steps-horizontal-rail-margin":"calc(var(--steps-icon-size-max) / 2 + var(--steps-item-wrapper-padding-top))",position:"static",marginTop:"var(--steps-horizontal-rail-margin)",width:"auto",borderBlockStartWidth:"var(--steps-rail-size)",flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},zZ=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r}=e,i=`${t}-item`;return{[t]:{"--steps-icon-size":e.iconSize,"--steps-icon-border-width":e.lineWidth,[`${i}-icon`]:{width:"var(--steps-icon-size)",height:"var(--steps-icon-size)",margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:"var(--steps-icon-size)",textAlign:"center",borderRadius:"var(--steps-icon-size)",border:`var(--steps-icon-border-width) ${e.lineType} transparent`,transition:["background","border","color","inset","transform"].map(s=>`${s} ${r}`).join(", "),zIndex:1},[`${i}-custom ${i}-icon`]:{background:"none",border:0,fontSize:n}}}},AZ=e=>{const{componentCls:t,inlineDotSize:n}=e,r=e.calc(e.paddingXS).add(e.lineWidth).equal(),i=`${t}-item`;return{[`${t}-inline`]:{"--steps-items-offset":"0","--steps-item-wrapper-padding-top":r,display:"inline-flex","&:before":{content:'""',flex:"var(--steps-items-offset)"},[i]:{"--steps-title-vertical-row-gap":e.paddingXS,"--steps-icon-size":n,"--steps-icon-size-active":n,"--steps-title-font-size":e.fontSizeSM,"--steps-title-line-height":e.lineHeightSM,"--steps-item-title-color":e.colorTextSecondary,"--steps-subtitle-font-size":e.fontSizeSM,"--steps-subtitle-line-height":e.lineHeightSM,"--steps-item-subtitle-color":e.colorTextQuaternary,"--steps-rail-size":e.lineWidth,"--steps-title-horizontal-rail-gap":"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${i}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function DZ(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}function w1(e,t,n){const{calc:r,componentCls:i,descriptionMaxWidth:s}=e,c=`${i}-item`;return{[`@container style(${DZ(s)})`]:[{[`${c}-icon`]:{marginInlineStart:r(s).sub("var(--steps-icon-size)").div(2).equal()},[`${c}-rail`]:{width:"auto",insetInlineStart:r(s).add("var(--steps-icon-size)").div(2).add(t).equal(),insetInlineEnd:r(s).sub("var(--steps-icon-size)").div(2).sub(t).mul(-1).equal()}},n]}}const jZ=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:i,calc:s}=e,c=`${t}-item`;return{[t]:{"--steps-icon-size-max":"max(var(--steps-icon-size), var(--steps-icon-size-active, var(--steps-icon-size)))",[`${c}-icon`]:{marginBlockStart:"calc((var(--steps-heading-height) - var(--steps-icon-size)) / 2)"}},[`${t}-title-horizontal`]:{"--steps-title-horizontal-item-margin":e.margin,"--steps-title-horizontal-rail-margin":e.margin,"--steps-title-horizontal-title-height":i,"--steps-heading-height":"max(var(--steps-icon-size), var(--steps-title-horizontal-title-height))",[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${c}:not(:first-child)`]:{marginInlineStart:"var(--steps-title-horizontal-item-margin)"},[`${c}:last-child`]:{flex:"0 1 auto"},[`${c}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${c}-wrapper`]:{columnGap:e.margin},[`${c}-empty-header`]:{[`${c}-header`]:{minHeight:"auto"},[`${c}-content`]:{marginTop:s("var(--steps-heading-height)").sub(e.fontHeight).div(2).equal()}}},[`${c}-section`]:{flex:1,minWidth:0},[`${c}-header`]:{minHeight:"var(--steps-heading-height)"},[`${c}-title`]:{flex:"0 1 auto"},[`${c}-content`]:{maxWidth:n},[`${c}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${c}-rail`]:{"--steps-item-wrapper-padding-top":"0px",flex:1,marginInlineStart:"var(--steps-title-horizontal-rail-margin)"}},[`${t}-title-vertical`]:{"--steps-title-vertical-row-gap":e.paddingSM,"--steps-title-horizontal-rail-gap":e.marginXXS,"--steps-heading-height":"var(--steps-icon-size-max)",[`> ${c}`]:{flex:1,[`${c}-wrapper`]:{flexDirection:"column",rowGap:"var(--steps-title-vertical-row-gap)",alignItems:"center"},[`${c}-section`]:{alignSelf:"stretch"},[`${c}-header`]:{flexDirection:"column",alignItems:"center"},[`${c}-title, ${c}-subtitle, ${c}-content`]:{textAlign:"center",maxWidth:"100%"},[`${c}-subtitle`]:{margin:0},[`${c}-rail`]:{position:"absolute",top:0,width:"calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)",insetInlineStart:"calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))"}},...w1(e,r,{[`${c}:last-child`]:{flex:"none"},[`${c}-icon`]:{alignSelf:"flex-start"},[`${c}-section`]:{width:n}})}}},_Z=e=>{const{componentCls:t,fontSizeIcon:n,calc:r,navContentMaxWidth:i,navArrowColor:s,colorPrimary:c,motionDurationSlow:d}=e,f=`${t}-item`,p=c;return{[`${t}${t}-navigation`]:{[f.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${f}-wrapper`]:{paddingBlock:e.paddingSM},[`${f}-section`]:{maxWidth:i},[`${f}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:p,transition:`all ${d}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${f}-active`]:{"--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)"}},[`&${t}-horizontal`]:{[f]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${f}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:r(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[f.repeat(4)]:{[`${f}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${f}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:r(n).div(3).mul(2).equal(),height:r(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},HZ=e=>{const{componentCls:t,calc:n,lineWidthBold:r,borderRadius:i,borderRadiusSM:s,motionDurationMid:c}=e,d=`${t}-item`,f=`${te(r)} ${e.lineType} var(--steps-panel-border-color)`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{"--steps-panel-padding":e.paddingSM,"--steps-item-border-radius":i,[d]:{"--steps-panel-bg-color":"var(--steps-item-icon-bg-color)","--steps-panel-border-color":"var(--steps-item-icon-border-color)","--steps-panel-active-bg-color":"var(--steps-item-icon-active-bg-color)","--steps-panel-active-border-color":"var(--steps-item-icon-active-border-color)","--steps-panel-title-height":"calc(var(--steps-title-font-size) * var(--steps-title-line-height))","--steps-item-base-height":n("var(--steps-panel-padding)").mul(2).add("var(--steps-icon-size)").add("var(--steps-panel-title-height)").equal(),"--steps-item-base-width":"calc(var(--steps-item-base-height) * 0.7071)",transition:`background ${c}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:n(r).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:n(r).mul(2).add("100%").equal(),width:"var(--steps-item-base-width)",overflow:"visible",strokeLinecap:"round",path:{fill:"var(--steps-panel-bg-color)",stroke:"var(--steps-panel-border-color)",strokeWidth:r,vectorEffect:"non-scaling-stroke",transition:`fill ${c}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:"var(--steps-panel-padding)",background:"var(--steps-panel-bg-color)",position:"relative",borderBlock:f,"&:not(:first-child)":{paddingInlineStart:"calc(var(--steps-panel-padding) + var(--steps-item-base-width))"},"&:first-child":{borderInlineStart:f,borderStartStartRadius:"var(--steps-item-border-radius)",borderEndStartRadius:"var(--steps-item-border-radius)"},"&:last-child":{borderInlineEnd:f,borderStartEndRadius:"var(--steps-item-border-radius)",borderEndEndRadius:"var(--steps-item-border-radius)"},"&-active":{background:"var(--steps-panel-active-bg-color)",borderColor:"var(--steps-panel-active-border-color)",[`${t}-panel-arrow`]:{path:{fill:"var(--steps-panel-active-bg-color)",stroke:"var(--steps-panel-active-border-color)"}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:"var(--steps-item-icon-active-text-color)"}}}},{[`&${t}-small`]:{"--steps-panel-padding":e.paddingXS,"--steps-item-border-radius":s}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(r)} 0`,"calc(100% + var(--steps-item-base-width)) 0","calc(100% + var(--steps-item-base-width)) 100%",`${te(r)} 100%`,`calc(var(--steps-item-base-width) + ${te(r)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:n(r).div(2).mul(-1).equal(),height:n(r).add("100%").equal()}}}]}},BZ=e=>{const{calc:t,antCls:n,componentCls:r,iconSize:i,iconSizeSM:s,lineWidthBold:c,paddingXXS:d}=e,f=`${r}-item`,p=e.calc(i).add(e.calc(c).mul(4).equal()).equal(),g=e.calc(s).add(e.calc(e.lineWidth).mul(4).equal()).equal(),h=t(c).add(c).equal();return{[`${r}${r}-with-progress`]:{"--steps-item-wrapper-padding-top":h,[`${f}${f}-process`]:{[`${f}-icon`]:{position:"relative"}},[`${f}-progress-icon`]:{"&-svg":{"--steps-svg-size":t(h).mul(2).add("var(--steps-icon-size)").equal(),"--icon-size-ptg-unitless":"calc(100 / tan(atan2(var(--steps-svg-size),1px)))",fontSize:"var(--steps-svg-size)",lineHeight:"var(--icon-size-ptg-unitless)",position:"absolute",inset:t(h).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:"var(--icon-size-ptg-unitless)",strokeWidth:t("var(--icon-size-ptg-unitless)").mul(c).equal(),"--progress-r":t("var(--steps-svg-size)").sub(c).mul("var(--icon-size-ptg-unitless)").div(2).equal(),r:"var(--progress-r)",fill:"none",cx:50,cy:50,transition:`all ${e.motionDurationSlow} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}},[`&${r}-with-progress11`]:{[f]:{paddingTop:d,paddingInlineStart:d},[`${f}-icon`]:{position:"relative",[`${n}-progress`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)","&-body":{width:`${te(p)} !important`,height:`${te(p)} !important`}}},[`&${r}-small`]:{[`${f}-icon ${n}-progress-body`]:{width:`${te(g)} !important`,height:`${te(g)} !important`}}}}},LZ=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:i,marginXXS:s,lineWidthBold:c,fontSizeSM:d}=e,f=`${t}-item`;return{[`${t}${t}-dot`]:{"--steps-icon-size-active":i,"--steps-icon-size":r,"--steps-dot-icon-size":r,"--steps-dot-icon-border-width":e.lineWidthBold,"--steps-rail-size":c,"--steps-icon-border-width":c,[`${f}-custom ${f}-icon`]:{fontSize:d},[`${f}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${f}-active ${f}-icon`]:{"--steps-icon-size":"var(--steps-icon-size-active)"},[`&${t}-horizontal`]:{[`&, &${t}-small`]:w1(e,s)}}}},VZ=e=>{const{componentCls:t,lineWidthBold:n}=e,r=`${t}-item`;return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(${["calc(0px - var(--steps-item-base-width)) 0px",`calc(100% - ${te(n)}) 0px`,`calc(100% - var(--steps-item-base-width) - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,"calc(0px - var(--steps-item-base-width)) 100%"].join(",")})`}}}}}}},FZ=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:i,marginXS:s}=e;return{[`${t}${t}-small`]:{"--steps-icon-size":n,"--steps-title-horizontal-item-margin":e.marginSM,"--steps-title-vertical-row-gap":e.paddingXS,"--steps-title-font-size":r,"--steps-title-line-height":i,"--steps-title-horizontal-rail-margin":e.marginXS,"--steps-title-horizontal-title-height":e.fontHeight,[`&${t}-horizontal${t}-title-vertical`]:w1(e,s)}}},am="wait",im="process",lm="finish",sm="error",kZ=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:s,colorError:c,colorText:d,colorTextDescription:f,colorBgContainer:p,colorPrimaryHover:g}=e,h=`${t}-item`;return{[t]:[{[h]:{"--steps-item-solid-line-color":"#000","--steps-item-title-color":"#000","--steps-item-content-color":"#000","--steps-item-subtitle-color":"var(--steps-item-content-color)","--steps-item-icon-custom-color":"#000","--steps-item-icon-bg-color":"#000","--steps-item-icon-border-color":"#000","--steps-item-icon-text-color":"#fff","--steps-item-icon-dot-color":"#000","--steps-item-icon-dot-bg-color":"var(--steps-item-icon-dot-color)","--steps-item-icon-dot-border-color":"var(--steps-item-icon-dot-color)","--steps-item-text-hover-color":"#000","--steps-item-icon-bg-hover-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-border-hover-color":"var(--steps-item-icon-border-color)","--steps-item-icon-text-hover-color":"var(--steps-item-icon-text-color)","--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)","--steps-item-process-rail-line-style":e.lineType},[`${h}-rail`]:{borderColor:"var(--steps-item-solid-line-color)"},[`${h}-custom ${h}-icon`]:{color:"var(--steps-item-icon-custom-color)"},[`${h}-title`]:{color:"var(--steps-item-title-color)"},[`${h}-subtitle`]:{color:"var(--steps-item-subtitle-color)"},[`${h}-content`]:{color:"var(--steps-item-content-color)"},[`${h}-active ${h}-icon`]:{},[`${h}-active ${h}-content`]:{color:"var(--steps-item-content-active-color)"},[`${h}[role='button']:not(${h}-active):hover`]:{[`${h}-title, ${h}-content`]:{color:"var(--steps-item-text-hover-color)"}},[`&:not(${t}-dot)`]:{[`${h}:not(${h}-custom)`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-color)",borderColor:"var(--steps-item-icon-border-color)",color:"var(--steps-item-icon-text-color)"},[`&[role='button']:not(${h}-active):hover`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-hover-color)",borderColor:"var(--steps-item-icon-border-hover-color)",color:"var(--steps-item-icon-text-hover-color)"}},[`&${h}-active`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-active-bg-color)",borderColor:"var(--steps-item-icon-active-border-color)",color:"var(--steps-item-icon-active-text-color)"}}}},[`&${t}-dot`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-dot-bg-color)",borderColor:"var(--steps-item-icon-dot-border-color)",color:"var(--steps-item-icon-dot-color)",[`&${h}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${h}-${am}`]:{"--steps-item-icon-custom-color":n,"--steps-item-title-color":f,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${am}`]:{"--steps-item-solid-line-color":n},[`${h}-${im}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${im}`]:{"--steps-item-solid-line-color":i,"--steps-rail-line-style":"var(--steps-item-process-rail-line-style)"},[`${h}-${lm}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${lm}`]:{"--steps-item-solid-line-color":i},[`${h}-${sm}`]:{"--steps-item-icon-custom-color":c,"--steps-item-title-color":c,"--steps-item-content-color":c,"--steps-item-content-active-color":c,"--steps-item-text-hover-color":e.colorErrorHover},[`${h}-rail-${sm}`]:{"--steps-item-solid-line-color":c}},{[`&${t}-filled`]:{[h]:{"--steps-item-icon-dot-border-color":"transparent"},[`${h}-${am}`]:{"--steps-item-icon-bg-color":e.colorFillTertiary,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":s,"--steps-item-icon-dot-bg-color":n,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${im}, ${h}-${lm}`]:{"--steps-item-icon-bg-color":e.colorPrimaryBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":i,"--steps-item-icon-dot-bg-color":i,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${sm}`]:{"--steps-item-icon-bg-color":e.colorErrorBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":c,"--steps-item-icon-dot-bg-color":c,"--steps-item-icon-bg-hover-color":e.colorErrorBgFilledHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":c,"--steps-item-icon-active-bg-color":c,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r}}},{[`&${t}-outlined`]:{[h]:{"--steps-item-icon-dot-bg-color":"transparent"},[`${h}-${am}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":n,"--steps-item-icon-text-color":n,"--steps-item-icon-dot-color":n,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":g,"--steps-item-icon-text-hover-color":g,"--steps-item-icon-active-bg-color":e.colorFillTertiary},[`${h}-${im}, ${h}-${lm}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":i,"--steps-item-icon-text-color":i,"--steps-item-icon-dot-color":i,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorPrimaryHover,"--steps-item-icon-text-hover-color":e.colorPrimaryHover,"--steps-item-icon-active-bg-color":e.colorPrimaryBg},[`${h}-${sm}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":c,"--steps-item-icon-text-color":c,"--steps-item-icon-dot-color":c,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorErrorHover,"--steps-item-icon-text-hover-color":e.colorErrorHover,"--steps-item-icon-active-bg-color":e.colorErrorBg}}}]}},WZ=e=>{const{componentCls:t,calc:n}=e,r=`${t}-item`;return{[`${t}-vertical`]:{"--steps-vertical-rail-margin":n(e.marginXXS).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${r}`]:{minHeight:n(e.controlHeight).mul(1.5).equal(),paddingBottom:e.paddingSM,"&:last-child":{paddingBottom:0},[`${r}-icon`]:{marginInlineStart:"calc((var(--steps-icon-size-max) - var(--steps-icon-size)) / 2)"},[`${r}-rail`]:{"--steps-rail-offset":n("var(--steps-heading-height)").sub("var(--steps-icon-size)").div(2).equal(),borderInlineStartWidth:"var(--steps-rail-size)",position:"absolute",top:n("var(--steps-icon-size)").add("var(--steps-item-wrapper-padding-top)").add("var(--steps-rail-offset)").add("var(--steps-vertical-rail-margin)").equal(),insetInlineStart:n("var(--steps-icon-size-max)").div(2).equal(),bottom:n("var(--steps-vertical-rail-margin)").sub("var(--steps-rail-offset)").equal(),marginInlineStart:"calc(var(--steps-rail-size) / -2)"}}}}},qZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[t]:{"--steps-title-font-size":e.fontSizeLG,"--steps-title-line-height":e.lineHeightLG,"--steps-subtitle-font-size":e.fontSize,"--steps-subtitle-line-height":e.lineHeight,"--steps-item-wrapper-padding-top":"0px","--steps-rail-size":e.lineWidth,"--steps-rail-line-style":e.lineType,...Zt(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[`${n}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:"var(--steps-item-wrapper-padding-top)"},[`${n}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${n}-title`]:{color:e.colorText,fontSize:"var(--steps-title-font-size)",lineHeight:"var(--steps-title-line-height)",wordBreak:"break-word"},[`${n}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:"var(--steps-subtitle-font-size)",lineHeight:"var(--steps-subtitle-line-height)",marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${n}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${n}-rail`]:{borderStyle:"var(--steps-rail-line-style)",borderWidth:0},[`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:$o},[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},YZ=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),UZ=Pt("Steps",e=>{const t=Tt(e,{inlineDotSize:6});return[qZ(t),zZ(t),WZ(t),PZ(t),jZ(t),FZ(t),LZ(t),kZ(t),_Z(t),HZ(t),AZ(t),BZ(t),VZ(t)]},YZ),GZ={itemIcon:dd},XZ=e=>{const{size:t,className:n,rootClassName:r,style:i,variant:s="filled",type:c,classNames:d,styles:f,direction:p,orientation:g,responsive:h=!0,progressDot:y,labelPlacement:C,titlePlacement:b,ellipsis:$,offset:S=0,items:w,percent:M,current:x=0,onChange:R,iconRender:O,...N}=e,T=l.useContext(TZ),P=It("steps"),{getPrefixCls:D,direction:k,className:W,style:U}=P;let G,L,H={};T?H={root:T.rootComponent,item:T.itemComponent}:{classNames:G,styles:L}=P;const _=D("steps",e.prefixCls),B=`${_}-item-icon`,[I,z]=UZ(_),V=fr(t),A=l.useMemo(()=>(w||[]).filter(Boolean),[w]),{xs:j}=Dp(h),q=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),X=q==="inline",K=q==="dot"||q==="inline",J=l.useMemo(()=>q==="dot"&&typeof y=="function"?y:void 0,[q,y]),Z=l.useMemo(()=>{const pe=g||p;return q==="panel"?"horizontal":h&&j||pe==="vertical"?"vertical":"horizontal"},[g,p,q,h,j]),oe=l.useMemo(()=>K||Z==="vertical"?Z==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":b||C||"horizontal",[K,C,Z,b,c]),ne=X?void 0:M,ie={...e,variant:s,size:V,type:q,orientation:Z,titlePlacement:oe,current:x,percent:ne,responsive:h,offset:S},[de,le]=Lt([GZ,G,d],[L,f],{props:ie}),fe=(pe,Se)=>{const{item:Ie,index:Me,active:we,components:{Icon:se}}=Se,{status:be,icon:Ee}=Ie;let Ne=null;if(K||Ee)Ne=Ee;else switch(be){case"finish":Ne=l.createElement(cl,{className:`${B}-finish`});break;case"error":Ne=l.createElement(qr,{className:`${B}-error`});break;default:{let Ge=l.createElement("span",{className:`${B}-number`},Se.index+1);be==="process"&&ne!==void 0&&(Ge=l.createElement(IZ,{prefixCls:_,percent:ne},Ge)),Ne=Ge}}let Fe=l.createElement(se,null,Ne);return O?Fe=O(Fe,{index:Me,active:we,item:Ie,components:{Icon:se}}):typeof J=="function"&&(Fe=J(Fe,{index:Me,...Ie})),Fe},ge=(pe,Se)=>{let Ie=pe;return X&&Se.item.content&&(Ie=l.createElement(ur,{destroyOnHidden:!0,title:Se.item.content},pe)),l.createElement(fd,{component:"Steps",disabled:Se.item.disabled||!R,colorSource:s==="filled"?"color":null},Ie)},re=q==="panel"?pe=>l.createElement(l.Fragment,null,pe,l.createElement(NZ,{prefixCls:_})):void 0,ce={"--steps-items-offset":`${S}`,...U,...i},he=Q(W,`${_}-${s}`,{[`${_}-${q}`]:q!=="dot"?q:!1,[`${_}-rtl`]:k==="rtl",[`${_}-dot`]:K,[`${_}-ellipsis`]:$,[`${_}-with-progress`]:ne!==void 0,[`${_}-${V}`]:V},n,r,I,z);return l.createElement(OZ,{...N,prefixCls:_,className:he,style:ce,classNames:de,styles:le,orientation:Z,titlePlacement:oe,components:H,current:x,items:A,onChange:R,iconRender:fe,itemRender:ge,itemWrapperRender:re})},KZ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:s}=e,c=s(r).sub(n).equal(),d=s(t).sub(n).equal();return{[i]:{...Zt(e),display:"inline-block",height:"auto",paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:d,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-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},"&-disabled":{cursor:"not-allowed",[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},E1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Tt(e,{tagFontSize:i,tagLineHeight:te(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},M1=e=>{const t=kO(new qm(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new en(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},R1=Pt("Tag",e=>{const t=E1(e);return KZ(t)},M1),bN=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:s,children:c,icon:d,onChange:f,onClick:p,disabled:g,...h}=e,{getPrefixCls:y,tag:C}=l.useContext(dt),b=l.useContext(kr),$=g??b,S=O=>{$||(f?.(!s),p?.(O))},w=y("tag",n),[M,x]=R1(w),R=Q(w,`${w}-checkable`,{[`${w}-checkable-checked`]:s,[`${w}-checkable-disabled`]:$},C?.className,i,M,x);return l.createElement("span",{...h,ref:t,style:{...r,...C?.style},className:R,onClick:S},d,l.createElement("span",null,c))});function QZ(e,t){const{id:n,prefixCls:r,rootClassName:i,className:s,style:c,classNames:d,styles:f,disabled:p,options:g,value:h,defaultValue:y,onChange:C,multiple:b,...$}=e,{getPrefixCls:S,direction:w,className:M,style:x,classNames:R,styles:O}=It("tag"),N=S("tag",r),T=`${N}-checkable-group`,P=ar(N),[D,k]=R1(N,P),[W,U]=Lt([R,d],[O,f],{props:e}),G=l.useMemo(()=>(g||[]).map(z=>z&&typeof z=="object"?z:{value:z,label:z}),[g]),[L,H]=Yt(y,h),_=(z,V)=>{let A=null;if(b){const j=L||[];A=z?[].concat(xn(j),[V.value]):j.filter(q=>q!==V.value)}else A=z?V.value:null;H(A),C?.(A)},B=ae.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:B.current}));const I=Pn($,{aria:!0,data:!0});return ae.createElement("div",{...I,className:Q(T,M,i,{[`${T}-disabled`]:p,[`${T}-rtl`]:w==="rtl"},D,k,s,W.root),style:{...x,...U.root,...c},id:n,ref:B},G.map(z=>ae.createElement(bN,{key:z.value,className:Q(`${T}-item`,W.item),style:U.item,checked:b?(L||[]).includes(z.value):L===z.value,onChange:V=>_(V,z),disabled:p},z.label)))}const ZZ=ae.forwardRef(QZ);function JZ(e,t){const{color:n,variant:r,bordered:i}=e;return l.useMemo(()=>{const s=n?.endsWith("-inverse");let c;r?c=r:s?c="solid":i===!1?c="filled":c=t||"filled";const d=s?n?.replace("-inverse",""):n,f=Hp(n),p=yH(n),g={};if(!f&&!p&&d)if(c==="solid")g.backgroundColor=n;else{const h=new en(d).toHsl();h.l=.95,g.backgroundColor=new en(h).toHexString(),g.color=n,c==="outlined"&&(g.borderColor=n)}return[c,d,f,p,g]},[n,r,i,t])}const eJ=e=>xp(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),tJ=ad(["Tag","preset"],e=>{const t=E1(e);return eJ(t)},M1);function nJ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const cm=(e,t,n)=>{const r=nJ(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},rJ=ad(["Tag","status"],e=>{const t=E1(e);return[cm(t,"success","Success"),cm(t,"processing","Info"),cm(t,"error","Error"),cm(t,"warning","Warning")]},M1),oJ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,children:c,icon:d,color:f,variant:p,onClose:g,bordered:h,disabled:y,href:C,target:b,styles:$,classNames:S,...w}=e,{getPrefixCls:M,direction:x,className:R,variant:O,style:N,classNames:T,styles:P}=It("tag"),[D,k,W,U,G]=JZ(e,O),L=W||U,H=l.useContext(kr),_=y??H,{tag:B}=l.useContext(dt),[I,z]=l.useState(!0),V=tn(w,["closeIcon","closable"]),A={...e,color:k,variant:D,disabled:_,href:C,target:b,icon:d},[j,q]=Lt([T,S],[P,$],{props:A}),X=l.useMemo(()=>{let ce={...q.root,...N,...s};return _||(ce={...G,...ce}),ce},[q.root,N,s,G,_]),K=M("tag",n),[J,Z]=R1(K),oe=Q(K,R,j.root,`${K}-${D}`,{[`${K}-${k}`]:L,[`${K}-hidden`]:!I,[`${K}-rtl`]:x==="rtl",[`${K}-disabled`]:_},r,i,J,Z),ne=ce=>{_||(ce.stopPropagation(),g?.(ce),!ce.defaultPrevented&&z(!1))},[,ie]=PS(Cs(e),Cs(B),{closable:!1,closeIconRender:ce=>{const he=l.createElement("span",{className:`${K}-close-icon`,onClick:ne},ce);return AS(ce,he,pe=>({onClick:Se=>{pe?.onClick?.(Se),ne(Se)},className:Q(pe?.className,`${K}-close-icon`)}))}}),de=typeof w.onClick=="function"||c&&c.type==="a",le=nr(d,{className:Q(l.isValidElement(d)?d.props?.className:"",j.icon),style:q.icon}),fe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",{className:j.content,style:q.content},c)):c,ge=C?"a":"span",re=l.createElement(ge,{...V,ref:t,className:oe,style:X,href:_?void 0:C,target:b,onClick:_?void 0:V.onClick,...C&&_?{"aria-disabled":!0}:{}},fe,ie,W&&l.createElement(tJ,{key:"preset",prefixCls:K}),U&&l.createElement(rJ,{key:"status",prefixCls:K}));return de?l.createElement(fd,{component:"Tag"},re):re}),sr=oJ;sr.CheckableTag=bN;sr.CheckableTagGroup=ZZ;const aJ={defaultSeed:Hm.token,defaultAlgorithm:_R},iJ=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:s}=r;return{marginBottom:i,color:n,fontWeight:s,fontSize:e,lineHeight:t}},lJ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
336
+ h${r}&,
337
+ div&-h${r},
338
+ div&-h${r} > textarea,
339
+ h${r}
340
+ `]=iJ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},sJ=e=>{const{componentCls:t}=e;return{"a&, a":{...kR(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},cJ=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:jm[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}}),uJ=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"}}}},dJ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),fJ=()=>({"\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"}}),mJ=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{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"},...lJ(e),[`
341
+ & + h1${t},
342
+ & + h2${t},
343
+ & + h3${t},
344
+ & + h4${t},
345
+ & + h5${t}
346
+ `]:{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}},...cJ(e),...sJ(e),[`
347
+ ${t}-expand,
348
+ ${t}-collapse,
349
+ ${t}-edit,
350
+ ${t}-copy
351
+ `]:{...kR(e),marginInlineStart:e.marginXXS},...uJ(e),...dJ(e),...fJ(),"&-rtl":{direction:"rtl"}}}},pJ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),vN=Pt("Typography",mJ,pJ),gJ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:s,maxLength:c,autoSize:d=!0,value:f,onSave:p,onCancel:g,onEnd:h,component:y,enterIcon:C=l.createElement(BG,null)}=e,b=l.useRef(null),$=l.useRef(!1),S=l.useRef(null),[w,M]=l.useState(f);l.useEffect(()=>{M(f)},[f]),l.useEffect(()=>{if(b.current?.resizableTextArea){const{textArea:G}=b.current.resizableTextArea;G.focus();const{length:L}=G.value;G.setSelectionRange(L,L)}},[]);const x=({target:G})=>{M(G.value.replace(/[\n\r]/g,""))},R=()=>{$.current=!0},O=()=>{$.current=!1},N=({keyCode:G})=>{$.current||(S.current=G)},T=()=>{p(w.trim())},P=({keyCode:G,ctrlKey:L,altKey:H,metaKey:_,shiftKey:B})=>{S.current!==G||$.current||L||H||_||B||(G===nt.ENTER?(T(),h?.()):G===nt.ESC&&g())},D=()=>{T()},[k,W]=vN(t),U=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,k,W);return l.createElement("div",{className:U,style:i},l.createElement(lN,{ref:b,maxLength:c,value:w,onChange:x,onKeyDown:N,onKeyUp:P,onCompositionStart:R,onCompositionEnd:O,onBlur:D,"aria-label":n,rows:1,autoSize:d}),C!==null?nr(C,{className:`${t}-edit-content-confirm`}):null)},hJ=(e,t)=>{let n=!1;const r=i=>{i.stopPropagation(),i.preventDefault(),i.clipboardData?.clearData(),i.clipboardData?.setData("text/plain",e),t&&i.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},yJ=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function bJ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await yJ(e,n)||hJ(e,n))}const vJ=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[i,s]=l.useState(!1),c=l.useRef(null),d=()=>{c.current&&clearTimeout(c.current)},f={};e.format&&(f.format=e.format),l.useEffect(()=>d,[]);const p=ut(async g=>{g?.preventDefault(),g?.stopPropagation(),s(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await bJ(h||LQ(t,!0).join("")||"",f),s(!1),r(!0),d(),c.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(g)}catch(h){throw s(!1),h}});return{copied:n,copyLoading:i,onClick:p}};function tb(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const SJ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},CJ=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??n,...e}:{title:e},[e,t,n]),SN=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:s,children:c,direction:d,style:f,...p}=e,{getPrefixCls:g,direction:h,className:y,style:C}=It("typography"),b=d??h,$=g("typography",n),[S,w]=vN($),M=Q($,y,{[`${$}-rtl`]:b==="rtl"},i,s,S,w),x={...C,...f};return l.createElement(r,{className:M,style:x,ref:t,...p},c)});function z4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function nb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function $J(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 O1=e=>["string","number"].includes(typeof e),xJ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const p=z4(i),g=z4(s),{copied:h,copy:y}=n??{},C=t?h:y,b=nb(p[t?1:0],C),$=typeof b=="string"?b:C;return l.createElement(ur,{title:b},l.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":$,tabIndex:c},t?nb(g[1],l.createElement(cl,null),!0):nb(g[0],f?l.createElement(Mp,null):l.createElement(B3,null),!0)))},um=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),wJ=e=>e.reduce((t,n)=>t+(O1(n)?String(n).length:1),0);function A4(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const s=e[i],d=O1(s)?String(s).length:1,f=n+d;if(f>t){const p=t-n;return r.push(String(s).slice(0,p)),r}r.push(s),n=f}return e}const rb=0,ob=1,ab=2,ib=3,D4=4,dm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function EJ(e){const{enableMeasure:t,width:n,text:r,children:i,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,p=l.useMemo(()=>dr(r),[r]),g=l.useMemo(()=>wJ(p),[r]),h=l.useMemo(()=>i(p,!1),[r]),[y,C]=l.useState(null),b=l.useRef(null),$=l.useRef(null),S=l.useRef(null),w=l.useRef(null),M=l.useRef(null),[x,R]=l.useState(!1),[O,N]=l.useState(rb),[T,P]=l.useState(0),[D,k]=l.useState(null);Nt(()=>{N(t&&n&&g?ob:rb)},[n,r,s,t,p]),Nt(()=>{if(O===ob){N(ab);const L=$.current&&getComputedStyle($.current).whiteSpace;k(L)}else if(O===ab){const L=!!S.current?.isExceed();N(L?ib:D4),C(L?[0,g]:null),R(L);const H=S.current?.getHeight()||0,_=s===1?0:w.current?.getHeight()||0,B=M.current?.getHeight()||0,I=Math.max(H,_+B);P(I+1),f(L)}},[O]);const W=y?Math.ceil((y[0]+y[1])/2):0;Nt(()=>{const[L,H]=y||[0,0];if(L!==H){const B=(b.current?.getHeight()||0)>T;let I=W;H-L===1&&(I=B?L:H),C(B?[L,I]:[I,H])}},[y,W]);const U=l.useMemo(()=>{if(!t)return i(p,!1);if(O!==ib||!y||y[0]!==y[1]){const L=i(p,!1);return[D4,rb].includes(O)?L:l.createElement("span",{style:{...dm,WebkitLineClamp:s}},L)}return i(c?p:A4(p,y[0]),x)},[c,O,y,p].concat(xn(d))),G={width:n,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,U,O===ab&&l.createElement(l.Fragment,null,l.createElement(um,{style:{...G,...dm,WebkitLineClamp:s},ref:S},h),l.createElement(um,{style:{...G,...dm,WebkitLineClamp:s-1},ref:w},h),l.createElement(um,{style:{...G,...dm,WebkitLineClamp:1},ref:M},i([],!0))),O===ib&&y&&y[0]!==y[1]&&l.createElement(um,{style:{...G,top:400},ref:b},i(A4(p,W),!0)),O===ob&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:$}))}const MJ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(ur,{open:t?void 0:!1,...r},n);function RJ({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:s,italic:c},d){let f=d;function p(g,h){h&&(f=l.createElement(g,{},f))}return p("strong",i),p("u",n),p("del",r),p("code",t),p("mark",e),p("kbd",s),p("i",c),f}const OJ="...",j4=["delete","mark","code","underline","strong","keyboard","italic"],Jp=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,type:s,disabled:c,children:d,ellipsis:f,editable:p,copyable:g,component:h,title:y,...C}=e,{getPrefixCls:b,direction:$}=l.useContext(dt),[S]=oo("Text"),w=l.useRef(null),M=l.useRef(null),x=b("typography",n),R=tn(C,j4),[O,N]=tb(p),[T,P]=Yt(!1,N.editing),{triggerType:D=["icon"]}=N,k=ve=>{ve&&N.onStart?.(),P(ve)},W=SJ(T);Nt(()=>{!T&&W&&M.current?.focus()},[T]);const U=ve=>{ve?.preventDefault(),k(!0)},G=ve=>{N.onChange?.(ve),k(!1)},L=()=>{N.onCancel?.(),k(!1)},[H,_]=tb(g),{copied:B,copyLoading:I,onClick:z}=vJ({copyConfig:_,children:d}),[V,A]=l.useState(!1),[j,q]=l.useState(!1),[X,K]=l.useState(!1),[J,Z]=l.useState(!1),[oe,ne]=l.useState(!0),[ie,de]=tb(f,{expandable:!1,symbol:ve=>ve?S?.collapse:S?.expand}),[le,fe]=Yt(de.defaultExpanded||!1,de.expanded),ge=ie&&(!le||de.expandable==="collapsible"),{rows:re=1}=de,ce=l.useMemo(()=>ge&&(de.suffix!==void 0||de.onEllipsis||de.expandable||O||H),[ge,de,O,H]);Nt(()=>{ie&&!ce&&(A(qE("webkitLineClamp")),q(qE("textOverflow")))},[ce,ie]);const[he,pe]=l.useState(ge),Se=l.useMemo(()=>ce?!1:re===1?j:V,[ce,j,V]);Nt(()=>{pe(Se&&ge)},[Se,ge]);const Ie=ge&&(he?J:X),Me=ge&&re===1&&he,we=ge&&re>1&&he,se=(ve,Ae)=>{fe(Ae.expanded),de.onExpand?.(ve,Ae)},[be,Ee]=l.useState(0),Ne=({offsetWidth:ve})=>{Ee(ve)},Fe=ve=>{K(ve),X!==ve&&de.onEllipsis?.(ve)};l.useEffect(()=>{const ve=w.current;if(ie&&he&&ve){const Ae=$J(ve);J!==Ae&&Z(Ae)}},[ie,he,d,we,oe,be]),l.useEffect(()=>{const ve=w.current;if(typeof IntersectionObserver>"u"||!ve||!he||!ge)return;const Ae=new IntersectionObserver(()=>{ne(!!ve.offsetParent)});return Ae.observe(ve),()=>{Ae.disconnect()}},[he,ge]);const Ge=CJ(de.tooltip,N.text,d),et=l.useMemo(()=>{if(!(!ie||he))return[N.text,d,y,Ge.title].find(O1)},[ie,he,y,Ge.title,Ie]);if(T)return l.createElement(gJ,{value:N.text??(typeof d=="string"?d:""),onSave:G,onCancel:L,onEnd:N.onEnd,prefixCls:x,className:r,style:i,direction:$,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const Oe=()=>{const{expandable:ve,symbol:Ae}=de;return ve?l.createElement("button",{type:"button",key:"expand",className:`${x}-${le?"collapse":"expand"}`,onClick:Ze=>se(Ze,{expanded:!le}),"aria-label":le?S.collapse:S?.expand},typeof Ae=="function"?Ae(le):Ae):null},_e=()=>{if(!O)return;const{icon:ve,tooltip:Ae,tabIndex:Ze}=N,Be=dr(Ae)[0]||S?.edit,Ue=typeof Be=="string"?Be:"";return D.includes("icon")?l.createElement(ur,{key:"edit",title:Ae===!1?"":Be},l.createElement("button",{type:"button",ref:M,className:`${x}-edit`,onClick:U,"aria-label":Ue,tabIndex:Ze},ve||l.createElement(ui,{role:"button"}))):null},Ve=()=>H?l.createElement(xJ,{key:"copy",..._,prefixCls:x,copied:B,locale:S,onCopy:z,loading:I,iconOnly:!Mr(d)}):null,Qe=ve=>[ve&&Oe(),_e(),Ve()],De=ve=>[ve&&!le&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},OJ),de.suffix,Qe(ve)];return l.createElement(Vr,{onResize:Ne,disabled:!ge},ve=>l.createElement(MJ,{tooltipProps:Ge,enableEllipsis:ge,isEllipsis:Ie},l.createElement(SN,{className:Q({[`${x}-${s}`]:s,[`${x}-disabled`]:c,[`${x}-ellipsis`]:ie,[`${x}-ellipsis-single-line`]:Me,[`${x}-ellipsis-multiple-line`]:we},r),prefixCls:n,style:{...i,WebkitLineClamp:we?re:void 0},component:h,ref:or(ve,w,t),direction:$,onClick:D.includes("text")?U:void 0,"aria-label":et?.toString(),title:y,...R},l.createElement(EJ,{enableMeasure:ge&&!he,text:d,rows:re,width:be,onEllipsis:Fe,expanded:le,miscDeps:[B,le,I,O,H,S].concat(xn(j4.map(Ae=>e[Ae])))},(Ae,Ze)=>RJ(e,l.createElement(l.Fragment,null,Ae.length>0&&Ze&&!le&&et?l.createElement("span",{key:"show-content","aria-hidden":!0},Ae):Ae,De(Ze)))))))}),TJ=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:s,...c}=e,d={...c,rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r};return l.createElement(Jp,{...d,ref:t,ellipsis:!!n,component:"a"},i)}),NJ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(Jp,{ref:t,...r,component:"div"},n)}),IJ=(e,t)=>{const{ellipsis:n,children:r,...i}=e,s=l.useMemo(()=>n&&typeof n=="object"?tn(n,["expandable","rows"]):n,[n]);return l.createElement(Jp,{ref:t,...i,ellipsis:s,component:"span"},r)},PJ=l.forwardRef(IJ),zJ=[1,2,3,4,5],AJ=l.forwardRef((e,t)=>{const{level:n=1,children:r,...i}=e,s=zJ.includes(n)?`h${n}`:"h1";return l.createElement(Jp,{ref:t,...i,component:s},r)}),Ir=SN;Ir.Text=PJ;Ir.Link=TJ;Ir.Title=AJ;Ir.Paragraph=NJ;var zm={exports:{}},DJ=zm.exports,_4;function jJ(){return _4||(_4=1,(function(e,t){(function(n,r){e.exports=r(b6())})(DJ,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=r(n),s={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c){return c+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(c){return c<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(s,null,!0),s}))})(zm)),zm.exports}jJ();const CN=l.createContext(null),ml=()=>{const e=l.useContext(CN);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},_J="/api";class $N extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function qo(e,t){const n=await fetch(`${_J}${e}`,{...t,headers:{"Content-Type":"application/json",...t?.headers}});if(!n.ok){const r=await n.json().catch(()=>({message:"API Error"}));throw new $N(n.status,r.message||`HTTP ${n.status}`,r.code)}return n.json()}const ss={async get(e){try{return await qo(`/reports/${e}`)}catch(t){if(t instanceof $N&&t.status===404)return null;throw t}},async save(e,t){return qo(`/reports/${e}`,{method:"PUT",body:JSON.stringify(t)})},async delete(e){try{return await qo(`/reports/${e}`,{method:"DELETE"}),!0}catch{return!1}}},H4={async get(e,t){return qo(`/calendar?year=${e}&month=${t}`)},async getAvailableMonths(){return(await qo("/calendar/months")).yearMonths}},hp={async get(){return qo("/config")},async update(e){return qo("/config",{method:"PUT",body:JSON.stringify(e)})},async getRoutinesMarkdown(){return qo("/config/routines/markdown")},async saveRoutinesMarkdown(e){return qo("/config/routines/markdown",{method:"PUT",body:JSON.stringify({content:e})})}},HJ={async getStatus(){return qo("/git/status")}},{TextArea:BJ}=Nr,{Header:LJ}=Ra,{Text:wr}=Ir,B4="dashboard_save_step",VJ=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:i,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:p}=ml(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[C,b]=l.useState(()=>{const z=localStorage.getItem(B4);return z?parseInt(z,10):0}),[$,S]=l.useState(!1),[w,M]=l.useState(new Set),[x,R]=l.useState(null),[O,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(B4,String(C))},[C]),l.useEffect(()=>{!g&&C>2&&b(2)},[g,C]);const T=l.useMemo(()=>{const z=new Set(p.unsavedDates),V=e.format("YYYY-MM-DD");return c.isDirty&&z.add(V),Array.from(z).sort((A,j)=>j.localeCompare(A))},[p.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(M(new Set(T)),N(!0),HJ.getStatus().then(z=>R(z)).catch(z=>console.error("Git状態の取得に失敗:",z)).finally(()=>N(!1)))},[h,T]);const P=l.useMemo(()=>!!(w.size>0||C>=1&&x?.uncommitted&&x.uncommitted.count>0||C>=2&&x?.unpushed&&x.unpushed.count>0),[w.size,C,x]),D=l.useCallback(()=>{t(gn())},[t]),k=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),W=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),U=l.useCallback(()=>{y(!0)},[]),G=l.useCallback(async()=>{if(!P){$n.warning("実行対象がありません");return}S(!0);try{const z=C>=1,V=C>=2,A=C>=3,j={git:z?{commit:!0,push:V}:void 0,slack:A?{post:!0}:void 0},q=Array.from(w);q.length>0?await d(q,j):(z||V)&&await d([e.format("YYYY-MM-DD")],j),y(!1)}catch{$n.error("操作に失敗しました")}finally{S(!1)}},[C,w,d,P,e]),L=l.useCallback((z,V)=>{M(A=>{const j=new Set(A);return V?j.add(z):j.delete(z),j})},[]),H=l.useCallback(z=>{M(z?new Set(T):new Set)},[T]),_=l.useCallback(z=>{const V=e.format("YYYY-MM-DD");return z===V?c.markdownContent||"(日報データがありません)":p.getUnsavedReport(z)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,p]),B=l.useMemo(()=>{const z=T.length;return Y.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[Y.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),Y.jsxs("div",{children:["未保存: ",z,"件"]})]})},[T.length]),I=T.length>0;return Y.jsxs(LJ,{style:{background:"#fff",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #f0f0f0",position:"sticky",top:0,zIndex:100,height:64},children:[Y.jsxs(dn,{size:"large",children:[Y.jsxs("div",{className:"dashboard-title",style:{display:"flex",alignItems:"center",gap:12},children:[Y.jsx(_3,{style:{fontSize:24,color:"#1890ff"}}),Y.jsx(wr,{className:"dashboard-title-text",strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:k,children:"◀"}),Y.jsx(fl,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),Y.jsx(_t,{size:"small",onClick:W,children:"▶"}),Y.jsx(_t,{type:"primary",size:"small",onClick:D,children:"今日"}),r.length>0&&Y.jsxs(dn,{size:4,style:{marginLeft:8},children:[r.map(z=>Y.jsx(sr,{color:z.color,closable:!0,onClose:()=>i?.(z.code),closeIcon:Y.jsx(qr,{style:{fontSize:10}}),children:z.code},z.code)),r.length>1&&Y.jsx(sr,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),Y.jsxs(dn,{size:"middle",align:"center",children:[Y.jsx(_t,{icon:Y.jsx(sX,{}),onClick:n,children:"取り込み"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(xG,{}),onClick:U,loading:c.saving,children:"保存"}),Y.jsx(ur,{title:B,children:Y.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[Y.jsx(nX,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&Y.jsx("span",{style:{position:"absolute",top:2,right:-6,minWidth:14,height:14,borderRadius:7,backgroundColor:"#ff4d4f",color:"#fff",fontSize:10,fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center"},children:"!"})]})})]}),Y.jsxs(ao,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:G,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:$,disabled:!P},width:900,children:[Y.jsxs("div",{style:{marginBottom:24},children:[Y.jsx(wr,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),Y.jsx(XZ,{current:C,onChange:z=>b(z),items:[{title:"ローカル保存",description:"ファイルに保存",icon:Y.jsx(QG,{})},{title:"Commit",description:"Gitにコミット",icon:Y.jsx(b1,{})},{title:"Push",description:"リモートに反映",icon:Y.jsx(u4,{})},...g?[{title:"Slack",description:"日報を投稿",icon:Y.jsx(AX,{})}]:[]],style:{marginTop:16}})]}),Y.jsxs("div",{style:{marginTop:16},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14},children:["保存対象 (",w.size,"/",T.length,"件)"]}),Y.jsx(Os,{checked:w.size===T.length&&T.length>0,indeterminate:w.size>0&&w.size<T.length,onChange:z=>H(z.target.checked),children:"全選択"})]}),Y.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[T.map((z,V)=>Y.jsxs("div",{style:{padding:12,borderBottom:V<T.length-1?"1px solid #f0f0f0":"none",background:w.has(z)?"#f6ffed":"#fff"},children:[Y.jsxs(Os,{checked:w.has(z),onChange:A=>L(z,A.target.checked),style:{marginBottom:8},children:[Y.jsx(wr,{strong:!0,children:z}),z===e.format("YYYY-MM-DD")&&Y.jsx(sr,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),w.has(z)&&Y.jsx(BJ,{value:_(z),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},z)),T.length===0&&Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),C>=1&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ni,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(FG,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),O?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(pp,{size:"small"})}):x?.uncommitted&&x.uncommitted.count>0?Y.jsx(IE,{size:"small",items:[{key:"uncommitted",label:Y.jsxs(wr,{type:"secondary",children:[x.uncommitted.count,"件の未コミットファイル"]}),children:Y.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:x.uncommitted.files.map((z,V)=>Y.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[Y.jsx(up,{style:{color:"#1890ff"}}),Y.jsx(wr,{code:!0,style:{fontSize:11},children:z.path}),Y.jsx(sr,{color:z.status==="D"?"red":z.status==="A"||z.status==="?"?"green":"blue",style:{fontSize:10},children:z.status==="D"?"削除":z.status==="A"?"追加":z.status==="?"?"新規":"変更"})]},V))})}],defaultActiveKey:["uncommitted"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),C>=2&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ni,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(u4,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),O?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(pp,{size:"small"})}):x?.unpushed&&x.unpushed.count>0?Y.jsx(IE,{size:"small",items:[{key:"unpushed",label:Y.jsxs(wr,{type:"secondary",children:[x.unpushed.count,"件の未プッシュコミット"]}),children:Y.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:x.unpushed.commits.map((z,V)=>Y.jsxs("div",{style:{padding:"8px 0",borderBottom:V<x.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[Y.jsx(sr,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:z.hash}),Y.jsx(wr,{style:{fontSize:12},children:z.message})]}),z.files.length>0&&Y.jsxs("div",{style:{paddingLeft:16},children:[z.files.slice(0,5).map((A,j)=>Y.jsxs("div",{style:{fontSize:11,color:"#666"},children:[Y.jsx(up,{style:{marginRight:4}}),A]},j)),z.files.length>5&&Y.jsxs(wr,{type:"secondary",style:{fontSize:11},children:["... 他 ",z.files.length-5," ファイル"]})]})]},V))})}],defaultActiveKey:["unpushed"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:lb}=Ir,FJ=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:i}=ml(),[s,c]=l.useState(e),d=gn(),f=l.useMemo(()=>{const x={};for(const R of n.days)R.hasReport&&(x[R.date]={actual:R.resultHours||0,plan:R.planHours||0});return x},[n.days]),p=l.useMemo(()=>{const x=new Map;for(const O of n.availableYearMonths){const N=`${O.year}-${O.month-1}`;x.has(N)||x.set(N,{year:O.year,month:O.month-1})}const R=`${d.year()}-${d.month()}`;x.has(R)||x.set(R,{year:d.year(),month:d.month()});for(let O=-2;O<=2;O++){const N=d.add(O,"month"),T=`${N.year()}-${N.month()}`;x.has(T)||x.set(T,{year:N.year(),month:N.month()})}return Array.from(x.values()).sort((O,N)=>O.year-N.year||O.month-N.month).map(O=>({...O,label:`${O.year}年${O.month+1}月`}))},[n.availableYearMonths,d]),g=p.map(x=>({value:`${x.year}-${x.month}`,label:x.label})),h=x=>{const[R,O]=x.split("-").map(Number),N=s.year(R).month(O);c(N),n.loadCalendar(R,O+1)},y=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x>0){const R=p[x-1],O=s.year(R.year).month(R.month);c(O),n.loadCalendar(R.year,R.month+1)}},C=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x<p.length-1){const R=p[x+1],O=s.year(R.year).month(R.month);c(O),n.loadCalendar(R.year,R.month+1)}};l.useEffect(()=>{(e.month()!==s.month()||e.year()!==s.year())&&c(e)},[e]);const b=p.findIndex(x=>x.year===s.year()&&x.month===s.month()),$=b>0,S=b<p.length-1,w=x=>x>=9?"#ff4d4f":x>=8?"#52c41a":x>=6?"#1890ff":"#d9d9d9",M=x=>{const R=x.format("YYYY-MM-DD"),O=x.isBefore(d,"day"),N=x.isAfter(d,"day"),T=x.isSame(d,"day"),P=x.isSame(e,"day"),D=x.month()===s.month(),k=f[R],W=k?Math.min(k.actual/8*100,100):0,U=r.hasUnsavedChangesForDate(R)||P&&i.isDirty;return Y.jsx(ur,{title:k?`稼働: ${k.actual}h${U?" (未保存)":""}`:U?"未保存":void 0,children:Y.jsxs("div",{onClick:()=>t(R),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:D?1:.3},children:[(O||T)&&k&&Y.jsx(wZ,{type:"circle",percent:W,size:30,strokeColor:w(k.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),U&&Y.jsx(zs,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),Y.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:T||P?600:400,color:T||P?"#1890ff":"#000",background:P?"#e6f7ff":T?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:x.date()})]})})};return Y.jsxs(wa,{title:Y.jsx("div",{style:{display:"flex",justifyContent:"center"},children:Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:y,disabled:!$,children:"◀"}),Y.jsx(Lr,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),Y.jsx(_t,{size:"small",onClick:C,disabled:!S,children:"▶"})]})}),styles:{body:{padding:8}},children:[Y.jsx("style",{children:`
352
+ .compact-calendar .ant-picker-content th,
353
+ .compact-calendar .ant-picker-content td {
354
+ padding: 2px 0 !important;
355
+ }
356
+ .compact-calendar .ant-picker-cell {
357
+ padding: 0 !important;
358
+ }
359
+ .compact-calendar .ant-picker-cell-inner {
360
+ min-width: 32px !important;
361
+ height: 32px !important;
362
+ line-height: 32px !important;
363
+ }
364
+ `}),Y.jsx(O3,{fullscreen:!1,value:s,className:"compact-calendar",onSelect:x=>{c(x),t(x.format("YYYY-MM-DD"))},fullCellRender:M,style:{border:"none"},headerRender:()=>null}),n.summary&&Y.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Y.jsxs("span",{children:["稼働日数: ",n.summary.workDays,"日"]}),Y.jsxs("span",{children:["合計: ",n.summary.totalResultHours.toFixed(1),"h"]})]})}),Y.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function nd(e){const[t,n]=e.split(":").map(Number);return t*60+n}function _i(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:sb}=Ir,kJ=({item:e,type:t,isHovered:n,isDragging:r,isDraggingToResultArea:i,dragOffset:s,getProjectColor:c,projects:d,onHover:f,onDragStart:p,onMenuAction:g})=>{const h=t==="result",y=e.topPx,C=e.heightPx,b=r&&!i?y+s:y,S={items:[{key:"project",label:"プロジェクト変更",children:d.filter(w=>w.active).map(w=>({key:`project:${e.id}:${t}:${w.code}`,label:Y.jsxs(dn,{children:[Y.jsx(ci,{color:w.color}),w.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:Y.jsx(y1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:Y.jsx(cp,{}),danger:!0}],onClick:({key:w})=>g(w),onSelect:({key:w})=>g(w),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return Y.jsxs("div",{onMouseEnter:()=>!r&&f(`${t}-${e.id}`),onMouseLeave:()=>!r&&f(null),onMouseDown:w=>p(w,e.id,t,e.startMinutes),style:{position:"absolute",top:Math.max(0,b),height:Math.max(C,20),left:4,right:4,background:h?`${c(e.project)}90`:`${c(e.project)}40`,borderLeft:`3px solid ${c(e.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",cursor:r?"grabbing":"grab",transition:r?"none":"all 0.2s",fontSize:11,opacity:i?.4:r?.8:1,zIndex:r?10:1,boxShadow:r&&!i?"0 4px 12px rgba(0,0,0,0.15)":"none"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(sb,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),Y.jsx(sb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),Y.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:Y.jsx(S1,{menu:S,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:Y.jsx(L3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:w=>w.stopPropagation(),onClick:w=>w.stopPropagation()})})})]}),e.description&&Y.jsx(sb,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:cb}=Ir;function L4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const WJ=({dragState:e,dragOffset:t,isDraggingToResult:n,planItems:r,getProjectColor:i,startHour:s=8,hourHeight:c=60})=>{if(!n||!e||e.type!=="plan")return null;const d=t/c*60,f=Math.round((e.startMinutes+d)/15)*15,p=L4(f),g=(f-s*60)/60*c;if(e.isBreak){const C=e.breakDuration||60,b=C/60*c,$=f+C,S=L4($);return Y.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(b,20),left:4,right:4,background:"repeating-linear-gradient(45deg, rgba(200,200,200,0.3), rgba(200,200,200,0.3) 4px, rgba(180,180,180,0.3) 4px, rgba(180,180,180,0.3) 8px)",borderRadius:4,border:"2px dashed #52c41a",display:"flex",alignItems:"center",justifyContent:"center",opacity:.9,zIndex:5,pointerEvents:"none"},children:Y.jsxs(cb,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",p,"〜",S]})})}const h=r.find(C=>C.id===e.itemId);if(!h)return null;const y=c;return Y.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(y,20),left:4,right:4,background:`${i(h.project)}30`,borderLeft:`3px dashed ${i(h.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",fontSize:11,opacity:.8,zIndex:5,pointerEvents:"none"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(cb,{style:{fontSize:10,color:"#666",flexShrink:0},children:p}),Y.jsx(cb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function V4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function fm(e,t,n,r,i,s=15){const c=t/n*60;let d=Math.round(e+c);d=Math.round(d/s)*s;const f=0,p=(i+r)*60;d=Math.max(f,Math.min(p-60,d));const g=Math.floor(d/60),h=d%60;return`${String(g).padStart(2,"0")}:${String(h).padStart(2,"0")}`}function qJ({resultAreaRef:e,currentReport:t,updatePlan:n,updateResult:r,startHour:i=8,totalHours:s=12,hourHeight:c=60,snapMinutes:d=15}){const[f,p]=l.useState(null),[g,h]=l.useState(0),[y,C]=l.useState(!1),b=l.useCallback((w,M,x,R,O,N)=>{w.preventDefault(),w.stopPropagation(),p({itemId:M,type:x,startY:w.clientY,startMinutes:R,isBreak:O,breakDuration:N}),h(0)},[]),$=l.useCallback(w=>{if(!f)return;const M=w.clientY-f.startY,x=c/4,R=Math.round(M/x)*x;if(h(R),f.type==="plan"&&e.current){const O=e.current.getBoundingClientRect(),N=w.clientX>=O.left&&w.clientX<=O.right;C(N)}},[f,e,c]),S=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const w=g!==0?fm(f.startMinutes,g,c,s,i,d):V4(f.startMinutes),M={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:w,project:"---",task:"休憩"},x=f.startMinutes+(f.breakDuration||60),R=g!==0?fm(x,g,c,s,i,d):V4(x),O=[...t.result,M];O.sort((N,T)=>N.time.localeCompare(T.time)),r(O),$n.success(`休憩(${w}〜${R})を実績にコピーしました`)}else{const w=t.plan.find(M=>M.id===f.itemId);if(w){const M=g!==0?fm(f.startMinutes,g,c,s,i,d):w.time,x={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:M,project:w.project,task:w.task},R=[...t.result,x];R.sort((O,N)=>O.time.localeCompare(N.time)),r(R),$n.success(`「${w.task}」を実績にコピーしました`)}}else if(g!==0){const w=fm(f.startMinutes,g,c,s,i,d),x=(f.type==="plan"?[...t.plan]:[...t.result]).map(R=>R.id===f.itemId?{...R,time:w}:R);x.sort((R,O)=>R.time.localeCompare(O.time)),f.type==="plan"?n(x):r(x),$n.success(`予定を ${w} に移動しました`)}p(null),h(0),C(!1)}},[f,g,y,t,n,r,i,s,c,d]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",S),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect=""}},[f,$,S]),{dragState:f,dragOffset:g,isDraggingToResult:y,handleDragStart:b}}function YJ(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function hS(e){const t=[];for(const n of e)if(!n.task)t.push(`* ${n.time}`);else if(t.push(`* ${n.time} [${n.project}] ${n.task}`),n.description){const r=n.description.split(`
365
+ `);for(const i of r)t.push(` ${i}`)}return t}function F4(e,t){return[`## ${t}`,...hS(e)].join(`
366
+ `)}function k4(e){const t=e.split(`
367
+ `),n=[];let r=null,i=[];const s=()=>{r&&(i.length>0&&(r.description=i.join(`
368
+ `)),n.push(r),r=null,i=[])};for(let c=0;c<t.length;c++){const d=t[c];if(d.startsWith(" ")&&r){i.push(d.substring(2));continue}const f=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s+\[(\w+)\]\s+(.+)$/);if(f){s(),r={id:`s${Date.now()}-${c}`,time:f[1].padStart(5,"0"),project:f[2],task:f[3].trim()};continue}const p=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s*$/);p&&(s(),n.push({id:`break${Date.now()}-${c}`,time:p[1].padStart(5,"0"),project:"",task:""}))}return s(),n}function W4(e,t=8,n=12,r=60){if(e.length===0)return[];const i=[...e].sort((f,p)=>f.time.localeCompare(p.time)),s=t*60,c=n*60,d=[];for(let f=0;f<i.length;f++){const p=i[f];if(!p.task)continue;const h=nd(p.time);let y=60;for(let b=f+1;b<i.length;b++){const $=i[b],S=nd($.time);if(S>h){y=S-h;break}}const C=h+y;d.push({id:p.id,time:p.time,project:p.project,task:p.task,description:p.description,duration:y,isBreak:!1,startMinutes:h,endMinutes:C,top:(h-s)/c*100,height:y/c*100,topPx:(h-s)/60*r,heightPx:y/60*r})}return d}function q4(e,t=8,n=12,r=60){if(e.length===0)return[];const i=[...e].sort((f,p)=>f.time.localeCompare(p.time)),s=[],c=t*60,d=n*60;for(let f=0;f<i.length;f++){const p=i[f];if(!p.task){let g=!1,h=0;for(let b=f+1;b<i.length;b++)if(i[b].task){h=nd(i[b].time),g=!0;break}if(!g)continue;const y=nd(p.time),C=h-y;s.push({id:p.id,startTime:p.time,endTime:YJ(h),startMinutes:y,endMinutes:h,duration:C,top:(y-c)/d*100,height:C/d*100,topPx:(y-c)/60*r,heightPx:C/60*r})}}return s}function UJ(e,t={}){const{maxHours:n=36,defaultStartHour:r=8,defaultEndHour:i=20}=t;if(e.length===0)return{startHour:r,endHour:i,totalHours:i-r};let s=r*60,c=i*60;for(const g of e){const h=nd(g.time);s=Math.min(s,h),c=Math.max(c,h)}c+=60;let d=Math.floor(s/60)-2;d<0&&(d=0);let f=Math.ceil(c/60)+2;const p=d+n;return f>p&&(f=p),{startHour:d,endHour:f,totalHours:f-d}}function GJ(e){switch(e){case"completed":return"x";case"in_progress":return"*";case"on_hold":return"-";default:return" "}}function XJ(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";default:return"pending"}}function xN(e){const t=[];for(const n of e){const r=GJ(n.status),i=n.priority==="high"?"!!!":n.priority==="medium"?"!!":n.priority==="low"?"!":"",s=n.deadline?` @${n.deadline}`:"";if(t.push(`- [${r}] [${n.project}] ${i}${n.task}${s}`),n.description){const c=n.description.split(`
369
+ `);for(const d of c)t.push(` ${d}`)}}return t}function Y4(e,t){const n=["## [TODO]",""];return n.push(...xN(e)),n.push(""),n.push("## [NOTE]"),n.push(t),n.join(`
370
+ `)}function KJ(e){const t=e.split(`
371
+ `),n=[];let r="P99",i=!1;const s=[];let c=null;const d=[],f=()=>{c&&(d.length>0&&(c.description=d.join(`
372
+ `)),n.push(c),c=null,d.length=0)};for(let p=0;p<t.length;p++){const g=t[p];if(g.match(/^##\s+\[NOTE\]/i)){f(),i=!0;continue}if(i){s.push(g);continue}const h=g.match(/^###\s+(\S+)/);if(h){f(),r=h[1];continue}if(c&&g.match(/^ {2}/)){d.push(g.substring(2));continue}const y=g.match(/^-\s+\[([xX\s*-])\]\s+(.+)$/);if(y){f();const C=y[1];let b=y[2],$=r;const S=b.match(/^\[([^\]]+)\]\s*/);S&&($=S[1],b=b.substring(S[0].length));let w;const M=b.match(/^(!!!|!!|!)/);if(M){const O=M[1];w=O==="!!!"?"high":O==="!!"?"medium":"low",b=b.substring(M[0].length)}let x;const R=b.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(R)x=R[1],b=b.substring(0,b.length-R[0].length);else{const O=b.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);O&&(x=O[1],b=b.substring(O[0].length))}x&&x.length===5&&(x=`${new Date().getFullYear()}-${x}`),c={id:`t${Date.now()}-${p}`,project:$,task:b.trim(),status:XJ(C),deadline:x,priority:w}}}return f(),{todos:n,notes:s.join(`
373
+ `).trim()}}function wN(e){if(!e)return!1;const t=new Date;t.setHours(0,0,0,0);const n=new Date(e);return n.setHours(0,0,0,0),n<t}function QJ(e){if(!e)return!1;const t=new Date;t.setHours(0,0,0,0);const n=new Date(e);n.setHours(0,0,0,0);const r=Math.ceil((n.getTime()-t.getTime())/(1e3*60*60*24));return r>=0&&r<=2}function ZJ(e,t,n="名前"){const r=s=>s.map(c=>`* ${c.time} [${c.project}] ${c.task}`).join(`
374
+ `),i=s=>s.map(c=>{const d=c.status==="completed"?"x":c.status==="in_progress"?"*":c.status==="on_hold"?"-":" ",f=c.deadline?`@${c.deadline} `:"",p=c.priority==="high"?"!!! ":c.priority==="medium"?"!! ":c.priority==="low"?"! ":"";return`- [${d}] ${f}${p}[${c.project}] ${c.task}`}).join(`
375
+ `);return`# [日報] ${n} ${t}
376
+
377
+ ## [PLAN]
378
+ ${r(e.plan)}
379
+
380
+ ## [RESULT]
381
+ ${r(e.result)}
382
+
383
+ ## [TODO]
384
+ ${i(e.todos)}
385
+
386
+ ## [NOTE]
387
+ ${e.notes||""}
388
+ `}const{Text:Vn}=Ir,{TextArea:U4}=Nr,JJ=({selectedDate:e,selectedProjects:t=[]})=>{const{report:n,config:r}=ml(),[i,s]=l.useState(!1),[c,d]=l.useState(!1),[f,p]=l.useState(null),g=l.useRef(null),h=l.useRef(null),y=n.report,C=r.projects,b=l.useMemo(()=>y?.plan||[],[y?.plan]),$=l.useMemo(()=>y?.result||[],[y?.result]),S=r.config?.timeline||{hourHeight:60,maxHours:36,defaultStartHour:8,defaultEndHour:20,snapMinutes:15},w=S.hourHeight,M=S.maxHours,x=S.defaultStartHour,R=S.defaultEndHour,O=S.snapMinutes,N=l.useMemo(()=>{const se=[...b,...$];return UJ(se,{maxHours:M,defaultStartHour:x,defaultEndHour:R})},[b,$,M,x,R]),{startHour:T,endHour:P,totalHours:D}=N,k=D*w,[W,U]=l.useState(""),[G,L]=l.useState(""),{dragState:H,dragOffset:_,isDraggingToResult:B,handleDragStart:I}=qJ({resultAreaRef:h,currentReport:y,updatePlan:n.updatePlan,updateResult:n.updateResult,startHour:T,totalHours:D,hourHeight:w,snapMinutes:O}),z=se=>r.getProjectColor(se),V=gn(),A=e.isSame(V,"day"),j=V.hour()*60+V.minute(),q=Array.from({length:D+1},(se,be)=>T+be),X=l.useMemo(()=>W4(b,T,D,w),[b,T,D,w]),K=l.useMemo(()=>W4($,T,D,w),[$,T,D,w]),J=l.useMemo(()=>q4(b,T,D,w),[b,T,D,w]),Z=l.useMemo(()=>q4($,T,D,w),[$,T,D,w]),oe=l.useMemo(()=>t.length>0?X.filter(se=>t.includes(se.project)):X,[X,t]),ne=l.useMemo(()=>t.length>0?K.filter(se=>t.includes(se.project)):K,[K,t]),ie=J,de=Z,le=l.useRef(null);l.useEffect(()=>{const se=e.format("YYYY-MM-DD");if(le.current===se)return;const be=[...b,...$];if(be.length===0)return;const Ee=be.reduce((Ge,et)=>{const[Oe,_e]=et.time.split(":").map(Number),Ve=Oe*60+_e;return Ve<Ge?Ve:Ge},1/0),Ne=Math.max(Ee-30,T*60),Fe=(Ne-T*60)/60*w;requestAnimationFrame(()=>{g.current&&!i&&(g.current.scrollTop=Fe,le.current=se,console.log(`[Timeline] Scrolled to ${Ne}min (${Math.floor(Ne/60)}:${String(Ne%60).padStart(2,"0")}), scrollTop=${Fe}px, firstItem=${Ee}min, startHour=${T}`))})},[e,i,T,w,b,$]);const fe=(se,be)=>{n.deleteScheduleItem(be,se),$n.success(`${be==="plan"?"計画":"実績"}を削除しました`)},ge=l.useCallback((se,be,Ee)=>{n.updateScheduleItem(Ee,se,{project:be}),$n.success(`プロジェクトを ${be} に変更しました`)},[n]),re=se=>{n.addScheduleItem("result",{time:se.time,project:se.project,task:se.task,duration:se.duration}),$n.success(`「${se.task}」を実績にコピーしました`)},ce=l.useCallback(se=>{if(se.startsWith("project:")){const be=se.split(":"),Ee=be[1],Ne=be[2],Fe=be[3];ge(Ee,Fe,Ne)}else if(se.startsWith("toResult:")){const[,be]=se.split(":"),Ee=y?.plan.find(Ne=>Ne.id===be);Ee&&re(Ee)}else if(se.startsWith("delete:")){const[,be,Ee]=se.split(":");fe(be,Ee)}},[y,ge]),he=l.useMemo(()=>oe.reduce((se,be)=>se+be.duration,0),[oe]),pe=l.useMemo(()=>ne.reduce((se,be)=>se+be.duration,0),[ne]),Se=l.useMemo(()=>{const se=new Map;for(const Ne of X)Ne.project&&!Ne.isBreak&&se.set(Ne.project,(se.get(Ne.project)||0)+Ne.duration);const be=new Map;for(const Ne of K)Ne.project&&!Ne.isBreak&&be.set(Ne.project,(be.get(Ne.project)||0)+Ne.duration);const Ee=new Set([...se.keys(),...be.keys()]);return Array.from(Ee).map(Ne=>{const Fe=C.find(Ge=>Ge.code===Ne);return{project:Ne,projectName:Fe?.name||Ne,color:Fe?.color||"#999",planMinutes:se.get(Ne)||0,resultMinutes:be.get(Ne)||0}}).sort((Ne,Fe)=>Fe.resultMinutes-Ne.resultMinutes||Fe.planMinutes-Ne.planMinutes)},[X,K,C]),Ie=()=>{!i&&y&&(U(F4(y.plan,"[PLAN]")),L(F4(y.result,"[RESULT]"))),s(!i)},Me=()=>{const se=k4(W),be=k4(G);n.updatePlan(se),n.updateResult(be),$n.success("反映しました"),s(!1)},we=(se,be)=>{const Ee=be?"result":"plan",Ne=f===`${Ee}-${se.id}`,Fe=H?.itemId===se.id&&H?.type===Ee,Ge=Fe&&B;return Y.jsx(kJ,{item:se,type:Ee,isHovered:Ne,isDragging:Fe,isDraggingToResultArea:Ge,dragOffset:_,getProjectColor:z,projects:C,onHover:p,onDragStart:I,onMenuAction:ce},se.id)};return Y.jsxs(wa,{title:Y.jsxs(dn,{children:[Y.jsx(wd,{}),Y.jsx("span",{children:"タイムライン"}),Y.jsx(sr,{children:e.format("MM/DD (ddd)")})]}),extra:Y.jsx(dn,{children:i?Y.jsxs(Y.Fragment,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:()=>s(!1),children:"キャンセル"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(cl,{}),onClick:Me,children:"OK"})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(c4,{}),onClick:()=>d(!0),children:"集計"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(ui,{}),onClick:Ie,children:"編集"})]})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:[i?Y.jsxs("div",{style:{display:"flex",flex:1,gap:12,overflow:"hidden"},children:[Y.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[Y.jsx(Vn,{strong:!0,style:{marginBottom:4,color:"#1890ff"},children:"計画"}),Y.jsx(U4,{value:W,onChange:se=>U(se.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}),Y.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[Y.jsx(Vn,{strong:!0,style:{marginBottom:4,color:"#52c41a"},children:"実績"}),Y.jsx(U4,{value:G,onChange:se=>L(se.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]})]}):Y.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[Y.jsxs("div",{style:{display:"flex",flexShrink:0,paddingBottom:4,borderBottom:"1px solid #f0f0f0"},children:[Y.jsx("div",{style:{width:40,flexShrink:0}}),Y.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80},children:[Y.jsx(V3,{style:{fontSize:12,color:"#1890ff"}}),Y.jsx(Vn,{style:{fontSize:11,color:"#1890ff"},children:"計画"}),Y.jsx(Vn,{strong:!0,style:{fontSize:12,color:"#1890ff"},children:_i(he)})]}),Y.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80,marginLeft:8},children:[Y.jsx(y1,{style:{fontSize:12,color:"#52c41a"}}),Y.jsx(Vn,{style:{fontSize:11,color:"#52c41a"},children:B?"ここにドロップでコピー":"実績"}),Y.jsx(Vn,{strong:!0,style:{fontSize:12,color:"#52c41a"},children:_i(pe)})]})]}),Y.jsxs("div",{ref:g,style:{display:"flex",flex:1,overflow:"auto",minHeight:0},children:[Y.jsx("div",{style:{width:40,flexShrink:0,position:"relative",height:k},children:q.map((se,be)=>Y.jsx("div",{style:{position:"absolute",top:be*w,left:0,right:0,height:be<q.length-1?w:0,borderTop:"1px solid #f0f0f0",paddingRight:4,textAlign:"right"},children:Y.jsxs(Vn,{type:"secondary",style:{fontSize:10},children:[se,":00"]})},se))}),Y.jsxs("div",{style:{flex:1,position:"relative",minWidth:80,height:k,background:"#fafafa"},children:[q.map(se=>Y.jsx("div",{style:{position:"absolute",top:(se-T)*w,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},se)),A&&j>=T*60&&j<=P*60&&Y.jsx("div",{style:{position:"absolute",top:(j-T*60)/60*w,left:0,right:0,borderTop:"2px solid #ff4d4f",zIndex:10},children:Y.jsx("div",{style:{position:"absolute",left:-4,top:-6,width:10,height:10,borderRadius:"50%",background:"#ff4d4f"}})}),ie.map(se=>{const be=H?.itemId===se.id&&H?.isBreak;return Y.jsx("div",{style:{position:"absolute",top:(se.startMinutes-T*60)/60*w+(be?_:0),height:se.duration/60*w,left:4,right:4,background:"repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #e8e8e8 4px, #e8e8e8 8px)",borderRadius:4,border:"1px dashed #d9d9d9",display:"flex",alignItems:"center",justifyContent:"center",opacity:be?.5:.8,cursor:"grab",transition:be?"none":"opacity 0.2s"},onMouseDown:Ee=>I(Ee,se.id,"plan",se.startMinutes,!0,se.duration),children:Y.jsx(Vn,{type:"secondary",style:{fontSize:10},children:"休憩"})},se.id)}),oe.map(se=>we(se,!1))]}),Y.jsxs("div",{ref:h,style:{flex:1,position:"relative",minWidth:80,marginLeft:8,height:k,background:"#fafafa",transition:"all 0.2s",...B&&{boxShadow:"0 0 0 2px #52c41a"}},children:[q.map(se=>Y.jsx("div",{style:{position:"absolute",top:(se-T)*w,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},se)),de.map(se=>{const be=H?.itemId===se.id&&H?.isBreak;return Y.jsx("div",{style:{position:"absolute",top:(se.startMinutes-T*60)/60*w+(be?_:0),height:se.duration/60*w,left:4,right:4,background:"repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #e8e8e8 4px, #e8e8e8 8px)",borderRadius:4,border:"1px dashed #d9d9d9",display:"flex",alignItems:"center",justifyContent:"center",opacity:be?.5:.8,cursor:"grab",transition:be?"none":"opacity 0.2s"},onMouseDown:Ee=>I(Ee,se.id,"result",se.startMinutes,!0,se.duration),children:Y.jsx(Vn,{type:"secondary",style:{fontSize:10},children:"休憩"})},se.id)}),ne.map(se=>we(se,!0)),Y.jsx(WJ,{dragState:H,dragOffset:_,isDraggingToResult:B,planItems:b,getProjectColor:z,startHour:T,hourHeight:w})]})]})]}),Y.jsx(ao,{title:Y.jsxs(dn,{children:[Y.jsx(c4,{}),Y.jsx("span",{children:"プロジェクト別稼働時間"}),Y.jsx(sr,{children:e.format("MM/DD (ddd)")})]}),open:c,onCancel:()=>d(!1),footer:null,width:600,children:Y.jsxs("div",{style:{padding:"16px 0"},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:24,padding:"12px 16px",background:"#fafafa",borderRadius:8},children:[Y.jsxs("div",{style:{textAlign:"center"},children:[Y.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"計画"}),Y.jsx("div",{children:Y.jsx(Vn,{strong:!0,style:{fontSize:20,color:"#1890ff"},children:_i(he)})})]}),Y.jsxs("div",{style:{textAlign:"center"},children:[Y.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"実績"}),Y.jsx("div",{children:Y.jsx(Vn,{strong:!0,style:{fontSize:20,color:"#52c41a"},children:_i(pe)})})]}),Y.jsxs("div",{style:{textAlign:"center"},children:[Y.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"差分"}),Y.jsx("div",{children:Y.jsxs(Vn,{strong:!0,style:{fontSize:20,color:pe>=he?"#52c41a":"#ff4d4f"},children:[pe>=he?"+":"-",_i(Math.abs(pe-he))]})})]})]}),Se.length>0?Y.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:Se.map(se=>{const be=Math.max(...Se.map(Fe=>Math.max(Fe.planMinutes,Fe.resultMinutes)),60),Ee=se.planMinutes/be*100,Ne=se.resultMinutes/be*100;return Y.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[Y.jsx("div",{style:{width:12,height:12,borderRadius:2,background:se.color,flexShrink:0}}),Y.jsxs(Vn,{strong:!0,style:{fontSize:13},children:["[",se.project,"] ",se.projectName]})]}),Y.jsxs("div",{style:{marginLeft:20},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:2},children:[Y.jsx(Vn,{type:"secondary",style:{fontSize:11,width:32},children:"計画"}),Y.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:Y.jsx("div",{style:{width:`${Ee}%`,height:"100%",background:`linear-gradient(90deg, ${se.color}88, ${se.color}cc)`,transition:"width 0.3s ease"}})}),Y.jsx(Vn,{style:{fontSize:12,width:50,textAlign:"right",color:"#1890ff"},children:_i(se.planMinutes)})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[Y.jsx(Vn,{type:"secondary",style:{fontSize:11,width:32},children:"実績"}),Y.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:Y.jsx("div",{style:{width:`${Ne}%`,height:"100%",background:se.color,transition:"width 0.3s ease"}})}),Y.jsx(Vn,{style:{fontSize:12,width:50,textAlign:"right",color:"#52c41a"},children:_i(se.resultMinutes)})]})]})]},se.project)})}):Y.jsx("div",{style:{textAlign:"center",padding:40},children:Y.jsx(Vn,{type:"secondary",children:"データがありません"})})]})})]})},eee=({status:e,onClick:t})=>{const n={display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,cursor:"pointer",flexShrink:0},r={display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,borderRadius:2};switch(e){case"completed":return Y.jsx("span",{style:n,onClick:t,children:Y.jsx(pG,{style:{fontSize:18,color:"#52c41a"}})});case"in_progress":return Y.jsx("span",{style:n,onClick:t,children:Y.jsx("span",{style:{...r,border:"2px solid #1890ff"},children:Y.jsx(cG,{style:{fontSize:8,color:"#1890ff"}})})});case"on_hold":return Y.jsx("span",{style:n,onClick:t,children:Y.jsx("span",{style:{...r,border:"2px solid #faad14"},children:Y.jsx(vX,{style:{fontSize:8,color:"#faad14"}})})});default:return Y.jsx("span",{style:n,onClick:t,children:Y.jsx(oG,{style:{fontSize:18,color:"#d9d9d9"}})})}},{Text:G4}=Ir,{TextArea:tee}=Nr,nee=({todo:e,isHovered:t,isEditing:n,editText:r,editDeadline:i,editPriority:s,projects:c,onHover:d,onStatusChange:f,onSaveEdit:p,onCancelEdit:g,onEditTextChange:h,onEditDeadlineChange:y,onEditPriorityChange:C,onMenuAction:b})=>{const $=wN(e.deadline),S=QJ(e.deadline),w=R=>R==="high"?Y.jsx(sr,{color:"red",style:{margin:0,fontSize:10},children:"高"}):R==="medium"?Y.jsx(sr,{color:"orange",style:{margin:0,fontSize:10},children:"中"}):null,x={items:[{key:"edit",label:"編集",icon:Y.jsx(ui,{})},{key:"project",label:"プロジェクト変更",children:c.filter(R=>R.active).map(R=>({key:`project:${e.id}:${R.code}`,label:Y.jsxs(dn,{children:[Y.jsx(ci,{color:R.color}),R.name]})}))},{type:"divider"},{key:"delete",label:"削除",icon:Y.jsx(cp,{}),danger:!0}],onClick:({key:R})=>b(R,e),onSelect:({key:R})=>b(R,e),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return n?Y.jsx(So.Item,{style:{padding:"8px 12px",borderRadius:6,marginBottom:6,border:"1px solid #1890ff",background:"#e6f7ff"},children:Y.jsxs("div",{style:{width:"100%"},children:[Y.jsx(tee,{value:r,onChange:R=>h(R.target.value),autoSize:{minRows:2,maxRows:8},style:{marginBottom:8,fontSize:12},placeholder:`1行目: タスク名
389
+ 2行目以降: 詳細説明(任意)`}),Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:8},children:[Y.jsxs(dn,{size:"small",children:[Y.jsx(fl,{size:"small",placeholder:"期日",value:i?gn(i):null,onChange:R=>y(R?R.format("YYYY-MM-DD"):void 0),style:{width:120},format:"MM/DD"}),Y.jsx(Lr,{size:"small",placeholder:"優先度",value:s,onChange:R=>C(R),allowClear:!0,style:{width:80},options:[{value:"high",label:Y.jsx(sr,{color:"red",style:{margin:0},children:"高"})},{value:"medium",label:Y.jsx(sr,{color:"orange",style:{margin:0},children:"中"})},{value:"low",label:Y.jsx(sr,{color:"blue",style:{margin:0},children:"低"})}]})]}),Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:g,children:"キャンセル"}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(cl,{}),onClick:p,children:"OK"})]})]})]})}):Y.jsx(So.Item,{onMouseEnter:()=>d(e.id),onMouseLeave:()=>d(null),style:{padding:"8px 12px",background:e.status==="completed"?"#fafafa":$?"#fff2f0":"transparent",opacity:e.status==="completed"?.6:1,borderRadius:6,marginBottom:6,border:$&&e.status!=="completed"?"1px solid #ffccc7":"1px solid #f0f0f0"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},children:[Y.jsx(eee,{status:e.status,onClick:()=>f(e.id)}),Y.jsxs("div",{style:{flex:1,minWidth:0},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[Y.jsx(G4,{delete:e.status==="completed",style:{fontWeight:500,fontSize:13},children:e.task}),w(e.priority),$&&e.status!=="completed"&&Y.jsxs(sr,{color:"error",style:{margin:0,fontSize:10},children:[Y.jsx(k3,{})," 期限切れ"]})]}),e.description&&Y.jsx("div",{style:{marginTop:4,paddingLeft:4},children:Y.jsx(G4,{type:"secondary",style:{fontSize:12,whiteSpace:"pre-wrap",lineHeight:1.5},children:e.description})}),e.deadline&&Y.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:4},children:Y.jsx(ur,{title:`期限: ${e.deadline}`,children:Y.jsxs(sr,{color:$?"error":S?"warning":"default",style:{margin:0,fontSize:10},children:[Y.jsx(wd,{style:{marginRight:2}}),gn(e.deadline).format("MM/DD")]})})})]}),Y.jsx(dn,{size:4,style:{visibility:t?"visible":"hidden",flexShrink:0},children:Y.jsx(S1,{menu:x,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:Y.jsx(L3,{style:{fontSize:16,color:"#666",cursor:"pointer",padding:"0 4px"},onClick:R=>R.stopPropagation()})})})]})})},ree=({filter:e,counts:t,onFilterChange:n})=>{const r=[{key:"all",icon:Y.jsx(dX,{}),label:"全て",count:t.all,color:"#666"},{key:"pending",icon:Y.jsx(wd,{}),label:"未着手",count:t.pending,color:"#999"},{key:"in_progress",icon:Y.jsx(V3,{}),label:"進行中",count:t.in_progress,color:"#1890ff"},{key:"completed",icon:Y.jsx(y1,{}),label:"完了",count:t.completed,color:"#52c41a"},{key:"on_hold",icon:Y.jsx(hX,{}),label:"保留",count:t.on_hold,color:"#faad14"}];return Y.jsx("div",{style:{display:"flex",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0},children:r.map(i=>Y.jsxs("div",{onClick:()=>n(i.key),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"10px 4px",cursor:"pointer",background:e===i.key?"#fff":"transparent",borderBottom:e===i.key?`2px solid ${i.color}`:"2px solid transparent",transition:"all 0.2s"},children:[Y.jsx("span",{style:{fontSize:14,color:e===i.key?i.color:"#999"},children:i.icon}),Y.jsx("span",{style:{fontSize:11,color:e===i.key?i.color:"#999",fontWeight:e===i.key?600:400},children:i.label}),Y.jsx(ci,{count:i.count,size:"small",style:{backgroundColor:e===i.key?i.color:"#d9d9d9",fontSize:10}})]},i.key))})},{Text:qc}=Ir,{TextArea:X4}=Nr,oee=({selectedProjects:e=[]})=>{const{report:t,config:n}=ml(),[r,i]=l.useState("all"),[s,c]=l.useState(!1),[d,f]=l.useState(null),[p,g]=l.useState(null),[h,y]=l.useState(""),[C,b]=l.useState(void 0),[$,S]=l.useState(void 0),w=t.report,M=w?.todos||[],x=n.projects,[R,O]=l.useState(w?.notes||""),[N,T]=l.useState("");l.useEffect(()=>{w&&(O(w.notes||""),T(Y4(w.todos,w.notes||"")))},[w]),l.useEffect(()=>{w&&R!==w.notes&&t.updateNotes(R)},[R]);const P=X=>n.getProjectColor(X),D=X=>n.getProjectName(X),k=e.length>0?M.filter(X=>e.includes(X.project)):M,W=k.filter(X=>!(r!=="all"&&X.status!==r)),U=W.filter(X=>X.deadline&&wN(X.deadline)&&X.status!=="completed"),G=W.reduce((X,K)=>{const J=K.project;return X[J]||(X[J]=[]),X[J].push(K),X},{}),L=X=>{t.toggleTodoStatus(X)},H=(X,K)=>{t.updateTodo(X,{project:K}),$n.success(`プロジェクトを ${K} に変更しました`)},_=X=>{t.deleteTodo(X),$n.success("TODOを削除しました")},B=X=>{g(X.id);const K=X.description?`${X.task}
390
+ ${X.description}`:X.task;y(K),b(X.deadline),S(X.priority)},I=()=>{if(p){const X=h.split(`
391
+ `),K=X[0].trim(),J=X.slice(1).join(`
392
+ `).trim()||void 0;t.updateTodo(p,{task:K,description:J,deadline:C,priority:$}),$n.success("更新しました"),g(null),y(""),b(void 0),S(void 0)}},z=()=>{g(null),y(""),b(void 0),S(void 0)},V=l.useCallback((X,K)=>{if(X==="edit")B(K);else if(X.startsWith("project:")){const J=X.split(":"),Z=J[1],oe=J[2];H(Z,oe)}else X==="delete"&&_(K.id)},[H]),A={all:k.length,pending:k.filter(X=>X.status==="pending").length,in_progress:k.filter(X=>X.status==="in_progress").length,completed:k.filter(X=>X.status==="completed").length,on_hold:k.filter(X=>X.status==="on_hold").length},j=()=>{!s&&w&&T(Y4(w.todos,w.notes||"")),c(!s)},q=()=>{const{todos:X,notes:K}=KJ(N);t.updateTodos(X),t.updateNotes(K),O(K),$n.success("反映しました"),c(!1)};return Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(H3,{}),Y.jsx("span",{children:"TODO"}),Y.jsx(ci,{count:A.pending+A.in_progress,style:{backgroundColor:"#1890ff"}}),U.length>0&&Y.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,marginLeft:8,padding:"2px 8px",backgroundColor:"#fff7e6",border:"1px solid #ffd591",borderRadius:4,fontSize:11,color:"#d46b08"},children:[Y.jsx(k3,{}),Y.jsxs("span",{children:[U.length,"件期限切れ"]})]})]}),extra:s?Y.jsxs(dn,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:()=>c(!1),children:"キャンセル"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(cl,{}),onClick:q,children:"OK"})]}):Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(ui,{}),onClick:j,children:"編集"}),style:{height:"100%"},styles:{body:{padding:0,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:s?Y.jsxs("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column"},children:[Y.jsx(qc,{type:"secondary",style:{marginBottom:8,fontSize:11},children:"TODO: - [ ] タスク名 @期日 !優先度 / NOTE: ## [NOTE] 以降に自由記述"}),Y.jsx(X4,{value:N,onChange:X=>T(X.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(ree,{filter:r,counts:A,onFilterChange:i}),Y.jsxs("div",{style:{flex:1,overflow:"auto",padding:"12px 12px 12px 12px"},children:[Object.entries(G).map(([X,K])=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8,padding:"6px 10px",background:"#f5f5f5",borderRadius:6},children:[Y.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:P(X),flexShrink:0}}),Y.jsxs(qc,{type:"secondary",style:{fontSize:10},children:["[",X,"]"]}),Y.jsx(qc,{strong:!0,style:{fontSize:12},children:D(X)}),Y.jsxs(qc,{type:"secondary",style:{fontSize:11},children:["(",K.length,")"]})]}),Y.jsx(So,{dataSource:K,renderItem:J=>Y.jsx(nee,{todo:J,isHovered:d===J.id,isEditing:p===J.id,editText:h,editDeadline:C,editPriority:$,projects:x,getProjectColor:P,onHover:f,onStatusChange:L,onStartEdit:B,onSaveEdit:I,onCancelEdit:z,onEditTextChange:y,onEditDeadlineChange:b,onEditPriorityChange:S,onMenuAction:V},J.id),size:"small",split:!1})]},X)),Y.jsx(ni,{style:{margin:"16px 0 12px 0"}}),Y.jsxs("div",{style:{marginBottom:12},children:[Y.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:8},children:Y.jsxs(dn,{children:[Y.jsx(up,{style:{color:"#666"}}),Y.jsx(qc,{strong:!0,style:{fontSize:12},children:"NOTE"})]})}),Y.jsx(X4,{value:R,onChange:X=>O(X.target.value),autoSize:{minRows:3,maxRows:8},placeholder:"メモを入力...",style:{fontSize:12}})]})]})]})})},{Text:mm}=Ir,aee=({selectedProjects:e=[],onToggleProject:t})=>{const{config:n,report:r}=ml(),i=n.projects,s=l.useMemo(()=>{const p=r.report?.todos||[];return i.filter(g=>g.active).map(g=>{const y=p.filter(C=>C.project===g.code).filter(C=>C.status!=="completed").length;return{...g,pendingTodos:y}})},[i,r.report?.todos]),c=l.useMemo(()=>s.reduce((p,g)=>(p[g.category]||(p[g.category]=[]),p[g.category].push(g),p),{}),[s]),d={internal:"社内業務",client:"クライアント",personal:"個人"},f=p=>{t&&t(p)};return Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(wX,{}),Y.jsx("span",{children:"プロジェクト"})]}),extra:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(_X,{})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Object.entries(c).map(([p,g])=>Y.jsxs("div",{style:{marginBottom:12},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6,padding:"4px 8px",background:"#f5f5f5",borderRadius:4},children:[Y.jsx(mm,{strong:!0,style:{fontSize:11},children:d[p]||p}),Y.jsxs(mm,{type:"secondary",style:{fontSize:10,marginLeft:6},children:["(",g.length,")"]})]}),Y.jsx(So,{dataSource:g,renderItem:h=>{const y=e.includes(h.code);return Y.jsx(So.Item,{onClick:()=>f(h.code),style:{padding:"8px 10px",marginBottom:4,borderRadius:6,border:y?`2px solid ${h.color}`:"1px solid #f0f0f0",cursor:"pointer",background:y?`${h.color}10`:"#fff",transition:"all 0.2s"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:h.color,flexShrink:0}}),Y.jsxs("div",{style:{flex:1,minWidth:0},children:[Y.jsxs(mm,{type:"secondary",style:{fontSize:10,marginRight:4},children:["[",h.code,"]"]}),Y.jsx(mm,{strong:!0,style:{fontSize:12},children:h.name})]}),h.pendingTodos>0&&Y.jsx(ci,{count:h.pendingTodos,size:"small",style:{backgroundColor:"#999"}})]})})},size:"small",split:!1})]},p))})},{TextArea:iee}=Nr,{Text:is}=Ir,lee=({onApplyRoutine:e})=>{const{config:t}=ml(),{loadConfig:n}=t,[r,i]=l.useState(new Set),[s,c]=l.useState(!1),[d,f]=l.useState(""),[p,g]=l.useState(!1),[h,y]=l.useState(!1),C=t.routines?.weekly||{},b=t.routines?.adhoc||[],$=t.routines?.monthly||{},S=t.routines?.quarterly||[],w=t.routines?.yearly||[],M=l.useCallback(async()=>{y(!0);try{const I=await hp.getRoutinesMarkdown();f(I.content),c(!0)}catch(I){console.error("Failed to load routines markdown:",I),$n.error("ルーチン設定の読み込みに失敗しました")}finally{y(!1)}},[]),x=l.useCallback(async()=>{g(!0);try{await hp.saveRoutinesMarkdown(d),$n.success("ルーチン設定を保存しました"),c(!1),await n()}catch(I){console.error("Failed to save routines markdown:",I),$n.error("ルーチン設定の保存に失敗しました")}finally{g(!1)}},[d,n]),R=l.useCallback(()=>{c(!1),f("")},[]),O=I=>t.getProjectColor(I),N=[{key:"monday",label:"月"},{key:"tuesday",label:"火"},{key:"wednesday",label:"水"},{key:"thursday",label:"木"},{key:"friday",label:"金"},{key:"saturday",label:"土"},{key:"sunday",label:"日"},{key:"adhoc",label:"随時"},{key:"monthly",label:"月次"},{key:"quarterly",label:"四半期"},{key:"yearly",label:"年次"}],T=gn().day(),P=T===0?"sunday":N[T-1].key,D=l.useMemo(()=>{const I=[];return $.schedule&&$.schedule.forEach(z=>{I.push({time:z.time,project:z.project,task:z.task,category:"plan"})}),$.start_of_month&&$.start_of_month.forEach(z=>{I.push({project:z.project,task:`[月初] ${z.task}`,category:z.category||"todo"})}),$.end_of_month&&$.end_of_month.forEach(z=>{I.push({project:z.project,task:`[月末] ${z.task}`,category:z.category||"todo"})}),I},[$]),k=l.useMemo(()=>{const I=[];return S.forEach(z=>{if(z.schedule&&z.schedule.forEach(V=>{I.push({time:V.time,project:V.project,task:V.task,category:"plan"})}),z.months.length>0){const V=z.months.join(",")+"月";z.tasks.forEach(A=>{I.push({project:A.project,task:`[${V}] ${A.task}`,category:A.category||"todo"})})}}),I},[S]),W=l.useMemo(()=>w.map(I=>I.time&&I.month===0&&I.day===0?{time:I.time,project:I.project,task:I.task,category:"plan"}:{project:I.project,task:I.task,category:"todo"}),[w]),U=(I,z)=>{const V=`${I}:${z}`;i(A=>{const j=new Set(A);return j.has(V)?j.delete(V):j.add(V),j})},G=(I,z)=>{const V=z.map((j,q)=>`${I}:${q}`),A=V.every(j=>r.has(j));i(j=>{const q=new Set(j);return A?V.forEach(X=>q.delete(X)):V.forEach(X=>q.add(X)),q})},L=()=>{if(r.size===0){$n.info("追加するルーチンを選択してください");return}const I=[];if(r.forEach(z=>{const[V,A]=z.split(":"),j=parseInt(A,10);let q;if(V==="adhoc"?q=b[j]:V==="monthly"?q=D[j]:V==="quarterly"?q=k[j]:V==="yearly"?q=W[j]:q=C[V]?.[j],q){const X=q.time&&q.time!=="",K=q.category||(X?"plan":"todo");I.push({time:q.time,project:q.project,task:q.task,duration:q.duration,category:K})}}),I.length>0&&e){e(I),i(new Set);const z=I.filter(j=>j.category==="plan").length,V=I.filter(j=>j.category==="todo").length,A=[];z>0&&A.push(`PLAN: ${z}件`),V>0&&A.push(`TODO: ${V}件`),$n.success(`ルーチンを追加しました(${A.join("、")})`)}},H=(I,z)=>{const V=z.map((q,X)=>`${I}:${X}`),A=V.length>0&&V.every(q=>r.has(q)),j=V.some(q=>r.has(q));return Y.jsxs("div",{children:[z.length>0&&Y.jsx("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:Y.jsx(Os,{checked:A,indeterminate:j&&!A,onChange:()=>G(I,z),children:Y.jsx(is,{type:"secondary",style:{fontSize:11},children:"すべて選択"})})}),z.length===0?Y.jsx("div",{style:{textAlign:"center",padding:16},children:Y.jsx(is,{type:"secondary",children:"ルーチンが登録されていません"})}):Y.jsx(So,{dataSource:z,renderItem:(q,X)=>{const K=`${I}:${X}`,J=r.has(K),Z=q.time&&q.time!=="",oe=q.category==="todo"||!Z;return Y.jsx(So.Item,{style:{padding:"6px 8px",marginBottom:4,borderRadius:4,borderLeft:`3px solid ${O(q.project)}`,background:J?"#e6f7ff":"#fafafa",cursor:"pointer",transition:"background 0.2s"},onClick:()=>U(I,String(X)),children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(Os,{checked:J,onClick:ne=>ne.stopPropagation(),onChange:()=>U(I,String(X))}),oe?Y.jsxs(is,{style:{fontSize:11,color:"#52c41a",minWidth:40},children:[Y.jsx(H3,{style:{marginRight:2}}),"TODO"]}):Y.jsxs(is,{style:{fontSize:11,color:"#1890ff",minWidth:40,fontWeight:500},children:[Y.jsx(wd,{style:{marginRight:2}}),q.time]}),Y.jsx(sr,{color:O(q.project),style:{margin:0,fontSize:10},children:q.project}),Y.jsx(is,{ellipsis:!0,style:{flex:1,fontSize:12},children:q.task}),q.duration&&q.duration>0&&Y.jsx(is,{type:"secondary",style:{fontSize:10},children:_(q.duration)})]})})},size:"small",split:!1})]})},_=I=>{if(!I||isNaN(I))return"";const z=Math.floor(I/60),V=I%60;return z===0?`${V}分`:V===0?`${z}時間`:`${z}時間${V}分`},B=l.useMemo(()=>N.map(I=>{let z;I.key==="adhoc"?z=b:I.key==="monthly"?z=D:I.key==="quarterly"?z=k:I.key==="yearly"?z=W:z=C[I.key]||[];const V=I.key===P,A=z.filter((j,q)=>r.has(`${I.key}:${q}`)).length;return{key:I.key,label:Y.jsxs(dn,{size:4,children:[Y.jsx("span",{children:I.label}),V&&Y.jsx(ci,{status:"processing"}),A>0&&Y.jsx(ci,{count:A,size:"small",style:{backgroundColor:"#1890ff"}})]}),children:H(I.key,z)}}),[C,b,D,k,W,r,P]);return s?Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(ui,{}),Y.jsx("span",{children:"ルーチン編集"})]}),extra:Y.jsxs(dn,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:R,disabled:p,children:"キャンセル"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(b1,{}),onClick:x,loading:p,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",display:"flex",flexDirection:"column"}},children:Y.jsx(iee,{value:d,onChange:I=>f(I.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12,resize:"none"},placeholder:`## [ROUTINES]
393
+
394
+ ### [Mon]
395
+ * 08:00 [P99] タスク確認
396
+
397
+ ### [month]
398
+ - [ ] [P99] 月末タスク`})}):Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(F3,{}),Y.jsx("span",{children:"ルーチン"})]}),extra:Y.jsxs(dn,{children:[Y.jsxs(_t,{type:"primary",size:"small",icon:Y.jsx(lp,{}),disabled:r.size===0,onClick:L,children:["追加 ",r.size>0&&`(${r.size})`]}),Y.jsx(_t,{size:"small",icon:Y.jsx(ui,{}),onClick:M,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Y.jsx(h1,{defaultActiveKey:P,size:"small",items:B})})},{Text:ub}=Ir,{TextArea:K4}=Nr,see=()=>{const e=[];for(let t=6;t<=23;t++)for(let n=0;n<60;n+=15){const r=`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`;e.push({value:r,label:r})}return e},cee=see(),uee=({selectedDate:e})=>{const{report:t,config:n}=ml(),[r,i]=l.useState("visual"),[s,c]=l.useState([]),[d,f]=l.useState([]),[p,g]=l.useState([]),[h,y]=l.useState("");l.useEffect(()=>{t.report&&(c(t.report.plan),f(t.report.result),g(t.report.todos),y(t.report.notes||""))},[t.report]);const C=n.projects,b=n.routines?.weekly,$=()=>ZJ({date:e.format("YYYY-MM-DD"),plan:s,result:d,todos:p,notes:h,author:t.report?.author||"名前"},e.format("YYYY-MM-DD"),t.report?.author||"名前"),[S,w]=l.useState($()),M=C.filter(I=>I.active).map(I=>({value:I.code,label:Y.jsxs(dn,{children:[Y.jsx("span",{style:{color:I.color},children:"●"}),I.code," - ",I.name]})})),x=()=>{if(!b)return[];const z=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return b[z]||[]},R=I=>{const z={id:`${I}-${Date.now()}`,time:gn().format("HH:00"),project:"P99",task:""};I==="plan"?c([...s,z]):f([...d,z])},O=(I,z)=>{I==="plan"?c(s.filter(V=>V.id!==z)):f(d.filter(V=>V.id!==z))},N=(I,z,V,A)=>{const j=q=>q.map(X=>X.id===z?{...X,[V]:A}:X);I==="plan"?c(j(s)):f(j(d))},T=()=>{const I={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...p,I])},P=(I,z,V)=>{g(p.map(A=>A.id===I?{...A,[z]:V}:A))},D=I=>{g(p.filter(z=>z.id!==I))},k=()=>{$n.success("保存しました")},W=()=>{const I=x(),z=I.map((V,A)=>({id:`plan-routine-${Date.now()}-${A}`,time:V.time||"09:00",project:V.project,task:V.task,duration:V.duration}));c([...s,...z]),$n.success(`${I.length}件のルーチンを計画に追加しました`)},U=()=>{const z=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((V,A)=>({id:`plan-gcal-${Date.now()}-${A}`,time:V.time,project:V.project,task:V.task}));c([...s,...z]),$n.success("Googleカレンダーから計画を取り込みました")},G=()=>{const I=s.map((z,V)=>({...z,id:`result-copy-${Date.now()}-${V}`}));f(I),$n.success("計画を実績にコピーしました")},L=(I,z)=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:I==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),Y.jsxs(dn,{children:[I==="plan"&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ur,{title:"ルーチンから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(F3,{}),onClick:W,children:"ルーチン"})}),Y.jsx(ur,{title:"Googleカレンダーから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(aX,{}),onClick:U,children:"GCal"})})]}),I==="result"&&Y.jsx(ur,{title:"計画を実績にコピー",children:Y.jsx(_t,{size:"small",type:"primary",ghost:!0,icon:Y.jsx(B3,{}),onClick:G,children:"計画をコピー"})}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(lp,{}),onClick:()=>R(I),children:"追加"})]})]}),I==="result"&&Y.jsx(mO,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),Y.jsx(So,{dataSource:z,renderItem:V=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{width:"100%"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(AG,{style:{color:"#999",cursor:"grab"}}),Y.jsx(Lr,{value:V.time,options:cee,size:"small",style:{width:90},showSearch:!0,filterOption:(A,j)=>(j?.value??"").toLowerCase().includes(A.toLowerCase()),onChange:A=>N(I,V.id,"time",A),placeholder:"時刻"}),Y.jsx(Lr,{value:V.project,options:M,size:"small",style:{width:150},onChange:A=>N(I,V.id,"project",A)}),Y.jsx(Nr,{value:V.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>N(I,V.id,"task",A.target.value)}),Y.jsx(uS,{title:"削除しますか?",onConfirm:()=>O(I,V.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(cp,{})})})]}),Y.jsx(Nr.TextArea,{value:V.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:A=>N(I,V.id,"description",A.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),H=()=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[TODO]"}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(lp,{}),onClick:T,children:"追加"})]}),Y.jsx(So,{dataSource:p,renderItem:I=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(Lr,{value:I.status,size:"small",style:{width:110},onChange:z=>P(I.id,"status",z),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),Y.jsx(Lr,{value:I.project,options:M,size:"small",style:{width:150},onChange:z=>P(I.id,"project",z)}),Y.jsx(Nr,{value:I.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:z=>P(I.id,"task",z.target.value)}),Y.jsx(Nr,{value:I.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:z=>P(I.id,"deadline",z.target.value)}),Y.jsx(uS,{title:"削除しますか?",onConfirm:()=>D(I.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(cp,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),_=()=>Y.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[L("plan",s),Y.jsx(ni,{style:{margin:"16px 0"}}),L("result",d),Y.jsx(ni,{style:{margin:"16px 0"}}),H(),Y.jsx(ni,{style:{margin:"16px 0"}}),Y.jsxs("div",{children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),Y.jsx(K4,{value:h,onChange:I=>y(I.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),B=()=>Y.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:Y.jsx("div",{style:{flex:1,overflow:"hidden"},children:Y.jsx(K4,{value:S,onChange:I=>w(I.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(ui,{}),Y.jsx("span",{children:"日報編集"}),Y.jsx(sr,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:Y.jsxs(dn,{children:[Y.jsx(JU,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:Y.jsx(ui,{})},{label:"テキスト",value:"text",icon:Y.jsx(up,{})}],value:r,onChange:I=>{I==="text"&&w($()),i(I)}}),Y.jsx(ni,{type:"vertical"}),Y.jsx(ur,{title:"元に戻す (Ctrl+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(kX,{})})}),Y.jsx(ur,{title:"やり直し (Ctrl+Shift+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(RX,{})})}),Y.jsx(ni,{type:"vertical"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(b1,{}),onClick:k,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?_():B()})};function dee(e){const[t,n]=l.useState(e||gn().format("YYYY-MM-DD")),[r,i]=l.useState(null),[s,c]=l.useState(null),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,y]=l.useState(null),[C,b]=l.useState(!1),$=l.useCallback(async B=>{f(!0),y(null),n(B);try{const I=await ss.get(B);if(I)c(I.stats),i(pm(B,I.content));else{const z=EN(B),V=gn(B).subtract(1,"day").format("YYYY-MM-DD");try{const A=await ss.get(V);if(A){const q=pm(V,A.content).todos.filter(X=>X.status!=="completed");z.todos=q.map((X,K)=>({...X,id:`carryover-${Date.now()}-${K}`}))}}catch{}i(z),c(null)}b(!1)}catch(I){y(I instanceof Error?I.message:"読み込みに失敗しました")}finally{f(!1)}},[]),S=l.useCallback(async B=>{if(!r)return!1;g(!0),y(null);try{const I=Q4(r),z=await ss.save(t,{content:I,git:B?.git,slack:B?.slack});if(z.saved){c(z.stats),b(!1);const V=await ss.get(t);return V&&(i(pm(t,V.content)),c(V.stats)),!0}return!1}catch(I){return y(I instanceof Error?I.message:"保存に失敗しました"),!1}finally{g(!1)}},[r,t]),w=l.useCallback(async()=>{try{const B=await ss.delete(t);return B&&(i(null),c(null),b(!1)),B}catch(B){return y(B instanceof Error?B.message:"削除に失敗しました"),!1}},[t]),M=l.useCallback(B=>{i(I=>I?{...I,plan:B}:null),b(!0)},[]),x=l.useCallback(B=>{i(I=>I?{...I,result:B}:null),b(!0)},[]),R=l.useCallback(B=>{i(I=>I?{...I,todos:B}:null),b(!0)},[]),O=l.useCallback(B=>{i(I=>I?{...I,notes:B}:null),b(!0)},[]),N=l.useCallback(B=>{const I=pm(t,B);i(I),b(!0)},[t]),T=l.useCallback(B=>{i(I=>{if(!I)return null;const z={...B,id:`t${Date.now()}-${Math.random().toString(36).substring(2,9)}`};return{...I,todos:[...I.todos,z]}}),b(!0)},[]),P=l.useCallback((B,I)=>{i(z=>z?{...z,todos:z.todos.map(V=>V.id===B?{...V,...I}:V)}:null),b(!0)},[]),D=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.filter(z=>z.id!==B)}:null),b(!0)},[]),k=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.map(z=>z.id!==B?z:{...z,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[z.status]||"pending"})}:null),b(!0)},[]),W=l.useCallback((B,I)=>{i(z=>{if(!z)return null;const V={...I,id:`${B[0]}${Date.now()}-${Math.random().toString(36).substring(2,9)}`},A=[...z[B],V].sort((j,q)=>j.time.localeCompare(q.time));return{...z,[B]:A}}),b(!0)},[]),U=l.useCallback((B,I,z)=>{i(V=>{if(!V)return null;const A=V[B].map(j=>j.id===I?{...j,...z}:j);return A.sort((j,q)=>j.time.localeCompare(q.time)),{...V,[B]:A}}),b(!0)},[]),G=l.useCallback((B,I)=>{i(z=>z?{...z,[B]:z[B].filter(V=>V.id!==I)}:null),b(!0)},[]),L=l.useCallback(B=>{i(I=>{if(!I)return null;const z=B.map((A,j)=>({...A,id:`p${Date.now()}-${j}`})),V=[...I.plan,...z].sort((A,j)=>A.time.localeCompare(j.time));return{...I,plan:V}}),b(!0)},[]),H=l.useCallback(()=>{i(B=>{if(!B)return null;const I=B.plan.map((z,V)=>({...z,id:`r${Date.now()}-${V}`}));return{...B,result:I}}),b(!0)},[]);l.useEffect(()=>{e&&$(e)},[e,$]);const _=l.useMemo(()=>r?Q4(r):"",[r]);return{report:r,markdownContent:_,stats:s,loading:d,saving:p,error:h,isDirty:C,loadReport:$,saveReport:S,deleteReport:w,updatePlan:M,updateResult:x,updateTodos:R,updateNotes:O,updateMarkdown:N,addTodo:T,updateTodo:P,deleteTodo:D,toggleTodoStatus:k,addScheduleItem:W,updateScheduleItem:U,deleteScheduleItem:G,applyRoutine:L,copyPlanToResult:H}}function EN(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function pm(e,t){const n=EN(e),r=t.split(`
399
+ `);let i="",s="P99";const c=[],d=r[0]?.match(/^#\s+\[日報\]\s+(.+?)\s+(\d{4}-\d{2}-\d{2})/);d&&(n.author=d[1]);for(let f=0;f<r.length;f++){const p=r[f];if(p.match(/^##\s+\[PLAN\]/i)){i="plan";continue}if(p.match(/^##\s+\[RESULT\]/i)){i="result";continue}if(p.match(/^##\s+\[TODO\]/i)){i="todo";continue}if(p.match(/^##\s+\[NOTE\]/i)){i="note";continue}if(i==="todo"&&p.match(/^###\s+(.+)$/)){const g=p.match(/^###\s+(.+)$/);g&&(s=g[1].trim());continue}if((i==="plan"||i==="result")&&p.startsWith("*")){const g=p.match(/^\*\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s+(.+)$/);if(g){const y={id:`${i[0]}${f}`,time:g[1],project:g[2],task:g[3]};i==="plan"?n.plan.push(y):n.result.push(y);continue}const h=p.match(/^\*\s+(\d{2}:\d{2})\s*$/);if(h){const y={id:`break${i[0]}${f}`,time:h[1],project:"",task:""};i==="plan"?n.plan.push(y):n.result.push(y)}}if(i==="todo"&&p.startsWith("-")){const g=p.match(/^-\s+\[([xX\s*\->])\]\s+(.+)$/);if(g){const h=g[1];let y=g[2],C=s,b,$;const S=y.match(/^\[([^\]]+)\]\s*/);S&&(C=S[1],y=y.substring(S[0].length));const w=y.match(/^(!!!|!!|!)\s*/);if(w){const R=w[1];$=R==="!!!"?"high":R==="!!"?"medium":"low",y=y.substring(w[0].length)}const M=y.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(M)b=M[1],y=y.substring(0,y.length-M[0].length);else{const R=y.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);R&&(b=R[1],y=y.substring(R[0].length))}b&&b.length===5&&(b=`${new Date().getFullYear()}-${b}`);const x={id:`t${f}`,status:fee(h),project:C,task:y.trim(),deadline:b,priority:$};n.todos.push(x);continue}}if(i==="todo"&&p.match(/^\s{2,}/)&&n.todos.length>0){const g=n.todos[n.todos.length-1],h=p.trim();g.description?g.description+=`
400
+ `+h:g.description=h;continue}i==="note"&&!p.startsWith("##")&&c.push(p)}return n.notes=c.join(`
401
+ `).trim(),n}function Q4(e){const t=[];return t.push(`# [日報] ${e.author||"名前"} ${e.date}`),t.push(""),t.push("## [PLAN]"),t.push(""),t.push(...hS(e.plan)),t.push(""),t.push("## [RESULT]"),t.push(""),t.push(...hS(e.result)),t.push(""),t.push("## [TODO]"),t.push(""),t.push(...xN(e.todos)),t.push(""),t.push("## [NOTE]"),t.push(""),t.push(e.notes||""),t.join(`
402
+ `)}function fee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function mee(){const[e,t]=l.useState(null),[n,r]=l.useState(!1),[i,s]=l.useState(null),c=l.useCallback(async()=>{r(!0),s(null);try{const b=await hp.get();t(b)}catch(b){s(b instanceof Error?b.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async b=>{s(null);try{const $=await hp.update(b);return t($),!0}catch($){return s($ instanceof Error?$.message:"設定の更新に失敗しました"),!1}},[]),f=l.useCallback(b=>e?.projects.find($=>$.code===b),[e]),p=l.useCallback(b=>f(b)?.color||"#999",[f]),g=l.useCallback(b=>f(b)?.name||b,[f]),h=l.useCallback(()=>e?.projects.filter(b=>b.active)||[],[e]),y=l.useCallback(b=>{if(!e?.routines?.weekly)return[];const S={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}[b.day()];return e.routines.weekly[S]||[]},[e]),C=l.useCallback(b=>e?.routines?.monthly?e.routines.monthly[b]||[]:[],[e]);return l.useEffect(()=>{c()},[c]),{config:e,projects:e?.projects||[],routines:e?.routines||null,loading:n,error:i,loadConfig:c,updateConfig:d,getProject:f,getProjectColor:p,getProjectName:g,getActiveProjects:h,getRoutinesForDay:y,getMonthlyRoutines:C}}function pee(e,t){const n=gn(),[r,i]=l.useState(e||n.year()),[s,c]=l.useState(t||n.month()+1),[d,f]=l.useState(null),[p,g]=l.useState([]),[h,y]=l.useState(!1),[C,b]=l.useState(null),$=l.useCallback(async(T,P)=>{y(!0),b(null);try{const D=await H4.get(T,P);f(D),i(T),c(P)}catch(D){b(D instanceof Error?D.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),S=l.useCallback(async()=>{try{const T=await H4.getAvailableMonths();g(T)}catch(T){console.error("Failed to load available months:",T)}},[]),w=l.useCallback(()=>{const T=gn(`${r}-${s}-01`).subtract(1,"month");$(T.year(),T.month()+1)},[r,s,$]),M=l.useCallback(()=>{const T=gn(`${r}-${s}-01`).add(1,"month");$(T.year(),T.month()+1)},[r,s,$]),x=l.useCallback((T,P)=>{$(T,P)},[$]),R=l.useCallback(T=>d?.days.find(P=>P.date===T),[d]),O=l.useCallback(T=>R(T)?.hasReport||!1,[R]),N=l.useCallback(T=>{const P=R(T);return{plan:P?.planHours||0,result:P?.resultHours||0}},[R]);return l.useEffect(()=>{$(r,s),S()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:C,year:r,month:s,availableYearMonths:p,loadCalendar:$,loadAvailableMonths:S,goToPrevMonth:w,goToNextMonth:M,goToMonth:x,getDayStats:R,hasReport:O,getWorkHours:N}}function gee(){const[e,t]=l.useState(new Map),n=l.useMemo(()=>e.size>0,[e]),r=l.useMemo(()=>Array.from(e.keys()),[e]),i=l.useCallback(p=>e.has(p),[e]),s=l.useCallback((p,g,h,y)=>{if(h===y){t(C=>{const b=new Map(C);return b.delete(p),b});return}t(C=>{const b=new Map(C);return b.set(p,{date:p,report:g,originalMarkdown:h,currentMarkdown:y}),b})},[]),c=l.useCallback(p=>{t(g=>{const h=new Map(g);return h.delete(p),h})},[]),d=l.useCallback(()=>{t(new Map)},[]),f=l.useCallback(p=>e.get(p),[e]);return{unsavedReports:e,hasUnsavedChanges:n,unsavedDates:r,hasUnsavedChangesForDate:i,setUnsavedReport:s,clearUnsavedReport:c,clearAllUnsavedReports:d,getUnsavedReport:f}}gn.locale("ja");const{Content:hee}=Ra,yee=()=>{const[e,t]=l.useState(gn()),[n,r]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState([]),f=dee(e.format("YYYY-MM-DD")),p=mee(),g=pee(e.year(),e.month()+1),h=gee(),y=l.useRef(h);y.current=h;const C=l.useRef(e.format("YYYY-MM-DD")),b=l.useRef(!1);l.useEffect(()=>{const L=e.format("YYYY-MM-DD");C.current!==L&&(b.current=!0,C.current=L)},[e]),l.useEffect(()=>{if(b.current){b.current=!1;return}const L=e.format("YYYY-MM-DD");f.isDirty&&f.report&&y.current.setUnsavedReport(L,f.report,"",f.markdownContent)},[f.isDirty,f.report,f.markdownContent,e]);const[$,S]=l.useState(null),w=l.useRef(null),M=l.useRef(0),x=l.useRef(0),R=l.useCallback(async L=>{if(L){const H=L.format("YYYY-MM-DD");t(L),(L.month()!==e.month()||L.year()!==e.year())&&g.loadCalendar(L.year(),L.month()+1);const _=y.current.getUnsavedReport(H);await f.loadReport(H),_&&f.updateMarkdown(_.currentMarkdown)}},[f,g,e]),O=l.useCallback(async L=>{const H=gn(L);t(H);const _=y.current.getUnsavedReport(L);await f.loadReport(L),_&&f.updateMarkdown(_.currentMarkdown)},[f]),N=l.useCallback(L=>{d(H=>H.includes(L)?H.filter(_=>_!==L):[...H,L])},[]),T=l.useCallback(()=>{d([])},[]),P=c.map(L=>p.getProject(L)).filter(L=>L!==void 0),D=l.useCallback(async L=>{await f.saveReport(L)?(h.clearUnsavedReport(e.format("YYYY-MM-DD")),$n.success("日報を保存しました"),g.loadCalendar(g.year,g.month)):$n.error("日報の保存に失敗しました")},[f,g,h,e]),k=l.useCallback(async(L,H)=>{let _=0,B=0;for(const I of L)try{if(I===e.format("YYYY-MM-DD"))await f.saveReport(H)?(_++,h.clearUnsavedReport(I)):B++;else{const z=h.getUnsavedReport(I);z&&((await ss.save(I,{content:z.currentMarkdown,git:H?.git,slack:H?.slack})).saved?(_++,h.clearUnsavedReport(I)):B++)}}catch{B++}_>0&&($n.success(`${_}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),B>0&&$n.error(`${B}件の日報の保存に失敗しました`)},[f,e,h,g]),W=l.useCallback(L=>{const H=L.filter(B=>B.category==="plan"||!B.category&&B.time&&B.time!==""),_=L.filter(B=>B.category==="todo"||!B.category&&(!B.time||B.time===""));if(H.length>0){const B=H.map((I,z)=>({id:`routine-${Date.now()}-${z}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));f.applyRoutine(B)}_.length>0&&_.forEach(B=>{f.addTodo({project:B.project,task:B.task,status:"pending"})}),s(!1)},[f]),U=l.useCallback(L=>{L.preventDefault();const H=w.current?.firstElementChild;if(!H||!w.current)return;M.current=L.clientX,x.current=H.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const _=I=>{if(!w.current)return;const z=I.clientX-M.current,V=w.current.getBoundingClientRect().width,A=296,j=200,q=V-A-j-20;let X=x.current+z;X=Math.max(j,Math.min(q,X)),S(X)},B=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",B)},[]),G={selectedDate:e,setSelectedDate:R,selectedProjects:c,toggleProject:N,clearProjectFilter:T,report:f,config:p,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:D,saveMultipleReports:k};return Y.jsx(CN.Provider,{value:G,children:Y.jsx(Qo,{theme:{algorithm:aJ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:Y.jsxs(Ra,{style:{height:"100vh",overflow:"hidden"},children:[Y.jsx(VJ,{selectedDate:e,onDateChange:R,onImportClick:()=>s(!0),selectedProjects:P,onRemoveProject:N,onClearProjectFilter:T}),Y.jsx(hee,{className:"dashboard-content",style:{padding:16,background:"#f0f2f5",flex:1,display:"flex",flexDirection:"column"},children:Y.jsxs("div",{ref:w,className:"dashboard-container",children:[Y.jsx("div",{className:"dashboard-timeline",style:{width:$??void 0,flex:$?void 0:1},children:Y.jsx(JJ,{selectedDate:e,onEditClick:()=>r(!0),selectedProjects:c})}),Y.jsx("div",{className:"dashboard-resizer",onMouseDown:U,children:Y.jsx("div",{className:"dashboard-resizer-handle"})}),Y.jsx("div",{className:"dashboard-todo",children:Y.jsx(oee,{selectedDate:e,selectedProjects:c})}),Y.jsxs("div",{className:"dashboard-right-column",children:[Y.jsx("div",{className:"dashboard-calendar",children:Y.jsx(FJ,{selectedDate:e,onDateSelect:O,selectedProjects:c})}),Y.jsx("div",{className:"dashboard-project",children:Y.jsx(aee,{selectedProjects:c,onToggleProject:N})})]})]})}),Y.jsx(ao,{title:null,open:n,onCancel:()=>r(!1),footer:null,width:"90%",style:{top:20},styles:{body:{height:"calc(100vh - 120px)",padding:0}},destroyOnHidden:!0,children:Y.jsx(uee,{selectedDate:e,onClose:()=>r(!1)})}),Y.jsx(oN,{title:"ルーチンから取り込み",placement:"right",size:"large",onClose:()=>s(!1),open:i,children:Y.jsx(lee,{onApplyRoutine:W})})]})})})},{Footer:Cee}=Ra,{Text:$ee}=Ir;function bee(){return Y.jsx(yee,{})}J4.createRoot(document.getElementById("root")).render(Y.jsx(l.StrictMode,{children:Y.jsx(bee,{})}));