mdjournal 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-ZdrLtBOb.js +390 -0
- package/dist/client/dist/assets/index-ZdrLtBOb.js +390 -0
- package/dist/client/dist/index.html +1 -1
- package/dist/client/index.html +1 -1
- package/dist/packages/contract/mdjournal/schemas/types.d.ts +2 -0
- package/dist/packages/contract/mdjournal/schemas/types.d.ts.map +1 -1
- package/dist/packages/contract/mdjournal/schemas/validators.d.ts +8 -0
- package/dist/packages/contract/mdjournal/schemas/validators.d.ts.map +1 -1
- package/dist/packages/contract/mdjournal/schemas/validators.js +4 -0
- package/dist/packages/contract/mdjournal/schemas/validators.js.map +1 -1
- package/dist/server/src/cli.js +1 -0
- package/dist/server/src/cli.js.map +1 -1
- package/dist/server/src/types/index.d.ts +1 -0
- package/dist/server/src/types/index.d.ts.map +1 -1
- package/dist/server/src/utils/fileManager.d.ts.map +1 -1
- package/dist/server/src/utils/fileManager.js +3 -1
- package/dist/server/src/utils/fileManager.js.map +1 -1
- package/dist/server/src/utils/slack.js +5 -5
- package/dist/server/src/utils/slack.js.map +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-DQXpB8CS.js +0 -399
- package/dist/client/dist/assets/index-DQXpB8CS.js +0 -399
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
function WP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)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(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function Na(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iy={exports:{}},Dc={};var bw;function YP(){if(bw)return Dc;bw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var c=null;if(s!==void 0&&(c=""+s),a.key!==void 0&&(c=""+a.key),"key"in a){s={};for(var d in a)d!=="key"&&(s[d]=a[d])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:s}}return Dc.Fragment=t,Dc.jsx=n,Dc.jsxs=n,Dc}var vw;function UP(){return vw||(vw=1,iy.exports=YP()),iy.exports}var X=UP(),ly={exports:{}},Ot={};var Sw;function qP(){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"),a=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"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function b(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function w(P,A,k){this.props=P,this.context=A,this.refs=C,this.updater=k||v}w.prototype.isReactComponent={},w.prototype.setState=function(P,A){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,A,"setState")},w.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function R(){}R.prototype=w.prototype;function $(P,A,k){this.props=P,this.context=A,this.refs=C,this.updater=k||v}var E=$.prototype=new R;E.constructor=$,x(E,w.prototype),E.isPureReactComponent=!0;var T=Array.isArray;function N(){}var O={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function j(P,A,k){var q=k.ref;return{$$typeof:e,type:P,key:A,ref:q!==void 0?q:null,props:k}}function B(P,A){return j(P.type,A,P.props)}function V(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function U(P){var A={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(k){return A[k]})}var G=/\/+/g;function Y(P,A){return typeof P=="object"&&P!==null&&P.key!=null?U(""+P.key):A.toString(36)}function _(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(N,N):(P.status="pending",P.then(function(A){P.status==="pending"&&(P.status="fulfilled",P.value=A)},function(A){P.status==="pending"&&(P.status="rejected",P.reason=A)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function H(P,A,k,q,K){var Z=typeof P;(Z==="undefined"||Z==="boolean")&&(P=null);var J=!1;if(P===null)J=!0;else switch(Z){case"bigint":case"string":case"number":J=!0;break;case"object":switch(P.$$typeof){case e:case t:J=!0;break;case g:return J=P._init,H(J(P._payload),A,k,q,K)}}if(J)return K=K(P),J=q===""?"."+Y(P,0):q,T(K)?(k="",J!=null&&(k=J.replace(G,"$&/")+"/"),H(K,A,k,"",function(ne){return ne})):K!=null&&(V(K)&&(K=B(K,k+(K.key==null||P&&P.key===K.key?"":(""+K.key).replace(G,"$&/")+"/")+J)),A.push(K)),1;J=0;var re=q===""?".":q+":";if(T(P))for(var ie=0;ie<P.length;ie++)q=P[ie],Z=re+Y(q,ie),J+=H(q,A,k,Z,K);else if(ie=b(P),typeof ie=="function")for(P=ie.call(P),ie=0;!(q=P.next()).done;)q=q.value,Z=re+Y(q,ie++),J+=H(q,A,k,Z,K);else if(Z==="object"){if(typeof P.then=="function")return H(_(P),A,k,q,K);throw A=String(P),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}return J}function F(P,A,k){if(P==null)return P;var q=[],K=0;return H(P,q,"","",function(Z){return A.call(k,Z,K++)}),q}function I(P){if(P._status===-1){var A=P._result;A=A(),A.then(function(k){(P._status===0||P._status===-1)&&(P._status=1,P._result=k)},function(k){(P._status===0||P._status===-1)&&(P._status=2,P._result=k)}),P._status===-1&&(P._status=0,P._result=A)}if(P._status===1)return P._result.default;throw P._result}var z=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},L={map:F,forEach:function(P,A,k){F(P,function(){A.apply(this,arguments)},k)},count:function(P){var A=0;return F(P,function(){A++}),A},toArray:function(P){return F(P,function(A){return A})||[]},only:function(P){if(!V(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return Ot.Activity=h,Ot.Children=L,Ot.Component=w,Ot.Fragment=n,Ot.Profiler=a,Ot.PureComponent=$,Ot.StrictMode=r,Ot.Suspense=f,Ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Ot.__COMPILER_RUNTIME={__proto__:null,c:function(P){return O.H.useMemoCache(P)}},Ot.cache=function(P){return function(){return P.apply(null,arguments)}},Ot.cacheSignal=function(){return null},Ot.cloneElement=function(P,A,k){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var q=x({},P.props),K=P.key;if(A!=null)for(Z in A.key!==void 0&&(K=""+A.key),A)!D.call(A,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&A.ref===void 0||(q[Z]=A[Z]);var Z=arguments.length-2;if(Z===1)q.children=k;else if(1<Z){for(var J=Array(Z),re=0;re<Z;re++)J[re]=arguments[re+2];q.children=J}return j(P.type,K,q)},Ot.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:s,_context:P},P},Ot.createElement=function(P,A,k){var q,K={},Z=null;if(A!=null)for(q in A.key!==void 0&&(Z=""+A.key),A)D.call(A,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(K[q]=A[q]);var J=arguments.length-2;if(J===1)K.children=k;else if(1<J){for(var re=Array(J),ie=0;ie<J;ie++)re[ie]=arguments[ie+2];K.children=re}if(P&&P.defaultProps)for(q in J=P.defaultProps,J)K[q]===void 0&&(K[q]=J[q]);return j(P,Z,K)},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(P){return{$$typeof:d,render:P}},Ot.isValidElement=V,Ot.lazy=function(P){return{$$typeof:g,_payload:{_status:-1,_result:P},_init:I}},Ot.memo=function(P,A){return{$$typeof:m,type:P,compare:A===void 0?null:A}},Ot.startTransition=function(P){var A=O.T,k={};O.T=k;try{var q=P(),K=O.S;K!==null&&K(k,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(N,z)}catch(Z){z(Z)}finally{A!==null&&k.types!==null&&(A.types=k.types),O.T=A}},Ot.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Ot.use=function(P){return O.H.use(P)},Ot.useActionState=function(P,A,k){return O.H.useActionState(P,A,k)},Ot.useCallback=function(P,A){return O.H.useCallback(P,A)},Ot.useContext=function(P){return O.H.useContext(P)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(P,A){return O.H.useDeferredValue(P,A)},Ot.useEffect=function(P,A){return O.H.useEffect(P,A)},Ot.useEffectEvent=function(P){return O.H.useEffectEvent(P)},Ot.useId=function(){return O.H.useId()},Ot.useImperativeHandle=function(P,A,k){return O.H.useImperativeHandle(P,A,k)},Ot.useInsertionEffect=function(P,A){return O.H.useInsertionEffect(P,A)},Ot.useLayoutEffect=function(P,A){return O.H.useLayoutEffect(P,A)},Ot.useMemo=function(P,A){return O.H.useMemo(P,A)},Ot.useOptimistic=function(P,A){return O.H.useOptimistic(P,A)},Ot.useReducer=function(P,A,k){return O.H.useReducer(P,A,k)},Ot.useRef=function(P){return O.H.useRef(P)},Ot.useState=function(P){return O.H.useState(P)},Ot.useSyncExternalStore=function(P,A,k){return O.H.useSyncExternalStore(P,A,k)},Ot.useTransition=function(){return O.H.useTransition()},Ot.version="19.2.4",Ot}var Cw;function MS(){return Cw||(Cw=1,ly.exports=qP()),ly.exports}var l=MS();const oe=Na(l),GP=WP({__proto__:null,default:oe},[l]);var sy={exports:{}},jc={},cy={exports:{}},uy={};var xw;function XP(){return xw||(xw=1,(function(e){function t(H,F){var I=H.length;H.push(F);e:for(;0<I;){var z=I-1>>>1,L=H[z];if(0<a(L,F))H[z]=F,H[I]=L,I=z;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var F=H[0],I=H.pop();if(I!==F){H[0]=I;e:for(var z=0,L=H.length,P=L>>>1;z<P;){var A=2*(z+1)-1,k=H[A],q=A+1,K=H[q];if(0>a(k,I))q<L&&0>a(K,k)?(H[z]=K,H[q]=I,z=q):(H[z]=k,H[A]=I,z=A);else if(q<L&&0>a(K,I))H[z]=K,H[q]=I,z=q;else break e}}return F}function a(H,F){var I=H.sortIndex-F.sortIndex;return I!==0?I:H.id-F.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=[],m=[],g=1,h=null,y=3,b=!1,v=!1,x=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function E(H){for(var F=n(m);F!==null;){if(F.callback===null)r(m);else if(F.startTime<=H)r(m),F.sortIndex=F.expirationTime,t(f,F);else break;F=n(m)}}function T(H){if(x=!1,E(H),!v)if(n(f)!==null)v=!0,N||(N=!0,U());else{var F=n(m);F!==null&&_(T,F.startTime-H)}}var N=!1,O=-1,D=5,j=-1;function B(){return C?!0:!(e.unstable_now()-j<D)}function V(){if(C=!1,N){var H=e.unstable_now();j=H;var F=!0;try{e:{v=!1,x&&(x=!1,R(O),O=-1),b=!0;var I=y;try{t:{for(E(H),h=n(f);h!==null&&!(h.expirationTime>H&&B());){var z=h.callback;if(typeof z=="function"){h.callback=null,y=h.priorityLevel;var L=z(h.expirationTime<=H);if(H=e.unstable_now(),typeof L=="function"){h.callback=L,E(H),F=!0;break t}h===n(f)&&r(f),E(H)}else r(f);h=n(f)}if(h!==null)F=!0;else{var P=n(m);P!==null&&_(T,P.startTime-H),F=!1}}break e}finally{h=null,y=I,b=!1}F=void 0}}finally{F?U():N=!1}}}var U;if(typeof $=="function")U=function(){$(V)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,Y=G.port2;G.port1.onmessage=V,U=function(){Y.postMessage(null)}}else U=function(){w(V,0)};function _(H,F){O=w(function(){H(e.unstable_now())},F)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(H){switch(y){case 1:case 2:case 3:var F=3;break;default:F=y}var I=y;y=F;try{return H()}finally{y=I}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(H,F){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var I=y;y=H;try{return F()}finally{y=I}},e.unstable_scheduleCallback=function(H,F,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,H){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=I+L,H={id:g++,callback:F,priorityLevel:H,startTime:I,expirationTime:L,sortIndex:-1},I>z?(H.sortIndex=I,t(m,H),n(f)===null&&H===n(m)&&(x?(R(O),O=-1):x=!0,_(T,I-z))):(H.sortIndex=L,t(f,H),v||b||(v=!0,N||(N=!0,U()))),H},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(H){var F=y;return function(){var I=y;y=F;try{return H.apply(this,arguments)}finally{y=I}}}})(uy)),uy}var $w;function KP(){return $w||($w=1,cy.exports=XP()),cy.exports}var dy={exports:{}},$r={};var ww;function QP(){if(ww)return $r;ww=1;var e=MS();function t(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(f,m,g){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:f,containerInfo:m,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,m){if(f==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return $r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,$r.createPortal=function(f,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(f,m,null,g)},$r.flushSync=function(f){var m=c.T,g=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=m,r.p=g,r.d.f()}},$r.preconnect=function(f,m){typeof f=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(f,m))},$r.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},$r.preinit=function(f,m){if(typeof f=="string"&&m&&typeof m.as=="string"){var g=m.as,h=d(g,m.crossOrigin),y=typeof m.integrity=="string"?m.integrity:void 0,b=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?r.d.S(f,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:b}):g==="script"&&r.d.X(f,{crossOrigin:h,integrity:y,fetchPriority:b,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},$r.preinitModule=function(f,m){if(typeof f=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=d(m.as,m.crossOrigin);r.d.M(f,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(f)},$r.preload=function(f,m){if(typeof f=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,h=d(g,m.crossOrigin);r.d.L(f,g,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},$r.preloadModule=function(f,m){if(typeof f=="string")if(m){var g=d(m.as,m.crossOrigin);r.d.m(f,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(f)},$r.requestFormReset=function(f){r.d.r(f)},$r.unstable_batchedUpdates=function(f,m){return f(m)},$r.useFormState=function(f,m,g){return c.H.useFormState(f,m,g)},$r.useFormStatus=function(){return c.H.useHostTransitionStatus()},$r.version="19.2.4",$r}var Ew;function u4(){if(Ew)return dy.exports;Ew=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(),dy.exports=QP(),dy.exports}var Mw;function ZP(){if(Mw)return jc;Mw=1;var e=KP(),t=MS(),n=u4();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var i=o,u=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(u=i.return),o=i.return;while(o)}return i.tag===3?u:null}function c(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function d(o){if(o.tag===31){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function m(o){var i=o.alternate;if(!i){if(i=s(o),i===null)throw Error(r(188));return i!==o?null:o}for(var u=o,p=i;;){var S=u.return;if(S===null)break;var M=S.alternate;if(M===null){if(p=S.return,p!==null){u=p;continue}break}if(S.child===M.child){for(M=S.child;M;){if(M===u)return f(S),o;if(M===p)return f(S),i;M=M.sibling}throw Error(r(188))}if(u.return!==p.return)u=S,p=M;else{for(var W=!1,ee=S.child;ee;){if(ee===u){W=!0,u=S,p=M;break}if(ee===p){W=!0,p=S,u=M;break}ee=ee.sibling}if(!W){for(ee=M.child;ee;){if(ee===u){W=!0,u=M,p=S;break}if(ee===p){W=!0,p=M,u=S;break}ee=ee.sibling}if(!W)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:i}function g(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=g(o),i!==null)return i;o=o.sibling}return null}var h=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),$=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function U(o){return o===null||typeof o!="object"?null:(o=V&&o[V]||o["@@iterator"],typeof o=="function"?o:null)}var G=Symbol.for("react.client.reference");function Y(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 x:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case j:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case v:return"Portal";case $:return o.displayName||"Context";case R:return(o._context.displayName||"Context")+".Consumer";case E:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case O:return i=o.displayName||null,i!==null?i:Y(o.type)||"Memo";case D:i=o._payload,o=o._init;try{return Y(o(i))}catch{}}return null}var _=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},z=[],L=-1;function P(o){return{current:o}}function A(o){0>L||(o.current=z[L],z[L]=null,L--)}function k(o,i){L++,z[L]=o.current,o.current=i}var q=P(null),K=P(null),Z=P(null),J=P(null);function re(o,i){switch(k(Z,i),k(K,o),k(q,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?V$(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=V$(i),o=F$(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}A(q),k(q,o)}function ie(){A(q),A(K),A(Z)}function ne(o){o.memoizedState!==null&&k(J,o);var i=q.current,u=F$(i,o.type);i!==u&&(k(K,o),k(q,u))}function le(o){K.current===o&&(A(q),A(K)),J.current===o&&(A(J),Ic._currentValue=I)}var se,ce;function me(o){if(se===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);se=i&&i[1]||"",ce=-1<u.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+se+o+ce}var ae=!1;function fe(o,i){if(!o||ae)return"";ae=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(i){var We=function(){throw Error()};if(Object.defineProperty(We.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(We,[])}catch(Oe){var Ee=Oe}Reflect.construct(o,[],We)}else{try{We.call()}catch(Oe){Ee=Oe}o.call(We.prototype)}}else{try{throw Error()}catch(Oe){Ee=Oe}(We=o())&&typeof We.catch=="function"&&We.catch(function(){})}}catch(Oe){if(Oe&&Ee&&typeof Oe.stack=="string")return[Oe.stack,Ee.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=p.DetermineComponentFrameRoot(),W=M[0],ee=M[1];if(W&&ee){var de=W.split(`
|
|
4
|
+
`),we=ee.split(`
|
|
5
|
+
`);for(S=p=0;p<de.length&&!de[p].includes("DetermineComponentFrameRoot");)p++;for(;S<we.length&&!we[S].includes("DetermineComponentFrameRoot");)S++;if(p===de.length||S===we.length)for(p=de.length-1,S=we.length-1;1<=p&&0<=S&&de[p]!==we[S];)S--;for(;1<=p&&0<=S;p--,S--)if(de[p]!==we[S]){if(p!==1||S!==1)do if(p--,S--,0>S||de[p]!==we[S]){var De=`
|
|
6
|
+
`+de[p].replace(" at new "," at ");return o.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",o.displayName)),De}while(1<=p&&0<=S);break}}}finally{ae=!1,Error.prepareStackTrace=u}return(u=o?o.displayName||o.name:"")?me(u):""}function ge(o,i){switch(o.tag){case 26:case 27:case 5:return me(o.type);case 16:return me("Lazy");case 13:return o.child!==i&&i!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return fe(o.type,!1);case 11:return fe(o.type.render,!1);case 1:return fe(o.type,!0);case 31:return me("Activity");default:return""}}function he(o){try{var i="",u=null;do i+=ge(o,u),u=o,o=o.return;while(o);return i}catch(p){return`
|
|
7
|
+
Error generating stack: `+p.message+`
|
|
8
|
+
`+p.stack}}var ye=Object.prototype.hasOwnProperty,Ae=e.unstable_scheduleCallback,xe=e.unstable_cancelCallback,Se=e.unstable_shouldYield,ue=e.unstable_requestPaint,ve=e.unstable_now,Me=e.unstable_getCurrentPriorityLevel,Pe=e.unstable_ImmediatePriority,je=e.unstable_UserBlockingPriority,Be=e.unstable_NormalPriority,Ze=e.unstable_LowPriority,Fe=e.unstable_IdlePriority,_e=e.log,He=e.unstable_setDisableYieldValue,Ke=null,Ne=null;function Ce(o){if(typeof _e=="function"&&He(o),Ne&&typeof Ne.setStrictMode=="function")try{Ne.setStrictMode(Ke,o)}catch{}}var Ye=Math.clz32?Math.clz32:Ge,et=Math.log,Le=Math.LN2;function Ge(o){return o>>>=0,o===0?32:31-(et(o)/Le|0)|0}var Re=256,Xe=262144,tt=4194304;function at(o){var i=o&42;if(i!==0)return i;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 bt(o,i,u){var p=o.pendingLanes;if(p===0)return 0;var S=0,M=o.suspendedLanes,W=o.pingedLanes;o=o.warmLanes;var ee=p&134217727;return ee!==0?(p=ee&~M,p!==0?S=at(p):(W&=ee,W!==0?S=at(W):u||(u=ee&~o,u!==0&&(S=at(u))))):(ee=p&~M,ee!==0?S=at(ee):W!==0?S=at(W):u||(u=p&~o,u!==0&&(S=at(u)))),S===0?0:i!==0&&i!==S&&(i&M)===0&&(M=S&-S,u=i&-i,M>=u||M===32&&(u&4194048)!==0)?i:S}function ht(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function xt(o,i){switch(o){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 ke(){var o=tt;return tt<<=1,(tt&62914560)===0&&(tt=4194304),o}function Qe(o){for(var i=[],u=0;31>u;u++)i.push(o);return i}function ze(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ie(o,i,u,p,S,M){var W=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,de=o.expirationTimes,we=o.hiddenUpdates;for(u=W&~u;0<u;){var De=31-Ye(u),We=1<<De;ee[De]=0,de[De]=-1;var Ee=we[De];if(Ee!==null)for(we[De]=null,De=0;De<Ee.length;De++){var Oe=Ee[De];Oe!==null&&(Oe.lane&=-536870913)}u&=~We}p!==0&&Ue(o,p,0),M!==0&&S===0&&o.tag!==0&&(o.suspendedLanes|=M&~(W&~i))}function Ue(o,i,u){o.pendingLanes|=i,o.suspendedLanes&=~i;var p=31-Ye(i);o.entangledLanes|=i,o.entanglements[p]=o.entanglements[p]|1073741824|u&261930}function Te(o,i){var u=o.entangledLanes|=i;for(o=o.entanglements;u;){var p=31-Ye(u),S=1<<p;S&i|o[p]&i&&(o[p]|=i),u&=~S}}function qe(o,i){var u=i&-i;return u=(u&42)!==0?1:Je(u),(u&(o.suspendedLanes|i))!==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 ot(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function ft(){var o=F.p;return o!==0?o:(o=window.event,o===void 0?32:dw(o.type))}function Lt(o,i){var u=F.p;try{return F.p=o,i()}finally{F.p=u}}var Tt=Math.random().toString(36).slice(2),$t="__reactFiber$"+Tt,dn="__reactProps$"+Tt,Mn="__reactContainer$"+Tt,lt="__reactEvents$"+Tt,Wt="__reactListeners$"+Tt,nt="__reactHandles$"+Tt,gt="__reactResources$"+Tt,Dt="__reactMarker$"+Tt;function en(o){delete o[$t],delete o[dn],delete o[lt],delete o[Wt],delete o[nt]}function Vt(o){var i=o[$t];if(i)return i;for(var u=o.parentNode;u;){if(i=u[Mn]||u[$t]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(o=X$(o);o!==null;){if(u=o[$t])return u;o=X$(o)}return i}o=u,u=o.parentNode}return null}function tn(o){if(o=o[$t]||o[Mn]){var i=o.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return o}return null}function on(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function Pn(o){var i=o[gt];return i||(i=o[gt]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function an(o){o[Dt]=!0}var Sr=new Set,zr={};function gn(o,i){Qn(o,i),Qn(o+"Capture",i)}function Qn(o,i){for(zr[o]=i,o=0;o<i.length;o++)Sr.add(i[o])}var Or=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]*$"),vt={},Rn={};function zn(o){return ye.call(Rn,o)?!0:ye.call(vt,o)?!1:Or.test(o)?Rn[o]=!0:(vt[o]=!0,!1)}function Cr(o,i,u){if(zn(i))if(u===null)o.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var p=i.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+u)}}function xr(o,i,u){if(u===null)o.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+u)}}function Zn(o,i,u,p){if(p===null)o.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttributeNS(i,u,""+p)}}function Dn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Eo(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function na(o,i,u){var p=Object.getOwnPropertyDescriptor(o.constructor.prototype,i);if(!o.hasOwnProperty(i)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,M=p.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return S.call(this)},set:function(W){u=""+W,M.call(this,W)}}),Object.defineProperty(o,i,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(W){u=""+W},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Mo(o){if(!o._valueTracker){var i=Eo(o)?"checked":"value";o._valueTracker=na(o,i,""+o[i])}}function Lo(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var u=i.getValue(),p="";return o&&(p=Eo(o)?o.checked?"true":"false":o.value),o=p,o!==u?(i.setValue(o),!0):!1}function Vo(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 rt=/[\n"\\]/g;function wt(o){return o.replace(rt,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function lo(o,i,u,p,S,M,W,ee){o.name="",W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?o.type=W:o.removeAttribute("type"),i!=null?W==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+Dn(i)):o.value!==""+Dn(i)&&(o.value=""+Dn(i)):W!=="submit"&&W!=="reset"||o.removeAttribute("value"),i!=null?Fo(o,W,Dn(i)):u!=null?Fo(o,W,Dn(u)):p!=null&&o.removeAttribute("value"),S==null&&M!=null&&(o.defaultChecked=!!M),S!=null&&(o.checked=S&&typeof S!="function"&&typeof S!="symbol"),ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?o.name=""+Dn(ee):o.removeAttribute("name")}function za(o,i,u,p,S,M,W,ee){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(o.type=M),i!=null||u!=null){if(!(M!=="submit"&&M!=="reset"||i!=null)){Mo(o);return}u=u!=null?""+Dn(u):"",i=i!=null?""+Dn(i):u,ee||i===o.value||(o.value=i),o.defaultValue=i}p=p??S,p=typeof p!="function"&&typeof p!="symbol"&&!!p,o.checked=ee?o.checked:!!p,o.defaultChecked=!!p,W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"&&(o.name=W),Mo(o)}function Fo(o,i,u){i==="number"&&Vo(o.ownerDocument)===o||o.defaultValue===""+u||(o.defaultValue=""+u)}function qr(o,i,u,p){if(o=o.options,i){i={};for(var S=0;S<u.length;S++)i["$"+u[S]]=!0;for(u=0;u<o.length;u++)S=i.hasOwnProperty("$"+o[u].value),o[u].selected!==S&&(o[u].selected=S),S&&p&&(o[u].defaultSelected=!0)}else{for(u=""+Dn(u),i=null,S=0;S<o.length;S++){if(o[S].value===u){o[S].selected=!0,p&&(o[S].defaultSelected=!0);return}i!==null||o[S].disabled||(i=o[S])}i!==null&&(i.selected=!0)}}function Aa(o,i,u){if(i!=null&&(i=""+Dn(i),i!==o.value&&(o.value=i),u==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=u!=null?""+Dn(u):""}function vl(o,i,u,p){if(i==null){if(p!=null){if(u!=null)throw Error(r(92));if(_(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),i=u}u=Dn(i),o.defaultValue=u,p=o.textContent,p===u&&p!==""&&p!==null&&(o.value=p),Mo(o)}function ko(o,i){if(i){var u=o.firstChild;if(u&&u===o.lastChild&&u.nodeType===3){u.nodeValue=i;return}}o.textContent=i}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 yt(o,i,u){var p=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":p?o.setProperty(i,u):typeof u!="number"||u===0||Mt.has(i)?i==="float"?o.cssFloat=u:o[i]=(""+u).trim():o[i]=u+"px"}function Jn(o,i,u){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||i!=null&&i.hasOwnProperty(p)||(p.indexOf("--")===0?o.setProperty(p,""):p==="float"?o.cssFloat="":o[p]="");for(var S in i)p=i[S],i.hasOwnProperty(S)&&u[S]!==p&&yt(o,S,p)}else for(var M in i)i.hasOwnProperty(M)&&yt(o,M,i[M])}function Ar(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 Sl=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"]]),ag=/^[\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 Cl(o){return ag.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Ro(){}var kt=null;function St(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Et=null,fn=null;function kn(o){var i=tn(o);if(i&&(o=i.stateNode)){var u=o[dn]||null;e:switch(o=i.stateNode,i.type){case"input":if(lo(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=o;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+wt(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var p=u[i];if(p!==o&&p.form===o.form){var S=p[dn]||null;if(!S)throw Error(r(90));lo(p,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(i=0;i<u.length;i++)p=u[i],p.form===o.form&&Lo(p)}break e;case"textarea":Aa(o,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&qr(o,!!u.multiple,i,!1)}}}var qs=!1;function V1(o,i,u){if(qs)return o(i,u);qs=!0;try{var p=o(i);return p}finally{if(qs=!1,(Et!==null||fn!==null)&&(hf(),Et&&(i=Et,o=fn,fn=Et=null,kn(i),o)))for(i=0;i<o.length;i++)kn(o[i])}}function Gs(o,i){var u=o.stateNode;if(u===null)return null;var p=u[dn]||null;if(p===null)return null;u=p[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ig=!1;if(ra)try{var Xs={};Object.defineProperty(Xs,"passive",{get:function(){ig=!0}}),window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{ig=!1}var Da=null,lg=null,Od=null;function F1(){if(Od)return Od;var o,i=lg,u=i.length,p,S="value"in Da?Da.value:Da.textContent,M=S.length;for(o=0;o<u&&i[o]===S[o];o++);var W=u-o;for(p=1;p<=W&&i[u-p]===S[M-p];p++);return Od=S.slice(o,1<p?1-p:void 0)}function Nd(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function Id(){return!0}function k1(){return!1}function Dr(o){function i(u,p,S,M,W){this._reactName=u,this._targetInst=S,this.type=p,this.nativeEvent=M,this.target=W,this.currentTarget=null;for(var ee in o)o.hasOwnProperty(ee)&&(u=o[ee],this[ee]=u?u(M):M[ee]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Id:k1,this.isPropagationStopped=k1,this}return h(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Id)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Id)},persist:function(){},isPersistent:Id}),i}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pd=Dr(xi),Ks=h({},xi,{view:0,detail:0}),F3=Dr(Ks),sg,cg,Qs,zd=h({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dg,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!==Qs&&(Qs&&o.type==="mousemove"?(sg=o.screenX-Qs.screenX,cg=o.screenY-Qs.screenY):cg=sg=0,Qs=o),sg)},movementY:function(o){return"movementY"in o?o.movementY:cg}}),W1=Dr(zd),k3=h({},zd,{dataTransfer:0}),W3=Dr(k3),Y3=h({},Ks,{relatedTarget:0}),ug=Dr(Y3),U3=h({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),q3=Dr(U3),G3=h({},xi,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),X3=Dr(G3),K3=h({},xi,{data:0}),Y1=Dr(K3),Q3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z3={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"},J3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eI(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=J3[o])?!!i[o]:!1}function dg(){return eI}var tI=h({},Ks,{key:function(o){if(o.key){var i=Q3[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=Nd(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Z3[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dg,charCode:function(o){return o.type==="keypress"?Nd(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Nd(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),nI=Dr(tI),rI=h({},zd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),U1=Dr(rI),oI=h({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dg}),aI=Dr(oI),iI=h({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),lI=Dr(iI),sI=h({},zd,{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}),cI=Dr(sI),uI=h({},xi,{newState:0,oldState:0}),dI=Dr(uI),fI=[9,13,27,32],fg=ra&&"CompositionEvent"in window,Zs=null;ra&&"documentMode"in document&&(Zs=document.documentMode);var mI=ra&&"TextEvent"in window&&!Zs,q1=ra&&(!fg||Zs&&8<Zs&&11>=Zs),G1=" ",X1=!1;function K1(o,i){switch(o){case"keyup":return fI.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Q1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var xl=!1;function pI(o,i){switch(o){case"compositionend":return Q1(i);case"keypress":return i.which!==32?null:(X1=!0,G1);case"textInput":return o=i.data,o===G1&&X1?null:o;default:return null}}function gI(o,i){if(xl)return o==="compositionend"||!fg&&K1(o,i)?(o=F1(),Od=lg=Da=null,xl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return q1&&i.locale!=="ko"?null:i.data;default:return null}}var hI={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 Z1(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!hI[o.type]:i==="textarea"}function J1(o,i,u,p){Et?fn?fn.push(p):fn=[p]:Et=p,i=$f(i,"onChange"),0<i.length&&(u=new Pd("onChange","change",null,u,p),o.push({event:u,listeners:i}))}var Js=null,ec=null;function yI(o){D$(o,0)}function Ad(o){var i=on(o);if(Lo(i))return o}function eC(o,i){if(o==="change")return i}var tC=!1;if(ra){var mg;if(ra){var pg="oninput"in document;if(!pg){var nC=document.createElement("div");nC.setAttribute("oninput","return;"),pg=typeof nC.oninput=="function"}mg=pg}else mg=!1;tC=mg&&(!document.documentMode||9<document.documentMode)}function rC(){Js&&(Js.detachEvent("onpropertychange",oC),ec=Js=null)}function oC(o){if(o.propertyName==="value"&&Ad(ec)){var i=[];J1(i,ec,o,St(o)),V1(yI,i)}}function bI(o,i,u){o==="focusin"?(rC(),Js=i,ec=u,Js.attachEvent("onpropertychange",oC)):o==="focusout"&&rC()}function vI(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Ad(ec)}function SI(o,i){if(o==="click")return Ad(i)}function CI(o,i){if(o==="input"||o==="change")return Ad(i)}function xI(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var Gr=typeof Object.is=="function"?Object.is:xI;function tc(o,i){if(Gr(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var u=Object.keys(o),p=Object.keys(i);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var S=u[p];if(!ye.call(i,S)||!Gr(o[S],i[S]))return!1}return!0}function aC(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function iC(o,i){var u=aC(o);o=0;for(var p;u;){if(u.nodeType===3){if(p=o+u.textContent.length,o<=i&&p>=i)return{node:u,offset:i-o};o=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=aC(u)}}function lC(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?lC(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function sC(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=Vo(o.document);i instanceof o.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)o=i.contentWindow;else break;i=Vo(o.document)}return i}function gg(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var $I=ra&&"documentMode"in document&&11>=document.documentMode,$l=null,hg=null,nc=null,yg=!1;function cC(o,i,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;yg||$l==null||$l!==Vo(p)||(p=$l,"selectionStart"in p&&gg(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),nc&&tc(nc,p)||(nc=p,p=$f(hg,"onSelect"),0<p.length&&(i=new Pd("onSelect","select",null,i,u),o.push({event:i,listeners:p}),i.target=$l)))}function $i(o,i){var u={};return u[o.toLowerCase()]=i.toLowerCase(),u["Webkit"+o]="webkit"+i,u["Moz"+o]="moz"+i,u}var wl={animationend:$i("Animation","AnimationEnd"),animationiteration:$i("Animation","AnimationIteration"),animationstart:$i("Animation","AnimationStart"),transitionrun:$i("Transition","TransitionRun"),transitionstart:$i("Transition","TransitionStart"),transitioncancel:$i("Transition","TransitionCancel"),transitionend:$i("Transition","TransitionEnd")},bg={},uC={};ra&&(uC=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function wi(o){if(bg[o])return bg[o];if(!wl[o])return o;var i=wl[o],u;for(u in i)if(i.hasOwnProperty(u)&&u in uC)return bg[o]=i[u];return o}var dC=wi("animationend"),fC=wi("animationiteration"),mC=wi("animationstart"),wI=wi("transitionrun"),EI=wi("transitionstart"),MI=wi("transitioncancel"),pC=wi("transitionend"),gC=new Map,vg="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(" ");vg.push("scrollEnd");function To(o,i){gC.set(o,i),gn(i,[o])}var Dd=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},so=[],El=0,Sg=0;function jd(){for(var o=El,i=Sg=El=0;i<o;){var u=so[i];so[i++]=null;var p=so[i];so[i++]=null;var S=so[i];so[i++]=null;var M=so[i];if(so[i++]=null,p!==null&&S!==null){var W=p.pending;W===null?S.next=S:(S.next=W.next,W.next=S),p.pending=S}M!==0&&hC(u,S,M)}}function _d(o,i,u,p){so[El++]=o,so[El++]=i,so[El++]=u,so[El++]=p,Sg|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function Cg(o,i,u,p){return _d(o,i,u,p),Hd(o)}function Ei(o,i){return _d(o,null,null,i),Hd(o)}function hC(o,i,u){o.lanes|=u;var p=o.alternate;p!==null&&(p.lanes|=u);for(var S=!1,M=o.return;M!==null;)M.childLanes|=u,p=M.alternate,p!==null&&(p.childLanes|=u),M.tag===22&&(o=M.stateNode,o===null||o._visibility&1||(S=!0)),o=M,M=M.return;return o.tag===3?(M=o.stateNode,S&&i!==null&&(S=31-Ye(u),o=M.hiddenUpdates,p=o[S],p===null?o[S]=[i]:p.push(i),i.lane=u|536870912),M):null}function Hd(o){if(50<wc)throw wc=0,Nh=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var Ml={};function RI(o,i,u,p){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=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xr(o,i,u,p){return new RI(o,i,u,p)}function xg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function oa(o,i){var u=o.alternate;return u===null?(u=Xr(o.tag,i,o.key,o.mode),u.elementType=o.elementType,u.type=o.type,u.stateNode=o.stateNode,u.alternate=o,o.alternate=u):(u.pendingProps=i,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,i=o.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=o.sibling,u.index=o.index,u.ref=o.ref,u.refCleanup=o.refCleanup,u}function yC(o,i){o.flags&=65011714;var u=o.alternate;return u===null?(o.childLanes=0,o.lanes=i,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,i=u.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function Bd(o,i,u,p,S,M){var W=0;if(p=o,typeof o=="function")xg(o)&&(W=1);else if(typeof o=="string")W=PP(o,u,q.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case j:return o=Xr(31,u,i,S),o.elementType=j,o.lanes=M,o;case x:return Mi(u.children,S,M,i);case C:W=8,S|=24;break;case w:return o=Xr(12,u,i,S|2),o.elementType=w,o.lanes=M,o;case T:return o=Xr(13,u,i,S),o.elementType=T,o.lanes=M,o;case N:return o=Xr(19,u,i,S),o.elementType=N,o.lanes=M,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case $:W=10;break e;case R:W=9;break e;case E:W=11;break e;case O:W=14;break e;case D:W=16,p=null;break e}W=29,u=Error(r(130,o===null?"null":typeof o,"")),p=null}return i=Xr(W,u,i,S),i.elementType=o,i.type=p,i.lanes=M,i}function Mi(o,i,u,p){return o=Xr(7,o,p,i),o.lanes=u,o}function $g(o,i,u){return o=Xr(6,o,null,i),o.lanes=u,o}function bC(o){var i=Xr(18,null,null,0);return i.stateNode=o,i}function wg(o,i,u){return i=Xr(4,o.children!==null?o.children:[],o.key,i),i.lanes=u,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var vC=new WeakMap;function co(o,i){if(typeof o=="object"&&o!==null){var u=vC.get(o);return u!==void 0?u:(i={value:o,source:i,stack:he(i)},vC.set(o,i),i)}return{value:o,source:i,stack:he(i)}}var Rl=[],Tl=0,Ld=null,rc=0,uo=[],fo=0,ja=null,Wo=1,Yo="";function aa(o,i){Rl[Tl++]=rc,Rl[Tl++]=Ld,Ld=o,rc=i}function SC(o,i,u){uo[fo++]=Wo,uo[fo++]=Yo,uo[fo++]=ja,ja=o;var p=Wo;o=Yo;var S=32-Ye(p)-1;p&=~(1<<S),u+=1;var M=32-Ye(i)+S;if(30<M){var W=S-S%5;M=(p&(1<<W)-1).toString(32),p>>=W,S-=W,Wo=1<<32-Ye(i)+S|u<<S|p,Yo=M+o}else Wo=1<<M|u<<S|p,Yo=o}function Eg(o){o.return!==null&&(aa(o,1),SC(o,1,0))}function Mg(o){for(;o===Ld;)Ld=Rl[--Tl],Rl[Tl]=null,rc=Rl[--Tl],Rl[Tl]=null;for(;o===ja;)ja=uo[--fo],uo[fo]=null,Yo=uo[--fo],uo[fo]=null,Wo=uo[--fo],uo[fo]=null}function CC(o,i){uo[fo++]=Wo,uo[fo++]=Yo,uo[fo++]=ja,Wo=i.id,Yo=i.overflow,ja=o}var gr=null,Tn=null,Zt=!1,_a=null,mo=!1,Rg=Error(r(519));function Ha(o){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oc(co(i,o)),Rg}function xC(o){var i=o.stateNode,u=o.type,p=o.memoizedProps;switch(i[$t]=o,i[dn]=p,u){case"dialog":Gt("cancel",i),Gt("close",i);break;case"iframe":case"object":case"embed":Gt("load",i);break;case"video":case"audio":for(u=0;u<Mc.length;u++)Gt(Mc[u],i);break;case"source":Gt("error",i);break;case"img":case"image":case"link":Gt("error",i),Gt("load",i);break;case"details":Gt("toggle",i);break;case"input":Gt("invalid",i),za(i,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Gt("invalid",i);break;case"textarea":Gt("invalid",i),vl(i,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||p.suppressHydrationWarning===!0||B$(i.textContent,u)?(p.popover!=null&&(Gt("beforetoggle",i),Gt("toggle",i)),p.onScroll!=null&&Gt("scroll",i),p.onScrollEnd!=null&&Gt("scrollend",i),p.onClick!=null&&(i.onclick=Ro),i=!0):i=!1,i||Ha(o,!0)}function $C(o){for(gr=o.return;gr;)switch(gr.tag){case 5:case 31:case 13:mo=!1;return;case 27:case 3:mo=!0;return;default:gr=gr.return}}function Ol(o){if(o!==gr)return!1;if(!Zt)return $C(o),Zt=!0,!1;var i=o.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=o.type,u=!(u!=="form"&&u!=="button")||Yh(o.type,o.memoizedProps)),u=!u),u&&Tn&&Ha(o),$C(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Tn=G$(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Tn=G$(o)}else i===27?(i=Tn,Za(o.type)?(o=Kh,Kh=null,Tn=o):Tn=i):Tn=gr?go(o.stateNode.nextSibling):null;return!0}function Ri(){Tn=gr=null,Zt=!1}function Tg(){var o=_a;return o!==null&&(Br===null?Br=o:Br.push.apply(Br,o),_a=null),o}function oc(o){_a===null?_a=[o]:_a.push(o)}var Og=P(null),Ti=null,ia=null;function Ba(o,i,u){k(Og,i._currentValue),i._currentValue=u}function la(o){o._currentValue=Og.current,A(Og)}function Ng(o,i,u){for(;o!==null;){var p=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,p!==null&&(p.childLanes|=i)):p!==null&&(p.childLanes&i)!==i&&(p.childLanes|=i),o===u)break;o=o.return}}function Ig(o,i,u,p){var S=o.child;for(S!==null&&(S.return=o);S!==null;){var M=S.dependencies;if(M!==null){var W=S.child;M=M.firstContext;e:for(;M!==null;){var ee=M;M=S;for(var de=0;de<i.length;de++)if(ee.context===i[de]){M.lanes|=u,ee=M.alternate,ee!==null&&(ee.lanes|=u),Ng(M.return,u,o),p||(W=null);break e}M=ee.next}}else if(S.tag===18){if(W=S.return,W===null)throw Error(r(341));W.lanes|=u,M=W.alternate,M!==null&&(M.lanes|=u),Ng(W,u,o),W=null}else W=S.child;if(W!==null)W.return=S;else for(W=S;W!==null;){if(W===o){W=null;break}if(S=W.sibling,S!==null){S.return=W.return,W=S;break}W=W.return}S=W}}function Nl(o,i,u,p){o=null;for(var S=i,M=!1;S!==null;){if(!M){if((S.flags&524288)!==0)M=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var W=S.alternate;if(W===null)throw Error(r(387));if(W=W.memoizedProps,W!==null){var ee=S.type;Gr(S.pendingProps.value,W.value)||(o!==null?o.push(ee):o=[ee])}}else if(S===J.current){if(W=S.alternate,W===null)throw Error(r(387));W.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(o!==null?o.push(Ic):o=[Ic])}S=S.return}o!==null&&Ig(i,o,u,p),i.flags|=262144}function Vd(o){for(o=o.firstContext;o!==null;){if(!Gr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Oi(o){Ti=o,ia=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function hr(o){return wC(Ti,o)}function Fd(o,i){return Ti===null&&Oi(o),wC(o,i)}function wC(o,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},ia===null){if(o===null)throw Error(r(308));ia=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else ia=ia.next=i;return u}var TI=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(u,p){o.push(p)}};this.abort=function(){i.aborted=!0,o.forEach(function(u){return u()})}},OI=e.unstable_scheduleCallback,NI=e.unstable_NormalPriority,Wn={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pg(){return{controller:new TI,data:new Map,refCount:0}}function ac(o){o.refCount--,o.refCount===0&&OI(NI,function(){o.controller.abort()})}var ic=null,zg=0,Il=0,Pl=null;function II(o,i){if(ic===null){var u=ic=[];zg=0,Il=jh(),Pl={status:"pending",value:void 0,then:function(p){u.push(p)}}}return zg++,i.then(EC,EC),i}function EC(){if(--zg===0&&ic!==null){Pl!==null&&(Pl.status="fulfilled");var o=ic;ic=null,Il=0,Pl=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function PI(o,i){var u=[],p={status:"pending",value:null,reason:null,then:function(S){u.push(S)}};return o.then(function(){p.status="fulfilled",p.value=i;for(var S=0;S<u.length;S++)(0,u[S])(i)},function(S){for(p.status="rejected",p.reason=S,S=0;S<u.length;S++)(0,u[S])(void 0)}),p}var MC=H.S;H.S=function(o,i){c$=ve(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&II(o,i),MC!==null&&MC(o,i)};var Ni=P(null);function Ag(){var o=Ni.current;return o!==null?o:wn.pooledCache}function kd(o,i){i===null?k(Ni,Ni.current):k(Ni,i.pool)}function RC(){var o=Ag();return o===null?null:{parent:Wn._currentValue,pool:o}}var zl=Error(r(460)),Dg=Error(r(474)),Wd=Error(r(542)),Yd={then:function(){}};function TC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function OC(o,i,u){switch(u=o[u],u===void 0?o.push(i):u!==i&&(i.then(Ro,Ro),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,IC(o),o;default:if(typeof i.status=="string")i.then(Ro,Ro);else{if(o=wn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(p){if(i.status==="pending"){var S=i;S.status="fulfilled",S.value=p}},function(p){if(i.status==="pending"){var S=i;S.status="rejected",S.reason=p}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,IC(o),o}throw Pi=i,zl}}function Ii(o){try{var i=o._init;return i(o._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Pi=u,zl):u}}var Pi=null;function NC(){if(Pi===null)throw Error(r(459));var o=Pi;return Pi=null,o}function IC(o){if(o===zl||o===Wd)throw Error(r(483))}var Al=null,lc=0;function Ud(o){var i=lc;return lc+=1,Al===null&&(Al=[]),OC(Al,o,i)}function sc(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function qd(o,i){throw i.$$typeof===y?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function PC(o){function i(be,pe){if(o){var $e=be.deletions;$e===null?(be.deletions=[pe],be.flags|=16):$e.push(pe)}}function u(be,pe){if(!o)return null;for(;pe!==null;)i(be,pe),pe=pe.sibling;return null}function p(be){for(var pe=new Map;be!==null;)be.key!==null?pe.set(be.key,be):pe.set(be.index,be),be=be.sibling;return pe}function S(be,pe){return be=oa(be,pe),be.index=0,be.sibling=null,be}function M(be,pe,$e){return be.index=$e,o?($e=be.alternate,$e!==null?($e=$e.index,$e<pe?(be.flags|=67108866,pe):$e):(be.flags|=67108866,pe)):(be.flags|=1048576,pe)}function W(be){return o&&be.alternate===null&&(be.flags|=67108866),be}function ee(be,pe,$e,Ve){return pe===null||pe.tag!==6?(pe=$g($e,be.mode,Ve),pe.return=be,pe):(pe=S(pe,$e),pe.return=be,pe)}function de(be,pe,$e,Ve){var mt=$e.type;return mt===x?De(be,pe,$e.props.children,Ve,$e.key):pe!==null&&(pe.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===D&&Ii(mt)===pe.type)?(pe=S(pe,$e.props),sc(pe,$e),pe.return=be,pe):(pe=Bd($e.type,$e.key,$e.props,null,be.mode,Ve),sc(pe,$e),pe.return=be,pe)}function we(be,pe,$e,Ve){return pe===null||pe.tag!==4||pe.stateNode.containerInfo!==$e.containerInfo||pe.stateNode.implementation!==$e.implementation?(pe=wg($e,be.mode,Ve),pe.return=be,pe):(pe=S(pe,$e.children||[]),pe.return=be,pe)}function De(be,pe,$e,Ve,mt){return pe===null||pe.tag!==7?(pe=Mi($e,be.mode,Ve,mt),pe.return=be,pe):(pe=S(pe,$e),pe.return=be,pe)}function We(be,pe,$e){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return pe=$g(""+pe,be.mode,$e),pe.return=be,pe;if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case b:return $e=Bd(pe.type,pe.key,pe.props,null,be.mode,$e),sc($e,pe),$e.return=be,$e;case v:return pe=wg(pe,be.mode,$e),pe.return=be,pe;case D:return pe=Ii(pe),We(be,pe,$e)}if(_(pe)||U(pe))return pe=Mi(pe,be.mode,$e,null),pe.return=be,pe;if(typeof pe.then=="function")return We(be,Ud(pe),$e);if(pe.$$typeof===$)return We(be,Fd(be,pe),$e);qd(be,pe)}return null}function Ee(be,pe,$e,Ve){var mt=pe!==null?pe.key:null;if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return mt!==null?null:ee(be,pe,""+$e,Ve);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case b:return $e.key===mt?de(be,pe,$e,Ve):null;case v:return $e.key===mt?we(be,pe,$e,Ve):null;case D:return $e=Ii($e),Ee(be,pe,$e,Ve)}if(_($e)||U($e))return mt!==null?null:De(be,pe,$e,Ve,null);if(typeof $e.then=="function")return Ee(be,pe,Ud($e),Ve);if($e.$$typeof===$)return Ee(be,pe,Fd(be,$e),Ve);qd(be,$e)}return null}function Oe(be,pe,$e,Ve,mt){if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint")return be=be.get($e)||null,ee(pe,be,""+Ve,mt);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case b:return be=be.get(Ve.key===null?$e:Ve.key)||null,de(pe,be,Ve,mt);case v:return be=be.get(Ve.key===null?$e:Ve.key)||null,we(pe,be,Ve,mt);case D:return Ve=Ii(Ve),Oe(be,pe,$e,Ve,mt)}if(_(Ve)||U(Ve))return be=be.get($e)||null,De(pe,be,Ve,mt,null);if(typeof Ve.then=="function")return Oe(be,pe,$e,Ud(Ve),mt);if(Ve.$$typeof===$)return Oe(be,pe,$e,Fd(pe,Ve),mt);qd(pe,Ve)}return null}function st(be,pe,$e,Ve){for(var mt=null,ln=null,ut=pe,jt=pe=0,Kt=null;ut!==null&&jt<$e.length;jt++){ut.index>jt?(Kt=ut,ut=null):Kt=ut.sibling;var sn=Ee(be,ut,$e[jt],Ve);if(sn===null){ut===null&&(ut=Kt);break}o&&ut&&sn.alternate===null&&i(be,ut),pe=M(sn,pe,jt),ln===null?mt=sn:ln.sibling=sn,ln=sn,ut=Kt}if(jt===$e.length)return u(be,ut),Zt&&aa(be,jt),mt;if(ut===null){for(;jt<$e.length;jt++)ut=We(be,$e[jt],Ve),ut!==null&&(pe=M(ut,pe,jt),ln===null?mt=ut:ln.sibling=ut,ln=ut);return Zt&&aa(be,jt),mt}for(ut=p(ut);jt<$e.length;jt++)Kt=Oe(ut,be,jt,$e[jt],Ve),Kt!==null&&(o&&Kt.alternate!==null&&ut.delete(Kt.key===null?jt:Kt.key),pe=M(Kt,pe,jt),ln===null?mt=Kt:ln.sibling=Kt,ln=Kt);return o&&ut.forEach(function(ri){return i(be,ri)}),Zt&&aa(be,jt),mt}function Ct(be,pe,$e,Ve){if($e==null)throw Error(r(151));for(var mt=null,ln=null,ut=pe,jt=pe=0,Kt=null,sn=$e.next();ut!==null&&!sn.done;jt++,sn=$e.next()){ut.index>jt?(Kt=ut,ut=null):Kt=ut.sibling;var ri=Ee(be,ut,sn.value,Ve);if(ri===null){ut===null&&(ut=Kt);break}o&&ut&&ri.alternate===null&&i(be,ut),pe=M(ri,pe,jt),ln===null?mt=ri:ln.sibling=ri,ln=ri,ut=Kt}if(sn.done)return u(be,ut),Zt&&aa(be,jt),mt;if(ut===null){for(;!sn.done;jt++,sn=$e.next())sn=We(be,sn.value,Ve),sn!==null&&(pe=M(sn,pe,jt),ln===null?mt=sn:ln.sibling=sn,ln=sn);return Zt&&aa(be,jt),mt}for(ut=p(ut);!sn.done;jt++,sn=$e.next())sn=Oe(ut,be,jt,sn.value,Ve),sn!==null&&(o&&sn.alternate!==null&&ut.delete(sn.key===null?jt:sn.key),pe=M(sn,pe,jt),ln===null?mt=sn:ln.sibling=sn,ln=sn);return o&&ut.forEach(function(kP){return i(be,kP)}),Zt&&aa(be,jt),mt}function Cn(be,pe,$e,Ve){if(typeof $e=="object"&&$e!==null&&$e.type===x&&$e.key===null&&($e=$e.props.children),typeof $e=="object"&&$e!==null){switch($e.$$typeof){case b:e:{for(var mt=$e.key;pe!==null;){if(pe.key===mt){if(mt=$e.type,mt===x){if(pe.tag===7){u(be,pe.sibling),Ve=S(pe,$e.props.children),Ve.return=be,be=Ve;break e}}else if(pe.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===D&&Ii(mt)===pe.type){u(be,pe.sibling),Ve=S(pe,$e.props),sc(Ve,$e),Ve.return=be,be=Ve;break e}u(be,pe);break}else i(be,pe);pe=pe.sibling}$e.type===x?(Ve=Mi($e.props.children,be.mode,Ve,$e.key),Ve.return=be,be=Ve):(Ve=Bd($e.type,$e.key,$e.props,null,be.mode,Ve),sc(Ve,$e),Ve.return=be,be=Ve)}return W(be);case v:e:{for(mt=$e.key;pe!==null;){if(pe.key===mt)if(pe.tag===4&&pe.stateNode.containerInfo===$e.containerInfo&&pe.stateNode.implementation===$e.implementation){u(be,pe.sibling),Ve=S(pe,$e.children||[]),Ve.return=be,be=Ve;break e}else{u(be,pe);break}else i(be,pe);pe=pe.sibling}Ve=wg($e,be.mode,Ve),Ve.return=be,be=Ve}return W(be);case D:return $e=Ii($e),Cn(be,pe,$e,Ve)}if(_($e))return st(be,pe,$e,Ve);if(U($e)){if(mt=U($e),typeof mt!="function")throw Error(r(150));return $e=mt.call($e),Ct(be,pe,$e,Ve)}if(typeof $e.then=="function")return Cn(be,pe,Ud($e),Ve);if($e.$$typeof===$)return Cn(be,pe,Fd(be,$e),Ve);qd(be,$e)}return typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint"?($e=""+$e,pe!==null&&pe.tag===6?(u(be,pe.sibling),Ve=S(pe,$e),Ve.return=be,be=Ve):(u(be,pe),Ve=$g($e,be.mode,Ve),Ve.return=be,be=Ve),W(be)):u(be,pe)}return function(be,pe,$e,Ve){try{lc=0;var mt=Cn(be,pe,$e,Ve);return Al=null,mt}catch(ut){if(ut===zl||ut===Wd)throw ut;var ln=Xr(29,ut,null,be.mode);return ln.lanes=Ve,ln.return=be,ln}}}var zi=PC(!0),zC=PC(!1),La=!1;function jg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _g(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Va(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Fa(o,i,u){var p=o.updateQueue;if(p===null)return null;if(p=p.shared,(cn&2)!==0){var S=p.pending;return S===null?i.next=i:(i.next=S.next,S.next=i),p.pending=i,i=Hd(o),hC(o,null,u),i}return _d(o,p,i,u),Hd(o)}function cc(o,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var p=i.lanes;p&=o.pendingLanes,u|=p,i.lanes=u,Te(o,u)}}function Hg(o,i){var u=o.updateQueue,p=o.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var S=null,M=null;if(u=u.firstBaseUpdate,u!==null){do{var W={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};M===null?S=M=W:M=M.next=W,u=u.next}while(u!==null);M===null?S=M=i:M=M.next=i}else S=M=i;u={baseState:p.baseState,firstBaseUpdate:S,lastBaseUpdate:M,shared:p.shared,callbacks:p.callbacks},o.updateQueue=u;return}o=u.lastBaseUpdate,o===null?u.firstBaseUpdate=i:o.next=i,u.lastBaseUpdate=i}var Bg=!1;function uc(){if(Bg){var o=Pl;if(o!==null)throw o}}function dc(o,i,u,p){Bg=!1;var S=o.updateQueue;La=!1;var M=S.firstBaseUpdate,W=S.lastBaseUpdate,ee=S.shared.pending;if(ee!==null){S.shared.pending=null;var de=ee,we=de.next;de.next=null,W===null?M=we:W.next=we,W=de;var De=o.alternate;De!==null&&(De=De.updateQueue,ee=De.lastBaseUpdate,ee!==W&&(ee===null?De.firstBaseUpdate=we:ee.next=we,De.lastBaseUpdate=de))}if(M!==null){var We=S.baseState;W=0,De=we=de=null,ee=M;do{var Ee=ee.lane&-536870913,Oe=Ee!==ee.lane;if(Oe?(Xt&Ee)===Ee:(p&Ee)===Ee){Ee!==0&&Ee===Il&&(Bg=!0),De!==null&&(De=De.next={lane:0,tag:ee.tag,payload:ee.payload,callback:null,next:null});e:{var st=o,Ct=ee;Ee=i;var Cn=u;switch(Ct.tag){case 1:if(st=Ct.payload,typeof st=="function"){We=st.call(Cn,We,Ee);break e}We=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=Ct.payload,Ee=typeof st=="function"?st.call(Cn,We,Ee):st,Ee==null)break e;We=h({},We,Ee);break e;case 2:La=!0}}Ee=ee.callback,Ee!==null&&(o.flags|=64,Oe&&(o.flags|=8192),Oe=S.callbacks,Oe===null?S.callbacks=[Ee]:Oe.push(Ee))}else Oe={lane:Ee,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},De===null?(we=De=Oe,de=We):De=De.next=Oe,W|=Ee;if(ee=ee.next,ee===null){if(ee=S.shared.pending,ee===null)break;Oe=ee,ee=Oe.next,Oe.next=null,S.lastBaseUpdate=Oe,S.shared.pending=null}}while(!0);De===null&&(de=We),S.baseState=de,S.firstBaseUpdate=we,S.lastBaseUpdate=De,M===null&&(S.shared.lanes=0),qa|=W,o.lanes=W,o.memoizedState=We}}function AC(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function DC(o,i){var u=o.callbacks;if(u!==null)for(o.callbacks=null,o=0;o<u.length;o++)AC(u[o],i)}var Dl=P(null),Gd=P(0);function jC(o,i){o=ha,k(Gd,o),k(Dl,i),ha=o|i.baseLanes}function Lg(){k(Gd,ha),k(Dl,Dl.current)}function Vg(){ha=Gd.current,A(Dl),A(Gd)}var Kr=P(null),po=null;function ka(o){var i=o.alternate;k(Ln,Ln.current&1),k(Kr,o),po===null&&(i===null||Dl.current!==null||i.memoizedState!==null)&&(po=o)}function Fg(o){k(Ln,Ln.current),k(Kr,o),po===null&&(po=o)}function _C(o){o.tag===22?(k(Ln,Ln.current),k(Kr,o),po===null&&(po=o)):Wa()}function Wa(){k(Ln,Ln.current),k(Kr,Kr.current)}function Qr(o){A(Kr),po===o&&(po=null),A(Ln)}var Ln=P(0);function Xd(o){for(var i=o;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Gh(u)||Xh(u)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var sa=0,zt=null,vn=null,Yn=null,Kd=!1,jl=!1,Ai=!1,Qd=0,fc=0,_l=null,zI=0;function jn(){throw Error(r(321))}function kg(o,i){if(i===null)return!1;for(var u=0;u<i.length&&u<o.length;u++)if(!Gr(o[u],i[u]))return!1;return!0}function Wg(o,i,u,p,S,M){return sa=M,zt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,H.H=o===null||o.memoizedState===null?Sx:ah,Ai=!1,M=u(p,S),Ai=!1,jl&&(M=BC(i,u,p,S)),HC(o),M}function HC(o){H.H=gc;var i=vn!==null&&vn.next!==null;if(sa=0,Yn=vn=zt=null,Kd=!1,fc=0,_l=null,i)throw Error(r(300));o===null||Un||(o=o.dependencies,o!==null&&Vd(o)&&(Un=!0))}function BC(o,i,u,p){zt=o;var S=0;do{if(jl&&(_l=null),fc=0,jl=!1,25<=S)throw Error(r(301));if(S+=1,Yn=vn=null,o.updateQueue!=null){var M=o.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}H.H=Cx,M=i(u,p)}while(jl);return M}function AI(){var o=H.H,i=o.useState()[0];return i=typeof i.then=="function"?mc(i):i,o=o.useState()[0],(vn!==null?vn.memoizedState:null)!==o&&(zt.flags|=1024),i}function Yg(){var o=Qd!==0;return Qd=0,o}function Ug(o,i,u){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~u}function qg(o){if(Kd){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}Kd=!1}sa=0,Yn=vn=zt=null,jl=!1,fc=Qd=0,_l=null}function Nr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yn===null?zt.memoizedState=Yn=o:Yn=Yn.next=o,Yn}function Vn(){if(vn===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=vn.next;var i=Yn===null?zt.memoizedState:Yn.next;if(i!==null)Yn=i,vn=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));vn=o,o={memoizedState:vn.memoizedState,baseState:vn.baseState,baseQueue:vn.baseQueue,queue:vn.queue,next:null},Yn===null?zt.memoizedState=Yn=o:Yn=Yn.next=o}return Yn}function Zd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mc(o){var i=fc;return fc+=1,_l===null&&(_l=[]),o=OC(_l,o,i),i=zt,(Yn===null?i.memoizedState:Yn.next)===null&&(i=i.alternate,H.H=i===null||i.memoizedState===null?Sx:ah),o}function Jd(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return mc(o);if(o.$$typeof===$)return hr(o)}throw Error(r(438,String(o)))}function Gg(o){var i=null,u=zt.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var p=zt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(i={data:p.data.map(function(S){return S.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=Zd(),zt.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(o),p=0;p<o;p++)u[p]=B;return i.index++,u}function ca(o,i){return typeof i=="function"?i(o):i}function ef(o){var i=Vn();return Xg(i,vn,o)}function Xg(o,i,u){var p=o.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;var S=o.baseQueue,M=p.pending;if(M!==null){if(S!==null){var W=S.next;S.next=M.next,M.next=W}i.baseQueue=S=M,p.pending=null}if(M=o.baseState,S===null)o.memoizedState=M;else{i=S.next;var ee=W=null,de=null,we=i,De=!1;do{var We=we.lane&-536870913;if(We!==we.lane?(Xt&We)===We:(sa&We)===We){var Ee=we.revertLane;if(Ee===0)de!==null&&(de=de.next={lane:0,revertLane:0,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null}),We===Il&&(De=!0);else if((sa&Ee)===Ee){we=we.next,Ee===Il&&(De=!0);continue}else We={lane:0,revertLane:we.revertLane,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},de===null?(ee=de=We,W=M):de=de.next=We,zt.lanes|=Ee,qa|=Ee;We=we.action,Ai&&u(M,We),M=we.hasEagerState?we.eagerState:u(M,We)}else Ee={lane:We,revertLane:we.revertLane,gesture:we.gesture,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},de===null?(ee=de=Ee,W=M):de=de.next=Ee,zt.lanes|=We,qa|=We;we=we.next}while(we!==null&&we!==i);if(de===null?W=M:de.next=ee,!Gr(M,o.memoizedState)&&(Un=!0,De&&(u=Pl,u!==null)))throw u;o.memoizedState=M,o.baseState=W,o.baseQueue=de,p.lastRenderedState=M}return S===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function Kg(o){var i=Vn(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var p=u.dispatch,S=u.pending,M=i.memoizedState;if(S!==null){u.pending=null;var W=S=S.next;do M=o(M,W.action),W=W.next;while(W!==S);Gr(M,i.memoizedState)||(Un=!0),i.memoizedState=M,i.baseQueue===null&&(i.baseState=M),u.lastRenderedState=M}return[M,p]}function LC(o,i,u){var p=zt,S=Vn(),M=Zt;if(M){if(u===void 0)throw Error(r(407));u=u()}else u=i();var W=!Gr((vn||S).memoizedState,u);if(W&&(S.memoizedState=u,Un=!0),S=S.queue,Jg(kC.bind(null,p,S,o),[o]),S.getSnapshot!==i||W||Yn!==null&&Yn.memoizedState.tag&1){if(p.flags|=2048,Hl(9,{destroy:void 0},FC.bind(null,p,S,u,i),null),wn===null)throw Error(r(349));M||(sa&127)!==0||VC(p,i,u)}return u}function VC(o,i,u){o.flags|=16384,o={getSnapshot:i,value:u},i=zt.updateQueue,i===null?(i=Zd(),zt.updateQueue=i,i.stores=[o]):(u=i.stores,u===null?i.stores=[o]:u.push(o))}function FC(o,i,u,p){i.value=u,i.getSnapshot=p,WC(i)&&YC(o)}function kC(o,i,u){return u(function(){WC(i)&&YC(o)})}function WC(o){var i=o.getSnapshot;o=o.value;try{var u=i();return!Gr(o,u)}catch{return!0}}function YC(o){var i=Ei(o,2);i!==null&&Lr(i,o,2)}function Qg(o){var i=Nr();if(typeof o=="function"){var u=o;if(o=u(),Ai){Ce(!0);try{u()}finally{Ce(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:o},i}function UC(o,i,u,p){return o.baseState=u,Xg(o,vn,typeof p=="function"?p:ca)}function DI(o,i,u,p,S){if(rf(o))throw Error(r(485));if(o=i.action,o!==null){var M={payload:S,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){M.listeners.push(W)}};H.T!==null?u(!0):M.isTransition=!1,p(M),u=i.pending,u===null?(M.next=i.pending=M,qC(i,M)):(M.next=u.next,i.pending=u.next=M)}}function qC(o,i){var u=i.action,p=i.payload,S=o.state;if(i.isTransition){var M=H.T,W={};H.T=W;try{var ee=u(S,p),de=H.S;de!==null&&de(W,ee),GC(o,i,ee)}catch(we){Zg(o,i,we)}finally{M!==null&&W.types!==null&&(M.types=W.types),H.T=M}}else try{M=u(S,p),GC(o,i,M)}catch(we){Zg(o,i,we)}}function GC(o,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){XC(o,i,p)},function(p){return Zg(o,i,p)}):XC(o,i,u)}function XC(o,i,u){i.status="fulfilled",i.value=u,KC(i),o.state=u,i=o.pending,i!==null&&(u=i.next,u===i?o.pending=null:(u=u.next,i.next=u,qC(o,u)))}function Zg(o,i,u){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do i.status="rejected",i.reason=u,KC(i),i=i.next;while(i!==p)}o.action=null}function KC(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function QC(o,i){return i}function ZC(o,i){if(Zt){var u=wn.formState;if(u!==null){e:{var p=zt;if(Zt){if(Tn){t:{for(var S=Tn,M=mo;S.nodeType!==8;){if(!M){S=null;break t}if(S=go(S.nextSibling),S===null){S=null;break t}}M=S.data,S=M==="F!"||M==="F"?S:null}if(S){Tn=go(S.nextSibling),p=S.data==="F!";break e}}Ha(p)}p=!1}p&&(i=u[0])}}return u=Nr(),u.memoizedState=u.baseState=i,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QC,lastRenderedState:i},u.queue=p,u=yx.bind(null,zt,p),p.dispatch=u,p=Qg(!1),M=oh.bind(null,zt,!1,p.queue),p=Nr(),S={state:i,dispatch:null,action:o,pending:null},p.queue=S,u=DI.bind(null,zt,S,M,u),S.dispatch=u,p.memoizedState=o,[i,u,!1]}function JC(o){var i=Vn();return ex(i,vn,o)}function ex(o,i,u){if(i=Xg(o,i,QC)[0],o=ef(ca)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var p=mc(i)}catch(W){throw W===zl?Wd:W}else p=i;i=Vn();var S=i.queue,M=S.dispatch;return u!==i.memoizedState&&(zt.flags|=2048,Hl(9,{destroy:void 0},jI.bind(null,S,u),null)),[p,M,o]}function jI(o,i){o.action=i}function tx(o){var i=Vn(),u=vn;if(u!==null)return ex(i,u,o);Vn(),i=i.memoizedState,u=Vn();var p=u.queue.dispatch;return u.memoizedState=o,[i,p,!1]}function Hl(o,i,u,p){return o={tag:o,create:u,deps:p,inst:i,next:null},i=zt.updateQueue,i===null&&(i=Zd(),zt.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=o.next=o:(p=u.next,u.next=o,o.next=p,i.lastEffect=o),o}function nx(){return Vn().memoizedState}function tf(o,i,u,p){var S=Nr();zt.flags|=o,S.memoizedState=Hl(1|i,{destroy:void 0},u,p===void 0?null:p)}function nf(o,i,u,p){var S=Vn();p=p===void 0?null:p;var M=S.memoizedState.inst;vn!==null&&p!==null&&kg(p,vn.memoizedState.deps)?S.memoizedState=Hl(i,M,u,p):(zt.flags|=o,S.memoizedState=Hl(1|i,M,u,p))}function rx(o,i){tf(8390656,8,o,i)}function Jg(o,i){nf(2048,8,o,i)}function _I(o){zt.flags|=4;var i=zt.updateQueue;if(i===null)i=Zd(),zt.updateQueue=i,i.events=[o];else{var u=i.events;u===null?i.events=[o]:u.push(o)}}function ox(o){var i=Vn().memoizedState;return _I({ref:i,nextImpl:o}),function(){if((cn&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function ax(o,i){return nf(4,2,o,i)}function ix(o,i){return nf(4,4,o,i)}function lx(o,i){if(typeof i=="function"){o=o();var u=i(o);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function sx(o,i,u){u=u!=null?u.concat([o]):null,nf(4,4,lx.bind(null,i,o),u)}function eh(){}function cx(o,i){var u=Vn();i=i===void 0?null:i;var p=u.memoizedState;return i!==null&&kg(i,p[1])?p[0]:(u.memoizedState=[o,i],o)}function ux(o,i){var u=Vn();i=i===void 0?null:i;var p=u.memoizedState;if(i!==null&&kg(i,p[1]))return p[0];if(p=o(),Ai){Ce(!0);try{o()}finally{Ce(!1)}}return u.memoizedState=[p,i],p}function th(o,i,u){return u===void 0||(sa&1073741824)!==0&&(Xt&261930)===0?o.memoizedState=i:(o.memoizedState=u,o=d$(),zt.lanes|=o,qa|=o,u)}function dx(o,i,u,p){return Gr(u,i)?u:Dl.current!==null?(o=th(o,u,p),Gr(o,i)||(Un=!0),o):(sa&42)===0||(sa&1073741824)!==0&&(Xt&261930)===0?(Un=!0,o.memoizedState=u):(o=d$(),zt.lanes|=o,qa|=o,i)}function fx(o,i,u,p,S){var M=F.p;F.p=M!==0&&8>M?M:8;var W=H.T,ee={};H.T=ee,oh(o,!1,i,u);try{var de=S(),we=H.S;if(we!==null&&we(ee,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var De=PI(de,p);pc(o,i,De,eo(o))}else pc(o,i,p,eo(o))}catch(We){pc(o,i,{then:function(){},status:"rejected",reason:We},eo())}finally{F.p=M,W!==null&&ee.types!==null&&(W.types=ee.types),H.T=W}}function HI(){}function nh(o,i,u,p){if(o.tag!==5)throw Error(r(476));var S=mx(o).queue;fx(o,S,i,I,u===null?HI:function(){return px(o),u(p)})}function mx(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:I},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:u},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function px(o){var i=mx(o);i.next===null&&(i=o.alternate.memoizedState),pc(o,i.next.queue,{},eo())}function rh(){return hr(Ic)}function gx(){return Vn().memoizedState}function hx(){return Vn().memoizedState}function BI(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var u=eo();o=Va(u);var p=Fa(i,o,u);p!==null&&(Lr(p,i,u),cc(p,i,u)),i={cache:Pg()},o.payload=i;return}i=i.return}}function LI(o,i,u){var p=eo();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},rf(o)?bx(i,u):(u=Cg(o,i,u,p),u!==null&&(Lr(u,o,p),vx(u,i,p)))}function yx(o,i,u){var p=eo();pc(o,i,u,p)}function pc(o,i,u,p){var S={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(rf(o))bx(i,S);else{var M=o.alternate;if(o.lanes===0&&(M===null||M.lanes===0)&&(M=i.lastRenderedReducer,M!==null))try{var W=i.lastRenderedState,ee=M(W,u);if(S.hasEagerState=!0,S.eagerState=ee,Gr(ee,W))return _d(o,i,S,0),wn===null&&jd(),!1}catch{}if(u=Cg(o,i,S,p),u!==null)return Lr(u,o,p),vx(u,i,p),!0}return!1}function oh(o,i,u,p){if(p={lane:2,revertLane:jh(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},rf(o)){if(i)throw Error(r(479))}else i=Cg(o,u,p,2),i!==null&&Lr(i,o,2)}function rf(o){var i=o.alternate;return o===zt||i!==null&&i===zt}function bx(o,i){jl=Kd=!0;var u=o.pending;u===null?i.next=i:(i.next=u.next,u.next=i),o.pending=i}function vx(o,i,u){if((u&4194048)!==0){var p=i.lanes;p&=o.pendingLanes,u|=p,i.lanes=u,Te(o,u)}}var gc={readContext:hr,use:Jd,useCallback:jn,useContext:jn,useEffect:jn,useImperativeHandle:jn,useLayoutEffect:jn,useInsertionEffect:jn,useMemo:jn,useReducer:jn,useRef:jn,useState:jn,useDebugValue:jn,useDeferredValue:jn,useTransition:jn,useSyncExternalStore:jn,useId:jn,useHostTransitionStatus:jn,useFormState:jn,useActionState:jn,useOptimistic:jn,useMemoCache:jn,useCacheRefresh:jn};gc.useEffectEvent=jn;var Sx={readContext:hr,use:Jd,useCallback:function(o,i){return Nr().memoizedState=[o,i===void 0?null:i],o},useContext:hr,useEffect:rx,useImperativeHandle:function(o,i,u){u=u!=null?u.concat([o]):null,tf(4194308,4,lx.bind(null,i,o),u)},useLayoutEffect:function(o,i){return tf(4194308,4,o,i)},useInsertionEffect:function(o,i){tf(4,2,o,i)},useMemo:function(o,i){var u=Nr();i=i===void 0?null:i;var p=o();if(Ai){Ce(!0);try{o()}finally{Ce(!1)}}return u.memoizedState=[p,i],p},useReducer:function(o,i,u){var p=Nr();if(u!==void 0){var S=u(i);if(Ai){Ce(!0);try{u(i)}finally{Ce(!1)}}}else S=i;return p.memoizedState=p.baseState=S,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:S},p.queue=o,o=o.dispatch=LI.bind(null,zt,o),[p.memoizedState,o]},useRef:function(o){var i=Nr();return o={current:o},i.memoizedState=o},useState:function(o){o=Qg(o);var i=o.queue,u=yx.bind(null,zt,i);return i.dispatch=u,[o.memoizedState,u]},useDebugValue:eh,useDeferredValue:function(o,i){var u=Nr();return th(u,o,i)},useTransition:function(){var o=Qg(!1);return o=fx.bind(null,zt,o.queue,!0,!1),Nr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,u){var p=zt,S=Nr();if(Zt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),wn===null)throw Error(r(349));(Xt&127)!==0||VC(p,i,u)}S.memoizedState=u;var M={value:u,getSnapshot:i};return S.queue=M,rx(kC.bind(null,p,M,o),[o]),p.flags|=2048,Hl(9,{destroy:void 0},FC.bind(null,p,M,u,i),null),u},useId:function(){var o=Nr(),i=wn.identifierPrefix;if(Zt){var u=Yo,p=Wo;u=(p&~(1<<32-Ye(p)-1)).toString(32)+u,i="_"+i+"R_"+u,u=Qd++,0<u&&(i+="H"+u.toString(32)),i+="_"}else u=zI++,i="_"+i+"r_"+u.toString(32)+"_";return o.memoizedState=i},useHostTransitionStatus:rh,useFormState:ZC,useActionState:ZC,useOptimistic:function(o){var i=Nr();i.memoizedState=i.baseState=o;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=oh.bind(null,zt,!0,u),u.dispatch=i,[o,i]},useMemoCache:Gg,useCacheRefresh:function(){return Nr().memoizedState=BI.bind(null,zt)},useEffectEvent:function(o){var i=Nr(),u={impl:o};return i.memoizedState=u,function(){if((cn&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},ah={readContext:hr,use:Jd,useCallback:cx,useContext:hr,useEffect:Jg,useImperativeHandle:sx,useInsertionEffect:ax,useLayoutEffect:ix,useMemo:ux,useReducer:ef,useRef:nx,useState:function(){return ef(ca)},useDebugValue:eh,useDeferredValue:function(o,i){var u=Vn();return dx(u,vn.memoizedState,o,i)},useTransition:function(){var o=ef(ca)[0],i=Vn().memoizedState;return[typeof o=="boolean"?o:mc(o),i]},useSyncExternalStore:LC,useId:gx,useHostTransitionStatus:rh,useFormState:JC,useActionState:JC,useOptimistic:function(o,i){var u=Vn();return UC(u,vn,o,i)},useMemoCache:Gg,useCacheRefresh:hx};ah.useEffectEvent=ox;var Cx={readContext:hr,use:Jd,useCallback:cx,useContext:hr,useEffect:Jg,useImperativeHandle:sx,useInsertionEffect:ax,useLayoutEffect:ix,useMemo:ux,useReducer:Kg,useRef:nx,useState:function(){return Kg(ca)},useDebugValue:eh,useDeferredValue:function(o,i){var u=Vn();return vn===null?th(u,o,i):dx(u,vn.memoizedState,o,i)},useTransition:function(){var o=Kg(ca)[0],i=Vn().memoizedState;return[typeof o=="boolean"?o:mc(o),i]},useSyncExternalStore:LC,useId:gx,useHostTransitionStatus:rh,useFormState:tx,useActionState:tx,useOptimistic:function(o,i){var u=Vn();return vn!==null?UC(u,vn,o,i):(u.baseState=o,[o,u.queue.dispatch])},useMemoCache:Gg,useCacheRefresh:hx};Cx.useEffectEvent=ox;function ih(o,i,u,p){i=o.memoizedState,u=u(p,i),u=u==null?i:h({},i,u),o.memoizedState=u,o.lanes===0&&(o.updateQueue.baseState=u)}var lh={enqueueSetState:function(o,i,u){o=o._reactInternals;var p=eo(),S=Va(p);S.payload=i,u!=null&&(S.callback=u),i=Fa(o,S,p),i!==null&&(Lr(i,o,p),cc(i,o,p))},enqueueReplaceState:function(o,i,u){o=o._reactInternals;var p=eo(),S=Va(p);S.tag=1,S.payload=i,u!=null&&(S.callback=u),i=Fa(o,S,p),i!==null&&(Lr(i,o,p),cc(i,o,p))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var u=eo(),p=Va(u);p.tag=2,i!=null&&(p.callback=i),i=Fa(o,p,u),i!==null&&(Lr(i,o,u),cc(i,o,u))}};function xx(o,i,u,p,S,M,W){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,M,W):i.prototype&&i.prototype.isPureReactComponent?!tc(u,p)||!tc(S,M):!0}function $x(o,i,u,p){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,p),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,p),i.state!==o&&lh.enqueueReplaceState(i,i.state,null)}function Di(o,i){var u=i;if("ref"in i){u={};for(var p in i)p!=="ref"&&(u[p]=i[p])}if(o=o.defaultProps){u===i&&(u=h({},u));for(var S in o)u[S]===void 0&&(u[S]=o[S])}return u}function wx(o){Dd(o)}function Ex(o){console.error(o)}function Mx(o){Dd(o)}function of(o,i){try{var u=o.onUncaughtError;u(i.value,{componentStack:i.stack})}catch(p){setTimeout(function(){throw p})}}function Rx(o,i,u){try{var p=o.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function sh(o,i,u){return u=Va(u),u.tag=3,u.payload={element:null},u.callback=function(){of(o,i)},u}function Tx(o){return o=Va(o),o.tag=3,o}function Ox(o,i,u,p){var S=u.type.getDerivedStateFromError;if(typeof S=="function"){var M=p.value;o.payload=function(){return S(M)},o.callback=function(){Rx(i,u,p)}}var W=u.stateNode;W!==null&&typeof W.componentDidCatch=="function"&&(o.callback=function(){Rx(i,u,p),typeof S!="function"&&(Ga===null?Ga=new Set([this]):Ga.add(this));var ee=p.stack;this.componentDidCatch(p.value,{componentStack:ee!==null?ee:""})})}function VI(o,i,u,p,S){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(i=u.alternate,i!==null&&Nl(i,u,S,!0),u=Kr.current,u!==null){switch(u.tag){case 31:case 13:return po===null?yf():u.alternate===null&&_n===0&&(_n=3),u.flags&=-257,u.flags|=65536,u.lanes=S,p===Yd?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([p]):i.add(p),zh(o,p,S)),!1;case 22:return u.flags|=65536,p===Yd?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([p]):u.add(p)),zh(o,p,S)),!1}throw Error(r(435,u.tag))}return zh(o,p,S),yf(),!1}if(Zt)return i=Kr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=S,p!==Rg&&(o=Error(r(422),{cause:p}),oc(co(o,u)))):(p!==Rg&&(i=Error(r(423),{cause:p}),oc(co(i,u))),o=o.current.alternate,o.flags|=65536,S&=-S,o.lanes|=S,p=co(p,u),S=sh(o.stateNode,p,S),Hg(o,S),_n!==4&&(_n=2)),!1;var M=Error(r(520),{cause:p});if(M=co(M,u),$c===null?$c=[M]:$c.push(M),_n!==4&&(_n=2),i===null)return!0;p=co(p,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,o=S&-S,u.lanes|=o,o=sh(u.stateNode,p,o),Hg(u,o),!1;case 1:if(i=u.type,M=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Ga===null||!Ga.has(M))))return u.flags|=65536,S&=-S,u.lanes|=S,S=Tx(S),Ox(S,o,u,p),Hg(u,S),!1}u=u.return}while(u!==null);return!1}var ch=Error(r(461)),Un=!1;function yr(o,i,u,p){i.child=o===null?zC(i,null,u,p):zi(i,o.child,u,p)}function Nx(o,i,u,p,S){u=u.render;var M=i.ref;if("ref"in p){var W={};for(var ee in p)ee!=="ref"&&(W[ee]=p[ee])}else W=p;return Oi(i),p=Wg(o,i,u,W,M,S),ee=Yg(),o!==null&&!Un?(Ug(o,i,S),ua(o,i,S)):(Zt&&ee&&Eg(i),i.flags|=1,yr(o,i,p,S),i.child)}function Ix(o,i,u,p,S){if(o===null){var M=u.type;return typeof M=="function"&&!xg(M)&&M.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=M,Px(o,i,M,p,S)):(o=Bd(u.type,null,p,i,i.mode,S),o.ref=i.ref,o.return=i,i.child=o)}if(M=o.child,!yh(o,S)){var W=M.memoizedProps;if(u=u.compare,u=u!==null?u:tc,u(W,p)&&o.ref===i.ref)return ua(o,i,S)}return i.flags|=1,o=oa(M,p),o.ref=i.ref,o.return=i,i.child=o}function Px(o,i,u,p,S){if(o!==null){var M=o.memoizedProps;if(tc(M,p)&&o.ref===i.ref)if(Un=!1,i.pendingProps=p=M,yh(o,S))(o.flags&131072)!==0&&(Un=!0);else return i.lanes=o.lanes,ua(o,i,S)}return uh(o,i,u,p,S)}function zx(o,i,u,p){var S=p.children,M=o!==null?o.memoizedState:null;if(o===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((i.flags&128)!==0){if(M=M!==null?M.baseLanes|u:u,o!==null){for(p=i.child=o.child,S=0;p!==null;)S=S|p.lanes|p.childLanes,p=p.sibling;p=S&~M}else p=0,i.child=null;return Ax(o,i,M,u,p)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&kd(i,M!==null?M.cachePool:null),M!==null?jC(i,M):Lg(),_C(i);else return p=i.lanes=536870912,Ax(o,i,M!==null?M.baseLanes|u:u,u,p)}else M!==null?(kd(i,M.cachePool),jC(i,M),Wa(),i.memoizedState=null):(o!==null&&kd(i,null),Lg(),Wa());return yr(o,i,S,u),i.child}function hc(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Ax(o,i,u,p,S){var M=Ag();return M=M===null?null:{parent:Wn._currentValue,pool:M},i.memoizedState={baseLanes:u,cachePool:M},o!==null&&kd(i,null),Lg(),_C(i),o!==null&&Nl(o,i,p,!0),i.childLanes=S,null}function af(o,i){return i=sf({mode:i.mode,children:i.children},o.mode),i.ref=o.ref,o.child=i,i.return=o,i}function Dx(o,i,u){return zi(i,o.child,null,u),o=af(i,i.pendingProps),o.flags|=2,Qr(i),i.memoizedState=null,o}function FI(o,i,u){var p=i.pendingProps,S=(i.flags&128)!==0;if(i.flags&=-129,o===null){if(Zt){if(p.mode==="hidden")return o=af(i,p),i.lanes=536870912,hc(null,o);if(Fg(i),(o=Tn)?(o=q$(o,mo),o=o!==null&&o.data==="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:ja!==null?{id:Wo,overflow:Yo}:null,retryLane:536870912,hydrationErrors:null},u=bC(o),u.return=i,i.child=u,gr=i,Tn=null)):o=null,o===null)throw Ha(i);return i.lanes=536870912,null}return af(i,p)}var M=o.memoizedState;if(M!==null){var W=M.dehydrated;if(Fg(i),S)if(i.flags&256)i.flags&=-257,i=Dx(o,i,u);else if(i.memoizedState!==null)i.child=o.child,i.flags|=128,i=null;else throw Error(r(558));else if(Un||Nl(o,i,u,!1),S=(u&o.childLanes)!==0,Un||S){if(p=wn,p!==null&&(W=qe(p,u),W!==0&&W!==M.retryLane))throw M.retryLane=W,Ei(o,W),Lr(p,o,W),ch;yf(),i=Dx(o,i,u)}else o=M.treeContext,Tn=go(W.nextSibling),gr=i,Zt=!0,_a=null,mo=!1,o!==null&&CC(i,o),i=af(i,p),i.flags|=4096;return i}return o=oa(o.child,{mode:p.mode,children:p.children}),o.ref=i.ref,i.child=o,o.return=i,o}function lf(o,i){var u=i.ref;if(u===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(o===null||o.ref!==u)&&(i.flags|=4194816)}}function uh(o,i,u,p,S){return Oi(i),u=Wg(o,i,u,p,void 0,S),p=Yg(),o!==null&&!Un?(Ug(o,i,S),ua(o,i,S)):(Zt&&p&&Eg(i),i.flags|=1,yr(o,i,u,S),i.child)}function jx(o,i,u,p,S,M){return Oi(i),i.updateQueue=null,u=BC(i,p,u,S),HC(o),p=Yg(),o!==null&&!Un?(Ug(o,i,M),ua(o,i,M)):(Zt&&p&&Eg(i),i.flags|=1,yr(o,i,u,M),i.child)}function _x(o,i,u,p,S){if(Oi(i),i.stateNode===null){var M=Ml,W=u.contextType;typeof W=="object"&&W!==null&&(M=hr(W)),M=new u(p,M),i.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=lh,i.stateNode=M,M._reactInternals=i,M=i.stateNode,M.props=p,M.state=i.memoizedState,M.refs={},jg(i),W=u.contextType,M.context=typeof W=="object"&&W!==null?hr(W):Ml,M.state=i.memoizedState,W=u.getDerivedStateFromProps,typeof W=="function"&&(ih(i,u,W,p),M.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(W=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),W!==M.state&&lh.enqueueReplaceState(M,M.state,null),dc(i,p,M,S),uc(),M.state=i.memoizedState),typeof M.componentDidMount=="function"&&(i.flags|=4194308),p=!0}else if(o===null){M=i.stateNode;var ee=i.memoizedProps,de=Di(u,ee);M.props=de;var we=M.context,De=u.contextType;W=Ml,typeof De=="object"&&De!==null&&(W=hr(De));var We=u.getDerivedStateFromProps;De=typeof We=="function"||typeof M.getSnapshotBeforeUpdate=="function",ee=i.pendingProps!==ee,De||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(ee||we!==W)&&$x(i,M,p,W),La=!1;var Ee=i.memoizedState;M.state=Ee,dc(i,p,M,S),uc(),we=i.memoizedState,ee||Ee!==we||La?(typeof We=="function"&&(ih(i,u,We,p),we=i.memoizedState),(de=La||xx(i,u,de,p,Ee,we,W))?(De||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(i.flags|=4194308)):(typeof M.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=p,i.memoizedState=we),M.props=p,M.state=we,M.context=W,p=de):(typeof M.componentDidMount=="function"&&(i.flags|=4194308),p=!1)}else{M=i.stateNode,_g(o,i),W=i.memoizedProps,De=Di(u,W),M.props=De,We=i.pendingProps,Ee=M.context,we=u.contextType,de=Ml,typeof we=="object"&&we!==null&&(de=hr(we)),ee=u.getDerivedStateFromProps,(we=typeof ee=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(W!==We||Ee!==de)&&$x(i,M,p,de),La=!1,Ee=i.memoizedState,M.state=Ee,dc(i,p,M,S),uc();var Oe=i.memoizedState;W!==We||Ee!==Oe||La||o!==null&&o.dependencies!==null&&Vd(o.dependencies)?(typeof ee=="function"&&(ih(i,u,ee,p),Oe=i.memoizedState),(De=La||xx(i,u,De,p,Ee,Oe,de)||o!==null&&o.dependencies!==null&&Vd(o.dependencies))?(we||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(p,Oe,de),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(p,Oe,de)),typeof M.componentDidUpdate=="function"&&(i.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof M.componentDidUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=1024),i.memoizedProps=p,i.memoizedState=Oe),M.props=p,M.state=Oe,M.context=de,p=De):(typeof M.componentDidUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=1024),p=!1)}return M=p,lf(o,i),p=(i.flags&128)!==0,M||p?(M=i.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:M.render(),i.flags|=1,o!==null&&p?(i.child=zi(i,o.child,null,S),i.child=zi(i,null,u,S)):yr(o,i,u,S),i.memoizedState=M.state,o=i.child):o=ua(o,i,S),o}function Hx(o,i,u,p){return Ri(),i.flags|=256,yr(o,i,u,p),i.child}var dh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fh(o){return{baseLanes:o,cachePool:RC()}}function mh(o,i,u){return o=o!==null?o.childLanes&~u:0,i&&(o|=Jr),o}function Bx(o,i,u){var p=i.pendingProps,S=!1,M=(i.flags&128)!==0,W;if((W=M)||(W=o!==null&&o.memoizedState===null?!1:(Ln.current&2)!==0),W&&(S=!0,i.flags&=-129),W=(i.flags&32)!==0,i.flags&=-33,o===null){if(Zt){if(S?ka(i):Wa(),(o=Tn)?(o=q$(o,mo),o=o!==null&&o.data!=="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:ja!==null?{id:Wo,overflow:Yo}:null,retryLane:536870912,hydrationErrors:null},u=bC(o),u.return=i,i.child=u,gr=i,Tn=null)):o=null,o===null)throw Ha(i);return Xh(o)?i.lanes=32:i.lanes=536870912,null}var ee=p.children;return p=p.fallback,S?(Wa(),S=i.mode,ee=sf({mode:"hidden",children:ee},S),p=Mi(p,S,u,null),ee.return=i,p.return=i,ee.sibling=p,i.child=ee,p=i.child,p.memoizedState=fh(u),p.childLanes=mh(o,W,u),i.memoizedState=dh,hc(null,p)):(ka(i),ph(i,ee))}var de=o.memoizedState;if(de!==null&&(ee=de.dehydrated,ee!==null)){if(M)i.flags&256?(ka(i),i.flags&=-257,i=gh(o,i,u)):i.memoizedState!==null?(Wa(),i.child=o.child,i.flags|=128,i=null):(Wa(),ee=p.fallback,S=i.mode,p=sf({mode:"visible",children:p.children},S),ee=Mi(ee,S,u,null),ee.flags|=2,p.return=i,ee.return=i,p.sibling=ee,i.child=p,zi(i,o.child,null,u),p=i.child,p.memoizedState=fh(u),p.childLanes=mh(o,W,u),i.memoizedState=dh,i=hc(null,p));else if(ka(i),Xh(ee)){if(W=ee.nextSibling&&ee.nextSibling.dataset,W)var we=W.dgst;W=we,p=Error(r(419)),p.stack="",p.digest=W,oc({value:p,source:null,stack:null}),i=gh(o,i,u)}else if(Un||Nl(o,i,u,!1),W=(u&o.childLanes)!==0,Un||W){if(W=wn,W!==null&&(p=qe(W,u),p!==0&&p!==de.retryLane))throw de.retryLane=p,Ei(o,p),Lr(W,o,p),ch;Gh(ee)||yf(),i=gh(o,i,u)}else Gh(ee)?(i.flags|=192,i.child=o.child,i=null):(o=de.treeContext,Tn=go(ee.nextSibling),gr=i,Zt=!0,_a=null,mo=!1,o!==null&&CC(i,o),i=ph(i,p.children),i.flags|=4096);return i}return S?(Wa(),ee=p.fallback,S=i.mode,de=o.child,we=de.sibling,p=oa(de,{mode:"hidden",children:p.children}),p.subtreeFlags=de.subtreeFlags&65011712,we!==null?ee=oa(we,ee):(ee=Mi(ee,S,u,null),ee.flags|=2),ee.return=i,p.return=i,p.sibling=ee,i.child=p,hc(null,p),p=i.child,ee=o.child.memoizedState,ee===null?ee=fh(u):(S=ee.cachePool,S!==null?(de=Wn._currentValue,S=S.parent!==de?{parent:de,pool:de}:S):S=RC(),ee={baseLanes:ee.baseLanes|u,cachePool:S}),p.memoizedState=ee,p.childLanes=mh(o,W,u),i.memoizedState=dh,hc(o.child,p)):(ka(i),u=o.child,o=u.sibling,u=oa(u,{mode:"visible",children:p.children}),u.return=i,u.sibling=null,o!==null&&(W=i.deletions,W===null?(i.deletions=[o],i.flags|=16):W.push(o)),i.child=u,i.memoizedState=null,u)}function ph(o,i){return i=sf({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function sf(o,i){return o=Xr(22,o,null,i),o.lanes=0,o}function gh(o,i,u){return zi(i,o.child,null,u),o=ph(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function Lx(o,i,u){o.lanes|=i;var p=o.alternate;p!==null&&(p.lanes|=i),Ng(o.return,i,u)}function hh(o,i,u,p,S,M){var W=o.memoizedState;W===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:S,treeForkCount:M}:(W.isBackwards=i,W.rendering=null,W.renderingStartTime=0,W.last=p,W.tail=u,W.tailMode=S,W.treeForkCount=M)}function Vx(o,i,u){var p=i.pendingProps,S=p.revealOrder,M=p.tail;p=p.children;var W=Ln.current,ee=(W&2)!==0;if(ee?(W=W&1|2,i.flags|=128):W&=1,k(Ln,W),yr(o,i,p,u),p=Zt?rc:0,!ee&&o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Lx(o,u,i);else if(o.tag===19)Lx(o,u,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(S){case"forwards":for(u=i.child,S=null;u!==null;)o=u.alternate,o!==null&&Xd(o)===null&&(S=u),u=u.sibling;u=S,u===null?(S=i.child,i.child=null):(S=u.sibling,u.sibling=null),hh(i,!1,S,u,M,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,S=i.child,i.child=null;S!==null;){if(o=S.alternate,o!==null&&Xd(o)===null){i.child=S;break}o=S.sibling,S.sibling=u,u=S,S=o}hh(i,!0,u,null,M,p);break;case"together":hh(i,!1,null,null,void 0,p);break;default:i.memoizedState=null}return i.child}function ua(o,i,u){if(o!==null&&(i.dependencies=o.dependencies),qa|=i.lanes,(u&i.childLanes)===0)if(o!==null){if(Nl(o,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,u=oa(o,o.pendingProps),i.child=u,u.return=i;o.sibling!==null;)o=o.sibling,u=u.sibling=oa(o,o.pendingProps),u.return=i;u.sibling=null}return i.child}function yh(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&Vd(o)))}function kI(o,i,u){switch(i.tag){case 3:re(i,i.stateNode.containerInfo),Ba(i,Wn,o.memoizedState.cache),Ri();break;case 27:case 5:ne(i);break;case 4:re(i,i.stateNode.containerInfo);break;case 10:Ba(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Fg(i),null;break;case 13:var p=i.memoizedState;if(p!==null)return p.dehydrated!==null?(ka(i),i.flags|=128,null):(u&i.child.childLanes)!==0?Bx(o,i,u):(ka(i),o=ua(o,i,u),o!==null?o.sibling:null);ka(i);break;case 19:var S=(o.flags&128)!==0;if(p=(u&i.childLanes)!==0,p||(Nl(o,i,u,!1),p=(u&i.childLanes)!==0),S){if(p)return Vx(o,i,u);i.flags|=128}if(S=i.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),k(Ln,Ln.current),p)break;return null;case 22:return i.lanes=0,zx(o,i,u,i.pendingProps);case 24:Ba(i,Wn,o.memoizedState.cache)}return ua(o,i,u)}function Fx(o,i,u){if(o!==null)if(o.memoizedProps!==i.pendingProps)Un=!0;else{if(!yh(o,u)&&(i.flags&128)===0)return Un=!1,kI(o,i,u);Un=(o.flags&131072)!==0}else Un=!1,Zt&&(i.flags&1048576)!==0&&SC(i,rc,i.index);switch(i.lanes=0,i.tag){case 16:e:{var p=i.pendingProps;if(o=Ii(i.elementType),i.type=o,typeof o=="function")xg(o)?(p=Di(o,p),i.tag=1,i=_x(null,i,o,p,u)):(i.tag=0,i=uh(null,i,o,p,u));else{if(o!=null){var S=o.$$typeof;if(S===E){i.tag=11,i=Nx(null,i,o,p,u);break e}else if(S===O){i.tag=14,i=Ix(null,i,o,p,u);break e}}throw i=Y(o)||o,Error(r(306,i,""))}}return i;case 0:return uh(o,i,i.type,i.pendingProps,u);case 1:return p=i.type,S=Di(p,i.pendingProps),_x(o,i,p,S,u);case 3:e:{if(re(i,i.stateNode.containerInfo),o===null)throw Error(r(387));p=i.pendingProps;var M=i.memoizedState;S=M.element,_g(o,i),dc(i,p,null,u);var W=i.memoizedState;if(p=W.cache,Ba(i,Wn,p),p!==M.cache&&Ig(i,[Wn],u,!0),uc(),p=W.element,M.isDehydrated)if(M={element:p,isDehydrated:!1,cache:W.cache},i.updateQueue.baseState=M,i.memoizedState=M,i.flags&256){i=Hx(o,i,p,u);break e}else if(p!==S){S=co(Error(r(424)),i),oc(S),i=Hx(o,i,p,u);break e}else for(o=i.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Tn=go(o.firstChild),gr=i,Zt=!0,_a=null,mo=!0,u=zC(i,null,p,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ri(),p===S){i=ua(o,i,u);break e}yr(o,i,p,u)}i=i.child}return i;case 26:return lf(o,i),o===null?(u=J$(i.type,null,i.pendingProps,null))?i.memoizedState=u:Zt||(u=i.type,o=i.pendingProps,p=wf(Z.current).createElement(u),p[$t]=i,p[dn]=o,br(p,u,o),an(p),i.stateNode=p):i.memoizedState=J$(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return ne(i),o===null&&Zt&&(p=i.stateNode=K$(i.type,i.pendingProps,Z.current),gr=i,mo=!0,S=Tn,Za(i.type)?(Kh=S,Tn=go(p.firstChild)):Tn=S),yr(o,i,i.pendingProps.children,u),lf(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&Zt&&((S=p=Tn)&&(p=vP(p,i.type,i.pendingProps,mo),p!==null?(i.stateNode=p,gr=i,Tn=go(p.firstChild),mo=!1,S=!0):S=!1),S||Ha(i)),ne(i),S=i.type,M=i.pendingProps,W=o!==null?o.memoizedProps:null,p=M.children,Yh(S,M)?p=null:W!==null&&Yh(S,W)&&(i.flags|=32),i.memoizedState!==null&&(S=Wg(o,i,AI,null,null,u),Ic._currentValue=S),lf(o,i),yr(o,i,p,u),i.child;case 6:return o===null&&Zt&&((o=u=Tn)&&(u=SP(u,i.pendingProps,mo),u!==null?(i.stateNode=u,gr=i,Tn=null,o=!0):o=!1),o||Ha(i)),null;case 13:return Bx(o,i,u);case 4:return re(i,i.stateNode.containerInfo),p=i.pendingProps,o===null?i.child=zi(i,null,p,u):yr(o,i,p,u),i.child;case 11:return Nx(o,i,i.type,i.pendingProps,u);case 7:return yr(o,i,i.pendingProps,u),i.child;case 8:return yr(o,i,i.pendingProps.children,u),i.child;case 12:return yr(o,i,i.pendingProps.children,u),i.child;case 10:return p=i.pendingProps,Ba(i,i.type,p.value),yr(o,i,p.children,u),i.child;case 9:return S=i.type._context,p=i.pendingProps.children,Oi(i),S=hr(S),p=p(S),i.flags|=1,yr(o,i,p,u),i.child;case 14:return Ix(o,i,i.type,i.pendingProps,u);case 15:return Px(o,i,i.type,i.pendingProps,u);case 19:return Vx(o,i,u);case 31:return FI(o,i,u);case 22:return zx(o,i,u,i.pendingProps);case 24:return Oi(i),p=hr(Wn),o===null?(S=Ag(),S===null&&(S=wn,M=Pg(),S.pooledCache=M,M.refCount++,M!==null&&(S.pooledCacheLanes|=u),S=M),i.memoizedState={parent:p,cache:S},jg(i),Ba(i,Wn,S)):((o.lanes&u)!==0&&(_g(o,i),dc(i,null,null,u),uc()),S=o.memoizedState,M=i.memoizedState,S.parent!==p?(S={parent:p,cache:p},i.memoizedState=S,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=S),Ba(i,Wn,p)):(p=M.cache,Ba(i,Wn,p),p!==S.cache&&Ig(i,[Wn],u,!0))),yr(o,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function da(o){o.flags|=4}function bh(o,i,u,p,S){if((i=(o.mode&32)!==0)&&(i=!1),i){if(o.flags|=16777216,(S&335544128)===S)if(o.stateNode.complete)o.flags|=8192;else if(g$())o.flags|=8192;else throw Pi=Yd,Dg}else o.flags&=-16777217}function kx(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!ow(i))if(g$())o.flags|=8192;else throw Pi=Yd,Dg}function cf(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?ke():536870912,o.lanes|=i,Fl|=i)}function yc(o,i){if(!Zt)switch(o.tailMode){case"hidden":i=o.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?o.tail=null:u.sibling=null;break;case"collapsed":u=o.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function On(o){var i=o.alternate!==null&&o.alternate.child===o.child,u=0,p=0;if(i)for(var S=o.child;S!==null;)u|=S.lanes|S.childLanes,p|=S.subtreeFlags&65011712,p|=S.flags&65011712,S.return=o,S=S.sibling;else for(S=o.child;S!==null;)u|=S.lanes|S.childLanes,p|=S.subtreeFlags,p|=S.flags,S.return=o,S=S.sibling;return o.subtreeFlags|=p,o.childLanes=u,i}function WI(o,i,u){var p=i.pendingProps;switch(Mg(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return On(i),null;case 1:return On(i),null;case 3:return u=i.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),i.memoizedState.cache!==p&&(i.flags|=2048),la(Wn),ie(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(o===null||o.child===null)&&(Ol(i)?da(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Tg())),On(i),null;case 26:var S=i.type,M=i.memoizedState;return o===null?(da(i),M!==null?(On(i),kx(i,M)):(On(i),bh(i,S,null,p,u))):M?M!==o.memoizedState?(da(i),On(i),kx(i,M)):(On(i),i.flags&=-16777217):(o=o.memoizedProps,o!==p&&da(i),On(i),bh(i,S,o,p,u)),null;case 27:if(le(i),u=Z.current,S=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==p&&da(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return On(i),null}o=q.current,Ol(i)?xC(i):(o=K$(S,p,u),i.stateNode=o,da(i))}return On(i),null;case 5:if(le(i),S=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==p&&da(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return On(i),null}if(M=q.current,Ol(i))xC(i);else{var W=wf(Z.current);switch(M){case 1:M=W.createElementNS("http://www.w3.org/2000/svg",S);break;case 2:M=W.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;default:switch(S){case"svg":M=W.createElementNS("http://www.w3.org/2000/svg",S);break;case"math":M=W.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;case"script":M=W.createElement("div"),M.innerHTML="<script><\/script>",M=M.removeChild(M.firstChild);break;case"select":M=typeof p.is=="string"?W.createElement("select",{is:p.is}):W.createElement("select"),p.multiple?M.multiple=!0:p.size&&(M.size=p.size);break;default:M=typeof p.is=="string"?W.createElement(S,{is:p.is}):W.createElement(S)}}M[$t]=i,M[dn]=p;e:for(W=i.child;W!==null;){if(W.tag===5||W.tag===6)M.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===i)break e;for(;W.sibling===null;){if(W.return===null||W.return===i)break e;W=W.return}W.sibling.return=W.return,W=W.sibling}i.stateNode=M;e:switch(br(M,S,p),S){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&da(i)}}return On(i),bh(i,i.type,o===null?null:o.memoizedProps,i.pendingProps,u),null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==p&&da(i);else{if(typeof p!="string"&&i.stateNode===null)throw Error(r(166));if(o=Z.current,Ol(i)){if(o=i.stateNode,u=i.memoizedProps,p=null,S=gr,S!==null)switch(S.tag){case 27:case 5:p=S.memoizedProps}o[$t]=i,o=!!(o.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||B$(o.nodeValue,u)),o||Ha(i,!0)}else o=wf(o).createTextNode(p),o[$t]=i,i.stateNode=o}return On(i),null;case 31:if(u=i.memoizedState,o===null||o.memoizedState!==null){if(p=Ol(i),u!==null){if(o===null){if(!p)throw Error(r(318));if(o=i.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[$t]=i}else Ri(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;On(i),o=!1}else u=Tg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=u),o=!0;if(!o)return i.flags&256?(Qr(i),i):(Qr(i),null);if((i.flags&128)!==0)throw Error(r(558))}return On(i),null;case 13:if(p=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(S=Ol(i),p!==null&&p.dehydrated!==null){if(o===null){if(!S)throw Error(r(318));if(S=i.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(r(317));S[$t]=i}else Ri(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;On(i),S=!1}else S=Tg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=S),S=!0;if(!S)return i.flags&256?(Qr(i),i):(Qr(i),null)}return Qr(i),(i.flags&128)!==0?(i.lanes=u,i):(u=p!==null,o=o!==null&&o.memoizedState!==null,u&&(p=i.child,S=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(S=p.alternate.memoizedState.cachePool.pool),M=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(M=p.memoizedState.cachePool.pool),M!==S&&(p.flags|=2048)),u!==o&&u&&(i.child.flags|=8192),cf(i,i.updateQueue),On(i),null);case 4:return ie(),o===null&&Lh(i.stateNode.containerInfo),On(i),null;case 10:return la(i.type),On(i),null;case 19:if(A(Ln),p=i.memoizedState,p===null)return On(i),null;if(S=(i.flags&128)!==0,M=p.rendering,M===null)if(S)yc(p,!1);else{if(_n!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(M=Xd(o),M!==null){for(i.flags|=128,yc(p,!1),o=M.updateQueue,i.updateQueue=o,cf(i,o),i.subtreeFlags=0,o=u,u=i.child;u!==null;)yC(u,o),u=u.sibling;return k(Ln,Ln.current&1|2),Zt&&aa(i,p.treeForkCount),i.child}o=o.sibling}p.tail!==null&&ve()>pf&&(i.flags|=128,S=!0,yc(p,!1),i.lanes=4194304)}else{if(!S)if(o=Xd(M),o!==null){if(i.flags|=128,S=!0,o=o.updateQueue,i.updateQueue=o,cf(i,o),yc(p,!0),p.tail===null&&p.tailMode==="hidden"&&!M.alternate&&!Zt)return On(i),null}else 2*ve()-p.renderingStartTime>pf&&u!==536870912&&(i.flags|=128,S=!0,yc(p,!1),i.lanes=4194304);p.isBackwards?(M.sibling=i.child,i.child=M):(o=p.last,o!==null?o.sibling=M:i.child=M,p.last=M)}return p.tail!==null?(o=p.tail,p.rendering=o,p.tail=o.sibling,p.renderingStartTime=ve(),o.sibling=null,u=Ln.current,k(Ln,S?u&1|2:u&1),Zt&&aa(i,p.treeForkCount),o):(On(i),null);case 22:case 23:return Qr(i),Vg(),p=i.memoizedState!==null,o!==null?o.memoizedState!==null!==p&&(i.flags|=8192):p&&(i.flags|=8192),p?(u&536870912)!==0&&(i.flags&128)===0&&(On(i),i.subtreeFlags&6&&(i.flags|=8192)):On(i),u=i.updateQueue,u!==null&&cf(i,u.retryQueue),u=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==u&&(i.flags|=2048),o!==null&&A(Ni),null;case 24:return u=null,o!==null&&(u=o.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),la(Wn),On(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function YI(o,i){switch(Mg(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return la(Wn),ie(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return le(i),null;case 31:if(i.memoizedState!==null){if(Qr(i),i.alternate===null)throw Error(r(340));Ri()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 13:if(Qr(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Ri()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return A(Ln),null;case 4:return ie(),null;case 10:return la(i.type),null;case 22:case 23:return Qr(i),Vg(),o!==null&&A(Ni),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return la(Wn),null;case 25:return null;default:return null}}function Wx(o,i){switch(Mg(i),i.tag){case 3:la(Wn),ie();break;case 26:case 27:case 5:le(i);break;case 4:ie();break;case 31:i.memoizedState!==null&&Qr(i);break;case 13:Qr(i);break;case 19:A(Ln);break;case 10:la(i.type);break;case 22:case 23:Qr(i),Vg(),o!==null&&A(Ni);break;case 24:la(Wn)}}function bc(o,i){try{var u=i.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var S=p.next;u=S;do{if((u.tag&o)===o){p=void 0;var M=u.create,W=u.inst;p=M(),W.destroy=p}u=u.next}while(u!==S)}}catch(ee){yn(i,i.return,ee)}}function Ya(o,i,u){try{var p=i.updateQueue,S=p!==null?p.lastEffect:null;if(S!==null){var M=S.next;p=M;do{if((p.tag&o)===o){var W=p.inst,ee=W.destroy;if(ee!==void 0){W.destroy=void 0,S=i;var de=u,we=ee;try{we()}catch(De){yn(S,de,De)}}}p=p.next}while(p!==M)}}catch(De){yn(i,i.return,De)}}function Yx(o){var i=o.updateQueue;if(i!==null){var u=o.stateNode;try{DC(i,u)}catch(p){yn(o,o.return,p)}}}function Ux(o,i,u){u.props=Di(o.type,o.memoizedProps),u.state=o.memoizedState;try{u.componentWillUnmount()}catch(p){yn(o,i,p)}}function vc(o,i){try{var u=o.ref;if(u!==null){switch(o.tag){case 26:case 27:case 5:var p=o.stateNode;break;case 30:p=o.stateNode;break;default:p=o.stateNode}typeof u=="function"?o.refCleanup=u(p):u.current=p}}catch(S){yn(o,i,S)}}function Uo(o,i){var u=o.ref,p=o.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(S){yn(o,i,S)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(S){yn(o,i,S)}else u.current=null}function qx(o){var i=o.type,u=o.memoizedProps,p=o.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(S){yn(o,o.return,S)}}function vh(o,i,u){try{var p=o.stateNode;mP(p,o.type,u,i),p[dn]=i}catch(S){yn(o,o.return,S)}}function Gx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Za(o.type)||o.tag===4}function Sh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Gx(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&&Za(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 Ch(o,i,u){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(o,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(o),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=Ro));else if(p!==4&&(p===27&&Za(o.type)&&(u=o.stateNode,i=null),o=o.child,o!==null))for(Ch(o,i,u),o=o.sibling;o!==null;)Ch(o,i,u),o=o.sibling}function uf(o,i,u){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?u.insertBefore(o,i):u.appendChild(o);else if(p!==4&&(p===27&&Za(o.type)&&(u=o.stateNode),o=o.child,o!==null))for(uf(o,i,u),o=o.sibling;o!==null;)uf(o,i,u),o=o.sibling}function Xx(o){var i=o.stateNode,u=o.memoizedProps;try{for(var p=o.type,S=i.attributes;S.length;)i.removeAttributeNode(S[0]);br(i,p,u),i[$t]=o,i[dn]=u}catch(M){yn(o,o.return,M)}}var fa=!1,qn=!1,xh=!1,Kx=typeof WeakSet=="function"?WeakSet:Set,lr=null;function UI(o,i){if(o=o.containerInfo,kh=If,o=sC(o),gg(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var S=p.anchorOffset,M=p.focusNode;p=p.focusOffset;try{u.nodeType,M.nodeType}catch{u=null;break e}var W=0,ee=-1,de=-1,we=0,De=0,We=o,Ee=null;t:for(;;){for(var Oe;We!==u||S!==0&&We.nodeType!==3||(ee=W+S),We!==M||p!==0&&We.nodeType!==3||(de=W+p),We.nodeType===3&&(W+=We.nodeValue.length),(Oe=We.firstChild)!==null;)Ee=We,We=Oe;for(;;){if(We===o)break t;if(Ee===u&&++we===S&&(ee=W),Ee===M&&++De===p&&(de=W),(Oe=We.nextSibling)!==null)break;We=Ee,Ee=We.parentNode}We=Oe}u=ee===-1||de===-1?null:{start:ee,end:de}}else u=null}u=u||{start:0,end:0}}else u=null;for(Wh={focusedElem:o,selectionRange:u},If=!1,lr=i;lr!==null;)if(i=lr,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,lr=o;else for(;lr!==null;){switch(i=lr,M=i.alternate,o=i.flags,i.tag){case 0:if((o&4)!==0&&(o=i.updateQueue,o=o!==null?o.events:null,o!==null))for(u=0;u<o.length;u++)S=o[u],S.ref.impl=S.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&M!==null){o=void 0,u=i,S=M.memoizedProps,M=M.memoizedState,p=u.stateNode;try{var st=Di(u.type,S);o=p.getSnapshotBeforeUpdate(st,M),p.__reactInternalSnapshotBeforeUpdate=o}catch(Ct){yn(u,u.return,Ct)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,u=o.nodeType,u===9)qh(o);else if(u===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":qh(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=i.sibling,o!==null){o.return=i.return,lr=o;break}lr=i.return}}function Qx(o,i,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:pa(o,u),p&4&&bc(5,u);break;case 1:if(pa(o,u),p&4)if(o=u.stateNode,i===null)try{o.componentDidMount()}catch(W){yn(u,u.return,W)}else{var S=Di(u.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(S,i,o.__reactInternalSnapshotBeforeUpdate)}catch(W){yn(u,u.return,W)}}p&64&&Yx(u),p&512&&vc(u,u.return);break;case 3:if(pa(o,u),p&64&&(o=u.updateQueue,o!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{DC(o,i)}catch(W){yn(u,u.return,W)}}break;case 27:i===null&&p&4&&Xx(u);case 26:case 5:pa(o,u),i===null&&p&4&&qx(u),p&512&&vc(u,u.return);break;case 12:pa(o,u);break;case 31:pa(o,u),p&4&&e$(o,u);break;case 13:pa(o,u),p&4&&t$(o,u),p&64&&(o=u.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(u=tP.bind(null,u),CP(o,u))));break;case 22:if(p=u.memoizedState!==null||fa,!p){i=i!==null&&i.memoizedState!==null||qn,S=fa;var M=qn;fa=p,(qn=i)&&!M?ga(o,u,(u.subtreeFlags&8772)!==0):pa(o,u),fa=S,qn=M}break;case 30:break;default:pa(o,u)}}function Zx(o){var i=o.alternate;i!==null&&(o.alternate=null,Zx(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&en(i)),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 In=null,jr=!1;function ma(o,i,u){for(u=u.child;u!==null;)Jx(o,i,u),u=u.sibling}function Jx(o,i,u){if(Ne&&typeof Ne.onCommitFiberUnmount=="function")try{Ne.onCommitFiberUnmount(Ke,u)}catch{}switch(u.tag){case 26:qn||Uo(u,i),ma(o,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qn||Uo(u,i);var p=In,S=jr;Za(u.type)&&(In=u.stateNode,jr=!1),ma(o,i,u),Tc(u.stateNode),In=p,jr=S;break;case 5:qn||Uo(u,i);case 6:if(p=In,S=jr,In=null,ma(o,i,u),In=p,jr=S,In!==null)if(jr)try{(In.nodeType===9?In.body:In.nodeName==="HTML"?In.ownerDocument.body:In).removeChild(u.stateNode)}catch(M){yn(u,i,M)}else try{In.removeChild(u.stateNode)}catch(M){yn(u,i,M)}break;case 18:In!==null&&(jr?(o=In,Y$(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,u.stateNode),Kl(o)):Y$(In,u.stateNode));break;case 4:p=In,S=jr,In=u.stateNode.containerInfo,jr=!0,ma(o,i,u),In=p,jr=S;break;case 0:case 11:case 14:case 15:Ya(2,u,i),qn||Ya(4,u,i),ma(o,i,u);break;case 1:qn||(Uo(u,i),p=u.stateNode,typeof p.componentWillUnmount=="function"&&Ux(u,i,p)),ma(o,i,u);break;case 21:ma(o,i,u);break;case 22:qn=(p=qn)||u.memoizedState!==null,ma(o,i,u),qn=p;break;default:ma(o,i,u)}}function e$(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Kl(o)}catch(u){yn(i,i.return,u)}}}function t$(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Kl(o)}catch(u){yn(i,i.return,u)}}function qI(o){switch(o.tag){case 31:case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new Kx),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new Kx),i;default:throw Error(r(435,o.tag))}}function df(o,i){var u=qI(o);i.forEach(function(p){if(!u.has(p)){u.add(p);var S=nP.bind(null,o,p);p.then(S,S)}})}function _r(o,i){var u=i.deletions;if(u!==null)for(var p=0;p<u.length;p++){var S=u[p],M=o,W=i,ee=W;e:for(;ee!==null;){switch(ee.tag){case 27:if(Za(ee.type)){In=ee.stateNode,jr=!1;break e}break;case 5:In=ee.stateNode,jr=!1;break e;case 3:case 4:In=ee.stateNode.containerInfo,jr=!0;break e}ee=ee.return}if(In===null)throw Error(r(160));Jx(M,W,S),In=null,jr=!1,M=S.alternate,M!==null&&(M.return=null),S.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)n$(i,o),i=i.sibling}var Oo=null;function n$(o,i){var u=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:_r(i,o),Hr(o),p&4&&(Ya(3,o,o.return),bc(3,o),Ya(5,o,o.return));break;case 1:_r(i,o),Hr(o),p&512&&(qn||u===null||Uo(u,u.return)),p&64&&fa&&(o=o.updateQueue,o!==null&&(p=o.callbacks,p!==null&&(u=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var S=Oo;if(_r(i,o),Hr(o),p&512&&(qn||u===null||Uo(u,u.return)),p&4){var M=u!==null?u.memoizedState:null;if(p=o.memoizedState,u===null)if(p===null)if(o.stateNode===null){e:{p=o.type,u=o.memoizedProps,S=S.ownerDocument||S;t:switch(p){case"title":M=S.getElementsByTagName("title")[0],(!M||M[Dt]||M[$t]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=S.createElement(p),S.head.insertBefore(M,S.querySelector("head > title"))),br(M,p,u),M[$t]=o,an(M),p=M;break e;case"link":var W=nw("link","href",S).get(p+(u.href||""));if(W){for(var ee=0;ee<W.length;ee++)if(M=W[ee],M.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&M.getAttribute("rel")===(u.rel==null?null:u.rel)&&M.getAttribute("title")===(u.title==null?null:u.title)&&M.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){W.splice(ee,1);break t}}M=S.createElement(p),br(M,p,u),S.head.appendChild(M);break;case"meta":if(W=nw("meta","content",S).get(p+(u.content||""))){for(ee=0;ee<W.length;ee++)if(M=W[ee],M.getAttribute("content")===(u.content==null?null:""+u.content)&&M.getAttribute("name")===(u.name==null?null:u.name)&&M.getAttribute("property")===(u.property==null?null:u.property)&&M.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&M.getAttribute("charset")===(u.charSet==null?null:u.charSet)){W.splice(ee,1);break t}}M=S.createElement(p),br(M,p,u),S.head.appendChild(M);break;default:throw Error(r(468,p))}M[$t]=o,an(M),p=M}o.stateNode=p}else rw(S,o.type,o.stateNode);else o.stateNode=tw(S,p,o.memoizedProps);else M!==p?(M===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):M.count--,p===null?rw(S,o.type,o.stateNode):tw(S,p,o.memoizedProps)):p===null&&o.stateNode!==null&&vh(o,o.memoizedProps,u.memoizedProps)}break;case 27:_r(i,o),Hr(o),p&512&&(qn||u===null||Uo(u,u.return)),u!==null&&p&4&&vh(o,o.memoizedProps,u.memoizedProps);break;case 5:if(_r(i,o),Hr(o),p&512&&(qn||u===null||Uo(u,u.return)),o.flags&32){S=o.stateNode;try{ko(S,"")}catch(st){yn(o,o.return,st)}}p&4&&o.stateNode!=null&&(S=o.memoizedProps,vh(o,S,u!==null?u.memoizedProps:S)),p&1024&&(xh=!0);break;case 6:if(_r(i,o),Hr(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,u=o.stateNode;try{u.nodeValue=p}catch(st){yn(o,o.return,st)}}break;case 3:if(Rf=null,S=Oo,Oo=Ef(i.containerInfo),_r(i,o),Oo=S,Hr(o),p&4&&u!==null&&u.memoizedState.isDehydrated)try{Kl(i.containerInfo)}catch(st){yn(o,o.return,st)}xh&&(xh=!1,r$(o));break;case 4:p=Oo,Oo=Ef(o.stateNode.containerInfo),_r(i,o),Hr(o),Oo=p;break;case 12:_r(i,o),Hr(o);break;case 31:_r(i,o),Hr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,df(o,p)));break;case 13:_r(i,o),Hr(o),o.child.flags&8192&&o.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(mf=ve()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,df(o,p)));break;case 22:S=o.memoizedState!==null;var de=u!==null&&u.memoizedState!==null,we=fa,De=qn;if(fa=we||S,qn=De||de,_r(i,o),qn=De,fa=we,Hr(o),p&8192)e:for(i=o.stateNode,i._visibility=S?i._visibility&-2:i._visibility|1,S&&(u===null||de||fa||qn||ji(o)),u=null,i=o;;){if(i.tag===5||i.tag===26){if(u===null){de=u=i;try{if(M=de.stateNode,S)W=M.style,typeof W.setProperty=="function"?W.setProperty("display","none","important"):W.display="none";else{ee=de.stateNode;var We=de.memoizedProps.style,Ee=We!=null&&We.hasOwnProperty("display")?We.display:null;ee.style.display=Ee==null||typeof Ee=="boolean"?"":(""+Ee).trim()}}catch(st){yn(de,de.return,st)}}}else if(i.tag===6){if(u===null){de=i;try{de.stateNode.nodeValue=S?"":de.memoizedProps}catch(st){yn(de,de.return,st)}}}else if(i.tag===18){if(u===null){de=i;try{var Oe=de.stateNode;S?U$(Oe,!0):U$(de.stateNode,!1)}catch(st){yn(de,de.return,st)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}p&4&&(p=o.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,df(o,u))));break;case 19:_r(i,o),Hr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,df(o,p)));break;case 30:break;case 21:break;default:_r(i,o),Hr(o)}}function Hr(o){var i=o.flags;if(i&2){try{for(var u,p=o.return;p!==null;){if(Gx(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var S=u.stateNode,M=Sh(o);uf(o,M,S);break;case 5:var W=u.stateNode;u.flags&32&&(ko(W,""),u.flags&=-33);var ee=Sh(o);uf(o,ee,W);break;case 3:case 4:var de=u.stateNode.containerInfo,we=Sh(o);Ch(o,we,de);break;default:throw Error(r(161))}}catch(De){yn(o,o.return,De)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function r$(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;r$(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function pa(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Qx(o,i.alternate,i),i=i.sibling}function ji(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:Ya(4,i,i.return),ji(i);break;case 1:Uo(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&Ux(i,i.return,u),ji(i);break;case 27:Tc(i.stateNode);case 26:case 5:Uo(i,i.return),ji(i);break;case 22:i.memoizedState===null&&ji(i);break;case 30:ji(i);break;default:ji(i)}o=o.sibling}}function ga(o,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var p=i.alternate,S=o,M=i,W=M.flags;switch(M.tag){case 0:case 11:case 15:ga(S,M,u),bc(4,M);break;case 1:if(ga(S,M,u),p=M,S=p.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(we){yn(p,p.return,we)}if(p=M,S=p.updateQueue,S!==null){var ee=p.stateNode;try{var de=S.shared.hiddenCallbacks;if(de!==null)for(S.shared.hiddenCallbacks=null,S=0;S<de.length;S++)AC(de[S],ee)}catch(we){yn(p,p.return,we)}}u&&W&64&&Yx(M),vc(M,M.return);break;case 27:Xx(M);case 26:case 5:ga(S,M,u),u&&p===null&&W&4&&qx(M),vc(M,M.return);break;case 12:ga(S,M,u);break;case 31:ga(S,M,u),u&&W&4&&e$(S,M);break;case 13:ga(S,M,u),u&&W&4&&t$(S,M);break;case 22:M.memoizedState===null&&ga(S,M,u),vc(M,M.return);break;case 30:break;default:ga(S,M,u)}i=i.sibling}}function $h(o,i){var u=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==u&&(o!=null&&o.refCount++,u!=null&&ac(u))}function wh(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&ac(o))}function No(o,i,u,p){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)o$(o,i,u,p),i=i.sibling}function o$(o,i,u,p){var S=i.flags;switch(i.tag){case 0:case 11:case 15:No(o,i,u,p),S&2048&&bc(9,i);break;case 1:No(o,i,u,p);break;case 3:No(o,i,u,p),S&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&ac(o)));break;case 12:if(S&2048){No(o,i,u,p),o=i.stateNode;try{var M=i.memoizedProps,W=M.id,ee=M.onPostCommit;typeof ee=="function"&&ee(W,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(de){yn(i,i.return,de)}}else No(o,i,u,p);break;case 31:No(o,i,u,p);break;case 13:No(o,i,u,p);break;case 23:break;case 22:M=i.stateNode,W=i.alternate,i.memoizedState!==null?M._visibility&2?No(o,i,u,p):Sc(o,i):M._visibility&2?No(o,i,u,p):(M._visibility|=2,Bl(o,i,u,p,(i.subtreeFlags&10256)!==0||!1)),S&2048&&$h(W,i);break;case 24:No(o,i,u,p),S&2048&&wh(i.alternate,i);break;default:No(o,i,u,p)}}function Bl(o,i,u,p,S){for(S=S&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var M=o,W=i,ee=u,de=p,we=W.flags;switch(W.tag){case 0:case 11:case 15:Bl(M,W,ee,de,S),bc(8,W);break;case 23:break;case 22:var De=W.stateNode;W.memoizedState!==null?De._visibility&2?Bl(M,W,ee,de,S):Sc(M,W):(De._visibility|=2,Bl(M,W,ee,de,S)),S&&we&2048&&$h(W.alternate,W);break;case 24:Bl(M,W,ee,de,S),S&&we&2048&&wh(W.alternate,W);break;default:Bl(M,W,ee,de,S)}i=i.sibling}}function Sc(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=o,p=i,S=p.flags;switch(p.tag){case 22:Sc(u,p),S&2048&&$h(p.alternate,p);break;case 24:Sc(u,p),S&2048&&wh(p.alternate,p);break;default:Sc(u,p)}i=i.sibling}}var Cc=8192;function Ll(o,i,u){if(o.subtreeFlags&Cc)for(o=o.child;o!==null;)a$(o,i,u),o=o.sibling}function a$(o,i,u){switch(o.tag){case 26:Ll(o,i,u),o.flags&Cc&&o.memoizedState!==null&&zP(u,Oo,o.memoizedState,o.memoizedProps);break;case 5:Ll(o,i,u);break;case 3:case 4:var p=Oo;Oo=Ef(o.stateNode.containerInfo),Ll(o,i,u),Oo=p;break;case 22:o.memoizedState===null&&(p=o.alternate,p!==null&&p.memoizedState!==null?(p=Cc,Cc=16777216,Ll(o,i,u),Cc=p):Ll(o,i,u));break;default:Ll(o,i,u)}}function i$(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function xc(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var p=i[u];lr=p,s$(p,o)}i$(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)l$(o),o=o.sibling}function l$(o){switch(o.tag){case 0:case 11:case 15:xc(o),o.flags&2048&&Ya(9,o,o.return);break;case 3:xc(o);break;case 12:xc(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,ff(o)):xc(o);break;default:xc(o)}}function ff(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var p=i[u];lr=p,s$(p,o)}i$(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:Ya(8,i,i.return),ff(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,ff(i));break;default:ff(i)}o=o.sibling}}function s$(o,i){for(;lr!==null;){var u=lr;switch(u.tag){case 0:case 11:case 15:Ya(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:ac(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,lr=p;else e:for(u=o;lr!==null;){p=lr;var S=p.sibling,M=p.return;if(Zx(p),p===u){lr=null;break e}if(S!==null){S.return=M,lr=S;break e}lr=M}}}var GI={getCacheForType:function(o){var i=hr(Wn),u=i.data.get(o);return u===void 0&&(u=o(),i.data.set(o,u)),u},cacheSignal:function(){return hr(Wn).controller.signal}},XI=typeof WeakMap=="function"?WeakMap:Map,cn=0,wn=null,qt=null,Xt=0,hn=0,Zr=null,Ua=!1,Vl=!1,Eh=!1,ha=0,_n=0,qa=0,_i=0,Mh=0,Jr=0,Fl=0,$c=null,Br=null,Rh=!1,mf=0,c$=0,pf=1/0,gf=null,Ga=null,er=0,Xa=null,kl=null,ya=0,Th=0,Oh=null,u$=null,wc=0,Nh=null;function eo(){return(cn&2)!==0&&Xt!==0?Xt&-Xt:H.T!==null?jh():ft()}function d$(){if(Jr===0)if((Xt&536870912)===0||Zt){var o=Xe;Xe<<=1,(Xe&3932160)===0&&(Xe=262144),Jr=o}else Jr=536870912;return o=Kr.current,o!==null&&(o.flags|=32),Jr}function Lr(o,i,u){(o===wn&&(hn===2||hn===9)||o.cancelPendingCommit!==null)&&(Wl(o,0),Ka(o,Xt,Jr,!1)),ze(o,u),((cn&2)===0||o!==wn)&&(o===wn&&((cn&2)===0&&(_i|=u),_n===4&&Ka(o,Xt,Jr,!1)),qo(o))}function f$(o,i,u){if((cn&6)!==0)throw Error(r(327));var p=!u&&(i&127)===0&&(i&o.expiredLanes)===0||ht(o,i),S=p?ZI(o,i):Ph(o,i,!0),M=p;do{if(S===0){Vl&&!p&&Ka(o,i,0,!1);break}else{if(u=o.current.alternate,M&&!KI(u)){S=Ph(o,i,!1),M=!1;continue}if(S===2){if(M=i,o.errorRecoveryDisabledLanes&M)var W=0;else W=o.pendingLanes&-536870913,W=W!==0?W:W&536870912?536870912:0;if(W!==0){i=W;e:{var ee=o;S=$c;var de=ee.current.memoizedState.isDehydrated;if(de&&(Wl(ee,W).flags|=256),W=Ph(ee,W,!1),W!==2){if(Eh&&!de){ee.errorRecoveryDisabledLanes|=M,_i|=M,S=4;break e}M=Br,Br=S,M!==null&&(Br===null?Br=M:Br.push.apply(Br,M))}S=W}if(M=!1,S!==2)continue}}if(S===1){Wl(o,0),Ka(o,i,0,!0);break}e:{switch(p=o,M=S,M){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Ka(p,i,Jr,!Ua);break e;case 2:Br=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(S=mf+300-ve(),10<S)){if(Ka(p,i,Jr,!Ua),bt(p,0,!0)!==0)break e;ya=i,p.timeoutHandle=k$(m$.bind(null,p,u,Br,gf,Rh,i,Jr,_i,Fl,Ua,M,"Throttled",-0,0),S);break e}m$(p,u,Br,gf,Rh,i,Jr,_i,Fl,Ua,M,null,-0,0)}}break}while(!0);qo(o)}function m$(o,i,u,p,S,M,W,ee,de,we,De,We,Ee,Oe){if(o.timeoutHandle=-1,We=i.subtreeFlags,We&8192||(We&16785408)===16785408){We={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ro},a$(i,M,We);var st=(M&62914560)===M?mf-ve():(M&4194048)===M?c$-ve():0;if(st=AP(We,st),st!==null){ya=M,o.cancelPendingCommit=st(C$.bind(null,o,i,M,u,p,S,W,ee,de,De,We,null,Ee,Oe)),Ka(o,M,W,!we);return}}C$(o,i,M,u,p,S,W,ee,de)}function KI(o){for(var i=o;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var S=u[p],M=S.getSnapshot;S=S.value;try{if(!Gr(M(),S))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ka(o,i,u,p){i&=~Mh,i&=~_i,o.suspendedLanes|=i,o.pingedLanes&=~i,p&&(o.warmLanes|=i),p=o.expirationTimes;for(var S=i;0<S;){var M=31-Ye(S),W=1<<M;p[M]=-1,S&=~W}u!==0&&Ue(o,u,i)}function hf(){return(cn&6)===0?(Ec(0),!1):!0}function Ih(){if(qt!==null){if(hn===0)var o=qt.return;else o=qt,ia=Ti=null,qg(o),Al=null,lc=0,o=qt;for(;o!==null;)Wx(o.alternate,o),o=o.return;qt=null}}function Wl(o,i){var u=o.timeoutHandle;u!==-1&&(o.timeoutHandle=-1,hP(u)),u=o.cancelPendingCommit,u!==null&&(o.cancelPendingCommit=null,u()),ya=0,Ih(),wn=o,qt=u=oa(o.current,null),Xt=i,hn=0,Zr=null,Ua=!1,Vl=ht(o,i),Eh=!1,Fl=Jr=Mh=_i=qa=_n=0,Br=$c=null,Rh=!1,(i&8)!==0&&(i|=i&32);var p=o.entangledLanes;if(p!==0)for(o=o.entanglements,p&=i;0<p;){var S=31-Ye(p),M=1<<S;i|=o[S],p&=~M}return ha=i,jd(),u}function p$(o,i){zt=null,H.H=gc,i===zl||i===Wd?(i=NC(),hn=3):i===Dg?(i=NC(),hn=4):hn=i===ch?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Zr=i,qt===null&&(_n=1,of(o,co(i,o.current)))}function g$(){var o=Kr.current;return o===null?!0:(Xt&4194048)===Xt?po===null:(Xt&62914560)===Xt||(Xt&536870912)!==0?o===po:!1}function h$(){var o=H.H;return H.H=gc,o===null?gc:o}function y$(){var o=H.A;return H.A=GI,o}function yf(){_n=4,Ua||(Xt&4194048)!==Xt&&Kr.current!==null||(Vl=!0),(qa&134217727)===0&&(_i&134217727)===0||wn===null||Ka(wn,Xt,Jr,!1)}function Ph(o,i,u){var p=cn;cn|=2;var S=h$(),M=y$();(wn!==o||Xt!==i)&&(gf=null,Wl(o,i)),i=!1;var W=_n;e:do try{if(hn!==0&&qt!==null){var ee=qt,de=Zr;switch(hn){case 8:Ih(),W=6;break e;case 3:case 2:case 9:case 6:Kr.current===null&&(i=!0);var we=hn;if(hn=0,Zr=null,Yl(o,ee,de,we),u&&Vl){W=0;break e}break;default:we=hn,hn=0,Zr=null,Yl(o,ee,de,we)}}QI(),W=_n;break}catch(De){p$(o,De)}while(!0);return i&&o.shellSuspendCounter++,ia=Ti=null,cn=p,H.H=S,H.A=M,qt===null&&(wn=null,Xt=0,jd()),W}function QI(){for(;qt!==null;)b$(qt)}function ZI(o,i){var u=cn;cn|=2;var p=h$(),S=y$();wn!==o||Xt!==i?(gf=null,pf=ve()+500,Wl(o,i)):Vl=ht(o,i);e:do try{if(hn!==0&&qt!==null){i=qt;var M=Zr;t:switch(hn){case 1:hn=0,Zr=null,Yl(o,i,M,1);break;case 2:case 9:if(TC(M)){hn=0,Zr=null,v$(i);break}i=function(){hn!==2&&hn!==9||wn!==o||(hn=7),qo(o)},M.then(i,i);break e;case 3:hn=7;break e;case 4:hn=5;break e;case 7:TC(M)?(hn=0,Zr=null,v$(i)):(hn=0,Zr=null,Yl(o,i,M,7));break;case 5:var W=null;switch(qt.tag){case 26:W=qt.memoizedState;case 5:case 27:var ee=qt;if(W?ow(W):ee.stateNode.complete){hn=0,Zr=null;var de=ee.sibling;if(de!==null)qt=de;else{var we=ee.return;we!==null?(qt=we,bf(we)):qt=null}break t}}hn=0,Zr=null,Yl(o,i,M,5);break;case 6:hn=0,Zr=null,Yl(o,i,M,6);break;case 8:Ih(),_n=6;break e;default:throw Error(r(462))}}JI();break}catch(De){p$(o,De)}while(!0);return ia=Ti=null,H.H=p,H.A=S,cn=u,qt!==null?0:(wn=null,Xt=0,jd(),_n)}function JI(){for(;qt!==null&&!Se();)b$(qt)}function b$(o){var i=Fx(o.alternate,o,ha);o.memoizedProps=o.pendingProps,i===null?bf(o):qt=i}function v$(o){var i=o,u=i.alternate;switch(i.tag){case 15:case 0:i=jx(u,i,i.pendingProps,i.type,void 0,Xt);break;case 11:i=jx(u,i,i.pendingProps,i.type.render,i.ref,Xt);break;case 5:qg(i);default:Wx(u,i),i=qt=yC(i,ha),i=Fx(u,i,ha)}o.memoizedProps=o.pendingProps,i===null?bf(o):qt=i}function Yl(o,i,u,p){ia=Ti=null,qg(i),Al=null,lc=0;var S=i.return;try{if(VI(o,S,i,u,Xt)){_n=1,of(o,co(u,o.current)),qt=null;return}}catch(M){if(S!==null)throw qt=S,M;_n=1,of(o,co(u,o.current)),qt=null;return}i.flags&32768?(Zt||p===1?o=!0:Vl||(Xt&536870912)!==0?o=!1:(Ua=o=!0,(p===2||p===9||p===3||p===6)&&(p=Kr.current,p!==null&&p.tag===13&&(p.flags|=16384))),S$(i,o)):bf(i)}function bf(o){var i=o;do{if((i.flags&32768)!==0){S$(i,Ua);return}o=i.return;var u=WI(i.alternate,i,ha);if(u!==null){qt=u;return}if(i=i.sibling,i!==null){qt=i;return}qt=i=o}while(i!==null);_n===0&&(_n=5)}function S$(o,i){do{var u=YI(o.alternate,o);if(u!==null){u.flags&=32767,qt=u;return}if(u=o.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(o=o.sibling,o!==null)){qt=o;return}qt=o=u}while(o!==null);_n=6,qt=null}function C$(o,i,u,p,S,M,W,ee,de){o.cancelPendingCommit=null;do vf();while(er!==0);if((cn&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(M=i.lanes|i.childLanes,M|=Sg,Ie(o,u,M,W,ee,de),o===wn&&(qt=wn=null,Xt=0),kl=i,Xa=o,ya=u,Th=M,Oh=S,u$=p,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,rP(Be,function(){return M$(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||p){p=H.T,H.T=null,S=F.p,F.p=2,W=cn,cn|=4;try{UI(o,i,u)}finally{cn=W,F.p=S,H.T=p}}er=1,x$(),$$(),w$()}}function x$(){if(er===1){er=0;var o=Xa,i=kl,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=H.T,H.T=null;var p=F.p;F.p=2;var S=cn;cn|=4;try{n$(i,o);var M=Wh,W=sC(o.containerInfo),ee=M.focusedElem,de=M.selectionRange;if(W!==ee&&ee&&ee.ownerDocument&&lC(ee.ownerDocument.documentElement,ee)){if(de!==null&&gg(ee)){var we=de.start,De=de.end;if(De===void 0&&(De=we),"selectionStart"in ee)ee.selectionStart=we,ee.selectionEnd=Math.min(De,ee.value.length);else{var We=ee.ownerDocument||document,Ee=We&&We.defaultView||window;if(Ee.getSelection){var Oe=Ee.getSelection(),st=ee.textContent.length,Ct=Math.min(de.start,st),Cn=de.end===void 0?Ct:Math.min(de.end,st);!Oe.extend&&Ct>Cn&&(W=Cn,Cn=Ct,Ct=W);var be=iC(ee,Ct),pe=iC(ee,Cn);if(be&&pe&&(Oe.rangeCount!==1||Oe.anchorNode!==be.node||Oe.anchorOffset!==be.offset||Oe.focusNode!==pe.node||Oe.focusOffset!==pe.offset)){var $e=We.createRange();$e.setStart(be.node,be.offset),Oe.removeAllRanges(),Ct>Cn?(Oe.addRange($e),Oe.extend(pe.node,pe.offset)):($e.setEnd(pe.node,pe.offset),Oe.addRange($e))}}}}for(We=[],Oe=ee;Oe=Oe.parentNode;)Oe.nodeType===1&&We.push({element:Oe,left:Oe.scrollLeft,top:Oe.scrollTop});for(typeof ee.focus=="function"&&ee.focus(),ee=0;ee<We.length;ee++){var Ve=We[ee];Ve.element.scrollLeft=Ve.left,Ve.element.scrollTop=Ve.top}}If=!!kh,Wh=kh=null}finally{cn=S,F.p=p,H.T=u}}o.current=i,er=2}}function $$(){if(er===2){er=0;var o=Xa,i=kl,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=H.T,H.T=null;var p=F.p;F.p=2;var S=cn;cn|=4;try{Qx(o,i.alternate,i)}finally{cn=S,F.p=p,H.T=u}}er=3}}function w$(){if(er===4||er===3){er=0,ue();var o=Xa,i=kl,u=ya,p=u$;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?er=5:(er=0,kl=Xa=null,E$(o,o.pendingLanes));var S=o.pendingLanes;if(S===0&&(Ga=null),ot(u),i=i.stateNode,Ne&&typeof Ne.onCommitFiberRoot=="function")try{Ne.onCommitFiberRoot(Ke,i,void 0,(i.current.flags&128)===128)}catch{}if(p!==null){i=H.T,S=F.p,F.p=2,H.T=null;try{for(var M=o.onRecoverableError,W=0;W<p.length;W++){var ee=p[W];M(ee.value,{componentStack:ee.stack})}}finally{H.T=i,F.p=S}}(ya&3)!==0&&vf(),qo(o),S=o.pendingLanes,(u&261930)!==0&&(S&42)!==0?o===Nh?wc++:(wc=0,Nh=o):wc=0,Ec(0)}}function E$(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,ac(i)))}function vf(){return x$(),$$(),w$(),M$()}function M$(){if(er!==5)return!1;var o=Xa,i=Th;Th=0;var u=ot(ya),p=H.T,S=F.p;try{F.p=32>u?32:u,H.T=null,u=Oh,Oh=null;var M=Xa,W=ya;if(er=0,kl=Xa=null,ya=0,(cn&6)!==0)throw Error(r(331));var ee=cn;if(cn|=4,l$(M.current),o$(M,M.current,W,u),cn=ee,Ec(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot=="function")try{Ne.onPostCommitFiberRoot(Ke,M)}catch{}return!0}finally{F.p=S,H.T=p,E$(o,i)}}function R$(o,i,u){i=co(u,i),i=sh(o.stateNode,i,2),o=Fa(o,i,2),o!==null&&(ze(o,2),qo(o))}function yn(o,i,u){if(o.tag===3)R$(o,o,u);else for(;i!==null;){if(i.tag===3){R$(i,o,u);break}else if(i.tag===1){var p=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Ga===null||!Ga.has(p))){o=co(u,o),u=Tx(2),p=Fa(i,u,2),p!==null&&(Ox(u,p,i,o),ze(p,2),qo(p));break}}i=i.return}}function zh(o,i,u){var p=o.pingCache;if(p===null){p=o.pingCache=new XI;var S=new Set;p.set(i,S)}else S=p.get(i),S===void 0&&(S=new Set,p.set(i,S));S.has(u)||(Eh=!0,S.add(u),o=eP.bind(null,o,i,u),i.then(o,o))}function eP(o,i,u){var p=o.pingCache;p!==null&&p.delete(i),o.pingedLanes|=o.suspendedLanes&u,o.warmLanes&=~u,wn===o&&(Xt&u)===u&&(_n===4||_n===3&&(Xt&62914560)===Xt&&300>ve()-mf?(cn&2)===0&&Wl(o,0):Mh|=u,Fl===Xt&&(Fl=0)),qo(o)}function T$(o,i){i===0&&(i=ke()),o=Ei(o,i),o!==null&&(ze(o,i),qo(o))}function tP(o){var i=o.memoizedState,u=0;i!==null&&(u=i.retryLane),T$(o,u)}function nP(o,i){var u=0;switch(o.tag){case 31:case 13:var p=o.stateNode,S=o.memoizedState;S!==null&&(u=S.retryLane);break;case 19:p=o.stateNode;break;case 22:p=o.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(i),T$(o,u)}function rP(o,i){return Ae(o,i)}var Sf=null,Ul=null,Ah=!1,Cf=!1,Dh=!1,Qa=0;function qo(o){o!==Ul&&o.next===null&&(Ul===null?Sf=Ul=o:Ul=Ul.next=o),Cf=!0,Ah||(Ah=!0,aP())}function Ec(o,i){if(!Dh&&Cf){Dh=!0;do for(var u=!1,p=Sf;p!==null;){if(o!==0){var S=p.pendingLanes;if(S===0)var M=0;else{var W=p.suspendedLanes,ee=p.pingedLanes;M=(1<<31-Ye(42|o)+1)-1,M&=S&~(W&~ee),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(u=!0,P$(p,M))}else M=Xt,M=bt(p,p===wn?M:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(M&3)===0||ht(p,M)||(u=!0,P$(p,M));p=p.next}while(u);Dh=!1}}function oP(){O$()}function O$(){Cf=Ah=!1;var o=0;Qa!==0&&gP()&&(o=Qa);for(var i=ve(),u=null,p=Sf;p!==null;){var S=p.next,M=N$(p,i);M===0?(p.next=null,u===null?Sf=S:u.next=S,S===null&&(Ul=u)):(u=p,(o!==0||(M&3)!==0)&&(Cf=!0)),p=S}er!==0&&er!==5||Ec(o),Qa!==0&&(Qa=0)}function N$(o,i){for(var u=o.suspendedLanes,p=o.pingedLanes,S=o.expirationTimes,M=o.pendingLanes&-62914561;0<M;){var W=31-Ye(M),ee=1<<W,de=S[W];de===-1?((ee&u)===0||(ee&p)!==0)&&(S[W]=xt(ee,i)):de<=i&&(o.expiredLanes|=ee),M&=~ee}if(i=wn,u=Xt,u=bt(o,o===i?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p=o.callbackNode,u===0||o===i&&(hn===2||hn===9)||o.cancelPendingCommit!==null)return p!==null&&p!==null&&xe(p),o.callbackNode=null,o.callbackPriority=0;if((u&3)===0||ht(o,u)){if(i=u&-u,i===o.callbackPriority)return i;switch(p!==null&&xe(p),ot(u)){case 2:case 8:u=je;break;case 32:u=Be;break;case 268435456:u=Fe;break;default:u=Be}return p=I$.bind(null,o),u=Ae(u,p),o.callbackPriority=i,o.callbackNode=u,i}return p!==null&&p!==null&&xe(p),o.callbackPriority=2,o.callbackNode=null,2}function I$(o,i){if(er!==0&&er!==5)return o.callbackNode=null,o.callbackPriority=0,null;var u=o.callbackNode;if(vf()&&o.callbackNode!==u)return null;var p=Xt;return p=bt(o,o===wn?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(f$(o,p,i),N$(o,ve()),o.callbackNode!=null&&o.callbackNode===u?I$.bind(null,o):null)}function P$(o,i){if(vf())return null;f$(o,i,!0)}function aP(){yP(function(){(cn&6)!==0?Ae(Pe,oP):O$()})}function jh(){if(Qa===0){var o=Il;o===0&&(o=Re,Re<<=1,(Re&261888)===0&&(Re=256)),Qa=o}return Qa}function z$(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Cl(""+o)}function A$(o,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,o.id&&u.setAttribute("form",o.id),i.parentNode.insertBefore(u,i),o=new FormData(o),u.parentNode.removeChild(u),o}function iP(o,i,u,p,S){if(i==="submit"&&u&&u.stateNode===S){var M=z$((S[dn]||null).action),W=p.submitter;W&&(i=(i=W[dn]||null)?z$(i.formAction):W.getAttribute("formAction"),i!==null&&(M=i,W=null));var ee=new Pd("action","action",null,p,S);o.push({event:ee,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Qa!==0){var de=W?A$(S,W):new FormData(S);nh(u,{pending:!0,data:de,method:S.method,action:M},null,de)}}else typeof M=="function"&&(ee.preventDefault(),de=W?A$(S,W):new FormData(S),nh(u,{pending:!0,data:de,method:S.method,action:M},M,de))},currentTarget:S}]})}}for(var _h=0;_h<vg.length;_h++){var Hh=vg[_h],lP=Hh.toLowerCase(),sP=Hh[0].toUpperCase()+Hh.slice(1);To(lP,"on"+sP)}To(dC,"onAnimationEnd"),To(fC,"onAnimationIteration"),To(mC,"onAnimationStart"),To("dblclick","onDoubleClick"),To("focusin","onFocus"),To("focusout","onBlur"),To(wI,"onTransitionRun"),To(EI,"onTransitionStart"),To(MI,"onTransitionCancel"),To(pC,"onTransitionEnd"),Qn("onMouseEnter",["mouseout","mouseover"]),Qn("onMouseLeave",["mouseout","mouseover"]),Qn("onPointerEnter",["pointerout","pointerover"]),Qn("onPointerLeave",["pointerout","pointerover"]),gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mc="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(" "),cP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mc));function D$(o,i){i=(i&4)!==0;for(var u=0;u<o.length;u++){var p=o[u],S=p.event;p=p.listeners;e:{var M=void 0;if(i)for(var W=p.length-1;0<=W;W--){var ee=p[W],de=ee.instance,we=ee.currentTarget;if(ee=ee.listener,de!==M&&S.isPropagationStopped())break e;M=ee,S.currentTarget=we;try{M(S)}catch(De){Dd(De)}S.currentTarget=null,M=de}else for(W=0;W<p.length;W++){if(ee=p[W],de=ee.instance,we=ee.currentTarget,ee=ee.listener,de!==M&&S.isPropagationStopped())break e;M=ee,S.currentTarget=we;try{M(S)}catch(De){Dd(De)}S.currentTarget=null,M=de}}}}function Gt(o,i){var u=i[lt];u===void 0&&(u=i[lt]=new Set);var p=o+"__bubble";u.has(p)||(j$(i,o,2,!1),u.add(p))}function Bh(o,i,u){var p=0;i&&(p|=4),j$(u,o,p,i)}var xf="_reactListening"+Math.random().toString(36).slice(2);function Lh(o){if(!o[xf]){o[xf]=!0,Sr.forEach(function(u){u!=="selectionchange"&&(cP.has(u)||Bh(u,!1,o),Bh(u,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[xf]||(i[xf]=!0,Bh("selectionchange",!1,i))}}function j$(o,i,u,p){switch(dw(i)){case 2:var S=_P;break;case 8:S=HP;break;default:S=ty}u=S.bind(null,i,u,o),S=void 0,!ig||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(S=!0),p?S!==void 0?o.addEventListener(i,u,{capture:!0,passive:S}):o.addEventListener(i,u,!0):S!==void 0?o.addEventListener(i,u,{passive:S}):o.addEventListener(i,u,!1)}function Vh(o,i,u,p,S){var M=p;if((i&1)===0&&(i&2)===0&&p!==null)e:for(;;){if(p===null)return;var W=p.tag;if(W===3||W===4){var ee=p.stateNode.containerInfo;if(ee===S)break;if(W===4)for(W=p.return;W!==null;){var de=W.tag;if((de===3||de===4)&&W.stateNode.containerInfo===S)return;W=W.return}for(;ee!==null;){if(W=Vt(ee),W===null)return;if(de=W.tag,de===5||de===6||de===26||de===27){p=M=W;continue e}ee=ee.parentNode}}p=p.return}V1(function(){var we=M,De=St(u),We=[];e:{var Ee=gC.get(o);if(Ee!==void 0){var Oe=Pd,st=o;switch(o){case"keypress":if(Nd(u)===0)break e;case"keydown":case"keyup":Oe=nI;break;case"focusin":st="focus",Oe=ug;break;case"focusout":st="blur",Oe=ug;break;case"beforeblur":case"afterblur":Oe=ug;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":Oe=W1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=W3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=aI;break;case dC:case fC:case mC:Oe=q3;break;case pC:Oe=lI;break;case"scroll":case"scrollend":Oe=F3;break;case"wheel":Oe=cI;break;case"copy":case"cut":case"paste":Oe=X3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=U1;break;case"toggle":case"beforetoggle":Oe=dI}var Ct=(i&4)!==0,Cn=!Ct&&(o==="scroll"||o==="scrollend"),be=Ct?Ee!==null?Ee+"Capture":null:Ee;Ct=[];for(var pe=we,$e;pe!==null;){var Ve=pe;if($e=Ve.stateNode,Ve=Ve.tag,Ve!==5&&Ve!==26&&Ve!==27||$e===null||be===null||(Ve=Gs(pe,be),Ve!=null&&Ct.push(Rc(pe,Ve,$e))),Cn)break;pe=pe.return}0<Ct.length&&(Ee=new Oe(Ee,st,null,u,De),We.push({event:Ee,listeners:Ct}))}}if((i&7)===0){e:{if(Ee=o==="mouseover"||o==="pointerover",Oe=o==="mouseout"||o==="pointerout",Ee&&u!==kt&&(st=u.relatedTarget||u.fromElement)&&(Vt(st)||st[Mn]))break e;if((Oe||Ee)&&(Ee=De.window===De?De:(Ee=De.ownerDocument)?Ee.defaultView||Ee.parentWindow:window,Oe?(st=u.relatedTarget||u.toElement,Oe=we,st=st?Vt(st):null,st!==null&&(Cn=s(st),Ct=st.tag,st!==Cn||Ct!==5&&Ct!==27&&Ct!==6)&&(st=null)):(Oe=null,st=we),Oe!==st)){if(Ct=W1,Ve="onMouseLeave",be="onMouseEnter",pe="mouse",(o==="pointerout"||o==="pointerover")&&(Ct=U1,Ve="onPointerLeave",be="onPointerEnter",pe="pointer"),Cn=Oe==null?Ee:on(Oe),$e=st==null?Ee:on(st),Ee=new Ct(Ve,pe+"leave",Oe,u,De),Ee.target=Cn,Ee.relatedTarget=$e,Ve=null,Vt(De)===we&&(Ct=new Ct(be,pe+"enter",st,u,De),Ct.target=$e,Ct.relatedTarget=Cn,Ve=Ct),Cn=Ve,Oe&&st)t:{for(Ct=uP,be=Oe,pe=st,$e=0,Ve=be;Ve;Ve=Ct(Ve))$e++;Ve=0;for(var mt=pe;mt;mt=Ct(mt))Ve++;for(;0<$e-Ve;)be=Ct(be),$e--;for(;0<Ve-$e;)pe=Ct(pe),Ve--;for(;$e--;){if(be===pe||pe!==null&&be===pe.alternate){Ct=be;break t}be=Ct(be),pe=Ct(pe)}Ct=null}else Ct=null;Oe!==null&&_$(We,Ee,Oe,Ct,!1),st!==null&&Cn!==null&&_$(We,Cn,st,Ct,!0)}}e:{if(Ee=we?on(we):window,Oe=Ee.nodeName&&Ee.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&Ee.type==="file")var ln=eC;else if(Z1(Ee))if(tC)ln=CI;else{ln=vI;var ut=bI}else Oe=Ee.nodeName,!Oe||Oe.toLowerCase()!=="input"||Ee.type!=="checkbox"&&Ee.type!=="radio"?we&&Ar(we.elementType)&&(ln=eC):ln=SI;if(ln&&(ln=ln(o,we))){J1(We,ln,u,De);break e}ut&&ut(o,Ee,we),o==="focusout"&&we&&Ee.type==="number"&&we.memoizedProps.value!=null&&Fo(Ee,"number",Ee.value)}switch(ut=we?on(we):window,o){case"focusin":(Z1(ut)||ut.contentEditable==="true")&&($l=ut,hg=we,nc=null);break;case"focusout":nc=hg=$l=null;break;case"mousedown":yg=!0;break;case"contextmenu":case"mouseup":case"dragend":yg=!1,cC(We,u,De);break;case"selectionchange":if($I)break;case"keydown":case"keyup":cC(We,u,De)}var jt;if(fg)e:{switch(o){case"compositionstart":var Kt="onCompositionStart";break e;case"compositionend":Kt="onCompositionEnd";break e;case"compositionupdate":Kt="onCompositionUpdate";break e}Kt=void 0}else xl?K1(o,u)&&(Kt="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(Kt="onCompositionStart");Kt&&(q1&&u.locale!=="ko"&&(xl||Kt!=="onCompositionStart"?Kt==="onCompositionEnd"&&xl&&(jt=F1()):(Da=De,lg="value"in Da?Da.value:Da.textContent,xl=!0)),ut=$f(we,Kt),0<ut.length&&(Kt=new Y1(Kt,o,null,u,De),We.push({event:Kt,listeners:ut}),jt?Kt.data=jt:(jt=Q1(u),jt!==null&&(Kt.data=jt)))),(jt=mI?pI(o,u):gI(o,u))&&(Kt=$f(we,"onBeforeInput"),0<Kt.length&&(ut=new Y1("onBeforeInput","beforeinput",null,u,De),We.push({event:ut,listeners:Kt}),ut.data=jt)),iP(We,o,we,u,De)}D$(We,i)})}function Rc(o,i,u){return{instance:o,listener:i,currentTarget:u}}function $f(o,i){for(var u=i+"Capture",p=[];o!==null;){var S=o,M=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||M===null||(S=Gs(o,u),S!=null&&p.unshift(Rc(o,S,M)),S=Gs(o,i),S!=null&&p.push(Rc(o,S,M))),o.tag===3)return p;o=o.return}return[]}function uP(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function _$(o,i,u,p,S){for(var M=i._reactName,W=[];u!==null&&u!==p;){var ee=u,de=ee.alternate,we=ee.stateNode;if(ee=ee.tag,de!==null&&de===p)break;ee!==5&&ee!==26&&ee!==27||we===null||(de=we,S?(we=Gs(u,M),we!=null&&W.unshift(Rc(u,we,de))):S||(we=Gs(u,M),we!=null&&W.push(Rc(u,we,de)))),u=u.return}W.length!==0&&o.push({event:i,listeners:W})}var dP=/\r\n?/g,fP=/\u0000|\uFFFD/g;function H$(o){return(typeof o=="string"?o:""+o).replace(dP,`
|
|
9
|
+
`).replace(fP,"")}function B$(o,i){return i=H$(i),H$(o)===i}function Sn(o,i,u,p,S,M){switch(u){case"children":typeof p=="string"?i==="body"||i==="textarea"&&p===""||ko(o,p):(typeof p=="number"||typeof p=="bigint")&&i!=="body"&&ko(o,""+p);break;case"className":xr(o,"class",p);break;case"tabIndex":xr(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":xr(o,u,p);break;case"style":Jn(o,p,M);break;case"data":if(i!=="object"){xr(o,"data",p);break}case"src":case"href":if(p===""&&(i!=="a"||u!=="href")){o.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(u);break}p=Cl(""+p),o.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="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 M=="function"&&(u==="formAction"?(i!=="input"&&Sn(o,i,"name",S.name,S,null),Sn(o,i,"formEncType",S.formEncType,S,null),Sn(o,i,"formMethod",S.formMethod,S,null),Sn(o,i,"formTarget",S.formTarget,S,null)):(Sn(o,i,"encType",S.encType,S,null),Sn(o,i,"method",S.method,S,null),Sn(o,i,"target",S.target,S,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(u);break}p=Cl(""+p),o.setAttribute(u,p);break;case"onClick":p!=null&&(o.onclick=Ro);break;case"onScroll":p!=null&&Gt("scroll",o);break;case"onScrollEnd":p!=null&&Gt("scrollend",o);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(S.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"multiple":o.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":o.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){o.removeAttribute("xlink:href");break}u=Cl(""+p),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":p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(u,""+p):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":p&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(u,""):o.removeAttribute(u);break;case"capture":case"download":p===!0?o.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(u,p):o.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?o.setAttribute(u,p):o.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?o.removeAttribute(u):o.setAttribute(u,p);break;case"popover":Gt("beforetoggle",o),Gt("toggle",o),Cr(o,"popover",p);break;case"xlinkActuate":Zn(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Zn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Zn(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Zn(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Zn(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Zn(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Cr(o,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Sl.get(u)||u,Cr(o,u,p))}}function Fh(o,i,u,p,S,M){switch(u){case"style":Jn(o,p,M);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(S.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"children":typeof p=="string"?ko(o,p):(typeof p=="number"||typeof p=="bigint")&&ko(o,""+p);break;case"onScroll":p!=null&&Gt("scroll",o);break;case"onScrollEnd":p!=null&&Gt("scrollend",o);break;case"onClick":p!=null&&(o.onclick=Ro);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zr.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(S=u.endsWith("Capture"),i=u.slice(2,S?u.length-7:void 0),M=o[dn]||null,M=M!=null?M[u]:null,typeof M=="function"&&o.removeEventListener(i,M,S),typeof p=="function")){typeof M!="function"&&M!==null&&(u in o?o[u]=null:o.hasAttribute(u)&&o.removeAttribute(u)),o.addEventListener(i,p,S);break e}u in o?o[u]=p:p===!0?o.setAttribute(u,""):Cr(o,u,p)}}}function br(o,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Gt("error",o),Gt("load",o);var p=!1,S=!1,M;for(M in u)if(u.hasOwnProperty(M)){var W=u[M];if(W!=null)switch(M){case"src":p=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Sn(o,i,M,W,u,null)}}S&&Sn(o,i,"srcSet",u.srcSet,u,null),p&&Sn(o,i,"src",u.src,u,null);return;case"input":Gt("invalid",o);var ee=M=W=S=null,de=null,we=null;for(p in u)if(u.hasOwnProperty(p)){var De=u[p];if(De!=null)switch(p){case"name":S=De;break;case"type":W=De;break;case"checked":de=De;break;case"defaultChecked":we=De;break;case"value":M=De;break;case"defaultValue":ee=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(r(137,i));break;default:Sn(o,i,p,De,u,null)}}za(o,M,ee,de,we,W,S,!1);return;case"select":Gt("invalid",o),p=W=M=null;for(S in u)if(u.hasOwnProperty(S)&&(ee=u[S],ee!=null))switch(S){case"value":M=ee;break;case"defaultValue":W=ee;break;case"multiple":p=ee;default:Sn(o,i,S,ee,u,null)}i=M,u=W,o.multiple=!!p,i!=null?qr(o,!!p,i,!1):u!=null&&qr(o,!!p,u,!0);return;case"textarea":Gt("invalid",o),M=S=p=null;for(W in u)if(u.hasOwnProperty(W)&&(ee=u[W],ee!=null))switch(W){case"value":p=ee;break;case"defaultValue":S=ee;break;case"children":M=ee;break;case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(91));break;default:Sn(o,i,W,ee,u,null)}vl(o,p,S,M);return;case"option":for(de in u)u.hasOwnProperty(de)&&(p=u[de],p!=null)&&(de==="selected"?o.selected=p&&typeof p!="function"&&typeof p!="symbol":Sn(o,i,de,p,u,null));return;case"dialog":Gt("beforetoggle",o),Gt("toggle",o),Gt("cancel",o),Gt("close",o);break;case"iframe":case"object":Gt("load",o);break;case"video":case"audio":for(p=0;p<Mc.length;p++)Gt(Mc[p],o);break;case"image":Gt("error",o),Gt("load",o);break;case"details":Gt("toggle",o);break;case"embed":case"source":case"link":Gt("error",o),Gt("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(we in u)if(u.hasOwnProperty(we)&&(p=u[we],p!=null))switch(we){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Sn(o,i,we,p,u,null)}return;default:if(Ar(i)){for(De in u)u.hasOwnProperty(De)&&(p=u[De],p!==void 0&&Fh(o,i,De,p,u,void 0));return}}for(ee in u)u.hasOwnProperty(ee)&&(p=u[ee],p!=null&&Sn(o,i,ee,p,u,null))}function mP(o,i,u,p){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,M=null,W=null,ee=null,de=null,we=null,De=null;for(Oe in u){var We=u[Oe];if(u.hasOwnProperty(Oe)&&We!=null)switch(Oe){case"checked":break;case"value":break;case"defaultValue":de=We;default:p.hasOwnProperty(Oe)||Sn(o,i,Oe,null,p,We)}}for(var Ee in p){var Oe=p[Ee];if(We=u[Ee],p.hasOwnProperty(Ee)&&(Oe!=null||We!=null))switch(Ee){case"type":M=Oe;break;case"name":S=Oe;break;case"checked":we=Oe;break;case"defaultChecked":De=Oe;break;case"value":W=Oe;break;case"defaultValue":ee=Oe;break;case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(r(137,i));break;default:Oe!==We&&Sn(o,i,Ee,Oe,p,We)}}lo(o,W,ee,de,we,De,M,S);return;case"select":Oe=W=ee=Ee=null;for(M in u)if(de=u[M],u.hasOwnProperty(M)&&de!=null)switch(M){case"value":break;case"multiple":Oe=de;default:p.hasOwnProperty(M)||Sn(o,i,M,null,p,de)}for(S in p)if(M=p[S],de=u[S],p.hasOwnProperty(S)&&(M!=null||de!=null))switch(S){case"value":Ee=M;break;case"defaultValue":ee=M;break;case"multiple":W=M;default:M!==de&&Sn(o,i,S,M,p,de)}i=ee,u=W,p=Oe,Ee!=null?qr(o,!!u,Ee,!1):!!p!=!!u&&(i!=null?qr(o,!!u,i,!0):qr(o,!!u,u?[]:"",!1));return;case"textarea":Oe=Ee=null;for(ee in u)if(S=u[ee],u.hasOwnProperty(ee)&&S!=null&&!p.hasOwnProperty(ee))switch(ee){case"value":break;case"children":break;default:Sn(o,i,ee,null,p,S)}for(W in p)if(S=p[W],M=u[W],p.hasOwnProperty(W)&&(S!=null||M!=null))switch(W){case"value":Ee=S;break;case"defaultValue":Oe=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:S!==M&&Sn(o,i,W,S,p,M)}Aa(o,Ee,Oe);return;case"option":for(var st in u)Ee=u[st],u.hasOwnProperty(st)&&Ee!=null&&!p.hasOwnProperty(st)&&(st==="selected"?o.selected=!1:Sn(o,i,st,null,p,Ee));for(de in p)Ee=p[de],Oe=u[de],p.hasOwnProperty(de)&&Ee!==Oe&&(Ee!=null||Oe!=null)&&(de==="selected"?o.selected=Ee&&typeof Ee!="function"&&typeof Ee!="symbol":Sn(o,i,de,Ee,p,Oe));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 Ct in u)Ee=u[Ct],u.hasOwnProperty(Ct)&&Ee!=null&&!p.hasOwnProperty(Ct)&&Sn(o,i,Ct,null,p,Ee);for(we in p)if(Ee=p[we],Oe=u[we],p.hasOwnProperty(we)&&Ee!==Oe&&(Ee!=null||Oe!=null))switch(we){case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,i));break;default:Sn(o,i,we,Ee,p,Oe)}return;default:if(Ar(i)){for(var Cn in u)Ee=u[Cn],u.hasOwnProperty(Cn)&&Ee!==void 0&&!p.hasOwnProperty(Cn)&&Fh(o,i,Cn,void 0,p,Ee);for(De in p)Ee=p[De],Oe=u[De],!p.hasOwnProperty(De)||Ee===Oe||Ee===void 0&&Oe===void 0||Fh(o,i,De,Ee,p,Oe);return}}for(var be in u)Ee=u[be],u.hasOwnProperty(be)&&Ee!=null&&!p.hasOwnProperty(be)&&Sn(o,i,be,null,p,Ee);for(We in p)Ee=p[We],Oe=u[We],!p.hasOwnProperty(We)||Ee===Oe||Ee==null&&Oe==null||Sn(o,i,We,Ee,p,Oe)}function L$(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pP(){if(typeof performance.getEntriesByType=="function"){for(var o=0,i=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var S=u[p],M=S.transferSize,W=S.initiatorType,ee=S.duration;if(M&&ee&&L$(W)){for(W=0,ee=S.responseEnd,p+=1;p<u.length;p++){var de=u[p],we=de.startTime;if(we>ee)break;var De=de.transferSize,We=de.initiatorType;De&&L$(We)&&(de=de.responseEnd,W+=De*(de<ee?1:(ee-we)/(de-we)))}if(--p,i+=8*(M+W)/(S.duration/1e3),o++,10<o)break}}if(0<o)return i/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var kh=null,Wh=null;function wf(o){return o.nodeType===9?o:o.ownerDocument}function V$(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 F$(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function Yh(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Uh=null;function gP(){var o=window.event;return o&&o.type==="popstate"?o===Uh?!1:(Uh=o,!0):(Uh=null,!1)}var k$=typeof setTimeout=="function"?setTimeout:void 0,hP=typeof clearTimeout=="function"?clearTimeout:void 0,W$=typeof Promise=="function"?Promise:void 0,yP=typeof queueMicrotask=="function"?queueMicrotask:typeof W$<"u"?function(o){return W$.resolve(null).then(o).catch(bP)}:k$;function bP(o){setTimeout(function(){throw o})}function Za(o){return o==="head"}function Y$(o,i){var u=i,p=0;do{var S=u.nextSibling;if(o.removeChild(u),S&&S.nodeType===8)if(u=S.data,u==="/$"||u==="/&"){if(p===0){o.removeChild(S),Kl(i);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Tc(o.ownerDocument.documentElement);else if(u==="head"){u=o.ownerDocument.head,Tc(u);for(var M=u.firstChild;M;){var W=M.nextSibling,ee=M.nodeName;M[Dt]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&M.rel.toLowerCase()==="stylesheet"||u.removeChild(M),M=W}}else u==="body"&&Tc(o.ownerDocument.body);u=S}while(u);Kl(i)}function U$(o,i){var u=o;o=0;do{var p=u.nextSibling;if(u.nodeType===1?i?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(i?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(o===0)break;o--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||o++;u=p}while(u)}function qh(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":qh(u),en(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}o.removeChild(u)}}function vP(o,i,u,p){for(;o.nodeType===1;){var S=u;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!p&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(p){if(!o[Dt])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(M=o.getAttribute("rel"),M==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(M!==S.rel||o.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||o.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||o.getAttribute("title")!==(S.title==null?null:S.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(M=o.getAttribute("src"),(M!==(S.src==null?null:S.src)||o.getAttribute("type")!==(S.type==null?null:S.type)||o.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&M&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var M=S.name==null?null:""+S.name;if(S.type==="hidden"&&o.getAttribute("name")===M)return o}else return o;if(o=go(o.nextSibling),o===null)break}return null}function SP(o,i,u){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=go(o.nextSibling),o===null))return null;return o}function q$(o,i){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!i||(o=go(o.nextSibling),o===null))return null;return o}function Gh(o){return o.data==="$?"||o.data==="$~"}function Xh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function CP(o,i){var u=o.ownerDocument;if(o.data==="$~")o._reactRetry=i;else if(o.data!=="$?"||u.readyState!=="loading")i();else{var p=function(){i(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),o._reactRetry=p}}function go(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return o}var Kh=null;function G$(o){o=o.nextSibling;for(var i=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"||u==="/&"){if(i===0)return go(o.nextSibling);i--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||i++}o=o.nextSibling}return null}function X$(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var u=o.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(i===0)return o;i--}else u!=="/$"&&u!=="/&"||i++}o=o.previousSibling}return null}function K$(o,i,u){switch(i=wf(u),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Tc(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);en(o)}var ho=new Map,Q$=new Set;function Ef(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ba=F.d;F.d={f:xP,r:$P,D:wP,C:EP,L:MP,m:RP,X:OP,S:TP,M:NP};function xP(){var o=ba.f(),i=hf();return o||i}function $P(o){var i=tn(o);i!==null&&i.tag===5&&i.type==="form"?px(i):ba.r(o)}var ql=typeof document>"u"?null:document;function Z$(o,i,u){var p=ql;if(p&&typeof i=="string"&&i){var S=wt(i);S='link[rel="'+o+'"][href="'+S+'"]',typeof u=="string"&&(S+='[crossorigin="'+u+'"]'),Q$.has(S)||(Q$.add(S),o={rel:o,crossOrigin:u,href:i},p.querySelector(S)===null&&(i=p.createElement("link"),br(i,"link",o),an(i),p.head.appendChild(i)))}}function wP(o){ba.D(o),Z$("dns-prefetch",o,null)}function EP(o,i){ba.C(o,i),Z$("preconnect",o,i)}function MP(o,i,u){ba.L(o,i,u);var p=ql;if(p&&o&&i){var S='link[rel="preload"][as="'+wt(i)+'"]';i==="image"&&u&&u.imageSrcSet?(S+='[imagesrcset="'+wt(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(S+='[imagesizes="'+wt(u.imageSizes)+'"]')):S+='[href="'+wt(o)+'"]';var M=S;switch(i){case"style":M=Gl(o);break;case"script":M=Xl(o)}ho.has(M)||(o=h({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:o,as:i},u),ho.set(M,o),p.querySelector(S)!==null||i==="style"&&p.querySelector(Oc(M))||i==="script"&&p.querySelector(Nc(M))||(i=p.createElement("link"),br(i,"link",o),an(i),p.head.appendChild(i)))}}function RP(o,i){ba.m(o,i);var u=ql;if(u&&o){var p=i&&typeof i.as=="string"?i.as:"script",S='link[rel="modulepreload"][as="'+wt(p)+'"][href="'+wt(o)+'"]',M=S;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=Xl(o)}if(!ho.has(M)&&(o=h({rel:"modulepreload",href:o},i),ho.set(M,o),u.querySelector(S)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Nc(M)))return}p=u.createElement("link"),br(p,"link",o),an(p),u.head.appendChild(p)}}}function TP(o,i,u){ba.S(o,i,u);var p=ql;if(p&&o){var S=Pn(p).hoistableStyles,M=Gl(o);i=i||"default";var W=S.get(M);if(!W){var ee={loading:0,preload:null};if(W=p.querySelector(Oc(M)))ee.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":i},u),(u=ho.get(M))&&Qh(o,u);var de=W=p.createElement("link");an(de),br(de,"link",o),de._p=new Promise(function(we,De){de.onload=we,de.onerror=De}),de.addEventListener("load",function(){ee.loading|=1}),de.addEventListener("error",function(){ee.loading|=2}),ee.loading|=4,Mf(W,i,p)}W={type:"stylesheet",instance:W,count:1,state:ee},S.set(M,W)}}}function OP(o,i){ba.X(o,i);var u=ql;if(u&&o){var p=Pn(u).hoistableScripts,S=Xl(o),M=p.get(S);M||(M=u.querySelector(Nc(S)),M||(o=h({src:o,async:!0},i),(i=ho.get(S))&&Zh(o,i),M=u.createElement("script"),an(M),br(M,"link",o),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},p.set(S,M))}}function NP(o,i){ba.M(o,i);var u=ql;if(u&&o){var p=Pn(u).hoistableScripts,S=Xl(o),M=p.get(S);M||(M=u.querySelector(Nc(S)),M||(o=h({src:o,async:!0,type:"module"},i),(i=ho.get(S))&&Zh(o,i),M=u.createElement("script"),an(M),br(M,"link",o),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},p.set(S,M))}}function J$(o,i,u,p){var S=(S=Z.current)?Ef(S):null;if(!S)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=Gl(u.href),u=Pn(S).hoistableStyles,p=u.get(i),p||(p={type:"style",instance:null,count:0,state:null},u.set(i,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){o=Gl(u.href);var M=Pn(S).hoistableStyles,W=M.get(o);if(W||(S=S.ownerDocument||S,W={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(o,W),(M=S.querySelector(Oc(o)))&&!M._p&&(W.instance=M,W.state.loading=5),ho.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},ho.set(o,u),M||IP(S,o,u,W.state))),i&&p===null)throw Error(r(528,""));return W}if(i&&p!==null)throw Error(r(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Xl(u),u=Pn(S).hoistableScripts,p=u.get(i),p||(p={type:"script",instance:null,count:0,state:null},u.set(i,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Gl(o){return'href="'+wt(o)+'"'}function Oc(o){return'link[rel="stylesheet"]['+o+"]"}function ew(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function IP(o,i,u,p){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?p.loading=1:(i=o.createElement("link"),p.preload=i,i.addEventListener("load",function(){return p.loading|=1}),i.addEventListener("error",function(){return p.loading|=2}),br(i,"link",u),an(i),o.head.appendChild(i))}function Xl(o){return'[src="'+wt(o)+'"]'}function Nc(o){return"script[async]"+o}function tw(o,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var p=o.querySelector('style[data-href~="'+wt(u.href)+'"]');if(p)return i.instance=p,an(p),p;var S=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(o.ownerDocument||o).createElement("style"),an(p),br(p,"style",S),Mf(p,u.precedence,o),i.instance=p;case"stylesheet":S=Gl(u.href);var M=o.querySelector(Oc(S));if(M)return i.state.loading|=4,i.instance=M,an(M),M;p=ew(u),(S=ho.get(S))&&Qh(p,S),M=(o.ownerDocument||o).createElement("link"),an(M);var W=M;return W._p=new Promise(function(ee,de){W.onload=ee,W.onerror=de}),br(M,"link",p),i.state.loading|=4,Mf(M,u.precedence,o),i.instance=M;case"script":return M=Xl(u.src),(S=o.querySelector(Nc(M)))?(i.instance=S,an(S),S):(p=u,(S=ho.get(M))&&(p=h({},u),Zh(p,S)),o=o.ownerDocument||o,S=o.createElement("script"),an(S),br(S,"link",p),o.head.appendChild(S),i.instance=S);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(p=i.instance,i.state.loading|=4,Mf(p,u.precedence,o));return i.instance}function Mf(o,i,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=p.length?p[p.length-1]:null,M=S,W=0;W<p.length;W++){var ee=p[W];if(ee.dataset.precedence===i)M=ee;else if(M!==S)break}M?M.parentNode.insertBefore(o,M.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(o,i.firstChild))}function Qh(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function Zh(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var Rf=null;function nw(o,i,u){if(Rf===null){var p=new Map,S=Rf=new Map;S.set(u,p)}else S=Rf,p=S.get(u),p||(p=new Map,S.set(u,p));if(p.has(o))return p;for(p.set(o,null),u=u.getElementsByTagName(o),S=0;S<u.length;S++){var M=u[S];if(!(M[Dt]||M[$t]||o==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var W=M.getAttribute(i)||"";W=o+W;var ee=p.get(W);ee?ee.push(M):p.set(W,[M])}}return p}function rw(o,i,u){o=o.ownerDocument||o,o.head.insertBefore(u,i==="title"?o.querySelector("head > title"):null)}function PP(o,i,u){if(u===1||i.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(o=i.disabled,typeof i.precedence=="string"&&o==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function ow(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function zP(o,i,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var S=Gl(p.href),M=i.querySelector(Oc(S));if(M){i=M._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(o.count++,o=Tf.bind(o),i.then(o,o)),u.state.loading|=4,u.instance=M,an(M);return}M=i.ownerDocument||i,p=ew(p),(S=ho.get(S))&&Qh(p,S),M=M.createElement("link"),an(M);var W=M;W._p=new Promise(function(ee,de){W.onload=ee,W.onerror=de}),br(M,"link",p),u.instance=M}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(o.count++,u=Tf.bind(o),i.addEventListener("load",u),i.addEventListener("error",u))}}var Jh=0;function AP(o,i){return o.stylesheets&&o.count===0&&Nf(o,o.stylesheets),0<o.count||0<o.imgCount?function(u){var p=setTimeout(function(){if(o.stylesheets&&Nf(o,o.stylesheets),o.unsuspend){var M=o.unsuspend;o.unsuspend=null,M()}},6e4+i);0<o.imgBytes&&Jh===0&&(Jh=62500*pP());var S=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Nf(o,o.stylesheets),o.unsuspend)){var M=o.unsuspend;o.unsuspend=null,M()}},(o.imgBytes>Jh?50:800)+i);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(p),clearTimeout(S)}}:null}function Tf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Of=null;function Nf(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Of=new Map,i.forEach(DP,o),Of=null,Tf.call(o))}function DP(o,i){if(!(i.state.loading&4)){var u=Of.get(o);if(u)var p=u.get(null);else{u=new Map,Of.set(o,u);for(var S=o.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<S.length;M++){var W=S[M];(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")&&(u.set(W.dataset.precedence,W),p=W)}p&&u.set(null,p)}S=i.instance,W=S.getAttribute("data-precedence"),M=u.get(W)||p,M===p&&u.set(null,S),u.set(W,S),this.count++,p=Tf.bind(this),S.addEventListener("load",p),S.addEventListener("error",p),M?M.parentNode.insertBefore(S,M.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(S,o.firstChild)),i.state.loading|=4}}var Ic={$$typeof:$,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function jP(o,i,u,p,S,M,W,ee,de){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=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=p,this.onUncaughtError=S,this.onCaughtError=M,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=de,this.incompleteTransitions=new Map}function aw(o,i,u,p,S,M,W,ee,de,we,De,We){return o=new jP(o,i,u,W,de,we,De,We,ee),i=1,M===!0&&(i|=24),M=Xr(3,null,null,i),o.current=M,M.stateNode=o,i=Pg(),i.refCount++,o.pooledCache=i,i.refCount++,M.memoizedState={element:p,isDehydrated:u,cache:i},jg(M),o}function iw(o){return o?(o=Ml,o):Ml}function lw(o,i,u,p,S,M){S=iw(S),p.context===null?p.context=S:p.pendingContext=S,p=Va(i),p.payload={element:u},M=M===void 0?null:M,M!==null&&(p.callback=M),u=Fa(o,p,i),u!==null&&(Lr(u,o,i),cc(u,o,i))}function sw(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<i?u:i}}function ey(o,i){sw(o,i),(o=o.alternate)&&sw(o,i)}function cw(o){if(o.tag===13||o.tag===31){var i=Ei(o,67108864);i!==null&&Lr(i,o,67108864),ey(o,67108864)}}function uw(o){if(o.tag===13||o.tag===31){var i=eo();i=Je(i);var u=Ei(o,i);u!==null&&Lr(u,o,i),ey(o,i)}}var If=!0;function _P(o,i,u,p){var S=H.T;H.T=null;var M=F.p;try{F.p=2,ty(o,i,u,p)}finally{F.p=M,H.T=S}}function HP(o,i,u,p){var S=H.T;H.T=null;var M=F.p;try{F.p=8,ty(o,i,u,p)}finally{F.p=M,H.T=S}}function ty(o,i,u,p){if(If){var S=ny(p);if(S===null)Vh(o,i,p,Pf,u),fw(o,p);else if(LP(S,o,i,u,p))p.stopPropagation();else if(fw(o,p),i&4&&-1<BP.indexOf(o)){for(;S!==null;){var M=tn(S);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var W=at(M.pendingLanes);if(W!==0){var ee=M;for(ee.pendingLanes|=2,ee.entangledLanes|=2;W;){var de=1<<31-Ye(W);ee.entanglements[1]|=de,W&=~de}qo(M),(cn&6)===0&&(pf=ve()+500,Ec(0))}}break;case 31:case 13:ee=Ei(M,2),ee!==null&&Lr(ee,M,2),hf(),ey(M,2)}if(M=ny(p),M===null&&Vh(o,i,p,Pf,u),M===S)break;S=M}S!==null&&p.stopPropagation()}else Vh(o,i,p,null,u)}}function ny(o){return o=St(o),ry(o)}var Pf=null;function ry(o){if(Pf=null,o=Vt(o),o!==null){var i=s(o);if(i===null)o=null;else{var u=i.tag;if(u===13){if(o=c(i),o!==null)return o;o=null}else if(u===31){if(o=d(i),o!==null)return o;o=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Pf=o,null}function dw(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(Me()){case Pe:return 2;case je:return 8;case Be:case Ze:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var oy=!1,Ja=null,ei=null,ti=null,Pc=new Map,zc=new Map,ni=[],BP="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 fw(o,i){switch(o){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Pc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":zc.delete(i.pointerId)}}function Ac(o,i,u,p,S,M){return o===null||o.nativeEvent!==M?(o={blockedOn:i,domEventName:u,eventSystemFlags:p,nativeEvent:M,targetContainers:[S]},i!==null&&(i=tn(i),i!==null&&cw(i)),o):(o.eventSystemFlags|=p,i=o.targetContainers,S!==null&&i.indexOf(S)===-1&&i.push(S),o)}function LP(o,i,u,p,S){switch(i){case"focusin":return Ja=Ac(Ja,o,i,u,p,S),!0;case"dragenter":return ei=Ac(ei,o,i,u,p,S),!0;case"mouseover":return ti=Ac(ti,o,i,u,p,S),!0;case"pointerover":var M=S.pointerId;return Pc.set(M,Ac(Pc.get(M)||null,o,i,u,p,S)),!0;case"gotpointercapture":return M=S.pointerId,zc.set(M,Ac(zc.get(M)||null,o,i,u,p,S)),!0}return!1}function mw(o){var i=Vt(o.target);if(i!==null){var u=s(i);if(u!==null){if(i=u.tag,i===13){if(i=c(u),i!==null){o.blockedOn=i,Lt(o.priority,function(){uw(u)});return}}else if(i===31){if(i=d(u),i!==null){o.blockedOn=i,Lt(o.priority,function(){uw(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){o.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}o.blockedOn=null}function zf(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var u=ny(o.nativeEvent);if(u===null){u=o.nativeEvent;var p=new u.constructor(u.type,u);kt=p,u.target.dispatchEvent(p),kt=null}else return i=tn(u),i!==null&&cw(i),o.blockedOn=u,!1;i.shift()}return!0}function pw(o,i,u){zf(o)&&u.delete(i)}function VP(){oy=!1,Ja!==null&&zf(Ja)&&(Ja=null),ei!==null&&zf(ei)&&(ei=null),ti!==null&&zf(ti)&&(ti=null),Pc.forEach(pw),zc.forEach(pw)}function Af(o,i){o.blockedOn===i&&(o.blockedOn=null,oy||(oy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,VP)))}var Df=null;function gw(o){Df!==o&&(Df=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Df===o&&(Df=null);for(var i=0;i<o.length;i+=3){var u=o[i],p=o[i+1],S=o[i+2];if(typeof p!="function"){if(ry(p||u)===null)continue;break}var M=tn(u);M!==null&&(o.splice(i,3),i-=3,nh(M,{pending:!0,data:S,method:u.method,action:p},p,S))}}))}function Kl(o){function i(de){return Af(de,o)}Ja!==null&&Af(Ja,o),ei!==null&&Af(ei,o),ti!==null&&Af(ti,o),Pc.forEach(i),zc.forEach(i);for(var u=0;u<ni.length;u++){var p=ni[u];p.blockedOn===o&&(p.blockedOn=null)}for(;0<ni.length&&(u=ni[0],u.blockedOn===null);)mw(u),u.blockedOn===null&&ni.shift();if(u=(o.ownerDocument||o).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var S=u[p],M=u[p+1],W=S[dn]||null;if(typeof M=="function")W||gw(u);else if(W){var ee=null;if(M&&M.hasAttribute("formAction")){if(S=M,W=M[dn]||null)ee=W.formAction;else if(ry(S)!==null)continue}else ee=W.action;typeof ee=="function"?u[p+1]=ee:(u.splice(p,3),p-=3),gw(u)}}}function hw(){function o(M){M.canIntercept&&M.info==="react-transition"&&M.intercept({handler:function(){return new Promise(function(W){return S=W})},focusReset:"manual",scroll:"manual"})}function i(){S!==null&&(S(),S=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var M=navigation.currentEntry;M&&M.url!=null&&navigation.navigate(M.url,{state:M.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,S=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),S!==null&&(S(),S=null)}}}function ay(o){this._internalRoot=o}jf.prototype.render=ay.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var u=i.current,p=eo();lw(u,p,o,i,null,null)},jf.prototype.unmount=ay.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;lw(o.current,2,null,o,null,null),hf(),i[Mn]=null}};function jf(o){this._internalRoot=o}jf.prototype.unstable_scheduleHydration=function(o){if(o){var i=ft();o={blockedOn:null,target:o,priority:i};for(var u=0;u<ni.length&&i!==0&&i<ni[u].priority;u++);ni.splice(u,0,o),u===0&&mw(o)}};var yw=t.version;if(yw!=="19.2.4")throw Error(r(527,yw,"19.2.4"));F.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=m(i),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var FP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_f.isDisabled&&_f.supportsFiber)try{Ke=_f.inject(FP),Ne=_f}catch{}}return jc.createRoot=function(o,i){if(!a(o))throw Error(r(299));var u=!1,p="",S=wx,M=Ex,W=Mx;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(S=i.onUncaughtError),i.onCaughtError!==void 0&&(M=i.onCaughtError),i.onRecoverableError!==void 0&&(W=i.onRecoverableError)),i=aw(o,1,!1,null,null,u,p,null,S,M,W,hw),o[Mn]=i.current,Lh(o),new ay(i)},jc.hydrateRoot=function(o,i,u){if(!a(o))throw Error(r(299));var p=!1,S="",M=wx,W=Ex,ee=Mx,de=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onUncaughtError!==void 0&&(M=u.onUncaughtError),u.onCaughtError!==void 0&&(W=u.onCaughtError),u.onRecoverableError!==void 0&&(ee=u.onRecoverableError),u.formState!==void 0&&(de=u.formState)),i=aw(o,1,!0,i,u??null,p,S,de,M,W,ee,hw),i.context=iw(null),u=i.current,p=eo(),p=Je(p),S=Va(p),S.callback=null,Fa(u,S,p),u=p,i.current.lanes=u,ze(i,u),qo(i),o[Mn]=i.current,Lh(o),new jf(i)},jc.version="19.2.4",jc}var Rw;function JP(){if(Rw)return sy.exports;Rw=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(),sy.exports=ZP(),sy.exports}var d4=JP();function ct(e){const t=l.useRef(e);return t.current=e,l.useCallback((...r)=>t.current?.(...r),[])}function kr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Tw=kr()?l.useLayoutEffect:l.useEffect,It=(e,t)=>{const n=l.useRef(!0);Tw(()=>e(n.current),t),Tw(()=>(n.current=!1,()=>{n.current=!0}),[])},f4=(e,t)=>{It(n=>{if(!n)return e()},t)},Bm=e=>{const t=l.useRef(!1),[n,r]=l.useState(e);l.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function a(s,c){c&&t.current||r(s)}return[n,a]};function Yt(e,t){const[n,r]=l.useState(e),a=t!==void 0?t:n;return It(s=>{s||r(t)},[t]),[a,r]}var fy={exports:{}},mn={};var Ow;function ez(){if(Ow)return mn;Ow=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function x(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case e:switch(C=C.type,C){case n:case a:case r:case m:case g:return C;default:switch(C=C&&C.$$typeof,C){case d:case c:case f:case y:case h:case s:return C;default:return w}}case t:return w}}}return mn.ContextConsumer=c,mn.ContextProvider=s,mn.Element=e,mn.ForwardRef=f,mn.Fragment=n,mn.Lazy=y,mn.Memo=h,mn.Portal=t,mn.Profiler=a,mn.StrictMode=r,mn.Suspense=m,mn.SuspenseList=g,mn.isAsyncMode=function(){return!1},mn.isConcurrentMode=function(){return!1},mn.isContextConsumer=function(C){return x(C)===c},mn.isContextProvider=function(C){return x(C)===s},mn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},mn.isForwardRef=function(C){return x(C)===f},mn.isFragment=function(C){return x(C)===n},mn.isLazy=function(C){return x(C)===y},mn.isMemo=function(C){return x(C)===h},mn.isPortal=function(C){return x(C)===t},mn.isProfiler=function(C){return x(C)===a},mn.isStrictMode=function(C){return x(C)===r},mn.isSuspense=function(C){return x(C)===m},mn.isSuspenseList=function(C){return x(C)===g},mn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===a||C===r||C===m||C===g||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===h||C.$$typeof===s||C.$$typeof===c||C.$$typeof===f||C.$$typeof===v||C.getModuleId!==void 0)},mn.typeOf=x,mn}var Nw;function tz(){return Nw||(Nw=1,fy.exports=ez()),fy.exports}var my=tz();function ld(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 nz=Symbol.for("react.element"),rz=Symbol.for("react.transitional.element"),oz=Symbol.for("react.fragment");function m4(e){return e&&typeof e=="object"&&(e.$$typeof===nz||e.$$typeof===rz)&&e.type===oz}const az=Number(l.version.split(".")[0]),iz=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},mr=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{iz(r,n)})}},ea=(...e)=>ld(()=>mr(...e),e,(t,n)=>t.length!==n.length||t.every((r,a)=>r!==n[a])),ul=e=>{if(!e)return!1;if(RS(e)&&az>=19)return!0;const t=my.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==my.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==my.ForwardRef)};function RS(e){return l.isValidElement(e)&&!m4(e)}const lz=e=>RS(e)&&ul(e),bi=e=>{if(e&&RS(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Ao(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 p4(e,t,n,r){if(!t.length)return n;const[a,...s]=t;let c;return!e&&typeof a=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},r&&n===void 0&&s.length===1?delete c[a][s[0]]:c[a]=p4(c[a],s,n,r),c}function So(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Ao(e,t.slice(0,-1))?e:p4(e,t,n,r)}function sz(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Iw(e){return Array.isArray(e)?[]:{}}const cz=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function g4(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let a=Iw(e[0]);return e.forEach(s=>{function c(d,f){const m=new Set(f),g=Ao(s,d),h=Array.isArray(g);if(h||sz(g)){if(!m.has(g)){m.add(g);const y=Ao(a,d);h?a=So(a,d,r(y,g)):(!y||typeof y!="object")&&(a=So(a,d,Iw(g))),cz(g).forEach(b=>{Object.getOwnPropertyDescriptor(g,b).enumerable&&c([...d,b],m)})}}else a=So(a,d,g)}c([])}),a}function xa(...e){return g4(e)}let bb={};const uz=e=>{};function dz(e,t){}function fz(e,t){}function mz(){bb={}}function h4(e,t,n){!t&&!bb[n]&&(e(!1,n),bb[n]=!0)}function rr(e,t){h4(dz,e,t)}function pz(e,t){h4(fz,e,t)}rr.preMessage=uz;rr.resetWarned=mz;rr.noteOnce=pz;function rn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}function fr(e,t={}){let n=[];return oe.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(fr(r)):m4(r)&&r.props?n=n.concat(fr(r.props.children,t)):n.push(r))}),n}const gz=l.createContext({});function $s(e){return e instanceof HTMLElement||e instanceof SVGElement}function ws(e){return e&&typeof e=="object"&&$s(e.nativeElement)?e.nativeElement:$s(e)?e:null}const vb=l.createContext(null);function hz({children:e,onBatchResize:t}){const n=l.useRef(0),r=l.useRef([]),a=l.useContext(vb),s=l.useCallback((c,d,f)=>{n.current+=1;const m=n.current;r.current.push({size:c,element:d,data:f}),Promise.resolve().then(()=>{m===n.current&&(t?.(r.current),r.current=[])}),a?.(c,d,f)},[t,a]);return l.createElement(vb.Provider,{value:s},e)}const di=new Map;function yz(e){e.forEach(t=>{const{target:n}=t;di.get(n)?.forEach(r=>r(n))})}let py;function y4(){return py||(py=new ResizeObserver(yz)),py}function bz(e,t){di.has(e)||(di.set(e,new Set),y4().observe(e)),di.get(e).add(t)}function vz(e,t){di.has(e)&&(di.get(e).delete(t),di.get(e).size||(y4().unobserve(e),di.delete(e)))}function b4(e,t,n,r){const a=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=ct(d=>{const{width:f,height:m}=d.getBoundingClientRect(),{offsetWidth:g,offsetHeight:h}=d,y=Math.floor(f),b=Math.floor(m);if(a.current.width!==y||a.current.height!==b||a.current.offsetWidth!==g||a.current.offsetHeight!==h){const v={width:y,height:b,offsetWidth:g,offsetHeight:h};a.current=v;const x=g===Math.round(f)?f:g,C=h===Math.round(m)?m:h,w={...v,offsetWidth:x,offsetHeight:C};r?.(w,d),Promise.resolve().then(()=>{n?.(w,d)})}}),c=typeof t=="function";l.useEffect(()=>{const d=c?t():t;return d&&e&&bz(d,s),()=>{d&&vz(d,s)}},[e,c?0:t])}function Sz(e,t){const{children:n,disabled:r,onResize:a,data:s}=e,c=l.useRef(null),d=l.useContext(vb),f=typeof n=="function",m=f?n(c):n,g=!f&&l.isValidElement(m)&&ul(m),h=g?bi(m):null,y=ea(h,c),b=()=>ws(c.current);return l.useImperativeHandle(t,()=>b()),b4(!r,b,a,(v,x)=>{d?.(v,x,s)}),g?l.cloneElement(m,{ref:y}):m}const Cz=l.forwardRef(Sz);function Sb(){return Sb=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},Sb.apply(this,arguments)}const xz="rc-observer-key";function $z(e,t){const{children:n}=e;return(typeof n=="function"?[n]:fr(n)).map((a,s)=>{const c=a?.key||`${xz}-${s}`;return l.createElement(Cz,Sb({},e,{key:c,ref:s===0?t:void 0}),a)})}const oo=l.forwardRef($z);oo.Collection=hz;function v4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=v4(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="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=v4(e))&&(r&&(r+=" "),r+=t);return r}function Cb(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 wz(e){if(Array.isArray(e))return Cb(e)}function Ez(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S4(e,t){if(e){if(typeof e=="string")return Cb(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)?Cb(e,t):void 0}}function Mz(){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 $n(e){return wz(e)||Ez(e)||S4(e)||Mz()}let C4=e=>+setTimeout(e,16),x4=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(C4=e=>window.requestAnimationFrame(e),x4=e=>window.cancelAnimationFrame(e));let Pw=0;const TS=new Map;function $4(e){TS.delete(e)}const Ht=(e,t=1)=>{Pw+=1;const n=Pw;function r(a){if(a===0)$4(n),e();else{const s=C4(()=>{r(a-1)});TS.set(n,s)}}return r(t),n};Ht.cancel=e=>{const t=TS.get(e);return $4(e),x4(t)};const yu="ant",xp="anticon",Rz=["outlined","borderless","filled","underlined"],Tz=(e,t)=>t||(e?`${yu}-${e}`:yu),dt=l.createContext({getPrefixCls:Tz,iconPrefixCls:xp}),{Consumer:Vee}=dt,zw={};function Rt(e){const t=l.useContext(dt),{getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:s}=t,c=t[e];return{classNames:zw,styles:zw,...c,getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:s}}function bu(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function xb(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 Aw="data-rc-order",Dw="data-rc-priority",Oz="rc-util-key",$b=new Map;function w4({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Oz}function $p(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Nz(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function OS(e){return Array.from(($b.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function E4(e,t={}){if(!kr())return null;const{csp:n,prepend:r,priority:a=0}=t,s=Nz(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute(Aw,s),c&&a&&d.setAttribute(Dw,`${a}`),n?.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;const f=$p(t),{firstChild:m}=f;if(r){if(c){const g=(t.styles||OS(f)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(Aw)))return!1;const y=Number(h.getAttribute(Dw)||0);return a>=y});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,m)}else f.appendChild(d);return d}function M4(e,t={}){let{styles:n}=t;return n||=OS($p(t)),n.find(r=>r.getAttribute(w4(t))===e)}function vu(e,t={}){const n=M4(e,t);n&&$p(t).removeChild(n)}function Iz(e,t){const n=$b.get(e);if(!n||!xb(document,n)){const r=E4("",t),{parentNode:a}=r;$b.set(e,a),e.removeChild(r)}}function mi(e,t,n={}){const r=$p(n),a=OS(r),s={...n,styles:a};Iz(r,s);const c=M4(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=E4(e,s);return d.setAttribute(w4(s),t),d}function Su(e,t,n=!1){const r=new Set;function a(s,c,d=1){const f=r.has(s);if(rr(!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 m=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(!a(s[g],c[g],m))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=>a(s[h],c[h],m))}return!1}return a(e,t)}const Pz="%";function wb(e){return e.join(Pz)}let jw=0;class zz{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(wb(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(wb(t),n)}opUpdate(t,n){const r=this.cache.get(t),a=n(r);a===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,a),this.updateTimes.set(t,jw),jw+=1)}}const NS="data-token-hash",wa="data-css-hash",el="__cssinjs_instance__";function Az(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${wa}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(a=>{a[el]||=e,a[el]===e&&document.head.insertBefore(a,n)});const r={};Array.from(document.querySelectorAll(`style[${wa}]`)).forEach(a=>{const s=a.getAttribute(wa);r[s]?a[el]===e&&a.parentNode?.removeChild(a):r[s]=!0})}return new zz(e)}const sd=l.createContext({hashPriority:"low",cache:Az(),defaultCache:!0,autoPrefix:!1});function Dz(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 Lm{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(a=>{r?r=r?.map?.get(a):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>Lm.MAX_CACHE_SIZE+Lm.MAX_CACHE_OFFSET){const[a]=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(a)}this.keys.push(t)}let r=this.cache;t.forEach((a,s)=>{if(s===t.length-1)r.set(a,{value:[n,this.cacheCallTimes++]});else{const c=r.get(a);c?c.map||(c.map=new Map):r.set(a,{map:new Map}),r=r.get(a).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 a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Dz(n,t)),this.deleteByPath(this.cache,t)}}let _w=0;class R4{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=_w,t.length===0&&(t.length>0,void 0),_w+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const gy=new Lm;function Eb(e){const t=Array.isArray(e)?e:[e];return gy.has(t)||gy.set(t,new R4(t)),gy.get(t)}const jz=new WeakMap,hy={};function _z(e,t){let n=jz;for(let r=0;r<t.length;r+=1){const a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(hy)||n.set(hy,e()),n.get(hy)}const Hw=new WeakMap;function iu(e){let t=Hw.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof R4?t+=r.id:r&&typeof r=="object"?t+=iu(r):t+=r}),t=bu(t),Hw.set(e,t)),t}function Hz(e,t){return bu(`${t}_${iu(e)}`)}const Mb=kr();function te(e){return typeof e=="number"?`${e}px`:e}function T4(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const Bz=e=>e!=null,Sm=(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(),Lz=(e,t,n)=>{const{hashCls:r,hashPriority:a="low",scope:s}=n||{};if(!Object.keys(e).length)return"";const c=`${T4({hashCls:r,hashPriority:a})}.${t}`,d=[s].flat().filter(Boolean);return`${d.length?d.map(m=>`${c}.${m}`).join(", "):c}{${Object.entries(e).map(([m,g])=>`${m}:${g};`).join("")}}`},O4=(e,t,n)=>{const{hashCls:r,hashPriority:a="low",prefix:s,unitless:c,ignore:d,preserve:f}=n||{},m={},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 b=Sm(h,s);m[b]=typeof y=="number"&&!c?.[h]?`${y}px`:String(y),g[h]=`var(${b})`}}),[g,Lz(m,t,{scope:n?.scope,hashCls:r,hashPriority:a})]},Hf=new Map;function IS(e,t,n,r,a){const{cache:s}=l.useContext(sd),c=[e,...t],d=wb(c),f=h=>{s.opUpdate(d,y=>{const[b=0,v]=y||[void 0,void 0],C=v||n(),w=[b,C];return h?h(w):w})};l.useMemo(()=>{f()},[d]);const g=s.opGet(d)[1];return l.useInsertionEffect(()=>(f(([h,y])=>[h+1,y]),Hf.has(d)||(a?.(g),Hf.set(d,!0),Promise.resolve().then(()=>{Hf.delete(d)})),()=>{s.opUpdate(d,h=>{const[y=0,b]=h||[];return y-1===0?(r?.(b,!1),Hf.delete(d),null):[y-1,b]})}),[d]),g}const Vz={},Fz="css",qi=new Map;function kz(e){qi.set(e,(qi.get(e)||0)+1)}function Wz(e,t){typeof document<"u"&&document.querySelectorAll(`style[${NS}="${e}"]`).forEach(r=>{r[el]===t&&r.parentNode?.removeChild(r)})}const Yz=-1;function Uz(e,t){qi.set(e,(qi.get(e)||0)-1);const n=new Set;qi.forEach((r,a)=>{r<=0&&n.add(a)}),qi.size-n.size>Yz&&n.forEach(r=>{Wz(r,t),qi.delete(r)})}const qz=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},Gz="token";function Xz(e,t,n){const{cache:{instanceId:r},container:a,hashPriority:s}=l.useContext(sd),{salt:c="",override:d=Vz,formatToken:f,getComputedToken:m,cssVar:g}=n,h=_z(()=>Object.assign({},...t),t),y=iu(h),b=iu(d),v=iu(g);return IS(Gz,[c,e.id,y,b,v],()=>{const C=m?m(h,d,e):qz(h,d,e,f),w={...C},R=`${c}_${g.prefix}`,$=bu(R),E=`${Fz}-${$}`;w._tokenKey=Hz(w,R);const[T,N]=O4(C,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve,hashPriority:s,hashCls:g.hashed?E:void 0});return T._hashId=$,kz(g.key),[T,E,w,N,g.key]},([,,,,C])=>{Uz(C,r)},([,,,C,w])=>{if(!C)return;const R=mi(C,bu(`css-var-${w}`),{mark:wa,prepend:"queue",attachTo:a,priority:-999});R[el]=r,R.setAttribute(NS,w)})}var Kz={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},Nn="-ms-",lu="-moz-",un="-webkit-",N4="comm",PS="rule",zS="decl",Qz="@import",Zz="@namespace",I4="@keyframes",Jz="@layer",P4=Math.abs,AS=String.fromCharCode,Rb=Object.assign;function e8(e,t){return tr(e,0)^45?(((t<<2^tr(e,0))<<2^tr(e,1))<<2^tr(e,2))<<2^tr(e,3):0}function z4(e){return e.trim()}function Sa(e,t){return(e=t.exec(e))?e[0]:e}function Ft(e,t,n){return e.replace(t,n)}function Cm(e,t,n){return e.indexOf(t,n)}function tr(e,t){return e.charCodeAt(t)|0}function rl(e,t,n){return e.slice(t,n)}function Po(e){return e.length}function A4(e){return e.length}function Qc(e,t){return t.push(e),e}function t8(e,t){return e.map(t).join("")}function Bw(e,t){return e.filter(function(n){return!Sa(n,t)})}var wp=1,Es=1,D4=0,xo=0,Gn=0,As="";function Ep(e,t,n,r,a,s,c,d){return{value:e,root:t,parent:n,type:r,props:a,children:s,line:wp,column:Es,length:c,return:"",siblings:d}}function ii(e,t){return Rb(Ep("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ql(e){for(;e.root;)e=ii(e.root,{children:[e]});Qc(e,e.siblings)}function n8(){return Gn}function r8(){return Gn=xo>0?tr(As,--xo):0,Es--,Gn===10&&(Es=1,wp--),Gn}function Do(){return Gn=xo<D4?tr(As,xo++):0,Es++,Gn===10&&(Es=1,wp++),Gn}function fi(){return tr(As,xo)}function xm(){return xo}function Mp(e,t){return rl(As,e,t)}function Cu(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 o8(e){return wp=Es=1,D4=Po(As=e),xo=0,[]}function a8(e){return As="",e}function yy(e){return z4(Mp(xo-1,Tb(e===91?e+2:e===40?e+1:e)))}function i8(e){for(;(Gn=fi())&&Gn<33;)Do();return Cu(e)>2||Cu(Gn)>3?"":" "}function l8(e,t){for(;--t&&Do()&&!(Gn<48||Gn>102||Gn>57&&Gn<65||Gn>70&&Gn<97););return Mp(e,xm()+(t<6&&fi()==32&&Do()==32))}function Tb(e){for(;Do();)switch(Gn){case e:return xo;case 34:case 39:e!==34&&e!==39&&Tb(Gn);break;case 40:e===41&&Tb(e);break;case 92:Do();break}return xo}function s8(e,t){for(;Do()&&e+Gn!==57;)if(e+Gn===84&&fi()===47)break;return"/*"+Mp(t,xo-1)+"*"+AS(e===47?e:Do())}function c8(e){for(;!Cu(fi());)Do();return Mp(e,xo)}function Lw(e){return a8($m("",null,null,null,[""],e=o8(e),0,[0],e))}function $m(e,t,n,r,a,s,c,d,f){for(var m=0,g=0,h=c,y=0,b=0,v=0,x=1,C=1,w=1,R=0,$="",E=a,T=s,N=r,O=$;C;)switch(v=R,R=Do()){case 40:if(v!=108&&tr(O,h-1)==58){Cm(O+=Ft(yy(R),"&","&\f"),"&\f",P4(m?d[m-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:O+=yy(R);break;case 9:case 10:case 13:case 32:O+=i8(v);break;case 92:O+=l8(xm()-1,7);continue;case 47:switch(fi()){case 42:case 47:Qc(u8(s8(Do(),xm()),t,n,f),f),(Cu(v||1)==5||Cu(fi()||1)==5)&&Po(O)&&rl(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*x:d[m++]=Po(O)*w;case 125*x:case 59:case 0:switch(R){case 0:case 125:C=0;case 59+g:w==-1&&(O=Ft(O,/\f/g,"")),b>0&&(Po(O)-h||x===0&&v===47)&&Qc(b>32?Fw(O+";",r,n,h-1,f):Fw(Ft(O," ","")+";",r,n,h-2,f),f);break;case 59:O+=";";default:if(Qc(N=Vw(O,t,n,m,g,a,d,$,E=[],T=[],h,s),s),R===123)if(g===0)$m(O,t,N,N,E,s,h,d,T);else{switch(y){case 99:if(tr(O,3)===110)break;case 108:if(tr(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?$m(e,N,N,r&&Qc(Vw(e,N,N,0,0,a,d,$,a,E=[],h,T),T),a,T,h,d,r?E:T):$m(O,N,N,N,[""],T,0,d,T)}}m=g=b=0,x=w=1,$=O="",h=c;break;case 58:h=1+Po(O),b=v;default:if(x<1){if(R==123)--x;else if(R==125&&x++==0&&r8()==125)continue}switch(O+=AS(R),R*x){case 38:w=g>0?1:(O+="\f",-1);break;case 44:d[m++]=(Po(O)-1)*w,w=1;break;case 64:fi()===45&&(O+=yy(Do())),y=fi(),g=h=Po($=O+=c8(xm())),R++;break;case 45:v===45&&Po(O)==2&&(x=0)}}return s}function Vw(e,t,n,r,a,s,c,d,f,m,g,h){for(var y=a-1,b=a===0?s:[""],v=A4(b),x=0,C=0,w=0;x<r;++x)for(var R=0,$=rl(e,y+1,y=P4(C=c[x])),E=e;R<v;++R)(E=z4(C>0?b[R]+" "+$:Ft($,/&\f/g,b[R])))&&(f[w++]=E);return Ep(e,t,n,a===0?PS:d,f,m,g,h)}function u8(e,t,n,r){return Ep(e,t,n,N4,AS(n8()),rl(e,2,-2),0,r)}function Fw(e,t,n,r,a){return Ep(e,t,n,zS,rl(e,0,r),rl(e,r+1,-1),r,a)}function j4(e,t,n){switch(e8(e,t)){case 5103:return un+"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 un+e+e;case 4855:return un+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return lu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+lu+e+Nn+e+e;case 5936:switch(tr(e,t+11)){case 114:return un+e+Nn+Ft(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+Nn+Ft(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+Nn+Ft(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return un+e+Nn+e+e;case 6165:return un+e+Nn+"flex-"+e+e;case 5187:return un+e+Ft(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+Nn+"flex-$1$2")+e;case 5443:return un+e+Nn+"flex-item-"+Ft(e,/flex-|-self/g,"")+(Sa(e,/flex-|baseline/)?"":Nn+"grid-row-"+Ft(e,/flex-|-self/g,""))+e;case 4675:return un+e+Nn+"flex-line-pack"+Ft(e,/align-content|flex-|-self/g,"")+e;case 5548:return un+e+Nn+Ft(e,"shrink","negative")+e;case 5292:return un+e+Nn+Ft(e,"basis","preferred-size")+e;case 6060:return un+"box-"+Ft(e,"-grow","")+un+e+Nn+Ft(e,"grow","positive")+e;case 4554:return un+Ft(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return Ft(Ft(Ft(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return Ft(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return Ft(Ft(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+Nn+"flex-pack:$3"),/space-between/,"justify")+un+e+e;case 4200:if(!Sa(e,/flex-|baseline/))return Nn+"grid-column-align"+rl(e,t)+e;break;case 2592:case 3360:return Nn+Ft(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,Sa(r.props,/grid-\w+-end/)})?~Cm(e+(n=n[t].value),"span",0)?e:Nn+Ft(e,"-start","")+e+Nn+"grid-row-span:"+(~Cm(n,"span",0)?Sa(n,/\d+/):+Sa(n,/\d+/)-+Sa(e,/\d+/))+";":Nn+Ft(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Sa(r.props,/grid-\w+-start/)})?e:Nn+Ft(Ft(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ft(e,/(.+)-inline(.+)/,un+"$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(Po(e)-1-t>6)switch(tr(e,t+1)){case 109:if(tr(e,t+4)!==45)break;case 102:return Ft(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+lu+(tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cm(e,"stretch",0)?j4(Ft(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ft(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,s,c,d,f,m){return Nn+a+":"+s+m+(c?Nn+a+"-span:"+(d?f:+f-+s)+m:"")+e});case 4949:if(tr(e,t+6)===121)return Ft(e,":",":"+un)+e;break;case 6444:switch(tr(e,tr(e,14)===45?18:11)){case 120:return Ft(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+un+(tr(e,14)===45?"inline-":"")+"box$3$1"+un+"$2$3$1"+Nn+"$2box$3")+e;case 100:return Ft(e,":",":"+Nn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ft(e,"scroll-","scroll-snap-")+e}return e}function xu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function kw(e,t,n,r){switch(e.type){case Jz:if(e.children.length)break;case Qz:case Zz:case zS:return e.return=e.return||e.value;case N4:return"";case I4:return e.return=e.value+"{"+xu(e.children,r)+"}";case PS:if(!Po(e.value=e.props.join(",")))return""}return Po(n=xu(e.children,r))?e.return=e.value+"{"+n+"}":""}function d8(e){var t=A4(e);return function(n,r,a,s){for(var c="",d=0;d<t;d++)c+=e[d](n,r,a,s)||"";return c}}function f8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zS:e.return=j4(e.value,e.length,n);return;case I4:return xu([ii(e,{value:Ft(e.value,"@","@"+un)})],r);case PS:if(e.length)return t8(n=e.props,function(a){switch(Sa(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ql(ii(e,{props:[Ft(a,/:(read-\w+)/,":"+lu+"$1")]})),Ql(ii(e,{props:[a]})),Rb(e,{props:Bw(n,r)});break;case"::placeholder":Ql(ii(e,{props:[Ft(a,/:(plac\w+)/,":"+un+"input-$1")]})),Ql(ii(e,{props:[Ft(a,/:(plac\w+)/,":"+lu+"$1")]})),Ql(ii(e,{props:[Ft(a,/:(plac\w+)/,Nn+"input-$1")]})),Ql(ii(e,{props:[a]})),Rb(e,{props:Bw(n,r)});break}return""})}}const Ww="data-ant-cssinjs-cache-path",_4="_FILE_STYLE__";let tl,H4=!0;function m8(){if(!tl&&(tl={},kr())){const e=document.createElement("div");e.className=Ww,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[a,s]=r.split(":");tl[a]=s});const n=document.querySelector(`style[${Ww}]`);n&&(H4=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function p8(e){return m8(),!!tl[e]}function g8(e){const t=tl[e];let n=null;if(t&&kr())if(H4)n=_4;else{const r=document.querySelector(`style[${wa}="${tl[e]}"]`);r?n=r.innerHTML:delete tl[e]}return[n,t]}const h8="_skip_check_",B4="_multi_value_";function by(e,t){return(t?xu(Lw(e),d8([f8,kw])):xu(Lw(e),kw)).replace(/\{%%%\:[^;];}/g,";")}function y8(e){return typeof e=="object"&&e&&(h8 in e||B4 in e)}function Yw(e,t,n="high"){if(!t)return e;const r=T4({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 Ob=(e,t={},{root:n,injectHash:r,parentSelectors:a}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:c,path:d,hashPriority:f,transformers:m=[],linters:g=[]}=t;let h="",y={};function b(C){const w=C.getName(s);if(!y[w]){const[R]=Ob(C.style,t,{root:!1,parentSelectors:a});y[w]=`@keyframes ${C.getName(s)}${R}`}}function v(C,w=[]){return C.forEach(R=>{Array.isArray(R)?v(R,w):R&&w.push(R)}),w}return v(Array.isArray(e)?e:[e]).forEach(C=>{const w=typeof C=="string"&&!n?{}:C;if(typeof w=="string")h+=`${w}
|
|
11
|
+
`;else if(w._keyframe)b(w);else{const R=m.reduce(($,E)=>E?.visit?.($)||$,w);Object.keys(R).forEach($=>{const E=R[$];if(typeof E=="object"&&E&&($!=="animationName"||!E._keyframe)&&!y8(E)){let T=!1,N=$.trim(),O=!1;(n||r)&&s?N.startsWith("@")?T=!0:N==="&"?N=Yw("",s,f):N=Yw($,s,f):n&&!s&&(N==="&"||N==="")&&(N="",O=!0);const[D,j]=Ob(E,t,{root:O,injectHash:T,parentSelectors:[...a,N]});y={...y,...j},h+=`${N}${D}`}else{let T=function(O,D){const j=O.replace(/[A-Z]/g,V=>`-${V.toLowerCase()}`);let B=D;!Kz[O]&&typeof B=="number"&&B!==0&&(B=`${B}px`),O==="animationName"&&D?._keyframe&&(b(D),B=D.getName(s)),h+=`${j}:${B};`};const N=E?.value??E;typeof E=="object"&&E?.[B4]&&Array.isArray(N)?N.forEach(O=>{T($,O)}):Bz(N)&&T($,N)}})}}),n?c&&(h&&(h=`@layer ${c.name} {${h}}`),c.dependencies&&(y[`@layer ${c.name}`]=c.dependencies.map(C=>`@layer ${C}, ${c.name};`).join(`
|
|
12
|
+
`))):h=`{${h}}`,[h,y]};function L4(e,t){return bu(`${e.join("%")}${t}`)}const b8="style";function Nb(e,t){const{path:n,hashId:r,layer:a,nonce:s,clientOnly:c,order:d=0}=e,{mock:f,hashPriority:m,container:g,transformers:h,linters:y,cache:b,layer:v,autoPrefix:x}=l.useContext(sd),C=[r||""];v&&C.push("layer"),C.push(...n);let w=Mb;IS(b8,C,()=>{const R=C.join("|");if(p8(R)){const[D,j]=g8(R);if(D)return[D,j,{},c,d]}const $=t(),[E,T]=Ob($,{hashId:r,hashPriority:m,layer:v?a:void 0,path:n.join("-"),transformers:h,linters:y}),N=by(E,x||!1),O=L4(C,N);return[N,O,T,c,d]},(R,$)=>{const[,E]=R;$&&Mb&&vu(E,{mark:wa,attachTo:g})},R=>{const[$,E,T,,N]=R;if(w&&$!==_4){const O={mark:wa,prepend:v?!1:"queue",attachTo:g,priority:N},D=typeof s=="function"?s():s;D&&(O.csp={nonce:D});const j=[],B=[];Object.keys(T).forEach(U=>{U.startsWith("@layer")?j.push(U):B.push(U)}),j.forEach(U=>{mi(by(T[U],x||!1),`_layer-${U}`,{...O,prepend:!0})});const V=mi($,E,O);V[el]=b.instanceId,B.forEach(U=>{mi(by(T[U],x||!1),`_effect-${U}`,O)})}})}const v8="cssVar",S8=(e,t)=>{const{key:n,prefix:r,unitless:a,ignore:s,token:c,hashId:d,scope:f}=e,{cache:{instanceId:m},container:g,hashPriority:h}=l.useContext(sd),{_tokenKey:y}=c,b=Array.isArray(f)?f.join("@@"):f,v=[...e.path,n,b,y];return IS(v8,v,()=>{const C=t(),[w,R]=O4(C,n,{prefix:r,unitless:a,ignore:s,scope:f,hashPriority:h,hashCls:d}),$=L4(v,R);return[w,R,$,n]},([,,C])=>{Mb&&vu(C,{mark:wa,attachTo:g})},([,C,w])=>{if(!C)return;const R=mi(C,w,{mark:wa,prepend:"queue",attachTo:g,priority:-999});R[el]=m,R.setAttribute(NS,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 Zl(e){return e.notSplit=!0,e}Zl(["borderTop","borderBottom"]),Zl(["borderTop"]),Zl(["borderBottom"]),Zl(["borderLeft","borderRight"]),Zl(["borderLeft"]),Zl(["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 C8(e){if(Array.isArray(e))return e}function x8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function $8(){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 V4(e,t){return C8(e)||x8(e,t)||S4(e,t)||$8()}function w8(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 F4(e){var t=w8(e,"string");return Kn(t)=="symbol"?t:t+""}function ur(e,t,n){return(t=F4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(n),!0).forEach(function(r){ur(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E8(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,F4(r.key),r)}}function fl(e,t,n){return t&&E8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t){return $u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$u(e,t)}function DS(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&&$u(e,t)}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ol(e)}function Rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rp=function(){return!!e})()}function k4(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 vs(e)}function W4(e){var t=Rp();return function(){var n,r=ol(e);if(t){var a=ol(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k4(this,n)}}var M8=fl(function e(){dl(this,e)}),Y4="CALC_UNIT",R8=new RegExp(Y4,"g");function vy(e){return typeof e=="number"?"".concat(e).concat(Y4):e}var T8=(function(e){DS(n,e);var t=W4(n);function n(r,a){var s;dl(this,n),s=t.call(this),ur(vs(s),"result",""),ur(vs(s),"unitlessCssVar",void 0),ur(vs(s),"lowPriority",void 0);var c=Kn(r);return s.unitlessCssVar=a,r instanceof n?s.result="(".concat(r.result,")"):c==="number"?s.result=vy(r):c==="string"&&(s.result=r),s}return fl(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(vy(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(vy(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var s=this,c=a||{},d=c.unit,f=!0;return typeof d=="boolean"?f=d:Array.from(this.unitlessCssVar).some(function(m){return s.result.includes(m)})&&(f=!1),this.result=this.result.replace(R8,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(M8),O8=function(t,n){var r=T8;return function(a){return new r(a,n)}},qw=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 Gw(e,t,n,r){var a=Bn({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(d){var f=V4(d,2),m=f[0],g=f[1];if(a!=null&&a[m]||a!=null&&a[g]){var h;(h=a[g])!==null&&h!==void 0||(a[g]=a?.[m])}})}var c=Bn(Bn({},n),a);return Object.keys(c).forEach(function(d){c[d]===t[d]&&delete c[d]}),c}var U4=typeof CSSINJS_STATISTIC<"u",Ib=!0;function Nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!U4)return Object.assign.apply(Object,[{}].concat(t));Ib=!1;var r={};return t.forEach(function(a){if(Kn(a)==="object"){var s=Object.keys(a);s.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),Ib=!0,r}var Xw={};function N8(){}var I8=function(t){var n,r=t,a=N8;return U4&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,d){if(Ib){var f;(f=n)===null||f===void 0||f.add(d)}return c[d]}}),a=function(c,d){var f;Xw[c]={global:Array.from(n),component:Bn(Bn({},(f=Xw[c])===null||f===void 0?void 0:f.component),d)}}),{token:r,keys:n,flush:a}};function Kw(e,t,n){if(typeof n=="function"){var r;return n(Nt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function P8(e){return{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(s){return te(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(s){return te(s)}).join(","),")")}}}var z8=1e3*60*10,A8=(function(){function e(){dl(this,e),ur(this,"map",new Map),ur(this,"objectIDMap",new WeakMap),ur(this,"nextID",0),ur(this,"lastAccessBeat",new Map),ur(this,"accessBeat",0)}return fl(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(s){return s&&Kn(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Kn(s),"_").concat(s)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,s){r-a>z8&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),Qw=new A8;function D8(e,t){return oe.useMemo(function(){var n=Qw.get(t);if(n)return n;var r=e();return Qw.set(t,r),r},t)}var j8=function(){return{}};function _8(e){var t=e.useCSP,n=t===void 0?j8:t,r=e.useToken,a=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function f(y,b,v,x){var C=Array.isArray(y)?y[0]:y;function w(D){return"".concat(String(C)).concat(D.slice(0,1).toUpperCase()).concat(D.slice(1))}var R=x?.unitless||{},$=typeof d=="function"?d(y):{},E=Bn(Bn({},$),{},ur({},w("zIndexPopup"),!0));Object.keys(R).forEach(function(D){E[w(D)]=R[D]});var T=Bn(Bn({},x),{},{unitless:E,prefixToken:w}),N=g(y,b,v,T),O=m(C,v,T);return function(D){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,B=N(D,j),V=x?.extraCssVarPrefixCls,U=typeof V=="function"?V({prefixCls:D,rootCls:j}):V,G=O(U!=null&&U.length?[j].concat($n(U)):j);return[B,G]}}function m(y,b,v){var x=v.unitless,C=v.prefixToken,w=v.ignore;return function(R){var $=r(),E=$.cssVar,T=$.realToken;return S8({path:[y],prefix:E.prefix,key:E.key,unitless:x,ignore:w,token:T,scope:R},function(){var N=Kw(y,T,b),O=Gw(y,T,N,{deprecatedTokens:v?.deprecatedTokens});return N&&Object.keys(N).forEach(function(D){O[C(D)]=O[D],delete O[D]}),O}),E?.key}}function g(y,b,v){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(y)?y:[y,y],w=V4(C,1),R=w[0],$=C.join("-"),E=e.layer||{name:"antd"};return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=r(),D=O.theme,j=O.realToken,B=O.hashId,V=O.token,U=O.cssVar,G=O.zeroRuntime,Y=l.useMemo(function(){return G},[]);if(Y)return B;var _=a(),H=_.rootPrefixCls,F=_.iconPrefixCls,I=n(),z="css",L=D8(function(){var K=new Set;return Object.keys(x.unitless||{}).forEach(function(Z){K.add(Sm(Z,U.prefix)),K.add(Sm(Z,qw(R,U.prefix)))}),O8(z,K)},[z,R,U?.prefix]),P=P8(),A=P.max,k=P.min,q={theme:D,token:V,hashId:B,nonce:function(){return I.nonce},clientOnly:x.clientOnly,layer:E,order:x.order||-999};return typeof s=="function"&&Nb(Bn(Bn({},q),{},{clientOnly:!1,path:["Shared",H]}),function(){return s(V,{prefix:{rootPrefixCls:H,iconPrefixCls:F},csp:I})}),Nb(Bn(Bn({},q),{},{path:[$,T,F]}),function(){if(x.injectStyle===!1)return[];var K=I8(V),Z=K.token,J=K.flush,re=Kw(R,j,v),ie=".".concat(T),ne=Gw(R,j,re,{deprecatedTokens:x.deprecatedTokens});re&&Kn(re)==="object"&&Object.keys(re).forEach(function(me){re[me]="var(".concat(Sm(me,qw(R,U.prefix)),")")});var le=Nt(Z,{componentCls:ie,prefixCls:T,iconCls:".".concat(F),antCls:".".concat(H),calc:L,max:A,min:k},re),se=b(le,{hashId:B,prefixCls:T,rootPrefixCls:H,iconPrefixCls:F});J(R,ne);var ce=typeof c=="function"?c(le,T,N,x.resetFont):null;return[x.resetStyle===!1?null:ce,se]}),B}}function h(y,b,v){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=g(y,b,v,Bn({resetStyle:!1,order:-998},x)),w=function($){var E=$.prefixCls,T=$.rootCls,N=T===void 0?E:T;return C(E,N),null};return w}return{genStyleHooks:f,genSubStyleComponent:h,genComponentStyleHook:g}}const Ma=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function wm(e){return(e+8)/e}function H8(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,s=e*Math.E**(a/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:wm(n)}))}const B8="6.3.0",q4={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"},wu={...q4,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},L8={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"},sr=Math.round;function Sy(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Zw=(e,t,n)=>n===0?e:e/100;function _c(e,t){const n=t||255;return e>n?n:e<0?0:e}class nn{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(s){return r.startsWith(s)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(a("rgb"))this.fromRgbString(r);else if(a("hsl"))this.fromHslString(r);else if(a("hsv")||a("hsb"))this.fromHsvString(r);else{const s=L8[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(t instanceof nn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=_c(t.r),this.g=_c(t.g),this.b=_c(t.b),this.a=typeof t.a=="number"?_c(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),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=sr(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(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,s=d=>(r[d]-this[d])*a+this[d],c={r:sr(s("r")),g:sr(s("g")),b:sr(s("b")),a:sr(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),a=s=>sr((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=sr(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=sr(this.getHSLSaturation()*100),r=sr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=_c(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,s){return parseInt(n[a]+n[s||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){const s=(t%360+360)%360;if(this._h=s,this._hsl_s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const b=sr(r*255);this.r=b,this.g=b,this.b=b;return}let c=0,d=0,f=0;const m=s/60,g=(1-Math.abs(2*r-1))*n,h=g*(1-Math.abs(m%2-1));m>=0&&m<1?(c=g,d=h):m>=1&&m<2?(c=h,d=g):m>=2&&m<3?(d=g,f=h):m>=3&&m<4?(d=h,f=g):m>=4&&m<5?(c=h,f=g):m>=5&&m<6&&(c=g,f=h);const y=r-g/2;this.r=sr((c+y)*255),this.g=sr((d+y)*255),this.b=sr((f+y)*255)}fromHsv({h:t,s:n,v:r,a}){const s=(t%360+360)%360;this._h=s,this._hsv_s=n,this._v=r,this.a=typeof a=="number"?a:1;const c=sr(r*255);if(this.r=c,this.g=c,this.b=c,n<=0)return;const d=s/60,f=Math.floor(d),m=d-f,g=sr(r*(1-n)*255),h=sr(r*(1-n*m)*255),y=sr(r*(1-n*(1-m))*255);switch(f){case 0:this.g=y,this.b=g;break;case 1:this.r=h,this.b=g;break;case 2:this.r=g,this.b=y;break;case 3:this.r=g,this.g=h;break;case 4:this.r=y,this.g=g;break;default:this.g=g,this.b=h;break}}fromHsvString(t){const n=Sy(t,Zw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Sy(t,Zw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Sy(t,(r,a)=>a.includes("%")?sr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Bf=2,Jw=.16,V8=.05,F8=.05,k8=.15,G4=5,X4=4,W8=[{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 eE(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Bf*t:Math.round(e.h)+Bf*t:r=n?Math.round(e.h)+Bf*t:Math.round(e.h)-Bf*t,r<0?r+=360:r>=360&&(r-=360),r}function tE(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Jw*t:t===X4?r=e.s+Jw:r=e.s+V8*t,r>1&&(r=1),n&&t===G4&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function nE(e,t,n){let r;return n?r=e.v+F8*t:r=e.v-k8*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function jS(e,t={}){const n=[],r=new nn(e),a=r.toHsv();for(let s=G4;s>0;s-=1){const c=new nn({h:eE(a,s,!0),s:tE(a,s,!0),v:nE(a,s,!0)});n.push(c)}n.push(r);for(let s=1;s<=X4;s+=1){const c=new nn({h:eE(a,s),s:tE(a,s),v:nE(a,s)});n.push(c)}return t.theme==="dark"?W8.map(({index:s,amount:c})=>new nn(t.backgroundColor||"#141414").mix(n[s],c).toHexString()):n.map(s=>s.toHexString())}const Ss={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"},Pb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Pb.primary=Pb[5];const zb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];zb.primary=zb[5];const Ab=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ab.primary=Ab[5];const Vm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Vm.primary=Vm[5];const Db=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Db.primary=Db[5];const jb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];jb.primary=jb[5];const _b=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_b.primary=_b[5];const Hb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Hb.primary=Hb[5];const Fm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fm.primary=Fm[5];const Bb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Bb.primary=Bb[5];const Lb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Lb.primary=Lb[5];const Vb=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Vb.primary=Vb[5];const Fb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Fb.primary=Fb[5];const Cy={red:Pb,volcano:zb,orange:Ab,gold:Vm,yellow:Db,lime:jb,green:_b,cyan:Hb,blue:Fm,geekblue:Bb,purple:Lb,magenta:Vb,grey:Fb};function Y8(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:s,colorInfo:c,colorPrimary:d,colorBgBase:f,colorTextBase:m}=e,g=t(d),h=t(r),y=t(a),b=t(s),v=t(c),x=n(f,m),C=e.colorLink||e.colorInfo,w=t(C),R=new nn(b[1]).mix(new nn(b[3]),50).toHexString(),$={};return Ma.forEach(E=>{const T=e[E];if(T){const N=t(T);$[`${E}Hover`]=N[5],$[`${E}Active`]=N[7]}}),{...x,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:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:R,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[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:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],...$,colorBgMask:new nn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const U8=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function q8(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1,...U8(r)}}const G8=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},X8=e=>{const t=H8(e),n=t.map(g=>g.size),r=t.map(g=>g.lineHeight),a=n[1],s=n[0],c=n[2],d=r[1],f=r[0],m=r[2];return{fontSizeSM:s,fontSize:a,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:d,lineHeightLG:m,lineHeightSM:f,fontHeight:Math.round(d*a),fontHeightLG:Math.round(m*c),fontHeightSM:Math.round(f*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function K8(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 yo=(e,t)=>new nn(e).setA(t).toRgbString(),Jl=(e,t)=>new nn(e).darken(t).toHexString(),Q8=e=>{const t=jS(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]}},Z8=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:yo(r,.88),colorTextSecondary:yo(r,.65),colorTextTertiary:yo(r,.45),colorTextQuaternary:yo(r,.25),colorFill:yo(r,.15),colorFillSecondary:yo(r,.06),colorFillTertiary:yo(r,.04),colorFillQuaternary:yo(r,.02),colorBgSolid:yo(r,1),colorBgSolidHover:yo(r,.75),colorBgSolidActive:yo(r,.95),colorBgLayout:Jl(n,4),colorBgContainer:Jl(n,0),colorBgElevated:Jl(n,0),colorBgSpotlight:yo(r,.85),colorBgBlur:"transparent",colorBorder:Jl(n,15),colorBorderDisabled:Jl(n,15),colorBorderSecondary:Jl(n,6)}};function K4(e){Ss.pink=Ss.magenta,Cy.pink=Cy.magenta;const t=Object.keys(q4).map(n=>{const r=e[n]===Ss[n]?Cy[n]:jS(e[n]);return Array.from({length:10},()=>1).reduce((a,s,c)=>(a[`${n}-${c+1}`]=r[c],a[`${n}${c+1}`]=r[c],a),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...Y8(e,{generateColorPalettes:Q8,generateNeutralColorPalettes:Z8}),...X8(e.fontSize),...K8(e),...G8(e),...q8(e)}}const Q4=Eb(K4),km={token:wu,override:{override:wu},hashed:!0},Z4=oe.createContext(km);function xy(e){return e>=0&&e<=255}function Zc(e,t){const{r:n,g:r,b:a,a:s}=new nn(e).toRgb();if(s<1)return e;const{r:c,g:d,b:f}=new nn(t).toRgb();for(let m=.01;m<=1;m+=.01){const g=Math.round((n-c*(1-m))/m),h=Math.round((r-d*(1-m))/m),y=Math.round((a-f*(1-m))/m);if(xy(g)&&xy(h)&&xy(y))return new nn({r:g,g:h,b:y,a:Math.round(m*100)/100}).toRgbString()}return new nn({r:n,g:r,b:a,a:1}).toRgbString()}function J8(e){const{override:t,...n}=e,r={...t};Object.keys(wu).forEach(b=>{delete r[b]});const a={...n,...r},s=480,c=576,d=768,f=992,m=1200,g=1600,h=1920;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),{...a,colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Zc(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Zc(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Zc(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Zc(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
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:m-1,screenXL:m,screenXLMin:m,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,screenXXLMax:h-1,screenXXXL:h,screenXXXLMin:h,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
28
|
+
0 1px 2px -2px ${new nn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
29
|
+
0 3px 6px 0 ${new nn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
30
|
+
0 5px 12px 4px ${new nn("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 J4={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},e5={motionBase:!0,motionUnit:!0},t5={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},eT=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a,...s}=t;let c={...r,override:a};return c=J8(c),s&&Object.entries(s).forEach(([d,f])=>{const{theme:m,...g}=f;let h=g;m&&(h=eT({...c,...g},{override:g},m)),c[d]=h}),c};function Yr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a,zeroRuntime:s}=oe.useContext(Z4),c={prefix:a?.prefix??"ant",key:a?.key??"css-var-root"},d=`${B8}-${t||""}`,f=n||Q4,[m,g,h]=Xz(f,[wu,e],{salt:d,override:r,getComputedToken:eT,cssVar:{...c,unitless:J4,ignore:e5,preserve:t5}});return[f,h,t?g:"",m,c,!!s]}const $o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Jt=(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}),Ds=()=>({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"}}),al=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n5=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"}}}),r5=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:a,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return r!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...d,...c,[a]:c}}},jo=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),wo=(e,t)=>({"&:focus-visible":jo(e,t)}),tT=e=>({[`.${e}`]:{...Ds(),[`.${e} .${e}-icon`]:{display:"block"}}}),nT=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...wo(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:o5,genSubStyleComponent:cd}=_8({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(dt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a,s]=Yr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a,zeroRuntime:s}},useCSP:()=>{const{csp:e}=l.useContext(dt);return e??{}},getResetStyles:(e,t)=>{const n=n5(e);return[n,{"&":n},tT(t?.prefix.iconPrefixCls??xp)]},getCommonStyle:r5,getCompUnitless:()=>J4}),Ut=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[s=>`${n}${s}`,(s,c)=>c?`var(${n}${s}, ${c})`:`var(${n}${s})`]};function Tp(e,t){return Ma.reduce((n,r)=>{const a=e[`${r}1`],s=e[`${r}3`],c=e[`${r}6`],d=e[`${r}7`];return{...n,...t(r,{lightColor:a,lightBorderColor:s,darkColor:c,textColor:d})}},{})}const a5=(e,t)=>(Yr(),Nb({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>tT(e)));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 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 _S=l.createContext({});function rT(e){return e?.getRootNode?.()}function l5(e){return rT(e)instanceof ShadowRoot}function Wm(e){return l5(e)?rT(e):null}function s5(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function c5(e,t){rr(e,`[@ant-design/icons] ${t}`)}function rE(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function oE(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[s5(n)]=r),t},{})}function kb(e,t,n){return n?oe.createElement(e.tag,{key:t,...oE(e.attrs),...n},(e.children||[]).map((r,a)=>kb(r,`${t}-${e.tag}-${a}`))):oe.createElement(e.tag,{key:t,...oE(e.attrs)},(e.children||[]).map((r,a)=>kb(r,`${t}-${e.tag}-${a}`)))}function oT(e){return jS(e)[0]}function aT(e){return e?Array.isArray(e)?e:[e]:[]}const u5=`
|
|
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
|
+
`,d5=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(_S);let a=u5;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} {
|
|
104
|
+
${a}
|
|
105
|
+
}`),l.useEffect(()=>{const s=e.current,c=Wm(s);mi(a,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},su={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function f5({primaryColor:e,secondaryColor:t}){su.primaryColor=e,su.secondaryColor=t||oT(e),su.calculated=!!t}function m5(){return{...su}}const js=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:s,secondaryColor:c,...d}=e,f=l.useRef(null);let m=su;if(s&&(m={primaryColor:s,secondaryColor:c||oT(s)}),d5(f),c5(rE(t),`icon should be icon definiton, but got ${t}`),!rE(t))return null;let g=t;return g&&typeof g.icon=="function"&&(g={...g,icon:g.icon(m.primaryColor,m.secondaryColor)}),kb(g.icon,`svg-${g.name}`,{className:n,onClick:r,style:a,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:f})};js.displayName="IconReact";js.getTwoToneColors=m5;js.setTwoToneColors=f5;function iT(e){const[t,n]=aT(e);return js.setTwoToneColors({primaryColor:t,secondaryColor:n})}function p5(){const e=js.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Wb(){return Wb=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},Wb.apply(this,arguments)}iT(Fm.primary);const pt=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:a,rotate:s,tabIndex:c,onClick:d,twoToneColor:f,...m}=e,{prefixCls:g="anticon",rootClassName:h}=l.useContext(_S),y=Q(h,g,{[`${g}-${r.name}`]:!!r.name,[`${g}-spin`]:!!a||r.name==="loading"},n);let b=c;b===void 0&&d&&(b=-1);const v=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[x,C]=aT(f);return l.createElement("span",Wb({role:"img","aria-label":r.name},m,{ref:t,tabIndex:b,onClick:d,className:y}),l.createElement(js,{icon:r,primaryColor:x,secondaryColor:C,style:v}))});pt.getTwoToneColor=p5;pt.setTwoToneColor=iT;function Yb(){return Yb=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},Yb.apply(this,arguments)}const g5=(e,t)=>l.createElement(pt,Yb({},e,{ref:t,icon:i5})),Op=l.forwardRef(g5);var h5={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 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 y5=(e,t)=>l.createElement(pt,Ub({},e,{ref:t,icon:h5})),_s=l.forwardRef(y5);var b5={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 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 v5=(e,t)=>l.createElement(pt,qb({},e,{ref:t,icon:b5})),Ur=l.forwardRef(v5);var S5={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 Gb(){return Gb=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},Gb.apply(this,arguments)}const C5=(e,t)=>l.createElement(pt,Gb({},e,{ref:t,icon:S5})),Hs=l.forwardRef(C5);var x5={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 Xb(){return Xb=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},Xb.apply(this,arguments)}const $5=(e,t)=>l.createElement(pt,Xb({},e,{ref:t,icon:x5})),HS=l.forwardRef($5),lT=l.createContext({});function w5({children:e,...t}){return l.createElement(lT.Provider,{value:t},e)}function E5(e){const[,t]=l.useReducer(s=>s+1,0),n=l.useRef(e),r=ct(()=>n.current),a=ct(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,a]}const Ca="none",Lf="appear",Vf="enter",Ff="leave",aE="none",zo="prepare",ms="start",ps="active",BS="end",sT="prepared";function iE(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 M5(e,t){const n={animationend:iE("Animation","AnimationEnd"),transitionend:iE("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const R5=M5(kr(),typeof window<"u"?window:{});let cT={};kr()&&({style:cT}=document.createElement("div"));const kf={};function uT(e){if(kf[e])return kf[e];const t=R5[e];if(t){const n=Object.keys(t),r=n.length;for(let a=0;a<r;a+=1){const s=n[a];if(Object.prototype.hasOwnProperty.call(t,s)&&s in cT)return kf[e]=t[s],kf[e]}}return""}const dT=uT("animationend"),fT=uT("transitionend"),T5=!!(dT&&fT),lE=dT||"animationend",sE=fT||"transitionend";function cE(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 O5=(e=>{const t=l.useRef();function n(a){a&&(a.removeEventListener(sE,e),a.removeEventListener(lE,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(sE,e),a.addEventListener(lE,e),t.current=a)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),mT=kr()?l.useLayoutEffect:l.useEffect,N5=(()=>{const e=l.useRef(null);function t(){Ht.cancel(e.current)}function n(r,a=2){t();const s=Ht(()=>{a<=1?r({isCanceled:()=>s!==e.current}):n(r,a-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]}),I5=[zo,ms,ps,BS],P5=[zo,sT],pT=!1,z5=!0;function gT(e){return e===ps||e===BS}const A5=((e,t,n)=>{const[r,a]=Bm(aE),[s,c]=N5();function d(){a(zo,!0)}const f=t?P5:I5;return mT(()=>{if(r!==aE&&r!==BS){const m=f.indexOf(r),g=f[m+1],h=n(r);h===pT?a(g,!0):g&&s(y=>{function b(){y.isCanceled()||a(g,!0)}h===!0?b():Promise.resolve(h).then(b)})}},[e,r]),l.useEffect(()=>()=>{c()},[]),[d,r]});function D5(e,t,n,{motionEnter:r=!0,motionAppear:a=!0,motionLeave:s=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:f,onEnterPrepare:m,onLeavePrepare:g,onAppearStart:h,onEnterStart:y,onLeaveStart:b,onAppearActive:v,onEnterActive:x,onLeaveActive:C,onAppearEnd:w,onEnterEnd:R,onLeaveEnd:$,onVisibleChanged:E}){const[T,N]=Bm(),[O,D]=E5(Ca),[j,B]=Bm(null),V=O(),U=l.useRef(!1),G=l.useRef(null);function Y(){return n()}const _=l.useRef(!1);function H(){D(Ca),B(null,!0)}const F=ct(J=>{const re=O();if(re===Ca)return;const ie=Y();if(J&&!J.deadline&&J.target!==ie)return;const ne=_.current;let le;re===Lf&&ne?le=w?.(ie,J):re===Vf&&ne?le=R?.(ie,J):re===Ff&&ne&&(le=$?.(ie,J)),ne&&le!==!1&&H()}),[I]=O5(F),z=J=>{switch(J){case Lf:return{[zo]:f,[ms]:h,[ps]:v};case Vf:return{[zo]:m,[ms]:y,[ps]:x};case Ff:return{[zo]:g,[ms]:b,[ps]:C};default:return{}}},L=l.useMemo(()=>z(V),[V]),[P,A]=A5(V,!e,J=>{if(J===zo){const re=L[zo];return re?re(Y()):pT}return A in L&&B(L[A]?.(Y(),null)||null),A===ps&&V!==Ca&&(I(Y()),c>0&&(clearTimeout(G.current),G.current=setTimeout(()=>{F({deadline:!0})},c))),A===sT&&H(),z5}),k=gT(A);_.current=k;const q=l.useRef(null);mT(()=>{if(U.current&&q.current===t)return;N(t);const J=U.current;U.current=!0;let re;!J&&t&&a&&(re=Lf),J&&t&&r&&(re=Vf),(J&&!t&&s||!J&&d&&!t&&s)&&(re=Ff);const ie=z(re);re&&(e||ie[zo])?(D(re),P()):D(Ca),q.current=t},[t]),l.useEffect(()=>{(V===Lf&&!a||V===Vf&&!r||V===Ff&&!s)&&D(Ca)},[a,r,s]),l.useEffect(()=>()=>{U.current=!1,clearTimeout(G.current)},[]);const K=l.useRef(!1);l.useEffect(()=>{T&&(K.current=!0),T!==void 0&&V===Ca&&((K.current||T)&&E?.(T),K.current=!0)},[T,V]);let Z=j;return L[zo]&&A===ms&&(Z={transition:"none",...Z}),[O,A,Z,T??t]}function j5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(a,s){return!!(a.motionName&&t&&s!==!1)}const r=l.forwardRef((a,s)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:f,children:m,motionName:g,leavedClassName:h,eventProps:y}=a,{motion:b}=l.useContext(lT),v=n(a,b),x=l.useRef();function C(){return ws(x.current)}const[w,R,$,E]=D5(v,c,C,a),T=w(),N=l.useRef(E);E&&(N.current=!0);const O=l.useMemo(()=>{const B={};return Object.defineProperties(B,{nativeElement:{enumerable:!0,get:C},inMotion:{enumerable:!0,get:()=>()=>w()!==Ca},enableMotion:{enumerable:!0,get:()=>()=>v}}),B},[]);l.useImperativeHandle(s,()=>O,[]);let D;const j={...y,visible:c};if(!m)D=null;else if(T===Ca)E?D=m({...j},x):!d&&N.current&&h?D=m({...j,className:h},x):f||!d&&!h?D=m({...j,style:{display:"none"}},x):D=null;else{let B;R===zo?B="prepare":gT(R)?B="active":R===ms&&(B="start");const V=cE(g,`${T}-${B}`);D=m({...j,className:Q(cE(g,T),{[V]:V&&B,[g]:typeof g=="string"}),style:$},x)}return l.isValidElement(D)&&ul(D)&&(bi(D)||(D=l.cloneElement(D,{ref:x}))),D});return r.displayName="CSSMotion",r}const vr=j5(T5),Kb="add",Qb="keep",Zb="remove",$y="removed";function _5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Jb(e=[]){return e.map(_5)}function H5(e=[],t=[]){let n=[],r=0;const a=t.length,s=Jb(e),c=Jb(t);s.forEach(m=>{let g=!1;for(let h=r;h<a;h+=1){const y=c[h];if(y.key===m.key){r<h&&(n=n.concat(c.slice(r,h).map(b=>({...b,status:Kb}))),r=h),n.push({...y,status:Qb}),r+=1,g=!0;break}}g||n.push({...m,status:Zb})}),r<a&&(n=n.concat(c.slice(r).map(m=>({...m,status:Kb}))));const d={};return n.forEach(({key:m})=>{d[m]=(d[m]||0)+1}),Object.keys(d).filter(m=>d[m]>1).forEach(m=>{n=n.filter(({key:g,status:h})=>g!==m||h!==Zb),n.forEach(g=>{g.key===m&&(g.status=Qb)})}),n}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 B5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function L5(e,t=vr){class n extends l.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:a},{keyEntities:s}){const c=Jb(a);return{keyEntities:H5(s,c).filter(f=>{const m=s.find(({key:g})=>f.key===g);return!(m&&m.status===$y&&f.status===Zb)})}}removeKey=a=>{this.setState(s=>({keyEntities:s.keyEntities.map(d=>d.key!==a?d:{...d,status:$y})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:d})=>d!==$y).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:a}=this.state,{component:s,children:c,onVisibleChanged:d,onAllRemoved:f,...m}=this.props,g=s||l.Fragment,h={};return B5.forEach(y=>{h[y]=m[y],delete m[y]}),delete m.keys,l.createElement(g,m,a.map(({status:y,...b},v)=>{const x=y===Kb||y===Qb;return l.createElement(t,ev({},h,{key:b.key,visible:x,eventProps:b,onVisibleChanged:C=>{d?.(C,{key:b.key}),C||this.removeKey(b.key)}}),(C,w)=>c({...C,index:v},w))}))}}return n}const V5=L5(),F5=`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`,k5=`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`,W5=`${F5} ${k5}`.split(/[\s\n]+/),Y5="aria-",U5="data-";function uE(e,t){return e.indexOf(t)===0}function An(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(a=>{(n.aria&&(a==="role"||uE(a,Y5))||n.data&&uE(a,U5)||n.attr&&W5.includes(a))&&(r[a]=e[a])}),r}const hT={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 q5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function dE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dE(Object(n),!0).forEach(function(r){G5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G5(e,t,n){return t=X5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X5(e){var t=K5(e,"string");return Eu(t)=="symbol"?t:String(t)}function K5(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q5=fE(fE({},q5),{},{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 yT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Mu={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"],...Q5},timePickerLocale:{...yT}},to="${label} is not a valid ${type}",Ra={locale:"en",Pagination:hT,DatePicker:Mu,TimePicker:yT,Calendar:Mu,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: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:"${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 Em={...Ra.Modal},Mm=[];const mE=()=>Mm.reduce((e,t)=>({...e,...t}),Ra.Modal);function Z5(e){if(e){const t={...e};return Mm.push(t),Em=mE(),()=>{Mm=Mm.filter(n=>n!==t),Em=mE()}}Em={...Ra.Modal}}function bT(){return Em}const LS=l.createContext(void 0),ao=(e,t)=>{const n=l.useContext(LS),r=l.useMemo(()=>{const s=t||Ra[e],c=n?.[e]??{};return{...typeof s=="function"?s():s,...c||{}}},[e,t,n]),a=l.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?Ra.locale:s},[n]);return[r,a]},J5="internalMark",eA=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>Z5(t?.Modal),[t]);const a=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(LS.Provider,{value:a},n)};function tv(...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,Ms=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},vT={},pE=(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},tA=(e,t,n)=>e===!1?!1:e?tv(n,t,e):t===!1?!1:t?tv(n,t):n.closable?n:!1,nA=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:a,...s}=e;let c=a;const d=An(s,!0);return Mr(c)&&(r&&(c=r(c)),c=oe.isValidElement(c)?oe.cloneElement(c,{"aria-label":n,...c.props,...d}):oe.createElement("span",{"aria-label":n,...d},c)),[c,d]},rA=(e,t,n=vT,r="Close")=>{const a=pE(e?.closable,e?.closeIcon),s=pE(t?.closable,t?.closeIcon),c={closeIcon:oe.createElement(Ur,null),...n},d=tA(a,s,c),f=typeof d!="boolean"?!!d?.disabled:!1;if(d===!1)return[!1,null,f,{}];const[m,g]=nA(d,c,r);return[!0,m,f,g]},VS=(e,t,n=vT)=>{const[r]=ao("global",Ra.global);return oe.useMemo(()=>rA(e,t,{closeIcon:oe.createElement(Ur,null),...n},r.close),[e,t,n,r.close])},oA=()=>oe.useReducer(e=>e+1,0),nv=(e,t)=>{let n={};return e&&typeof e=="object"&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},ST=(e,t,n,r)=>l.useMemo(()=>{const a=nv(e,r),s=nv(t),c={blur:!1,...s,...a,closable:a.closable??r??s.closable??!0},d=c.blur?`${n}-mask-blur`:void 0;return[c.enabled!==!1,{mask:d},!!c.closable]},[e,t,n,r]),FS=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,a)=>(Object.keys(a||{}).forEach(s=>{const c=n[s],d=a[s];if(c&&typeof c=="object")if(d&&typeof d=="object")r[s]=FS(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),{})},aA=(e,...t)=>l.useMemo(()=>FS.apply(void 0,[e].concat(t)),[e].concat(t)),CT=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),iA=(...e)=>l.useMemo(()=>CT.apply(void 0,e),[].concat(e)),rv=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],s=n[r]||{};n[r]=a?rv(s,a):s}}),n},gs=(e,t)=>typeof e=="function"?e(t):e,Bt=(e,t,n,r)=>{const a=e.map(f=>f?gs(f,n):void 0),s=t.map(f=>f?gs(f,n):void 0),c=aA.apply(void 0,[r].concat($n(a))),d=iA.apply(void 0,$n(s));return l.useMemo(()=>r?[rv(c,r),rv(d,r)]:[c,d],[c,d,r])},gE=e=>e==="horizontal"||e==="vertical",ud=(e,t,n)=>l.useMemo(()=>{const r=gE(e);let a;return r?a=e:typeof t=="boolean"?a=t?"vertical":"horizontal":a=gE(n)?n:"horizontal",[a,a==="vertical"]},[n,e,t]),lA=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat($n(a),[r])),()=>{t(a=>a.filter(s=>s!==r))}),[]);return[e,n]},dd=oe.createContext(void 0),li=100,sA=10,xT=li*sA,$T={Modal:li,Drawer:li,Popover:li,Popconfirm:li,Tooltip:li,Tour:li,FloatButton:li},cA={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},uA=e=>e in $T,vi=(e,t)=>{const[,n]=Yr(),r=oe.useContext(dd),a=uA(e);let s;if(t!==void 0)s=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+$T[e]:c+=cA[e],s=[r===void 0?t:c,c]}return s},Wf=(e,t,n,r,a)=>({background:e,border:`${te(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),dA=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:s,fontSizeLG:c,lineHeight:d,borderRadiusLG:f,motionEaseInOutCirc:m,withDescriptionIconSize:g,colorText:h,colorTextHeading:y,withDescriptionPadding:b,defaultPadding:v}=e;return{[t]:{...Jt(e),position:"relative",display:"flex",alignItems:"center",padding:v,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","opacity","padding-top","padding-bottom","margin-bottom"].map(x=>`${x} ${n} ${m}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:b,[`${t}-icon`]:{marginInlineEnd:a,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}}},fA=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:s,colorWarningBorder:c,colorWarningBg:d,colorError:f,colorErrorBorder:m,colorErrorBg:g,colorInfo:h,colorInfoBorder:y,colorInfoBg:b}=e;return{[t]:{"&-success":Wf(a,r,n,e,t),"&-info":Wf(b,y,h,e,t),"&-warning":Wf(d,c,s,e,t),"&-error":{...Wf(g,m,f,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},mA=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:s,colorIcon:c,colorIconHover:d}=e;return{[t]:{"&-actions":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,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}}}}},pA=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),gA=Pt("Alert",e=>[dA(e),fA(e),mA(e)],pA),hA=e=>{const{icon:t,type:n,className:r,style:a,successIcon:s,infoIcon:c,warningIcon:d,errorIcon:f}=e,m={success:s??l.createElement(Op,null),info:c??l.createElement(HS,null),error:f??l.createElement(_s,null),warning:d??l.createElement(Hs,null)};return l.createElement("span",{className:r,style:a},t??m[n])},yA=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:s,className:c,style:d}=e,f=r===!0||r===void 0?l.createElement(Ur,null):r;return t?l.createElement("button",{type:"button",onClick:a,className:Q(`${n}-close-icon`,c),tabIndex:0,style:d,...s},f):null},wT=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,title:s,banner:c,className:d,rootClassName:f,style:m,onMouseEnter:g,onMouseLeave:h,onClick:y,afterClose:b,showIcon:v,closable:x,closeText:C,closeIcon:w,action:R,id:$,styles:E,classNames:T,...N}=e,O=s??a,[D,j]=l.useState(!1),B=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:B.current}));const{getPrefixCls:V,direction:U,closable:G,closeIcon:Y,className:_,style:H,classNames:F,styles:I,successIcon:z,infoIcon:L,warningIcon:P,errorIcon:A}=Rt("alert"),k=V("alert",r),[q,K]=gA(k),{onClose:Z,afterClose:J}=x&&typeof x=="object"?x:{},re=ye=>{j(!0),(Z??e.onClose)?.(ye)},ie=l.useMemo(()=>e.type!==void 0?e.type:c?"warning":"info",[e.type,c]),ne=l.useMemo(()=>typeof x=="object"&&x.closeIcon||C?!0:typeof x=="boolean"?x:w!==!1&&Mr(w)?!0:!!G,[C,w,x,G]),le=c&&v===void 0?!0:v,se={...e,prefixCls:k,type:ie,showIcon:le,closable:ne},[ce,me]=Bt([F,T],[I,E],{props:se}),ae=Q(k,`${k}-${ie}`,{[`${k}-with-description`]:!!n,[`${k}-no-icon`]:!le,[`${k}-banner`]:!!c,[`${k}-rtl`]:U==="rtl"},_,d,f,ce.root,K,q),fe=An(N,{aria:!0,data:!0}),ge=l.useMemo(()=>typeof x=="object"&&x.closeIcon?x.closeIcon:C||(w!==void 0?w:typeof G=="object"&&G.closeIcon?G.closeIcon:Y),[w,x,G,C,Y]),he=l.useMemo(()=>{const ye=x??G;return typeof ye=="object"?An(ye,{data:!0,aria:!0}):{}},[x,G]);return l.createElement(vr,{visible:!D,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:ye=>({maxHeight:ye.offsetHeight}),onLeaveEnd:J??b},({className:ye,style:Ae},xe)=>l.createElement("div",{id:$,ref:mr(B,xe),"data-show":!D,className:Q(ae,ye),style:{...me.root,...H,...m,...Ae},onMouseEnter:g,onMouseLeave:h,onClick:y,role:"alert",...fe},le?l.createElement(hA,{className:Q(`${k}-icon`,ce.icon),style:me.icon,description:n,icon:e.icon,prefixCls:k,type:ie,successIcon:z,infoIcon:L,warningIcon:P,errorIcon:A}):null,l.createElement("div",{className:Q(`${k}-section`,ce.section),style:me.section},O?l.createElement("div",{className:Q(`${k}-title`,ce.title),style:me.title},O):null,n?l.createElement("div",{className:Q(`${k}-description`,ce.description),style:me.description},n):null),R?l.createElement("div",{className:Q(`${k}-actions`,ce.actions),style:me.actions},R):null,l.createElement(yA,{className:ce.close,style:me.close,isClosable:ne,prefixCls:k,closeIcon:ge,handleClose:re,ariaProps:he})))});function bA(e,t,n){return t=ol(t),k4(e,Rp()?Reflect.construct(t,n||[],ol(e).constructor):t.apply(e,n))}let vA=(function(e){function t(){var n;return dl(this,t),n=bA(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return DS(t,e),fl(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,title:a,description:s,id:c,children:d}=this.props,{error:f,info:m}=this.state,g=a??r,h=m?.componentStack||null,y=typeof g>"u"?(f||"").toString():g,b=typeof s>"u"?h:s;return f?l.createElement(wT,{id:c,type:"error",title:y,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},b)}):d}}])})(l.Component);const ET=wT;ET.ErrorBoundary=vA;const ir=e=>`${e}-css-var`,SA=l.createContext(void 0);var il=u4();const MT=l.createContext(null);let CA=!1;function xA(e){return CA}const hE=[];function $A(e,t){const[n]=l.useState(()=>kr()?document.createElement("div"):null),r=l.useRef(!1),a=l.useContext(MT),[s,c]=l.useState(hE),d=a||(r.current?void 0:g=>{c(h=>[g,...h])});function f(){n.parentElement||document.body.appendChild(n),r.current=!0}function m(){n.parentElement?.removeChild(n),r.current=!1}return It(()=>(e?a?a(f):f():m(),m),[e]),It(()=>{s.length&&(s.forEach(g=>g()),c(hE))},[s]),[n,d]}function wA(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 a,s;if(e){const f=getComputedStyle(e);r.scrollbarColor=f.scrollbarColor,r.scrollbarWidth=f.scrollbarWidth;const m=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(m.width,10),h=parseInt(m.height,10);try{const y=g?`width: ${m.width};`:"",b=h?`height: ${m.height};`:"";mi(`
|
|
123
|
+
#${t}::-webkit-scrollbar {
|
|
124
|
+
${y}
|
|
125
|
+
${b}
|
|
126
|
+
}`,t)}catch(y){console.error(y),a=g,s=h}}document.body.appendChild(n);const c=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,d=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),vu(t),{width:c,height:d}}function EA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:wA(e)}function MA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const RA=`rc-util-locker-${Date.now()}`;let yE=0;function TA(e){const t=!!e,[n]=l.useState(()=>(yE+=1,`${RA}_${yE}`));It(()=>{if(t){const r=EA(document.body).width,a=MA();mi(`
|
|
127
|
+
html body {
|
|
128
|
+
overflow-y: hidden;
|
|
129
|
+
${a?`width: calc(100% - ${r}px);`:""}
|
|
130
|
+
}`,n)}else vu(n);return()=>{vu(n)}},[t,n])}function OA(){return{...GP}.useId}let bE=0;const vE=OA(),Ho=vE?(function(t){const n=vE();return t||n}):(function(t){const[n,r]=l.useState("ssr-id");return l.useEffect(()=>{const a=bE;bE+=1,r(`rc_unique_${a}`)},[]),t||n});let Ki=[];const NA=200;let RT=0;const TT=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-RT<NA)return;const n=Ki.length;for(let r=n-1;r>=0;r-=1)Ki[r].onEsc({top:r===n-1,event:e})}},OT=()=>{RT=Date.now()};function IA(){window.addEventListener("keydown",TT),window.addEventListener("compositionend",OT)}function PA(){Ki.length===0&&(window.removeEventListener("keydown",TT),window.removeEventListener("compositionend",OT))}function zA(e,t){const n=Ho(),r=ct(t),a=()=>{Ki.find(c=>c.id===n)||Ki.push({id:n,onEsc:r})},s=()=>{Ki=Ki.filter(c=>c.id!==n)};l.useMemo(()=>{e?a():e||s()},[e]),l.useEffect(()=>{if(e)return a(),IA(),()=>{s(),PA()}},[e])}const SE=e=>e===!1?!1:!kr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,fd=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:a,debug:s,autoDestroy:c=!0,children:d,onEsc:f}=e,[m,g]=l.useState(n),h=m||n;l.useEffect(()=>{(c||n)&&g(n)},[n,c]);const[y,b]=l.useState(()=>SE(a));l.useEffect(()=>{const T=SE(a);b(()=>T??null)});const[v,x]=$A(h&&!y),C=y??v;TA(r&&n&&kr()&&(C===v||C===document.body)),zA(n,f);let w=null;d&&ul(d)&&t&&(w=bi(d));const R=ea(w,t);if(!h||!kr()||y===void 0)return null;const $=C===!1||xA();let E=d;return t&&(E=l.cloneElement(d,{ref:R})),l.createElement(MT.Provider,{value:x},$?E:il.createPortal(E,C))});function AA(e){const{prefixCls:t,align:n,arrow:r,arrowPos:a}=e,{className:s,content:c,style:d}=r||{},{x:f=0,y:m=0}=a,g=l.useRef(null);if(!n||!n.points)return null;const h={position:"absolute"};if(n.autoArrow!==!1){const y=n.points[0],b=n.points[1],v=y[0],x=y[1],C=b[0],w=b[1];v===C||!["t","b"].includes(v)?h.top=m:v==="t"?h.top=0:h.bottom=0,x===w||!["l","r"].includes(x)?h.left=f:x==="l"?h.left=0:h.right=0}return l.createElement("div",{ref:g,className:Q(`${t}-arrow`,s),style:{...h,...d}},c)}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)}function DA(e){const{prefixCls:t,open:n,zIndex:r,mask:a,motion:s,mobile:c}=e;return a?l.createElement(vr,ov({},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 jA=l.memo(({children:e})=>e,(e,t)=>t.cache);function NT(e,t,n,r,a,s,c,d){const f="auto",m=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",b=h&&g[0][0]==="b";y?(m.right=a,m.left=f):(m.left=c,m.right=f),b?(m.bottom=s,m.top=f):(m.top=d,m.bottom=f)}return m}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 IT=l.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:a,prefixCls:s,style:c,target:d,onVisibleChanged:f,open:m,keepDom:g,fresh:h,onClick:y,mask:b,arrow:v,arrowPos:x,align:C,motion:w,maskMotion:R,mobile:$,forceRender:E,getPopupContainer:T,autoDestroy:N,portal:O,children:D,zIndex:j,onMouseEnter:B,onMouseLeave:V,onPointerEnter:U,onPointerDownCapture:G,ready:Y,offsetX:_,offsetY:H,offsetR:F,offsetB:I,onAlign:z,onPrepare:L,onResize:P,stretch:A,targetWidth:k,targetHeight:q}=e,K=typeof r=="function"?r():r,Z=m||g,J=!!$,[re,ie,ne]=l.useMemo(()=>$?[$.mask,$.maskMotion,$.motion]:[b,R,w],[$,b,R,w]),le=T?.length>0,[se,ce]=l.useState(!T||!le);It(()=>{!se&&le&&d&&ce(!0)},[se,le,d]);const me=ct((ge,he)=>{P?.(ge,he),z()}),ae=NT(J,Y,m,C,F,I,_,H);if(!se)return null;const fe={};return A&&(A.includes("height")&&q?fe.height=q:A.includes("minHeight")&&q&&(fe.minHeight=q),A.includes("width")&&k?fe.width=k:A.includes("minWidth")&&k&&(fe.minWidth=k)),m||(fe.pointerEvents="none"),l.createElement(O,{open:E||Z,getContainer:T&&(()=>T(d)),autoDestroy:N,onEsc:n},l.createElement(DA,{prefixCls:s,open:m,zIndex:j,mask:re,motion:ie,mobile:J}),l.createElement(oo,{onResize:me,disabled:!m},ge=>l.createElement(vr,av({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:`${s}-hidden`},ne,{onAppearPrepare:L,onEnterPrepare:L,visible:m,onVisibleChanged:he=>{w?.onVisibleChanged?.(he),f(he)}}),({className:he,style:ye},Ae)=>{const xe=Q(s,he,a,{[`${s}-mobile`]:J});return l.createElement("div",{ref:mr(ge,t,Ae),className:xe,style:{"--arrow-x":`${x.x||0}px`,"--arrow-y":`${x.y||0}px`,...ae,...fe,...ye,boxSizing:"border-box",zIndex:j,...c},onMouseEnter:B,onMouseLeave:V,onPointerEnter:U,onClick:y,onPointerDownCapture:G},v&&l.createElement(AA,{prefixCls:s,arrow:v,arrowPos:x,align:C}),l.createElement(jA,{cache:!m&&!h},K))})),D)}),Ym=l.createContext(null),PT=l.createContext(null);function CE(e){return e?Array.isArray(e)?e:[e]:[]}function _A(e,t,n){return l.useMemo(()=>{const r=CE(t??e),a=CE(n??e),s=new Set(r),c=new Set(a);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 Np=(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 HA(e=[],t=[],n){const r=(a,s)=>a[s]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function zT(e,t,n,r){const{points:a}=n,s=Object.keys(e);for(let c=0;c<s.length;c+=1){const d=s[c];if(HA(e[d]?.points,a,r))return`${t}-placement-${d}`}return""}function md(e){return e.ownerDocument.defaultView}function iv(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:a,overflowY:s,overflow:c}=md(n).getComputedStyle(n);[a,s,c].some(d=>r.includes(d))&&t.push(n),n=n.parentElement}return t}function Ru(e,t=1){return Number.isNaN(e)?t:e}function Hc(e){return Ru(parseFloat(e),0)}function xE(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:a,overflowClipMargin:s,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:f,borderRightWidth:m}=md(r).getComputedStyle(r),g=r.getBoundingClientRect(),{offsetHeight:h,clientHeight:y,offsetWidth:b,clientWidth:v}=r,x=Hc(c),C=Hc(d),w=Hc(f),R=Hc(m),$=Ru(Math.round(g.width/b*1e3)/1e3),E=Ru(Math.round(g.height/h*1e3)/1e3),T=(b-v-w-R)*$,N=(h-y-x-C)*E,O=x*E,D=C*E,j=w*$,B=R*$;let V=0,U=0;if(a==="clip"){const F=Hc(s);V=F*$,U=F*E}const G=g.x+j-V,Y=g.y+O-U,_=G+g.width+2*V-j-B-T,H=Y+g.height+2*U-O-D-N;n.left=Math.max(n.left,G),n.top=Math.max(n.top,Y),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,H)}),n}function $E(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function wE(e,t){const[n,r]=t||[];return[$E(e.width,n),$E(e.height,r)]}function EE(e=""){return[e[0],e[1]]}function es(e,t){const n=t[0],r=t[1];let a,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:s}}function oi(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function ME(e){return e.join("")}function AT(e,t,n,r,a,s,c,d){const[f,m]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),g=l.useRef(0),h=l.useMemo(()=>!t||d?[]:iv(t),[t]),y=l.useRef({});e||(y.current={});const v=ct(()=>{if(t&&n&&e&&!d){let Ce=function(vt,Rn,zn=me){const Cr=G.x+vt,xr=G.y+Rn,Zn=Cr+k,Dn=xr+A,Eo=Math.max(Cr,zn.left),na=Math.max(xr,zn.top),Mo=Math.min(Zn,zn.right),Lo=Math.min(Dn,zn.bottom);return Math.max(0,(Mo-Eo)*(Lo-na))},Te=function(){Qe=G.y+Ne,ze=Qe+A,Ie=G.x+Ke,Ue=Ie+k};const w=t,R=w.ownerDocument,$=md(w),{position:E}=$.getComputedStyle(w),T=w.style.left,N=w.style.top,O=w.style.right,D=w.style.bottom,j=w.style.overflow,B={...a[r],...s},V=R.createElement("div");w.parentElement?.appendChild(V),V.style.left=`${w.offsetLeft}px`,V.style.top=`${w.offsetTop}px`,V.style.position=E,V.style.height=`${w.offsetHeight}px`,V.style.width=`${w.offsetWidth}px`,w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";let U;if(Array.isArray(n))U={x:n[0],y:n[1],width:0,height:0};else{const vt=n.getBoundingClientRect();vt.x=vt.x??vt.left,vt.y=vt.y??vt.top,U={x:vt.x,y:vt.y,width:vt.width,height:vt.height}}const G=w.getBoundingClientRect(),{height:Y,width:_}=$.getComputedStyle(w);G.x=G.x??G.left,G.y=G.y??G.top;const{clientWidth:H,clientHeight:F,scrollWidth:I,scrollHeight:z,scrollTop:L,scrollLeft:P}=R.documentElement,A=G.height,k=G.width,q=U.height,K=U.width,Z={left:0,top:0,right:H,bottom:F},J={left:-P,top:-L,right:I-P,bottom:z-L};let{htmlRegion:re}=B;const ie="visible",ne="visibleFirst";re!=="scroll"&&re!==ne&&(re=ie);const le=re===ne,se=xE(J,h),ce=xE(Z,h),me=re===ie?ce:se,ae=le?ce:me;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";const fe=w.getBoundingClientRect();w.style.left=T,w.style.top=N,w.style.right=O,w.style.bottom=D,w.style.overflow=j,w.parentElement?.removeChild(V);const ge=Ru(Math.round(k/parseFloat(_)*1e3)/1e3),he=Ru(Math.round(A/parseFloat(Y)*1e3)/1e3);if(ge===0||he===0||$s(n)&&!Np(n))return;const{offset:ye,targetOffset:Ae}=B;let[xe,Se]=wE(G,ye);const[ue,ve]=wE(U,Ae);U.x-=ue,U.y-=ve;const[Me,Pe]=B.points||[],je=EE(Pe),Be=EE(Me),Ze=es(U,je),Fe=es(G,Be),_e={...B};let He=[Be,je],Ke=Ze.x-Fe.x+xe,Ne=Ze.y-Fe.y+Se;const Ye=Ce(Ke,Ne),et=Ce(Ke,Ne,ce),Le=es(U,["t","l"]),Ge=es(G,["t","l"]),Re=es(U,["b","r"]),Xe=es(G,["b","r"]),tt=B.overflow||{},{adjustX:at,adjustY:bt,shiftX:ht,shiftY:xt}=tt,ke=vt=>typeof vt=="boolean"?vt:vt>=0;let Qe,ze,Ie,Ue;Te();const qe=ke(bt),Je=Be[0]===je[0];if(qe&&Be[0]==="t"&&(ze>ae.bottom||y.current.bt)){let vt=Ne;Je?vt-=A-q:vt=Le.y-Xe.y-Se;const Rn=Ce(Ke,vt),zn=Ce(Ke,vt,ce);Rn>Ye||Rn===Ye&&(!le||zn>=et)?(y.current.bt=!0,Ne=vt,Se=-Se,He=[oi(He[0],0),oi(He[1],0)]):y.current.bt=!1}if(qe&&Be[0]==="b"&&(Qe<ae.top||y.current.tb)){let vt=Ne;Je?vt+=A-q:vt=Re.y-Ge.y-Se;const Rn=Ce(Ke,vt),zn=Ce(Ke,vt,ce);Rn>Ye||Rn===Ye&&(!le||zn>=et)?(y.current.tb=!0,Ne=vt,Se=-Se,He=[oi(He[0],0),oi(He[1],0)]):y.current.tb=!1}const ot=ke(at),ft=Be[1]===je[1];if(ot&&Be[1]==="l"&&(Ue>ae.right||y.current.rl)){let vt=Ke;ft?vt-=k-K:vt=Le.x-Xe.x-xe;const Rn=Ce(vt,Ne),zn=Ce(vt,Ne,ce);Rn>Ye||Rn===Ye&&(!le||zn>=et)?(y.current.rl=!0,Ke=vt,xe=-xe,He=[oi(He[0],1),oi(He[1],1)]):y.current.rl=!1}if(ot&&Be[1]==="r"&&(Ie<ae.left||y.current.lr)){let vt=Ke;ft?vt+=k-K:vt=Re.x-Ge.x-xe;const Rn=Ce(vt,Ne),zn=Ce(vt,Ne,ce);Rn>Ye||Rn===Ye&&(!le||zn>=et)?(y.current.lr=!0,Ke=vt,xe=-xe,He=[oi(He[0],1),oi(He[1],1)]):y.current.lr=!1}_e.points=[ME(He[0]),ME(He[1])],Te();const Lt=ht===!0?0:ht;typeof Lt=="number"&&(Ie<ce.left&&(Ke-=Ie-ce.left-xe,U.x+K<ce.left+Lt&&(Ke+=U.x-ce.left+K-Lt)),Ue>ce.right&&(Ke-=Ue-ce.right-xe,U.x>ce.right-Lt&&(Ke+=U.x-ce.right+Lt)));const Tt=xt===!0?0:xt;typeof Tt=="number"&&(Qe<ce.top&&(Ne-=Qe-ce.top-Se,U.y+q<ce.top+Tt&&(Ne+=U.y-ce.top+q-Tt)),ze>ce.bottom&&(Ne-=ze-ce.bottom-Se,U.y>ce.bottom-Tt&&(Ne+=U.y-ce.bottom+Tt)));const $t=G.x+Ke,dn=$t+k,Mn=G.y+Ne,lt=Mn+A,Wt=U.x,nt=Wt+K,gt=U.y,Dt=gt+q,en=Math.max($t,Wt),Vt=Math.min(dn,nt),on=(en+Vt)/2-$t,Pn=Math.max(Mn,gt),an=Math.min(lt,Dt),zr=(Pn+an)/2-Mn;c?.(t,_e);let gn=fe.right-G.x-(Ke+G.width),Qn=fe.bottom-G.y-(Ne+G.height);ge===1&&(Ke=Math.floor(Ke),gn=Math.floor(gn)),he===1&&(Ne=Math.floor(Ne),Qn=Math.floor(Qn));const Or={ready:!0,offsetX:Ke/ge,offsetY:Ne/he,offsetR:gn/ge,offsetB:Qn/he,arrowX:on/ge,arrowY:zr/he,scaleX:ge,scaleY:he,align:_e};m(Or)}}),x=()=>{g.current+=1;const w=g.current;Promise.resolve().then(()=>{g.current===w&&v()})},C=()=>{m(w=>({...w,ready:!1}))};return It(C,[r]),It(()=>{e||C()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,x]}function DT(){const e=l.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,a)=>{t(),a===0?r():e.current=setTimeout(()=>{r()},a*1e3)};return l.useEffect(()=>()=>{t()},[]),n}function BA(e,t,n,r,a){It(()=>{if(e&&t&&n){let h=function(){r(),a()};const s=t,c=n,d=iv(s),f=iv(c),m=md(c),g=new Set([m,...d,...f]);return g.forEach(y=>{y.addEventListener("scroll",h,{passive:!0})}),m.addEventListener("resize",h,{passive:!0}),r(),()=>{g.forEach(y=>{y.removeEventListener("scroll",h),m.removeEventListener("resize",h)})}}},[e,t,n])}function LA(e,t,n,r,a,s,c,d){const f=l.useRef(e);f.current=e;const m=l.useRef(!1);l.useEffect(()=>{if(t&&r&&(!a||s)){const h=()=>{m.current=!1},y=x=>{f.current&&!c(x.composedPath?.()?.[0]||x.target)&&!m.current&&d(!1)},b=md(r);b.addEventListener("pointerdown",h,!0),b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0);const v=Wm(n);return v&&(v.addEventListener("mousedown",y,!0),v.addEventListener("contextmenu",y,!0)),()=>{b.removeEventListener("pointerdown",h,!0),b.removeEventListener("mousedown",y,!0),b.removeEventListener("contextmenu",y,!0),v&&(v.removeEventListener("mousedown",y,!0),v.removeEventListener("contextmenu",y,!0))}}},[t,n,r,a,s]);function g(){m.current=!0}return g}function VA(){const[e,t]=oe.useState(null),[n,r]=oe.useState(!1),[a,s]=oe.useState(!1),c=oe.useRef(null),d=ct(m=>{m===!1?(c.current=null,r(!1)):a&&n?c.current=m:(r(!0),t(m),c.current=null,n||s(!0))}),f=ct(m=>{m?(s(!1),c.current&&(t(c.current),c.current=null)):(s(!1),c.current=null)});return[d,n,e,f]}function lv(){return lv=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},lv.apply(this,arguments)}const FA=e=>{const{prefixCls:t,isMobile:n,ready:r,open:a,align:s,offsetR:c,offsetB:d,offsetX:f,offsetY:m,arrowPos:g,popupSize:h,motion:y,uniqueContainerClassName:b,uniqueContainerStyle:v}=e,x=`${t}-unique-container`,[C,w]=oe.useState(!1),R=NT(n,r,a,s,c,d,f,m),$=oe.useRef(R);r&&($.current=R);const E={};return h&&(E.width=h.width,E.height=h.height),oe.createElement(vr,lv({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${x}-hidden`},y,{visible:a,onVisibleChanged:T=>{w(T)}}),({className:T,style:N})=>{const O=Q(x,T,b,{[`${x}-visible`]:C});return oe.createElement("div",{className:O,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...$.current,...E,...N,...v}})})},kA=({children:e,postTriggerProps:t})=>{const[n,r,a,s]=VA(),c=l.useMemo(()=>!a||!t?a:t(a),[a,t]),[d,f]=l.useState(null),[m,g]=l.useState(null),h=l.useRef(null),y=ct(I=>{h.current=I,$s(I)&&d!==I&&f(I)}),b=l.useRef(null),v=DT(),x=ct((I,z)=>{b.current=z,v(()=>{n(I)},I.delay)}),C=I=>{v(()=>{b.current?.()||n(!1)},I)},w=ct(I=>{s(I)}),[R,$,E,T,N,O,D,,,j,B]=AT(r,d,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),V=l.useMemo(()=>{if(!c)return"";const I=zT(c.builtinPlacements||{},c.prefixCls||"",j,!1);return Q(I,c.getPopupClassNameFromAlign?.(j))},[j,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),U=l.useMemo(()=>({show:x,hide:C}),[]);l.useEffect(()=>{B()},[c?.target]);const G=ct(()=>(B(),Promise.resolve())),Y=l.useRef({}),_=l.useContext(Ym),H=l.useMemo(()=>({registerSubPopup:(I,z)=>{Y.current[I]=z,_?.registerSubPopup(I,z)}}),[_]),F=c?.prefixCls;return l.createElement(PT.Provider,{value:U},e,c&&l.createElement(Ym.Provider,{value:H},l.createElement(IT,{ref:y,portal:fd,onEsc:c.onEsc,prefixCls:F,popup:c.popup,className:Q(c.popupClassName,V,`${F}-unique-controlled`),style:c.popupStyle,target:c.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:w,ready:R,offsetX:$,offsetY:E,offsetR:T,offsetB:N,onAlign:B,onPrepare:G,onResize:I=>g({width:I.offsetWidth,height:I.offsetHeight}),arrowPos:{x:O,y:D},align:j,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},l.createElement(FA,{prefixCls:F,isMobile:!1,ready:R,open:r,align:j,offsetR:T,offsetB:N,offsetX:$,offsetY:E,arrowPos:{x:O,y:D},popupSize:m,motion:c.popupMotion,uniqueContainerClassName:Q(c.uniqueContainerClassName,V),uniqueContainerStyle:c.uniqueContainerStyle}))))};function WA(e=fd){return l.forwardRef((n,r)=>{const{prefixCls:a="rc-trigger-popup",children:s,action:c="hover",showAction:d,hideAction:f,popupVisible:m,defaultPopupVisible:g,onOpenChange:h,afterOpenChange:y,onPopupVisibleChange:b,afterPopupVisibleChange:v,mouseEnterDelay:x,mouseLeaveDelay:C=.1,focusDelay:w,blurDelay:R,mask:$,maskClosable:E=!0,getPopupContainer:T,forceRender:N,autoDestroy:O,popup:D,popupClassName:j,uniqueContainerClassName:B,uniqueContainerStyle:V,popupStyle:U,popupPlacement:G,builtinPlacements:Y={},popupAlign:_,zIndex:H,stretch:F,getPopupClassNameFromAlign:I,fresh:z,unique:L,alignPoint:P,onPopupClick:A,onPopupAlign:k,arrow:q,popupMotion:K,maskMotion:Z,mobile:J,...re}=n,ie=O||!1,ne=m===void 0,le=!!J,se=l.useRef({}),ce=l.useContext(Ym),me=l.useMemo(()=>({registerSubPopup:(rt,wt)=>{se.current[rt]=wt,ce?.registerSubPopup(rt,wt)}}),[ce]),ae=l.useContext(PT),fe=Ho(),[ge,he]=l.useState(null),ye=l.useRef(null),Ae=ct(rt=>{ye.current=rt,$s(rt)&&ge!==rt&&he(rt),ce?.registerSubPopup(fe,rt)}),[xe,Se]=l.useState(null),ue=l.useRef(null),ve=ct(rt=>{const wt=ws(rt);$s(wt)&&xe!==wt&&(Se(wt),ue.current=wt)}),Me={},Pe=ct(rt=>{const wt=xe;return wt?.contains(rt)||Wm(wt)?.host===rt||rt===wt||ge?.contains(rt)||Wm(ge)?.host===rt||rt===ge||Object.values(se.current).some(lo=>lo?.contains(rt)||rt===lo)}),je=q?{...q!==!0?q:{}}:null,[Be,Ze]=Yt(g||!1,m),Fe=Be||!1,_e=l.useMemo(()=>{const rt=typeof s=="function"?s({open:Fe}):s;return l.Children.only(rt)},[s,Fe]),He=_e?.props||{},Ke=ct(()=>Fe),Ne=ct((rt=0)=>({popup:D,target:xe,delay:rt,prefixCls:a,popupClassName:j,uniqueContainerClassName:B,uniqueContainerStyle:V,popupStyle:U,popupPlacement:G,builtinPlacements:Y,popupAlign:_,zIndex:H,mask:$,maskClosable:E,popupMotion:K,maskMotion:Z,arrow:je,getPopupContainer:T,getPopupClassNameFromAlign:I,id:fe,onEsc:Ge}));It(()=>{ae&&L&&xe&&!ne&&!ce&&(Fe?ae.show(Ne(x),Ke):ae.hide(C))},[Fe,xe]);const Ce=l.useRef(Fe);Ce.current=Fe;const Ye=ct(rt=>{il.flushSync(()=>{Fe!==rt&&(Ze(rt),h?.(rt),b?.(rt))})}),et=DT(),Le=(rt,wt=0)=>{if(m!==void 0){et(()=>{Ye(rt)},wt);return}if(ae&&L&&ne&&!ce){rt?ae.show(Ne(wt),Ke):ae.hide(wt);return}et(()=>{Ye(rt)},wt)};function Ge({top:rt}){rt&&Le(!1)}const[Re,Xe]=l.useState(!1);It(rt=>{(!rt||Fe)&&Xe(!0)},[Fe]);const[tt,at]=l.useState(null),[bt,ht]=l.useState(null),xt=rt=>{ht([rt.clientX,rt.clientY])},[ke,Qe,ze,Ie,Ue,Te,qe,Je,ot,ft,Lt]=AT(Fe,ge,P&&bt!==null?bt:xe,G,Y,_,k,le),[Tt,$t]=_A(c,d,f),dn=Tt.has("click"),Mn=$t.has("click")||$t.has("contextMenu"),lt=ct(()=>{Re||Lt()});BA(Fe,xe,ge,lt,()=>{Ce.current&&P&&Mn&&Le(!1)}),It(()=>{lt()},[bt,G]),It(()=>{Fe&&!Y?.[G]&<()},[JSON.stringify(_)]);const nt=l.useMemo(()=>{const rt=zT(Y,a,ft,P);return Q(rt,I?.(ft))},[ft,I,Y,a,P]);l.useImperativeHandle(r,()=>({nativeElement:ue.current,popupElement:ye.current,forceAlign:lt}));const[gt,Dt]=l.useState(0),[en,Vt]=l.useState(0),tn=()=>{if(F&&xe){const rt=xe.getBoundingClientRect();Dt(rt.width),Vt(rt.height)}},on=()=>{tn(),lt()},Pn=rt=>{Xe(!1),Lt(),y?.(rt),v?.(rt)},an=()=>new Promise(rt=>{tn(),at(()=>rt)});It(()=>{tt&&(Lt(),tt(),at(null))},[tt]);function Sr(rt,wt,lo,za,Fo){Me[rt]=(qr,...Aa)=>{(!Fo||!Fo())&&(za?.(qr),Le(wt,lo)),He[rt]?.(qr,...Aa)}}const zr=Tt.has("touch"),gn=$t.has("touch"),Qn=l.useRef(!1);(zr||gn)&&(Me.onTouchStart=(...rt)=>{Qn.current=!0,Ce.current&&gn?Le(!1):!Ce.current&&zr&&Le(!0),He.onTouchStart?.(...rt)}),(dn||Mn)&&(Me.onClick=(rt,...wt)=>{Ce.current&&Mn?Le(!1):!Ce.current&&dn&&(xt(rt),Le(!0)),He.onClick?.(rt,...wt),Qn.current=!1});const Or=LA(Fe,Mn||gn,xe,ge,$,E,Pe,Le),vt=Tt.has("hover"),Rn=$t.has("hover");let zn,Cr;const xr=()=>Qn.current;if(vt){const rt=wt=>{xt(wt)};Sr("onMouseEnter",!0,x,rt,xr),Sr("onPointerEnter",!0,x,rt,xr),zn=wt=>{(Fe||Re)&&ge?.contains(wt.target)&&Le(!0,x)},P&&(Me.onMouseMove=wt=>{He.onMouseMove?.(wt)})}Rn&&(Sr("onMouseLeave",!1,C,void 0,xr),Sr("onPointerLeave",!1,C,void 0,xr),Cr=()=>{Le(!1,C)}),Tt.has("focus")&&Sr("onFocus",!0,w),$t.has("focus")&&Sr("onBlur",!1,R),Tt.has("contextMenu")&&(Me.onContextMenu=(rt,...wt)=>{Ce.current&&$t.has("contextMenu")?Le(!1):(xt(rt),Le(!0)),rt.preventDefault(),He.onContextMenu?.(rt,...wt)});const Zn=l.useRef(!1);Zn.current||=N||Fe||Re;const Dn={...He,...Me},Eo={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(rt=>{re[rt]&&(Eo[rt]=(...wt)=>{Dn[rt]?.(...wt),re[rt](...wt)})});const Mo={x:Te,y:qe};b4(Fe,xe,on);const Lo=ea(ve,bi(_e)),Vo=l.cloneElement(_e,{...Dn,...Eo,ref:Lo});return l.createElement(l.Fragment,null,Vo,Zn.current&&(!ae||!L)&&l.createElement(Ym.Provider,{value:me},l.createElement(IT,{portal:e,ref:Ae,prefixCls:a,popup:D,className:Q(j,!le&&nt),style:U,target:xe,onMouseEnter:zn,onMouseLeave:Cr,onPointerEnter:zn,zIndex:H,open:Fe,keepDom:Re,fresh:z,onClick:A,onPointerDownCapture:Or,mask:$,motion:K,maskMotion:Z,onVisibleChanged:Pn,onPrepare:an,forceRender:N,autoDestroy:ie,getPopupContainer:T,onEsc:Ge,align:ft,arrow:je,arrowPos:Mo,ready:ke,offsetX:Qe,offsetY:ze,offsetR:Ie,offsetB:Ue,onAlign:lt,stretch:F,targetWidth:gt/Je,targetHeight:en/ot,mobile:J})))})}const pd=WA(fd);function jT(e){return e&&oe.isValidElement(e)&&e.type===oe.Fragment}const _T=(e,t,n)=>oe.isValidElement(e)?oe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function or(e,t){return _T(e,e,t)}const YA=({children:e})=>{const{getPrefixCls:t}=oe.useContext(dt),n=t();return oe.isValidElement(e)?oe.createElement(vr,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:a})=>or(e,s=>({className:Q(s.className,a),style:{...s.style,...r}}))):e},Yf=[null,null];function UA(e){if(Yf[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Yf[0]=e,Yf[1]=t}return Yf[1]}const HT=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:a,popup:s}=n,c=typeof s=="function"?s():s,d=UA(a);return{...n,getPopupContainer:null,arrow:!1,popup:oe.createElement(YA,{key:r},c),builtinPlacements:d}};return oe.createElement(kA,{postTriggerProps:t},e)},Wr=l.createContext(!1),BT=({children:e,disabled:t})=>{const n=l.useContext(Wr);return l.createElement(Wr.Provider,{value:t??n},e)},Rs=l.createContext(void 0),qA=({children:e,size:t})=>{const n=l.useContext(Rs);return l.createElement(Rs.Provider,{value:t||n},e)};function GA(){const e=l.useContext(Wr),t=l.useContext(Rs);return{componentDisabled:e,componentSize:t}}function XA(e,t,n){const r=e||{},a=r.inherit===!1||!t?{...km,hashed:t?.hashed??km.hashed,cssVar:t?.cssVar}:t,s=l.useId();return ld(()=>{if(!e)return t;const c={...a.components};Object.keys(e.components||{}).forEach(m=>{c[m]={...c[m],...e.components[m]}});const d=`css-var-${s.replace(/:/g,"")}`,f={prefix:n?.prefixCls,...a.cssVar,...r.cssVar,key:r.cssVar?.key||d};return{...a,...r,token:{...a.token,...r.token},components:c,cssVar:f}},[r,a],(c,d)=>c.some((f,m)=>{const g=d[m];return!Su(f,g,!0)}))}const RE=l.createContext(!0);function KA(e){const t=l.useContext(RE),{children:n}=e,[,r]=Yr(),{motion:a}=r,s=l.useRef(!1);return s.current||(s.current=t!==a),s.current?l.createElement(RE.Provider,{value:a},l.createElement(w5,{motion:a},n)):n}const QA=()=>null,ZA=({iconPrefixCls:e,csp:t})=>(a5(e,t),null),JA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Um,LT,VT,FT;function wy(){return Um||yu}function eD(){return LT||xp}const tD=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Um=t),n!==void 0&&(LT=n),"holderRender"in e&&(FT=a),r&&(VT=r)},kT=()=>({getPrefixCls:(e,t)=>t||(e?`${wy()}-${e}`:wy()),getIconPrefixCls:eD,getRootPrefixCls:()=>Um||wy(),getTheme:()=>VT,holderRender:FT}),nD=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,affix:s,anchor:c,app:d,form:f,locale:m,componentSize:g,direction:h,space:y,splitter:b,virtual:v,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,popupOverflow:w,legacyLocale:R,parentContext:$,iconPrefixCls:E,theme:T,componentDisabled:N,segmented:O,statistic:D,spin:j,calendar:B,carousel:V,cascader:U,collapse:G,typography:Y,checkbox:_,descriptions:H,divider:F,drawer:I,skeleton:z,steps:L,image:P,layout:A,list:k,mentions:q,modal:K,progress:Z,result:J,slider:re,breadcrumb:ie,masonry:ne,menu:le,pagination:se,input:ce,textArea:me,otp:ae,empty:fe,badge:ge,radio:he,rate:ye,ribbon:Ae,switch:xe,transfer:Se,avatar:ue,message:ve,tag:Me,table:Pe,card:je,cardMeta:Be,tabs:Ze,timeline:Fe,timePicker:_e,upload:He,notification:Ke,tree:Ne,colorPicker:Ce,datePicker:Ye,rangePicker:et,flex:Le,wave:Ge,dropdown:Re,warning:Xe,tour:tt,tooltip:at,popover:bt,popconfirm:ht,qrcode:xt,floatButton:ke,floatButtonGroup:Qe,variant:ze,inputNumber:Ie,treeSelect:Ue,watermark:Te}=e,qe=l.useCallback((gt,Dt)=>{const{prefixCls:en}=e;if(Dt)return Dt;const Vt=en||$.getPrefixCls("");return gt?`${Vt}-${gt}`:Vt},[$.getPrefixCls,e.prefixCls]),Je=E||$.iconPrefixCls||xp,ot=n||$.csp,ft=XA(T,$.theme,{prefixCls:qe("")}),Lt={csp:ot,autoInsertSpaceInButton:r,alert:a,affix:s,anchor:c,app:d,locale:m||R,direction:h,space:y,splitter:b,virtual:v,popupMatchSelectWidth:C??x,popupOverflow:w,getPrefixCls:qe,iconPrefixCls:Je,theme:ft,segmented:O,statistic:D,spin:j,calendar:B,carousel:V,cascader:U,collapse:G,typography:Y,checkbox:_,descriptions:H,divider:F,drawer:I,skeleton:z,steps:L,image:P,input:ce,textArea:me,otp:ae,layout:A,list:k,mentions:q,modal:K,progress:Z,result:J,slider:re,breadcrumb:ie,masonry:ne,menu:le,pagination:se,empty:fe,badge:ge,radio:he,rate:ye,ribbon:Ae,switch:xe,transfer:Se,avatar:ue,message:ve,tag:Me,table:Pe,card:je,cardMeta:Be,tabs:Ze,timeline:Fe,timePicker:_e,upload:He,notification:Ke,tree:Ne,colorPicker:Ce,datePicker:Ye,rangePicker:et,flex:Le,wave:Ge,dropdown:Re,warning:Xe,tour:tt,tooltip:at,popover:bt,popconfirm:ht,qrcode:xt,floatButton:ke,floatButtonGroup:Qe,variant:ze,inputNumber:Ie,treeSelect:Ue,watermark:Te},Tt={...$};Object.keys(Lt).forEach(gt=>{Lt[gt]!==void 0&&(Tt[gt]=Lt[gt])}),JA.forEach(gt=>{const Dt=e[gt];Dt&&(Tt[gt]=Dt)}),typeof r<"u"&&(Tt.button={autoInsertSpace:r,...Tt.button});const $t=ld(()=>Tt,Tt,(gt,Dt)=>{const en=Object.keys(gt),Vt=Object.keys(Dt);return en.length!==Vt.length||en.some(tn=>gt[tn]!==Dt[tn])}),{layer:dn}=l.useContext(sd),Mn=l.useMemo(()=>({prefixCls:Je,csp:ot,layer:dn?"antd":void 0}),[Je,ot,dn]);let lt=l.createElement(l.Fragment,null,l.createElement(ZA,{iconPrefixCls:Je,csp:ot}),l.createElement(QA,{dropdownMatchSelectWidth:x}),t);const Wt=l.useMemo(()=>xa(Ra.Form?.defaultValidateMessages||{},$t.locale?.Form?.defaultValidateMessages||{},$t.form?.validateMessages||{},f?.validateMessages||{}),[$t,f?.validateMessages]);Object.keys(Wt).length>0&&(lt=l.createElement(SA.Provider,{value:Wt},lt)),m&&(lt=l.createElement(eA,{locale:m,_ANT_MARK__:J5},lt)),lt=l.createElement(_S.Provider,{value:Mn},lt),g&&(lt=l.createElement(qA,{size:g},lt)),lt=l.createElement(KA,null,lt),at?.unique&&(lt=l.createElement(HT,null,lt));const nt=l.useMemo(()=>{const{algorithm:gt,token:Dt,components:en,cssVar:Vt,...tn}=ft||{},on=gt&&(!Array.isArray(gt)||gt.length>0)?Eb(gt):Q4,Pn={};Object.entries(en||{}).forEach(([Sr,zr])=>{const gn={...zr};"algorithm"in gn&&(gn.algorithm===!0?gn.theme=on:(Array.isArray(gn.algorithm)||typeof gn.algorithm=="function")&&(gn.theme=Eb(gn.algorithm)),delete gn.algorithm),Pn[Sr]=gn});const an={...wu,...Dt};return{...tn,theme:on,token:an,components:Pn,override:{override:an,...Pn},cssVar:Vt}},[ft]);return T&&(lt=l.createElement(Z4.Provider,{value:nt},lt)),$t.warning&&(lt=l.createElement(gz.Provider,{value:$t.warning},lt)),N!==void 0&&(lt=l.createElement(BT,{disabled:N},lt)),l.createElement(dt.Provider,{value:$t},lt)},ta=e=>{const t=l.useContext(dt),n=l.useContext(LS);return l.createElement(nD,{parentContext:t,legacyLocale:n,...e})};ta.ConfigContext=dt;ta.SizeContext=Rs;ta.config=tD;ta.useConfig=GA;Object.defineProperty(ta,"SizeContext",{get:()=>Rs});const it={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 qm(){return qm=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},qm.apply(this,arguments)}const WT=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,duration:s=4.5,showProgress:c,pauseOnHover:d=!0,eventKey:f,content:m,closable:g,props:h,onClick:y,onNoticeClose:b,times:v,hovering:x}=e,[C,w]=l.useState(!1),[R,$]=l.useState(0),[E,T]=l.useState(0),N=x||C,O=typeof s=="number"?s:0,D=O>0&&c,j=()=>{b(f)},B=_=>{(_.key==="Enter"||_.code==="Enter"||_.keyCode===it.ENTER)&&j()};l.useEffect(()=>{if(!N&&O>0){const _=Date.now()-E,H=setTimeout(()=>{j()},O*1e3-E);return()=>{d&&clearTimeout(H),T(Date.now()-_)}}},[O,N,v]),l.useEffect(()=>{if(!N&&D&&(d||E===0)){const _=performance.now();let H;const F=()=>{cancelAnimationFrame(H),H=requestAnimationFrame(I=>{const z=I+E-_,L=Math.min(z/(O*1e3),1);$(L*100),L<1&&F()})};return F(),()=>{d&&cancelAnimationFrame(H)}}},[O,E,N,D,v]);const V=l.useMemo(()=>typeof g=="object"&&g!==null?g:{},[g]),U=An(V,!0),G=100-(!R||R<0?0:R>100?100:R),Y=`${n}-notice`;return l.createElement("div",qm({},h,{ref:t,className:Q(Y,a,{[`${Y}-closable`]:g}),style:r,onMouseEnter:_=>{w(!0),h?.onMouseEnter?.(_)},onMouseLeave:_=>{w(!1),h?.onMouseLeave?.(_)},onClick:y}),l.createElement("div",{className:`${Y}-content`},m),g&&l.createElement("button",qm({className:`${Y}-close`,onKeyDown:B,"aria-label":"Close"},U,{onClick:_=>{_.preventDefault(),_.stopPropagation(),j()}}),V.closeIcon??"x"),D&&l.createElement("progress",{className:`${Y}-progress`,max:"100",value:G},G+"%"))}),YT=oe.createContext({}),rD=({children:e,classNames:t})=>oe.createElement(YT.Provider,{value:{classNames:t}},e),TE=8,OE=3,NE=16,oD=e=>{const t={offset:TE,threshold:OE,gap:NE};return e&&typeof e=="object"&&(t.offset=e.offset??TE,t.threshold=e.threshold??OE,t.gap=e.gap??NE),[!!e,t]};function Gm(){return Gm=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},Gm.apply(this,arguments)}const aD=e=>{const{configList:t,placement:n,prefixCls:r,className:a,style:s,motion:c,onAllNoticeRemoved:d,onNoticeClose:f,stack:m}=e,{classNames:g}=l.useContext(YT),h=l.useRef({}),[y,b]=l.useState(null),[v,x]=l.useState([]),C=t.map(O=>({config:O,key:String(O.key)})),[w,{offset:R,threshold:$,gap:E}]=oD(m),T=w&&(v.length>0||C.length<=$),N=typeof c=="function"?c(n):c;return l.useEffect(()=>{w&&v.length>1&&x(O=>O.filter(D=>C.some(({key:j})=>D===j)))},[v,C,w]),l.useEffect(()=>{w&&h.current[C[C.length-1]?.key]&&b(h.current[C[C.length-1]?.key])},[C,w]),oe.createElement(V5,Gm({key:n,className:Q(r,`${r}-${n}`,g?.list,a,{[`${r}-stack`]:!!w,[`${r}-stack-expanded`]:T}),style:s,keys:C,motionAppear:!0},N,{onAllRemoved:()=>{d(n)}}),({config:O,className:D,style:j,index:B},V)=>{const{key:U,times:G}=O,Y=String(U),{className:_,style:H,classNames:F,styles:I,...z}=O,L=C.findIndex(A=>A.key===Y),P={};if(w){const A=C.length-1-(L>-1?L:B-1),k=n==="top"||n==="bottom"?"-50%":"0";if(A>0){P.height=T?h.current[Y]?.offsetHeight:y?.offsetHeight;let q=0;for(let J=0;J<A;J++)q+=h.current[C[C.length-1-J].key]?.offsetHeight+E;const K=(T?q:A*R)*(n.startsWith("top")?1:-1),Z=!T&&y?.offsetWidth&&h.current[Y]?.offsetWidth?(y?.offsetWidth-R*2*(A<3?A:3))/h.current[Y]?.offsetWidth:1;P.transform=`translate3d(${k}, ${K}px, 0) scaleX(${Z})`}else P.transform=`translate3d(${k}, 0, 0)`}return oe.createElement("div",{ref:V,className:Q(`${r}-notice-wrapper`,D,F?.wrapper),style:{...j,...P,...I?.wrapper},onMouseEnter:()=>x(A=>A.includes(Y)?A:[...A,Y]),onMouseLeave:()=>x(A=>A.filter(k=>k!==Y))},oe.createElement(WT,Gm({},z,{ref:A=>{L>-1?h.current[Y]=A:delete h.current[Y]},prefixCls:r,classNames:F,styles:I,className:Q(_,g?.notice),style:H,times:G,key:U,eventKey:U,onNoticeClose:f,hovering:w&&v.length>0})))})},iD=l.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:a,maxCount:s,className:c,style:d,onAllRemoved:f,stack:m,renderNotifications:g}=e,[h,y]=l.useState([]),b=$=>{const E=h.find(D=>D.key===$),T=E?.closable,N=T&&typeof T=="object"?T:{},{onClose:O}=N;O?.(),E?.onClose?.(),y(D=>D.filter(j=>j.key!==$))};l.useImperativeHandle(t,()=>({open:$=>{y(E=>{let T=[...E];const N=T.findIndex(D=>D.key===$.key),O={...$};return N>=0?(O.times=(E[N]?.times||0)+1,T[N]=O):(O.times=0,T.push(O)),s>0&&T.length>s&&(T=T.slice(-s)),T})},close:$=>{b($)},destroy:()=>{y([])}}));const[v,x]=l.useState({});l.useEffect(()=>{const $={};h.forEach(E=>{const{placement:T="topRight"}=E;T&&($[T]=$[T]||[],$[T].push(E))}),Object.keys(v).forEach(E=>{$[E]=$[E]||[]}),x($)},[h]);const C=$=>{x(E=>{const T={...E};return(T[$]||[]).length||delete T[$],T})},w=l.useRef(!1);if(l.useEffect(()=>{Object.keys(v).length>0?w.current=!0:w.current&&(f?.(),w.current=!1)},[v]),!r)return null;const R=Object.keys(v);return il.createPortal(l.createElement(l.Fragment,null,R.map($=>{const E=v[$],T=l.createElement(aD,{key:$,configList:E,placement:$,prefixCls:n,className:c?.($),style:d?.($),motion:a,onNoticeClose:b,onAllNoticeRemoved:C,stack:m});return g?g(T,{prefixCls:n,key:$}):T})),r)}),lD=()=>document.body;let IE=0;function sD(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const a=n[r];a!==void 0&&(t[r]=a)})}),t}function cD(e={}){const{getContainer:t=lD,motion:n,prefixCls:r,maxCount:a,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:m,...g}=e,[h,y]=l.useState(),b=l.useRef(),v=l.createElement(iD,{container:h,ref:b,prefixCls:r,motion:n,maxCount:a,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:m}),[x,C]=l.useState([]),w=ct($=>{const E=sD(g,$);(E.key===null||E.key===void 0)&&(E.key=`rc-notification-${IE}`,IE+=1),C(T=>[...T,{type:"open",config:E}])}),R=l.useMemo(()=>({open:w,close:$=>{C(E=>[...E,{type:"close",key:$}])},destroy:()=>{C($=>[...$,{type:"destroy"}])}}),[]);return l.useEffect(()=>{y(t())}),l.useEffect(()=>{if(b.current&&x.length){x.forEach(T=>{switch(T.type){case"open":b.current.open(T.config);break;case"close":b.current.close(T.key);break;case"destroy":b.current.destroy();break}});let $,E;C(T=>(($!==T||!E)&&($=T,E=T.filter(N=>!x.includes(N))),E))}},[x]),[R,v]}var uD={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 sv(){return sv=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},sv.apply(this,arguments)}const dD=(e,t)=>l.createElement(pt,sv({},e,{ref:t,icon:uD})),Ip=l.forwardRef(dD),fD=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:s,colorError:c,colorWarning:d,colorInfo:f,fontSizeLG:m,motionEaseInOutCirc:g,motionDurationSlow:h,marginXS:y,paddingXS:b,borderRadiusLG:v,zIndexPopup:x,contentPadding:C,contentBg:w}=e,R=`${t}-notice`,$=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),E=new At("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:m},[`${R}-content`]:{display:"inline-block",padding:C,background:w,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:d},[`${t}-info > ${n},
|
|
131
|
+
${t}-loading > ${n}`]:{color:f}};return[{[t]:{...Jt(e),color:a,position:"fixed",top:y,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
132
|
+
${t}-move-up-appear,
|
|
133
|
+
${t}-move-up-enter
|
|
134
|
+
`]:{animationName:$,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`
|
|
135
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
136
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
137
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${R}-wrapper`]:{...T}}},{[`${t}-notice-pure-panel`]:{...T,padding:0,textAlign:"start"}}]},mD=e=>({zIndexPopup:e.zIndexPopupBase+xT+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),UT=Pt("Message",e=>{const t=Nt(e,{height:150});return fD(t)},mD),pD={info:l.createElement(HS,null),success:l.createElement(Op,null),error:l.createElement(_s,null),warning:l.createElement(Hs,null),loading:l.createElement(Ip,null)},qT=e=>{const{prefixCls:t,type:n,icon:r,children:a,classNames:s,styles:c}=e,d=r||n&&pD[n],f=or(d,m=>{const g={...m?.style,...c?.icon};return{className:Q(m.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},a))},gD=e=>{const{prefixCls:t,className:n,style:r,type:a,icon:s,content:c,classNames:d,styles:f,...m}=e,{getPrefixCls:g,className:h,style:y,classNames:b,styles:v}=Rt("message"),x=t||g("message"),C=ir(x),[w,R]=UT(x,C),[$,E]=Bt([b,d],[v,f],{props:e});return l.createElement(WT,{...m,prefixCls:x,className:Q(h,$.root,n,w,`${x}-notice-pure-panel`,R,C),style:{...E.root,...y,...r},eventKey:"pure",duration:null,content:l.createElement(qT,{prefixCls:x,type:a,icon:s,classNames:$,styles:E},c)})};function hD(e,t){return{motionName:t??`${e}-move-up`}}function kS(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t?.()};return r.then=(a,s)=>n.then(a,s),r.promise=n,r}const yD=8,bD=3,vD=({children:e,prefixCls:t})=>{const n=ir(t),[r,a]=UT(t,n);return l.createElement(rD,{classNames:{list:Q(r,a,n)}},e)},SD=(e,{prefixCls:t,key:n})=>l.createElement(vD,{prefixCls:t,key:n},e),CD=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:s,duration:c=bD,rtl:d,transitionName:f,onAllRemoved:m,pauseOnHover:g=!0}=e,{getPrefixCls:h,direction:y,getPopupContainer:b}=Rt("message"),{message:v}=l.useContext(dt),x=r||h("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??yD}),w=()=>Q({[`${x}-rtl`]:d??y==="rtl"}),R=()=>hD(x,f),[$,E]=Bt([e?.classNames,v?.classNames],[e?.styles,v?.styles],{props:e}),[T,N]=cD({prefixCls:x,style:C,className:w,motion:R,closable:!1,duration:c,getContainer:()=>a?.()||b?.()||document.body,maxCount:s,onAllRemoved:m,renderNotifications:SD,pauseOnHover:g});return l.useImperativeHandle(t,()=>({...T,prefixCls:x,message:v,classNames:$,styles:E})),N});let PE=0;function GT(e){const t=l.useRef(null);return[l.useMemo(()=>{const r=f=>{t.current?.close(f)},a=f=>{if(!t.current){const P=()=>{};return P.then=()=>{},P}const{open:m,prefixCls:g,message:h,classNames:y,styles:b}=t.current,v=h?.className||{},x=h?.style||{},C=h?.classNames||{},w=h?.styles||{},R=`${g}-notice`,{content:$,icon:E,type:T,key:N,className:O,style:D,onClose:j,classNames:B={},styles:V={},...U}=f;let G=N;Mr(G)||(PE+=1,G=`antd-message-${PE}`);const Y={...e,...f},_=gs(C,{props:Y}),H=gs(B,{props:Y}),F=gs(w,{props:Y}),I=gs(V,{props:Y}),z=FS(void 0,_,H,y),L=CT(F,I,b);return kS(P=>(m({...U,key:G,content:l.createElement(qT,{prefixCls:g,type:T,icon:E,classNames:z,styles:L},$),placement:"top",className:Q({[`${R}-${T}`]:T},O,v,z.root),style:{...L.root,...x,...D},onClose:()=>{j?.(),P()}}),()=>{r(G)}))},c={open:a,destroy:f=>{f!==void 0?r(f):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const m=(g,h,y)=>{let b;g&&typeof g=="object"&&"content"in g?b=g:b={content:g};let v,x;typeof h=="function"?x=h:(v=h,x=y);const C={onClose:x,duration:v,...b,type:f};return a(C)};c[f]=m}),c},[]),l.createElement(CD,{key:"message-holder",...e,ref:t})]}function xD(e){return GT(e)}const Xm="__rc_react_root__";function WS(e,t){const n=t[Xm]||d4.createRoot(t);n.render(e),t[Xm]=n}async function XT(e){return Promise.resolve().then(()=>{e[Xm]?.unmount(),delete e[Xm]})}const Ey=()=>({height:0,opacity:0}),zE=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},$D=e=>({height:e?e.offsetHeight:0}),My=(e,t)=>t?.deadline===!0||t.propertyName==="height",KT=(e=yu)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ey,onEnterStart:Ey,onAppearActive:zE,onEnterActive:zE,onLeaveStart:$D,onLeaveActive:Ey,onAppearEnd:My,onEnterEnd:My,onLeaveEnd:My,motionDeadline:500}),Zo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,wD=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:a,motionEaseOutCirc:s,antCls:c}=e,[,d]=Ut(c,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:d("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(f=>`${f} ${s}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(f=>`${f} ${r} ${a}`).join(",")}}}}},ED=o5("Wave",wD),gd=`${yu}-wave-target`;function AE(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 MD(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:a,backgroundColor:s}=n;return t&&AE(n[t])?n[t]:[r,a,s].find(AE)??null}function Ry(e){return Number.isNaN(e)?0:e}const RD=e=>{const{className:t,target:n,component:r,colorSource:a}=e,s=l.useRef(null),{getPrefixCls:c}=l.useContext(dt),d=c(),[f]=Ut(d,"wave"),[m,g]=l.useState(null),[h,y]=l.useState([]),[b,v]=l.useState(0),[x,C]=l.useState(0),[w,R]=l.useState(0),[$,E]=l.useState(0),[T,N]=l.useState(!1),O={left:b,top:x,width:w,height:$,borderRadius:h.map(B=>`${B}px`).join(" ")};m&&(O[f("color")]=m);function D(){const B=getComputedStyle(n);g(MD(n,a));const V=B.position==="static",{borderLeftWidth:U,borderTopWidth:G}=B;v(V?n.offsetLeft:Ry(-Number.parseFloat(U))),C(V?n.offsetTop:Ry(-Number.parseFloat(G))),R(n.offsetWidth),E(n.offsetHeight);const{borderTopLeftRadius:Y,borderTopRightRadius:_,borderBottomLeftRadius:H,borderBottomRightRadius:F}=B;y([Y,_,F,H].map(I=>Ry(Number.parseFloat(I))))}if(l.useEffect(()=>{if(n){const B=Ht(()=>{D(),N(!0)});let V;return typeof ResizeObserver<"u"&&(V=new ResizeObserver(D),V.observe(n)),()=>{Ht.cancel(B),V?.disconnect()}}},[n]),!T)return null;const j=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(gd);return l.createElement(vr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(B,V)=>{if(V.deadline||V.propertyName==="opacity"){const U=s.current?.parentElement;XT(U).then(()=>{U?.remove()})}return!1}},({className:B},V)=>l.createElement("div",{ref:mr(s,V),className:Q(t,B,{"wave-quick":j}),style:O}))},TD=(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),WS(l.createElement(RD,{...t,target:e}),r)},OD=(e,t,n,r)=>{const{wave:a}=l.useContext(dt),[,s,c]=Yr(),d=ct(g=>{const h=e.current;if(a?.disabled||!h)return;const y=h.querySelector(`.${gd}`)||h,{showEffect:b}=a||{};(b||TD)(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)})}},hd=e=>{const{children:t,disabled:n,component:r,colorSource:a}=e,{getPrefixCls:s}=l.useContext(dt),c=l.useRef(null),d=s("wave"),f=ED(d),m=OD(c,Q(d,f),r,a);if(oe.useEffect(()=>{const h=c.current;if(!h||h.nodeType!==window.Node.ELEMENT_NODE||n)return;const y=b=>{!Np(b.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")||m(b)};return h.addEventListener("click",y,!0),()=>{h.removeEventListener("click",y,!0)}},[n]),!oe.isValidElement(t))return t??null;const g=ul(t)?mr(bi(t),c):c;return or(t,{ref:g})},pr=e=>{const t=oe.useContext(Rs);return oe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},ND=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},ID=Pt(["Space","Compact"],e=>[ND(e)],()=>({}),{resetStyle:!1}),Pp=l.createContext(null),Ia=(e,t)=>{const n=l.useContext(Pp),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:s,isLastItem:c}=n,d=a==="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}},PD=e=>{const{children:t}=e;return l.createElement(Pp.Provider,{value:null},t)},zD=e=>{const{children:t,...n}=e;return l.createElement(Pp.Provider,{value:l.useMemo(()=>n,[n])},t)},QT=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{size:r,direction:a,orientation:s,block:c,prefixCls:d,className:f,rootClassName:m,children:g,vertical:h,...y}=e,[b,v]=ud(s,h,a),x=pr(N=>r??N),C=t("space-compact",d),[w]=ID(C),R=Q(C,w,{[`${C}-rtl`]:n==="rtl",[`${C}-block`]:c,[`${C}-vertical`]:v},f,m),$=l.useContext(Pp),E=fr(g),T=l.useMemo(()=>E.map((N,O)=>{const D=N?.key||`${C}-item-${O}`;return l.createElement(zD,{key:D,compactSize:x,compactDirection:b,isFirstItem:O===0&&(!$||$?.isFirstItem),isLastItem:O===E.length-1&&(!$||$?.isLastItem)},N)}),[E,$,b,x,C]);return E.length===0?null:l.createElement("div",{className:R,...y},T)},ZT=l.createContext(void 0),AD=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,size:a,className:s,...c}=e,d=t("btn-group",r),[,,f]=Yr(),m=l.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),g=Q(d,{[`${d}-${m}`]:m,[`${d}-rtl`]:n==="rtl"},s,f);return l.createElement(ZT.Provider,{value:a},l.createElement("div",{...c,className:g}))},DE=/^[\u4E00-\u9FA5]{2}$/,cv=DE.test.bind(DE);function YS(e){return e==="danger"?{danger:!0}:{type:e}}function jE(e){return typeof e=="string"}function Ty(e){return e==="text"||e==="link"}function DD(e,t,n,r){if(!Mr(e)||e==="")return;const a=t?" ":"";return typeof e!="string"&&typeof e!="number"&&jE(e.type)&&cv(e.props.children)?or(e,s=>{const c=Q(s.className,r)||void 0,d={...n,...s.style};return{...s,children:s.children.split("").join(a),className:c,style:d}}):jE(e)?oe.createElement("span",{className:r,style:n},cv(e)?e.split("").join(a):e):jT(e)?oe.createElement("span",{className:r,style:n},e):or(e,s=>({...s,className:Q(s.className,r)||void 0,style:{...s.style,...n}}))}function jD(e,t,n,r){let a=!1;const s=[];return oe.Children.forEach(e,c=>{const d=typeof c,f=d==="string"||d==="number";if(a&&f){const m=s.length-1,g=s[m];s[m]=`${g}${c}`}else s.push(c);a=f}),oe.Children.map(s,c=>DD(c,t,n,r))}["default","primary","danger"].concat($n(Ma));const JT=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:s}=e,c=Q(`${s}-icon`,n);return oe.createElement("span",{ref:t,className:c,style:r},a)}),_E=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:s}=e,c=Q(`${n}-loading-icon`,r);return oe.createElement(JT,{prefixCls:n,className:c,style:a,ref:t},oe.createElement(Ip,{className:s}))}),Oy=()=>({width:0,opacity:0,transform:"scale(0)"}),Ny=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),_D=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:s,mount:c}=e,d=!!n;return r?oe.createElement(_E,{prefixCls:t,className:a,style:s}):oe.createElement(vr,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Oy,onAppearActive:Ny,onEnterStart:Oy,onEnterActive:Ny,onLeaveStart:Ny,onLeaveActive:Oy},({className:f,style:m},g)=>{const h={...s,...m};return oe.createElement(_E,{prefixCls:t,className:Q(a,f),style:h,ref:g})})},HE=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),HD=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,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}},HE(`${t}-primary`,a),HE(`${t}-danger`,s)]}},Iy=e=>Math.round(Number(e||0)),BD=e=>{if(e instanceof nn)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 Tu extends nn{constructor(t){super(BD(t))}toHsbString(){const t=this.toHsb(),n=Iy(t.s*100),r=Iy(t.b*100),a=Iy(t.h),s=t.a,c=`hsb(${a}, ${n}%, ${r}%)`,d=`hsba(${a}, ${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 LD=e=>e instanceof Tu?e:new Tu(e);LD("#1677ff");const VD=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",FD=(e,t)=>e?VD(e,t):"";let Km=(function(){function e(t){if(dl(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:a})=>({color:new e(r),percent:a})),this.metaColor=new Tu(this.colors[0].color.metaColor)):this.metaColor=new Tu(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return fl(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return FD(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const s=n.colors[a];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();var kD={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 uv(){return uv=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},uv.apply(this,arguments)}const WD=(e,t)=>l.createElement(pt,uv({},e,{ref:t,icon:kD})),Ts=l.forwardRef(WD);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 YD=oe.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:a,style:s,children:c,isActive:d,role:f,classNames:m,styles:g}=e,[h,y]=oe.useState(d||r);return oe.useEffect(()=>{(r||d)&&y(!0)},[r,d]),h?oe.createElement("div",{ref:t,className:Q(`${n}-panel`,{[`${n}-panel-active`]:d,[`${n}-panel-inactive`]:!d},a),style:s,role:f},oe.createElement("div",{className:Q(`${n}-body`,m?.body),style:g?.body},c)):null}),eO=oe.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:a,onItemClick:s,forceRender:c,className:d,classNames:f={},styles:m={},prefixCls:g,collapsible:h,accordion:y,panelKey:b,extra:v,header:x,expandIcon:C,openMotion:w,destroyOnHidden:R,children:$,...E}=e,T=h==="disabled",N=v!=null&&typeof v!="boolean",O={onClick:()=>{s?.(b)},onKeyDown:G=>{(G.key==="Enter"||G.keyCode===it.ENTER||G.which===it.ENTER)&&s?.(b)},role:y?"tab":"button","aria-expanded":a,"aria-disabled":T,tabIndex:T?-1:0},D=typeof C=="function"?C(e):oe.createElement("i",{className:"arrow"}),j=D&&oe.createElement("div",Xn({className:Q(`${g}-expand-icon`,f?.icon),style:m?.icon},["header","icon"].includes(h)?O:{}),D),B=Q(`${g}-item`,{[`${g}-item-active`]:a,[`${g}-item-disabled`]:T},d),U={className:Q(r,`${g}-header`,{[`${g}-collapsible-${h}`]:!!h},f?.header),style:m?.header,...["header","icon"].includes(h)?{}:O};return oe.createElement("div",Xn({},E,{ref:t,className:B}),oe.createElement("div",U,n&&j,oe.createElement("span",Xn({className:Q(`${g}-title`,f?.title),style:m?.title},h==="header"?O:{}),x),N&&oe.createElement("div",{className:`${g}-extra`},v)),oe.createElement(vr,Xn({visible:a,leavedClassName:`${g}-panel-hidden`},w,{forceRender:c,removeOnLeave:R}),({className:G,style:Y},_)=>oe.createElement(YD,{ref:_,prefixCls:g,className:G,classNames:f,style:Y,styles:m,isActive:a,forceRender:c,role:y?"tabpanel":void 0},$)))});function tO(e,t,n){if(!e||!t)return e||t;const r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),a={};return r.forEach(s=>{a[s]=n(e[s],t[s])}),a}function UD(e,t){return tO(e,t,(n,r)=>Q(n,r))}function qD(e,t){return tO(e,t,(n,r)=>({...n,...r}))}const GD=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:a,destroyOnHidden:s,onItemClick:c,activeKey:d,openMotion:f,expandIcon:m,classNames:g,styles:h}=t;return e.map((y,b)=>{const{children:v,label:x,key:C,collapsible:w,onItemClick:R,destroyOnHidden:$,classNames:E,styles:T,...N}=y,O=String(C??b),D=w??a,j=$??s,B=U=>{D!=="disabled"&&(c(U),R?.(U))};let V=!1;return r?V=d[0]===O:V=d.indexOf(O)>-1,oe.createElement(eO,Xn({},N,{classNames:UD(g,E),styles:qD(h,T),prefixCls:n,key:O,panelKey:O,isActive:V,accordion:r,openMotion:f,expandIcon:m,header:x,collapsible:D,onItemClick:B,destroyOnHidden:j}),v)})},XD=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:a,collapsible:s,destroyOnHidden:c,onItemClick:d,activeKey:f,openMotion:m,expandIcon:g,classNames:h,styles:y}=n,b=e.key||String(t),{header:v,headerClass:x,destroyOnHidden:C,collapsible:w,onItemClick:R}=e.props;let $=!1;a?$=f[0]===b:$=f.indexOf(b)>-1;const E=w??s,T=O=>{E!=="disabled"&&(d(O),R?.(O))},N={key:b,panelKey:b,header:v,headerClass:x,classNames:h,styles:y,isActive:$,prefixCls:r,destroyOnHidden:C??c,openMotion:m,accordion:a,children:e.props.children,onItemClick:T,expandIcon:g,collapsible:E};return typeof e.type=="string"?e:(Object.keys(N).forEach(O=>{typeof N[O]>"u"&&delete N[O]}),oe.cloneElement(e,N))};function KD(e,t,n){return Array.isArray(e)?GD(e,n):fr(t).map((r,a)=>XD(r,a,n))}function BE(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 QD=oe.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:a,accordion:s,className:c,children:d,collapsible:f,openMotion:m,expandIcon:g,activeKey:h,defaultActiveKey:y,onChange:b,items:v,classNames:x,styles:C}=e,w=Q(n,c),[R,$]=Yt(y,h),E=BE(R),T=ct(D=>{const j=BE(D);$(j),b?.(j)}),N=D=>{T(s?E[0]===D?[]:[D]:E.includes(D)?E.filter(j=>j!==D):[...E,D])};rr(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const O=KD(v,d,{prefixCls:n,accordion:s,openMotion:m,expandIcon:g,collapsible:f,destroyOnHidden:r,onItemClick:N,activeKey:E,classNames:x,styles:C});return oe.createElement("div",Xn({ref:t,className:w,style:a,role:s?"tablist":void 0},An(e,{aria:!0,data:!0})),O)}),US=Object.assign(QD,{Panel:eO}),{Panel:Fee}=US,ZD=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,className:a,showArrow:s=!0}=e,c=n("collapse",r),d=Q({[`${c}-no-arrow`]:!s},a);return l.createElement(US.Panel,{ref:t,...e,prefixCls:c,className:d})}),nO=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:a}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(s=>`${s} ${r} ${a}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(s=>`${s} ${r} ${a}`).join(", ")} !important`}}}},JD=e=>({animationDuration:e,animationFillMode:"both"}),ej=e=>({animationDuration:e,animationFillMode:"both"}),zp=(e,t,n,r,a=!1)=>{const s=a?"&":"";return{[`
|
|
138
|
+
${s}${e}-enter,
|
|
139
|
+
${s}${e}-appear
|
|
140
|
+
`]:{...JD(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...ej(r),animationPlayState:"paused"},[`
|
|
141
|
+
${s}${e}-enter${e}-enter-active,
|
|
142
|
+
${s}${e}-appear${e}-appear-active
|
|
143
|
+
`]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},tj=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),nj=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),rO=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[zp(r,tj,nj,e.motionDurationMid,t),{[`
|
|
144
|
+
${a}${r}-enter,
|
|
145
|
+
${a}${r}-appear
|
|
146
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},rj=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}}),oj=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}}),aj=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}}),ij=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}}),lj=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}}),sj=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}}),cj=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}}),uj=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}}),dj={"move-up":{inKeyframes:cj,outKeyframes:uj},"move-down":{inKeyframes:rj,outKeyframes:oj},"move-left":{inKeyframes:aj,outKeyframes:ij},"move-right":{inKeyframes:lj,outKeyframes:sj}},Os=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:s}=dj[t];return[zp(r,a,s,e.motionDurationMid),{[`
|
|
147
|
+
${r}-enter,
|
|
148
|
+
${r}-appear
|
|
149
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ap=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Dp=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jp=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_p=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),fj=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mj=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pj=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),gj=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),hj={"slide-up":{inKeyframes:Ap,outKeyframes:Dp},"slide-down":{inKeyframes:jp,outKeyframes:_p},"slide-left":{inKeyframes:fj,outKeyframes:mj},"slide-right":{inKeyframes:pj,outKeyframes:gj}},Jo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:s}=hj[t];return[zp(r,a,s,e.motionDurationMid),{[`
|
|
150
|
+
${r}-enter,
|
|
151
|
+
${r}-appear
|
|
152
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},yj=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bj=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),LE=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),VE=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),vj=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Sj=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Cj=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),xj=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),$j=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),wj=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ej=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Mj=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Rj={zoom:{inKeyframes:yj,outKeyframes:bj},"zoom-big":{inKeyframes:LE,outKeyframes:VE},"zoom-big-fast":{inKeyframes:LE,outKeyframes:VE},"zoom-left":{inKeyframes:Cj,outKeyframes:xj},"zoom-right":{inKeyframes:$j,outKeyframes:wj},"zoom-up":{inKeyframes:vj,outKeyframes:Sj},"zoom-down":{inKeyframes:Ej,outKeyframes:Mj}},yd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:s}=Rj[t];return[zp(r,a,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
153
|
+
${r}-enter,
|
|
154
|
+
${r}-appear
|
|
155
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Tj=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:s,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:d,collapsePanelBorderRadius:f,lineWidth:m,lineType:g,colorBorder:h,colorText:y,colorTextHeading:b,colorTextDisabled:v,fontSizeLG:x,lineHeight:C,lineHeightLG:w,marginSM:R,paddingSM:$,paddingLG:E,paddingXS:T,motionDurationSlow:N,fontSizeIcon:O,contentPadding:D,fontHeight:j,fontHeightLG:B}=e,V=`${te(m)} ${g} ${h}`;return{[t]:{...Jt(e),backgroundColor:a,border:V,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:V,"&:first-child":{[`
|
|
156
|
+
&,
|
|
157
|
+
& > ${t}-header`]:{borderRadius:`${te(f)} ${te(f)} 0 0`}},"&:last-child":{[`
|
|
158
|
+
&,
|
|
159
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${te(f)} ${te(f)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:b,lineHeight:C,cursor:"pointer",transition:`all ${N}, visibility 0s`,...wo(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:j,display:"flex",alignItems:"center",marginInlineEnd:R},[`${t}-arrow`]:{...Ds(),fontSize:O,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:V,[`& > ${t}-body`]:{padding:D},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:T,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc($).sub(T).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:$}}},"&-large":{[`> ${t}-item`]:{fontSize:x,lineHeight:w,[`> ${t}-header`]:{padding:d,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:B,marginInlineStart:e.calc(E).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},[`${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:v,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:R}}}}}}},Oj=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Nj=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:s}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${s}`},[`
|
|
160
|
+
> ${t}-item:last-child,
|
|
161
|
+
> ${t}-item:last-child ${t}-header
|
|
162
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},Ij=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"}),zj=Pt("Collapse",e=>{const t=Nt(e,{collapseHeaderPaddingSM:`${te(e.paddingXS)} ${te(e.paddingSM)}`,collapseHeaderPaddingLG:`${te(e.padding)} ${te(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Tj(t),Nj(t),Ij(t),Oj(t),nO(t)]},Pj),Aj=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:s,style:c,classNames:d,styles:f}=Rt("collapse"),{prefixCls:m,className:g,rootClassName:h,style:y,bordered:b=!0,ghost:v,size:x,expandIconPlacement:C,expandIconPosition:w,children:R,destroyInactivePanel:$,destroyOnHidden:E,expandIcon:T,classNames:N,styles:O}=e,D=pr(A=>x??A??"middle"),j=n("collapse",m),B=n(),[V,U]=zj(j),G=C??w??"start",Y={...e,size:D,bordered:b,expandIconPlacement:G},[_,H]=Bt([d,N],[f,O],{props:Y}),F=T??a,I=l.useCallback((A={})=>{const k=typeof F=="function"?F(A):l.createElement(Ts,{rotate:A.isActive?r==="rtl"?-90:90:void 0,"aria-label":A.isActive?"expanded":"collapsed"});return or(k,q=>({className:Q(q.className,`${j}-arrow`)}))},[F,j,r]),z=Q(`${j}-icon-placement-${G}`,{[`${j}-borderless`]:!b,[`${j}-rtl`]:r==="rtl",[`${j}-ghost`]:!!v,[`${j}-${D}`]:D!=="middle"},s,g,h,V,U,_.root),L=l.useMemo(()=>({...KT(B),motionAppear:!1,leavedClassName:`${j}-panel-hidden`}),[B,j]),P=l.useMemo(()=>R?fr(R).map(A=>A):null,[R]);return l.createElement(US,{ref:t,openMotion:L,...rn(e,["rootClassName"]),expandIcon:I,prefixCls:j,className:z,style:{...H.root,...c,...y},classNames:_,styles:H,destroyOnHidden:E??$},P)}),FE=Object.assign(Aj,{Panel:ZD}),Dj=e=>e instanceof Km?e:new Km(e),oO=(e,t)=>{const{r:n,g:r,b:a,a:s}=e.toRgb(),c=new Tu(e.toRgbString()).onBackground(t).toHsv();return s<=.5?c.v>.5:n*.299+r*.587+a*.114>192},aO=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Nt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},iO=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,a=e.contentLineHeight??wm(t),s=e.contentLineHeightSM??wm(n),c=e.contentLineHeightLG??wm(r),d=oO(new Km(e.colorBgSolid),"#fff")?"#000":"#fff",f=Ma.reduce((h,y)=>({...h,[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Zc(e[`${y}1`],e.colorBgContainer)}`}),{}),m=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:a,contentLineHeightSM:s,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-t*a)/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:m,dashedBgDisabled:g}},jj=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[a,s]=Ut(n,"btn");return{[t]:[{[a("border-width")]:r,[a("border-color")]:"#000",[a("border-color-hover")]:s("border-color"),[a("border-color-active")]:s("border-color"),[a("border-color-disabled")]:s("border-color"),[a("border-style")]:"solid",[a("text-color")]:"#000",[a("text-color-hover")]:s("text-color"),[a("text-color-active")]:s("text-color"),[a("text-color-disabled")]:s("text-color"),[a("bg-color")]:"#ddd",[a("bg-color-hover")]:s("bg-color"),[a("bg-color-active")]:s("bg-color"),[a("bg-color-disabled")]:e.colorBgContainerDisabled,[a("bg-color-container")]:e.colorBgContainer,[a("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${t}-variant-solid`]:{[a("solid-bg-color")]:s("color-base"),[a("solid-bg-color-hover")]:s("color-hover"),[a("solid-bg-color-active")]:s("color-active"),[a("border-color")]:"transparent",[a("text-color")]:e.colorTextLightSolid,[a("bg-color")]:s("solid-bg-color"),[a("bg-color-hover")]:s("solid-bg-color-hover"),[a("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("border-color")]:s("color-base"),[a("border-color-hover")]:s("color-hover"),[a("border-color-active")]:s("color-active"),[a("bg-color")]:s("bg-color-container"),[a("text-color")]:s("color-base"),[a("text-color-hover")]:s("color-hover"),[a("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${t}-variant-dashed`]:{[a("border-style")]:"dashed",[a("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[a("border-color")]:"transparent",[a("text-color")]:s("color-base"),[a("bg-color")]:s("color-light"),[a("bg-color-hover")]:s("color-light-hover"),[a("bg-color-active")]:s("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[a("border-color")]:"transparent",[a("text-color")]:s("color-base"),[a("text-color-hover")]:s("color-hover"),[a("text-color-active")]:s("color-active"),[a("bg-color")]:"transparent",[a("bg-color-hover")]:"transparent",[a("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[a("bg-color-hover")]:s("color-light"),[a("bg-color-active")]:s("color-light-active")}},{[`&${t}-variant-link`]:{[a("color-base")]:e.colorLink,[a("color-hover")]:e.colorLinkHover,[a("color-active")]:e.colorLinkActive,[a("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[a("color-base")]:e.colorPrimary,[a("color-hover")]:e.colorPrimaryHover,[a("color-active")]:e.colorPrimaryActive,[a("color-light")]:e.colorPrimaryBg,[a("color-light-hover")]:e.colorPrimaryBgHover,[a("color-light-active")]:e.colorPrimaryBorder,[a("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[a("text-color")]:e.primaryColor,[a("text-color-hover")]:s("text-color"),[a("text-color-active")]:s("text-color")}},[`&${t}-color-dangerous`]:{[a("color-base")]:e.colorError,[a("color-hover")]:e.colorErrorHover,[a("color-active")]:e.colorErrorActive,[a("color-light")]:e.colorErrorBg,[a("color-light-hover")]:e.colorErrorBgFilledHover,[a("color-light-active")]:e.colorErrorBgActive,[a("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[a("text-color")]:e.dangerColor,[a("text-color-hover")]:s("text-color"),[a("text-color-active")]:s("text-color")}},[`&${t}-color-default`]:{[a("solid-bg-color")]:e.colorBgSolid,[a("solid-bg-color-hover")]:e.colorBgSolidHover,[a("solid-bg-color-active")]:e.colorBgSolidActive,[a("color-base")]:e.defaultBorderColor,[a("color-hover")]:e.defaultHoverBorderColor,[a("color-active")]:e.defaultActiveBorderColor,[a("color-light")]:e.colorFillTertiary,[a("color-light-hover")]:e.colorFillSecondary,[a("color-light-active")]:e.colorFill,[a("text-color")]:e.defaultColor,[a("text-color-hover")]:e.defaultHoverColor,[a("text-color-active")]:e.defaultActiveColor,[a("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[a("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[a("text-color")]:e.solidTextColor,[a("text-color-hover")]:s("text-color"),[a("text-color-active")]:s("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[a("text-color-hover")]:s("text-color"),[a("text-color-active")]:s("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("text-color")]:e.defaultColor,[a("text-color-hover")]:e.defaultHoverColor,[a("text-color-active")]:e.defaultActiveColor,[a("bg-color-container")]:e.defaultBg,[a("bg-color-hover")]:e.defaultHoverBg,[a("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[a("text-color")]:e.textTextColor,[a("text-color-hover")]:e.textTextHoverColor,[a("text-color-active")]:e.textTextActiveColor,[a("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("text-color")]:e.defaultGhostColor,[a("border-color")]:e.defaultGhostBorderColor}}}},Ma.map(c=>{const d=e[`${c}6`],f=e[`${c}1`],m=e[`${c}Hover`],g=e[`${c}2`],h=e[`${c}3`],y=e[`${c}Active`],b=e[`${c}ShadowColor`];return{[`&${t}-color-${c}`]:{[a("color-base")]:d,[a("color-hover")]:m,[a("color-active")]:y,[a("color-light")]:f,[a("color-light-hover")]:g,[a("color-light-active")]:h,[a("shadow")]:b}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[a("bg-color")]:e.ghostBg,[a("bg-color-hover")]:e.ghostBg,[a("bg-color-active")]:e.ghostBg,[a("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("bg-color-hover")]:e.ghostBg,[a("bg-color-active")]:e.ghostBg}}}]}},_j=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,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`]:Ds(),"> a":{color:"currentColor"},"&:not(:disabled)":wo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${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()}}}}}},Hj=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),qS=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:s,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:f,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:a,height:r,padding:`${te(f)} ${te(c)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[d]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:Hj(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Bj=e=>{const t=Nt(e,{fontSize:e.contentFontSize});return qS(t,e.componentCls)},Lj=e=>{const t=Nt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return qS(t,`${e.componentCls}-sm`)},Vj=e=>{const t=Nt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return qS(t,`${e.componentCls}-lg`)},Fj=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},kj=Pt("Button",e=>{const t=aO(e);return[_j(t),Bj(t),Lj(t),Vj(t),Fj(t),jj(t),HD(t)]},iO,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Wj(e,t,n,r){const{focusElCls:a,focus:s,borderElCls:c}=n,d=c?"> *":"",f=["hover",s?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${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},...a?{[`&${a}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function Yj(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function bd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,s=`${a}-compact`;return{[s]:{...Wj(e,s,t,a),...Yj(a,s,t)}}}function Uj(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 qj(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 Gj(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Uj(e,t,e.componentCls),...qj(e.componentCls,t)}}}const Xj=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:a,colorBgContainer:s}=e,c=`${n}-variant-solid:not([disabled])`,d=a(r).mul(-1).equal(),[f,m]=Ut(t,"btn"),g=h=>({[`${n}-compact${h?"-vertical":""}-item`]:{[f("compact-connect-border-color")]:m("bg-color-hover"),[`&${c}`]:{transition:"none",[`& + ${c}:before`]:[{position:"absolute",backgroundColor:m("compact-connect-border-color"),content:'""'},h?{top:d,insetInline:d,height:r}:{insetBlock:d,insetInlineStart:d,width:r}],"&:hover:before":{display:"none"}}}});return[g(),g(!0),{[`${c}${n}-color-default`]:{[f("compact-connect-border-color")]:`color-mix(in srgb, ${m("bg-color-hover")} 75%, ${s})`}}]},Kj=cd(["Button","compact"],e=>{const t=aO(e);return[bd(t),Gj(t),Xj(t)]},iO);function Qj(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 Zj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Jj=oe.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:a,color:s,variant:c,type:d,danger:f=!1,shape:m,size:g,disabled:h,className:y,rootClassName:b,children:v,icon:x,iconPosition:C,iconPlacement:w,ghost:R=!1,block:$=!1,htmlType:E="button",classNames:T,styles:N,style:O,autoInsertSpace:D,autoFocus:j,...B}=e,V=fr(v),U=d||"default",{getPrefixCls:G,direction:Y,autoInsertSpace:_,className:H,style:F,classNames:I,styles:z,loadingIcon:L,shape:P,color:A,variant:k}=Rt("button"),q=m||P||"default",[K,Z]=l.useMemo(()=>{if(s&&c)return[s,c];if(d||f){const Qe=Zj[U]||[];return f?["danger",Qe[1]]:Qe}return A&&k?[A,k]:["default","outlined"]},[s,c,d,f,A,k,U]),[J,re]=l.useMemo(()=>R&&Z==="solid"?[K,"outlined"]:[K,Z],[K,Z,R]),ie=J==="danger",ne=ie?"dangerous":J,le=D??_??!0,se=G("btn",a),[ce,me]=kj(se),ae=l.useContext(Wr),fe=h??ae,ge=l.useContext(ZT),he=l.useMemo(()=>Qj(r),[r]),[ye,Ae]=l.useState(he.loading),[xe,Se]=l.useState(!1),ue=l.useRef(null),ve=ea(t,ue),Me=V.length===1&&!x&&!Ty(re),Pe=l.useRef(!0);oe.useEffect(()=>(Pe.current=!1,()=>{Pe.current=!0}),[]),It(()=>{let Qe=null;he.delay>0?Qe=setTimeout(()=>{Qe=null,Ae(!0)},he.delay):Ae(he.loading);function ze(){Qe&&(clearTimeout(Qe),Qe=null)}return ze},[he.delay,he.loading]),l.useEffect(()=>{if(!ue.current||!le)return;const Qe=ue.current.textContent||"";Me&&cv(Qe)?xe||Se(!0):xe&&Se(!1)}),l.useEffect(()=>{j&&ue.current&&ue.current.focus()},[]);const je=oe.useCallback(Qe=>{if(ye||fe){Qe.preventDefault();return}e.onClick?.(("href"in e,Qe))},[e.onClick,ye,fe]),{compactSize:Be,compactItemClassnames:Ze}=Ia(se,Y),Fe={large:"lg",small:"sm",middle:void 0,medium:void 0},_e=pr(Qe=>g??Be??ge??Qe),He=_e?Fe[_e]??"":"",Ke=ye?"loading":x,Ne=w??C??"start",Ce=rn(B,["navigate"]),Ye={...e,type:U,color:J,variant:re,danger:ie,shape:q,size:_e,disabled:fe,loading:ye,iconPlacement:Ne},[et,Le]=Bt([n?void 0:I,T],[n?void 0:z,N],{props:Ye}),Ge=Q(se,ce,me,{[`${se}-${q}`]:q!=="default"&&q!=="square"&&q,[`${se}-${U}`]:U,[`${se}-dangerous`]:f,[`${se}-color-${ne}`]:ne,[`${se}-variant-${re}`]:re,[`${se}-${He}`]:He,[`${se}-icon-only`]:!v&&v!==0&&!!Ke,[`${se}-background-ghost`]:R&&!Ty(re),[`${se}-loading`]:ye,[`${se}-two-chinese-chars`]:xe&&le&&!ye,[`${se}-block`]:$,[`${se}-rtl`]:Y==="rtl",[`${se}-icon-end`]:Ne==="end"},Ze,y,b,H,et.root),Re={...Le.root,...F,...O},Xe={className:et.icon,style:Le.icon},tt=Qe=>oe.createElement(JT,{prefixCls:se,...Xe},Qe),at=oe.createElement(_D,{existIcon:!!x,prefixCls:se,loading:ye,mount:Pe.current,...Xe}),bt=r&&typeof r=="object"&&r.icon||L;let ht;x&&!ye?ht=tt(x):r&&bt?ht=tt(bt):ht=at;const xt=Mr(v)?jD(v,Me&&le,Le.content,et.content):null;if(Ce.href!==void 0)return oe.createElement("a",{...Ce,className:Q(Ge,{[`${se}-disabled`]:fe}),href:fe?void 0:Ce.href,style:Re,onClick:je,ref:ve,tabIndex:fe?-1:0,"aria-disabled":fe},ht,xt);let ke=oe.createElement("button",{...B,type:E,className:Ge,style:Re,onClick:je,disabled:fe,ref:ve},ht,xt,Ze&&oe.createElement(Kj,{prefixCls:se}));return Ty(re)||(ke=oe.createElement(hd,{component:"Button",disabled:ye},ke)),ke}),_t=Jj;_t.Group=AD;_t.__ANT_BUTTON=!0;const Py=e=>typeof e?.then=="function",GS=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:s,autoFocus:c,emitEvent:d,isSilent:f,quitOnNullishReturnValue:m,actionFn:g}=e,h=l.useRef(!1),y=l.useRef(null),[b,v]=Bm(!1),x=(...R)=>{s?.(...R)};l.useEffect(()=>{let R=null;return c&&(R=setTimeout(()=>{y.current?.focus({preventScroll:!0})})),()=>{R&&clearTimeout(R)}},[c]);const C=R=>{Py(R)&&(v(!0),R.then((...$)=>{v(!1,!0),x.apply(void 0,$),h.current=!1},$=>{if(v(!1,!0),h.current=!1,!f?.())return Promise.reject($)}))},w=R=>{if(h.current)return;if(h.current=!0,!g){x();return}let $;if(d){if($=g(R),m&&!Py($)){h.current=!1,x(R);return}}else if(g.length)$=g(s),h.current=!1;else if($=g(),!Py($)){x();return}C($)};return l.createElement(_t,{...YS(t),onClick:w,loading:b,prefixCls:r,...a,ref:y},n)},vd=oe.createContext({}),{Provider:lO}=vd,kE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:s,close:c,onCancel:d,onConfirm:f,onClose:m}=l.useContext(vd);return a?oe.createElement(GS,{isSilent:r,actionFn:d,close:(...g)=>{c?.(...g),f?.(!1),m?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},WE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:s,okType:c,onConfirm:d,onOk:f,onClose:m}=l.useContext(vd);return oe.createElement(GS,{isSilent:n,type:c||"primary",actionFn:f,close:(...g)=>{t?.(...g),d?.(!0),m?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},s)},sO=l.createContext({});function YE(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function UE(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function e_(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=UE(a),n.top+=UE(a,!0),n}function qE(e,t=!1){if(Np(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),s=Number(a);let c=null;return a&&!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 XS(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>qE(r,t));return qE(e,t)&&n.unshift(e),n}function cO(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)}}}let Cs=null,si=[];const dv=new Map,KS=new Map;function QS(){return si[si.length-1]}function t_(e){const t=QS();if(e&&t){let n;for(const[a,s]of dv.entries())if(s===t){n=a;break}const r=KS.get(n);return!!r&&(r===e||r.contains(e))}return!1}function n_(e){const{activeElement:t}=document;return e===t||e.contains(t)}function zy(){const e=QS(),{activeElement:t}=document;if(!t_(t))if(e&&!n_(e)){const n=XS(e);(n.includes(Cs)?Cs:n[0])?.focus({preventScroll:!0})}else Cs=t}function GE(e){if(e.key==="Tab"){const{activeElement:t}=document,n=QS(),r=XS(n),a=r[r.length-1];e.shiftKey&&t===r[0]?Cs=a:!e.shiftKey&&t===a&&(Cs=r[0])}}function r_(e,t){return e&&(dv.set(t,e),si=si.filter(n=>n!==e),si.push(e),window.addEventListener("focusin",zy),window.addEventListener("keydown",GE,!0),zy()),()=>{Cs=null,si=si.filter(n=>n!==e),dv.delete(t),KS.delete(t),si.length===0&&(window.removeEventListener("focusin",zy),window.removeEventListener("keydown",GE,!0))}}function uO(e,t){const n=Ho();return l.useEffect(()=>{if(e){const a=t();if(a)return r_(a,n)}},[e,n]),[a=>{a&&KS.set(n,a)}]}const o_=l.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Qm(){return Qm=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},Qm.apply(this,arguments)}const dO=oe.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,title:s,ariaId:c,footer:d,closable:f,closeIcon:m,onClose:g,children:h,bodyStyle:y,bodyProps:b,modalRender:v,onMouseDown:x,onMouseUp:C,holderRef:w,visible:R,forceRender:$,width:E,height:T,classNames:N,styles:O,isFixedPos:D,focusTrap:j}=e,{panel:B}=oe.useContext(sO),V=l.useRef(null),U=ea(w,B,V),[G]=uO(R&&D&&j!==!1,()=>V.current);oe.useImperativeHandle(t,()=>({focus:()=>{V.current?.focus({preventScroll:!0})}}));const Y={};E!==void 0&&(Y.width=E),T!==void 0&&(Y.height=T);const _=d?oe.createElement("div",{className:Q(`${n}-footer`,N?.footer),style:{...O?.footer}},d):null,H=s?oe.createElement("div",{className:Q(`${n}-header`,N?.header),style:{...O?.header}},oe.createElement("div",{className:Q(`${n}-title`,N?.title),id:c,style:{...O?.title}},s)):null,F=l.useMemo(()=>typeof f=="object"&&f!==null?f:f?{closeIcon:m??oe.createElement("span",{className:`${n}-close-x`})}:{},[f,m,n]),I=An(F,!0),z=typeof f=="object"&&f.disabled,L=f?oe.createElement("button",Qm({type:"button",onClick:g,"aria-label":"Close"},I,{className:`${n}-close`,disabled:z}),F.closeIcon):null,P=oe.createElement("div",{className:Q(`${n}-container`,N?.container),style:O?.container},L,H,oe.createElement("div",Qm({className:Q(`${n}-body`,N?.body),style:{...y,...O?.body}},b),h),_);return oe.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?c:null,"aria-modal":"true",ref:U,style:{...a,...Y},className:Q(n,r),onMouseDown:x,onMouseUp:C,tabIndex:-1,onFocus:A=>{G(A.target)}},oe.createElement(o_,{shouldUpdate:R||$},v?v(P):P))});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 a_=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:a,className:s,visible:c,forceRender:d,destroyOnHidden:f,motionName:m,ariaId:g,onVisibleChanged:h,mousePosition:y}=e,b=l.useRef(null),v=l.useRef(null);l.useImperativeHandle(t,()=>({...v.current,inMotion:b.current.inMotion,enableMotion:b.current.enableMotion}));const[x,C]=l.useState(),w={};x&&(w.transformOrigin=x);function R(){if(!b.current?.nativeElement)return;const $=e_(b.current.nativeElement);C(y&&(y.x||y.y)?`${y.x-$.left}px ${y.y-$.top}px`:"")}return l.createElement(vr,{visible:c,onVisibleChanged:h,onAppearPrepare:R,onEnterPrepare:R,forceRender:d,motionName:m,removeOnLeave:f,ref:b},({className:$,style:E},T)=>l.createElement(dO,fv({},e,{ref:v,title:r,ariaId:g,prefixCls:n,holderRef:T,style:{...E,...a,...w},className:Q(s,$)})))});function mv(){return mv=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},mv.apply(this,arguments)}const i_=e=>{const{prefixCls:t,style:n,visible:r,maskProps:a,motionName:s,className:c}=e;return l.createElement(vr,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:d,style:f},m)=>l.createElement("div",mv({ref:m,style:{...f,...n},className:Q(`${t}-mask`,d,c)},a)))};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)}const l_=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:a=!0,wrapStyle:s,wrapClassName:c,wrapProps:d,onClose:f,afterOpenChange:m,afterClose:g,transitionName:h,animation:y,closable:b=!0,mask:v=!0,maskTransitionName:x,maskAnimation:C,maskClosable:w=!0,maskStyle:R,maskProps:$,rootClassName:E,rootStyle:T,classNames:N,styles:O}=e,D=l.useRef(null),j=l.useRef(null),B=l.useRef(null),[V,U]=l.useState(r),[G,Y]=l.useState(!1),_=Ho();function H(){xb(j.current,document.activeElement)||(D.current=document.activeElement)}function F(){xb(j.current,document.activeElement)||B.current?.focus()}function I(){if(U(!1),v&&D.current&&a){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}V&&g?.()}function z(K){K?F():I(),m?.(K)}function L(K){f?.(K)}const P=l.useRef(!1);let A=null;w&&(A=K=>{j.current===K.target&&P.current&&L(K)});function k(K){P.current=K.target===j.current}l.useEffect(()=>{if(r){if(P.current=!1,U(!0),H(),j.current){const K=getComputedStyle(j.current);Y(K.position==="fixed")}}else V&&B.current.enableMotion()&&!B.current.inMotion()&&I()},[r]);const q={zIndex:n,...s,...O?.wrapper,display:V?null:"none"};return l.createElement("div",cu({className:Q(`${t}-root`,E),style:T},An(e,{data:!0})),l.createElement(i_,{prefixCls:t,visible:v&&r,motionName:YE(t,x,C),style:{zIndex:n,...R,...O?.mask},maskProps:$,className:N?.mask}),l.createElement("div",cu({className:Q(`${t}-wrap`,c,N?.wrapper),ref:j,onClick:A,onMouseDown:k,style:q},d),l.createElement(a_,cu({},e,{isFixedPos:G,ref:B,closable:b,ariaId:_,prefixCls:t,visible:r&&V,onClose:L,onVisibleChanged:z,motionName:YE(t,h,y)}))))};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 s_=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:a=!1,afterClose:s,closable:c,panelRef:d,keyboard:f=!0,onClose:m}=e,[g,h]=l.useState(t),y=l.useMemo(()=>({panel:d}),[d]),b=({top:v,event:x})=>{if(v&&f){x.stopPropagation(),m?.(x);return}};return l.useEffect(()=>{t&&h(!0)},[t]),!r&&a&&!g?null:l.createElement(sO.Provider,{value:y},l.createElement(fd,{open:t||r||g,onEsc:b,autoDestroy:!1,getContainer:n,autoLock:t||g},l.createElement(l_,pv({},e,{destroyOnHidden:a,afterClose:()=>{const v=c&&typeof c=="object"?c:{},{afterClose:x}=v||{};x?.(),s?.(),h(!1)}}))))},Qi="RC_FORM_INTERNAL_HOOKS",xn=()=>{rr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ns=l.createContext({getFieldValue:xn,getFieldsValue:xn,getFieldError:xn,getFieldWarning:xn,getFieldsError:xn,isFieldsTouched:xn,isFieldTouched:xn,isFieldValidating:xn,isFieldsValidating:xn,resetFields:xn,setFields:xn,setFieldValue:xn,setFieldsValue:xn,validateFields:xn,submit:xn,getInternalHooks:()=>(xn(),{dispatch:xn,initEntityValue:xn,registerField:xn,useSubscribe:xn,setInitialValues:xn,destroyForm:xn,setCallbacks:xn,registerWatch:xn,getFields:xn,setValidateMessages:xn,setPreserve:xn,getInitialValue:xn})}),Zm=l.createContext(null);function gv(e){return e==null?[]:Array.isArray(e)?e:[e]}function c_(e){return e&&!!e._init}function hv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var yv=hv();function u_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function d_(e,t,n){if(Rp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&$u(a,n.prototype),a}function bv(e){var t=typeof Map=="function"?new Map:void 0;return bv=function(r){if(r===null||!u_(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return d_(r,arguments,ol(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),$u(a,r)},bv(e)}var f_=/%[sdj%]/g,m_=function(){};function vv(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 a=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(f_,function(d){if(d==="%%")return"%";if(a>=s)return d;switch(d){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function p_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ar(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||p_(t)&&typeof e=="string"&&!e)}function g_(e,t,n){var r=[],a=0,s=e.length;function c(d){r.push.apply(r,$n(d||[])),a++,a===s&&n(r)}e.forEach(function(d){t(d,c)})}function XE(e,t,n){var r=0,a=e.length;function s(c){if(c&&c.length){n(c);return}var d=r;r=r+1,d<a?t(e[d],s):n([])}s([])}function h_(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,$n(e[n]||[]))}),t}var KE=(function(e){DS(n,e);var t=W4(n);function n(r,a){var s;return dl(this,n),s=t.call(this,"Async Validation Error"),ur(vs(s),"errors",void 0),ur(vs(s),"fields",void 0),s.errors=r,s.fields=a,s}return fl(n)})(bv(Error));function y_(e,t,n,r,a){if(t.first){var s=new Promise(function(y,b){var v=function(w){return r(w),w.length?b(new KE(w,vv(w))):y(a)},x=h_(e);XE(x,n,v)});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,m=0,g=[],h=new Promise(function(y,b){var v=function(C){if(g.push.apply(g,C),m++,m===f)return r(g),g.length?b(new KE(g,vv(g))):y(a)};d.length||(r(g),y(a)),d.forEach(function(x){var C=e[x];c.indexOf(x)!==-1?XE(C,n,v):g_(C,n,v)})});return h.catch(function(y){return y}),h}function b_(e){return!!(e&&e.message!==void 0)}function v_(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function QE(e,t){return function(n){var r;return e.fullFields?r=v_(t,e.fullFields):r=t[n.field||e.fullField],b_(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 ZE(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]=Bn(Bn({},e[n]),r):e[n]=r}}return e}var ts="enum",S_=function(t,n,r,a,s){t[ts]=Array.isArray(t[ts])?t[ts]:[],t[ts].indexOf(n)===-1&&a.push(ro(s.messages[ts],t.fullField,t[ts].join(", ")))},C_=function(t,n,r,a,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.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)||a.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},x_=function(t,n,r,a,s){var c=typeof t.len=="number",d=typeof t.min=="number",f=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,h=null,y=typeof n=="number",b=typeof n=="string",v=Array.isArray(n);if(y?h="number":b?h="string":v&&(h="array"),!h)return!1;v&&(g=n.length),b&&(g=n.replace(m,"_").length),c?g!==t.len&&a.push(ro(s.messages[h].len,t.fullField,t.len)):d&&!f&&g<t.min?a.push(ro(s.messages[h].min,t.fullField,t.min)):f&&!d&&g>t.max?a.push(ro(s.messages[h].max,t.fullField,t.max)):d&&f&&(g<t.min||g>t.max)&&a.push(ro(s.messages[h].range,t.fullField,t.min,t.max))},fO=function(t,n,r,a,s,c){t.required&&(!r.hasOwnProperty(t.field)||ar(n,c||t.type))&&a.push(ro(s.messages.required,t.fullField))},Uf;const $_=(function(){if(Uf)return Uf;var e="[a-fA-F\\d:]",t=function(N){return N&&N.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],s="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(a.join("|"),")").concat(s),d=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),f=new RegExp("^".concat(n,"$")),m=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(T){return T&&T.exact?f:new RegExp("".concat(t(T)).concat(n).concat(t(T)),"g")},g.v6=function(T){return T&&T.exact?m:new RegExp("".concat(t(T)).concat(c).concat(t(T)),"g")};var h="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",b=g.v4().source,v=g.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",R="(?::\\d{2,5})?",$='(?:[/?#][^\\s"]*)?',E="(?:".concat(h,"|www\\.)").concat(y,"(?:localhost|").concat(b,"|").concat(v,"|").concat(x).concat(C).concat(w,")").concat(R).concat($);return Uf=new RegExp("(?:^".concat(E,"$)"),"i"),Uf});var Ay={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Jc={integer:function(t){return Jc.number(t)&&parseInt(t,10)===t},float:function(t){return Jc.number(t)&&!Jc.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"&&!Jc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ay.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Ay.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($_())},hex:function(t){return typeof t=="string"&&!!t.match(Ay.hex)}},w_=function(t,n,r,a,s){if(t.required&&n===void 0){fO(t,n,r,a,s);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],d=t.type;c.indexOf(d)>-1?Jc[d](n)||a.push(ro(s.messages.types[d],t.fullField,t.type)):d&&Kn(n)!==t.type&&a.push(ro(s.messages.types[d],t.fullField,t.type))},E_=function(t,n,r,a,s){(/^\s+$/.test(n)||n==="")&&a.push(ro(s.messages.whitespace,t.fullField))};const Qt={required:fO,whitespace:E_,type:w_,range:x_,enum:S_,pattern:C_};var M_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s)}r(c)},R_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(n==null&&!t.required)return r();Qt.required(t,n,a,c,s,"array"),n!=null&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},T_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt.type(t,n,a,c,s)}r(c)},O_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n,"date")&&!t.required)return r();if(Qt.required(t,n,a,c,s),!ar(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Qt.type(t,f,a,c,s),f&&Qt.range(t,f.getTime(),a,c,s)}}r(c)},N_="enum",I_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt[N_](t,n,a,c,s)}r(c)},P_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},z_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},A_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt.type(t,n,a,c,s)}r(c)},D_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},j_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt.type(t,n,a,c,s)}r(c)},__=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n,"string")&&!t.required)return r();Qt.required(t,n,a,c,s),ar(n,"string")||Qt.pattern(t,n,a,c,s)}r(c)},H_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),ar(n)||Qt.type(t,n,a,c,s)}r(c)},B_=function(t,n,r,a,s){var c=[],d=Array.isArray(n)?"array":Kn(n);Qt.required(t,n,a,c,s,d),r(c)},L_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n,"string")&&!t.required)return r();Qt.required(t,n,a,c,s,"string"),ar(n,"string")||(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s),Qt.pattern(t,n,a,c,s),t.whitespace===!0&&Qt.whitespace(t,n,a,c,s))}r(c)},qf=function(t,n,r,a,s){var c=t.type,d=[],f=t.required||!t.required&&a.hasOwnProperty(t.field);if(f){if(ar(n,c)&&!t.required)return r();Qt.required(t,n,a,d,s,c),ar(n,c)||Qt.type(t,n,a,d,s)}r(d)};const uu={string:L_,method:A_,number:D_,boolean:T_,regexp:H_,integer:z_,float:P_,array:R_,object:j_,enum:I_,pattern:__,date:O_,url:qf,hex:qf,email:qf,tel:qf,required:B_,any:M_};var Sd=(function(){function e(t){dl(this,e),ur(this,"rules",null),ur(this,"_messages",yv),this.define(t)}return fl(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(a){var s=n[a];r.rules[a]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=ZE(hv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,d=a,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 m(v){var x=[],C={};function w($){if(Array.isArray($)){var E;x=(E=x).concat.apply(E,$n($))}else x.push($)}for(var R=0;R<v.length;R++)w(v[R]);x.length?(C=vv(x),f(x,C)):f(null,c)}if(d.messages){var g=this.messages();g===yv&&(g=hv()),ZE(g,d.messages),d.messages=g}else d.messages=this.messages();var h={},y=d.keys||Object.keys(this.rules);y.forEach(function(v){var x=r.rules[v],C=c[v];x.forEach(function(w){var R=w;typeof R.transform=="function"&&(c===n&&(c=Bn({},c)),C=c[v]=R.transform(C),C!=null&&(R.type=R.type||(Array.isArray(C)?"array":Kn(C)))),typeof R=="function"?R={validator:R}:R=Bn({},R),R.validator=r.getValidationMethod(R),R.validator&&(R.field=v,R.fullField=R.fullField||v,R.type=r.getType(R),h[v]=h[v]||[],h[v].push({rule:R,value:C,source:c,field:v}))})});var b={};return y_(h,d,function(v,x){var C=v.rule,w=(C.type==="object"||C.type==="array")&&(Kn(C.fields)==="object"||Kn(C.defaultField)==="object");w=w&&(C.required||!C.required&&v.value),C.field=v.field;function R(O,D){return Bn(Bn({},D),{},{fullField:"".concat(C.fullField,".").concat(O),fullFields:C.fullFields?[].concat($n(C.fullFields),[O]):[O]})}function $(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=Array.isArray(O)?O:[O];!d.suppressWarning&&D.length&&e.warning("async-validator:",D),D.length&&C.message!==void 0&&C.message!==null&&(D=[].concat(C.message));var j=D.map(QE(C,c));if(d.first&&j.length)return b[C.field]=1,x(j);if(!w)x(j);else{if(C.required&&!v.value)return C.message!==void 0?j=[].concat(C.message).map(QE(C,c)):d.error&&(j=[d.error(C,ro(d.messages.required,C.field))]),x(j);var B={};C.defaultField&&Object.keys(v.value).map(function(G){B[G]=C.defaultField}),B=Bn(Bn({},B),v.rule.fields);var V={};Object.keys(B).forEach(function(G){var Y=B[G],_=Array.isArray(Y)?Y:[Y];V[G]=_.map(R.bind(null,G))});var U=new e(V);U.messages(d.messages),v.rule.options&&(v.rule.options.messages=d.messages,v.rule.options.error=d.error),U.validate(v.value,v.rule.options||d,function(G){var Y=[];j&&j.length&&Y.push.apply(Y,$n(j)),G&&G.length&&Y.push.apply(Y,$n(G)),x(Y.length?Y:null)})}}var E;if(C.asyncValidator)E=C.asyncValidator(C,v.value,$,v.source,d);else if(C.validator){try{E=C.validator(C,v.value,$,v.source,d)}catch(O){var T,N;(T=(N=console).error)===null||T===void 0||T.call(N,O),d.suppressValidatorError||setTimeout(function(){throw O},0),$(O.message)}E===!0?$():E===!1?$(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):E instanceof Array?$(E):E instanceof Error&&$(E.message)}E&&E.then&&E.then(function(){return $()},function(O){return $(O)})},function(v){m(v)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!uu.hasOwnProperty(n.type))throw new Error(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),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?uu.required:uu[this.getType(n)]||void 0}}]),e})();ur(Sd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");uu[t]=n});ur(Sd,"warning",m_);ur(Sd,"messages",yv);ur(Sd,"validators",uu);const Vr="'${name}' is not a valid ${type}",mO={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:Vr,method:Vr,array:Vr,object:Vr,number:Vr,date:Vr,boolean:Vr,integer:Vr,float:Vr,regexp:Vr,email:Vr,tel:Vr,url:Vr,hex:Vr},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}"}},JE=Sd;function V_(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 e2="CODE_LOGIC_ERROR";async function Sv(e,t,n,r,a){const s={...n};if(delete s.ruleIndex,JE.warning=()=>{},s.validator){const y=s.validator;s.validator=(...b)=>{try{return y(...b)}catch(v){return console.error(v),Promise.reject(e2)}}}let c=null;s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField);const d=new JE({[e]:[s]}),f=xa(mO,r.validateMessages);d.messages(f);let m=[];try{await Promise.resolve(d.validate({[e]:t},{...r}))}catch(y){y.errors&&(m=y.errors.map(({message:b},v)=>{const x=b===e2?f.default:b;return l.isValidElement(x)?l.cloneElement(x,{key:`error_${v}`}):x}))}if(!m.length&&c&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((b,v)=>Sv(`${e}.${v}`,b,c,r,a)))).reduce((b,v)=>[...b,...v],[]);const g={...n,name:e,enum:(n.enum||[]).join(", "),...a};return m.map(y=>typeof y=="string"?V_(y,g):y)}function F_(e,t,n,r,a,s){const c=e.join("."),d=n.map((m,g)=>{const h=m.validator,y={...m,ruleIndex:g};return h&&(y.validator=(b,v,x)=>{let C=!1;const R=h(b,v,(...$)=>{Promise.resolve().then(()=>{rr(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||x(...$)})});C=R&&typeof R.then=="function"&&typeof R.catch=="function",rr(C,"`callback` is deprecated. Please return a promise instead."),C&&R.then(()=>{x()}).catch($=>{x($||" ")})}),y}).sort(({warningOnly:m,ruleIndex:g},{warningOnly:h,ruleIndex:y})=>!!m==!!h?g-y:m?1:-1);let f;if(a===!0)f=new Promise(async(m,g)=>{for(let h=0;h<d.length;h+=1){const y=d[h],b=await Sv(c,t,y,r,s);if(b.length){g([{errors:b,rule:y}]);return}}m([])});else{const m=d.map(g=>Sv(c,t,g,r,s).then(h=>({errors:h,rule:g})));f=(a?W_(m):k_(m)).then(g=>Promise.reject(g))}return f.catch(m=>m),f}async function k_(e){return Promise.all(e).then(t=>[].concat(...t))}async function W_(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(a=>{a.errors.length&&n([a]),t+=1,t===e.length&&n([])})})})}function Hn(e){return gv(e)}function t2(e,t){let n={};return t.forEach(r=>{const a=Ao(e,r);n=So(n,r,a)}),n}function xs(e,t,n=!1){return e&&e.some(r=>Jm(t,r,n))}function Jm(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,a)=>e[a]===r)}function Y_(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 U_(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function n2(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const a=e[t],s=t-n;return s>0?[...e.slice(0,n),a,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),a,...e.slice(n+1,r)]:e}function Cv(){return Cv=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},Cv.apply(this,arguments)}const Hi=[],Bc=[];function Dy(e,t,n,r,a,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==a}class q_ extends l.Component{static contextType=Ns;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Hi;warnings=Bc;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(Qi);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:r}=n,{registerField:a}=r(Qi);this.cancelRegisterFunc=a(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,Hn(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};Su(this.metaCache,r)||n(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,n,r)=>{const{shouldUpdate:a,dependencies:s=[],onReset:c}=this.props,{store:d}=r,f=this.getNamePath(),m=this.getValue(t),g=this.getValue(d),h=n&&xs(n,f);switch(r.type==="valueUpdate"&&r.source==="external"&&!Su(m,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Hi,this.warnings=Bc,this.triggerMetaEvent()),r.type){case"reset":if(!n||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Hi,this.warnings=Bc,this.triggerMetaEvent(),c?.(),this.refresh();return}break;case"remove":{if(a&&Dy(a,t,d,m,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||Hi),"warnings"in y&&(this.warnings=y.warnings||Bc),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&xs(n,f,!0)){this.reRender();return}if(a&&!f.length&&Dy(a,t,d,m,g,r)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(Hn).some(b=>xs(r.relatedFields,b))){this.reRender();return}break}default:if(h||(!s.length||f.length||a)&&Dy(a,t,d,m,g,r)){this.reRender();return}break}a===!0&&this.reRender()};validateRules=t=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:a,validateOnly:s=!1}=t||{},c=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:d=!1,messageVariables:f,validateDebounce:m}=this.props;let g=this.getRules();if(a&&(g=g.filter(y=>y).filter(y=>{const{validateTrigger:b}=y;return b?gv(b).includes(a):!0})),m&&a&&(await new Promise(y=>{setTimeout(y,m)}),this.validatePromise!==c))return[];const h=F_(n,r,g,t,d,f);return h.catch(y=>y).then((y=Hi)=>{if(this.validatePromise===c){this.validatePromise=null;const b=[],v=[];y.forEach?.(({rule:{warningOnly:x},errors:C=Hi})=>{x?v.push(...C):b.push(...C)}),this.errors=b,this.warnings=v,this.triggerMetaEvent(),this.reRender()}}),h});return s||(this.validatePromise=c,this.dirty=!0,this.errors=Hi,this.warnings=Bc,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(Qi);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=fr(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 Ao(t||n(!0),r)};getControlled=(t={})=>{const{name:n,trigger:r="onChange",validateTrigger:a,getValueFromEvent:s,normalize:c,valuePropName:d="value",getValueProps:f,fieldContext:m}=this.props,g=a!==void 0?a:m.validateTrigger,h=this.getNamePath(),{getInternalHooks:y,getFieldsValue:b}=m,{dispatch:v}=y(Qi),x=this.getValue(),C=f||(T=>({[d]:T})),w=t[r],R=n!==void 0?C(x):{},$={...t,...R};return $[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;s?N=s(...T):N=U_(d,...T),c&&(N=c(N,x,b(!0))),N!==x&&v({type:"updateValue",namePath:h,value:N}),w&&w(...T)},gv(g||[]).forEach(T=>{const N=$[T];$[T]=(...O)=>{N&&N(...O);const{rules:D}=this.props;D&&D.length&&v({type:"validateField",namePath:h,triggerName:T})}}),$};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:r,isFunction:a}=this.getOnlyChild(n);let s;return a?s=r:l.isValidElement(r)?s=l.cloneElement(r,this.getControlled(r.props)):(rr(!r,"`children` of Field is not validate ReactElement."),s=r),l.createElement(l.Fragment,{key:t},s)}}function pO({name:e,...t}){const n=l.useContext(Ns),r=l.useContext(Zm),a=e!==void 0?Hn(e):void 0,s=t.isListField??!!r;let c="keep";return s||(c=`_${(a||[]).join("_")}`),l.createElement(q_,Cv({key:c,name:a,isListField:s},t,{fieldContext:n}))}function G_({name:e,initialValue:t,children:n,rules:r,validateTrigger:a,isListField:s}){const c=l.useContext(Ns),d=l.useContext(Zm),m=l.useRef({keys:[],id:0}).current,g=l.useMemo(()=>[...Hn(c.prefixName)||[],...Hn(e)],[c.prefixName,e]),h=l.useMemo(()=>({...c,prefixName:g}),[c,g]),y=l.useMemo(()=>({getKey:v=>{const x=g.length,C=v[x];return[m.keys[C],v.slice(x+1)]}}),[m,g]);if(typeof n!="function")return rr(!1,"Form.List only accepts function as children."),null;const b=(v,x,{source:C})=>C==="internal"?!1:v!==x;return l.createElement(Zm.Provider,{value:y},l.createElement(Ns.Provider,{value:h},l.createElement(pO,{name:[],shouldUpdate:b,rules:r,validateTrigger:a,initialValue:t,isList:!0,isListField:s??!!d},({value:v=[],onChange:x},C)=>{const{getFieldValue:w}=c,R=()=>w(g||[])||[],$={add:(T,N)=>{const O=R();N>=0&&N<=O.length?(m.keys=[...m.keys.slice(0,N),m.id,...m.keys.slice(N)],x([...O.slice(0,N),T,...O.slice(N)])):(m.keys=[...m.keys,m.id],x([...O,T])),m.id+=1},remove:T=>{const N=R(),O=new Set(Array.isArray(T)?T:[T]);O.size<=0||(m.keys=m.keys.filter((D,j)=>!O.has(j)),x(N.filter((D,j)=>!O.has(j))))},move(T,N){if(T===N)return;const O=R();T<0||T>=O.length||N<0||N>=O.length||(m.keys=n2(m.keys,T,N),x(n2(O,T,N)))}};let E=v||[];return Array.isArray(E)||(E=[]),n(E.map((T,N)=>{let O=m.keys[N];return O===void 0&&(m.keys[N]=m.id,O=m.keys[N],m.id+=1),{name:N,key:O,isListField:!0}}),$,C)})))}function X_(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((a,s)=>{e.forEach((c,d)=>{c.catch(f=>(t=!0,f)).then(f=>{n-=1,r[d]=f,!(n>0)&&(t&&s(r),a(r))})})}):Promise.resolve([])}const xv="__@field_split__";function Gf(e){return e.map(t=>`${typeof t}:${t}`).join(xv)}class ns{kvs=new Map;set(t,n){this.kvs.set(Gf(t),n)}get(t){return this.kvs.get(Gf(t))}getAsPrefix(t){const n=Gf(t),r=n+xv,a=[],s=this.kvs.get(n);return s!==void 0&&a.push(s),this.kvs.forEach((c,d)=>{d.startsWith(r)&&a.push(c)}),a}update(t,n){const r=this.get(t),a=n(r);a?this.set(t,a):this.delete(t)}delete(t){this.kvs.delete(Gf(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const a=n.split(xv);return t({key:a.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 K_=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class Q_{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=>!Jm(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;K_(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),a=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,a,this.namePathList)}),this.namePathList=[]}})}}class Z_{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Q_(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===Qi?(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}):(rr(!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=xa(t,this.store);this.prevWithoutPreserves?.map(({key:a})=>{r=So(r,a,Ao(t,a))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const n=new ns;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=t=>{const n=Ao(this.initialValues,t);return t.length?xa(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 ns;return this.getFieldEntities(t).forEach(r=>{const a=r.getNamePath();n.set(a,r)}),n};getFieldEntitiesForNamePathList=(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(a=>{const s=Hn(a),c=r.getAsPrefix(s);return c.length?c:[{INVALIDATE_NAME_PATH:s}]}):t.map(a=>{const s=Hn(a);return r.get(s)||{INVALIDATE_NAME_PATH:Hn(a)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let r,a;if(t===!0||Array.isArray(t)?(r=t,a=n):t&&typeof t=="object"&&(a=t.filter),r===!0&&!a)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),c=[],d=[];s.forEach(m=>{const g=m.INVALIDATE_NAME_PATH||m.getNamePath();if(m.isList?.()){d.push(g);return}if(!a)c.push(g);else{const h="getMeta"in m?m.getMeta():null;a(h)&&c.push(g)}});let f=t2(this.store,c.map(Hn));return d.forEach(m=>{Ao(f,m)||(f=So(f,m,[]))}),f};getFieldValue=t=>{this.warningUnhooked();const n=Hn(t);return Ao(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,a)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:Hn(t[a]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=Hn(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=Hn(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,r]=t;let a,s=!1;t.length===0?a=null:t.length===1?Array.isArray(n)?(a=n.map(Hn),s=!1):(a=null,s=n):(a=n.map(Hn),s=r);const c=this.getFieldEntities(!0),d=h=>h.isFieldTouched();if(!a)return s?c.every(h=>d(h)||h.isList()):c.some(d);const f=new ns;a.forEach(h=>{f.set(h,[])}),c.forEach(h=>{const y=h.getNamePath();a.forEach(b=>{b.every((v,x)=>y[x]===v)&&f.update(b,v=>[...v,h])})});const m=h=>h.some(d),g=f.map(({value:h})=>h);return s?g.every(m):g.some(m)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(a=>a.isFieldValidating());const r=t.map(Hn);return n.some(a=>{const s=a.getNamePath();return xs(r,s)&&a.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new ns,r=this.getFieldEntities(!0);r.forEach(c=>{const{initialValue:d}=c.props,f=c.getNamePath();if(d!==void 0){const m=n.get(f)||new Set;m.add({entity:c,value:d}),n.set(f,m)}});const a=c=>{c.forEach(d=>{const{initialValue:f}=d.props;if(f!==void 0){const m=d.getNamePath();if(this.getInitialValue(m)!==void 0)rr(!1,`Form already set 'initialValues' with path '${m.join(".")}'. Field can not overwrite it.`);else{const h=n.get(m);if(h&&h.size>1)rr(!1,`Multiple Field with path '${m.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(h){const y=this.getFieldValue(m);!d.isListField()&&(!t.skipExist||y===void 0)&&this.updateStore(So(this.store,m,[...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,a(s)};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(xa(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(Hn);r.forEach(a=>{const s=this.getInitialValue(a);this.updateStore(So(this.store,a,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(a=>{const{name:s,...c}=a,d=Hn(s);r.push(d),"value"in c&&this.updateStore(So(this.store,d,c.value)),this.notifyObservers(n,[d],{type:"setField",data:a})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const a=r.getNamePath(),c={...r.getMeta(),name:a,value:this.getFieldValue(a)};return Object.defineProperty(c,"originRCField",{value:!0}),c});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();Ao(this.store,r)===void 0&&this.updateStore(So(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,a,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==t),!this.isMergedPreserve(a)&&(!r||s.length>1)){const c=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==c&&this.fieldEntities.every(d=>!Jm(d.getNamePath(),n))){const d=this.store;this.updateStore(So(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 a={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,a)})}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=Hn(t),a=this.store;this.updateStore(So(this.store,r,n)),this.notifyObservers(a,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(a,r),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(r),f=t2(this.store,[r]),m=this.getFieldsValue(),g=g4([m,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=xa(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=[],a=new ns;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(f=>{const m=Hn(f);a.update(m,(g=new Set)=>(g.add(c),g))})});const s=c=>{(a.get(c)||new Set).forEach(f=>{if(!n.has(f)){n.add(f);const m=f.getNamePath();f.isFieldDirty()&&m.length&&(r.push(m),s(m))}})};return s(t),r};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const a=this.getFields();if(n){const c=new ns;n.forEach(({name:d,errors:f})=>{c.set(d,f)}),a.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const s=a.filter(({name:c})=>xs(t,c));s.length&&r(s,a)}};validateFields=(t,n)=>{this.warningUnhooked();let r,a;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,a=n):a=t;const s=!!r,c=s?r.map(Hn):[],d=[...c],f=[],m=String(Date.now()),g=new Set,{recursive:h,dirty:y}=a||{};this.getFieldEntities(!0).forEach(C=>{const w=C.getNamePath();if(s||((!C.isList()||!c.some(R=>Jm(R,w,!0)))&&d.push(w),c.push(w)),!(!C.props.rules||!C.props.rules.length)&&!(y&&!C.isFieldDirty())&&(g.add(w.join(m)),!s||xs(c,w,h))){const R=C.validateRules({validateMessages:{...mO,...this.validateMessages},...a});f.push(R.then(()=>({name:w,errors:[],warnings:[]})).catch($=>{const E=[],T=[];return $.forEach?.(({rule:{warningOnly:N},errors:O})=>{N?T.push(...O):E.push(...O)}),E.length?Promise.reject({name:w,errors:E,warnings:T}):{name:w,errors:E,warnings:T}}))}});const b=X_(f);this.lastValidatePromise=b,b.catch(C=>C).then(C=>{const w=C.map(({name:R})=>R);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,C)});const v=b.then(()=>this.lastValidatePromise===b?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(C=>{const w=C.filter($=>$&&$.errors.length),R=w[0]?.errors?.[0];return Promise.reject({message:R,values:this.getFieldsValue(c),errorFields:w,outOfDate:this.lastValidatePromise!==b})});v.catch(C=>C);const x=c.filter(C=>g.has(C.join(m)));return this.triggerOnFieldsChange(x),v};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 gO(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},a=new Z_(r);t.current=a.getForm()}return[t.current]}const $v=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),J_=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const a=l.useContext($v),s=l.useRef({});return l.createElement($v.Provider,{value:{...a,validateMessages:{...a.validateMessages,...e},triggerFormChange:(c,d)=>{t&&t(c,{changedFields:d,forms:s.current}),a.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{n&&n(c,{values:d,forms:s.current}),a.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(s.current={...s.current,[c]:d}),a.registerForm(c,d)},unregisterForm:c=>{const d={...s.current};delete d[c],s.current=d,a.unregisterForm(c)}}},r)};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 eH=({name:e,initialValues:t,fields:n,form:r,preserve:a,children:s,component:c="form",validateMessages:d,validateTrigger:f="onChange",onValuesChange:m,onFieldsChange:g,onFinish:h,onFinishFailed:y,clearOnDestroy:b,...v},x)=>{const C=l.useRef(null),w=l.useContext($v),[R]=gO(r),{useSubscribe:$,setInitialValues:E,setCallbacks:T,setValidateMessages:N,setPreserve:O,destroyForm:D}=R.getInternalHooks(Qi);l.useImperativeHandle(x,()=>({...R,nativeElement:C.current})),l.useEffect(()=>(w.registerForm(e,R),()=>{w.unregisterForm(e)}),[w,R,e]),N({...w.validateMessages,...d}),T({onValuesChange:m,onFieldsChange:(_,...H)=>{w.triggerFormChange(e,_),g&&g(_,...H)},onFinish:_=>{w.triggerFormFinish(e,_),h&&h(_)},onFinishFailed:y}),O(a);const j=l.useRef(null);E(t,!j.current),j.current||(j.current=!0),l.useEffect(()=>()=>D(b),[]);let B;const V=typeof s=="function";if(V){const _=R.getFieldsValue(!0);B=s(_,R)}else B=s;$(!V);const U=l.useRef(null);l.useEffect(()=>{Y_(U.current||[],n||[])||R.setFields(n||[]),U.current=n},[n,R]);const G=l.useMemo(()=>({...R,validateTrigger:f}),[R,f]),Y=l.createElement(Zm.Provider,{value:null},l.createElement(Ns.Provider,{value:G},B));return c===!1?Y:l.createElement(c,wv({},v,{ref:C,onSubmit:_=>{_.preventDefault(),_.stopPropagation(),R.submit()},onReset:_=>{_.preventDefault(),R.resetFields(),v.onReset?.(_)}}),Y)};function jy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function tH(...e){const[t,n={}]=e,r=c_(n)?{form:n}:n,a=r.form,[s,c]=l.useState(()=>typeof t=="function"?t({}):void 0),d=l.useMemo(()=>jy(s),[s]),f=l.useRef(d);f.current=d;const m=l.useContext(Ns),g=a||m,h=g&&g._init,{getFieldsValue:y,getInternalHooks:b}=g,{registerWatch:v}=b(Qi),x=ct((w,R)=>{const $=r.preserve?R??y(!0):w??y(),E=typeof t=="function"?t($):Ao($,Hn(t));jy(s)!==jy(E)&&c(E)}),C=typeof t=="function"?t:JSON.stringify(t);return l.useEffect(()=>{h&&x()},[h,C]),l.useEffect(()=>h?v((R,$)=>{x(R,$)}):void 0,[h]),s}const nH=l.forwardRef(eH),Cd=nH;Cd.FormProvider=J_;Cd.Field=pO;Cd.List=G_;Cd.useForm=gO;Cd.useWatch=tH;const Tr=l.createContext({}),rH=({children:e,status:t,override:n})=>{const r=l.useContext(Tr),a=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(Tr.Provider,{value:a},e)},oH=l.createContext(void 0),Ta=e=>{const{space:t,form:n,children:r}=e;if(!Mr(r))return null;let a=r;return n&&(a=oe.createElement(rH,{override:!0,status:!0},a)),t&&(a=oe.createElement(PD,null,a)),a},aH=e=>{if(kr()&&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 r2(e,t){return aH(e)}const iH=()=>kr()&&window.document.documentElement;function hO(e,t,n){return l.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:n??!0},...e}),[e,t,n])}const Hp=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:s}=e,c=Q({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),d=Q({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),f=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:Q(t,c,d,n),style:{...f,...r}})},lH=new At("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ZS=e=>({height:e,lineHeight:te(e)}),pi=e=>({width:e,...ZS(e)}),sH=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:lH,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_y=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...ZS(e)}),cH=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...pi(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...pi(a)},[`${t}${t}-sm`]:{...pi(s)}}},uH=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:n,..._y(t,d)},[`${r}-lg`]:{..._y(a,d)},[`${r}-sm`]:{..._y(s,d)}}},yO=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:a}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...pi(a(r).mul(2).equal())}},dH=e=>({[e.skeletonNodeCls]:{...yO(e)}}),fH=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...yO(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...pi(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%"}}},Hy=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},By=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...ZS(e)}),mH=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,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(),...By(r,d)},...Hy(e,r,n),[`${n}-lg`]:{...By(a,d)},...Hy(e,a,`${n}-lg`),[`${n}-sm`]:{...By(s,d)},...Hy(e,s,`${n}-sm`)}},pH=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:s,skeletonInputCls:c,skeletonNodeCls:d,skeletonImageCls:f,controlHeight:m,controlHeightLG:g,controlHeightSM:h,gradientFromColor:y,padding:b,marginSM:v,borderRadius:x,titleHeight:C,blockRadius:w,paragraphLiHeight:R,controlHeightXS:$,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:b,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...pi(m)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...pi(g)},[`${n}-sm`]:{...pi(h)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:y,borderRadius:w,[`+ ${a}`]:{marginBlockStart:h}},[a]:{padding:0,"> li":{width:"100%",height:R,listStyle:"none",background:y,borderRadius:w,"+ li":{marginBlockStart:$}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${a} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:v,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...mH(e),...cH(e),...uH(e),...dH(e),...fH(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
163
|
+
${r},
|
|
164
|
+
${a} > li,
|
|
165
|
+
${n},
|
|
166
|
+
${s},
|
|
167
|
+
${c},
|
|
168
|
+
${d},
|
|
169
|
+
${f}
|
|
170
|
+
`]:{...sH(e)}}}},gH=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},xd=Pt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Nt(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 pH(r)},gH,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),hH=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:a,active:s,style:c,styles:d,shape:f="circle",size:m="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[b,v]=xd(y),x=Q(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,a,b,v);return l.createElement("div",{className:x,style:d?.root},l.createElement(Hp,{prefixCls:`${y}-avatar`,className:r?.content,style:{...d?.content,...c},shape:f,size:m,...g}))},yH=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:a,active:s,style:c,styles:d,block:f=!1,size:m="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[b,v]=xd(y),x=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:f},a?.root,n,r,b,v);return l.createElement("div",{className:x,style:d?.root},l.createElement(Hp,{prefixCls:`${y}-button`,className:a?.content,style:{...d?.content,...c},size:m,...g}))},bO=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:a,internalClassName:s,style:c,styles:d,active:f,children:m}=e,{getPrefixCls:g}=l.useContext(dt),h=g("skeleton",t),[y,b]=xd(h),v=Q(h,`${h}-element`,{[`${h}-active`]:f},y,r?.root,n,a,b);return l.createElement("div",{className:v,style:d?.root},l.createElement("div",{className:Q(r?.content,s||`${h}-node`),style:{...d?.content,...c}},m))},bH=e=>{const{getPrefixCls:t}=l.useContext(dt),n=t("skeleton",e.prefixCls);return l.createElement(bO,{...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:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},vH=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:a,active:s,block:c,style:d,styles:f,size:m="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[b,v]=xd(y),x=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:c},r?.root,n,a,b,v);return l.createElement("div",{className:x,style:f?.root},l.createElement(Hp,{prefixCls:`${y}-input`,className:r?.content,style:{...f?.content,...d},size:m,...g}))},SH=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},CH=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,s=Array.from({length:a}).map((c,d)=>l.createElement("li",{key:d,style:{width:SH(d,e)}}));return l.createElement("ul",{className:Q(t,n),style:r},s)},xH=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Q(e,t),style:{width:n,...r}});function Ly(e){return e&&typeof e=="object"?e:{}}function $H(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function wH(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function EH(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Si=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,classNames:s,style:c,styles:d,children:f,avatar:m=!1,title:g=!0,paragraph:h=!0,active:y,round:b}=e,{getPrefixCls:v,direction:x,className:C,style:w,classNames:R,styles:$}=Rt("skeleton"),E=v("skeleton",t),[T,N]=xd(E),O={...e,avatar:m,title:g,paragraph:h},[D,j]=Bt([R,s],[$,d],{props:O});if(n||!("loading"in e)){const B=!!m,V=!!g,U=!!h;let G;if(B){const H={className:D.avatar,prefixCls:`${E}-avatar`,...$H(V,U),...Ly(m),style:j.avatar};G=l.createElement("div",{className:Q(D.header,`${E}-header`),style:j.header},l.createElement(Hp,{...H}))}let Y;if(V||U){let H;if(V){const I={className:D.title,prefixCls:`${E}-title`,...wH(B,U),...Ly(g),style:j.title};H=l.createElement(xH,{...I})}let F;if(U){const I={className:D.paragraph,prefixCls:`${E}-paragraph`,...EH(B,V),...Ly(h),style:j.paragraph};F=l.createElement(CH,{...I})}Y=l.createElement("div",{className:Q(D.section,`${E}-section`),style:j.section},H,F)}const _=Q(E,{[`${E}-with-avatar`]:B,[`${E}-active`]:y,[`${E}-rtl`]:x==="rtl",[`${E}-round`]:b},D.root,C,r,a,T,N);return l.createElement("div",{className:_,style:{...j.root,...w,...c}},G,Y)}return f??null};Si.Button=yH;Si.Avatar=hH;Si.Input=vH;Si.Image=bH;Si.Node=bO;function o2(){}const MH=l.createContext({add:o2,remove:o2});function vO(e){const t=l.useContext(MH),n=l.useRef(null);return ct(a=>{if(a){const s=e?a.querySelector(e):a;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const a2=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(vd);return oe.createElement(_t,{onClick:n,...e},t)},i2=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(vd);return oe.createElement(_t,{...YS(n),loading:e,onClick:a,...t},r)};function SO(e,t){return oe.createElement("span",{className:`${e}-close-x`},t||oe.createElement(Ur,{className:`${e}-close-icon`}))}const CO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:s,onCancel:c,okButtonProps:d,cancelButtonProps:f,footer:m}=e,[g]=ao("Modal",bT()),h=t||g?.okText,y=r||g?.cancelText,b=oe.useMemo(()=>({confirmLoading:a,okButtonProps:d,cancelButtonProps:f,okTextLocale:h,cancelTextLocale:y,okType:n,onOk:s,onCancel:c}),[a,d,f,h,y,n,s,c]);let v;return typeof m=="function"||typeof m>"u"?(v=oe.createElement(oe.Fragment,null,oe.createElement(a2,null),oe.createElement(i2,null)),typeof m=="function"&&(v=m(v,{OkBtn:i2,CancelBtn:a2})),v=oe.createElement(lO,{value:b},v)):v=m,oe.createElement(BT,{disabled:!1},v)},RH=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"}}}},TH=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},OH=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:a}=e,[s,c]=Ut(a,"grid"),[,d]=Ut(a,"col"),f={};for(let m=r;m>=0;m--)m===0?(f[`${n}${t}-${m}`]={display:"none"},f[`${n}-push-${m}`]={insetInlineStart:"auto"},f[`${n}-pull-${m}`]={insetInlineEnd:"auto"},f[`${n}${t}-push-${m}`]={insetInlineStart:"auto"},f[`${n}${t}-pull-${m}`]={insetInlineEnd:"auto"},f[`${n}${t}-offset-${m}`]={marginInlineStart:0},f[`${n}${t}-order-${m}`]={order:0}):(f[`${n}${t}-${m}`]=[{[s("display")]:"block",display:"block"},{display:c("display"),flex:`0 0 ${m/r*100}%`,maxWidth:`${m/r*100}%`}],f[`${n}${t}-push-${m}`]={insetInlineStart:`${m/r*100}%`},f[`${n}${t}-pull-${m}`]={insetInlineEnd:`${m/r*100}%`},f[`${n}${t}-offset-${m}`]={marginInlineStart:`${m/r*100}%`},f[`${n}${t}-order-${m}`]={order:m});return f[`${n}${t}-flex`]={flex:d(`${t.replace(/-/,"")}-flex`)},f},Ev=(e,t)=>OH(e,t),NH=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...Ev(e,n)}}),IH=()=>({}),PH=()=>({}),zH=Pt("Grid",RH,IH),xO=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),AH=Pt("Grid",e=>{const t=Nt(e,{gridColumns:24}),n=xO(t);return delete n.xs,[TH(t),Ev(t,""),Ev(t,"-xs"),Object.keys(n).map(r=>NH(t,n[r],`-${r}`)).reduce((r,a)=>({...r,...a}),{})]},PH);function l2(e){return{position:e,inset:0}}const DH=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`]:{...l2("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...l2("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:rO(e)}]},jH=e=>{const{componentCls:t,motionDurationMid:n}=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]:{...Jt(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...jo(e)},[`${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","background-color"].map(r=>`${r} ${n}`).join(", "),"&-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},...wo(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,
|
|
171
|
+
${t}-body,
|
|
172
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},_H=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},HH=e=>{const{componentCls:t}=e,n=xO(e),r={...n};delete r.xs;const a=`--${t.replace(".","")}-`,s=Object.keys(r).map(c=>({[`@media (min-width: ${te(r[c])})`]:{width:`var(${a}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat($n(Object.keys(n).map((c,d)=>{const f=Object.keys(n)[d-1];return f?{[`${a}${c}-width`]:`var(${a}${f}-width)`}:null})),[{width:`var(${a}xs-width)`}],$n(s))}}},$O=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Nt(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()})},wO=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}),EO=Pt("Modal",e=>{const t=$O(e);return[jH(t),_H(t),DH(t),yd(t,"zoom"),HH(t)]},wO,{unitless:{titleLineHeight:!0}});let Mv;const BH=e=>{Mv={x:e.pageX,y:e.pageY},setTimeout(()=>{Mv=null},100)};iH()&&document.documentElement.addEventListener("click",BH,!0);const MO=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:s,centered:c,getContainer:d,style:f,width:m=520,footer:g,classNames:h,styles:y,children:b,loading:v,confirmLoading:x,zIndex:C,mousePosition:w,onOk:R,onCancel:$,okButtonProps:E,cancelButtonProps:T,destroyOnHidden:N,destroyOnClose:O,panelRef:D=null,closable:j,mask:B,modalRender:V,maskClosable:U,focusTriggerAfterClose:G,focusable:Y,..._}=e,{getPopupContainer:H,getPrefixCls:F,direction:I,className:z,style:L,classNames:P,styles:A,centered:k,cancelButtonProps:q,okButtonProps:K,mask:Z}=Rt("modal"),{modal:J}=l.useContext(dt),[re,ie]=l.useMemo(()=>typeof j=="boolean"?[void 0,void 0]:[j?.afterClose,j?.onClose],[j]),ne=F("modal",t),le=F(),[se,ce,me]=ST(B,Z,ne,U),ae=hO(Y,se,G),fe=Re=>{x||($?.(Re),ie?.())},ge=Re=>{R?.(Re),ie?.()},he=ir(ne),[ye,Ae]=EO(ne,he),xe=Q(s,{[`${ne}-centered`]:c??k,[`${ne}-wrap-rtl`]:I==="rtl"}),Se=g!==null&&!v?l.createElement(CO,{...e,okButtonProps:{...K,...E},onOk:ge,cancelButtonProps:{...q,...T},onCancel:fe}):null,[ue,ve,Me,Pe]=VS(Ms(e),Ms(J),{closable:!0,closeIcon:l.createElement(Ur,{className:`${ne}-close-icon`}),closeIconRender:Re=>SO(ne,Re)}),je=ue?{disabled:Me,closeIcon:ve,afterClose:re,...Pe}:!1,Be=V?Re=>l.createElement("div",{className:`${ne}-render`},V(Re)):void 0,Ze=`.${ne}-${V?"render":"container"}`,Fe=vO(Ze),_e=mr(D,Fe),[He,Ke]=vi("Modal",C),Ne={...e,width:m,panelRef:D,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusable:ae,mask:se,maskClosable:me,zIndex:He},[Ce,Ye]=Bt([P,h,ce],[A,y],{props:Ne}),[et,Le]=l.useMemo(()=>m&&typeof m=="object"?[void 0,m]:[m,void 0],[m]),Ge=l.useMemo(()=>{const Re={};return Le&&Object.keys(Le).forEach(Xe=>{const tt=Le[Xe];tt!==void 0&&(Re[`--${ne}-${Xe}-width`]=typeof tt=="number"?`${tt}px`:tt)}),Re},[ne,Le]);return l.createElement(Ta,{form:!0,space:!0},l.createElement(dd.Provider,{value:Ke},l.createElement(s_,{width:et,..._,zIndex:He,getContainer:d===void 0?H:d,prefixCls:ne,rootClassName:Q(ye,r,Ae,he,Ce.root),rootStyle:Ye.root,footer:Se,visible:a,mousePosition:w??Mv,onClose:fe,closable:je,closeIcon:ve,transitionName:Zo(le,"zoom",e.transitionName),maskTransitionName:Zo(le,"fade",e.maskTransitionName),mask:se,maskClosable:me,className:Q(ye,n,z),style:{...L,...f,...Ge},classNames:{...Ce,wrapper:Q(Ce.wrapper,xe)},styles:Ye,panelRef:_e,destroyOnHidden:N??O,modalRender:Be,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusTrap:ae.trap},v?l.createElement(Si,{active:!0,title:!1,paragraph:{rows:4},className:`${ne}-body-skeleton`}):b)))},LH=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:s,lineHeight:c,modalTitleHeight:d,fontHeight:f,confirmBodyPadding:m}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...al()},[`&${t} ${t}-body`]:{padding:m},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(d).sub(a).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},
|
|
173
|
+
${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}}},VH=cd(["Modal","confirm"],e=>{const t=$O(e);return LH(t)},wO,{order:-1e3}),RO=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:s,type:c,okCancel:d,footer:f,locale:m,autoFocusButton:g,focusable:h,...y}=e;let b=n;if(!n&&n!==null)switch(c){case"info":b=l.createElement(HS,null);break;case"success":b=l.createElement(Op,null);break;case"error":b=l.createElement(_s,null);break;default:b=l.createElement(Hs,null)}const v=d??c==="confirm",x=l.useMemo(()=>{const B=h?.autoFocusButton||g;return B||B===null?B:"ok"},[g,h?.autoFocusButton]),[C]=ao("Modal"),w=m||C,R=r||(v?w?.okText:w?.justOkText),$=a||w?.cancelText,{closable:E}=y,{onClose:T}=E&&typeof E=="object"?E:{},N=l.useMemo(()=>({autoFocusButton:x,cancelTextLocale:$,okTextLocale:R,mergedOkCancel:v,onClose:T,...y}),[x,$,R,v,T,y]),O=l.createElement(l.Fragment,null,l.createElement(kE,null),l.createElement(WE,null)),D=e.title!==void 0&&e.title!==null,j=`${s}-body`;return l.createElement("div",{className:`${s}-body-wrapper`},l.createElement("div",{className:Q(j,{[`${j}-has-title`]:D})},b,l.createElement("div",{className:`${s}-paragraph`},D&&l.createElement("span",{className:`${s}-title`},e.title),l.createElement("div",{className:`${s}-content`},e.content))),f===void 0||typeof f=="function"?l.createElement(lO,{value:N},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(O,{OkBtn:WE,CancelBtn:kE}):O)):f,l.createElement(VH,{prefixCls:t}))},FH=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:s,wrapClassName:c,rootPrefixCls:d,bodyStyle:f,closable:m=!1,onConfirm:g,styles:h,title:y,mask:b,maskClosable:v,okButtonProps:x,cancelButtonProps:C}=e,{cancelButtonProps:w,okButtonProps:R}=Rt("modal"),$=`${s}-confirm`,E=e.width||416,T=e.style||{},N=Q($,`${$}-${e.type}`,{[`${$}-rtl`]:a==="rtl"},e.className),O=l.useMemo(()=>{const B=nv(b,v);return B.closable??(B.closable=!1),B},[b,v]),[,D]=Yr(),j=l.useMemo(()=>n!==void 0?n:D.zIndexPopupBase+xT,[n,D]);return l.createElement(MO,{...e,className:N,wrapClassName:Q({[`${$}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Zo(d||"","zoom",e.transitionName),maskTransitionName:Zo(d||"","fade",e.maskTransitionName),mask:O,style:T,styles:{body:f,mask:r,...h},width:E,zIndex:j,closable:m},l.createElement(RO,{...e,confirmPrefixCls:$,okButtonProps:{...R,...x},cancelButtonProps:{...w,...C}}))},TO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(ta,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(FH,{...e}))},Zi=[];let OO="";function NO(){return OO}const kH=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,a=bT(),s=l.useContext(dt),c=NO()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),oe.createElement(TO,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??a,getContainer:f})};function $d(e){const t=kT(),n=document.createDocumentFragment();let r={...e,close:d,open:!0},a;function s(...m){m.some(h=>h?.triggerCancel)&&e.onCancel?.(()=>{},...m.slice(1));for(let h=0;h<Zi.length;h++)if(Zi[h]===d){Zi.splice(h,1);break}XT(n).then(()=>{})}const c=m=>{clearTimeout(a),a=setTimeout(()=>{const g=t.getPrefixCls(void 0,NO()),h=t.getIconPrefixCls(),y=t.getTheme(),b=oe.createElement(kH,{...m});WS(oe.createElement(ta,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(b):b),n)})};function d(...m){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,m)}},c(r)}function f(m){typeof m=="function"?r=m(r):r={...r,...m},c(r)}return c(r),Zi.push(d),{destroy:d,update:f}}function IO(e){return{...e,type:"warning"}}function PO(e){return{...e,type:"info"}}function zO(e){return{...e,type:"success"}}function AO(e){return{...e,type:"error"}}function DO(e){return{...e,type:"confirm"}}function WH({rootPrefixCls:e}){OO=e}const YH=({afterClose:e,config:t,...n},r)=>{const[a,s]=l.useState(!0),[c,d]=l.useState(t),{direction:f,getPrefixCls:m}=l.useContext(dt),g=m("modal"),h=m(),y=()=>{e(),c.afterClose?.()},b=(...C)=>{s(!1),C.some(R=>R?.triggerCancel)&&c.onCancel?.(()=>{},...C.slice(1))};l.useImperativeHandle(r,()=>({destroy:b,update:C=>{d(w=>{const R=typeof C=="function"?C(w):C;return{...w,...R}})}}));const v=c.okCancel??c.type==="confirm",[x]=ao("Modal",Ra.Modal);return l.createElement(TO,{prefixCls:g,rootPrefixCls:h,...c,close:b,open:a,afterClose:y,okText:c.okText||(v?x?.okText:x?.justOkText),direction:c.direction||f,cancelText:c.cancelText||x?.cancelText,...n})},UH=l.forwardRef(YH);let s2=0;const qH=l.memo(l.forwardRef((e,t)=>{const[n,r]=lA();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function GH(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&($n(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(s=>function(d){s2+=1;const f=l.createRef();let m;const g=new Promise(x=>{m=x});let h=!1,y;const b=l.createElement(UH,{key:`modal-${s2}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:x=>{m(x)}});return y=e.current?.patchElement(b),y&&Zi.push(y),{destroy:()=>{function x(){f.current?.destroy()}f.current?x():n(C=>[].concat($n(C),[x]))},update:x=>{function C(){f.current?.update(x)}f.current?C():n(w=>[].concat($n(w),[C]))},then:x=>(h=!0,g.then(x))}},[]);return[l.useMemo(()=>({info:r(PO),success:r(zO),error:r(AO),warning:r(IO),confirm:r(DO)}),[r]),l.createElement(qH,{key:"modal-holder",ref:e})]}const XH=oe.createContext({});function jO(e){return t=>l.createElement(ta,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const Bp=(e,t,n,r,a)=>jO(c=>{const{prefixCls:d,style:f}=c,m=l.useRef(null),[g,h]=l.useState(0),[y,b]=l.useState(0),[v,x]=Yt(!1,c.open),{getPrefixCls:C}=l.useContext(dt),w=C(r||"select",d);l.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(N=>{const O=N[0].target;h(O.offsetHeight+8),b(O.offsetWidth)}),T=setInterval(()=>{const N=a?`.${a(w)}`:`.${w}-dropdown`,O=m.current?.querySelector(N);O&&(clearInterval(T),E.observe(O))},10);return()=>{clearInterval(T),E.disconnect()}}},[w]);let R={...c,style:{...f,margin:0},open:v,getPopupContainer:()=>m.current};t&&Object.assign(R,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const $={paddingBottom:g,position:"relative",minWidth:y};return l.createElement("div",{ref:m,style:$},l.createElement(e,{...R}))}),KH=(e,t,n,r,a=!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=!a&&d.allowClear!==!1&&(t.length||s)&&!(c==="combobox"&&s==="");return{allowClear:f,clearIcon:f?d.clearIcon||r||"×":null}},[d,r,a,t.length,s,c])},_O=l.createContext(null);function ml(){return l.useContext(_O)}function QH(e=250){const t=l.useRef(null),n=l.useRef(null);l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function HO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function ZH(e,t,n,r){const a=ct(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&&!HO(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",a),()=>window.removeEventListener("mousedown",a)),[a])}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 JH=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"}}},eB=(e,t)=>{const{prefixCls:n,disabled:r,visible:a,children:s,popupElement:c,animation:d,transitionName:f,popupStyle:m,popupClassName:g,direction:h="ltr",placement:y,builtinPlacements:b,popupMatchSelectWidth:v,popupRender:x,popupAlign:C,getPopupContainer:w,empty:R,onPopupVisibleChange:$,onPopupMouseEnter:E,onPopupMouseDown:T,onPopupBlur:N,...O}=e,D=`${n}-dropdown`;let j=c;x&&(j=x(c));const B=l.useMemo(()=>b||JH(v),[b,v]),V=d?`${D}-${d}`:f,U=typeof v=="number",G=l.useMemo(()=>U?null:v===!1?"minWidth":"width",[v,U]);let Y=m;U&&(Y={...m,width:v});const _=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>_.current?.popupElement})),l.createElement(pd,Rv({},O,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:B,prefixCls:D,popupMotion:{motionName:V},popup:l.createElement("div",{onMouseEnter:E,onMouseDown:T,onBlur:N},j),ref:_,stretch:G,popupAlign:C,popupVisible:a,getPopupContainer:w,popupClassName:Q(g,{[`${D}-empty`]:R}),popupStyle:Y,onPopupVisibleChange:$}),s)},tB=l.forwardRef(eB);function c2(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 Tv(e){return typeof e<"u"&&!Number.isNaN(e)}function BO(e,t){const{label:n,value:r,options:a,groupLabel:s}=e||{},c=n||(t?"children":"label");return{label:c,value:r||"value",options:a||"options",groupLabel:s||c}}function nB(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:a,value:s,options:c,groupLabel:d}=BO(t,!1);function f(m,g){Array.isArray(m)&&m.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:c2(h,r.length),groupOption:g,data:h,label:h[a],value:y})}else{let y=h[d];y===void 0&&n&&(y=h.label),r.push({key:c2(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function Ov(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return rr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const rB=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const a=(c,[d,...f])=>{if(!d)return[c];const m=c.split(d);return r=r||m.length>1,m.reduce((g,h)=>[...g,...a(h,f)],[]).filter(Boolean)},s=a(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function oB(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:a,value:s})=>["number","string"].includes(typeof a)?a:s).join(", ")}`,n.length>r?", ...":null)}const aB=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},JS=(e,t=1)=>{if(t<=0){e();return}aB(()=>{JS(e,t-1)})};function iB(e,t,n,r){const[a,s]=l.useState(!1);l.useEffect(()=>{s(!0)},[]);const[c,d]=Yt(e,t),[f,m]=l.useState(!1),g=a?c:!1,h=r(g),y=l.useRef(0),b=ct(x=>{n&&h!==x&&n(x),d(x)}),v=ct((x,C={})=>{const{cancelFun:w}=C;y.current+=1;const R=y.current,$=typeof x=="boolean"?x:!h;m(!$);function E(){R===y.current&&!w?.()&&(b($),m(!1))}$?E():JS(()=>{E()})});return[g,h,v,f]}function Vy(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const LO=l.createContext(null);function wd(){return l.useContext(LO)}const VO=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:a,style:s,syncWidth:c,value:d,className:f,autoComplete:m,...g}=e,{prefixCls:h,mode:y,onSearch:b,onSearchSubmit:v,onInputBlur:x,autoFocus:C,tokenWithEnter:w,placeholder:R,components:{input:$="input"}}=wd(),{id:E,classNames:T,styles:N,open:O,activeDescendantId:D,role:j,disabled:B}=ml()||{},V=Q(`${h}-input`,T?.input,f),U=l.useRef(!1),G=l.useRef(null),Y=l.useRef(null);l.useImperativeHandle(t,()=>Y.current);const _=K=>{let{value:Z}=K.target;if(w&&G.current&&/[\r\n]/.test(G.current)){const J=G.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Z=Z.replace(J,G.current)}G.current=null,b&&b(Z,!0,U.current),n?.(K)},H=K=>{const{key:Z}=K,{value:J}=K.currentTarget;Z==="Enter"&&y==="tags"&&!U.current&&v&&v(J),r?.(K)},F=K=>{x?.(),a?.(K)},I=()=>{U.current=!0},z=K=>{if(U.current=!1,y!=="combobox"){const{value:Z}=K.currentTarget;b?.(Z,!0,!1)}},L=K=>{const{clipboardData:Z}=K,J=Z?.getData("text");G.current=J||""},[P,A]=l.useState(void 0);It(()=>{const K=Y.current;if(c&&K){K.style.width="0px";const Z=K.scrollWidth;A(Z),K.style.width=""}},[c,d]);const k={id:E,type:y==="combobox"?"text":"search",...g,ref:Y,style:{...N?.input,...s,"--select-input-width":P},autoFocus:C,autoComplete:m||"off",className:V,disabled:B,value:d||"",onChange:_,onKeyDown:H,onBlur:F,onPaste:L,onCompositionStart:I,onCompositionEnd:z,role:j||"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":O?`${E}_list`:void 0,"aria-autocomplete":"list","aria-controls":O?`${E}_list`:void 0,"aria-activedescendant":O?D:void 0};if(l.isValidElement($)){const K=$.props||{},Z={placeholder:e.placeholder||R,...k,...K};return Object.keys(K).forEach(J=>{const re=K[J];typeof re=="function"&&(Z[J]=(...ie)=>{re(...ie),k[J]?.(...ie)})}),Z.ref=mr($.ref,k.ref),l.cloneElement($,Z)}const q=$;return l.createElement(q,k)});function FO(e){const{prefixCls:t,placeholder:n,displayValues:r}=wd(),{classNames:a,styles:s}=ml(),{show:c=!0}=e;return r.length?null:l.createElement("div",{className:Q(`${t}-placeholder`,a?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},n)}const e1=l.createContext(null);function kO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function lB(e){return e!=null}function sB(e){return!e&&e!==0}function u2(e){return["string","number"].includes(typeof e)}function Nv(e){let t;return e&&(u2(e.title)?t=e.title.toString():u2(e.label)&&(t=e.label.toString())),t}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 cB=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:a,displayValues:s,maxLength:c,mode:d}=wd(),{triggerOpen:f,title:m,showSearch:g,classNames:h,styles:y}=ml(),b=l.useContext(e1),[v,x]=l.useState(!1),C=d==="combobox",w=s[0],R=l.useMemo(()=>C&&a&&!v&&f?a:g?r:"",[C,a,v,f,r,g]),[$,E,T,N]=l.useMemo(()=>{let j,B,V;if(w&&b?.flattenOptions){const G=b.flattenOptions.find(Y=>Y.value===w.value);G?.data&&(j=G.data.className,B=G.data.style,V=Nv(G.data))}return w&&!V&&(V=Nv(w)),m!==void 0&&(V=m),[j,B,V,!!j||!!B]},[w,b?.flattenOptions,m]);l.useEffect(()=>{C&&x(!1)},[C,a]);const O=w&&w.label!==null&&w.label!==void 0&&String(w.label).trim()!=="",D=w?N?l.createElement("div",{className:Q(`${n}-content-value`,$),style:{...R?{visibility:"hidden"}:{},...E},title:T},w.label):w.label:l.createElement(FO,{show:!R});return l.createElement("div",{className:Q(`${n}-content`,O&&`${n}-content-has-value`,R&&`${n}-content-has-search-value`,N&&`${n}-content-has-option-style`,h?.content),style:y?.content,title:N?void 0:T},D,l.createElement(VO,Iv({ref:t},e,{value:R,maxLength:d==="combobox"?c:void 0,onChange:j=>{x(!0),e.onChange?.(j)}})))}),rs=void 0;function uB(e,t){const{prefixCls:n,invalidate:r,item:a,renderItem:s,responsive:c,responsiveDisabled:d,registerSize:f,itemKey:m,className:g,style:h,children:y,display:b,order:v,component:x="div",...C}=e,w=c&&!b;function R(O){f(m,O)}l.useEffect(()=>()=>{R(null)},[]);const $=s&&a!==rs?s(a,{index:v}):y;let E;r||(E={opacity:w?0:1,height:w?0:rs,overflowY:w?"hidden":rs,order:c?v:rs,pointerEvents:w?"none":rs,position:w?"absolute":rs});const T={};w&&(T["aria-hidden"]=!0);let N=l.createElement(x,Xn({className:Q(!r&&n,g),style:{...E,...h}},T,C,{ref:t}),$);return c&&(N=l.createElement(oo,{onResize:({offsetWidth:O})=>{R(O)},disabled:d},N)),N}const eu=l.forwardRef(uB);function dB(e){if(typeof MessageChannel>"u")Ht(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function fB(){const e=l.useRef(null);return n=>{e.current||(e.current=[],dB(()=>{il.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function os(e,t){const[n,r]=l.useState(t),a=ct(s=>{e(()=>{r(s)})});return[n,a]}const ep=oe.createContext(null),mB=(e,t)=>{const n=l.useContext(ep);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Xn({},f,{ref:t}))}const{className:r,...a}=n,{className:s,...c}=e;return l.createElement(ep.Provider,{value:null},l.createElement(eu,Xn({ref:t,className:Q(r,s)},a,c)))},pB=l.forwardRef(mB),WO="responsive",YO="invalidate";function gB(e){return`+ ${e.length} ...`}function hB(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:a,renderRawItem:s,itemKey:c,itemWidth:d=10,ssr:f,style:m,className:g,maxCount:h,renderRest:y,renderRawRest:b,prefix:v,suffix:x,component:C="div",itemComponent:w,onVisibleChange:R,...$}=e,E=f==="full",T=fB(),[N,O]=os(T,null),D=N||0,[j,B]=os(T,new Map),[V,U]=os(T,0),[G,Y]=os(T,0),[_,H]=os(T,0),[F,I]=os(T,0),[z,L]=l.useState(null),[P,A]=l.useState(null),k=l.useMemo(()=>P===null&&E?Number.MAX_SAFE_INTEGER:P||0,[P,N]),[q,K]=l.useState(!1),Z=`${n}-item`,J=Math.max(V,G),re=h===WO,ie=r.length&&re,ne=h===YO,le=ie||typeof h=="number"&&r.length>h,se=l.useMemo(()=>{let _e=r;return ie?N===null&&E?_e=r:_e=r.slice(0,Math.min(r.length,D/d)):typeof h=="number"&&(_e=r.slice(0,h)),_e},[r,d,N,h,ie]),ce=l.useMemo(()=>ie?r.slice(k+1):r.slice(se.length),[r,se,ie,k]),me=l.useCallback((_e,He)=>typeof c=="function"?c(_e):(c&&_e?.[c])??He,[c]),ae=l.useCallback(a||(_e=>_e),[a]);function fe(_e,He,Ke){P===_e&&(He===void 0||He===z)||(A(_e),Ke||(K(_e<r.length-1),R?.(_e)),He!==void 0&&L(He))}function ge(_e,He){O(He.clientWidth)}function he(_e,He){B(Ke=>{const Ne=new Map(Ke);return He===null?Ne.delete(_e):Ne.set(_e,He),Ne})}function ye(_e,He){Y(He),U(G)}function Ae(_e,He){H(He)}function xe(_e,He){I(He)}function Se(_e){return j.get(me(se[_e],_e))}It(()=>{if(D&&typeof J=="number"&&se){let _e=_+F;const He=se.length,Ke=He-1;if(!He){fe(0,null);return}for(let Ne=0;Ne<He;Ne+=1){let Ce=Se(Ne);if(E&&(Ce=Ce||0),Ce===void 0){fe(Ne-1,void 0,!0);break}if(_e+=Ce,Ke===0&&_e<=D||Ne===Ke-1&&_e+Se(Ke)<=D){fe(Ke,null);break}else if(_e+J>D){fe(Ne-1,_e-Ce-F+G);break}}x&&Se(0)+F>D&&L(null)}},[D,j,G,_,F,me,se]);const ue=q&&!!ce.length;let ve={};z!==null&&ie&&(ve={position:"absolute",left:z,top:0});const Me={prefixCls:Z,responsive:ie,component:w,invalidate:ne},Pe=s?(_e,He)=>{const Ke=me(_e,He);return l.createElement(ep.Provider,{key:Ke,value:{...Me,order:He,item:_e,itemKey:Ke,registerSize:he,display:He<=k}},s(_e,He))}:(_e,He)=>{const Ke=me(_e,He);return l.createElement(eu,Xn({},Me,{order:He,key:Ke,item:_e,renderItem:ae,itemKey:Ke,registerSize:he,display:He<=k}))},je={order:ue?k:Number.MAX_SAFE_INTEGER,className:`${Z}-rest`,registerSize:ye,display:ue},Be=y||gB,Ze=b?l.createElement(ep.Provider,{value:{...Me,...je}},b(ce)):l.createElement(eu,Xn({},Me,je),typeof Be=="function"?Be(ce):Be),Fe=l.createElement(C,Xn({className:Q(!ne&&n,g),style:m,ref:t},$),v&&l.createElement(eu,Xn({},Me,{responsive:re,responsiveDisabled:!ie,order:-1,className:`${Z}-prefix`,registerSize:Ae,display:!0}),v),se.map(Pe),le?Ze:null,x&&l.createElement(eu,Xn({},Me,{responsive:re,responsiveDisabled:!ie,order:k,className:`${Z}-suffix`,registerSize:xe,display:!0,style:ve}),x));return re?l.createElement(oo,{onResize:ge,disabled:!ie},Fe):Fe}const Qo=l.forwardRef(hB);Qo.Item=pB;Qo.RESPONSIVE=WO;Qo.INVALIDATE=YO;const UO=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:a,children:s,onMouseDown:c,onClick:d}=e,f=typeof r=="function"?r(a):r;return l.createElement("span",{className:t,onMouseDown:m=>{m.preventDefault(),c?.(m)},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(m=>`${m}-icon`))},s))};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)}function yB(e){return e.key??e.value}const d2=e=>{e.preventDefault(),e.stopPropagation()},bB=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:a,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=wd(),{disabled:m,showSearch:g,triggerOpen:h,rawOpen:y,toggleOpen:b,autoClearSearchValue:v,tagRender:x,maxTagPlaceholder:C,maxTagTextLength:w,maxTagCount:R,classNames:$,styles:E}=ml(),T=`${r}-selection-item`;let N=s;!y&&c==="multiple"&&v!==!1&&(N="");const O=g&&N||"",D=g&&!m,j=f??"×",B=C??(I=>`+ ${I.length} ...`),V=x,U=I=>{b(I)},G=I=>{d?.(I)},Y=(I,z,L,P,A)=>l.createElement("span",{title:Nv(I),className:Q(T,{[`${T}-disabled`]:L},$?.item),style:E?.item},l.createElement("span",{className:Q(`${T}-content`,$?.itemContent),style:E?.itemContent},z),P&&l.createElement(UO,{className:Q(`${T}-remove`,$?.itemRemove),style:E?.itemRemove,onMouseDown:d2,onClick:A,customizeIcon:j},"×")),_=(I,z,L,P,A,k,q)=>{const K=Z=>{d2(Z),U(!h)};return l.createElement("span",{onMouseDown:K},V({label:z,value:I,index:q?.index,disabled:L,closable:P,onClose:A,isMaxTag:!!k}))},H=(I,z)=>{const{disabled:L,label:P,value:A}=I,k=!m&&!L;let q=P;if(typeof w=="number"&&(typeof P=="string"||typeof P=="number")){const Z=String(q);Z.length>w&&(q=`${Z.slice(0,w)}...`)}const K=Z=>{Z&&Z.stopPropagation(),G(I)};return typeof V=="function"?_(A,q,L,k,K,void 0,z):Y(I,q,L,k,K)},F=I=>{if(!a.length)return null;const z=typeof B=="function"?B(I):B;return typeof V=="function"?_(void 0,z,!1,!1,void 0,!0):Y({title:z},z,!1)};return l.createElement(Qo,{prefixCls:`${r}-content`,className:$?.content,style:E?.content,prefix:!a.length&&!O&&l.createElement(FO,null),data:a,renderItem:H,renderRest:F,suffix:l.createElement(VO,Pv({ref:n,disabled:m,readOnly:!D},t,{value:O||"",syncWidth:!0})),itemKey:yB,maxCount:R})}),vB=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:a,tabIndex:s}=wd(),c=ml(),{showSearch:d}=c,m={...An(c,{aria:!0}),onKeyDown:a,readOnly:!d,tabIndex:s};return r?l.createElement(bB,{ref:n,inputProps:m}):l.createElement(cB,{ref:n,inputProps:m})});function SB(e){return e&&![it.ESC,it.SHIFT,it.BACKSPACE,it.TAB,it.WIN_KEY,it.ALT,it.META,it.WIN_KEY_RIGHT,it.CTRL,it.SEMICOLON,it.EQUALS,it.CAPS_LOCK,it.CONTEXT_MENU,it.UP,it.LEFT,it.RIGHT,it.F1,it.F2,it.F3,it.F4,it.F5,it.F6,it.F7,it.F8,it.F9,it.F10,it.F11,it.F12].includes(e)}function tp(){return tp=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},tp.apply(this,arguments)}const CB=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],xB=l.forwardRef(function(t,n){const{prefixCls:r,className:a,style:s,prefix:c,suffix:d,clearIcon:f,children:m,multiple:g,displayValues:h,placeholder:y,mode:b,searchValue:v,onSearch:x,onSearchSubmit:C,onInputBlur:w,maxLength:R,autoFocus:$,onMouseDown:E,onClearMouseDown:T,onInputKeyDown:N,onSelectorRemove:O,tokenWithEnter:D,components:j,...B}=t,{triggerOpen:V,toggleOpen:U,showSearch:G,disabled:Y,loading:_,classNames:H,styles:F}=ml(),I=l.useRef(null),z=l.useRef(null),L=ct(J=>{const{which:re}=J,ie=z.current instanceof HTMLTextAreaElement;if(!ie&&V&&(re===it.UP||re===it.DOWN)&&J.preventDefault(),N&&N(J),ie&&!V&&~[it.UP,it.DOWN,it.LEFT,it.RIGHT].indexOf(re))return;!(J.ctrlKey||J.altKey||J.metaKey)&&SB(re)&&U(!0)});l.useImperativeHandle(n,()=>({focus:J=>{(z.current||I.current).focus?.(J)},blur:()=>{(z.current||I.current).blur?.()},nativeElement:I.current}));const P=ct(J=>{if(!Y){const re=ws(z.current);J.nativeEvent._ori_target=re,re&&J.target!==re&&!re.contains(J.target)&&J.preventDefault();const ie=V&&!g&&(b==="combobox"||G);J.nativeEvent._select_lazy?V&&U(!1):(z.current?.focus(),ie||U())}E?.(J)}),{root:A}=j,k=rn(B,CB),q=An(k,{aria:!0}),K=Object.keys(q),Z={...t,onInputKeyDown:L};return A?l.isValidElement(A)?l.cloneElement(A,{...k,ref:mr(A.ref,I)}):l.createElement(A,tp({},k,{ref:I})):l.createElement(LO.Provider,{value:Z},l.createElement("div",tp({},rn(k,K),{ref:I,className:a,style:s,onMouseDown:P}),l.createElement(Vy,{className:Q(`${r}-prefix`,H?.prefix),style:F?.prefix},c),l.createElement(vB,{ref:z}),l.createElement(Vy,{className:Q(`${r}-suffix`,{[`${r}-suffix-loading`]:_},H?.suffix),style:F?.suffix},d),f&&l.createElement(Vy,{className:Q(`${r}-clear`,H?.clear),style:F?.clear,onMouseDown:J=>{J.nativeEvent._select_lazy=!0,T?.(J)}},f),m))});function $B(e,t,n){return l.useMemo(()=>{let{root:r,input:a}=e||{};return n&&(r=n()),t&&(a=t()),{root:r,input:a}},[e,t,n])}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 Av=e=>e==="tags"||e==="multiple",wB=l.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:a,styles:s,classNames:c,showSearch:d,tagRender:f,showScrollBar:m="optional",direction:g,omitDomProps:h,displayValues:y,onDisplayValuesChange:b,emptyOptions:v,notFoundContent:x="Not Found",onClear:C,maxCount:w,placeholder:R,mode:$,disabled:E,loading:T,getInputElement:N,getRawInputElement:O,open:D,defaultOpen:j,onPopupVisibleChange:B,activeValue:V,onActiveValueChange:U,activeDescendantId:G,searchValue:Y,autoClearSearchValue:_,onSearch:H,onSearchSplit:F,tokenSeparators:I,allowClear:z,prefix:L,suffix:P,suffixIcon:A,clearIcon:k,OptionList:q,animation:K,transitionName:Z,popupStyle:J,popupClassName:re,popupMatchSelectWidth:ie,popupRender:ne,popupAlign:le,placement:se,builtinPlacements:ce,getPopupContainer:me,showAction:ae=[],onFocus:fe,onBlur:ge,onKeyUp:he,onKeyDown:ye,onMouseDown:Ae,components:xe,...Se}=e,ue=Av($),ve=l.useRef(null),Me=l.useRef(null),Pe=l.useRef(null),[je,Be]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:ve.current?.focus,blur:ve.current?.blur,scrollTo:nt=>Pe.current?.scrollTo(nt),nativeElement:ws(ve.current)}));const Ze=$B(xe,N,O),Fe=l.useMemo(()=>{if($!=="combobox")return Y;const nt=y[0]?.value;return typeof nt=="string"||typeof nt=="number"?String(nt):""},[Y,$,y]),_e=$==="combobox"&&typeof N=="function"&&N()||null,He=!x&&v,[Ke,Ne,Ce,Ye]=iB(j||!1,D,B,nt=>E||He?!1:nt),et=l.useMemo(()=>(I||[]).some(nt=>[`
|
|
174
|
+
`,`\r
|
|
175
|
+
`].includes(nt)),[I]),Le=(nt,gt,Dt)=>{if(ue&&Tv(w)&&y.length>=w)return;let en=!0,Vt=nt;U?.(null);const tn=rB(nt,I,Tv(w)?w-y.length:void 0),on=Dt?null:tn;return $!=="combobox"&&on&&(Vt="",F?.(on),Ce(!1),en=!1),H&&Fe!==Vt&&H(Vt,{source:gt?"typing":"effect"}),nt&>&&en&&Ce(!0),en},Ge=nt=>{!nt||!nt.trim()||H(nt,{source:"submit"})};l.useEffect(()=>{!Ke&&!ue&&$!=="combobox"&&Le("",!1,!1)},[Ke]),l.useEffect(()=>{E&&(Ce(!1),Be(!1))},[E,Ne]);const[Re,Xe]=QH(),tt=l.useRef(!1),at=nt=>{const gt=Re(),{key:Dt}=nt,en=Dt==="Enter",Vt=Dt===" ";if(en||Vt){const tn=$==="combobox";(Vt&&!(tn||d)||en&&!tn)&&nt.preventDefault(),Ne||Ce(!0)}if(Xe(!!Fe),Dt==="Backspace"&&!gt&&ue&&!Fe&&y.length){const tn=[...y];let on=null;for(let Pn=tn.length-1;Pn>=0;Pn-=1){const an=tn[Pn];if(!an.disabled){tn.splice(Pn,1),on=an;break}}on&&b(tn,{type:"remove",values:[on]})}Ne&&(!en||!tt.current)&&!Vt&&(en&&(tt.current=!0),Pe.current?.onKeyDown(nt)),ye?.(nt)},bt=(nt,...gt)=>{Ne&&Pe.current?.onKeyUp(nt,...gt),nt.key==="Enter"&&(tt.current=!1),he?.(nt,...gt)},ht=ct(nt=>{const gt=y.filter(Dt=>Dt!==nt);b(gt,{type:"remove",values:[nt]})}),xt=()=>{tt.current=!1},ke=()=>[ws(ve.current),Me.current?.getPopupElement()];ZH(ke,Ne,Ce,!!Ze.root);const Qe=l.useRef(!1),ze=nt=>{Be(!0),E||(ae.includes("focus")&&Ce(!0),fe?.(nt))},Ie=()=>{Ne&&!Qe.current&&Ce(!1,{cancelFun:()=>HO(ke(),document.activeElement)})},Ue=nt=>{Be(!1),Fe&&($==="tags"?H(Fe,{source:"submit"}):$==="multiple"&&H("",{source:"blur"})),Ie(),E||ge?.(nt)},Te=(nt,...gt)=>{const{target:Dt}=nt;Me.current?.getPopupElement()?.contains(Dt)&&Ce&&Ce(!0),Ae?.(nt,...gt),Qe.current=!0,JS(()=>{Qe.current=!1})},[,qe]=l.useState({});function Je(){qe({})}let ot;Ze.root&&(ot=nt=>{Ce(nt)});const ft=l.useMemo(()=>({...e,notFoundContent:x,open:Ne,triggerOpen:Ne,rawOpen:Ke,id:n,showSearch:d,multiple:ue,toggleOpen:Ce,showScrollBar:m,styles:s,classNames:c,lockOptions:Ye}),[e,x,Ce,n,d,ue,Ne,Ke,m,s,c,Ye]),Lt=l.useMemo(()=>{const nt=P??A;return typeof nt=="function"?nt({searchValue:Fe,open:Ne,focused:je,showSearch:d,loading:T}):nt},[P,A,Fe,Ne,je,d,T]),Tt=()=>{C?.(),ve.current?.focus(),b([],{type:"clear",values:y}),Le("",!1,!1)},{allowClear:$t,clearIcon:dn}=KH(r,y,z,k,E,Fe,$),Mn=l.createElement(q,{ref:Pe}),lt=Q(r,a,{[`${r}-focused`]:je,[`${r}-multiple`]:ue,[`${r}-single`]:!ue,[`${r}-allow-clear`]:$t,[`${r}-show-arrow`]:Lt!=null,[`${r}-disabled`]:E,[`${r}-loading`]:T,[`${r}-open`]:Ne,[`${r}-customize-input`]:_e,[`${r}-show-search`]:d});let Wt=l.createElement(xB,zv({},Se,{ref:ve,prefixCls:r,className:lt,focused:je,prefix:L,suffix:Lt,clearIcon:dn,multiple:ue,mode:$,displayValues:y,placeholder:R,searchValue:Fe,activeValue:V,onSearch:Le,onSearchSubmit:Ge,onInputBlur:xt,onFocus:ze,onBlur:Ue,onClearMouseDown:Tt,onKeyDown:at,onKeyUp:bt,onSelectorRemove:ht,tokenWithEnter:et,onMouseDown:Te,components:Ze}));return Wt=l.createElement(tB,{ref:Me,disabled:E,prefixCls:r,visible:Ne,popupElement:Mn,animation:K,transitionName:Z,popupStyle:J,popupClassName:re,direction:g,popupMatchSelectWidth:ie,popupRender:ne,popupAlign:le,placement:se,builtinPlacements:ce,getPopupContainer:me,empty:v,onPopupVisibleChange:ot,onPopupMouseEnter:Je,onPopupMouseDown:Te,onPopupBlur:Ie},Wt),l.createElement(_O.Provider,{value:ft},l.createElement(oB,{visible:je&&!Ne,values:y}),Wt)}),t1=()=>null;t1.isSelectOptGroup=!0;const n1=()=>null;n1.isSelectOption=!0;const qO=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:a,onInnerResize:s,innerProps:c,rtl:d,extra:f},m)=>{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(oo,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Xn({style:h,className:Q({[`${a}-holder-inner`]:a}),ref:m},c),r,f)))});qO.displayName="Filler";function EB({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function MB(e,t,n,r,a,s,c,{getKey:d}){return e.slice(t,n+1).map((f,m)=>{const g=t+m,h=c(f,g,{style:{width:r},offsetX:a}),y=d(f);return l.createElement(EB,{key:y,setRef:b=>s(f,b)},h)})}function RB(e,t,n){const r=e.length,a=t.length;let s,c;if(r===0&&a===0)return null;r<a?(s=e,c=t):(s=t,c=e);const d={__EMPTY_ITEM__:!0};function f(h){return h!==void 0?n(h):d}let m=null,g=Math.abs(r-a)!==1;for(let h=0;h<c.length;h+=1){const y=f(s[h]),b=f(c[h]);if(y!==b){m=h,g=g||y!==f(c[h+1]);break}}return m===null?null:{index:m,multiple:g}}function TB(e,t,n){const[r,a]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=RB(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),a(e)},[e]),[s]}const f2=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),GO=((e,t,n,r)=>{const a=l.useRef(!1),s=l.useRef(null);function c(){clearTimeout(s.current),a.current=!0,s.current=setTimeout(()=>{a.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,m,g=!1)=>{const h=f?m<0&&d.current.left||m>0&&d.current.right:m<0&&d.current.top||m>0&&d.current.bottom;return g&&h?(clearTimeout(s.current),a.current=!1):(!h||a.current)&&c(),!a.current&&h}});function OB(e,t,n,r,a,s,c){const d=l.useRef(0),f=l.useRef(null),m=l.useRef(null),g=l.useRef(!1),h=GO(t,n,r,a);function y(R,$){if(Ht.cancel(f.current),h(!1,$))return;const E=R;if(!E._virtualHandled)E._virtualHandled=!0;else return;d.current+=$,m.current=$,f2||E.preventDefault(),f.current=Ht(()=>{const T=g.current?10:1;c(d.current*T,!1),d.current=0})}function b(R,$){c($,!0),f2||R.preventDefault()}const v=l.useRef(null),x=l.useRef(null);function C(R){if(!e)return;Ht.cancel(x.current),x.current=Ht(()=>{v.current=null},2);const{deltaX:$,deltaY:E,shiftKey:T}=R;let N=$,O=E;(v.current==="sx"||!v.current&&T&&E&&!$)&&(N=E,O=0,v.current="sx");const D=Math.abs(N),j=Math.abs(O);v.current===null&&(v.current=s&&D>j?"x":"y"),v.current==="y"?y(R,O):b(R,N)}function w(R){e&&(g.current=R.detail===m.current)}return[C,w]}function NB(e,t,n,r){const[a,s]=l.useMemo(()=>[new Map,[]],[e,n.id,r]);return(d,f=d)=>{let m=a.get(d),g=a.get(f);if(m===void 0||g===void 0){const h=e.length;for(let y=s.length;y<h;y+=1){const b=e[y],v=t(b);a.set(v,y);const x=n.get(v)??r;if(s[y]=(s[y-1]||0)+x,v===d&&(m=y),v===f&&(g=y),m!==void 0&&g!==void 0)break}}return{top:s[m-1]||0,bottom:s[g]}}}class IB{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 m2(e){const t=parseFloat(e);return isNaN(t)?0:t}function PB(e,t,n){const[r,a]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new IB),d=l.useRef(0);function f(){d.current+=1}function m(h=!1){f();const y=()=>{let b=!1;s.current.forEach((v,x)=>{if(v&&v.offsetParent){const{offsetHeight:C}=v,{marginTop:w,marginBottom:R}=getComputedStyle(v),$=m2(w),E=m2(R),T=C+$+E;c.current.get(x)!==T&&(c.current.set(x,T),b=!0)}}),b&&a(v=>v+1)};if(h)y();else{d.current+=1;const b=d.current;Promise.resolve().then(()=>{b===d.current&&y()})}}function g(h,y){const b=e(h);s.current.get(b),y?(s.current.set(b,y),m()):s.current.delete(b)}return l.useEffect(()=>f,[]),[g,m,c.current,r]}const p2=14/15;function zB(e,t,n){const r=l.useRef(!1),a=l.useRef(0),s=l.useRef(0),c=l.useRef(null),d=l.useRef(null);let f;const m=y=>{if(r.current){const b=Math.ceil(y.touches[0].pageX),v=Math.ceil(y.touches[0].pageY);let x=a.current-b,C=s.current-v;const w=Math.abs(x)>Math.abs(C);w?a.current=b:s.current=v;const R=n(w,w?x:C,!1,y);R&&y.preventDefault(),clearInterval(d.current),R&&(d.current=setInterval(()=>{w?x*=p2:C*=p2;const $=Math.floor(w?x:C);(!n(w,$,!0)||Math.abs($)<=.1)&&clearInterval(d.current)},16))}},g=()=>{r.current=!1,f()},h=y=>{f(),y.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(y.touches[0].pageX),s.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",m,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};f=()=>{c.current&&(c.current.removeEventListener("touchmove",m),c.current.removeEventListener("touchend",g))},It(()=>(e&&t.current.addEventListener("touchstart",h,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",h),f(),clearInterval(d.current)}),[e])}function g2(e){return Math.floor(e**.5)}function Dv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function AB(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let a=!1,s,c;const d=()=>{Ht.cancel(s)},f=()=>{d(),s=Ht(()=>{n(c),f()})},m=()=>{a=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const b=y;b._virtualHandled||(b._virtualHandled=!0,a=!0)},h=y=>{if(a){const b=Dv(y,!1),{top:v,bottom:x}=r.getBoundingClientRect();if(b<=v){const C=v-b;c=-g2(C),f()}else if(b>=x){const C=b-x;c=g2(C),f()}else d()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",h),r.ownerDocument.addEventListener("dragend",m),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",h),r.ownerDocument.removeEventListener("dragend",m),d()}}},[e])}const DB=10;function jB(e,t,n,r,a,s,c,d){const f=l.useRef(),[m,g]=l.useState(null);return It(()=>{if(m&&m.times<DB){if(!e.current){g($=>({...$}));return}s();const{targetAlign:h,originAlign:y,index:b,offset:v}=m,x=e.current.clientHeight;let C=!1,w=h,R=null;if(x){const $=h||y;let E=0,T=0,N=0;const O=Math.min(t.length-1,b);for(let j=0;j<=O;j+=1){const B=a(t[j]);T=E;const V=n.get(B);N=T+(V===void 0?r:V),E=N}let D=$==="top"?v:x-v;for(let j=O;j>=0;j-=1){const B=a(t[j]),V=n.get(B);if(V===void 0){C=!0;break}if(D-=V,D<=0)break}switch($){case"top":R=T-v;break;case"bottom":R=N-x+v;break;default:{const{scrollTop:j}=e.current,B=j+x;T<j?w="top":N>B&&(w="bottom")}}R!==null&&c(R),R!==m.lastTop&&(C=!0)}C&&g({...m,times:m.times+1,targetAlign:w,lastTop:R})}},[m,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:b}=h;"index"in h?{index:y}=h:y=t.findIndex(x=>a(x)===h.key);const{offset:v=0}=h;g({times:0,index:y,offset:v,originAlign:b})}}}const h2=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:a,scrollRange:s,onStartMove:c,onStopMove:d,onScroll:f,horizontal:m,spinSize:g,containerSize:h,style:y,thumbStyle:b,showScrollBar:v}=e,[x,C]=l.useState(!1),[w,R]=l.useState(null),[$,E]=l.useState(null),T=!r,N=l.useRef(),O=l.useRef(),[D,j]=l.useState(v),B=l.useRef(),V=()=>{v===!0||v===!1||(clearTimeout(B.current),j(!0),B.current=setTimeout(()=>{j(!1)},3e3))},U=s-h||0,G=h-g||0,Y=l.useMemo(()=>a===0||U===0?0:a/U*G,[a,U,G]),_=k=>{k.stopPropagation(),k.preventDefault()},H=l.useRef({top:Y,dragging:x,pageY:w,startTop:$});H.current={top:Y,dragging:x,pageY:w,startTop:$};const F=k=>{C(!0),R(Dv(k,m)),E(H.current.top),c(),k.stopPropagation(),k.preventDefault()};l.useEffect(()=>{const k=Z=>{Z.preventDefault()},q=N.current,K=O.current;return q.addEventListener("touchstart",k,{passive:!1}),K.addEventListener("touchstart",F,{passive:!1}),()=>{q.removeEventListener("touchstart",k),K.removeEventListener("touchstart",F)}},[]);const I=l.useRef();I.current=U;const z=l.useRef();z.current=G,l.useEffect(()=>{if(x){let k;const q=Z=>{const{dragging:J,pageY:re,startTop:ie}=H.current;Ht.cancel(k);const ne=N.current.getBoundingClientRect(),le=h/(m?ne.width:ne.height);if(J){const se=(Dv(Z,m)-re)*le;let ce=ie;!T&&m?ce-=se:ce+=se;const me=I.current,ae=z.current,fe=ae?ce/ae:0;let ge=Math.ceil(fe*me);ge=Math.max(ge,0),ge=Math.min(ge,me),k=Ht(()=>{f(ge,m)})}},K=()=>{C(!1),d()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),Ht.cancel(k)}}},[x]),l.useEffect(()=>(V(),()=>{clearTimeout(B.current)}),[a]),l.useImperativeHandle(t,()=>({delayHidden:V}));const L=`${n}-scrollbar`,P={position:"absolute",visibility:D?null:"hidden"},A={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(P,{height:8,left:0,right:0,bottom:0}),Object.assign(A,{height:"100%",width:g,[T?"left":"right"]:Y})):(Object.assign(P,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(A,{width:"100%",height:g,top:Y})),l.createElement("div",{ref:N,className:Q(L,{[`${L}-horizontal`]:m,[`${L}-vertical`]:!m,[`${L}-visible`]:D}),style:{...P,...y},onMouseDown:_,onMouseMove:V},l.createElement("div",{ref:O,className:Q(`${L}-thumb`,{[`${L}-thumb-moving`]:x}),style:{...A,...b},onMouseDown:F}))}),_B=20;function y2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,_B),Math.floor(n)}const HB=[],BB={overflowY:"auto",overflowAnchor:"none"};function LB(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:a,itemHeight:s,fullHeight:c=!0,style:d,data:f,children:m,itemKey:g,virtual:h,direction:y,scrollWidth:b,component:v="div",onScroll:x,onVirtualScroll:C,onVisibleChange:w,innerProps:R,extraRender:$,styles:E,showScrollBar:T="optional",...N}=e,O=l.useCallback(ze=>typeof g=="function"?g(ze):ze?.[g],[g]),[D,j,B,V]=PB(O),U=!!(h!==!1&&a&&s),G=l.useMemo(()=>Object.values(B.maps).reduce((ze,Ie)=>ze+Ie,0),[B.id,B.maps]),Y=U&&f&&(Math.max(s*f.length,G)>a||!!b),_=y==="rtl",H=Q(n,{[`${n}-rtl`]:_},r),F=f||HB,I=l.useRef(),z=l.useRef(),L=l.useRef(),[P,A]=l.useState(0),[k,q]=l.useState(0),[K,Z]=l.useState(!1),J=()=>{Z(!0)},re=()=>{Z(!1)},ie={getKey:O};function ne(ze){A(Ie=>{let Ue;typeof ze=="function"?Ue=ze(Ie):Ue=ze;const Te=je(Ue);return I.current.scrollTop=Te,Te})}const le=l.useRef({start:0,end:F.length}),se=l.useRef(),[ce]=TB(F,O);se.current=ce;const{scrollHeight:me,start:ae,end:fe,offset:ge}=l.useMemo(()=>{if(!U)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!Y)return{scrollHeight:z.current?.offsetHeight||0,start:0,end:F.length-1,offset:void 0};let ze=0,Ie,Ue,Te;const qe=F.length;for(let Je=0;Je<qe;Je+=1){const ot=F[Je],ft=O(ot),Lt=B.get(ft),Tt=ze+(Lt===void 0?s:Lt);Tt>=P&&Ie===void 0&&(Ie=Je,Ue=ze),Tt>P+a&&Te===void 0&&(Te=Je),ze=Tt}return Ie===void 0&&(Ie=0,Ue=0,Te=Math.ceil(a/s)),Te===void 0&&(Te=F.length-1),Te=Math.min(Te+1,F.length-1),{scrollHeight:ze,start:Ie,end:Te,offset:Ue}},[Y,U,P,F,V,a]);le.current.start=ae,le.current.end=fe,l.useLayoutEffect(()=>{const ze=B.getRecord();if(ze.size===1){const Ie=Array.from(ze.keys())[0],Ue=ze.get(Ie),Te=F[ae];if(Te&&Ue===void 0&&O(Te)===Ie){const ot=B.get(Ie)-s;ne(ft=>ft+ot)}}B.resetRecord()},[me]);const[he,ye]=l.useState({width:0,height:a}),Ae=ze=>{ye({width:ze.offsetWidth,height:ze.offsetHeight})},xe=l.useRef(),Se=l.useRef(),ue=l.useMemo(()=>y2(he.width,b),[he.width,b]),ve=l.useMemo(()=>y2(he.height,me),[he.height,me]),Me=me-a,Pe=l.useRef(Me);Pe.current=Me;function je(ze){let Ie=ze;return Number.isNaN(Pe.current)||(Ie=Math.min(Ie,Pe.current)),Ie=Math.max(Ie,0),Ie}const Be=P<=0,Ze=P>=Me,Fe=k<=0,_e=k>=b,He=GO(Be,Ze,Fe,_e),Ke=()=>({x:_?-k:k,y:P}),Ne=l.useRef(Ke()),Ce=ct(ze=>{if(C){const Ie={...Ke(),...ze};(Ne.current.x!==Ie.x||Ne.current.y!==Ie.y)&&(C(Ie),Ne.current=Ie)}});function Ye(ze,Ie){const Ue=ze;Ie?(il.flushSync(()=>{q(Ue)}),Ce()):ne(Ue)}function et(ze){const{scrollTop:Ie}=ze.currentTarget;Ie!==P&&ne(Ie),x?.(ze),Ce()}const Le=ze=>{let Ie=ze;const Ue=b?b-he.width:0;return Ie=Math.max(Ie,0),Ie=Math.min(Ie,Ue),Ie},Ge=ct((ze,Ie)=>{Ie?(il.flushSync(()=>{q(Ue=>{const Te=Ue+(_?-ze:ze);return Le(Te)})}),Ce()):ne(Ue=>Ue+ze)}),[Re,Xe]=OB(U,Be,Ze,Fe,_e,!!b,Ge);zB(U,I,(ze,Ie,Ue,Te)=>{const qe=Te;return He(ze,Ie,Ue)?!1:!qe||!qe._virtualHandled?(qe&&(qe._virtualHandled=!0),Re({preventDefault(){},deltaX:ze?Ie:0,deltaY:ze?0:Ie}),!0):!1}),AB(Y,I,ze=>{ne(Ie=>Ie+ze)}),It(()=>{function ze(Ue){const Te=Be&&Ue.detail<0,qe=Ze&&Ue.detail>0;U&&!Te&&!qe&&Ue.preventDefault()}const Ie=I.current;return Ie.addEventListener("wheel",Re,{passive:!1}),Ie.addEventListener("DOMMouseScroll",Xe,{passive:!0}),Ie.addEventListener("MozMousePixelScroll",ze,{passive:!1}),()=>{Ie.removeEventListener("wheel",Re),Ie.removeEventListener("DOMMouseScroll",Xe),Ie.removeEventListener("MozMousePixelScroll",ze)}},[U,Be,Ze]),It(()=>{if(b){const ze=Le(k);q(ze),Ce({x:ze})}},[he.width,b]);const tt=()=>{xe.current?.delayHidden(),Se.current?.delayHidden()},at=jB(I,F,B,s,O,()=>j(!0),ne,tt);l.useImperativeHandle(t,()=>({nativeElement:L.current,getScrollInfo:Ke,scrollTo:ze=>{function Ie(Ue){return Ue&&typeof Ue=="object"&&("left"in Ue||"top"in Ue)}Ie(ze)?(ze.left!==void 0&&q(Le(ze.left)),at(ze.top)):at(ze)}})),It(()=>{if(w){const ze=F.slice(ae,fe+1);w(ze,F)}},[ae,fe,F]);const bt=NB(F,O,B,s),ht=$?.({start:ae,end:fe,virtual:Y,offsetX:k,offsetY:ge,rtl:_,getSize:bt}),xt=MB(F,ae,fe,b,k,D,m,ie);let ke=null;a&&(ke={[c?"height":"maxHeight"]:a,...BB},U&&(ke.overflowY="hidden",b&&(ke.overflowX="hidden"),K&&(ke.pointerEvents="none")));const Qe={};return _&&(Qe.dir="rtl"),l.createElement("div",Xn({ref:L,style:{...d,position:"relative"},className:H},Qe,N),l.createElement(oo,{onResize:Ae},l.createElement(v,{className:`${n}-holder`,style:ke,ref:I,onScroll:et,onMouseEnter:tt},l.createElement(qO,{prefixCls:n,height:me,offsetX:k,offsetY:ge,scrollWidth:b,onInnerResize:j,ref:z,innerProps:R,rtl:_,extra:ht},xt))),Y&&me>a&&l.createElement(h2,{ref:xe,prefixCls:n,scrollOffset:P,scrollRange:me,rtl:_,onScroll:Ye,onStartMove:J,onStopMove:re,spinSize:ve,containerSize:he.height,style:E?.verticalScrollBar,thumbStyle:E?.verticalScrollBarThumb,showScrollBar:T}),Y&&b>he.width&&l.createElement(h2,{ref:Se,prefixCls:n,scrollOffset:k,scrollRange:b,rtl:_,onScroll:Ye,onStartMove:J,onStopMove:re,spinSize:ue,containerSize:he.width,horizontal:!0,style:E?.horizontalScrollBar,thumbStyle:E?.horizontalScrollBarThumb,showScrollBar:T}))}const XO=l.forwardRef(LB);XO.displayName="List";function VB(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}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)}function b2(e){return typeof e=="string"||typeof e=="number"}const FB=(e,t)=>{const{prefixCls:n,id:r,open:a,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:m,onPopupScroll:g,showScrollBar:h,lockOptions:y}=ml(),{maxCount:b,flattenOptions:v,onActiveValue:x,defaultActiveFirstOption:C,onSelect:w,menuItemSelectedIcon:R,rawValues:$,fieldNames:E,virtual:T,direction:N,listHeight:O,listItemHeight:D,optionRender:j,classNames:B,styles:V}=l.useContext(e1),U=`${n}-item`,G=ld(()=>v,[a,y],(ne,le)=>le[0]&&!le[1]),Y=l.useRef(null),_=l.useMemo(()=>s&&Tv(b)&&$?.size>=b,[s,b,$?.size]),H=ne=>{ne.preventDefault()},F=ne=>{Y.current?.scrollTo(typeof ne=="number"?{index:ne}:ne)},I=l.useCallback(ne=>c==="combobox"?!1:$.has(ne),[c,[...$].toString(),$.size]),z=(ne,le=1)=>{const se=G.length;for(let ce=0;ce<se;ce+=1){const me=(ne+ce*le+se)%se,{group:ae,data:fe}=G[me]||{};if(!ae&&!fe?.disabled&&(I(fe.value)||!_))return me}return-1},[L,P]=l.useState(()=>z(0)),A=(ne,le=!1)=>{P(ne);const se={source:le?"keyboard":"mouse"},ce=G[ne];if(!ce){x(null,-1,se);return}x(ce.value,ne,se)};l.useEffect(()=>{A(C!==!1?z(0):-1)},[G.length,d]);const k=l.useCallback(ne=>c==="combobox"?String(ne).toLowerCase()===d.toLowerCase():$.has(ne),[c,d,[...$].toString(),$.size]);l.useEffect(()=>{let ne;if(!s&&a&&$.size===1){const le=Array.from($)[0],se=G.findIndex(({data:ce})=>d?String(ce.value).startsWith(d):ce.value===le);se!==-1&&(A(se),ne=setTimeout(()=>{F(se)}))}return a&&Y.current?.scrollTo(void 0),()=>clearTimeout(ne)},[a,d]);const q=ne=>{ne!==void 0&&w(ne,{selected:!$.has(ne)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:le,ctrlKey:se}=ne;switch(le){case it.N:case it.P:case it.UP:case it.DOWN:{let ce=0;if(le===it.UP?ce=-1:le===it.DOWN?ce=1:VB()&&se&&(le===it.N?ce=1:le===it.P&&(ce=-1)),ce!==0){const me=z(L+ce,ce);F(me),A(me,!0)}break}case it.TAB:case it.ENTER:{const ce=G[L];if(!ce||ce.data.disabled)return q(void 0);!_||$.has(ce.value)?q(ce.value):q(void 0),a&&ne.preventDefault();break}case it.ESC:f(!1),a&&ne.stopPropagation()}},onKeyUp:()=>{},scrollTo:ne=>{F(ne)}})),G.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${U}-empty`,onMouseDown:H},m);const K=Object.keys(E).map(ne=>E[ne]),Z=ne=>ne.label;function J(ne,le){const{group:se}=ne;return{role:se?"presentation":"option",id:`${r}_list_${le}`}}const re=ne=>{const le=G[ne];if(!le)return null;const se=le.data||{},{value:ce}=se,{group:me}=le,ae=An(se,!0),fe=Z(le);return le?l.createElement("div",du({"aria-label":typeof fe=="string"&&!me?fe:null},ae,{key:ne},J(le,ne),{"aria-selected":k(ce)}),ce):null},ie={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,T&&l.createElement("div",du({},ie,{style:{height:0,width:0,overflow:"hidden"}}),re(L-1),re(L),re(L+1)),l.createElement(XO,{itemKey:"key",ref:Y,data:G,height:O,itemHeight:D,fullHeight:!1,onMouseDown:H,onScroll:g,virtual:T,direction:N,innerProps:T?null:ie,showScrollBar:h,className:B?.popup?.list,style:V?.popup?.list},(ne,le)=>{const{group:se,groupOption:ce,data:me,label:ae,value:fe}=ne,{key:ge}=me;if(se){const Ke=me.title??(b2(ae)?ae.toString():void 0);return l.createElement("div",{className:Q(U,`${U}-group`,me.className),title:Ke},ae!==void 0?ae:ge)}const{disabled:he,title:ye,children:Ae,style:xe,className:Se,...ue}=me,ve=rn(ue,K),Me=I(fe),Pe=he||!Me&&_,je=`${U}-option`,Be=Q(U,je,Se,B?.popup?.listItem,{[`${je}-grouped`]:ce,[`${je}-active`]:L===le&&!Pe,[`${je}-disabled`]:Pe,[`${je}-selected`]:Me}),Ze=Z(ne),Fe=!R||typeof R=="function"||Me,_e=typeof Ze=="number"?Ze:Ze||fe;let He=b2(_e)?_e.toString():void 0;return ye!==void 0&&(He=ye),l.createElement("div",du({},An(ve),T?{}:J(ne,le),{"aria-selected":T?void 0:k(fe),className:Be,title:He,onMouseMove:()=>{L===le||Pe||A(le)},onClick:()=>{Pe||q(fe)},style:{...V?.popup?.listItem,...xe}}),l.createElement("div",{className:`${je}-content`},typeof j=="function"?j(ne,{index:le}):_e),l.isValidElement(R)||Me,Fe&&l.createElement(UO,{className:`${U}-option-state`,customizeIcon:R,customizeIconProps:{value:fe,disabled:Pe,isSelected:Me}},Me?"✓":null))}))},kB=l.forwardRef(FB),WB=((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,m=new Map;return d.forEach(g=>{f.set(g.value,g),m.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=f,n.current.options=m,d},[e,t]),a=l.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,a]});function Fy(e,t){return kO(e).join("").toUpperCase().includes(t)}const YB=((e,t,n,r,a)=>l.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:c,value:d}=t,f=[],m=typeof r=="function",g=n.toUpperCase(),h=m?r:(b,v)=>a&&a.length?a.some(x=>Fy(v[x],g)):v[s]?Fy(v[c!=="children"?c:"label"],g):Fy(v[d],g),y=m?b=>Ov(b):b=>b;return e.forEach(b=>{if(b[s]){if(h(n,y(b)))f.push(b);else{const x=b[s].filter(C=>h(n,y(C)));x.length&&f.push({...b,[s]:x})}return}h(n,y(b))&&f.push(b)}),f},[e,r,a,n,t]));function UB(e){const{key:t,props:{children:n,value:r,...a}}=e;return{key:t,value:r!==void 0?r:t,children:n,...a}}function KO(e,t=!1){return fr(e).map((n,r)=>{if(!l.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:a},key:s,props:{children:c,...d}}=n;return t||!a?UB(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:KO(c)}}).filter(n=>n)}const qB=(e,t,n,r,a)=>l.useMemo(()=>{let s=e;!e&&(s=KO(t));const d=new Map,f=new Map,m=(h,y,b)=>{b&&typeof b=="string"&&h.set(y[b],y)},g=(h,y=!1)=>{for(let b=0;b<h.length;b+=1){const v=h[b];!v[n.options]||y?(d.set(v[n.value],v),m(f,v,n.label),r.forEach(x=>{m(f,v,x)}),m(f,v,a)):g(v[n.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:f}},[e,t,n,r,a]);function v2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function GB(e,t,n){const{filterOption:r,searchValue:a,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f}=t;return l.useMemo(()=>{const m=typeof e=="object",g={filterOption:r,searchValue:a,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f,...m?e:{}};return[m||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,r,a,s,c,d,f])}function jv(){return jv=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},jv.apply(this,arguments)}const XB=["inputValue"];function KB(e){return!e||typeof e!="object"}const QB=l.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:a="rc-select",backfill:s,fieldNames:c,showSearch:d,searchValue:f,onSearch:m,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:b,onSelect:v,onDeselect:x,onActive:C,popupMatchSelectWidth:w=!0,optionLabelProp:R,options:$,optionRender:E,children:T,defaultActiveFirstOption:N,menuItemSelectedIcon:O,virtual:D,direction:j,listHeight:B=200,listItemHeight:V=20,labelRender:U,value:G,defaultValue:Y,labelInValue:_,onChange:H,maxCount:F,classNames:I,styles:z,...L}=e,P={searchValue:f,onSearch:m,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:b},[A,k]=GB(d,P,r),{filterOption:q,searchValue:K,optionFilterProp:Z,filterSort:J,onSearch:re,autoClearSearchValue:ie=!0}=k,ne=l.useMemo(()=>Z?Array.isArray(Z)?Z:[Z]:[],[Z]),le=Ho(n),se=Av(r),ce=!!(!$&&T),me=l.useMemo(()=>q===void 0&&r==="combobox"?!1:q,[q,r]),ae=l.useMemo(()=>BO(c,ce),[JSON.stringify(c),ce]),[fe,ge]=Yt("",K),he=fe||"",ye=qB($,T,ae,ne,R),{valueOptions:Ae,labelOptions:xe,options:Se}=ye,ue=l.useCallback(Te=>kO(Te).map(Je=>{let ot,ft,Lt,Tt;KB(Je)?ot=Je:(ft=Je.label,ot=Je.value);const $t=Ae.get(ot);return $t&&(ft===void 0&&(ft=$t?.[R||ae.label]),Lt=$t?.disabled,Tt=$t?.title),{label:ft,value:ot,key:ot,disabled:Lt,title:Tt}}),[ae,R,Ae]),[ve,Me]=Yt(Y,G),Pe=l.useMemo(()=>{const qe=ue(se&&ve===null?[]:ve);return r==="combobox"&&sB(qe[0]?.value)?[]:qe},[ve,ue,r,se]),[je,Be]=WB(Pe,Ae),Ze=l.useMemo(()=>{if(!r&&je.length===1){const Te=je[0];if(Te.value===null&&(Te.label===null||Te.label===void 0))return[]}return je.map(Te=>({...Te,label:(typeof U=="function"?U(Te):Te.label)??Te.value}))},[r,je,U]),Fe=l.useMemo(()=>new Set(je.map(Te=>Te.value)),[je]);l.useEffect(()=>{if(r==="combobox"){const Te=je[0]?.value;ge(lB(Te)?String(Te):"")}},[je]);const _e=v2((Te,qe)=>{const Je=qe??Te;return{[ae.value]:Te,[ae.label]:Je}}),He=l.useMemo(()=>{if(r!=="tags")return Se;const Te=[...Se],qe=Je=>Ae.has(Je);return[...je].sort((Je,ot)=>Je.value<ot.value?-1:1).forEach(Je=>{const ot=Je.value;qe(ot)||Te.push(_e(ot,Je.label))}),Te},[_e,Se,Ae,je,r]),Ke=YB(He,ae,he,me,ne),Ne=l.useMemo(()=>{const Te=qe=>ne.length?ne.some(Je=>qe?.[Je]===he):qe?.value===he;return r!=="tags"||!he||Ke.some(qe=>Te(qe))||Ke.some(qe=>qe[ae.value]===he)?Ke:[_e(he),...Ke]},[_e,ne,r,Ke,he,ae]),Ce=Te=>[...Te].sort((Je,ot)=>J(Je,ot,{searchValue:he})).map(Je=>Array.isArray(Je.options)?{...Je,options:Je.options.length>0?Ce(Je.options):Je.options}:Je),Ye=l.useMemo(()=>J?Ce(Ne):Ne,[Ne,J,he]),et=l.useMemo(()=>nB(Ye,{fieldNames:ae,childrenAsData:ce}),[Ye,ae,ce]),Le=Te=>{const qe=ue(Te);if(Me(qe),H&&(qe.length!==je.length||qe.some((Je,ot)=>je[ot]?.value!==Je?.value))){const Je=_?qe.map(({label:ft,value:Lt})=>({label:ft,value:Lt})):qe.map(ft=>ft.value),ot=qe.map(ft=>Ov(Be(ft.value)));H(se?Je:Je[0],se?ot:ot[0])}},[Ge,Re]=l.useState(null),[Xe,tt]=l.useState(0),at=N!==void 0?N:r!=="combobox",bt=l.useRef(),ht=l.useCallback((Te,qe,{source:Je="keyboard"}={})=>{tt(qe),s&&r==="combobox"&&Te!==null&&Je==="keyboard"&&Re(String(Te));const ot=Promise.resolve().then(()=>{bt.current===ot&&C?.(Te)});bt.current=ot},[s,r,C]),xt=(Te,qe,Je)=>{const ot=()=>{const ft=Be(Te);return[_?{label:ft?.[ae.label],value:Te}:Te,Ov(ft)]};if(qe&&v){const[ft,Lt]=ot();v(ft,Lt)}else if(!qe&&x&&Je!=="clear"){const[ft,Lt]=ot();x(ft,Lt)}},ke=v2((Te,qe)=>{let Je;const ot=se?qe.selected:!0;ot?Je=se?[...je,Te]:[Te]:Je=je.filter(ft=>ft.value!==Te),Le(Je),xt(Te,ot),r==="combobox"?Re(""):(!Av||ie)&&(ge(""),Re(""))}),Qe=(Te,qe)=>{Le(Te);const{type:Je,values:ot}=qe;(Je==="remove"||Je==="clear")&&ot.forEach(ft=>{xt(ft.value,!1,Je)})},ze=(Te,qe)=>{if(ge(Te),Re(null),qe.source==="submit"){const Je=(Te||"").trim();if(Je){const ot=Array.from(new Set([...Fe,Je]));Le(ot),xt(Je,!0),ge("")}return}qe.source!=="blur"&&(r==="combobox"&&Le(Te),re?.(Te))},Ie=Te=>{let qe=Te;r!=="tags"&&(qe=Te.map(ot=>xe.get(ot)?.value).filter(ot=>ot!==void 0));const Je=Array.from(new Set([...Fe,...qe]));Le(Je),Je.forEach(ot=>{xt(ot,!0)})},Ue=l.useMemo(()=>({...ye,flattenOptions:et,onActiveValue:ht,defaultActiveFirstOption:at,onSelect:ke,menuItemSelectedIcon:O,rawValues:Fe,fieldNames:ae,virtual:D!==!1&&w!==!1,direction:j,listHeight:B,listItemHeight:V,childrenAsData:ce,maxCount:F,optionRender:E,classNames:I,styles:z}),[F,ye,et,ht,at,ke,O,Fe,ae,D,w,j,B,V,ce,E,I,z]);return l.createElement(e1.Provider,{value:Ue},l.createElement(wB,jv({},L,{id:le,prefixCls:a,ref:t,omitDomProps:XB,mode:r,classNames:I,styles:z,displayValues:Ze,onDisplayValuesChange:Qe,maxCount:F,direction:j,showSearch:A,searchValue:he,onSearch:ze,autoClearSearchValue:ie,onSearchSplit:Ie,popupMatchSelectWidth:w,OptionList:kB,emptyOptions:!et.length,activeValue:Ge,activeDescendantId:`${le}_list_${Xe}`})))}),r1=QB;r1.Option=n1;r1.OptGroup=t1;const ll=(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}),Bs=(e,t)=>t||e,ZB=()=>{const[,e]=Yr(),[t]=ao("Empty"),r=new nn(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.7)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),l.createElement("path",{fill:"#aeb8c2",d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),l.createElement("path",{fill:"#f5f5f7",d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),l.createElement("path",{fill:"#dce0e6",d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),l.createElement("path",{fill:"#dce0e6",d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),l.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},l.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),l.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},JB=()=>{const[,e]=Yr(),[t]=ao("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:s}=e,{borderColor:c,shadowColor:d,contentColor:f}=l.useMemo(()=>({borderColor:new nn(n).onBackground(s).toHexString(),shadowColor:new nn(r).onBackground(s).toHexString(),contentColor:new nn(a).onBackground(s).toHexString()}),[n,r,a,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.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),l.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:f}))))},e9=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,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:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},t9=Pt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Nt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return e9(a)}),QO=l.createElement(ZB,null),ZO=l.createElement(JB,null),Gi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:a,description:s,children:c,imageStyle:d,style:f,classNames:m,styles:g,...h}=e,{getPrefixCls:y,direction:b,className:v,style:x,classNames:C,styles:w,image:R}=Rt("empty"),$=y("empty",r),[E,T]=t9($),[N,O]=Bt([C,m],[w,g],{props:e}),[D]=ao("Empty"),j=typeof s<"u"?s:D?.description,B=typeof j=="string"?j:"empty",V=a??R??QO;let U=null;return typeof V=="string"?U=l.createElement("img",{draggable:!1,alt:B,src:V}):U=V,l.createElement("div",{className:Q(E,T,$,v,{[`${$}-normal`]:V===ZO,[`${$}-rtl`]:b==="rtl"},t,n,N.root),style:{...O.root,...x,...f},...h},l.createElement("div",{className:Q(`${$}-image`,N.image),style:{...d,...O.image}},U),j&&l.createElement("div",{className:Q(`${$}-description`,N.description),style:O.description},j),c&&l.createElement("div",{className:Q(`${$}-footer`,N.footer),style:O.footer},c))};Gi.PRESENTED_IMAGE_DEFAULT=QO;Gi.PRESENTED_IMAGE_SIMPLE=ZO;const JO=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return oe.createElement(Gi,{image:Gi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oe.createElement(Gi,{image:Gi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return oe.createElement(Gi,null)}},Ls=(e,t,n)=>{const{variant:r,[e]:a}=l.useContext(dt),s=l.useContext(oH),c=a?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=Rz.includes(d);return[d,f]},n9=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 r9(e,t){return e||n9(t)}const S2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},o9=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${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`]:{...Jt(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,[`
|
|
176
|
+
${a}${d}bottomLeft,
|
|
177
|
+
${s}${d}bottomLeft
|
|
178
|
+
`]:{animationName:Ap},[`
|
|
179
|
+
${a}${d}topLeft,
|
|
180
|
+
${s}${d}topLeft,
|
|
181
|
+
${a}${d}topRight,
|
|
182
|
+
${s}${d}topRight
|
|
183
|
+
`]:{animationName:jp},[`${c}${d}bottomLeft`]:{animationName:Dp},[`
|
|
184
|
+
${c}${d}topLeft,
|
|
185
|
+
${c}${d}topRight
|
|
186
|
+
`]:{animationName:_p},"&-hidden":{display:"none"},[r]:{...S2(e),cursor:"pointer",transition:`background-color ${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"}}},Jo(e,"slide-up"),Jo(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down")]},a9=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,i9=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:a,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:c,lineWidth:d,colorIcon:f,colorIconHover:m,inputPaddingHorizontalBase:g,antCls:h}=e,[y,b]=Ut(h,"select");return{"&-multiple":{[y("multi-item-background")]:e.multipleItemBg,[y("multi-item-border-color")]:"transparent",[y("multi-item-border-radius")]:e.borderRadiusSM,[y("multi-item-height")]:e.multipleItemHeight,[y("multi-padding-base")]:`calc((${b("height")} - ${b("multi-item-height")}) / 2)`,[y("multi-padding-vertical")]:`calc(${b("multi-padding-base")} - ${c} - ${d})`,[y("multi-item-padding-horizontal")]:`calc(${g} - ${b("multi-padding-vertical")} - ${d} * 2)`,paddingBlock:b("multi-padding-vertical"),paddingInlineStart:`calc(${b("multi-padding-base")} - ${d})`,[`${t}-prefix`]:{marginInlineStart:b("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:b("line-height"),insetInlineStart:b("multi-item-padding-horizontal"),width:`calc(100% - ${b("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:b("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${C2}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
187
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:b("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${b("multi-item-height")} - ${d} * 2)`,border:`${d} solid ${b("multi-item-border-color")}`,display:"flex",marginBlock:c,marginInlineEnd:n(c).mul(2).equal(),background:b("multi-item-background"),borderRadius:b("multi-item-border-radius"),paddingInlineStart:a,paddingInlineEnd:s,transition:["height","line-height","padding"].map(v=>`${v} ${e.motionDurationSlow}`).join(","),"&-content":{...$o,marginInlineEnd:s},"&-remove":{...Ds(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}}},[`${t}-input`]:{lineHeight:n(c).mul(2).add(b("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:C2,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[y("multi-item-height")]:e.multipleItemHeightSM,[y("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[y("multi-item-height")]:e.multipleItemHeightLG,[y("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[y("multi-item-border-color")]:e.colorSplit,[y("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[y("multi-item-border-color")]:"transparent"}}}}},ky=(e,t)=>{const{componentCls:n,antCls:r}=e,[a]=Ut(r,"select"),{border:s,borderHover:c,borderActive:d,borderOutline:f}=t,m=t.background||e.selectorBg||e.colorBgContainer;return{[a("border-color")]:s,[a("background-color")]:m,[a("color")]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[a("border-color")]:c,[a("background-color")]:t.backgroundHover||m},[`&${n}-focused`]:{[a("border-color")]:d,[a("background-color")]:t.backgroundActive||m,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${f}`}},[`&${n}-disabled`]:{[a("border-color")]:t.borderDisabled||t.border,[a("background-color")]:t.backgroundDisabled||t.background}}},Xf=(e,t,n,r={},a={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[ky(e,n),{[`&${c}-status-error`]:ky(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:ky(e,{...n,color:a.color||e.colorWarning,...a})},s]}},l9=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,iconCls:a,antCls:s,calc:c}=e,[d,f]=Ut(s,"select");return{[t]:[{[d("border-radius")]:e.borderRadius,[d("border-color")]:"#000",[d("border-size")]:e.lineWidth,[d("background-color")]:e.colorBgContainer,[d("font-size")]:e.fontSize,[d("line-height")]:e.lineHeight,[d("font-height")]:n,[d("color")]:e.colorText,[d("height")]:r,[d("padding-horizontal")]:c(e.paddingSM).sub(e.lineWidth).equal(),[d("padding-vertical")]:`calc((${f("height")} - ${f("font-height")}) / 2 - ${f("border-size")})`,...Jt(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:f("border-radius"),borderWidth:f("border-size"),borderStyle:e.lineType,borderColor:f("border-color"),background:f("background-color"),fontSize:f("font-size"),lineHeight:f("line-height"),color:f("color"),paddingInline:f("padding-horizontal"),paddingBlock:f("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:c(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[a]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[d("height")]:e.controlHeightSM,[d("padding-horizontal")]:c(e.paddingXS).sub(e.lineWidth).equal(),[d("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:f("padding-horizontal")}},"&-lg":{[d("height")]:e.controlHeightLG,[d("font-size")]:e.fontSizeLG,[d("line-height")]:e.lineHeightLG,[d("font-height")]:e.fontHeightLG,[d("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:f("color"),"&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:`calc(${f("padding-vertical")} * -1)`,lineHeight:`calc(${f("font-height")} + ${f("padding-vertical")} * 2)`},[`${t}-content`]:{...$o,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent"},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},i9(e),Xf(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}),Xf(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}),Xf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Xf(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"}),a9(e)]}},s9=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:s,controlHeightLG:c,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:m,colorText:g,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:b,colorBgContainer:v,colorFillSecondary:x,colorBgContainerDisabled:C,colorTextDisabled:w,colorPrimaryHover:R,colorPrimary:$,controlOutline:E}=e,T=d*2,N=r*2,O=Math.min(a-T,a-N),D=Math.min(s-T,s-N),j=Math.min(c-T,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:m+50,optionSelectedColor:g,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:b,optionPadding:`${(a-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:v,clearBg:v,singleItemHeightLG:c,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:D,multipleItemHeightLG:j,multipleSelectorBgDisabled:C,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:R,activeBorderColor:$,activeOutlineColor:E,selectAffixPadding:d}},c9=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:a}=e,s={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Jt(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:a,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","opacity"].map(c=>`${c} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":s,"&:hover":s},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(a).add(e.fontSize).add(e.paddingXS).equal()}}}}}},u9=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},c9(e),o9(e),{[`${t}-rtl`]:{direction:"rtl"}},bd(e,{focusElCls:`${t}-focused`})]},d9=Pt("Select",(e,{rootPrefixCls:t})=>{const n=Nt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[u9(n),l9(n)]},s9,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var f9={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 _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 m9=(e,t)=>l.createElement(pt,_v({},e,{ref:t,icon:f9})),pl=l.forwardRef(m9);var p9={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 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 g9=(e,t)=>l.createElement(pt,Hv({},e,{ref:t,icon:p9})),h9=l.forwardRef(g9);var y9={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 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 b9=(e,t)=>l.createElement(pt,Bv({},e,{ref:t,icon:y9})),e6=l.forwardRef(b9);function t6({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,loadingIcon:s,multiple:c,hasFeedback:d,showSuffixIcon:f,feedbackIcon:m,showArrow:g,componentName:h}){const y=t??l.createElement(_s,null),b=w=>e===null&&!d&&!g?null:l.createElement(l.Fragment,null,f!==!1&&w,d&&m);let v=null;e!==void 0?v=b(e):a?v=b(s??l.createElement(Ip,{spin:!0})):v=({open:w,showSearch:R})=>b(w&&R?l.createElement(e6,null):l.createElement(h9,null));let x=null;n!==void 0?x=n:c?x=l.createElement(pl,null):x=null;let C=null;return r!==void 0?C=r:C=l.createElement(Ur,null),{clearIcon:y,suffixIcon:v,itemIcon:x,removeIcon:C}}function v9(e){return oe.useMemo(()=>{if(e)return(...t)=>oe.createElement(Ta,{space:!0},e.apply(void 0,t))},[e])}function S9(e,t){return t!==void 0?t:e!==null}const n6="SECRET_COMBOBOX_MODE_DO_NOT_USE",C9=(e,t)=>{const{prefixCls:n,bordered:r,className:a,rootClassName:s,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:m=256,placement:g,listItemHeight:h,size:y,disabled:b,notFoundContent:v,status:x,builtinPlacements:C,dropdownMatchSelectWidth:w,popupMatchSelectWidth:R,direction:$,style:E,allowClear:T,variant:N,popupStyle:O,dropdownStyle:D,transitionName:j,tagRender:B,maxCount:V,prefix:U,dropdownRender:G,popupRender:Y,onDropdownVisibleChange:_,onOpenChange:H,styles:F,classNames:I,...z}=e,{getPopupContainer:L,getPrefixCls:P,renderEmpty:A,direction:k,virtual:q,popupMatchSelectWidth:K,popupOverflow:Z}=l.useContext(dt),{showSearch:J,style:re,styles:ie,className:ne,classNames:le}=Rt("select"),[,se]=Yr(),ce=h??se?.controlHeight,me=P("select",n),ae=P(),fe=$??k,{compactSize:ge,compactItemClassnames:he}=Ia(me,fe),[ye,Ae]=Ls("select",N,r),xe=ir(me),[Se,ue]=d9(me,xe),ve=l.useMemo(()=>{const{mode:qe}=e;if(qe!=="combobox")return qe===n6?"combobox":qe},[e.mode]),Me=ve==="multiple"||ve==="tags",Pe=S9(e.suffixIcon,e.showArrow),je=R??w??K,Be=v9(Y||G),Ze=H||_,{status:Fe,hasFeedback:_e,isFormItemInput:He,feedbackIcon:Ke}=l.useContext(Tr),Ne=Bs(Fe,x);let Ce;v!==void 0?Ce=v:ve==="combobox"?Ce=null:Ce=A?.("Select")||l.createElement(JO,{componentName:"Select"});const{suffixIcon:Ye,itemIcon:et,removeIcon:Le,clearIcon:Ge}=t6({...z,multiple:Me,hasFeedback:_e,feedbackIcon:Ke,showSuffixIcon:Pe,componentName:"Select"}),Re=T===!0?{clearIcon:Ge}:T,Xe=rn(z,["suffixIcon","itemIcon"]),tt=pr(qe=>y??ge??qe),at=l.useContext(Wr),bt=b??at,ht={...e,variant:ye,status:Ne,disabled:bt,size:tt},[xt,ke]=Bt([le,I],[ie,F],{props:ht},{popup:{_default:"root"}}),Qe=Q(xt.popup?.root,d,f,{[`${me}-dropdown-${fe}`]:fe==="rtl"},s,ue,xe,Se),ze={...ke.popup?.root,...O??D},Ie=Q({[`${me}-lg`]:tt==="large",[`${me}-sm`]:tt==="small",[`${me}-rtl`]:fe==="rtl",[`${me}-${ye}`]:Ae,[`${me}-in-form-item`]:He},ll(me,Ne,_e),he,ne,a,xt.root,s,ue,xe,Se),Ue=l.useMemo(()=>g!==void 0?g:fe==="rtl"?"bottomRight":"bottomLeft",[g,fe]),[Te]=vi("SelectLike",ke.popup?.root?.zIndex??ze?.zIndex);return l.createElement(r1,{ref:t,virtual:q,classNames:xt,styles:ke,showSearch:J,...Xe,style:{...ke.root,...re,...E},popupMatchSelectWidth:je,transitionName:Zo(ae,"slide-up",j),builtinPlacements:r9(C,Z),listHeight:m,listItemHeight:ce,mode:ve,prefixCls:me,placement:Ue,direction:fe,prefix:U,suffixIcon:Ye,menuItemSelectedIcon:et,removeIcon:Le,allowClear:Re,notFoundContent:Ce,className:Ie,getPopupContainer:c||L,popupClassName:Qe,disabled:bt,popupStyle:{...ke.popup?.root,...ze,zIndex:Te},maxCount:Me?V:void 0,tagRender:Me?B:void 0,popupRender:Be,onPopupVisibleChange:Ze})},Fr=l.forwardRef(C9),x9=Bp(Fr,"popupAlign");Fr.SECRET_COMBOBOX_MODE_DO_NOT_USE=n6;Fr.Option=n1;Fr.OptGroup=t1;Fr._InternalPanelDoNotUseOrYouWillBeFired=x9;const Ea=["xxxl","xxl","xl","lg","md","sm","xs"],$9=[].concat(Ea).reverse(),w9=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),E9=e=>{const t=e,n=[].concat(Ea).reverse();return n.forEach((r,a)=>{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(a<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[a+1].toUpperCase()}Min`;if(!(t[f]<=t[g]))throw new Error(`${f}<=${g} fails : !(${t[f]}<=${t[g]})`)}}),e},M9=()=>{const[,e]=Yr(),t=w9(E9(e));return oe.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return a=s,n.forEach(c=>c(a)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(a),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,c])=>{const d=({matches:m})=>{this.dispatch({...a,[s]:m})},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 Lp(e=!0,t={}){const n=l.useRef(t),[,r]=oA(),a=M9();return It(()=>{const s=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(s)},[]),n.current}const Is=e=>e?typeof e=="function"?e():e:null,o1=e=>{const{children:t,prefixCls:n,id:r,classNames:a,styles:s,className:c,style:d}=e;return l.createElement("div",{id:r,className:Q(`${n}-container`,a?.container,c),style:{...s?.container,...d},role:"tooltip"},typeof t=="function"?t():t)},as={shiftX:64,adjustY:1},is={adjustX:1,shiftY:!0},bo=[0,0],R9={left:{points:["cr","cl"],overflow:is,offset:[-4,0],targetOffset:bo},right:{points:["cl","cr"],overflow:is,offset:[4,0],targetOffset:bo},top:{points:["bc","tc"],overflow:as,offset:[0,-4],targetOffset:bo},bottom:{points:["tc","bc"],overflow:as,offset:[0,4],targetOffset:bo},topLeft:{points:["bl","tl"],overflow:as,offset:[0,-4],targetOffset:bo},leftTop:{points:["tr","tl"],overflow:is,offset:[-4,0],targetOffset:bo},topRight:{points:["br","tr"],overflow:as,offset:[0,-4],targetOffset:bo},rightTop:{points:["tl","tr"],overflow:is,offset:[4,0],targetOffset:bo},bottomRight:{points:["tr","br"],overflow:as,offset:[0,4],targetOffset:bo},rightBottom:{points:["bl","br"],overflow:is,offset:[4,0],targetOffset:bo},bottomLeft:{points:["tl","bl"],overflow:as,offset:[0,4],targetOffset:bo},leftBottom:{points:["br","bl"],overflow:is,offset:[-4,0],targetOffset:bo}};function Lv(){return Lv=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},Lv.apply(this,arguments)}const T9=l.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:a=.1,prefixCls:s="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:f,motion:m,placement:g="right",align:h={},destroyOnHidden:y=!1,defaultVisible:b,getTooltipContainer:v,arrowContent:x,overlay:C,id:w,showArrow:R=!0,classNames:$,styles:E,...T}=e,N=Ho(w),O=l.useRef(null);l.useImperativeHandle(t,()=>O.current);const D={...T};"visible"in e&&(D.popupVisible=e.visible);const j=l.useMemo(()=>{if(!R)return!1;const V=R===!0?{}:R;return{...V,className:Q(V.className,$?.arrow),style:{...V.style,...E?.arrow},content:V.content??x}},[R,$?.arrow,E?.arrow,x]),B=({open:V})=>{const U=l.Children.only(c),G={"aria-describedby":C&&V?N:void 0};return l.cloneElement(U,G)};return l.createElement(pd,Lv({popupClassName:$?.root,prefixCls:s,popup:l.createElement(o1,{key:"content",prefixCls:s,id:N,classNames:$,styles:E},C),action:n,builtinPlacements:R9,popupPlacement:g,ref:O,popupAlign:h,getPopupContainer:v,onOpenChange:d,afterOpenChange:f,popupMotion:m,defaultPopupVisible:b,autoDestroy:y,mouseLeaveDelay:a,popupStyle:E?.root,mouseEnterDelay:r,arrow:j,uniqueContainerClassName:$?.uniqueContainer,uniqueContainerStyle:E?.uniqueContainer},D),B)});function Vp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,s=0,c=a,d=r*1/Math.sqrt(2),f=a-r*(1-1/Math.sqrt(2)),m=a-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*a-m,y=g,b=2*a-d,v=f,x=2*a-s,C=c,w=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),R=r*(Math.sqrt(2)-1),$=`polygon(${R}px 100%, 50% ${R}px, ${2*a-R}px 100%, ${R}px 100%)`,E=`path('M ${s} ${c} A ${r} ${r} 0 0 0 ${d} ${f} L ${m} ${g} A ${n} ${n} 0 0 1 ${h} ${y} L ${b} ${v} A ${r} ${r} 0 0 0 ${x} ${C} Z')`;return{arrowShadowWidth:w,arrowPath:E,arrowPolygon:$}}const r6=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,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:[a,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"}}},o6=8;function Fp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?o6:r}}function Kf(e,t){return e?t:{}}const a1=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:s,arrowOffsetHorizontal:c,antCls:d}=e,[f]=Ut(d,"tooltip"),{arrowDistance:m=0,arrowPlacement:g={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...r6(e,t,a),"&:before":{background:t}}],...Kf(!!g.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[f("arrow-offset-x")]:c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[f("arrow-offset-x")]:`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Kf(!!g.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[f("arrow-offset-x")]:c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[f("arrow-offset-x")]:`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Kf(!!g.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},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}}),...Kf(!!g.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},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 O9(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=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,...a};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const x2={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"]}},N9={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"]}},I9=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function a6(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},m=Fp({contentRadius:s,limitVerticalRadius:!0});return Object.keys(x2).forEach(g=>{const y={...r&&N9[g]||x2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,I9.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-d-a;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+a;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-a;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+a;break}if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-m.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=m.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-m.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=m.arrowOffsetHorizontal*2-d;break}y.overflow=O9(g,m,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const i1=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return oe.useMemo(()=>{const r=n(e),a=n(t);return{...a,...r,show:r.show??a.show??!0}},[e,t])},$2="50%",P9=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:s,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:f,boxShadowSecondary:m,paddingSM:g,paddingXS:h,arrowOffsetHorizontal:y,sizePopupArrow:b,antCls:v}=e,[x,C]=Ut(v,"tooltip"),w=t(c).add(b).add(y).equal(),$={minWidth:t(c).mul(2).add(b).equal(),minHeight:f,padding:`${te(e.calc(g).div(2).equal())} ${te(h)}`,color:C("overlay-color",a),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:c,boxShadow:m,boxSizing:"border-box"},E={[x("valid-offset-x")]:C("arrow-offset-x","var(--arrow-x)"),transformOrigin:[C("valid-offset-x",$2),`var(--arrow-y, ${$2})`].join(" ")};return[{[n]:{...Jt(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...E,"&-hidden":{display:"none"},[x("arrow-background-color")]:s,[`${n}-container`]:[$,rO(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:w},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,o6)}},[`${n}-content`]:{position:"relative"},...Tp(e,(T,{darkColor:N})=>({[`&${n}-${T}`]:{[`${n}-container`]:{backgroundColor:N},[`${n}-arrow`]:{[x("arrow-background-color")]:N}}})),"&-rtl":{direction:"rtl"}}},a1(e,C("arrow-background-color")),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...$,...E,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},z9=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Fp({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Vp(Nt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),i6=(e,t,n=!0)=>Pt("Tooltip",a=>{const{borderRadius:s,colorTextLightSolid:c,colorBgSpotlight:d,maxWidth:f}=a,m=Nt(a,{tooltipMaxWidth:f,tooltipColor:c,tooltipBorderRadius:s,tooltipBg:d});return[P9(m),yd(a,"zoom-big-fast")]},z9,{resetStyle:!1,injectStyle:n})(e,t),A9=Ma.map(e=>`${e}-inverse`),D9=["success","processing","error","default","warning"];function kp(e,t=!0){return t?[].concat($n(A9),$n(Ma)).includes(e):Ma.includes(e)}function j9(e){return D9.includes(e)}const l6=(e,t,n)=>{const r=kp(n),[a]=Ut(e,"tooltip"),s=Q({[`${t}-${n}`]:n&&r}),c={},d={},f=Dj(n).toRgb(),g=(.299*f.r+.587*f.g+.114*f.b)/255<.5?"#FFF":"#000";return n&&!r&&(c.background=n,c[a("overlay-color")]=g,d[a("arrow-background-color")]=n),{className:s,overlayStyle:c,arrowStyle:d}},_9=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:s,overlayInnerStyle:c,classNames:d,styles:f}=e,{getPrefixCls:m}=l.useContext(dt),g=m("tooltip",t),h=m(),y=ir(g),[b,v]=i6(g,y),x=l6(h,g,s),C=x.arrowStyle,w=l.useMemo(()=>({container:{...c,...x.overlayStyle}}),[c,x.overlayStyle]),R={...e,placement:r},[$,E]=Bt([d],[w,f],{props:R}),T=Q(y,b,v,g,`${g}-pure`,`${g}-placement-${r}`,n,x.className);return l.createElement("div",{className:T,style:C},l.createElement("div",{className:`${g}-arrow`}),l.createElement(o1,{...e,className:b,prefixCls:g,classNames:$,styles:E},a))},H9=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:a,color:s,children:c,afterOpenChange:d,arrow:f,destroyTooltipOnHide:m,destroyOnHidden:g,title:h,overlay:y,trigger:b,builtinPlacements:v,autoAdjustOverflow:x=!0,motion:C,getPopupContainer:w,placement:R="top",mouseEnterDelay:$=.1,mouseLeaveDelay:E=.1,rootClassName:T,styles:N,classNames:O,onOpenChange:D,overlayInnerStyle:j,overlayStyle:B,overlayClassName:V,...U}=e,[,G]=Yr(),{getPopupContainer:Y,getPrefixCls:_,direction:H,className:F,style:I,classNames:z,styles:L,arrow:P,trigger:A}=Rt("tooltip"),k=i1(f,P),q=k.show,K=b||A||"hover",Z=l.useRef(null),J=()=>{Z.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:J,nativeElement:Z.current?.nativeElement,popupElement:Z.current?.popupElement}));const[re,ie]=Yt(e.defaultOpen??!1,e.open),ne=!h&&!y&&h!==0,le=Ye=>{ie(ne?!1:Ye),!ne&&D&&D(Ye)},se=l.useMemo(()=>v||a6({arrowPointAtCenter:k?.pointAtCenter??!1,autoAdjustOverflow:x,arrowWidth:q?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0}),[k,v,G,q,x]),ce=l.useMemo(()=>h===0?h:y||h||"",[y,h]),me=l.createElement(Ta,{space:!0,form:!0},typeof ce=="function"?ce():ce),ae={...e,trigger:K,color:s,placement:R,builtinPlacements:v,openClassName:r,arrow:f,autoAdjustOverflow:x,getPopupContainer:w,children:c,destroyTooltipOnHide:m,destroyOnHidden:g},[fe,ge]=Bt([z,O],[L,N],{props:ae}),he=_("tooltip",n),ye=_(),Ae=e["data-popover-inject"];let xe=re;!("open"in e)&&ne&&(xe=!1);const Se=l.isValidElement(c)&&!jT(c)?c:l.createElement("span",null,c),ue=Se.props,ve=!ue.className||typeof ue.className=="string"?Q(ue.className,r||`${he}-open`):ue.className,Me=ir(he),[Pe,je]=i6(he,Me,!Ae),Be=l6(ye,he,s),Ze=Be.arrowStyle,Fe=Q(Me,Pe,je),_e=Q(V,{[`${he}-rtl`]:H==="rtl"},Be.className,T,Fe,F,fe.root),[He,Ke]=vi("Tooltip",U.zIndex),Ne={...ge.container,...j,...Be.overlayStyle},Ce=l.createElement(T9,{unique:!0,...U,trigger:K,zIndex:He,showArrow:q,placement:R,mouseEnterDelay:$,mouseLeaveDelay:E,prefixCls:he,classNames:{root:_e,container:fe.container,arrow:fe.arrow,uniqueContainer:Q(Fe,fe.container)},styles:{root:{...Ze,...ge.root,...I,...B},container:Ne,uniqueContainer:Ne,arrow:ge.arrow},getTooltipContainer:w||a||Y,ref:Z,builtinPlacements:se,overlay:me,visible:xe,onVisibleChange:le,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${he}-arrow-content`}),motion:{motionName:Zo(ye,"zoom-big-fast",typeof C?.motionName=="string"?C?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!m},xe?or(Se,{className:ve}):Se);return l.createElement(dd.Provider,{value:Ke},Ce)}),dr=H9;dr._InternalPanelDoNotUseOrYouWillBeFired=_9;dr.UniqueProvider=HT;const w2="50%",B9=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:s,boxShadowSecondary:c,colorTextHeading:d,borderRadiusLG:f,zIndexPopup:m,titleMarginBottom:g,colorBgElevated:h,popoverBg:y,titleBorderBottom:b,innerContentPadding:v,titlePadding:x,antCls:C}=e,[w,R]=Ut(C,"tooltip");return[{[t]:{...Jt(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:m,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[w("valid-offset-x")]:R("arrow-offset-x","var(--arrow-x)"),transformOrigin:[R("valid-offset-x",w2),`var(--arrow-y, ${w2})`].join(" "),[w("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:a,borderBottom:b,padding:x},[`${t}-content`]:{color:n,padding:v}}},a1(e,R("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},L9=e=>{const{componentCls:t,antCls:n}=e,[r]=Ut(n,"tooltip");return{[t]:Ma.map(a=>{const s=e[`${a}6`];return{[`&${t}-${a}`]:{[r("arrow-background-color")]:s,[`${t}-inner`]:{backgroundColor:s},[`${t}-arrow`]:{background:"transparent"}}}})}},V9=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:s,zIndexPopupBase:c,borderRadiusLG:d,marginXS:f,lineType:m,colorSplit:g,paddingSM:h}=e,y=n-r,b=y/2,v=y/2-t,x=a;return{titleMinWidth:177,zIndexPopup:c+30,...Vp(e),...Fp({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${b}px ${x}px ${v}px`:0,titleBorderBottom:s?`${t}px ${m} ${g}`:"none",innerContentPadding:s?`${h}px ${x}px`:0}},s6=Pt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Nt(e,{popoverBg:t,popoverColor:n});return[B9(r),L9(r),yd(r,"zoom-big")]},V9,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),c6=e=>{const{title:t,content:n,prefixCls:r,classNames:a,styles:s}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:Q(`${r}-title`,a?.title),style:s?.title},t),n&&l.createElement("div",{className:Q(`${r}-content`,a?.content),style:s?.content},n))},F9=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:s="top",title:c,content:d,children:f,classNames:m,styles:g}=e,h=Is(c),y=Is(d),b={...e,placement:s},[v,x]=Bt([m],[g],{props:b}),C=Q(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:C,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(o1,{...e,className:t,prefixCls:n,classNames:v,styles:x},f||l.createElement(c6,{prefixCls:n,title:h,content:y,classNames:v,styles:x})))},u6=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:a}=l.useContext(dt),s=a("popover",t),[c,d]=s6(s);return l.createElement(F9,{...r,prefixCls:s,hashId:c,className:Q(n,d)})},k9=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:a,overlayClassName:s,placement:c="top",trigger:d,children:f,mouseEnterDelay:m=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:y={},styles:b,classNames:v,motion:x,arrow:C,...w}=e,{getPrefixCls:R,className:$,style:E,classNames:T,styles:N,arrow:O,trigger:D}=Rt("popover"),j=R("popover",n),[B,V]=s6(j),U=R(),G=i1(C,O),Y=d||D||"hover",_={...e,placement:c,trigger:Y,mouseEnterDelay:m,mouseLeaveDelay:g,overlayStyle:y,styles:b,classNames:v},[H,F]=Bt([T,v],[N,b],{props:_}),I=Q(s,B,V,$,H.root),[z,L]=Yt(e.defaultOpen??!1,e.open),P=q=>{L(q),h?.(q)},A=Is(r),k=Is(a);return l.createElement(dr,{unique:!1,arrow:G,placement:c,trigger:Y,mouseEnterDelay:m,mouseLeaveDelay:g,...w,prefixCls:j,classNames:{root:I,container:H.container,arrow:H.arrow},styles:{root:{...F.root,...E,...y},container:F.container,arrow:F.arrow},ref:t,open:z,onOpenChange:P,overlay:A||k?l.createElement(c6,{prefixCls:j,title:A,content:k,classNames:H,styles:F}):null,motion:{motionName:Zo(U,"zoom-big",typeof x?.motionName=="string"?x?.motionName:void 0)},"data-popover-inject":!0},f)}),d6=k9;d6._InternalPanelDoNotUseOrYouWillBeFired=u6;const E2=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let s;return a&&(s={position:"absolute",top:`${a}00%`,left:0}),l.createElement("span",{style:s,className:Q(`${t}-only-unit`,{current:r})},n)};function W9(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const Y9=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),s=Math.abs(n),[c,d]=l.useState(a),[f,m]=l.useState(s),g=()=>{d(a),m(s)};l.useEffect(()=>{const b=setTimeout(g,1e3);return()=>clearTimeout(b)},[a]);let h,y;if(c===a||Number.isNaN(a)||Number.isNaN(c))h=[l.createElement(E2,{...e,key:a,current:!0})],y={transition:"none"};else{h=[];const b=a+10,v=[];for(let R=a;R<=b;R+=1)v.push(R);const x=f<s?1:-1,C=v.findIndex(R=>R%10===c);h=(x<0?v.slice(0,C+1):v.slice(C)).map((R,$)=>{const E=R%10;return l.createElement(E2,{...e,key:R,value:E,offset:x<0?$-C:$,current:$===C})}),y={transform:`translateY(${-W9(c,a,x)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},U9=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:a,motionClassName:s,style:c,title:d,show:f,component:m="sup",children:g,...h}=e,{getPrefixCls:y}=l.useContext(dt),b=y("scroll-number",n),v={...h,"data-show":f,style:c,className:Q(b,a,s),title:d};let x=r;if(r&&Number(r)%1===0){const C=String(r).split("");x=l.createElement("bdi",null,C.map((w,R)=>l.createElement(Y9,{prefixCls:b,count:Number(r),value:w,key:C.length-R})))}return c?.borderColor&&(v.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?or(g,C=>({className:Q(`${b}-custom-component`,C?.className,s)})):l.createElement(m,{...v,ref:t},x)}),q9=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),G9=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),X9=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),K9=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Q9=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Z9=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),J9=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:s,textFontSizeSM:c,statusSize:d,dotSize:f,textFontWeight:m,indicatorHeight:g,indicatorHeightSM:h,marginXS:y,calc:b}=e,v=`${r}-scroll-number`,x=Tp(e,(C,{darkColor:w})=>({[`&${t} ${t}-color-${C}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:{...Jt(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:m,fontSize:s,lineHeight:te(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(g).div(2).equal(),boxShadow:`0 0 0 ${te(a)} ${e.badgeShadowColor}`,transition:`background-color ${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:b(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(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Z9,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:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:q9,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}},...x,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:G9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:X9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:K9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Q9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[v]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${v}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},f6=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,s=t,c=n,d=e.colorTextLightSolid,f=e.colorError,m=e.colorErrorHover;return Nt(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:d,badgeColor:f,badgeColorHover:m,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},m6=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},e7=Pt("Badge",e=>{const t=f6(e);return J9(t)},m6),t7=l.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:a,status:s,text:c,color:d,count:f=null,overflowCount:m=99,dot:g=!1,size:h="default",title:y,offset:b,style:v,className:x,rootClassName:C,classNames:w,styles:R,showZero:$=!1,...E}=e,{getPrefixCls:T,direction:N,className:O,style:D,classNames:j,styles:B}=Rt("badge"),V=T("badge",n),[U,G]=e7(V),Y={...e,overflowCount:m,size:h,dot:g,showZero:$},[_,H]=Bt([j,w],[B,R],{props:Y}),F=f>m?`${m}+`:f,I=F==="0"||F===0||c==="0"||c===0,z=f===null||I&&!$,L=(Mr(s)||Mr(d))&&z,P=Mr(s)||!I,A=g&&!I,k=A?"":F,q=l.useMemo(()=>((!Mr(k)||k==="")&&(!Mr(c)||c==="")||I&&!$)&&!A,[k,I,$,A,c]),K=l.useRef(f);q||(K.current=f);const Z=K.current,J=l.useRef(k);q||(J.current=k);const re=J.current,ie=l.useRef(A);q||(ie.current=A);const ne=l.useMemo(()=>{if(!b)return{...D,...v};const ye=Number.parseInt(b[0],10);return{...{marginTop:b[1],insetInlineEnd:-ye},...D,...v}},[b,v,D]),le=y??(typeof Z=="string"||typeof Z=="number"?Z:void 0),se=!q&&(c===0?$:!!c&&c!==!0),ce=se?l.createElement("span",{className:`${V}-status-text`},c):null,me=!Z||typeof Z!="object"?void 0:or(Z,ye=>({style:{...ne,...ye.style}})),ae=kp(d,!1),fe=Q(_.indicator,{[`${V}-status-dot`]:L,[`${V}-status-${s}`]:!!s,[`${V}-color-${d}`]:ae}),ge={};d&&!ae&&(ge.color=d,ge.background=d);const he=Q(V,{[`${V}-status`]:L,[`${V}-not-a-wrapper`]:!a,[`${V}-rtl`]:N==="rtl"},x,C,O,_.root,U,G);if(!a&&L&&(c||P||!z)){const ye=ne.color;return l.createElement("span",{ref:t,...E,className:he,style:{...H.root,...ne}},l.createElement("span",{className:fe,style:{...H.indicator,...ge}}),se&&l.createElement("span",{style:{color:ye},className:`${V}-status-text`},c))}return l.createElement("span",{ref:t,...E,className:he,style:H.root},a,l.createElement(vr,{visible:!q,motionName:`${V}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:ye})=>{const Ae=T("scroll-number",r),xe=ie.current,Se=Q(_.indicator,{[`${V}-dot`]:xe,[`${V}-count`]:!xe,[`${V}-count-sm`]:h==="small",[`${V}-multiple-words`]:!xe&&re&&re.toString().length>1,[`${V}-status-${s}`]:!!s,[`${V}-color-${d}`]:ae});let ue={...H.indicator,...ne};return d&&!ae&&(ue=ue||{},ue.background=d),l.createElement(U9,{prefixCls:Ae,show:!q,motionClassName:ye,className:Se,count:re,title:le,style:ue,key:"scrollNumber"},me)}),ce)}),n7=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=Tp(e,(m,{darkColor:g})=>({[`&${c}-color-${m}`]:{background:g,color:g}}));return{[d]:{position:"relative"},[c]:{...Jt(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:a,height:a,color:"currentcolor",border:`${te(s(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...f,[`&${c}-placement-end`]:{insetInlineEnd:s(a).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(a).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},r7=Pt(["Badge","Ribbon"],e=>{const t=f6(e);return n7(t)},m6),o7=e=>{const{className:t,prefixCls:n,style:r,color:a,children:s,text:c,placement:d="end",rootClassName:f,styles:m,classNames:g}=e,{getPrefixCls:h,direction:y,className:b,style:v,classNames:x,styles:C}=Rt("ribbon"),w=h("ribbon",n),R=`${w}-wrapper`,[$,E]=r7(w,R),T={...e,placement:d},[N,O]=Bt([x,g],[C,m],{props:T}),D=kp(a,!1),j=Q(w,`${w}-placement-${d}`,{[`${w}-rtl`]:y==="rtl",[`${w}-color-${a}`]:D},t,b,N.indicator),B={},V={};return a&&!D&&(B.background=a,V.color=a),l.createElement("div",{className:Q(R,f,$,E,N.root),style:O.root},s,l.createElement("div",{className:Q(j,$),style:{...B,...O.indicator,...v,...r}},l.createElement("span",{className:Q(`${w}-content`,N.content),style:O.content},c),l.createElement("div",{className:`${w}-corner`,style:V})))},hi=t7;hi.Ribbon=o7;var a7={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 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 i7=(e,t)=>l.createElement(pt,Vv({},e,{ref:t,icon:a7})),Ou=l.forwardRef(i7),{ESC:l7,TAB:s7}=it;function c7({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:a}){const s=l.useRef(!1),c=()=>{e&&(t.current?.focus?.(),n?.(!1))},d=()=>a.current?.focus?(a.current.focus(),s.current=!0,!0):!1,f=m=>{switch(m.keyCode){case l7:c();break;case s7:{let g=!1;s.current||(g=d()),g?m.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 u7=l.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:a}=e,s=l.useMemo(()=>{let d;return typeof n=="function"?d=n():d=n,d},[n]),c=mr(t,bi(s));return oe.createElement(oe.Fragment,null,r&&oe.createElement("div",{className:`${a}-arrow`}),oe.cloneElement(s,{ref:ul(s)?c:void 0}))}),ls={adjustX:1,adjustY:1},ss=[0,0],d7={topLeft:{points:["bl","tl"],overflow:ls,offset:[0,-4],targetOffset:ss},top:{points:["bc","tc"],overflow:ls,offset:[0,-4],targetOffset:ss},topRight:{points:["br","tr"],overflow:ls,offset:[0,-4],targetOffset:ss},bottomLeft:{points:["tl","bl"],overflow:ls,offset:[0,4],targetOffset:ss},bottom:{points:["tc","bc"],overflow:ls,offset:[0,4],targetOffset:ss},bottomRight:{points:["tr","br"],overflow:ls,offset:[0,4],targetOffset:ss}};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 p6=oe.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:a,animation:s,align:c,placement:d="bottomLeft",placements:f=d7,getPopupContainer:m,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:b,visible:v,trigger:x=["hover"],autoFocus:C,overlay:w,children:R,onVisibleChange:$,...E}=e,[T,N]=oe.useState(),O="visible"in e?v:T,D=s?`${r}-${s}`:a,j=oe.useRef(null),B=oe.useRef(null),V=oe.useRef(null);oe.useImperativeHandle(t,()=>j.current);const U=L=>{N(L),$?.(L)};c7({visible:O,triggerRef:V,onVisibleChange:U,autoFocus:C,overlayRef:B});const G=L=>{const{onOverlayClick:P}=e;N(!1),P&&P(L)},Y=()=>oe.createElement(u7,{ref:B,overlay:w,prefixCls:r,arrow:n}),_=()=>typeof w=="function"?Y:Y(),H=()=>{const{minOverlayWidthMatchTrigger:L,alignPoint:P}=e;return"minOverlayWidthMatchTrigger"in e?L:!P},F=()=>{const{openClassName:L}=e;return L!==void 0?L:`${r}-open`},I=oe.cloneElement(R,{className:Q(R.props?.className,O&&F()),ref:ul(R)?mr(V,bi(R)):void 0});let z=h;return!z&&x.indexOf("contextMenu")!==-1&&(z=["click"]),oe.createElement(pd,Fv({builtinPlacements:f},E,{prefixCls:r,ref:j,popupClassName:Q(y,{[`${r}-show-arrow`]:n}),popupStyle:b,action:x,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupMotion:{motionName:D},popupVisible:O,stretch:H()?"minWidth":"",popup:_(),onOpenChange:U,onPopupClick:G,getPopupContainer:m}),I)}),f7=e=>typeof e!="object"&&typeof e!="function"||e===null,g6=l.createContext(null);function h6(e,t){return`${e}-${t}`}function y6(e){const t=l.useContext(g6);return h6(t,e)}const _o=l.createContext(null);function m7(e,t){const n={...e};return Object.keys(t).forEach(r=>{const a=t[r];a!==void 0&&(n[r]=a)}),n}function Nu({children:e,locked:t,...n}){const r=l.useContext(_o),a=ld(()=>m7(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!Su(s[1],c[1],!0)));return l.createElement(_o.Provider,{value:a},e)}const p7=[],b6=l.createContext(null);function Wp(){return l.useContext(b6)}const v6=l.createContext(p7);function Vs(e){const t=l.useContext(v6);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const S6=l.createContext(null),l1=l.createContext({}),{LEFT:kv,RIGHT:Wv,UP:Yv,DOWN:Rm,ENTER:Tm,ESC:C6,HOME:Lc,END:Vc}=it,M2=[Yv,Rm,kv,Wv];function g7(e,t,n,r){const a="prev",s="next",c="children",d="parent";if(e==="inline"&&r===Tm)return{inlineTrigger:!0};const f={[Yv]:a,[Rm]:s},m={[kv]:n?s:a,[Wv]:n?a:s,[Rm]:c,[Tm]:c},g={[Yv]:a,[Rm]:s,[Tm]:c,[C6]:d,[kv]:n?c:d,[Wv]:n?d:c};switch({inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case a: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 h7(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function y7(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function s1(e,t){return XS(e,!0).filter(r=>t.has(r))}function R2(e,t,n,r=1){if(!e)return null;const a=s1(e,t),s=a.length;let c=a.findIndex(d=>n===d);return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,a[c]}const np=(e,t)=>{const n=new Set,r=new Map,a=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${h6(t,s)}']`);c&&(n.add(c),a.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:a}};function b7(e,t,n,r,a,s,c,d,f,m){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{Ht.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),b=>{const{which:v}=b;if([...M2,Tm,C6,Lc,Vc].includes(v)){const x=s();let C=np(x,r);const{elements:w,key2element:R,element2key:$}=C,E=R.get(t),T=y7(E,w),N=$.get(T),O=g7(e,c(N,!0).length===1,n,v);if(!O&&v!==Lc&&v!==Vc)return;(M2.includes(v)||[Lc,Vc].includes(v))&&b.preventDefault();const D=j=>{if(j){let B=j;const V=j.querySelector("a");V?.getAttribute("href")&&(B=V);const U=$.get(j);d(U),y(),g.current=Ht(()=>{h.current===U&&B.focus()})}};if([Lc,Vc].includes(v)||O.sibling||!T){let j;!T||e==="inline"?j=a.current:j=h7(T);let B;const V=s1(j,w);v===Lc?B=V[0]:v===Vc?B=V[V.length-1]:B=R2(j,w,T,O.offset),D(B)}else if(O.inlineTrigger)f(N);else if(O.offset>0)f(N,!0),y(),g.current=Ht(()=>{C=np(x,r);const j=T.getAttribute("aria-controls"),B=document.getElementById(j),V=R2(B,C.elements);D(V)},5);else if(O.offset<0){const j=c(N,!0),B=j[j.length-2],V=R.get(B);f(B,!1),D(V)}}m?.(b)}}function v7(e){Promise.resolve().then(e)}const c1="__RC_UTIL_PATH_SPLIT__",T2=e=>e.join(c1),S7=e=>e.split(c1),Uv="rc-menu-more";function C7(){const[,e]=l.useState({}),t=l.useRef(new Map),n=l.useRef(new Map),[r,a]=l.useState([]),s=l.useRef(0),c=l.useRef(!1),d=()=>{c.current||e({})},f=l.useCallback((x,C)=>{const w=T2(C);n.current.set(w,x),t.current.set(x,w),s.current+=1;const R=s.current;v7(()=>{R===s.current&&d()})},[]),m=l.useCallback((x,C)=>{const w=T2(C);n.current.delete(w),t.current.delete(x)},[]),g=l.useCallback(x=>{a(x)},[]),h=l.useCallback((x,C)=>{const w=t.current.get(x)||"",R=S7(w);return C&&r.includes(R[0])&&R.unshift(Uv),R},[r]),y=l.useCallback((x,C)=>x.filter(w=>w!==void 0).some(w=>h(w,!0).includes(C)),[h]),b=()=>{const x=[...t.current.keys()];return r.length&&x.push(Uv),x},v=l.useCallback(x=>{const C=`${t.current.get(x)}${c1}`,w=new Set;return[...n.current.keys()].forEach(R=>{R.startsWith(C)&&w.add(n.current.get(R))}),w},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:m,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:b,getSubPathKeys:v}}function tu(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function x6(e,t,n,r){const{activeKey:a,onActive:s,onInactive:c}=l.useContext(_o),d={active:a===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 $6(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(_o);if(t!=="inline")return null;const a=e;return n?{paddingRight:a*r}:{paddingLeft:a*r}}function w6({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 rp({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(rr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}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)}class x7 extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...a}=this.props,s=rn(a,["eventKey","popupClassName","popupOffset","onTitleClick"]);return rr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Qo.Item,Iu({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const $7=l.forwardRef((e,t)=>{const{style:n,className:r,eventKey:a,warnKey:s,disabled:c,itemIcon:d,children:f,role:m,onMouseEnter:g,onMouseLeave:h,onClick:y,onKeyDown:b,onFocus:v,...x}=e,C=y6(a),{prefixCls:w,onItemClick:R,disabled:$,overflowDisabled:E,itemIcon:T,selectedKeys:N,onActive:O}=l.useContext(_o),{_internalRenderMenuItem:D}=l.useContext(l1),j=`${w}-item`,B=l.useRef(),V=l.useRef(),U=$||c,G=ea(t,V),Y=Vs(a),_=Z=>({key:a,keyPath:[...Y].reverse(),item:B.current,domEvent:Z}),H=d||T,{active:F,...I}=x6(a,U,g,h),z=N.includes(a),L=$6(Y.length),P=Z=>{if(U)return;const J=_(Z);y?.(rp(J)),R(J)},A=Z=>{if(b?.(Z),Z.which===it.ENTER){const J=_(Z);y?.(rp(J)),R(J)}},k=Z=>{O(a),v?.(Z)},q={};e.role==="option"&&(q["aria-selected"]=z);let K=l.createElement(x7,Iu({ref:B,elementRef:G,role:m===null?"none":m||"menuitem",tabIndex:c?null:-1,"data-menu-id":E&&C?null:C},rn(x,["extra"]),I,q,{component:"li","aria-disabled":c,style:{...L,...n},className:Q(j,{[`${j}-active`]:F,[`${j}-selected`]:z,[`${j}-disabled`]:U},r),onClick:P,onKeyDown:A,onFocus:k}),f,l.createElement(w6,{props:{...e,isSelected:z},icon:H}));return D&&(K=D(K,e,{selected:z})),K});function w7(e,t){const{eventKey:n}=e,r=Wp(),a=Vs(n);return l.useEffect(()=>{if(r)return r.registerPath(n,a),()=>{r.unregisterPath(n,a)}},[a]),r?null:l.createElement($7,Iu({},e,{ref:t}))}const Ed=l.forwardRef(w7);function qv(){return qv=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},qv.apply(this,arguments)}const E7=({className:e,children:t,...n},r)=>{const{prefixCls:a,mode:s,rtl:c}=l.useContext(_o);return l.createElement("ul",qv({className:Q(a,c&&`${a}-rtl`,`${a}-sub`,`${a}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},E6=l.forwardRef(E7);function u1(e,t){return fr(e).map((n,r)=>{if(l.isValidElement(n)){const{key:a}=n;let s=n.props?.eventKey??a;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},M7={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}},R7={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 M6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const T7={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function O7({prefixCls:e,visible:t,children:n,popup:r,popupStyle:a,popupClassName:s,popupOffset:c,disabled:d,mode:f,onVisibleChange:m}){const{getPopupContainer:g,rtl:h,subMenuOpenDelay:y,subMenuCloseDelay:b,builtinPlacements:v,triggerSubMenuAction:x,forceSubMenuRender:C,rootClassName:w,motion:R,defaultMotions:$}=l.useContext(_o),[E,T]=l.useState(!1),N=h?{...R7,...v}:{...M7,...v},O=T7[f],D=M6(f,R,$),j=l.useRef(D);f!=="inline"&&(j.current=D);const B={...j.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},V=l.useRef();return l.useEffect(()=>(V.current=Ht(()=>{T(t)}),()=>{Ht.cancel(V.current)}),[t]),l.createElement(pd,{prefixCls:e,popupClassName:Q(`${e}-popup`,{[`${e}-rtl`]:h},s,w),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:O,popupVisible:E,popup:r,popupStyle:a,popupAlign:c&&{offset:c},action:d?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:m,forceRender:C,popupMotion:B,fresh:!0},n)}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)}function N7({id:e,open:t,keyPath:n,children:r}){const a="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:m}=l.useContext(_o),g=l.useRef(!1);g.current=m===a;const[h,y]=l.useState(!g.current),b=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[m]);const v={...M6(a,d,f)};n.length>1&&(v.motionAppear=!1);const x=v.onVisibleChanged;return v.onVisibleChanged=C=>(!g.current&&!C&&y(!0),x?.(C)),h?null:l.createElement(Nu,{mode:a,locked:!g.current},l.createElement(vr,Gv({visible:b},v,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:C,style:w})=>l.createElement(E6,{id:e,className:C,style:w},r)))}function Pu(){return Pu=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},Pu.apply(this,arguments)}const I7=l.forwardRef((e,t)=>{const{style:n,className:r,styles:a,classNames:s,title:c,eventKey:d,warnKey:f,disabled:m,internalPopupClose:g,children:h,itemIcon:y,expandIcon:b,popupClassName:v,popupOffset:x,popupStyle:C,onClick:w,onMouseEnter:R,onMouseLeave:$,onTitleClick:E,onTitleMouseEnter:T,onTitleMouseLeave:N,popupRender:O,...D}=e,j=y6(d),{prefixCls:B,mode:V,openKeys:U,disabled:G,overflowDisabled:Y,activeKey:_,selectedKeys:H,itemIcon:F,expandIcon:I,onItemClick:z,onOpenChange:L,onActive:P,popupRender:A}=l.useContext(_o),{_internalRenderSubMenuItem:k}=l.useContext(l1),{isSubPathKey:q}=l.useContext(S6),K=Vs(),Z=`${B}-submenu`,J=G||m,re=l.useRef(),ie=l.useRef(),ne=y??F,le=b??I,se=U.includes(d),ce=!Y&&se,me=q(H,d),{active:ae,...fe}=x6(d,J,T,N),[ge,he]=l.useState(!1),ye=Ce=>{J||he(Ce)},Ae=Ce=>{ye(!0),R?.({key:d,domEvent:Ce})},xe=Ce=>{ye(!1),$?.({key:d,domEvent:Ce})},Se=l.useMemo(()=>ae||(V!=="inline"?ge||q([_],d):!1),[V,ae,_,ge,d,q]),ue=$6(K.length),ve=Ce=>{J||(E?.({key:d,domEvent:Ce}),V==="inline"&&L(d,!se))},Me=tu(Ce=>{w?.(rp(Ce)),z(Ce)}),Pe=Ce=>{V!=="inline"&&L(d,Ce)},je=()=>{P(d)},Be=j&&`${j}-popup`,Ze=l.useMemo(()=>l.createElement(w6,{icon:V!=="horizontal"?le:void 0,props:{...e,isOpen:ce,isSubMenu:!0}},l.createElement("i",{className:`${Z}-arrow`})),[V,le,e,ce,Z]);let Fe=l.createElement("div",Pu({role:"menuitem",style:ue,className:`${Z}-title`,tabIndex:J?null:-1,ref:re,title:typeof c=="string"?c:null,"data-menu-id":Y&&j?null:j,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":Be,"aria-disabled":J,onClick:ve,onFocus:je},fe),c,Ze);const _e=l.useRef(V);V!=="inline"&&K.length>1?_e.current="vertical":_e.current=V;const He=_e.current,Ke=l.useMemo(()=>{const Ce=l.createElement(Nu,{classNames:s,styles:a,mode:He==="horizontal"?"vertical":He},l.createElement(E6,{id:Be,ref:ie},h)),Ye=O||A;return Ye?Ye(Ce,{item:e,keys:K}):Ce},[O,A,K,Be,h,e,He]);if(!Y){const Ce=_e.current;Fe=l.createElement(O7,{mode:Ce,prefixCls:Z,visible:!g&&ce&&V!=="inline",popupClassName:v,popupOffset:x,popupStyle:C,popup:Ke,disabled:J,onVisibleChange:Pe},Fe)}let Ne=l.createElement(Qo.Item,Pu({ref:t,role:"none"},D,{component:"li",style:n,className:Q(Z,`${Z}-${V}`,r,{[`${Z}-open`]:ce,[`${Z}-active`]:Se,[`${Z}-selected`]:me,[`${Z}-disabled`]:J}),onMouseEnter:Ae,onMouseLeave:xe}),Fe,!Y&&l.createElement(N7,{id:Be,open:ce,keyPath:K},h));return k&&(Ne=k(Ne,e,{selected:me,active:Se,open:ce,disabled:J})),l.createElement(Nu,{classNames:s,styles:a,onItemClick:Me,mode:V==="horizontal"?"vertical":V,itemIcon:ne,expandIcon:le},Ne)}),Yp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=Vs(n),s=u1(r,a),c=Wp();l.useEffect(()=>{if(c)return c.registerPath(n,a),()=>{c.unregisterPath(n,a)}},[a]);let d;return c?d=s:d=l.createElement(I7,Pu({ref:t},e),s),l.createElement(v6.Provider,{value:a},d)});function d1({className:e,style:t}){const{prefixCls:n}=l.useContext(_o);return Wp()?null:l.createElement("li",{role:"separator",className:Q(`${n}-item-divider`,e),style:t})}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)}const P7=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:a,children:s,...c}=e,{prefixCls:d,classNames:f,styles:m}=l.useContext(_o),g=`${d}-item-group`;return l.createElement("li",op({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:m?.listTitle,title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:Q(`${g}-list`,f?.list),style:m?.list},s))}),f1=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=Vs(n),s=u1(r,a);return Wp()?s:l.createElement(P7,op({ref:t},rn(e,["warnKey"])),s)});function hs(){return hs=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},hs.apply(this,arguments)}function Xv(e,t,n){const{item:r,group:a,submenu:s,divider:c}=t;return(e||[]).map((d,f)=>{if(d&&typeof d=="object"){const{label:m,children:g,key:h,type:y,extra:b,...v}=d,x=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(a,hs({key:x},v,{title:m}),Xv(g,t,n)):l.createElement(s,hs({key:x},v,{title:m}),Xv(g,t,n)):y==="divider"?l.createElement(c,hs({key:x},v)):l.createElement(r,hs({key:x},v,{extra:b}),m,(!!b||b===0)&&l.createElement("span",{className:`${n}-item-extra`},b))}return null}).filter(d=>d)}function O2(e,t,n,r,a){let s=e;const c={divider:d1,item:Ed,group:f1,submenu:Yp,...r};return t&&(s=Xv(t,c,a)),u1(s,n)}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 Bi=[],z7=l.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:a,className:s,styles:c,classNames:d,tabIndex:f=0,items:m,children:g,direction:h,id:y,mode:b="vertical",inlineCollapsed:v,disabled:x,disabledOverflow:C,subMenuOpenDelay:w=.1,subMenuCloseDelay:R=.1,forceSubMenuRender:$,defaultOpenKeys:E,openKeys:T,activeKey:N,defaultActiveFirst:O,selectable:D=!0,multiple:j=!1,defaultSelectedKeys:B,selectedKeys:V,onSelect:U,onDeselect:G,inlineIndent:Y=24,motion:_,defaultMotions:H,triggerSubMenuAction:F="hover",builtinPlacements:I,itemIcon:z,expandIcon:L,overflowedIndicator:P="...",overflowedIndicatorPopupClassName:A,getPopupContainer:k,onClick:q,onOpenChange:K,onKeyDown:Z,openAnimation:J,openTransitionName:re,_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ne,_internalComponents:le,popupRender:se,...ce}=e,[me,ae]=l.useMemo(()=>[O2(g,m,Bi,le,n),O2(g,m,Bi,{},n)],[g,m,le]),[fe,ge]=l.useState(!1),he=l.useRef(),ye=Ho(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Ae=h==="rtl",[xe,Se]=Yt(E,T),ue=xe||Bi,ve=(lt,Wt=!1)=>{function nt(){Se(lt),K?.(lt)}Wt?il.flushSync(nt):nt()},[Me,Pe]=l.useState(ue),je=l.useRef(!1),[Be,Ze]=l.useMemo(()=>(b==="inline"||b==="vertical")&&v?["vertical",v]:[b,!1],[b,v]),Fe=Be==="inline",[_e,He]=l.useState(Be),[Ke,Ne]=l.useState(Ze);l.useEffect(()=>{He(Be),Ne(Ze),je.current&&(Fe?Se(Me):ve(Bi))},[Be,Ze]);const[Ce,Ye]=l.useState(0),et=Ce>=me.length-1||_e!=="horizontal"||C;l.useEffect(()=>{Fe&&Pe(ue)},[ue]),l.useEffect(()=>(je.current=!0,()=>{je.current=!1}),[]);const{registerPath:Le,unregisterPath:Ge,refreshOverflowKeys:Re,isSubPathKey:Xe,getKeyPath:tt,getKeys:at,getSubPathKeys:bt}=C7(),ht=l.useMemo(()=>({registerPath:Le,unregisterPath:Ge}),[Le,Ge]),xt=l.useMemo(()=>({isSubPathKey:Xe}),[Xe]);l.useEffect(()=>{Re(et?Bi:me.slice(Ce+1).map(lt=>lt.key))},[Ce,et]);const[ke,Qe]=Yt(N||O&&me[0]?.key,N),ze=tu(lt=>{Qe(lt)}),Ie=tu(()=>{Qe(void 0)});l.useImperativeHandle(t,()=>({list:he.current,focus:lt=>{const Wt=at(),{elements:nt,key2element:gt,element2key:Dt}=np(Wt,ye),en=s1(he.current,nt);let Vt;ke&&Wt.includes(ke)?Vt=ke:Vt=en[0]?Dt.get(en[0]):me.find(on=>!on.props.disabled)?.key;const tn=gt.get(Vt);Vt&&tn&&tn?.focus?.(lt)},findItem:({key:lt})=>{const Wt=at(),{key2element:nt}=np(Wt,ye);return nt.get(lt)||null}}));const[Ue,Te]=Yt(B||[],V),qe=l.useMemo(()=>Array.isArray(Ue)?Ue:Ue==null?Bi:[Ue],[Ue]),Je=lt=>{if(D){const{key:Wt}=lt,nt=qe.includes(Wt);let gt;j?nt?gt=qe.filter(en=>en!==Wt):gt=[...qe,Wt]:gt=[Wt],Te(gt);const Dt={...lt,selectedKeys:gt};nt?G?.(Dt):U?.(Dt)}!j&&ue.length&&_e!=="inline"&&ve(Bi)},ot=tu(lt=>{q?.(rp(lt)),Je(lt)}),ft=tu((lt,Wt)=>{let nt=ue.filter(gt=>gt!==lt);if(Wt)nt.push(lt);else if(_e!=="inline"){const gt=bt(lt);nt=nt.filter(Dt=>!gt.has(Dt))}Su(ue,nt,!0)||ve(nt,!0)}),Tt=b7(_e,ke,Ae,ye,he,at,tt,Qe,(lt,Wt)=>{const nt=Wt??!ue.includes(lt);ft(lt,nt)},Z);l.useEffect(()=>{ge(!0)},[]);const $t=l.useMemo(()=>({_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ne}),[ie,ne]),dn=_e!=="horizontal"||C?me:me.map((lt,Wt)=>l.createElement(Nu,{key:lt.key,overflowDisabled:Wt>Ce,classNames:d,styles:c},lt)),Mn=l.createElement(Qo,Kv({id:y,ref:he,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Ed,className:Q(n,`${n}-root`,`${n}-${_e}`,s,{[`${n}-inline-collapsed`]:Ke,[`${n}-rtl`]:Ae},r),dir:h,style:a,role:"menu",tabIndex:f,data:dn,renderRawItem:lt=>lt,renderRawRest:lt=>{const Wt=lt.length,nt=Wt?me.slice(-Wt):null;return l.createElement(Yp,{eventKey:Uv,title:P,disabled:et,internalPopupClose:Wt===0,popupClassName:A},nt)},maxCount:_e!=="horizontal"||C?Qo.INVALIDATE:Qo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:lt=>{Ye(lt)},onKeyDown:Tt},ce));return l.createElement(l1.Provider,{value:$t},l.createElement(g6.Provider,{value:ye},l.createElement(Nu,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:_e,openKeys:ue,rtl:Ae,disabled:x,motion:fe?_:null,defaultMotions:fe?H:null,activeKey:ke,onActive:ze,onInactive:Ie,selectedKeys:qe,inlineIndent:Y,subMenuOpenDelay:w,subMenuCloseDelay:R,forceSubMenuRender:$,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:k,itemIcon:z,expandIcon:L,onItemClick:ot,onOpenChange:ft,popupRender:se},l.createElement(S6.Provider,{value:xt},Mn),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(b6.Provider,{value:ht},ae)))))}),Fs=z7;Fs.Item=Ed;Fs.SubMenu=Yp;Fs.ItemGroup=f1;Fs.Divider=d1;var A7={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 Qv(){return Qv=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},Qv.apply(this,arguments)}const D7=(e,t)=>l.createElement(pt,Qv({},e,{ref:t,icon:A7})),j7=l.forwardRef(D7),R6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),_7=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:s,headerPadding:c,headerColor:d,footerPadding:f,fontSize:m,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:m,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},T6=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:s,marginXXS:c,colorTextLightSolid:d,colorBgContainer:f}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${m}px`,headerColor:a,footerPadding:`${s}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:a}},O6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],N6=Pt("Layout",_7,T6,{deprecatedTokens:O6}),H7=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:s,triggerHeight:c,triggerColor:d,triggerBg:f,headerHeight:m,zeroTriggerWidth:g,zeroTriggerHeight:h,borderRadiusLG:y,lightSiderBg:b,lightTriggerColor:v,lightTriggerBg:x,bodyBg:C}=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:m,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-color ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${te(y)} 0 0 ${te(y)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:v,background:x},[`${t}-zero-width-trigger`]:{color:v,background:x,border:`1px solid ${C}`,borderInlineStart:0}}}}},B7=Pt(["Layout","Sider"],H7,T6,{deprecatedTokens:O6}),N2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},L7=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Up=l.createContext({}),V7=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),I6=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:s,defaultCollapsed:c=!1,theme:d="dark",style:f={},collapsible:m=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:y=80,zeroWidthTriggerStyle:b,breakpoint:v,onCollapse:x,onBreakpoint:C,...w}=e,{siderHook:R}=l.useContext(R6),[$,E]=l.useState("collapsed"in e?e.collapsed:c),[T,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const O=(J,re)=>{"collapsed"in e||E(J),x?.(J,re)},{getPrefixCls:D,direction:j}=l.useContext(dt),B=D("layout-sider",n),[V,U]=B7(B),G=l.useRef(null);G.current=J=>{N(J.matches),C?.(J.matches),$!==J.matches&&O(J.matches,"responsive")},l.useEffect(()=>{function J(ie){return G.current?.(ie)}let re;return typeof window?.matchMedia<"u"&&v&&v in N2&&(re=window.matchMedia(`screen and (max-width: ${N2[v]})`),typeof re?.addEventListener=="function"&&re.addEventListener("change",J),J(re)),()=>{typeof re?.removeEventListener=="function"&&re.removeEventListener("change",J)}},[v]),l.useEffect(()=>{const J=V7("ant-sider-");return R.addSider(J),()=>R.removeSider(J)},[]);const Y=()=>{O(!$,"clickTrigger")},_=rn(w,["collapsed"]),H=$?y:h,F=L7(H)?`${H}px`:String(H),I=Number.parseFloat(String(y||0))===0?l.createElement("span",{onClick:Y,className:Q(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${g?"right":"left"}`),style:b},a||l.createElement(j7,null)):null,z=j==="rtl"==!g,A={expanded:z?l.createElement(Ts,null):l.createElement(Ou,null),collapsed:z?l.createElement(Ou,null):l.createElement(Ts,null)}[$?"collapsed":"expanded"],k=a!==null?I||l.createElement("div",{className:`${B}-trigger`,onClick:Y,style:{width:F}},a||A):null,q={...f,flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F},K=Q(B,`${B}-${d}`,{[`${B}-collapsed`]:!!$,[`${B}-has-trigger`]:m&&a!==null&&!I,[`${B}-below`]:!!T,[`${B}-zero-width`]:Number.parseFloat(F)===0},r,V,U),Z=l.useMemo(()=>({siderCollapsed:$}),[$]);return l.createElement(Up.Provider,{value:Z},l.createElement("aside",{className:K,..._,style:q,ref:t},l.createElement("div",{className:`${B}-children`},s),m||T&&I?k:null))});var F7={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 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 k7=(e,t)=>l.createElement(pt,Zv({},e,{ref:t,icon:F7})),m1=l.forwardRef(k7),ap=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),P6=e=>{const{prefixCls:t,className:n,dashed:r,...a}=e,{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),d=Q({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(d1,{className:d,...a})},z6=e=>{const{className:t,children:n,icon:r,title:a,danger:s,extra:c}=e,{prefixCls:d,firstLevel:f,direction:m,disableMenuItemTitleTooltip:g,tooltip:h,inlineCollapsed:y,styles:b,classNames:v}=l.useContext(ap),x=O=>{const D=n?.[0],j=l.createElement("span",{className:Q(`${d}-title-content`,f?v?.itemContent:v?.subMenu?.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:f?b?.itemContent:b?.subMenu?.itemContent},n);return(!r||l.isValidElement(n)&&n.type==="span")&&n&&O&&f&&typeof D=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},D.charAt(0)):j},{siderCollapsed:C}=l.useContext(Up);let w=a;typeof a>"u"?w=f?n:"":a===!1&&(w="");const R=h===!1?void 0:h,$=R&&R.title!==void 0?R.title:w,E={...R??null,title:$};!C&&!y&&(E.title=null,E.open=!1);const T=fr(n).length;let N=l.createElement(Ed,{...rn(e,["title","icon","danger"]),className:Q(f?v?.item:v?.subMenu?.item,{[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(r?T+1:T)===1},t),style:{...f?b?.item:b?.subMenu?.item,...e.style},title:typeof a=="string"?a:void 0},or(r,O=>({className:Q(`${d}-item-icon`,f?v?.itemIcon:v?.subMenu?.itemIcon,O.className),style:{...f?b?.itemIcon:b?.subMenu?.itemIcon,...O.style}})),x(y));if(!g&&h!==!1){const O=R&&R.placement?R.placement:m==="rtl"?"left":"right",D=`${d}-inline-collapsed-tooltip`,j=V=>({...V,root:Q(D,V?.root)}),B=R&&typeof R.classNames=="function"?V=>{const U=R.classNames(V);return j(U)}:j(R?.classNames);N=l.createElement(dr,{...E,placement:O,classNames:B},N)}return N},ip=l.createContext(null),W7=l.forwardRef((e,t)=>{const{children:n,...r}=e,a=l.useContext(ip),s=l.useMemo(()=>({...a,...r}),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=lz(n),d=ea(t,c?bi(n):null);return l.createElement(ip.Provider,{value:s},l.createElement(Ta,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),Y7=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:s,lineType:c,itemPaddingInline:d}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${c} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${t}-item:hover,
|
|
188
|
+
> ${t}-item-active,
|
|
189
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(f=>`${f} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},U7=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
190
|
+
${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)})`}}}}),I2=e=>jo(e),P2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:s,groupTitleColor:c,itemBg:d,subMenuItemBg:f,itemSelectedBg:m,activeBarHeight:g,activeBarWidth:h,activeBarBorderWidth:y,motionDurationSlow:b,motionEaseInOut:v,motionEaseOut:x,itemPaddingInline:C,motionDurationMid:w,itemHoverColor:R,lineType:$,colorSplit:E,itemDisabledColor:T,dangerItemColor:N,dangerItemHoverColor:O,dangerItemSelectedColor:D,dangerItemActiveBg:j,dangerItemSelectedBg:B,popupBg:V,itemHoverBg:U,itemActiveBg:G,menuSubMenuBg:Y,horizontalItemSelectedColor:_,horizontalItemSelectedBg:H,horizontalItemBorderRadius:F,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:d,[`&${n}-root:focus-visible`]:{...I2(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`]:{...I2(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:R}},[`&: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:O}},[`&${n}-item:active`]:{background:j}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:D},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:m,[`&${n}-item-danger`]:{backgroundColor:B}},[`&${n}-submenu > ${n}`]:{backgroundColor:Y},[`&${n}-popup > ${n}`]:{backgroundColor:V},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:V},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:F,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${te(g)} solid transparent`,transition:`border-color ${b} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:g,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:H,"&:hover":{backgroundColor:H},"&::after":{borderBottomWidth:g,borderBottomColor:_}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(y)} ${$} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(h)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(z=>`${z} ${w} ${x}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:D}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(z=>`${z} ${w} ${v}`).join(",")}}}}}},z2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:s,marginXS:c,itemMarginBlock:d,itemWidth:f,itemPaddingInline:m}=e,g=e.calc(s).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:d,width:f},[`> ${t}-item,
|
|
191
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:te(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
192
|
+
${t}-submenu-title`]:{paddingInlineEnd:g}}},q7=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:s,controlHeightLG:c,motionEaseOut:d,paddingXL:f,itemMarginInline:m,fontSizeLG:g,motionDurationFast:h,motionDurationSlow:y,paddingXS:b,boxShadowSecondary:v,collapsedWidth:x,collapsedIconSize:C}=e,w={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...z2(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...z2(e),boxShadow:v}}},{[`${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-color ${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:x,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:g,textAlign:"center"}}},[`> ${t}-item,
|
|
193
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
194
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
195
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${te(e.calc(C).div(2).equal())} - ${te(m)})`,textOverflow:"clip",[`
|
|
196
|
+
${t}-submenu-arrow,
|
|
197
|
+
${t}-submenu-expand-icon
|
|
198
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:C,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:a}},[`${t}-item-group-title`]:{...$o,paddingInline:b}}}]},A2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,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-color ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${r} ${s}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Ds()},[`&${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"}}}},D2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,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","opacity"].map(d=>`${d} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:["background-color","transform","top","color"].map(d=>`${d} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${te(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${te(c)})`}}}}},G7=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:s,motionEaseInOut:c,paddingXS:d,padding:f,colorSplit:m,lineWidth:g,zIndexPopup:h,borderRadiusLG:y,subMenuItemBorderRadius:b,menuArrowSize:v,menuArrowOffset:x,lineType:C,groupTitleLineHeight:w,groupTitleFontSize:R}=e;return[{"":{[n]:{...al(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Jt(e),...al(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${te(d)} ${te(f)}`,fontSize:R,lineHeight:w,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map($=>`${$} ${a} ${c}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a}`,`background-color ${a}`,`padding ${s}`].map($=>`${$} ${c}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map($=>`${$} ${a} ${c}`).join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:C,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...A2(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,...A2(e),...D2(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${c}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...D2(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
|
199
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${te(x)})`},"&::after":{transform:`rotate(45deg) translateX(${te(e.calc(x).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${te(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${te(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${te(x)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},X7=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:a,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:y,colorBgTextHover:b,controlHeightLG:v,lineHeight:x,colorBgElevated:C,marginXXS:w,padding:R,fontSize:$,controlHeightSM:E,fontSizeLG:T,colorTextLightSolid:N,colorErrorHover:O}=e,D=e.activeBarWidth??0,j=e.activeBarBorderWidth??g,B=e.itemMarginInline??e.marginXXS,V=new nn(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:b,itemHoverBg:b,colorItemBgActive:m,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:D,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:j,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:B,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:x,collapsedWidth:v*2,popupBg:C,itemMarginBlock:w,itemPaddingInline:R,horizontalLineHeight:`${v*1.15}px`,iconSize:$,iconMarginInlineEnd:E-$,collapsedIconSize:T,groupTitleFontSize:$,darkItemDisabledColor:new nn(N).setA(.25).toRgbString(),darkItemColor:V,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:V,darkItemHoverColor:N,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:n,itemWidth:D?`calc(100% + ${j}px)`:`calc(100% - ${B*2}px)`}},K7=(e,t=e,n=!0)=>Pt("Menu",a=>{const{colorBgElevated:s,controlHeightLG:c,fontSize:d,darkItemColor:f,darkDangerItemColor:m,darkItemBg:g,darkSubMenuItemBg:h,darkItemSelectedColor:y,darkItemSelectedBg:b,darkDangerItemSelectedBg:v,darkItemHoverBg:x,darkGroupTitleColor:C,darkItemHoverColor:w,darkItemDisabledColor:R,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:T,popupBg:N,darkPopupBg:O}=a,D=a.calc(d).div(7).mul(5).equal(),j=Nt(a,{menuArrowSize:D,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(D).mul(.25).equal(),menuSubMenuBg:s,calc:a.calc,popupBg:N}),B=Nt(j,{itemColor:f,itemHoverColor:w,groupTitleColor:C,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:g,popupBg:O,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:R,dangerItemColor:m,dangerItemHoverColor:$,dangerItemSelectedColor:E,dangerItemActiveBg:T,dangerItemSelectedBg:v,menuSubMenuBg:h,horizontalItemSelectedColor:y,horizontalItemSelectedBg:b});return[G7(j),Y7(j),q7(j),P2(j,"light"),P2(B,"dark"),U7(j),nO(j),Jo(j,"slide-up"),Jo(j,"slide-down"),yd(j,"zoom-big")]},X7,{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),A6=e=>{const{popupClassName:t,icon:n,title:r,theme:a}=e,s=l.useContext(ap),{prefixCls:c,inlineCollapsed:d,theme:f,classNames:m,styles:g}=s,h=Vs();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 x=l.isValidElement(r)&&r.type==="span";y=l.createElement(l.Fragment,null,or(n,C=>({className:Q(C.className,`${c}-item-icon`,m?.itemIcon),style:{...C.style,...g?.itemIcon}})),x?r:l.createElement("span",{className:`${c}-title-content`},r))}const b=l.useMemo(()=>({...s,firstLevel:!1}),[s]),[v]=vi("Menu");return l.createElement(ap.Provider,{value:b},l.createElement(Yp,{...rn(e,["icon"]),title:y,classNames:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},styles:{list:g?.subMenu?.list,listTitle:g?.subMenu?.itemTitle},popupClassName:Q(c,t,m?.popup?.root,`${c}-${a||f}`),popupStyle:{zIndex:v,...e.popupStyle,...g?.popup?.root}}))};function Wy(e){return e===null||e===!1}const Q7={item:z6,submenu:A6,divider:P6},Z7=l.forwardRef((e,t)=>{const n=l.useContext(ip),r=n||{},{prefixCls:a,className:s,style:c,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:m,tooltip:g,inlineCollapsed:h,siderCollapsed:y,rootClassName:b,mode:v,selectable:x,onClick:C,overflowedIndicatorPopupClassName:w,classNames:R,styles:$,...E}=e,{menu:T}=l.useContext(dt),{getPrefixCls:N,getPopupContainer:O,direction:D,className:j,style:B,classNames:V,styles:U}=Rt("menu"),G=N(),Y=rn(E,["collapsedWidth"]);r.validator?.({mode:v});const _=ct((...ne)=>{C?.(...ne),r.onClick?.()}),H=r.mode||v,F=x??r.selectable,I=h??y,z={...e,mode:H,inlineCollapsed:I,selectable:F,theme:d},[L,P]=Bt([V,R],[U,$],{props:z},{popup:{_default:"root"},subMenu:{_default:"item"}}),A={horizontal:{motionName:`${G}-slide-up`},inline:KT(G),other:{motionName:`${G}-zoom-big`}},k=N("menu",a||r.prefixCls),q=ir(k),[K,Z]=K7(k,q,!n),J=Q(`${k}-${d}`,j,s),re=l.useMemo(()=>{if(typeof f=="function"||Wy(f))return f||null;if(typeof r.expandIcon=="function"||Wy(r.expandIcon))return r.expandIcon||null;if(typeof T?.expandIcon=="function"||Wy(T?.expandIcon))return T?.expandIcon||null;const ne=f??r?.expandIcon??T?.expandIcon;return or(ne,{className:Q(`${k}-submenu-expand-icon`,l.isValidElement(ne)?ne.props?.className:void 0)})},[f,r?.expandIcon,T?.expandIcon,k]),ie=l.useMemo(()=>({prefixCls:k,inlineCollapsed:I||!1,direction:D,firstLevel:!0,theme:d,mode:H,disableMenuItemTitleTooltip:m,tooltip:g,classNames:L,styles:P}),[k,I,D,m,d,H,L,P,g]);return l.createElement(ip.Provider,{value:null},l.createElement(ap.Provider,{value:ie},l.createElement(Fs,{getPopupContainer:O,overflowedIndicator:l.createElement(m1,null),overflowedIndicatorPopupClassName:Q(k,`${k}-${d}`,w),classNames:{list:L.list,listTitle:L.itemTitle},styles:{list:P.list,listTitle:P.itemTitle},mode:H,selectable:F,onClick:_,...Y,inlineCollapsed:I,style:{...P.root,...B,...c},className:J,prefixCls:k,direction:D,defaultMotions:A,expandIcon:re,ref:t,rootClassName:Q(b,K,r.rootClassName,Z,q,L.root),_internalComponents:Q7})))}),Md=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Up);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{n.current?.focus(a)}})),l.createElement(Z7,{ref:n,...e,...r})});Md.Item=z6;Md.SubMenu=A6;Md.Divider=P6;Md.ItemGroup=f1;const J7=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},eL=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:s,antCls:c,iconCls:d,motionDurationMid:f,paddingBlock:m,fontSize:g,dropdownEdgeChildPadding:h,colorTextDisabled:y,fontSizeIcon:b,controlPaddingHorizontal:v,colorBgElevated:x}=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(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:b}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:b},[`${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,
|
|
200
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
201
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
|
|
202
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
|
|
203
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
|
|
204
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ap},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
|
|
205
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
|
|
206
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
|
|
207
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
|
|
208
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
|
|
209
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:jp},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
210
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
|
|
211
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Dp},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
|
|
212
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
|
|
213
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:_p}}},a1(e,x,{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`]:{...Jt(e),[n]:{padding:h,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...wo(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(m)} ${te(v)}`,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(m)} ${te(v)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...wo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:x,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:b,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(v).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:x,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Jo(e,"slide-up"),Jo(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down"),yd(e,"zoom-big")]]},tL=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Fp({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Vp(e)}),nL=Pt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,s=Nt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[eL(s),J7(s)]},tL,{resetStyle:!1}),qp=e=>{const{menu:t,arrow:n,prefixCls:r,children:a,trigger:s,disabled:c,dropdownRender:d,popupRender:f,getPopupContainer:m,overlayClassName:g,rootClassName:h,overlayStyle:y,open:b,onOpenChange:v,mouseEnterDelay:x=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:w=!0,placement:R="",transitionName:$,classNames:E,styles:T,destroyPopupOnHide:N,destroyOnHidden:O}=e,{getPrefixCls:D,direction:j,getPopupContainer:B,className:V,style:U,classNames:G,styles:Y}=Rt("dropdown"),_={...e,mouseEnterDelay:x,mouseLeaveDelay:C,autoAdjustOverflow:w},[H,F]=Bt([G,E],[Y,T],{props:_}),I={...U,...y,...F.root},z=f||d,L=l.useMemo(()=>{const xe=D();return $!==void 0?$:R.includes("top")?`${xe}-slide-down`:`${xe}-slide-up`},[D,R,$]),P=l.useMemo(()=>R?R.includes("Center")?R.slice(0,R.indexOf("Center")):R:j==="rtl"?"bottomRight":"bottomLeft",[R,j]),A=D("dropdown",r),k=ir(A),[q,K]=nL(A,k),[,Z]=Yr(),J=l.Children.only(f7(a)?l.createElement("span",null,a):a),re=or(J,{className:Q(`${A}-trigger`,{[`${A}-rtl`]:j==="rtl"},J.props.className),disabled:J.props.disabled??c}),ie=c?[]:s,ne=!!ie?.includes("contextMenu"),[le,se]=Yt(!1,b),ce=ct(xe=>{v?.(xe,{source:"trigger"}),se(xe)}),me=Q(g,h,q,K,k,V,H.root,{[`${A}-rtl`]:j==="rtl"}),ae=a6({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:Z.marginXXS,arrowWidth:n?Z.sizePopupArrow:0,borderRadius:Z.borderRadius}),fe=ct(()=>{t?.selectable&&t?.multiple||(v?.(!1,{source:"menu"}),se(!1))}),ge=()=>{const xe=rn(H,["root"]),Se=rn(F,["root"]);let ue;return t?.items&&(ue=l.createElement(Md,{...t,classNames:{...xe,subMenu:{...xe}},styles:{...Se,subMenu:{...Se}}})),z&&(ue=z(ue)),ue=l.Children.only(typeof ue=="string"?l.createElement("span",null,ue):ue),l.createElement(W7,{prefixCls:`${A}-menu`,rootClassName:Q(K,k),expandIcon:l.createElement("span",{className:`${A}-menu-submenu-arrow`},j==="rtl"?l.createElement(Ou,{className:`${A}-menu-submenu-arrow-icon`}):l.createElement(Ts,{className:`${A}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:fe,validator:({mode:ve})=>{}},ue)},[he,ye]=vi("Dropdown",I.zIndex);let Ae=l.createElement(p6,{alignPoint:ne,...rn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:x,mouseLeaveDelay:C,visible:le,builtinPlacements:ae,arrow:!!n,overlayClassName:me,prefixCls:A,getPopupContainer:m||B,transitionName:L,trigger:ie,overlay:ge,placement:P,onVisibleChange:ce,overlayStyle:{...I,zIndex:he},autoDestroy:O??N},re);return he&&(Ae=l.createElement(dd.Provider,{value:ye},Ae)),Ae},rL=Bp(qp,"align",void 0,"dropdown",e=>e),oL=e=>l.createElement(rL,{...e},l.createElement("span",null));qp._InternalPanelDoNotUseOrYouWillBeFired=oL;var Om={exports:{}},aL=Om.exports,j2;function D6(){return j2||(j2=1,(function(e,t){(function(n,r){e.exports=r()})(aL,(function(){var n=1e3,r=6e4,a=36e5,s="millisecond",c="second",d="minute",f="hour",m="day",g="week",h="month",y="quarter",b="year",v="date",x="Invalid Date",C=/^(\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,R={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(Y){var _=["th","st","nd","rd"],H=Y%100;return"["+Y+(_[(H-20)%10]||_[H]||_[0])+"]"}},$=function(Y,_,H){var F=String(Y);return!F||F.length>=_?Y:""+Array(_+1-F.length).join(H)+Y},E={s:$,z:function(Y){var _=-Y.utcOffset(),H=Math.abs(_),F=Math.floor(H/60),I=H%60;return(_<=0?"+":"-")+$(F,2,"0")+":"+$(I,2,"0")},m:function Y(_,H){if(_.date()<H.date())return-Y(H,_);var F=12*(H.year()-_.year())+(H.month()-_.month()),I=_.clone().add(F,h),z=H-I<0,L=_.clone().add(F+(z?-1:1),h);return+(-(F+(H-I)/(z?I-L:L-I))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:h,y:b,w:g,d:m,D:v,h:f,m:d,s:c,ms:s,Q:y}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},T="en",N={};N[T]=R;var O="$isDayjsObject",D=function(Y){return Y instanceof U||!(!Y||!Y[O])},j=function Y(_,H,F){var I;if(!_)return T;if(typeof _=="string"){var z=_.toLowerCase();N[z]&&(I=z),H&&(N[z]=H,I=z);var L=_.split("-");if(!I&&L.length>1)return Y(L[0])}else{var P=_.name;N[P]=_,I=P}return!F&&I&&(T=I),I||!F&&T},B=function(Y,_){if(D(Y))return Y.clone();var H=typeof _=="object"?_:{};return H.date=Y,H.args=arguments,new U(H)},V=E;V.l=j,V.i=D,V.w=function(Y,_){return B(Y,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var U=(function(){function Y(H){this.$L=j(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[O]=!0}var _=Y.prototype;return _.parse=function(H){this.$d=(function(F){var I=F.date,z=F.utc;if(I===null)return new Date(NaN);if(V.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var L=I.match(C);if(L){var P=L[2]-1||0,A=(L[7]||"0").substring(0,3);return z?new Date(Date.UTC(L[1],P,L[3]||1,L[4]||0,L[5]||0,L[6]||0,A)):new Date(L[1],P,L[3]||1,L[4]||0,L[5]||0,L[6]||0,A)}}return new Date(I)})(H),this.init()},_.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},_.$utils=function(){return V},_.isValid=function(){return this.$d.toString()!==x},_.isSame=function(H,F){var I=B(H);return this.startOf(F)<=I&&I<=this.endOf(F)},_.isAfter=function(H,F){return B(H)<this.startOf(F)},_.isBefore=function(H,F){return this.endOf(F)<B(H)},_.$g=function(H,F,I){return V.u(H)?this[F]:this.set(I,H)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(H,F){var I=this,z=!!V.u(F)||F,L=V.p(H),P=function(ie,ne){var le=V.w(I.$u?Date.UTC(I.$y,ne,ie):new Date(I.$y,ne,ie),I);return z?le:le.endOf(m)},A=function(ie,ne){return V.w(I.toDate()[ie].apply(I.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ne)),I)},k=this.$W,q=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(L){case b:return z?P(1,0):P(31,11);case h:return z?P(1,q):P(0,q+1);case g:var J=this.$locale().weekStart||0,re=(k<J?k+7:k)-J;return P(z?K-re:K+(6-re),q);case m:case v:return A(Z+"Hours",0);case f:return A(Z+"Minutes",1);case d:return A(Z+"Seconds",2);case c:return A(Z+"Milliseconds",3);default:return this.clone()}},_.endOf=function(H){return this.startOf(H,!1)},_.$set=function(H,F){var I,z=V.p(H),L="set"+(this.$u?"UTC":""),P=(I={},I[m]=L+"Date",I[v]=L+"Date",I[h]=L+"Month",I[b]=L+"FullYear",I[f]=L+"Hours",I[d]=L+"Minutes",I[c]=L+"Seconds",I[s]=L+"Milliseconds",I)[z],A=z===m?this.$D+(F-this.$W):F;if(z===h||z===b){var k=this.clone().set(v,1);k.$d[P](A),k.init(),this.$d=k.set(v,Math.min(this.$D,k.daysInMonth())).$d}else P&&this.$d[P](A);return this.init(),this},_.set=function(H,F){return this.clone().$set(H,F)},_.get=function(H){return this[V.p(H)]()},_.add=function(H,F){var I,z=this;H=Number(H);var L=V.p(F),P=function(q){var K=B(z);return V.w(K.date(K.date()+Math.round(q*H)),z)};if(L===h)return this.set(h,this.$M+H);if(L===b)return this.set(b,this.$y+H);if(L===m)return P(1);if(L===g)return P(7);var A=(I={},I[d]=r,I[f]=a,I[c]=n,I)[L]||1,k=this.$d.getTime()+H*A;return V.w(k,this)},_.subtract=function(H,F){return this.add(-1*H,F)},_.format=function(H){var F=this,I=this.$locale();if(!this.isValid())return I.invalidDate||x;var z=H||"YYYY-MM-DDTHH:mm:ssZ",L=V.z(this),P=this.$H,A=this.$m,k=this.$M,q=I.weekdays,K=I.months,Z=I.meridiem,J=function(ne,le,se,ce){return ne&&(ne[le]||ne(F,z))||se[le].slice(0,ce)},re=function(ne){return V.s(P%12||12,ne,"0")},ie=Z||function(ne,le,se){var ce=ne<12?"AM":"PM";return se?ce.toLowerCase():ce};return z.replace(w,(function(ne,le){return le||(function(se){switch(se){case"YY":return String(F.$y).slice(-2);case"YYYY":return V.s(F.$y,4,"0");case"M":return k+1;case"MM":return V.s(k+1,2,"0");case"MMM":return J(I.monthsShort,k,K,3);case"MMMM":return J(K,k);case"D":return F.$D;case"DD":return V.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return J(I.weekdaysMin,F.$W,q,2);case"ddd":return J(I.weekdaysShort,F.$W,q,3);case"dddd":return q[F.$W];case"H":return String(P);case"HH":return V.s(P,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return ie(P,A,!0);case"A":return ie(P,A,!1);case"m":return String(A);case"mm":return V.s(A,2,"0");case"s":return String(F.$s);case"ss":return V.s(F.$s,2,"0");case"SSS":return V.s(F.$ms,3,"0");case"Z":return L}return null})(ne)||L.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(H,F,I){var z,L=this,P=V.p(F),A=B(H),k=(A.utcOffset()-this.utcOffset())*r,q=this-A,K=function(){return V.m(L,A)};switch(P){case b:z=K()/12;break;case h:z=K();break;case y:z=K()/3;break;case g:z=(q-k)/6048e5;break;case m:z=(q-k)/864e5;break;case f:z=q/a;break;case d:z=q/r;break;case c:z=q/n;break;default:z=q}return I?z:V.a(z)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return N[this.$L]},_.locale=function(H,F){if(!H)return this.$L;var I=this.clone(),z=j(H,F,!0);return z&&(I.$L=z),I},_.clone=function(){return V.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},Y})(),G=U.prototype;return B.prototype=G,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",m],["$M",h],["$y",b],["$D",v]].forEach((function(Y){G[Y[1]]=function(_){return this.$g(_,Y[0],Y[1])}})),B.extend=function(Y,_){return Y.$i||(Y(_,U,B),Y.$i=!0),B},B.locale=j,B.isDayjs=D,B.unix=function(Y){return B(1e3*Y)},B.en=N[T],B.Ls=N,B.p={},B}))})(Om)),Om.exports}var iL=D6();const bn=Na(iL);var Nm={exports:{}},lL=Nm.exports,_2;function sL(){return _2||(_2=1,(function(e,t){(function(n,r){e.exports=r()})(lL,(function(){return function(n,r){r.prototype.weekday=function(a){var s=this.$locale().weekStart||0,c=this.$W,d=(c<s?c+7:c)-s;return this.$utils().u(a)?d:this.subtract(d,"day").add(a,"day")}}}))})(Nm)),Nm.exports}var cL=sL();const uL=Na(cL);var Im={exports:{}},dL=Im.exports,H2;function fL(){return H2||(H2=1,(function(e,t){(function(n,r){e.exports=r()})(dL,(function(){return function(n,r,a){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,b,v,x){var C=h.name?h:h.$locale(),w=c(C[y]),R=c(C[b]),$=w||R.map((function(T){return T.slice(0,v)}));if(!x)return $;var E=C.weekStart;return $.map((function(T,N){return $[(N+(E||0))%7]}))},f=function(){return a.Ls[a.locale()]},m=function(h,y){return h.formats[y]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,x,C){return x||C.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 m(h.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},a.localeData=function(){var h=f();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(y){return m(h,y)},meridiem:h.meridiem,ordinal:h.ordinal}},a.months=function(){return d(f(),"months")},a.monthsShort=function(){return d(f(),"monthsShort","months",3)},a.weekdays=function(h){return d(f(),"weekdays",null,null,h)},a.weekdaysShort=function(h){return d(f(),"weekdaysShort","weekdays",3,h)},a.weekdaysMin=function(h){return d(f(),"weekdaysMin","weekdays",2,h)}}}))})(Im)),Im.exports}var mL=fL();const pL=Na(mL);var Pm={exports:{}},gL=Pm.exports,B2;function hL(){return B2||(B2=1,(function(e,t){(function(n,r){e.exports=r()})(gL,(function(){var n="week",r="year";return function(a,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 m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(r).add(1,r).date(m),h=c(this).endOf(n);if(g.isBefore(h))return 1}var y=c(this).startOf(r).date(m).startOf(n).subtract(1,"millisecond"),b=this.diff(y,n,!0);return b<0?c(this).startOf("week").week():Math.ceil(b)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Pm)),Pm.exports}var yL=hL();const bL=Na(yL);var zm={exports:{}},vL=zm.exports,L2;function SL(){return L2||(L2=1,(function(e,t){(function(n,r){e.exports=r()})(vL,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),s=this.week(),c=this.year();return s===1&&a===11?c+1:a===0&&s>=52?c-1:c}}}))})(zm)),zm.exports}var CL=SL();const xL=Na(CL);var Am={exports:{}},$L=Am.exports,V2;function wL(){return V2||(V2=1,(function(e,t){(function(n,r){e.exports=r()})($L,(function(){return function(n,r){var a=r.prototype,s=a.format;a.format=function(c){var d=this,f=this.$locale();if(!this.isValid())return s.bind(this)(c);var m=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 m.s(d.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(d.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.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)}}}))})(Am)),Am.exports}var EL=wL();const ML=Na(EL);var Dm={exports:{}},RL=Dm.exports,F2;function TL(){return F2||(F2=1,(function(e,t){(function(n,r){e.exports=r()})(RL,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,c=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,f={},m=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(w){this[C]=+w}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var R=w.match(/([+-]|\d\d)/g),$=60*R[1]+(+R[2]||0);return $===0?0:R[0]==="+"?-$:$})(C)}],y=function(C){var w=f[C];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(C,w){var R,$=f.meridiem;if($){for(var E=1;E<=24;E+=1)if(C.indexOf($(E,0,w))>-1){R=E>12;break}}else R=C===(w?"pm":"PM");return R},v={A:[d,function(C){this.afternoon=b(C,!1)}],a:[d,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[s,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],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(C){var w=f.ordinal,R=C.match(/\d+/);if(this.day=R[0],w)for(var $=1;$<=31;$+=1)w($).replace(/\[|\]/g,"")===C&&(this.day=$)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(C){var w=y("months"),R=(y("monthsShort")||w.map((function($){return $.slice(0,3)}))).indexOf(C)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[d,function(C){var w=y("months").indexOf(C)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(C){this.year=m(C)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function x(C){var w,R;w=C,R=f&&f.formats;for(var $=(C=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,V,U){var G=U&&U.toUpperCase();return V||R[U]||n[U]||R[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(Y,_,H){return _||H.slice(1)}))}))).match(r),E=$.length,T=0;T<E;T+=1){var N=$[T],O=v[N],D=O&&O[0],j=O&&O[1];$[T]=j?{regex:D,parser:j}:N.replace(/^\[|\]$/g,"")}return function(B){for(var V={},U=0,G=0;U<E;U+=1){var Y=$[U];if(typeof Y=="string")G+=Y.length;else{var _=Y.regex,H=Y.parser,F=B.slice(G),I=_.exec(F)[0];H.call(V,I),B=B.replace(I,"")}}return(function(z){var L=z.afternoon;if(L!==void 0){var P=z.hours;L?P<12&&(z.hours+=12):P===12&&(z.hours=0),delete z.afternoon}})(V),V}}return function(C,w,R){R.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(m=C.parseTwoDigitYear);var $=w.prototype,E=$.parse;$.parse=function(T){var N=T.date,O=T.utc,D=T.args;this.$u=O;var j=D[1];if(typeof j=="string"){var B=D[2]===!0,V=D[3]===!0,U=B||V,G=D[2];V&&(G=D[2]),f=this.$locale(),!B&&G&&(f=R.Ls[G]),this.$d=(function(F,I,z,L){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*F);var P=x(I)(F),A=P.year,k=P.month,q=P.day,K=P.hours,Z=P.minutes,J=P.seconds,re=P.milliseconds,ie=P.zone,ne=P.week,le=new Date,se=q||(A||k?1:le.getDate()),ce=A||le.getFullYear(),me=0;A&&!k||(me=k>0?k-1:le.getMonth());var ae,fe=K||0,ge=Z||0,he=J||0,ye=re||0;return ie?new Date(Date.UTC(ce,me,se,fe,ge,he,ye+60*ie.offset*1e3)):z?new Date(Date.UTC(ce,me,se,fe,ge,he,ye)):(ae=new Date(ce,me,se,fe,ge,he,ye),ne&&(ae=L(ae).week(ne).toDate()),ae)}catch{return new Date("")}})(N,j,O,R),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),U&&N!=this.format(j)&&(this.$d=new Date("")),f={}}else if(j instanceof Array)for(var Y=j.length,_=1;_<=Y;_+=1){D[1]=j[_-1];var H=R.apply(this,D);if(H.isValid()){this.$d=H.$d,this.$L=H.$L,this.init();break}_===Y&&(this.$d=new Date(""))}else E.call(this,T)}}}))})(Dm)),Dm.exports}var OL=TL();const NL=Na(OL);bn.extend(NL);bn.extend(ML);bn.extend(uL);bn.extend(pL);bn.extend(bL);bn.extend(xL);bn.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 IL={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"},Li=function(t){var n=IL[t];return n||t.split("_")[0]},j6={getNow:function(){var t=bn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return bn(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 bn().locale(Li(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Li(t)).weekday(0)},getWeek:function(t,n){return n.locale(Li(t)).week()},getShortWeekDays:function(t){return bn().locale(Li(t)).localeData().weekdaysMin()},getShortMonths:function(t){return bn().locale(Li(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Li(t)).format(r)},parse:function(t,n,r){for(var a=Li(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],m=d.split("-")[1],g=bn(f,"YYYY").startOf("year").locale(a),h=0;h<=52;h+=1){var y=g.add(h,"week");if(y.format("Wo")===m)return y}return null}var b=bn(d,c,!0).locale(a);if(b.isValid())return b}return null}}};function PL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Bo=l.createContext(null);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 k2(e,t,n){return t=zL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zL(e){var t=AL(e,"string");return zu(t)=="symbol"?t:String(t)}function AL(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)}var DL={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 _6(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,s=e.transitionName,c=e.getPopupContainer,d=e.children,f=e.range,m=e.placement,g=e.builtinPlacements,h=g===void 0?DL:g,y=e.direction,b=e.visible,v=e.onClose,x=l.useContext(Bo),C=x.prefixCls,w="".concat(C,"-dropdown"),R=PL(m,y==="rtl");return l.createElement(pd,{showAction:[],hideAction:["click"],popupPlacement:R,builtinPlacements:h,prefixCls:w,popupMotion:{motionName:s},popup:t,popupAlign:a,popupVisible:b,popupClassName:Q(r,k2(k2({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(E){E||v()}},d)}function jL(e){return LL(e)||BL(e)||HL(e)||_L()}function _L(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
214
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HL(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 BL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LL(e){if(Array.isArray(e))return Jv(e)}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 p1(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 gl(e){return e==null?[]:Array.isArray(e)?e:[e]}function fu(e,t,n){var r=jL(e);return r[t]=n,r}function Gp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function H6(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 B6(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(s){return e[s]});return r!==a?e[a]:void 0}function L6(e){return Gp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}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 W2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(n),!0).forEach(function(r){VL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VL(e,t,n){return t=FL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FL(e){var t=kL(e,"string");return Au(t)=="symbol"?t:String(t)}function kL(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 g1(e,t,n,r){var a=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 a(c,Y2(Y2({},d),{},{range:r}))},[a,r]);return s}function WL(e,t){return GL(e)||qL(e,t)||UL(e,t)||YL()}function YL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
215
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UL(e,t){if(e){if(typeof e=="string")return U2(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 U2(e,t)}}function U2(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 qL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function GL(e){if(Array.isArray(e))return e}function V6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=WL(r,2),s=a[0],c=a[1],d=function(g,h){c(function(y){return fu(y,h,g)})},f=l.useMemo(function(){return s.map(function(m,g){if(m)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 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 q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function G2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(n),!0).forEach(function(r){XL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XL(e,t,n){return t=KL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KL(e){var t=QL(e,"string");return Du(t)=="symbol"?t:String(t)}function QL(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 F6(e,t,n,r,a){var s="",c=[];return e&&c.push(a?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),s=c.join(":"),r&&(s+=".SSS"),a&&(s+=" A"),s}function ZL(e,t,n,r,a,s){var c=e.fieldDateTimeFormat,d=e.fieldDateFormat,f=e.fieldTimeFormat,m=e.fieldMonthFormat,g=e.fieldYearFormat,h=e.fieldWeekFormat,y=e.fieldQuarterFormat,b=e.yearFormat,v=e.cellYearFormat,x=e.cellQuarterFormat,C=e.dayFormat,w=e.cellDateFormat,R=F6(t,n,r,a,s);return G2(G2({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(R),fieldDateFormat:d||"YYYY-MM-DD",fieldTimeFormat:f||R,fieldMonthFormat:m||"YYYY-MM",fieldYearFormat:g||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:y||"YYYY-[Q]Q",yearFormat:b||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:x||"[Q]Q",cellDateFormat:w||C||"D"})}function k6(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return oe.useMemo(function(){return ZL(e,n,r,a,s,c)},[e,n,r,a,s,c])}function X2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ys(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){JL(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 JL(e,t,n){return t=eV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eV(e){var t=tV(e,"string");return sl(t)=="symbol"?t:String(t)}function tV(e,t){if(sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e0(e,t){return aV(e)||oV(e,t)||rV(e,t)||nV()}function nV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
216
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rV(e,t){if(e){if(typeof e=="string")return K2(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 K2(e,t)}}function K2(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 oV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function aV(e){if(Array.isArray(e))return e}function sl(e){"@babel/helpers - typeof";return sl=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},sl(e)}function Fc(e,t,n){return n??t.some(function(r){return e.includes(r)})}var iV=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function lV(e){var t=Gp(e,iV),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=sl(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function sV(e){return e&&typeof e=="string"}function W6(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function Y6(e,t,n,r,a){var s=t,c=n,d=r;if(!e&&!s&&!c&&!d&&!a)s=!0,c=!0,d=!0;else if(e){var f,m,g,h=[s,c,d].some(function(v){return v===!1}),y=[s,c,d].some(function(v){return v===!0}),b=h?!0:!y;s=(f=s)!==null&&f!==void 0?f:b,c=(m=c)!==null&&m!==void 0?m:b,d=(g=d)!==null&&g!==void 0?g:b}return[s,c,d,a]}function U6(e){var t=e.showTime,n=lV(e),r=e0(n,2),a=r[0],s=r[1],c=t&&sl(t)==="object"?t:{},d=ys(ys({defaultOpenValue:c.defaultOpenValue||c.defaultValue},a),c),f=d.showMillisecond,m=d.showHour,g=d.showMinute,h=d.showSecond,y=W6(m,g,h,f),b=Y6(y,m,g,h,f),v=e0(b,3);return m=v[0],g=v[1],h=v[2],[d,ys(ys({},d),{},{showHour:m,showMinute:g,showSecond:h,showMillisecond:f}),d.format,s]}function q6(e,t,n,r,a){var s=e==="time";if(e==="datetime"||s){for(var c=r,d=H6(e,a,null),f=d,m=[t,n],g=0;g<m.length;g+=1){var h=gl(m[g])[0];if(sV(h)){f=h;break}}var y=c.showHour,b=c.showMinute,v=c.showSecond,x=c.showMillisecond,C=c.use12Hours,w=Fc(f,["a","A","LT","LLL","LTS"],C),R=W6(y,b,v,x);R||(y=Fc(f,["H","h","k","LT","LLL"]),b=Fc(f,["m","LT","LLL"]),v=Fc(f,["s","LTS"]),x=Fc(f,["SSS"]));var $=Y6(R,y,b,v,x),E=e0($,3);y=E[0],b=E[1],v=E[2];var T=t||F6(y,b,v,x,w);return ys(ys({},c),{},{format:T,showHour:y,showMinute:b,showSecond:v,showMillisecond:x,use12Hours:w})}return null}function t0(e){"@babel/helpers - typeof";return t0=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},t0(e)}function cV(e,t,n){if(t===!1)return null;var r=t&&t0(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var Yy=7;function Ci(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function n0(e,t,n){return Ci(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function cl(e,t,n){return Ci(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Q2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function uV(e,t,n){return Ci(t,n,function(){return cl(e,t,n)&&Q2(e,t)===Q2(e,n)})}function h1(e,t,n){return Ci(t,n,function(){return cl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function y1(e,t,n){return Ci(t,n,function(){return cl(e,t,n)&&h1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function G6(e,t,n){return Ci(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function X6(e,t,n){return Ci(t,n,function(){return y1(e,t,n)&&G6(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function nu(e,t,n,r){return Ci(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return cl(e,a,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Rr(e,t,n,r,a){switch(a){case"date":return y1(e,n,r);case"week":return nu(e,t.locale,n,r);case"month":return h1(e,n,r);case"quarter":return uV(e,n,r);case"year":return cl(e,n,r);case"decade":return n0(e,n,r);case"time":return G6(e,n,r);default:return X6(e,n,r)}}function Xp(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Qf(e,t,n,r,a){return Rr(e,t,n,r,a)?!0:e.isAfter(n,r)}function dV(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),s=t.getWeekDay(a),c=t.addDate(a,r-s);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function nr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function lp(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(c,d){n?r=e[c](r,e[a[d]](n)):r=e[c](r,0)}),r}function fV(e,t,n,r,a){var s=ct(function(c,d){return!!(n&&n(c,d)||r&&e.isAfter(r,c)&&!Rr(e,t,r,c,d.type)||a&&e.isAfter(c,a)&&!Rr(e,t,a,c,d.type))});return s}function r0(e){"@babel/helpers - typeof";return r0=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},r0(e)}function mV(e,t,n){return l.useMemo(function(){var r=H6(e,t,n),a=gl(r),s=a[0],c=r0(s)==="object"&&s.type==="mask"?s.format:null;return[a.map(function(d){return typeof d=="string"||typeof d=="function"?d:d.format}),c]},[e,t,n])}function pV(e,t,n){return typeof e[0]=="function"||n?!0:t}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 Z2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z2(Object(n),!0).forEach(function(r){hV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hV(e,t,n){return t=yV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yV(e){var t=bV(e,"string");return ju(t)=="symbol"?t:String(t)}function bV(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 vV(e,t,n,r){var a=ct(function(s,c){var d=gV({type:t},c);if(delete d.activeIndex,!e.isValidate(s)||n&&n(s,d))return!0;if((t==="date"||t==="time")&&r){var f,m=c&&c.activeIndex===1?"end":"start",g=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,s,m,{from:d.from}))||{},h=g.disabledHours,y=g.disabledMinutes,b=g.disabledSeconds,v=g.disabledMilliseconds,x=r.disabledHours,C=r.disabledMinutes,w=r.disabledSeconds,R=h||x,$=y||C,E=b||w,T=e.getHour(s),N=e.getMinute(s),O=e.getSecond(s),D=e.getMillisecond(s);if(R&&R().includes(T)||$&&$(T).includes(N)||E&&E(T,N).includes(O)||v&&v(T,N,O).includes(D))return!0}return!1});return a}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 J2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kc(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){SV(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 SV(e,t,n){return t=CV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CV(e){var t=xV(e,"string");return _u(t)=="symbol"?t:String(t)}function xV(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 eM(e,t){return MV(e)||EV(e,t)||wV(e,t)||$V()}function $V(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
217
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wV(e,t){if(e){if(typeof e=="string")return tM(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 tM(e,t)}}function tM(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 EV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function MV(e){if(Array.isArray(e))return e}function Zf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&gl(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function K6(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,s=a===void 0?"date":a,c=e.prefixCls,d=c===void 0?"rc-picker":c,f=e.previewValue,m=f===void 0?"hover":f,g=e.styles,h=g===void 0?{}:g,y=e.classNames,b=y===void 0?{}:y,v=e.order,x=v===void 0?!0:v,C=e.components,w=C===void 0?{}:C,R=e.inputRender,$=e.allowClear,E=e.clearIcon,T=e.needConfirm,N=e.multiple,O=e.format,D=e.inputReadOnly,j=e.disabledDate,B=e.minDate,V=e.maxDate,U=e.showTime,G=e.value,Y=e.defaultValue,_=e.pickerValue,H=e.defaultPickerValue,F=Zf(G),I=Zf(Y),z=Zf(_),L=Zf(H),P=s==="date"&&U?"datetime":s,A=P==="time"||P==="datetime",k=A||N,q=T??A,K=U6(e),Z=eM(K,4),J=Z[0],re=Z[1],ie=Z[2],ne=Z[3],le=k6(r,re),se=l.useMemo(function(){return q6(P,ie,ne,J,le)},[P,ie,ne,J,le]),ce=l.useMemo(function(){return kc(kc({},e),{},{previewValue:m,prefixCls:d,locale:le,picker:s,styles:h,classNames:b,order:x,components:kc({input:R},w),clearIcon:cV(d,$,E),showTime:se,value:F,defaultValue:I,pickerValue:z,defaultPickerValue:L},t?.())},[e]),me=mV(P,le,O),ae=eM(me,2),fe=ae[0],ge=ae[1],he=pV(fe,D,N),ye=fV(n,r,j,B,V),Ae=vV(n,s,ye,se),xe=l.useMemo(function(){return kc(kc({},ce),{},{needConfirm:q,inputReadOnly:he,disabledDate:ye})},[ce,q,he,ye]);return[xe,P,k,fe,ge,Ae]}function nM(e,t){return NV(e)||OV(e,t)||TV(e,t)||RV()}function RV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
218
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TV(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 OV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function NV(e){if(Array.isArray(e))return e}function IV(e,t,n){var r=Yt(t,e),a=nM(r,2),s=a[0],c=a[1],d=oe.useState({}),f=nM(d,2),m=f[1],g=ct(function(C){c(C),m({})}),h=oe.useRef(e),y=oe.useRef(),b=function(){Ht.cancel(y.current)},v=ct(function(){g(h.current),n&&s!==h.current&&n(h.current)}),x=ct(function(C,w){b(),h.current=C,C||w?v():y.current=Ht(v)});return oe.useEffect(function(){return b},[]),[s,x]}function PV(e,t){return jV(e)||DV(e,t)||AV(e,t)||zV()}function zV(){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 AV(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 DV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function jV(e){if(Array.isArray(e))return e}function Q6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(g){return g})?!1:e,s=IV(a,t||!1,r),c=PV(s,2),d=c[0],f=c[1];function m(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!h.inherit||d)&&f(g,h.force)}return[d,m]}function Z6(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var s;(s=t.current)===null||s===void 0||s.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function _V(e,t){return VV(e)||LV(e,t)||BV(e,t)||HV()}function HV(){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 BV(e,t){if(e){if(typeof e=="string")return aM(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 aM(e,t)}}function aM(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,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function VV(e){if(Array.isArray(e))return e}function J6(e,t){return l.useMemo(function(){return e||(t?(rr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=_V(n,2),a=r[0],s=r[1];return{label:a,value:s}})):[])},[e,t])}function b1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,f4(function(){if(e)r.current(e);else{var a=Ht(function(){r.current(e)},n);return function(){Ht.cancel(a)}}},[e])}function iM(e,t){return YV(e)||WV(e,t)||kV(e,t)||FV()}function FV(){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 kV(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 WV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function YV(e){if(Array.isArray(e))return e}function eN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=iM(r,2),s=a[0],c=a[1],d=l.useState(!1),f=iM(d,2),m=f[0],g=f[1],h=l.useRef([]),y=l.useRef(null),b=l.useRef(null),v=function(E){y.current=E},x=function(E){return y.current===E},C=function(E){g(E)},w=function(E){return E&&(b.current=E),b.current},R=function(E){var T=h.current,N=new Set(T.filter(function(D){return E[D]||t[D]})),O=T[T.length-1]===0?1:0;return N.size>=2||e[O]?null:O};return b1(m||n,function(){m||(h.current=[],v(null))}),l.useEffect(function(){m&&h.current.push(s)},[m,s]),[m,C,w,s,c,R,h.current,v,x]}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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cM(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){UV(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 UV(e,t,n){return t=qV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qV(e){var t=GV(e,"string");return Hu(t)=="symbol"?t:String(t)}function GV(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 XV(e,t){return JV(e)||ZV(e,t)||QV(e,t)||KV()}function KV(){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 QV(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 ZV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function JV(e){if(Array.isArray(e))return e}function eF(e,t,n,r,a,s){var c=n[n.length-1],d=function(m,g){var h=XV(e,2),y=h[0],b=h[1],v=cM(cM({},g),{},{from:B6(e,n)});return c===1&&t[0]&&y&&!Rr(r,a,y,m,v.type)&&r.isAfter(y,m)||c===0&&t[1]&&b&&!Rr(r,a,b,m,v.type)&&r.isAfter(m,b)?!0:s?.(m,v)};return d}function Uy(e,t){return oF(e)||rF(e,t)||nF(e,t)||tF()}function tF(){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 nF(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 rF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function oF(e){if(Array.isArray(e))return e}function ru(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 qy=[];function tN(e,t,n,r,a,s,c,d){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:qy,m=arguments.length>9&&arguments[9]!==void 0?arguments[9]:qy,g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:qy,h=arguments.length>11?arguments[11]:void 0,y=arguments.length>12?arguments[12]:void 0,b=arguments.length>13?arguments[13]:void 0,v=c==="time",x=s||0,C=function(F){var I=e.getNow();return v&&(I=lp(e,I)),f[F]||n[F]||I},w=Uy(m,2),R=w[0],$=w[1],E=Yt(function(){return C(0)},R),T=Uy(E,2),N=T[0],O=T[1],D=Yt(function(){return C(1)},$),j=Uy(D,2),B=j[0],V=j[1],U=l.useMemo(function(){var H=[N,B][x];return v?H:lp(e,H,g[x])},[v,N,B,x,e,g]),G=function(F){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[O,V][x];z(F);var L=[N,B];L[x]=F,h&&(!Rr(e,t,N,L[0],c)||!Rr(e,t,B,L[1],c))&&h(L,{source:I,range:x===1?"end":"start",mode:r})},Y=function(F,I){if(d){var z={date:"month",week:"month",month:"year",quarter:"year"},L=z[c];if(L&&!Rr(e,t,F,I,L))return ru(e,c,I,-1);if(c==="year"&&F){var P=Math.floor(e.getYear(F)/10),A=Math.floor(e.getYear(I)/10);if(P!==A)return ru(e,c,I,-1)}}return I},_=l.useRef(null);return It(function(){if(a&&!f[x]){var H=v?null:e.getNow();if(_.current!==null&&_.current!==x?H=[N,B][x^1]:n[x]?H=x===0?n[0]:Y(n[0],n[1]):n[x^1]&&(H=n[x^1]),H){y&&e.isAfter(y,H)&&(H=y);var F=d?ru(e,c,H,1):H;b&&e.isAfter(F,b)&&(H=d?ru(e,c,b,-1):b),G(H,"reset")}}},[a,x,n[x]]),l.useEffect(function(){a?_.current=x:_.current=null},[a,x]),It(function(){a&&f&&f[x]&&G(f[x],"reset")},[a,x]),[U,G]}function aF(e,t){return cF(e)||sF(e,t)||lF(e,t)||iF()}function iF(){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 lF(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 sF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function cF(e){if(Array.isArray(e))return e}function nN(e,t){var n=l.useRef(e),r=l.useState({}),a=aF(r,2),s=a[1],c=function(m){return m&&t!==void 0?t:n.current},d=function(m){n.current=m,s({})};return[c,d,c(!0)]}function $a(e,t){return fF(e)||dF(e,t)||rN(e,t)||uF()}function uF(){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 dF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function fF(e){if(Array.isArray(e))return e}function v1(e){return gF(e)||pF(e)||rN(e)||mF()}function mF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
226
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rN(e,t){if(e){if(typeof e=="string")return o0(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 o0(e,t)}}function pF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gF(e){if(Array.isArray(e))return o0(e)}function o0(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 hF=[];function oN(e,t,n){var r=function(c){return c.map(function(d){return nr(d,{generateConfig:e,locale:t,format:n[0]})})},a=function(c,d){for(var f=Math.max(c.length,d.length),m=-1,g=0;g<f;g+=1){var h=c[g]||null,y=d[g]||null;if(h!==y&&!X6(e,h,y)){m=g;break}}return[m<0,m!==0]};return[r,a]}function aN(e,t){return v1(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function yF(e){var t=nN(e),n=$a(t,2),r=n[0],a=n[1],s=ct(function(){a(e)});return l.useEffect(function(){s()},[e]),[r,a]}function iN(e,t,n,r,a,s,c,d,f){var m=Yt(s,c),g=$a(m,2),h=g[0],y=g[1],b=h||hF,v=yF(b),x=$a(v,2),C=x[0],w=x[1],R=oN(e,t,n),$=$a(R,2),E=$[0],T=$[1],N=ct(function(D){var j=v1(D);if(r)for(var B=0;B<2;B+=1)j[B]=j[B]||null;else a&&(j=aN(j.filter(function(H){return H}),e));var V=T(C(),j),U=$a(V,2),G=U[0],Y=U[1];if(!G&&(w(j),d)){var _=E(j);d(j,_,{range:Y?"end":"start"})}}),O=function(){f&&f(C())};return[b,y,C,N,O]}function lN(e,t,n,r,a,s,c,d,f,m){var g=e.generateConfig,h=e.locale,y=e.picker,b=e.onChange,v=e.allowEmpty,x=e.order,C=s.some(function(G){return G})?!1:x,w=oN(g,h,c),R=$a(w,2),$=R[0],E=R[1],T=nN(t),N=$a(T,2),O=N[0],D=N[1],j=ct(function(){D(t)});l.useEffect(function(){j()},[t]);var B=ct(function(G){var Y=G===null,_=v1(G||O());if(Y)for(var H=Math.max(s.length,_.length),F=0;F<H;F+=1)s[F]||(_[F]=null);C&&_[0]&&_[1]&&(_=aN(_,g)),a(_);var I=_,z=$a(I,2),L=z[0],P=z[1],A=!L,k=!P,q=v?(!A||v[0])&&(!k||v[1]):!0,K=!x||A||k||Rr(g,h,L,P,y)||g.isAfter(P,L),Z=(s[0]||!L||!m(L,{activeIndex:0}))&&(s[1]||!P||!m(P,{from:L,activeIndex:1})),J=Y||q&&K&&Z;if(J){n(_);var re=E(_,t),ie=$a(re,1),ne=ie[0];if(b&&!ne){var le=_.every(function(se){return!se});b(Y&&le?null:_,le?null:$(_))}}return J}),V=ct(function(G,Y){var _=fu(O(),G,r()[G]);D(_),Y&&B()}),U=!d&&!f;return b1(!U,function(){U&&(B(),a(t),j())},2),[V,B]}function sN(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function bF(e){return xF(e)||CF(e)||SF(e)||vF()}function vF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
227
|
+
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 a0(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 a0(e,t)}}function CF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xF(e){if(Array.isArray(e))return a0(e)}function a0(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 $F(e,t,n,r,a,s){var c=e;function d(h,y,b){var v=s[h](c),x=b.find(function($){return $.value===v});if(!x||x.disabled){var C=b.filter(function($){return!$.disabled}),w=bF(C).reverse(),R=w.find(function($){return $.value<=v})||C[0];R&&(v=R.value,c=s[y](c,v))}return v}var f=d("getHour","setHour",t()),m=d("getMinute","setMinute",n(f)),g=d("getSecond","setSecond",r(f,m));return d("getMillisecond","setMillisecond",a(f,m,g)),c}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 mM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mM(Object(n),!0).forEach(function(r){wF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wF(e,t,n){return t=EF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=MF(e,"string");return Bu(t)=="symbol"?t:String(t)}function MF(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 Jf(e,t){return NF(e)||OF(e,t)||TF(e,t)||RF()}function RF(){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 TF(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 OF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function NF(e){if(Array.isArray(e))return e}function em(){return[]}function tm(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],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 m=a.includes(f);(!m||!r)&&c.push({label:p1(f,s),value:f,disabled:m})}return c}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,s=r.hourStep,c=s===void 0?1:s,d=r.minuteStep,f=d===void 0?1:d,m=r.secondStep,g=m===void 0?1:m,h=r.millisecondStep,y=h===void 0?100:h,b=r.hideDisabledOptions,v=r.disabledTime,x=r.disabledHours,C=r.disabledMinutes,w=r.disabledSeconds,R=l.useMemo(function(){return n||e.getNow()},[n,e]),$=l.useCallback(function(I){var z=v?.(I)||{};return[z.disabledHours||x||em,z.disabledMinutes||C||em,z.disabledSeconds||w||em,z.disabledMilliseconds||em]},[v,x,C,w]),E=l.useMemo(function(){return $(R)},[R,$]),T=Jf(E,4),N=T[0],O=T[1],D=T[2],j=T[3],B=l.useCallback(function(I,z,L,P){var A=tm(0,23,c,b,I()),k=a?A.map(function(J){return pM(pM({},J),{},{label:p1(J.value%12||12,2)})}):A,q=function(re){return tm(0,59,f,b,z(re))},K=function(re,ie){return tm(0,59,g,b,L(re,ie))},Z=function(re,ie,ne){return tm(0,999,y,b,P(re,ie,ne),3)};return[k,q,K,Z]},[b,c,a,y,f,g]),V=l.useMemo(function(){return B(N,O,D,j)},[B,N,O,D,j]),U=Jf(V,4),G=U[0],Y=U[1],_=U[2],H=U[3],F=function(z,L){var P=function(){return G},A=Y,k=_,q=H;if(L){var K=$(L),Z=Jf(K,4),J=Z[0],re=Z[1],ie=Z[2],ne=Z[3],le=B(J,re,ie,ne),se=Jf(le,4),ce=se[0],me=se[1],ae=se[2],fe=se[3];P=function(){return ce},A=me,k=ae,q=fe}var ge=$F(z,P,A,k,q,e);return ge};return[F,G,Y,_,H]}function IF(e,t){return DF(e)||AF(e,t)||zF(e,t)||PF()}function PF(){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 zF(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 AF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function DF(e){if(Array.isArray(e))return e}function jF(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,s=e.showTime,c=e.onSubmit,d=e.onNow,f=e.invalid,m=e.needConfirm,g=e.generateConfig,h=e.disabledDate,y=l.useContext(Bo),b=y.prefixCls,v=y.locale,x=y.button,C=x===void 0?"button":x,w=y.classNames,R=y.styles,$=g.getNow(),E=S1(g,s,$),T=IF(E,1),N=T[0],O=r?.(t),D=h($,{type:t}),j=function(){if(!D){var H=N($);d(H)}},B="".concat(b,"-now"),V="".concat(B,"-btn"),U=a&&l.createElement("li",{className:B},l.createElement("a",{className:Q(V,D&&"".concat(V,"-disabled")),"aria-disabled":D,onClick:j},n==="date"?v.today:v.now)),G=m&&l.createElement("li",{className:"".concat(b,"-ok")},l.createElement(C,{disabled:f,onClick:c},v.ok)),Y=(U||G)&&l.createElement("ul",{className:"".concat(b,"-ranges")},U,G);return!O&&!Y?null:l.createElement("div",{className:Q("".concat(b,"-footer"),w.popup.footer),style:R.popup.footer},O&&l.createElement("div",{className:"".concat(b,"-footer-extra")},O),Y)}function yM(e){return LF(e)||BF(e)||HF(e)||_F()}function _F(){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 HF(e,t){if(e){if(typeof e=="string")return i0(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 i0(e,t)}}function BF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LF(e){if(Array.isArray(e))return i0(e)}function i0(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 cN(e,t,n){function r(a,s){var c=a.findIndex(function(f){return Rr(e,t,f,s,n)});if(c===-1)return[].concat(yM(a),[s]);var d=yM(a);return d.splice(c,1),d}return r}var uN=l.createContext(null),hl=l.createContext(null);function Kp(){return l.useContext(hl)}function ks(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,s=e.disabledDate,c=e.minDate,d=e.maxDate,f=e.cellRender,m=e.hoverValue,g=e.hoverRangeValue,h=e.onHover,y=e.values,b=e.pickerValue,v=e.onSelect,x=e.prevIcon,C=e.nextIcon,w=e.superPrevIcon,R=e.superNextIcon,$=l.useContext(uN),E=$.classNames,T=$.styles,N=r.getNow(),O={now:N,values:y,pickerValue:b,prefixCls:n,classNames:E,styles:T,disabledDate:s,minDate:c,maxDate:d,cellRender:f,hoverValue:m,hoverRangeValue:g,onHover:h,locale:a,generateConfig:r,onSelect:v,panelType:t,prevIcon:x,nextIcon:C,superPrevIcon:w,superNextIcon:R};return[O,N]}var gi=l.createContext({});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 bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bM(Object(n),!0).forEach(function(r){Yi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yi(e,t,n){return t=FF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FF(e){var t=kF(e,"string");return Lu(t)=="symbol"?t:String(t)}function kF(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 WF(e,t){return GF(e)||qF(e,t)||UF(e,t)||YF()}function YF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
231
|
+
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 vM(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 vM(e,t)}}function vM(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 qF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function GF(e){if(Array.isArray(e))return e}function Rd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,s=e.prefixColumn,c=e.rowClassName,d=e.titleFormat,f=e.getCellText,m=e.getCellClassName,g=e.headerCells,h=e.cellSelection,y=h===void 0?!0:h,b=e.disabledDate,v=Kp(),x=v.prefixCls,C=v.classNames,w=v.styles,R=v.panelType,$=v.now,E=v.disabledDate,T=v.cellRender,N=v.onHover,O=v.hoverValue,D=v.hoverRangeValue,j=v.generateConfig,B=v.values,V=v.locale,U=v.onSelect,G=b||E,Y="".concat(x,"-cell"),_=l.useContext(gi),H=_.onCellDblClick,F=function(K){return B.some(function(Z){return Z&&Rr(j,V,K,Z,R)})},I=[],z=0;z<t;z+=1){for(var L=[],P=void 0,A=function(){var K=z*n+k,Z=a(r,K),J=G?.(Z,{type:R});k===0&&(P=Z,s&&L.push(s(P)));var re=!1,ie=!1,ne=!1;if(y&&D){var le=WF(D,2),se=le[0],ce=le[1];re=Xp(j,se,ce,Z),ie=Rr(j,V,Z,se,R),ne=Rr(j,V,Z,ce,R)}var me=d?nr(Z,{locale:V,format:d,generateConfig:j}):void 0,ae=l.createElement("div",{className:"".concat(Y,"-inner")},f(Z));L.push(l.createElement("td",{key:k,title:me,className:Q(Y,C.item,VF(Yi(Yi(Yi(Yi(Yi(Yi({},"".concat(Y,"-disabled"),J),"".concat(Y,"-hover"),(O||[]).some(function(fe){return Rr(j,V,Z,fe,R)})),"".concat(Y,"-in-range"),re&&!ie&&!ne),"".concat(Y,"-range-start"),ie),"".concat(Y,"-range-end"),ne),"".concat(x,"-cell-selected"),!D&&R!=="week"&&F(Z)),m(Z))),style:w.item,onClick:function(){J||U(Z)},onDoubleClick:function(){!J&&H&&H()},onMouseEnter:function(){J||N?.(Z)},onMouseLeave:function(){J||N?.(null)}},T?T(Z,{prefixCls:x,originNode:ae,today:$,type:R,locale:V}):ae))},k=0;k<n;k+=1)A();I.push(l.createElement("tr",{key:z,className:c?.(P)},L))}return l.createElement("div",{className:Q("".concat(x,"-body"),C.body),style:w.body},l.createElement("table",{className:Q("".concat(x,"-content"),C.content),style:w.content},g&&l.createElement("thead",null,l.createElement("tr",null,g)),l.createElement("tbody",null,I)))}var nm={visibility:"hidden"};function Ws(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,s=e.getEnd,c=e.children,d=Kp(),f=d.prefixCls,m=d.classNames,g=d.styles,h=d.prevIcon,y=h===void 0?"‹":h,b=d.nextIcon,v=b===void 0?"›":b,x=d.superPrevIcon,C=x===void 0?"«":x,w=d.superNextIcon,R=w===void 0?"»":w,$=d.minDate,E=d.maxDate,T=d.generateConfig,N=d.locale,O=d.pickerValue,D=d.panelType,j="".concat(f,"-header"),B=l.useContext(gi),V=B.hidePrev,U=B.hideNext,G=B.hideHeader,Y=l.useMemo(function(){if(!$||!t||!s)return!1;var q=s(t(-1,O));return!Qf(T,N,q,$,D)},[$,t,O,s,T,N,D]),_=l.useMemo(function(){if(!$||!n||!s)return!1;var q=s(n(-1,O));return!Qf(T,N,q,$,D)},[$,n,O,s,T,N,D]),H=l.useMemo(function(){if(!E||!t||!a)return!1;var q=a(t(1,O));return!Qf(T,N,E,q,D)},[E,t,O,a,T,N,D]),F=l.useMemo(function(){if(!E||!n||!a)return!1;var q=a(n(1,O));return!Qf(T,N,E,q,D)},[E,n,O,a,T,N,D]),I=function(K){t&&r(t(K,O))},z=function(K){n&&r(n(K,O))};if(G)return null;var L="".concat(j,"-prev-btn"),P="".concat(j,"-next-btn"),A="".concat(j,"-super-prev-btn"),k="".concat(j,"-super-next-btn");return l.createElement("div",{className:Q(j,m.header),style:g.header},n&&l.createElement("button",{type:"button","aria-label":N.previousYear,onClick:function(){return z(-1)},tabIndex:-1,className:Q(A,_&&"".concat(A,"-disabled")),disabled:_,style:V?nm:{}},C),t&&l.createElement("button",{type:"button","aria-label":N.previousMonth,onClick:function(){return I(-1)},tabIndex:-1,className:Q(L,Y&&"".concat(L,"-disabled")),disabled:Y,style:V?nm:{}},y),l.createElement("div",{className:"".concat(j,"-view")},c),t&&l.createElement("button",{type:"button","aria-label":N.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:Q(P,H&&"".concat(P,"-disabled")),disabled:H,style:U?nm:{}},v),n&&l.createElement("button",{type:"button","aria-label":N.nextYear,onClick:function(){return z(1)},tabIndex:-1,className:Q(k,F&&"".concat(k,"-disabled")),disabled:F,style:U?nm:{}},R))}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 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)}function Gy(e,t,n){return t=XF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XF(e){var t=KF(e,"string");return Vu(t)=="symbol"?t:String(t)}function KF(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 QF(e,t){return tk(e)||ek(e,t)||JF(e,t)||ZF()}function ZF(){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 JF(e,t){if(e){if(typeof e=="string")return SM(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 SM(e,t)}}function SM(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,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function tk(e){if(Array.isArray(e))return e}function Qp(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,s=e.generateConfig,c=e.pickerValue,d=e.onPickerValueChange,f=e.onModeChange,m=e.mode,g=m===void 0?"date":m,h=e.disabledDate,y=e.onSelect,b=e.onHover,v=e.showWeek,x="".concat(t,"-").concat(r,"-panel"),C="".concat(t,"-cell"),w=g==="week",R=ks(e,g),$=QF(R,2),E=$[0],T=$[1],N=s.locale.getWeekFirstDay(a.locale),O=s.setDate(c,1),D=dV(a.locale,s,O),j=s.getMonth(c),B=v===void 0?w:v,V=B?function(A){var k=h?.(A,{type:"week"});return l.createElement("td",{key:"week",className:Q(C,"".concat(C,"-week"),Gy({},"".concat(C,"-disabled"),k)),onClick:function(){k||y(A)},onMouseEnter:function(){k||b?.(A)},onMouseLeave:function(){k||b?.(null)}},l.createElement("div",{className:"".concat(C,"-inner")},s.locale.getWeek(a.locale,A)))}:null,U=[],G=a.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(a.locale):[]);V&&U.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var Y=0;Y<Yy;Y+=1)U.push(l.createElement("th",{key:Y},G[(Y+N)%Yy]));var _=function(k,q){return s.addDate(k,q)},H=function(k){return nr(k,{locale:a,format:a.cellDateFormat,generateConfig:s})},F=function(k){var q=Gy(Gy({},"".concat(t,"-cell-in-view"),h1(s,k,c)),"".concat(t,"-cell-today"),y1(s,k,T));return q},I=a.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(a.locale):[]),z=l.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){f("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(c,{locale:a,format:a.yearFormat,generateConfig:s})),L=l.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){f("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?nr(c,{locale:a,format:a.monthFormat,generateConfig:s}):I[j]),P=a.monthBeforeYear?[L,z]:[z,L];return l.createElement(hl.Provider,{value:E},l.createElement("div",{className:Q(x,v&&"".concat(x,"-show-week"))},l.createElement(Ws,{offset:function(k){return s.addMonth(c,k)},superOffset:function(k){return s.addYear(c,k)},onChange:d,getStart:function(k){return s.setDate(k,1)},getEnd:function(k){var q=s.setDate(k,1);return q=s.addMonth(q,1),s.addDate(q,-1)}},P),l.createElement(Rd,l0({titleFormat:a.fieldDateFormat},e,{colNum:Yy,rowNum:6,baseDate:D,headerCells:U,getCellDate:_,getCellText:H,getCellClassName:F,prefixColumn:V,cellSelection:!w}))))}var nk=1/3;function rk(e,t){var n=l.useRef(!1),r=l.useRef(null),a=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(a.current=null,d.current=0,h){var y=h.querySelector('[data-value="'.concat(t,'"]')),b=h.querySelector("li"),v=function x(){c(),n.current=!0,d.current+=1;var C=h.scrollTop,w=b.offsetTop,R=y.offsetTop,$=R-w;if(R===0&&y!==b||!Np(h)){d.current<=5&&(r.current=Ht(x));return}var E=C+($-C)*nk,T=Math.abs($-E);if(a.current!==null&&a.current<T){c();return}if(a.current=T,T<=1){h.scrollTop=$,c();return}h.scrollTop=E,r.current=Ht(x)};y&&b&&v()}},m=ct(f);return[m,c,s]}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 CM(e,t,n){return t=ok(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ok(e){var t=ak(e,"string");return Fu(t)=="symbol"?t:String(t)}function ak(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 ik(e){return ck(e)||sk(e)||dN(e)||lk()}function lk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
233
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ck(e){if(Array.isArray(e))return s0(e)}function uk(e,t){return mk(e)||fk(e,t)||dN(e,t)||dk()}function dk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
234
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dN(e,t){if(e){if(typeof e=="string")return s0(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 s0(e,t)}}function s0(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 fk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function mk(e){if(Array.isArray(e))return e}var pk=300;function gk(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function Wc(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,s=e.onChange,c=e.onHover,d=e.onDblClick,f=e.changeOnScroll,m=Kp(),g=m.prefixCls,h=m.cellRender,y=m.now,b=m.locale,v=m.classNames,x=m.styles,C="".concat(g,"-time-panel"),w="".concat(g,"-time-panel-cell"),R=l.useRef(null),$=l.useRef(),E=function(){clearTimeout($.current)},T=rk(R,n??r),N=uk(T,3),O=N[0],D=N[1],j=N[2];It(function(){return O(),E(),function(){D(),E()}},[n,r,gk(t)]);var B=function(G){E();var Y=G.target;!j()&&f&&($.current=setTimeout(function(){var _=R.current,H=_.querySelector("li").offsetTop,F=Array.from(_.querySelectorAll("li")),I=F.map(function(k){return k.offsetTop-H}),z=I.map(function(k,q){return t[q].disabled?Number.MAX_SAFE_INTEGER:Math.abs(k-Y.scrollTop)}),L=Math.min.apply(Math,ik(z)),P=z.findIndex(function(k){return k===L}),A=t[P];A&&!A.disabled&&s(A.value)},pk))},V="".concat(C,"-column");return l.createElement("ul",{className:V,ref:R,"data-type":a,onScroll:B},t.map(function(U){var G=U.label,Y=U.value,_=U.disabled,H=l.createElement("div",{className:"".concat(w,"-inner")},G);return l.createElement("li",{key:Y,style:x.item,className:Q(w,v.item,CM(CM({},"".concat(w,"-selected"),n===Y),"".concat(w,"-disabled"),_)),onClick:function(){_||s(Y)},onDoubleClick:function(){!_&&d&&d()},onMouseEnter:function(){c(Y)},onMouseLeave:function(){c(null)},"data-value":Y},h?h(Y,{prefixCls:g,originNode:H,today:y,type:"time",subType:a,locale:b}):H)}))}function Xi(){return Xi=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},Xi.apply(this,arguments)}function Yc(e,t){return vk(e)||bk(e,t)||yk(e,t)||hk()}function hk(){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 yk(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 bk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function vk(e){if(Array.isArray(e))return e}function ai(e){return e<12}function Sk(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,s=e.use12Hours,c=e.changeOnScroll,d=Kp(),f=d.prefixCls,m=d.classNames,g=d.styles,h=d.values,y=d.generateConfig,b=d.locale,v=d.onSelect,x=d.onHover,C=x===void 0?function(){}:x,w=d.pickerValue,R=h?.[0]||null,$=l.useContext(gi),E=$.onCellDblClick,T=S1(y,e,R),N=Yc(T,5),O=N[0],D=N[1],j=N[2],B=N[3],V=N[4],U=function(Re){var Xe=R&&y[Re](R),tt=w&&y[Re](w);return[Xe,tt]},G=U("getHour"),Y=Yc(G,2),_=Y[0],H=Y[1],F=U("getMinute"),I=Yc(F,2),z=I[0],L=I[1],P=U("getSecond"),A=Yc(P,2),k=A[0],q=A[1],K=U("getMillisecond"),Z=Yc(K,2),J=Z[0],re=Z[1],ie=_===null?null:ai(_)?"am":"pm",ne=l.useMemo(function(){return s?ai(_)?D.filter(function(Ge){return ai(Ge.value)}):D.filter(function(Ge){return!ai(Ge.value)}):D},[_,D,s]),le=function(Re,Xe){var tt,at=Re.filter(function(bt){return!bt.disabled});return Xe??(at==null||(tt=at[0])===null||tt===void 0?void 0:tt.value)},se=le(D,_),ce=l.useMemo(function(){return j(se)},[j,se]),me=le(ce,z),ae=l.useMemo(function(){return B(se,me)},[B,se,me]),fe=le(ae,k),ge=l.useMemo(function(){return V(se,me,fe)},[V,se,me,fe]),he=le(ge,J),ye=l.useMemo(function(){if(!s)return[];var Ge=y.getNow(),Re=y.setHour(Ge,6),Xe=y.setHour(Ge,18),tt=function(bt,ht){var xt=b.cellMeridiemFormat;return xt?nr(bt,{generateConfig:y,locale:b,format:xt}):ht};return[{label:tt(Re,"AM"),value:"am",disabled:D.every(function(at){return at.disabled||!ai(at.value)})},{label:tt(Xe,"PM"),value:"pm",disabled:D.every(function(at){return at.disabled||ai(at.value)})}]},[D,s,y,b]),Ae=function(Re){var Xe=O(Re);v(Xe)},xe=l.useMemo(function(){var Ge=R||w||y.getNow(),Re=function(tt){return tt!=null};return Re(_)?(Ge=y.setHour(Ge,_),Ge=y.setMinute(Ge,z),Ge=y.setSecond(Ge,k),Ge=y.setMillisecond(Ge,J)):Re(H)?(Ge=y.setHour(Ge,H),Ge=y.setMinute(Ge,L),Ge=y.setSecond(Ge,q),Ge=y.setMillisecond(Ge,re)):Re(se)&&(Ge=y.setHour(Ge,se),Ge=y.setMinute(Ge,me),Ge=y.setSecond(Ge,fe),Ge=y.setMillisecond(Ge,he)),Ge},[R,w,_,z,k,J,se,me,fe,he,H,L,q,re,y]),Se=function(Re,Xe){return Re===null?null:y[Xe](xe,Re)},ue=function(Re){return Se(Re,"setHour")},ve=function(Re){return Se(Re,"setMinute")},Me=function(Re){return Se(Re,"setSecond")},Pe=function(Re){return Se(Re,"setMillisecond")},je=function(Re){return Re===null?null:Re==="am"&&!ai(_)?y.setHour(xe,_-12):Re==="pm"&&ai(_)?y.setHour(xe,_+12):xe},Be=function(Re){Ae(ue(Re))},Ze=function(Re){Ae(ve(Re))},Fe=function(Re){Ae(Me(Re))},_e=function(Re){Ae(Pe(Re))},He=function(Re){Ae(je(Re))},Ke=function(Re){C(ue(Re))},Ne=function(Re){C(ve(Re))},Ce=function(Re){C(Me(Re))},Ye=function(Re){C(Pe(Re))},et=function(Re){C(je(Re))},Le={onDblClick:E,changeOnScroll:c};return l.createElement("div",{className:Q("".concat(f,"-content"),m.content),style:g.content},t&&l.createElement(Wc,Xi({units:ne,value:_,optionalValue:H,type:"hour",onChange:Be,onHover:Ke},Le)),n&&l.createElement(Wc,Xi({units:ce,value:z,optionalValue:L,type:"minute",onChange:Ze,onHover:Ne},Le)),r&&l.createElement(Wc,Xi({units:ae,value:k,optionalValue:q,type:"second",onChange:Fe,onHover:Ce},Le)),a&&l.createElement(Wc,Xi({units:ge,value:J,optionalValue:re,type:"millisecond",onChange:_e,onHover:Ye},Le)),s&&l.createElement(Wc,Xi({units:ye,value:ie,type:"meridiem",onChange:He,onHover:et},Le)))}function Ck(e,t){return Ek(e)||wk(e,t)||$k(e,t)||xk()}function xk(){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 $k(e,t){if(e){if(typeof e=="string")return $M(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 $M(e,t)}}function $M(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 wk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Ek(e){if(Array.isArray(e))return e}function fN(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,s=e.showTime,c=s||{},d=c.format,f="".concat(t,"-time-panel"),m=ks(e,"time"),g=Ck(m,1),h=g[0];return l.createElement(hl.Provider,{value:h},l.createElement("div",{className:Q(f)},l.createElement(Ws,null,n?nr(n,{locale:r,format:d,generateConfig:a}):" "),l.createElement(Sk,s)))}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)}function Mk(e,t){return Nk(e)||Ok(e,t)||Tk(e,t)||Rk()}function Rk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
237
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tk(e,t){if(e){if(typeof e=="string")return wM(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 wM(e,t)}}function wM(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 Ok(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Nk(e){if(Array.isArray(e))return e}function Ik(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,s=e.value,c=e.pickerValue,d=e.onHover,f="".concat(t,"-datetime-panel"),m=S1(n,r),g=Mk(m,1),h=g[0],y=function(C){return s?lp(n,C,s):lp(n,C,c)},b=function(C){d?.(C&&y(C))},v=function(C){var w=y(C);a(h(w,w))};return l.createElement("div",{className:f},l.createElement(Qp,c0({},e,{onSelect:v,onHover:b})),l.createElement(fN,e))}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 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)}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 ku(t)=="symbol"?t:String(t)}function Ak(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 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.
|
|
238
|
+
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 EM(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 EM(e,t)}}function EM(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,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Bk(e){if(Array.isArray(e))return e}function Lk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d="".concat(t,"-decade-panel"),f=ks(e,"decade"),m=Dk(f,1),g=m[0],h=function(N){var O=Math.floor(r.getYear(N)/100)*100;return r.setYear(N,O)},y=function(N){var O=h(N);return r.addYear(O,99)},b=h(a),v=y(a),x=r.addYear(b,-10),C=function(N,O){return r.addYear(N,O*10)},w=function(N){var O=n.cellYearFormat,D=nr(N,{locale:n,format:O,generateConfig:r}),j=nr(r.addYear(N,9),{locale:n,format:O,generateConfig:r});return"".concat(D,"-").concat(j)},R=function(N){return Pk({},"".concat(t,"-cell-in-view"),n0(r,N,b)||n0(r,N,v)||Xp(r,b,v,N))},$=s?function(T,N){var O=r.setDate(T,1),D=r.setMonth(O,0),j=r.setYear(D,Math.floor(r.getYear(D)/10)*10),B=r.addYear(j,10),V=r.addDate(B,-1);return s(j,N)&&s(V,N)}:null,E="".concat(nr(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(nr(v,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ws,{superOffset:function(N){return r.addYear(a,N*100)},onChange:c,getStart:h,getEnd:y},E),l.createElement(Rd,u0({},e,{disabledDate:$,colNum:3,rowNum:4,baseDate:x,getCellDate:C,getCellText:w,getCellClassName:R}))))}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 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 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 Wu(t)=="symbol"?t:String(t)}function kk(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 Wk(e,t){return Gk(e)||qk(e,t)||Uk(e,t)||Yk()}function Yk(){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 Uk(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 qk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Gk(e){if(Array.isArray(e))return e}function Xk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-month-panel"),m=ks(e,"month"),g=Wk(m,1),h=g[0],y=r.setMonth(a,0),b=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),v=function(E,T){return r.addMonth(E,T)},x=function(E){var T=r.getMonth(E);return n.monthFormat?nr(E,{locale:n,format:n.monthFormat,generateConfig:r}):b[T]},C=function(){return Vk({},"".concat(t,"-cell-in-view"),!0)},w=s?function($,E){var T=r.setDate($,1),N=r.setMonth(T,r.getMonth(T)+1),O=r.addDate(N,-1);return s(T,E)&&s(O,E)}:null,R=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){d("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ws,{superOffset:function(E){return r.addYear(a,E)},onChange:c,getStart:function(E){return r.setMonth(E,0)},getEnd:function(E){return r.setMonth(E,11)}},R),l.createElement(Rd,d0({},e,{disabledDate:w,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:v,getCellText:x,getCellClassName:C}))))}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 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)}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 Yu(t)=="symbol"?t:String(t)}function Zk(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 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.
|
|
240
|
+
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 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 nW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function rW(e){if(Array.isArray(e))return e}function oW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,d="".concat(t,"-quarter-panel"),f=ks(e,"quarter"),m=Jk(f,1),g=m[0],h=r.setMonth(a,0),y=function(w,R){return r.addMonth(w,R*3)},b=function(w){return nr(w,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},v=function(){return Kk({},"".concat(t,"-cell-in-view"),!0)},x=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ws,{superOffset:function(w){return r.addYear(a,w)},onChange:s,getStart:function(w){return r.setMonth(w,0)},getEnd:function(w){return r.setMonth(w,11)}},x),l.createElement(Rd,f0({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:h,getCellDate:y,getCellText:b,getCellClassName:v}))))}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 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)}function aW(e,t,n){return t=iW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iW(e){var t=lW(e,"string");return Uu(t)=="symbol"?t:String(t)}function lW(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 sW(e,t){return fW(e)||dW(e,t)||uW(e,t)||cW()}function cW(){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 uW(e,t){if(e){if(typeof e=="string")return TM(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 TM(e,t)}}function TM(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,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function fW(e){if(Array.isArray(e))return e}function mW(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,s=e.hoverValue,c=e.hoverRangeValue,d=r.locale,f="".concat(t,"-week-panel-row"),m=function(h){var y={};if(c){var b=sW(c,2),v=b[0],x=b[1],C=nu(n,d,v,h),w=nu(n,d,x,h);y["".concat(f,"-range-start")]=C,y["".concat(f,"-range-end")]=w,y["".concat(f,"-range-hover")]=!C&&!w&&Xp(n,v,x,h)}return s&&(y["".concat(f,"-hover")]=s.some(function(R){return nu(n,d,h,R)})),Q(f,aW({},"".concat(f,"-selected"),!c&&nu(n,d,a,h)),y)};return l.createElement(Qp,m0({},e,{mode:"week",panelName:"week",rowClassName:m}))}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 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)}function pW(e,t,n){return t=gW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gW(e){var t=hW(e,"string");return qu(t)=="symbol"?t:String(t)}function hW(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 yW(e,t){return CW(e)||SW(e,t)||vW(e,t)||bW()}function bW(){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 vW(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 SW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function CW(e){if(Array.isArray(e))return e}function xW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-year-panel"),m=ks(e,"year"),g=yW(m,1),h=g[0],y=function(O){var D=Math.floor(r.getYear(O)/10)*10;return r.setYear(O,D)},b=function(O){var D=y(O);return r.addYear(D,9)},v=y(a),x=b(a),C=r.addYear(v,-1),w=function(O,D){return r.addYear(O,D)},R=function(O){return nr(O,{locale:n,format:n.cellYearFormat,generateConfig:r})},$=function(O){return pW({},"".concat(t,"-cell-in-view"),cl(r,O,v)||cl(r,O,x)||Xp(r,v,x,O))},E=s?function(N,O){var D=r.setMonth(N,0),j=r.setDate(D,1),B=r.addYear(j,1),V=r.addDate(B,-1);return s(j,O)&&s(V,O)}:null,T=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){d("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},nr(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-",nr(x,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ws,{superOffset:function(O){return r.addYear(a,O*10)},onChange:c,getStart:y,getEnd:b},T),l.createElement(Rd,p0({},e,{disabledDate:E,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:C,getCellDate:w,getCellText:R,getCellClassName:$}))))}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 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)}function NM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function IM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NM(Object(n),!0).forEach(function(r){mN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mN(e,t,n){return t=$W(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $W(e){var t=wW(e,"string");return Gu(t)=="symbol"?t:String(t)}function wW(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)}function PM(e){return RW(e)||MW(e)||pN(e)||EW()}function EW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
243
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RW(e){if(Array.isArray(e))return h0(e)}function Uc(e,t){return NW(e)||OW(e,t)||pN(e,t)||TW()}function TW(){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 pN(e,t){if(e){if(typeof e=="string")return h0(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 h0(e,t)}}function h0(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 OW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function NW(e){if(Array.isArray(e))return e}var IW={date:Qp,datetime:Ik,week:mW,month:Xk,quarter:oW,year:xW,decade:Lk,time:fN};function PW(e,t){var n=e.classNames,r=e.styles,a=e.locale,s=e.generateConfig,c=e.direction,d=e.prefixCls,f=e.tabIndex,m=f===void 0?0:f,g=e.multiple,h=e.defaultValue,y=e.value,b=e.onChange,v=e.onSelect,x=e.defaultPickerValue,C=e.pickerValue,w=e.onPickerValueChange,R=e.mode,$=e.onPanelChange,E=e.picker,T=E===void 0?"date":E,N=e.showTime,O=e.hoverValue,D=e.hoverRangeValue,j=e.cellRender,B=e.dateRender,V=e.monthCellRender,U=e.components,G=U===void 0?{}:U,Y=e.hideHeader,_=l.useContext(Bo)||{},H=_.prefixCls,F=_.classNames,I=_.styles,z=H||d||"rc-picker",L=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:L.current}});var P=U6(e),A=Uc(P,4),k=A[0],q=A[1],K=A[2],Z=A[3],J=k6(a,q),re=T==="date"&&N?"datetime":T,ie=l.useMemo(function(){return q6(re,K,Z,k,J)},[re,K,Z,k,J]),ne=s.getNow(),le=Yt(T||"date",R),se=Uc(le,2),ce=se[0],me=se[1],ae=ce==="date"&&ie?"datetime":ce,fe=cN(s,a,re),ge=Yt(h,y),he=Uc(ge,2),ye=he[0],Ae=he[1],xe=l.useMemo(function(){var Re=gl(ye).filter(function(Xe){return Xe});return g?Re:Re.slice(0,1)},[ye,g]),Se=ct(function(Re){Ae(Re),b&&(Re===null||xe.length!==Re.length||xe.some(function(Xe,tt){return!Rr(s,a,Xe,Re[tt],re)}))&&b?.(g?Re:Re[0])}),ue=ct(function(Re){if(v?.(Re),ce===T){var Xe=g?fe(xe,Re):[Re];Se(Xe)}}),ve=Yt(x||xe[0]||ne,C),Me=Uc(ve,2),Pe=Me[0],je=Me[1];l.useEffect(function(){xe[0]&&!C&&je(xe[0])},[xe[0]]);var Be=function(Xe,tt){$?.(Xe||C,tt||ce)},Ze=function(Xe){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;je(Xe),w?.(Xe),tt&&Be(Xe)},Fe=function(Xe,tt){me(Xe),tt&&Ze(tt),Be(tt,Xe)},_e=function(Xe){if(ue(Xe),Ze(Xe),ce!==T){var tt=["decade","year"],at=[].concat(tt,["month"]),bt={quarter:[].concat(tt,["quarter"]),week:[].concat(PM(at),["week"]),date:[].concat(PM(at),["date"])},ht=bt[T]||at,xt=ht.indexOf(ce),ke=ht[xt+1];ke&&Fe(ke,Xe)}},He=l.useMemo(function(){var Re,Xe;if(Array.isArray(D)){var tt=Uc(D,2);Re=tt[0],Xe=tt[1]}else Re=D;return!Re&&!Xe?null:(Re=Re||Xe,Xe=Xe||Re,s.isAfter(Re,Xe)?[Xe,Re]:[Re,Xe])},[D,s]),Ke=g1(j,B,V),Ne=G[ae]||IW[ae]||Qp,Ce=l.useMemo(function(){var Re,Xe,tt,at;return{classNames:(Re=(Xe=F?.popup)!==null&&Xe!==void 0?Xe:n)!==null&&Re!==void 0?Re:{},styles:(tt=(at=I?.popup)!==null&&at!==void 0?at:r)!==null&&tt!==void 0?tt:{}}},[F,n,I,r]),Ye=l.useContext(gi),et=l.useMemo(function(){return IM(IM({},Ye),{},{hideHeader:Y})},[Ye,Y]),Le="".concat(z,"-panel"),Ge=Gp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(uN.Provider,{value:Ce},l.createElement(gi.Provider,{value:et},l.createElement("div",{ref:L,tabIndex:m,className:Q(Le,mN({},"".concat(Le,"-rtl"),c==="rtl"))},l.createElement(Ne,g0({},Ge,{showTime:ie,prefixCls:z,locale:J,generateConfig:s,onModeChange:Fe,pickerValue:Pe,onPickerValueChange:function(Xe){Ze(Xe,!0)},value:xe[0],onSelect:_e,values:xe,cellRender:Ke,hoverRangeValue:He,hoverValue:O})))))}var jm=l.memo(l.forwardRef(PW));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)}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)}function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vi(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){zW(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 zW(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=DW(e,"string");return Xu(t)=="symbol"?t:String(t)}function DW(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 jW(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,s=e.needConfirm,c=e.onSubmit,d=e.range,f=e.hoverValue,m=l.useContext(Bo),g=m.prefixCls,h=m.generateConfig,y=l.useCallback(function(R,$){return ru(h,t,R,$)},[h,t]),b=l.useMemo(function(){return y(r,1)},[r,y]),v=function($){a(y($,-1))},x={onCellDblClick:function(){s&&c()}},C=t==="time",w=Vi(Vi({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:C});return d?w.hoverRangeValue=f:w.hoverValue=f,n?l.createElement("div",{className:"".concat(g,"-panels")},l.createElement(gi.Provider,{value:Vi(Vi({},x),{},{hideNext:!0})},l.createElement(jm,w)),l.createElement(gi.Provider,{value:Vi(Vi({},x),{},{hidePrev:!0})},l.createElement(jm,y0({},w,{pickerValue:b,onPickerValueChange:v})))):l.createElement(gi.Provider,{value:Vi({},x)},l.createElement(jm,w))}function AM(e){return typeof e=="function"?e():e}function _W(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(s,c){var d=s.label,f=s.value;return l.createElement("li",{key:c,onClick:function(){r(AM(f))},onMouseEnter:function(){a(AM(f))},onMouseLeave:function(){a(null)}},d)}))):null}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 DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function HW(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){b0(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 b0(e,t,n){return t=BW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BW(e){var t=LW(e,"string");return Ku(t)=="symbol"?t:String(t)}function LW(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 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)}function qc(e,t){return WW(e)||kW(e,t)||FW(e,t)||VW()}function VW(){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 FW(e,t){if(e){if(typeof e=="string")return jM(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 jM(e,t)}}function jM(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 kW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function WW(e){if(Array.isArray(e))return e}function gN(e){var t,n,r=e.panelRender,a=e.internalMode,s=e.picker,c=e.showNow,d=e.range,f=e.multiple,m=e.activeInfo,g=m===void 0?[0,0,0]:m,h=e.presets,y=e.onPresetHover,b=e.onPresetSubmit,v=e.onFocus,x=e.onBlur,C=e.onPanelMouseDown,w=e.direction,R=e.value,$=e.onSelect,E=e.isInvalid,T=e.defaultOpenValue,N=e.onOk,O=e.onSubmit,D=e.classNames,j=e.styles,B=l.useContext(Bo),V=B.prefixCls,U="".concat(V,"-panel"),G=w==="rtl",Y=l.useRef(null),_=l.useRef(null),H=l.useState(0),F=qc(H,2),I=F[0],z=F[1],L=l.useState(0),P=qc(L,2),A=P[0],k=P[1],q=l.useState(0),K=qc(q,2),Z=K[0],J=K[1],re=function(Fe){Fe.width&&z(Fe.width)},ie=qc(g,3),ne=ie[0],le=ie[1],se=ie[2],ce=l.useState(0),me=qc(ce,2),ae=me[0],fe=me[1];l.useEffect(function(){fe(10)},[ne]),l.useEffect(function(){if(d&&_.current){var Ze,Fe=((Ze=Y.current)===null||Ze===void 0?void 0:Ze.offsetWidth)||0,_e=_.current.getBoundingClientRect();if(!_e.height||_e.right<0){fe(function(Ce){return Math.max(0,Ce-1)});return}var He=(G?le-Fe:ne)-_e.left;if(J(He),I&&I<se){var Ke=G?_e.right-(le-Fe+I):ne+Fe-_e.left-I,Ne=Math.max(0,Ke);k(Ne)}else k(0)}},[ae,G,I,ne,le,se,d]);function ge(Ze){return Ze.filter(function(Fe){return Fe})}var he=l.useMemo(function(){return ge(gl(R))},[R]),ye=s==="time"&&!he.length,Ae=l.useMemo(function(){return ye?ge([T]):he},[ye,he,T]),xe=ye?T:he,Se=l.useMemo(function(){return Ae.length?Ae.some(function(Ze){return E(Ze)}):!0},[Ae,E]),ue=function(){ye&&$(T),N(),O()},ve=l.createElement("div",{className:"".concat(V,"-panel-layout")},l.createElement(_W,{prefixCls:V,presets:h,onClick:b,onHover:y}),l.createElement("div",null,l.createElement(jW,sp({},e,{value:xe})),l.createElement(jF,sp({},e,{showNow:f?!1:c,invalid:Se,onSubmit:ue}))));r&&(ve=r(ve));var Me="".concat(U,"-container"),Pe="marginLeft",je="marginRight",Be=l.createElement("div",{onMouseDown:C,tabIndex:-1,className:Q(Me,"".concat(V,"-").concat(a,"-panel-container"),D==null||(t=D.popup)===null||t===void 0?void 0:t.container),style:HW(b0(b0({},G?je:Pe,A),G?Pe:je,"auto"),j==null||(n=j.popup)===null||n===void 0?void 0:n.container),onFocus:v,onBlur:x},ve);return d&&(Be=l.createElement("div",{onMouseDown:C,ref:_,className:Q("".concat(V,"-range-wrapper"),"".concat(V,"-").concat(s,"-range-wrapper"))},l.createElement("div",{ref:Y,className:"".concat(V,"-range-arrow"),style:{left:Z}}),l.createElement(oo,{onResize:re},Be))),Be}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 _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function 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){YW(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 YW(e,t,n){return t=UW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UW(e){var t=qW(e,"string");return Qu(t)=="symbol"?t:String(t)}function qW(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 hN(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,s=e.locale,c=e.preserveInvalidOnBlur,d=e.inputReadOnly,f=e.required,m=e["aria-required"],g=e.onSubmit,h=e.onFocus,y=e.onBlur,b=e.onInputChange,v=e.onInvalid,x=e.open,C=e.onOpenChange,w=e.onKeyDown,R=e.onChange,$=e.activeHelp,E=e.name,T=e.autoComplete,N=e.id,O=e.value,D=e.invalid,j=e.placeholder,B=e.disabled,V=e.activeIndex,U=e.allHelp,G=e.picker,Y=function(A,k){var q=a.locale.parse(s.locale,A,[k]);return q&&a.isValidate(q)?q:null},_=n[0],H=l.useCallback(function(P){return nr(P,{locale:s,format:_,generateConfig:a})},[s,a,_]),F=l.useMemo(function(){return O.map(H)},[O,H]),I=l.useMemo(function(){var P=G==="time"?8:10,A=typeof _=="function"?_(a.getNow()).length:_.length;return Math.max(P,A)+2},[_,G,a]),z=function(A){for(var k=0;k<n.length;k+=1){var q=n[k];if(typeof q=="string"){var K=Y(A,q);if(K)return K}}return!1},L=function(A){function k(Z){return A!==void 0?Z[A]:Z}var q=An(e,{aria:!0,data:!0}),K=HM(HM({},q),{},{format:r,validateFormat:function(J){return!!z(J)},preserveInvalidOnBlur:c,readOnly:d,required:f,"aria-required":m,name:E,autoComplete:T,size:I,id:k(N),value:k(F)||"",invalid:k(D),placeholder:k(j),active:V===A,helped:U||$&&V===A,disabled:k(B),onFocus:function(J){h(J,A)},onBlur:function(J){y(J,A)},onSubmit:g,onChange:function(J){b();var re=z(J);if(re){v(!1,A),R(re,A);return}v(!!J,A)},onHelp:function(){C(!0,{index:A})},onKeyDown:function(J){var re=!1;if(w?.(J,function(){re=!0}),!J.defaultPrevented&&!re)switch(J.key){case"Escape":C(!1,{index:A});break;case"Enter":x||C(!0);break}}},t?.({valueTexts:F}));return Object.keys(K).forEach(function(Z){K[Z]===void 0&&delete K[Z]}),K};return[L,H]}var GW=["onMouseEnter","onMouseLeave"];function yN(e){return l.useMemo(function(){return Gp(e,GW)},[e])}var XW=["icon","type"],KW=["onClear"];function cp(){return cp=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},cp.apply(this,arguments)}function bN(e,t){if(e==null)return{};var n=QW(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QW(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Zp(e){var t=e.icon,n=e.type,r=bN(e,XW),a=l.useContext(Bo),s=a.prefixCls,c=a.classNames,d=a.styles;return t?l.createElement("span",cp({className:Q("".concat(s,"-").concat(n),c.suffix),style:d.suffix},r),t):null}function v0(e){var t=e.onClear,n=bN(e,KW);return l.createElement(Zp,cp({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}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 ZW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JW(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,vN(r.key),r)}}function eY(e,t,n){return t&&JW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rm(e,t,n){return t=vN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vN(e){var t=tY(e,"string");return Zu(t)=="symbol"?t:String(t)}function tY(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)}var Xy=["YYYY","MM","DD","HH","mm","ss","SSS"],BM="顧",nY=(function(){function e(t){ZW(this,e),rm(this,"format",void 0),rm(this,"maskFormat",void 0),rm(this,"cells",void 0),rm(this,"maskCells",void 0),this.format=t;var n=Xy.map(function(d){return"(".concat(d,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(d){return BM.repeat(d.length)});var a=new RegExp("(".concat(Xy.join("|"),")")),s=(t.split(a)||[]).filter(function(d){return d}),c=0;this.cells=s.map(function(d){var f=Xy.includes(d),m=c,g=c+d.length;return c=g,{text:d,mask:f,start:m,end:g}}),this.maskCells=this.cells.filter(function(d){return d.mask})}return eY(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,s=r.end;return[a||0,s||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],s=n[r];if(!s||a!==BM&&a!==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,a=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 m=Math.min(Math.abs(n-d),Math.abs(n-f));m<r&&(r=m,a=s)}return a}}]),e})();function rY(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 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)}var oY=["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];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 LM(e,t,n){return t=aY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aY(e){var t=iY(e,"string");return Ju(t)=="symbol"?t:String(t)}function iY(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 Fi(e,t){return uY(e)||cY(e,t)||sY(e,t)||lY()}function lY(){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 sY(e,t){if(e){if(typeof e=="string")return VM(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 VM(e,t)}}function VM(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 cY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function uY(e){if(Array.isArray(e))return e}function dY(e,t){if(e==null)return{};var n=fY(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fY(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var C0=l.forwardRef(function(e,t){var n=e.className,r=e.active,a=e.showActiveCls,s=a===void 0?!0:a,c=e.suffixIcon,d=e.format,f=e.validateFormat,m=e.onChange;e.onInput;var g=e.helped,h=e.onHelp,y=e.onSubmit,b=e.onKeyDown,v=e.preserveInvalidOnBlur,x=v===void 0?!1:v,C=e.invalid,w=e.clearIcon,R=dY(e,oY),$=e.value,E=e.onFocus,T=e.onBlur,N=e.onMouseUp,O=l.useContext(Bo),D=O.prefixCls,j=O.input,B=j===void 0?"input":j,V=O.classNames,U=O.styles,G="".concat(D,"-input"),Y=l.useState(!1),_=Fi(Y,2),H=_[0],F=_[1],I=l.useState($),z=Fi(I,2),L=z[0],P=z[1],A=l.useState(""),k=Fi(A,2),q=k[0],K=k[1],Z=l.useState(null),J=Fi(Z,2),re=J[0],ie=J[1],ne=l.useState(null),le=Fi(ne,2),se=le[0],ce=le[1],me=L||"";l.useEffect(function(){P($)},[$]);var ae=l.useRef(null),fe=l.useRef(null);l.useImperativeHandle(t,function(){return{nativeElement:ae.current,inputElement:fe.current,focus:function(et){fe.current.focus(et)},blur:function(){fe.current.blur()}}});var ge=l.useMemo(function(){return new nY(d||"")},[d]),he=l.useMemo(function(){return g?[0,0]:ge.getSelection(re)},[ge,re,g]),ye=Fi(he,2),Ae=ye[0],xe=ye[1],Se=function(et){et&&et!==d&&et!==$&&h()},ue=ct(function(Ye){f(Ye)&&m(Ye),P(Ye),Se(Ye)}),ve=function(et){if(!d){var Le=et.target.value;Se(Le),P(Le),m(Le)}},Me=function(et){var Le=et.clipboardData.getData("text");f(Le)&&ue(Le)},Pe=l.useRef(!1),je=function(){Pe.current=!0},Be=function(et){var Le=et.target,Ge=Le.selectionStart,Re=ge.getMaskCellIndex(Ge);ie(Re),ce({}),N?.(et),Pe.current=!1},Ze=function(et){F(!0),ie(0),K(""),E(et)},Fe=function(et){T(et)},_e=function(et){F(!1),Fe(et)};b1(r,function(){!r&&!x&&P($)});var He=function(et){et.key==="Enter"&&f(me)&&y(),b?.(et)},Ke=function(et){He(et);var Le=et.key,Ge=null,Re=null,Xe=xe-Ae,tt=d.slice(Ae,xe),at=function(ke){ie(function(Qe){var ze=Qe+ke;return ze=Math.max(ze,0),ze=Math.min(ze,ge.size()-1),ze})},bt=function(ke){var Qe=rY(tt),ze=Fi(Qe,3),Ie=ze[0],Ue=ze[1],Te=ze[2],qe=me.slice(Ae,xe),Je=Number(qe);if(isNaN(Je))return String(Te||(ke>0?Ie:Ue));var ot=Je+ke,ft=Ue-Ie+1;return String(Ie+(ft+ot-Ie)%ft)};switch(Le){case"Backspace":case"Delete":Ge="",Re=tt;break;case"ArrowLeft":Ge="",at(-1);break;case"ArrowRight":Ge="",at(1);break;case"ArrowUp":Ge="",Re=bt(1);break;case"ArrowDown":Ge="",Re=bt(-1);break;default:isNaN(Number(Le))||(Ge=q+Le,Re=Ge);break}if(Ge!==null&&(K(Ge),Ge.length>=Xe&&(at(1),K(""))),Re!==null){var ht=me.slice(0,Ae)+p1(Re,Xe)+me.slice(xe);ue(ht.slice(0,d.length))}ce({})},Ne=l.useRef();It(function(){if(!(!H||!d||Pe.current)){if(!ge.match(me)){ue(d);return}return fe.current.setSelectionRange(Ae,xe),Ne.current=Ht(function(){fe.current.setSelectionRange(Ae,xe)}),function(){Ht.cancel(Ne.current)}}},[ge,d,H,me,re,Ae,xe,se,ue]);var Ce=d?{onFocus:Ze,onBlur:_e,onKeyDown:Ke,onMouseDown:je,onMouseUp:Be,onPaste:Me}:{};return l.createElement("div",{ref:ae,className:Q(G,LM(LM({},"".concat(G,"-active"),r&&s),"".concat(G,"-placeholder"),g),n)},l.createElement(B,S0({ref:fe,"aria-invalid":C,autoComplete:"off"},R,{onKeyDown:He,onBlur:Fe},Ce,{value:me,onChange:ve,className:V.input,style:U.input})),l.createElement(Zp,{type:"suffix",icon:c}),w)}),mY=["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"],pY=["index"];function mu(){return mu=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},mu.apply(this,arguments)}function FM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function om(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(n),!0).forEach(function(r){ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ou(e,t,n){return t=gY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gY(e){var t=hY(e,"string");return Ps(t)=="symbol"?t:String(t)}function hY(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kM(e,t){return SY(e)||vY(e,t)||bY(e,t)||yY()}function yY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
247
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bY(e,t){if(e){if(typeof e=="string")return WM(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 WM(e,t)}}function WM(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 vY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function SY(e){if(Array.isArray(e))return e}function Ps(e){"@babel/helpers - typeof";return Ps=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},Ps(e)}function YM(e,t){if(e==null)return{};var n=CY(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CY(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function xY(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,s=e.suffixIcon,c=e.separator,d=c===void 0?"~":c,f=e.activeIndex;e.activeHelp,e.allHelp;var m=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var g=e.placeholder,h=e.className,y=e.style,b=e.onClick,v=e.onClear,x=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,w=e.invalid;e.inputReadOnly;var R=e.direction;e.onOpenChange;var $=e.onActiveInfo;e.placement;var E=e.onMouseDown;e.required,e["aria-required"];var T=e.autoFocus,N=e.tabIndex,O=YM(e,mY),D=R==="rtl",j=l.useContext(Bo),B=j.prefixCls,V=j.classNames,U=j.styles,G=l.useMemo(function(){if(typeof n=="string")return[n];var le=n||{};return[le.start,le.end]},[n]),Y=l.useRef(),_=l.useRef(),H=l.useRef(),F=function(se){var ce;return(ce=[_,H][se])===null||ce===void 0?void 0:ce.current};l.useImperativeHandle(t,function(){return{nativeElement:Y.current,focus:function(se){if(Ps(se)==="object"){var ce,me=se||{},ae=me.index,fe=ae===void 0?0:ae,ge=YM(me,pY);(ce=F(fe))===null||ce===void 0||ce.focus(ge)}else{var he;(he=F(se??0))===null||he===void 0||he.focus()}},blur:function(){var se,ce;(se=F(0))===null||se===void 0||se.blur(),(ce=F(1))===null||ce===void 0||ce.blur()}}});var I=yN(O),z=l.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),L=hN(om(om({},e),{},{id:G,placeholder:z})),P=kM(L,1),A=P[0],k=l.useState({position:"absolute",width:0}),q=kM(k,2),K=q[0],Z=q[1],J=ct(function(){var le=F(f);if(le){var se=le.nativeElement.getBoundingClientRect(),ce=Y.current.getBoundingClientRect(),me=se.left-ce.left;Z(function(ae){return om(om({},ae),{},{width:se.width,left:me})}),$([se.left,se.right,ce.width])}});l.useEffect(function(){J()},[f]);var re=a&&(x[0]&&!C[0]||x[1]&&!C[1]),ie=T&&!C[0],ne=T&&!ie&&!C[1];return l.createElement(oo,{onResize:J},l.createElement("div",mu({},I,{className:Q(B,"".concat(B,"-range"),ou(ou(ou(ou({},"".concat(B,"-focused"),m),"".concat(B,"-disabled"),C.every(function(le){return le})),"".concat(B,"-invalid"),w.some(function(le){return le})),"".concat(B,"-rtl"),D),h),style:y,ref:Y,onClick:b,onMouseDown:function(se){var ce=se.target;ce!==_.current.inputElement&&ce!==H.current.inputElement&&se.preventDefault(),E?.(se)}}),r&&l.createElement("div",{className:Q("".concat(B,"-prefix"),V.prefix),style:U.prefix},r),l.createElement(C0,mu({ref:_},A(0),{className:"".concat(B,"-input-start"),autoFocus:ie,tabIndex:N,"date-range":"start"})),l.createElement("div",{className:"".concat(B,"-range-separator")},d),l.createElement(C0,mu({ref:H},A(1),{className:"".concat(B,"-input-end"),autoFocus:ne,tabIndex:N,"date-range":"end"})),l.createElement("div",{className:"".concat(B,"-active-bar"),style:K}),l.createElement(Zp,{type:"suffix",icon:s}),re&&l.createElement(v0,{icon:a,onClear:v})))}var $Y=l.forwardRef(xY);function ed(e){"@babel/helpers - typeof";return ed=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},ed(e)}function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function am(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UM(Object(n),!0).forEach(function(r){wY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wY(e,t,n){return t=EY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EY(e){var t=MY(e,"string");return ed(t)=="symbol"?t:String(t)}function MY(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SN(e,t){return l.useMemo(function(){var n=am(am({},e),{},{popup:e?.popup||{}}),r=am(am({},t),{},{popup:t?.popup||{}});return[n,r]},[e,t])}function td(e){"@babel/helpers - typeof";return td=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},td(e)}function pu(){return pu=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},pu.apply(this,arguments)}function qM(e){return OY(e)||TY(e)||CN(e)||RY()}function RY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
248
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OY(e){if(Array.isArray(e))return x0(e)}function GM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function im(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GM(Object(n),!0).forEach(function(r){NY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NY(e,t,n){return t=IY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IY(e){var t=PY(e,"string");return td(t)=="symbol"?t:String(t)}function PY(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vo(e,t){return DY(e)||AY(e,t)||CN(e,t)||zY()}function zY(){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 CN(e,t){if(e){if(typeof e=="string")return x0(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 x0(e,t)}}function x0(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 AY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function DY(e){if(Array.isArray(e))return e}function XM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function lm(e){return e===1?"end":"start"}function jY(e,t){var n=K6(e,function(){var kt=e.disabled,St=e.allowEmpty,Et=XM(kt,!1),fn=XM(St,!1);return{disabled:Et,allowEmpty:fn}}),r=vo(n,6),a=r[0],s=r[1],c=r[2],d=r[3],f=r[4],m=r[5],g=a.prefixCls,h=a.rootClassName,y=a.styles,b=a.classNames,v=a.previewValue,x=a.defaultValue,C=a.value,w=a.needConfirm,R=a.onKeyDown,$=a.disabled,E=a.allowEmpty,T=a.disabledDate,N=a.minDate,O=a.maxDate,D=a.defaultOpen,j=a.open,B=a.onOpenChange,V=a.locale,U=a.generateConfig,G=a.picker,Y=a.showNow,_=a.showToday,H=a.showTime,F=a.mode,I=a.onPanelChange,z=a.onCalendarChange,L=a.onOk,P=a.defaultPickerValue,A=a.pickerValue,k=a.onPickerValueChange,q=a.inputReadOnly,K=a.suffixIcon,Z=a.onFocus,J=a.onBlur,re=a.presets,ie=a.ranges,ne=a.components,le=a.cellRender,se=a.dateRender,ce=a.monthCellRender,me=a.onClick,ae=Z6(t),fe=SN(b,y),ge=vo(fe,2),he=ge[0],ye=ge[1],Ae=Q6(j,D,$,B),xe=vo(Ae,2),Se=xe[0],ue=xe[1],ve=function(St,Et){($.some(function(fn){return!fn})||!St)&&ue(St,Et)},Me=iN(U,V,d,!0,!1,x,C,z,L),Pe=vo(Me,5),je=Pe[0],Be=Pe[1],Ze=Pe[2],Fe=Pe[3],_e=Pe[4],He=Ze(),Ke=eN($,E,Se),Ne=vo(Ke,9),Ce=Ne[0],Ye=Ne[1],et=Ne[2],Le=Ne[3],Ge=Ne[4],Re=Ne[5],Xe=Ne[6],tt=Ne[7],at=Ne[8],bt=function(St,Et){Ye(!0),Z?.(St,{range:lm(Et??Le)})},ht=function(St,Et){Ye(!1),J?.(St,{range:lm(Et??Le)})},xt=l.useMemo(function(){if(!H)return null;var kt=H.disabledTime,St=kt?function(Et){var fn=lm(Le),kn=B6(He,Xe,Le);return kt(Et,fn,{from:kn})}:void 0;return im(im({},H),{},{disabledTime:St})},[H,Le,He,Xe]),ke=Yt([G,G],F),Qe=vo(ke,2),ze=Qe[0],Ie=Qe[1],Ue=ze[Le]||G,Te=Ue==="date"&&xt?"datetime":Ue,qe=Te===G&&Te!=="time",Je=sN(G,Ue,Y,_,!0),ot=lN(a,je,Be,Ze,Fe,$,d,Ce,Se,m),ft=vo(ot,2),Lt=ft[0],Tt=ft[1],$t=eF(He,$,Xe,U,V,T),dn=V6(He,m,E),Mn=vo(dn,2),lt=Mn[0],Wt=Mn[1],nt=tN(U,V,He,ze,Se,Le,s,qe,P,A,xt?.defaultOpenValue,k,N,O),gt=vo(nt,2),Dt=gt[0],en=gt[1],Vt=ct(function(kt,St,Et){var fn=fu(ze,Le,St);if((fn[0]!==ze[0]||fn[1]!==ze[1])&&Ie(fn),I&&Et!==!1){var kn=qM(He);kt&&(kn[Le]=kt),I(kn,fn)}}),tn=function(St,Et){return fu(He,Et,St)},on=function(St,Et){var fn=He;St&&(fn=tn(St,Le)),tt(Le);var kn=Re(fn);Fe(fn),Lt(Le,kn===null),kn===null?ve(!1,{force:!0}):Et||ae.current.focus({index:kn})},Pn=function(St){var Et,fn=St.target.getRootNode();if(!ae.current.nativeElement.contains((Et=fn.activeElement)!==null&&Et!==void 0?Et:document.activeElement)){var kn=$.findIndex(function(qs){return!qs});kn>=0&&ae.current.focus({index:kn})}ve(!0),me?.(St)},an=function(){Tt(null),ve(!1,{force:!0})},Sr=l.useState(null),zr=vo(Sr,2),gn=zr[0],Qn=zr[1],Or=l.useState(null),vt=vo(Or,2),Rn=vt[0],zn=vt[1],Cr=l.useMemo(function(){return Rn||He},[He,Rn]);l.useEffect(function(){Se||zn(null)},[Se]);var xr=l.useState([0,0,0]),Zn=vo(xr,2),Dn=Zn[0],Eo=Zn[1],na=function(St,Et){v==="hover"&&(zn(St),Qn(Et))},Mo=J6(re,ie),Lo=function(St){na(St,"preset")},Vo=function(St){var Et=Tt(St);Et&&ve(!1,{force:!0})},rt=function(St){on(St)},wt=function(St){na(St?tn(St,Le):null,"cell")},lo=function(St){ve(!0),bt(St)},za=function(){et("panel")},Fo=function(St){var Et=fu(He,Le,St);Fe(Et),!w&&!c&&s===Te&&on(St)},qr=function(){ve(!1)},Aa=g1(le,se,ce,lm(Le)),vl=He[Le]||null,ko=ct(function(kt){return m(kt,{activeIndex:Le})}),Mt=l.useMemo(function(){var kt=An(a,!1),St=rn(a,[].concat(qM(Object.keys(kt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime","classNames","styles"]));return St},[a]),yt=l.createElement(gN,pu({},Mt,{showNow:Je,showTime:xt,range:!0,multiplePanel:qe,activeInfo:Dn,disabledDate:$t,onFocus:lo,onBlur:ht,onPanelMouseDown:za,picker:G,mode:Ue,internalMode:Te,onPanelChange:Vt,format:f,value:vl,isInvalid:ko,onChange:null,onSelect:Fo,pickerValue:Dt,defaultOpenValue:gl(H?.defaultOpenValue)[Le],onPickerValueChange:en,hoverValue:Cr,onHover:wt,needConfirm:w,onSubmit:on,onOk:_e,presets:Mo,onPresetHover:Lo,onPresetSubmit:Vo,onNow:rt,cellRender:Aa,classNames:he,styles:ye})),Jn=function(St,Et){var fn=tn(St,Et);Fe(fn)},Ar=function(){et("input")},Sl=function(St,Et){var fn=Xe.length,kn=Xe[fn-1];if(fn&&kn!==Et&&w&&!E[kn]&&!at(kn)&&He[kn]){ae.current.focus({index:kn});return}et("input"),ve(!0,{inherit:!0}),Le!==Et&&Se&&!w&&c&&on(null,!0),Ge(Et),bt(St,Et)},ag=function(St,Et){if(ve(!1),!w&&et()==="input"){var fn=Re(He);Lt(Le,fn===null)}ht(St,Et)},Cl=function(St,Et){St.key==="Tab"&&on(null,!0),R?.(St,Et)},Ro=l.useMemo(function(){return{prefixCls:g,locale:V,generateConfig:U,button:ne.button,input:ne.input,classNames:he,styles:ye}},[g,V,U,ne.button,ne.input,he,ye]);return It(function(){Se&&Le!==void 0&&Vt(null,G,!1)},[Se,Le,G]),It(function(){var kt=et();!Se&&kt==="input"&&(ve(!1),on(null,!0)),!Se&&c&&!w&&kt==="panel"&&(ve(!0),on())},[Se]),l.createElement(Bo.Provider,{value:Ro},l.createElement(_6,pu({},L6(a),{popupElement:yt,popupStyle:ye.popup.root,popupClassName:Q(h,he.popup.root),visible:Se,onClose:qr,range:!0}),l.createElement($Y,pu({},a,{ref:ae,className:Q(a.className,h,he.root),style:im(im({},ye.root),a.style),suffixIcon:K,activeIndex:Ce||Se?Le:null,activeHelp:!!Rn,allHelp:!!Rn&&gn==="preset",focused:Ce,onFocus:Sl,onBlur:ag,onKeyDown:Cl,onSubmit:on,value:Cr,maskFormat:f,onChange:Jn,onInputChange:Ar,format:d,inputReadOnly:q,disabled:$,open:Se,onOpenChange:ve,onClick:Pn,onClear:an,invalid:lt,onInvalid:Wt,onActiveInfo:Eo}))))}var _Y=l.forwardRef(jY);function HY(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,s=a===void 0?"×":a,c=e.formatDate,d=e.disabled,f=e.maxTagCount,m=e.placeholder,g="".concat(t,"-selector"),h="".concat(t,"-selection"),y="".concat(h,"-overflow");function b(C,w){return l.createElement("span",{className:Q("".concat(h,"-item")),title:typeof C=="string"?C:null},l.createElement("span",{className:"".concat(h,"-item-content")},C),!d&&w&&l.createElement("span",{onMouseDown:function($){$.preventDefault()},onClick:w,className:"".concat(h,"-item-remove")},s))}function v(C){var w=c(C),R=function(E){E&&E.stopPropagation(),r(C)};return b(w,R)}function x(C){var w="+ ".concat(C.length," ...");return b(w)}return l.createElement("div",{className:g},l.createElement(Qo,{prefixCls:y,data:n,renderItem:v,renderRest:x,itemKey:function(w){return c(w)},maxCount:f}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},m))}function nd(e){"@babel/helpers - typeof";return nd=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},nd(e)}var BY=["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 up(){return up=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},up.apply(this,arguments)}function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function QM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(r){ds(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ds(e,t,n){return t=LY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LY(e){var t=VY(e,"string");return nd(t)=="symbol"?t:String(t)}function VY(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FY(e,t){return UY(e)||YY(e,t)||WY(e,t)||kY()}function kY(){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 WY(e,t){if(e){if(typeof e=="string")return ZM(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 ZM(e,t)}}function ZM(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 YY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function UY(e){if(Array.isArray(e))return e}function qY(e,t){if(e==null)return{};var n=GY(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GY(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function XY(e,t){e.id;var n=e.open,r=e.prefix,a=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,m=e.placeholder,g=e.className,h=e.style,y=e.onClick,b=e.onClear,v=e.internalPicker,x=e.value,C=e.onChange,w=e.onSubmit;e.onInputChange;var R=e.multiple,$=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,T=e.invalid;e.inputReadOnly;var N=e.direction;e.onOpenChange;var O=e.onMouseDown;e.required,e["aria-required"];var D=e.autoFocus,j=e.tabIndex,B=e.removeIcon,V=qY(e,BY),U=N==="rtl",G=l.useContext(Bo),Y=G.prefixCls,_=G.classNames,H=G.styles,F=l.useRef(),I=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(ie){var ne;(ne=I.current)===null||ne===void 0||ne.focus(ie)},blur:function(){var ie;(ie=I.current)===null||ie===void 0||ie.blur()}}});var z=yN(V),L=function(ie){C([ie])},P=function(ie){var ne=x.filter(function(le){return le&&!Rr(f,d,le,ie,v)});C(ne),n||w()},A=hN(QM(QM({},e),{},{onChange:L}),function(re){var ie=re.valueTexts;return{value:ie[0]||"",active:c}}),k=FY(A,2),q=k[0],K=k[1],Z=!!(a&&x.length&&!E),J=R?l.createElement(l.Fragment,null,l.createElement(HY,{prefixCls:Y,value:x,onRemove:P,formatDate:K,maxTagCount:$,disabled:E,removeIcon:B,placeholder:m}),l.createElement("input",{className:"".concat(Y,"-multiple-input"),value:x.map(K).join(","),ref:I,readOnly:!0,autoFocus:D,tabIndex:j}),l.createElement(Zp,{type:"suffix",icon:s}),Z&&l.createElement(v0,{icon:a,onClear:b})):l.createElement(C0,up({ref:I},q(),{autoFocus:D,tabIndex:j,suffixIcon:s,clearIcon:Z&&l.createElement(v0,{icon:a,onClear:b}),showActiveCls:!1}));return l.createElement("div",up({},z,{className:Q(Y,ds(ds(ds(ds(ds({},"".concat(Y,"-multiple"),R),"".concat(Y,"-focused"),c),"".concat(Y,"-disabled"),E),"".concat(Y,"-invalid"),T),"".concat(Y,"-rtl"),U),g),style:h,ref:F,onClick:y,onMouseDown:function(ie){var ne,le=ie.target;le!==((ne=I.current)===null||ne===void 0?void 0:ne.inputElement)&&ie.preventDefault(),O?.(ie)}}),r&&l.createElement("div",{className:Q("".concat(Y,"-prefix"),_.prefix),style:H.prefix},r),J)}var KY=l.forwardRef(XY);function rd(e){"@babel/helpers - typeof";return rd=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},rd(e)}function gu(){return gu=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},gu.apply(this,arguments)}function JM(e){return JY(e)||ZY(e)||xN(e)||QY()}function QY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
251
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JY(e){if(Array.isArray(e))return $0(e)}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){eU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eU(e,t,n){return t=tU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tU(e){var t=nU(e,"string");return rd(t)=="symbol"?t:String(t)}function nU(e,t){if(rd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Io(e,t){return aU(e)||oU(e,t)||xN(e,t)||rU()}function rU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
252
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xN(e,t){if(e){if(typeof e=="string")return $0(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 $0(e,t)}}function $0(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 oU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!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){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function aU(e){if(Array.isArray(e))return e}function iU(e,t){var n=K6(e),r=Io(n,6),a=r[0],s=r[1],c=r[2],d=r[3],f=r[4],m=r[5],g=a,h=g.prefixCls,y=g.rootClassName,b=g.styles,v=g.classNames,x=g.previewValue,C=g.order,w=g.defaultValue,R=g.value,$=g.needConfirm,E=g.onChange,T=g.onKeyDown,N=g.disabled,O=g.disabledDate,D=g.minDate,j=g.maxDate,B=g.defaultOpen,V=g.open,U=g.onOpenChange,G=g.locale,Y=g.generateConfig,_=g.picker,H=g.showNow,F=g.showToday,I=g.showTime,z=g.mode,L=g.onPanelChange,P=g.onCalendarChange,A=g.onOk,k=g.multiple,q=g.defaultPickerValue,K=g.pickerValue,Z=g.onPickerValueChange,J=g.inputReadOnly,re=g.suffixIcon,ie=g.removeIcon,ne=g.onFocus,le=g.onBlur,se=g.presets,ce=g.components,me=g.cellRender,ae=g.dateRender,fe=g.monthCellRender,ge=g.onClick,he=Z6(t);function ye(Mt){return Mt===null?null:k?Mt:Mt[0]}var Ae=cN(Y,G,s),xe=SN(v,b),Se=Io(xe,2),ue=Se[0],ve=Se[1],Me=Q6(V,B,[N],U),Pe=Io(Me,2),je=Pe[0],Be=Pe[1],Ze=function(yt,Jn,Ar){if(P){var Sl=va({},Ar);delete Sl.range,P(ye(yt),ye(Jn),Sl)}},Fe=function(yt){A?.(ye(yt))},_e=iN(Y,G,d,!1,C,w,R,Ze,Fe),He=Io(_e,5),Ke=He[0],Ne=He[1],Ce=He[2],Ye=He[3],et=He[4],Le=Ce(),Ge=eN([N]),Re=Io(Ge,4),Xe=Re[0],tt=Re[1],at=Re[2],bt=Re[3],ht=function(yt){tt(!0),ne?.(yt,{})},xt=function(yt){tt(!1),le?.(yt,{})},ke=Yt(_,z),Qe=Io(ke,2),ze=Qe[0],Ie=Qe[1],Ue=ze==="date"&&I?"datetime":ze,Te=sN(_,ze,H,F),qe=E&&function(Mt,yt){E(ye(Mt),ye(yt))},Je=lN(va(va({},a),{},{onChange:qe}),Ke,Ne,Ce,Ye,[],d,Xe,je,m),ot=Io(Je,2),ft=ot[1],Lt=V6(Le,m),Tt=Io(Lt,2),$t=Tt[0],dn=Tt[1],Mn=l.useMemo(function(){return $t.some(function(Mt){return Mt})},[$t]),lt=function(yt,Jn){if(Z){var Ar=va(va({},Jn),{},{mode:Jn.mode[0]});delete Ar.range,Z(yt[0],Ar)}},Wt=tN(Y,G,Le,[ze],je,bt,s,!1,q,K,gl(I?.defaultOpenValue),lt,D,j),nt=Io(Wt,2),gt=nt[0],Dt=nt[1],en=ct(function(Mt,yt,Jn){if(Ie(yt),L&&Jn!==!1){var Ar=Mt||Le[Le.length-1];L(Ar,yt)}}),Vt=function(){ft(Ce()),Be(!1,{force:!0})},tn=function(yt){!N&&!he.current.nativeElement.contains(document.activeElement)&&he.current.focus(),Be(!0),ge?.(yt)},on=function(){ft(null),Be(!1,{force:!0})},Pn=l.useState(null),an=Io(Pn,2),Sr=an[0],zr=an[1],gn=l.useState(null),Qn=Io(gn,2),Or=Qn[0],vt=Qn[1],Rn=l.useMemo(function(){var Mt=[Or].concat(JM(Le)).filter(function(yt){return yt});return k?Mt:Mt.slice(0,1)},[Le,Or,k]),zn=l.useMemo(function(){return!k&&Or?[Or]:Le.filter(function(Mt){return Mt})},[Le,Or,k]);l.useEffect(function(){je||vt(null)},[je]);var Cr=function(yt,Jn){x==="hover"&&(vt(yt),zr(Jn))},xr=J6(se),Zn=function(yt){Cr(yt,"preset")},Dn=function(yt){var Jn=k?Ae(Ce(),yt):[yt],Ar=ft(Jn);Ar&&!k&&Be(!1,{force:!0})},Eo=function(yt){Dn(yt)},na=function(yt){Cr(yt,"cell")},Mo=function(yt){Be(!0),ht(yt)},Lo=function(yt){if(at("panel"),!(k&&Ue!==_)){var Jn=k?Ae(Ce(),yt):[yt];Ye(Jn),!$&&!c&&s===Ue&&Vt()}},Vo=function(){Be(!1)},rt=g1(me,ae,fe),wt=l.useMemo(function(){var Mt=An(a,!1),yt=rn(a,[].concat(JM(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange","classNames","styles"]));return va(va({},yt),{},{multiple:a.multiple})},[a]),lo=l.createElement(gN,gu({},wt,{showNow:Te,showTime:I,disabledDate:O,onFocus:Mo,onBlur:xt,picker:_,mode:ze,internalMode:Ue,onPanelChange:en,format:f,value:Le,isInvalid:m,onChange:null,onSelect:Lo,pickerValue:gt,defaultOpenValue:I?.defaultOpenValue,onPickerValueChange:Dt,hoverValue:Rn,onHover:na,needConfirm:$,onSubmit:Vt,onOk:et,presets:xr,onPresetHover:Zn,onPresetSubmit:Dn,onNow:Eo,cellRender:rt,classNames:ue,styles:ve})),za=function(yt){Ye(yt)},Fo=function(){at("input")},qr=function(yt){at("input"),Be(!0,{inherit:!0}),ht(yt)},Aa=function(yt){Be(!1),xt(yt)},vl=function(yt,Jn){yt.key==="Tab"&&Vt(),T?.(yt,Jn)},ko=l.useMemo(function(){return{prefixCls:h,locale:G,generateConfig:Y,button:ce.button,input:ce.input,classNames:ue,styles:ve}},[h,G,Y,ce.button,ce.input,ue,ve]);return It(function(){je&&bt!==void 0&&en(null,_,!1)},[je,bt,_]),It(function(){var Mt=at();!je&&Mt==="input"&&(Be(!1),Vt()),!je&&c&&!$&&Mt==="panel"&&Vt()},[je]),l.createElement(Bo.Provider,{value:ko},l.createElement(_6,gu({},L6(a),{popupElement:lo,popupStyle:ve.popup.root,popupClassName:Q(y,ue.popup.root),visible:je,onClose:Vo}),l.createElement(KY,gu({},a,{ref:he,className:Q(a.className,y,ue.root),style:va(va({},ve.root),a.style),suffixIcon:re,removeIcon:ie,activeHelp:!!Or,allHelp:!!Or&&Sr==="preset",focused:Xe,onFocus:qr,onBlur:Aa,onKeyDown:vl,onSubmit:Vt,value:zn,maskFormat:f,onChange:za,onInputChange:Fo,internalPicker:s,format:d,inputReadOnly:J,disabled:N,open:je,onOpenChange:Be,onClick:tn,onClear:on,invalid:Mn,onInvalid:function(yt){dn(yt,0)}}))))}var lU=l.forwardRef(iU);function sU(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function cU(e){return sU(e).join("_")}const $N=l.createContext(void 0),uU=$N.Provider,wN=l.createContext(void 0),dU=wN.Provider;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 EN=l.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:a,checked:s,disabled:c,defaultChecked:d=!1,type:f="checkbox",title:m,onChange:g,...h}=e,y=l.useRef(null),b=l.useRef(null),[v,x]=Yt(d,s);l.useImperativeHandle(t,()=>({focus:R=>{y.current?.focus(R)},blur:()=>{y.current?.blur()},input:y.current,nativeElement:b.current}));const C=Q(n,r,{[`${n}-checked`]:v,[`${n}-disabled`]:c}),w=R=>{c||("checked"in e||x(R.target.checked),g?.({target:{...e,type:f,checked:R.target.checked},stopPropagation(){R.stopPropagation()},preventDefault(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return l.createElement("span",{className:C,title:m,style:a,ref:b},l.createElement("input",w0({},h,{className:`${n}-input`,ref:y,onChange:w,disabled:c,checked:!!v,type:f})))});function MN(e){const t=oe.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 fU=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Jt(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,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},mU=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:a,radioSize:s,motionDurationSlow:c,motionDurationMid:d,motionEaseInOutCirc:f,colorBgContainer:m,colorBorder:g,lineWidth:h,colorBgContainerDisabled:y,colorTextDisabled:b,paddingXS:v,dotColorDisabled:x,dotSize:C,lineType:w,radioColor:R,radioBgColor:$}=e;return{[`${t}-wrapper`]:{...Jt(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]:{...Jt(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${s} * 1px)`,height:`calc(${s} * 1px)`,backgroundColor:m,border:`${te(h)} ${w} ${g}`,borderRadius:"50%",transition:`all ${d}`,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${C} * 1px)`,height:`calc(${C} * 1px)`,backgroundColor:R,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${c} ${f}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:jo(e)},[`&:hover ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:a,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:$,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:y,borderColor:g,"&::after":{backgroundColor:x}},[`${t}-disabled + span`]:{color:b,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}}}},pU=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:s,colorBorder:c,motionDurationMid:d,buttonPaddingInline:f,fontSize:m,buttonBg:g,fontSizeLG:h,controlHeightLG:y,controlHeightSM:b,paddingXS:v,borderRadius:x,borderRadiusSM:C,borderRadiusLG:w,buttonCheckedBg:R,buttonSolidCheckedColor:$,colorTextDisabled:E,colorBgContainerDisabled:T,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:O,colorPrimary:D,colorPrimaryHover:j,colorPrimaryActive:B,buttonSolidCheckedBg:V,buttonSolidCheckedHoverBg:U,buttonSolidCheckedActiveBg:G,calc:Y}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:m,lineHeight:te(Y(n).sub(Y(a).mul(2)).equal()),background:g,border:`${te(a)} ${s} ${c}`,borderBlockStartWidth:Y(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:["color","background-color","box-shadow"].map(_=>`${_} ${d}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:Y(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${te(a)} ${s} ${c}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:y,fontSize:h,lineHeight:te(Y(y).sub(Y(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:b,paddingInline:Y(v).sub(a).equal(),paddingBlock:0,lineHeight:te(Y(b).sub(Y(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:D},"&:has(:focus-visible)":jo(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:D,background:R,borderColor:D,"&::before":{backgroundColor:D},"&:first-child":{borderColor:D},"&:hover":{color:j,borderColor:j,"&::before":{backgroundColor:j}},"&:active":{color:B,borderColor:B,"&::before":{backgroundColor:B}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:$,background:V,borderColor:V,"&:hover":{color:$,background:U,borderColor:U},"&:active":{color:$,background:G,borderColor:G}},"&-disabled":{color:E,backgroundColor:T,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:T,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:N,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},gU=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:s,colorText:c,colorBgContainer:d,colorTextDisabled:f,controlItemBgActiveDisabled:m,colorTextLightSolid:g,colorPrimary:h,colorPrimaryHover:y,colorPrimaryActive:b,colorWhite:v}=e,x=4,C=s,w=t?C-x*2:C-(x+a)*2;return{radioSize:C,dotSize:w,dotColorDisabled:f,buttonSolidCheckedColor:g,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:y,buttonSolidCheckedActiveBg:b,buttonBg:d,buttonCheckedBg:d,buttonColor:c,buttonCheckedBgDisabled:m,buttonCheckedColorDisabled:f,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?h:v,radioBgColor:t?d:h}},RN=Pt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,s=Nt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[fU(s),mU(s),pU(s)]},gU,{unitless:{radioSize:!0,dotSize:!0}}),hU=(e,t)=>{const n=l.useContext($N),r=l.useContext(wN),{getPrefixCls:a,direction:s,className:c,style:d,classNames:f,styles:m}=Rt("radio"),g=l.useRef(null),h=mr(t,g),{isFormItemInput:y}=l.useContext(Tr),b=A=>{e.onChange?.(A),n?.onChange?.(A)},{prefixCls:v,className:x,rootClassName:C,children:w,style:R,title:$,classNames:E,styles:T,...N}=e,O=a("radio",v),D=(n?.optionType||r)==="button",j=D?`${O}-button`:O,B=ir(O),[V,U]=RN(O,B),G={...N},Y=l.useContext(Wr);let _=G.checked;n&&(G.name=n.name,G.onChange=b,_=e.value===n.value,G.disabled=G.disabled??n.disabled),G.disabled=G.disabled??Y;const H={...e,...G,checked:_},[F,I]=Bt([f,E],[m,T],{props:H}),z=Q(`${j}-wrapper`,{[`${j}-wrapper-checked`]:_,[`${j}-wrapper-disabled`]:G.disabled,[`${j}-wrapper-rtl`]:s==="rtl",[`${j}-wrapper-in-form-item`]:y,[`${j}-wrapper-block`]:!!n?.block},c,x,C,F.root,V,U,B),[L,P]=MN(G.onClick);return l.createElement(hd,{component:"Radio",disabled:G.disabled},l.createElement("label",{className:z,style:{...I.root,...d,...R},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:$,onClick:L},l.createElement(EN,{...G,checked:_,className:Q(F.icon,{[gd]:!D}),style:I.icon,type:"radio",prefixCls:j,ref:h,onClick:P}),w!==void 0?l.createElement("span",{className:Q(`${j}-label`,F.label),style:I.label},w):null))},dp=l.forwardRef(hU),yU=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{name:a}=l.useContext(Tr),s=Ho(cU(a)),{prefixCls:c,className:d,rootClassName:f,options:m,buttonStyle:g="outline",disabled:h,children:y,size:b,style:v,id:x,optionType:C,name:w=s,defaultValue:R,value:$,block:E=!1,onChange:T,onMouseEnter:N,onMouseLeave:O,onFocus:D,onBlur:j,orientation:B,vertical:V,role:U="radiogroup"}=e,[G,Y]=Yt(R,$),_=l.useCallback(Z=>{const J=G,re=Z.target.value;"value"in e||Y(re),re!==J&&T?.(Z)},[G,Y,T]),H=n("radio",c),F=`${H}-group`,I=ir(H),[z,L]=RN(H,I);let P=y;m&&m.length>0&&(P=m.map(Z=>typeof Z=="string"||typeof Z=="number"?l.createElement(dp,{key:Z.toString(),prefixCls:H,disabled:h,value:Z,checked:G===Z},Z):l.createElement(dp,{key:`radio-group-value-options-${Z.value}`,prefixCls:H,disabled:Z.disabled||h,value:Z.value,checked:G===Z.value,title:Z.title,style:Z.style,className:Z.className,id:Z.id,required:Z.required},Z.label)));const A=pr(b),[,k]=ud(B,V),q=Q(F,`${F}-${g}`,{[`${F}-${A}`]:A,[`${F}-rtl`]:r==="rtl",[`${F}-block`]:E},d,f,z,L,I),K=l.useMemo(()=>({onChange:_,value:G,disabled:h,name:w,optionType:C,block:E}),[_,G,h,w,C,E]);return l.createElement("div",{...An(e,{aria:!0,data:!0}),role:U,className:Q(q,{[`${H}-group-vertical`]:k}),style:v,onMouseEnter:N,onMouseLeave:O,onFocus:D,onBlur:j,id:x,ref:t},l.createElement(uU,{value:K},P))}),TN=l.memo(yU),bU=(e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,...a}=e,s=n("radio",r);return l.createElement(dU,{value:"button"},l.createElement(dp,{prefixCls:s,...a,type:"radio",ref:t}))},E0=l.forwardRef(bU),C1=dp;C1.Button=E0;C1.Group=TN;C1.__ANT_RADIO=!0;const vU=10,SU=20;function CU(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:a,prefixCls:s,value:c,onChange:d,divRef:f}=e,m=r.getYear(c||r.getNow());let g=m-vU,h=g+SU;n&&(g=r.getYear(n[0]),h=r.getYear(n[1])+1);const y=a&&a.year==="年"?"年":"",b=[];for(let v=g;v<h;v++)b.push({label:`${v}${y}`,value:v});return l.createElement(Fr,{size:t?void 0:"small",options:b,value:m,className:`${s}-year-select`,onChange:v=>{let x=r.setYear(c,v);if(n){const[C,w]=n,R=r.getYear(x),$=r.getMonth(x);R===r.getYear(w)&&$>r.getMonth(w)&&(x=r.setMonth(x,r.getMonth(w))),R===r.getYear(C)&&$<r.getMonth(C)&&(x=r.setMonth(x,r.getMonth(C)))}d(x)},getPopupContainer:()=>f.current})}function xU(e){const{prefixCls:t,fullscreen:n,validRange:r,value:a,generateConfig:s,locale:c,onChange:d,divRef:f}=e,m=s.getMonth(a||s.getNow());let g=0,h=11;if(r){const[v,x]=r,C=s.getYear(a);s.getYear(x)===C&&(h=s.getMonth(x)),s.getYear(v)===C&&(g=s.getMonth(v))}const y=c.shortMonths||s.locale.getShortMonths(c.locale),b=[];for(let v=g;v<=h;v+=1)b.push({label:y[v],value:v});return l.createElement(Fr,{size:n?void 0:"small",className:`${t}-month-select`,value:m,options:b,onChange:v=>{d(s.setMonth(a,v))},getPopupContainer:()=>f.current})}function $U(e){const{prefixCls:t,locale:n,mode:r,fullscreen:a,onModeChange:s}=e;return l.createElement(TN,{onChange:({target:{value:c}})=>{s(c)},value:r,size:a?void 0:"small",className:`${t}-mode-switch`},l.createElement(E0,{value:"month"},n.month),l.createElement(E0,{value:"year"},n.year))}function wU(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:a,onModeChange:s,className:c,style:d}=e,f=l.useRef(null),m=l.useContext(Tr),g=l.useMemo(()=>({...m,isFormItemInput:!1}),[m]),h={...e,fullscreen:n,divRef:f};return l.createElement("div",{className:Q(`${t}-header`,c),style:d,ref:f},l.createElement(Tr.Provider,{value:g},l.createElement(CU,{...h,onChange:y=>{a(y,"year")}}),r==="month"&&l.createElement(xU,{...h,onChange:y=>{a(y,"month")}})),l.createElement($U,{...h,onModeChange:s}))}function Ys(e){return Nt(e,{inputAffixPadding:e.paddingXXS})}const Us=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:s,controlHeightLG:c,fontSizeLG:d,lineHeightLG:f,paddingSM:m,controlPaddingHorizontalSM:g,controlPaddingHorizontal:h,colorFillAlter:y,colorPrimaryHover:b,colorPrimary:v,controlOutlineWidth:x,controlOutline:C,colorErrorOutline:w,colorWarningOutline:R,colorBgContainer:$,inputFontSize:E,inputFontSizeLG:T,inputFontSizeSM:N}=e,O=E||n,D=N||O,j=T||d,B=Math.round((t-O*r)/2*10)/10-a,V=Math.round((s-D*r)/2*10)/10-a,U=Math.ceil((c-j*f)/2*10)/10-a;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(V,0),paddingBlockLG:Math.max(U,0),paddingInline:m-a,paddingInlineSM:g-a,paddingInlineLG:h-a,addonBg:y,activeBorderColor:v,hoverBorderColor:b,activeShadow:`0 0 0 ${x}px ${C}`,errorActiveShadow:`0 0 0 ${x}px ${w}`,warningActiveShadow:`0 0 0 ${x}px ${R}`,hoverBg:$,activeBg:$,inputFontSize:O,inputFontSizeLG:j,inputFontSizeSM:D}},EU=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Jp=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])":{...EU(Nt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),x1=(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}}),tR=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...x1(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ON=(e,t)=>({"&-outlined":{...x1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Jp(e)},...tR(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...tR(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),nR=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),MU=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}},...nR(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...nR(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Jp(e)}}}}),NN=(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}}},IN=(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}}),rR=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...IN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),PN=(e,t)=>({"&-filled":{...IN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Jp(e)},...rR(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...rR(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),oR=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),RU=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...oR(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...oR(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}`}}}}}),zN=(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}}),aR=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...zN(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`}}),AN=(e,t)=>({"&-underlined":{...zN(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"},...aR(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...aR(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),DN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),$1=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${te(t)} ${te(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},w1=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),E1=(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}`,...DN(e.colorTextPlaceholder),"&-lg":{...$1(e),...t.largeStyle},"&-sm":{...w1(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),TU=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`]:{...$1(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...w1(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",...al(),[`${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},[`
|
|
253
|
+
& > ${t}-affix-wrapper,
|
|
254
|
+
& > ${t}-number-affix-wrapper,
|
|
255
|
+
& > ${n}-picker-range
|
|
256
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
|
|
257
|
+
& > ${n}-select-auto-complete ${t},
|
|
258
|
+
& > ${n}-cascader-picker ${t},
|
|
259
|
+
& > ${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,
|
|
260
|
+
& > ${n}-select:first-child,
|
|
261
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
262
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
263
|
+
& > ${n}-select:last-child,
|
|
264
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
265
|
+
& > ${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`]:{}}}}},OU=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,c=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Jt(e),...E1(e),...ON(e),...PN(e),...NN(e),...AN(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"}}}},NU=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)}`}}}},IU=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:s,colorIconHover:c,iconCls:d}=e,f=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[f]:{...E1(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}},...NU(e),[`${d}${t}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}},[`${t}-underlined`]:{borderRadius:0},[m]:{[`${d}${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},PU=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Jt(e),...TU(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}},...MU(e),...RU(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}}}}}},zU=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jN=Pt(["Input","Shared"],e=>{const t=Nt(e,Ys(e));return[OU(t),IU(t)]},Us,{resetFont:!1}),_N=Pt(["Input","Component"],e=>{const t=Nt(e,Ys(e));return[PU(t),zU(t),bd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Us,{resetFont:!1}),AU=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,s=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(s).sub(a).equal(),0);return{basePadding:s,containerPadding:c,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},DU=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:s,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:d,colorIcon:f,colorIconHover:m,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","line-height","height"].map(y=>`${y} ${a}`).join(", "),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":{...Ds(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}}}}}},Ky=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",s=AU(e);return[{[`${n}-multiple${a}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:te(s.itemLineHeight)}}}]},jU=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Nt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=Nt(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[Ky(a,"small"),Ky(e),Ky(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"}},...DU(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},_U=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:s,cellHoverBg:c,lineWidth:d,lineType:f,colorPrimary:m,cellActiveWithRangeBg:g,colorTextLightSolid:h,colorTextDisabled:y,cellBgDisabled:b,colorFillSecondary:v}=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:a,transition:`background-color ${s}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
266
|
+
&: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} ${m}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
|
|
267
|
+
&-in-view${t}-range-start,
|
|
268
|
+
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:g}},[`&-in-view${t}-selected,
|
|
269
|
+
&-in-view${t}-range-start,
|
|
270
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:h,background:m},[`&${t}-disabled ${n}`]:{background:v}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:y,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:b}},[`&-disabled${t}-today ${n}::before`]:{borderColor:y}}},HN=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:s,cellWidth:c,paddingSM:d,paddingXS:f,paddingXXS:m,colorBgContainer:g,lineWidth:h,lineType:y,borderRadiusLG:b,colorPrimary:v,colorTextHeading:x,colorSplit:C,pickerControlIconBorderWidth:w,colorIcon:R,textHeight:$,motionDurationMid:E,colorIconHover:T,fontWeightStrong:N,cellHeight:O,pickerCellPaddingVertical:D,colorTextDisabled:j,colorText:B,fontSize:V,motionDurationSlow:U,withoutTimeCellHeight:G,pickerQuarterPanelContentHeight:Y,borderRadiusSM:_,colorTextLightSolid:H,cellHoverBg:F,timeColumnHeight:I,timeColumnWidth:z,timeCellHeight:L,controlItemBgActive:P,marginXXS:A,pickerDatePanelPaddingHorizontal:k,pickerControlIconMargin:q}=e,K=e.calc(c).mul(7).add(e.calc(k).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:g,borderRadius:b,outline:"none","&-focused":{borderColor:v},"&-rtl":{[`${t}-prev-icon,
|
|
271
|
+
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
272
|
+
${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:x,borderBottom:`${te(h)} ${y} ${C}`,"> *":{flex:"none"},button:{padding:0,color:R,lineHeight:te($),background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:V,"&:hover":{color:T},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:N,lineHeight:te($),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:f},"&:hover":{color:v}}}},"&-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:q,insetInlineStart:q,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:O,fontWeight:"normal"},th:{height:e.calc(O).add(e.calc(D).mul(2)).equal(),color:B,verticalAlign:"middle"}},"&-cell":{padding:`${te(D)} 0`,color:j,cursor:"pointer","&-in-view":{color:B},..._U(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:Y}},"&-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:a}},"&-date-panel":{[`${t}-body`]:{padding:`${te(f)} ${te(k)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${E}`},"&:first-child:before":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child:before":{borderStartEndRadius:_,borderEndEndRadius:_}},"&:hover td:before":{background:F},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:v},[`&${t}-cell-week`]:{color:new nn(H).setA(.5).toHexString()},[r]:{color:H}}},"&-range-hover td:before":{background:P}},"&-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} ${C}`},[`${t}-date-panel,
|
|
273
|
+
${t}-time-panel`]:{transition:`opacity ${U}`},"&-active":{[`${t}-date-panel,
|
|
274
|
+
${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(m)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background-color ${E}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${te(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${te(h)} ${y} ${C}`},"&-active":{background:new nn(P).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:A,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(A).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(L).div(2).equal(),color:B,lineHeight:te(L),borderRadius:_,cursor:"pointer",transition:`background-color ${E}`,"&:hover":{background:F}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:P}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:j,background:"transparent",cursor:"not-allowed"}}}}}}}}},HU=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:s,colorPrimary:c,cellActiveWithRangeBg:d,colorPrimaryBorder:f,lineType:m,colorSplit:g}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${te(r)} ${m} ${g}`,"&-extra":{padding:`0 ${te(a)}`,lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${te(r)} ${m} ${g}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:te(a),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"}}}}},BN=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},LN=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:s,lineWidth:c}=e,d=s*2,f=c*2,m=Math.min(n-d,n-f),g=Math.min(r-d,r-f),h=Math.min(a-d,a-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new nn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new nn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:m,multipleItemHeightSM:g,multipleItemHeightLG:h,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},BU=e=>({...Us(e),...LN(e),...Vp(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),LU=e=>{const{componentCls:t}=e;return{[t]:[{...ON(e),...AN(e),...PN(e),...NN(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)}`}),VU=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}}}}},FU=e=>{const{componentCls:t,antCls:n,paddingInline:r,lineWidth:a,lineType:s,colorBorder:c,borderRadius:d,motionDurationMid:f,colorTextDisabled:m,colorTextPlaceholder:g,colorTextQuaternary:h,fontSizeLG:y,inputFontSizeLG:b,fontSizeSM:v,inputFontSizeSM:x,controlHeightSM:C,paddingInlineSM:w,paddingXS:R,marginXS:$,colorIcon:E,lineWidthBold:T,colorPrimary:N,motionDurationSlow:O,zIndexPopup:D,paddingXXS:j,sizePopupArrow:B,colorBgElevated:V,borderRadiusLG:U,boxShadowSecondary:G,borderRadiusSM:Y,colorSplit:_,cellHoverBg:H,presetsWidth:F,presetsMaxWidth:I,boxShadowPopoverArrow:z,fontHeight:L,lineHeightLG:P}=e;return[{[t]:{...Jt(e),...Qy(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:["border","box-shadow","background-color"].map(A=>`${A} ${f}`).join(", "),[`${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}`,...DN(g),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:m,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:g}}},"&-large":{...Qy(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:b??y,lineHeight:P}},"&-small":{...Qy(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:x??v}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(R).div(2).equal(),color:h,lineHeight:1,pointerEvents:"none",transition:["opacity","color"].map(A=>`${A} ${f}`).join(", "),"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:$}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:h,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:["opacity","color"].map(A=>`${A} ${f}`).join(", "),"> *":{verticalAlign:"top"},"&:hover":{color:E}},"&: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:E},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:T,background:N,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${te(R)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:w}}},"&-dropdown":{...Jt(e),...HN(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:D,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
|
|
275
|
+
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
|
|
276
|
+
&${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,
|
|
277
|
+
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
|
278
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
|
279
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:jp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
|
280
|
+
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
|
281
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
|
282
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ap},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
|
283
|
+
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:_p},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
|
284
|
+
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Dp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:j},[`${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 ${O} ease-out`,...r6(e,V,z),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:V,borderRadius:U,boxShadow:G,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:R,borderInlineEnd:`${te(a)} ${s} ${_}`,li:{...$o,borderRadius:Y,paddingInline:R,paddingBlock:e.calc(C).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:$},"&:hover":{background:H}}}},[`${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(B).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Jo(e,"slide-up"),Jo(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down")]},VN=Pt("DatePicker",e=>{const t=Nt(Ys(e),BN(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[HU(t),FU(t),LU(t),VU(t),jU(t),bd(e,{focusElCls:`${e.componentCls}-focused`})]},BU),kU=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:a,itemActiveBg:s}=e;return{[t]:{...HN(e),...Jt(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:a,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-color ${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"}}}}}}},WU=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...LN(e)}),YU=Pt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Nt(e,BN(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 kU(n)},WU),FN=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},M0=(e,t,n)=>{const{getMonth:r}=n;return FN(e,t,n)&&r(e)===r(t)},iR=(e,t,n)=>{const{getDate:r}=n;return M0(e,t,n)&&r(e)===r(t)},kN=e=>n=>{const{prefixCls:r,className:a,rootClassName:s,style:c,dateFullCellRender:d,dateCellRender:f,monthFullCellRender:m,monthCellRender:g,cellRender:h,fullCellRender:y,headerRender:b,value:v,defaultValue:x,disabledDate:C,mode:w,validRange:R,fullscreen:$=!0,showWeek:E,onChange:T,onPanelChange:N,onSelect:O,styles:D,classNames:j}=n,{getPrefixCls:B,direction:V,className:U,style:G,classNames:Y,styles:_}=Rt("calendar"),H={...n,mode:w,fullscreen:$,showWeek:E},[F,I]=Bt([Y,j],[_,D],{props:H}),[z,L,P,A,k,q]=l.useMemo(()=>{const{root:Me,header:Pe,...je}=F,{root:Be,header:Ze,...Fe}=I;return[Me,Pe,je,Be,Ze,Fe]},[F,I]),K=B("picker",r),Z=`${K}-calendar`,[J,re]=YU(K,Z),ie=e.getNow(),[ne,le]=Yt(()=>x||e.getNow(),v),[se,ce]=Yt("month",w),me=l.useMemo(()=>se==="year"?"month":"date",[se]),ae=l.useCallback(Me=>(R?e.isAfter(R[0],Me)||e.isAfter(Me,R[1]):!1)||!!C?.(Me),[C,R]),fe=(Me,Pe)=>{N?.(Me,Pe)},ge=Me=>{le(Me),iR(Me,ne,e)||((me==="date"&&!M0(Me,ne,e)||me==="month"&&!FN(Me,ne,e))&&fe(Me,se),T?.(Me))},he=Me=>{ce(Me),fe(ne,Me)},ye=(Me,Pe)=>{ge(Me),O?.(Me,{source:Pe})},Ae=l.useCallback((Me,Pe)=>y?y(Me,Pe):d?d(Me):l.createElement("div",{className:Q(`${K}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:iR(ie,Me,e)})},l.createElement("div",{className:`${Z}-date-value`},String(e.getDate(Me)).padStart(2,"0")),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Me,Pe):f?.(Me))),[ie,K,Z,y,d,h,f]),xe=l.useCallback((Me,Pe)=>{if(y)return y(Me,Pe);if(m)return m(Me);const je=Pe.locale.shortMonths||e.locale.getShortMonths(Pe.locale.locale);return l.createElement("div",{className:Q(`${K}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:M0(ie,Me,e)})},l.createElement("div",{className:`${Z}-date-value`},je[e.getMonth(Me)]),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Me,Pe):g?.(Me)))},[ie,K,Z,y,m,h,g]),[Se]=ao("Calendar",Mu),ue=xa(Se,n.locale||{}),ve=(Me,Pe)=>{if(Pe.type==="date")return Ae(Me,Pe);if(Pe.type==="month")return xe(Me,{...Pe,locale:ue?.lang})};return l.createElement("div",{className:Q(Z,{[`${Z}-full`]:$,[`${Z}-mini`]:!$,[`${Z}-rtl`]:V==="rtl"},U,a,s,z,J,re),style:{...A,...G,...c}},b?b({value:ne,type:se,onChange:Me=>{ye(Me,"customize")},onTypeChange:he}):l.createElement(wU,{className:L,style:k,prefixCls:Z,value:ne,generateConfig:e,mode:se,fullscreen:$,locale:ue?.lang,validRange:R,onChange:ye,onModeChange:he}),l.createElement(jm,{classNames:P,styles:q,value:ne,prefixCls:K,locale:ue?.lang,generateConfig:e,cellRender:ve,onSelect:Me=>{ye(Me,me)},mode:me,picker:me,disabledDate:ae,hideHeader:!0,showWeek:E}))},WN=kN(j6);WN.generateCalendar=kN;var UU={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 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 qU=(e,t)=>l.createElement(pt,R0({},e,{ref:t,icon:UU})),fp=l.forwardRef(qU);var Gc={exports:{}},lR;function GU(){if(lR)return Gc.exports;lR=1,Gc.exports=r,Gc.exports.isMobile=r,Gc.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(a){a||(a={});let s=a.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)||!!a.tablet&&n.test(s);return!c&&a.tablet&&a.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(c=!0),c}return Gc.exports}var XU=GU();const KU=Na(XU);let Zy;const QU=(()=>(typeof Zy>"u"&&(Zy=KU()),Zy)),M1=l.createContext(null),ZU=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:a={}}=e,{size:s,align:c="center"}=a,[d,f]=l.useState(),m=l.useRef(),g=oe.useCallback(y=>typeof s=="function"?s(y):typeof s=="number"?s:y,[s]);function h(){Ht.cancel(m.current)}return l.useEffect(()=>{const y={};if(t)if(n){y.width=g(t.width);const b=r?"right":"left";c==="start"&&(y[b]=t[b]),c==="center"&&(y[b]=t[b]+t.width/2,y.transform=r?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[b]=t[b]+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(),m.current=Ht(()=>{d&&y&&Object.keys(y).every(v=>{const x=y[v],C=d[v];return typeof x=="number"&&typeof C=="number"?Math.round(x)===Math.round(C):x===C})||f(y)}),h},[JSON.stringify(t),n,r,c,g]),{style:d}},sR={width:0,height:0,left:0,top:0};function JU(e,t,n){return l.useMemo(()=>{const r=new Map,a=t.get(e[0]?.key)||sR,s=a.left+a.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)||sR);const m=r.get(d)||{...f};m.right=s-m.left-m.width,r.set(d,m)}return r},[e.map(r=>r.key).join("_"),t,n])}function cR(e,t){const n=l.useRef(e),[,r]=l.useState({});function a(s){const c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,r({})}return[n.current,a]}const eq=.1,uR=.01,_m=20,dR=.995**_m;function tq(e,t){const[n,r]=l.useState(),[a,s]=l.useState(0),[c,d]=l.useState(0),[f,m]=l.useState(),g=l.useRef();function h(w){const{screenX:R,screenY:$}=w.touches[0];r({x:R,y:$}),window.clearInterval(g.current)}function y(w){if(!n)return;const{screenX:R,screenY:$}=w.touches[0];r({x:R,y:$});const E=R-n.x,T=$-n.y;t(E,T);const N=Date.now();s(N),d(N-a),m({x:E,y:T})}function b(){if(n&&(r(null),m(null),f)){const w=f.x/c,R=f.y/c,$=Math.abs(w),E=Math.abs(R);if(Math.max($,E)<eq)return;let T=w,N=R;g.current=window.setInterval(()=>{if(Math.abs(T)<uR&&Math.abs(N)<uR){window.clearInterval(g.current);return}T*=dR,N*=dR,t(T*_m,N*_m)},_m)}}const v=l.useRef();function x(w){const{deltaX:R,deltaY:$}=w;let E=0;const T=Math.abs(R),N=Math.abs($);T===N?E=v.current==="x"?R:$:T>N?(E=R,v.current="x"):(E=$,v.current="y"),t(-E,-E)&&w.preventDefault()}const C=l.useRef(null);C.current={onTouchStart:h,onTouchMove:y,onTouchEnd:b,onWheel:x},l.useEffect(()=>{function w(T){C.current.onTouchStart(T)}function R(T){C.current.onTouchMove(T)}function $(T){C.current.onTouchEnd(T)}function E(T){C.current.onWheel(T)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",E,{passive:!1}),()=>{document.removeEventListener("touchmove",R),document.removeEventListener("touchend",$)}},[])}function YN(e){const[t,n]=l.useState(0),r=l.useRef(0),a=l.useRef();return a.current=e,f4(()=>{a.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function nq(e){const t=l.useRef([]),[,n]=l.useState({}),r=l.useRef(typeof e=="function"?e():e),a=YN(()=>{let c=r.current;t.current.forEach(d=>{c=d(c)}),t.current=[],r.current=c,n({})});function s(c){t.current.push(c),a()}return[r.current,s]}const fR={width:0,height:0,left:0,top:0,right:0};function rq(e,t,n,r,a,s,{tabs:c,tabPosition:d,rtl:f}){let m,g,h;return["top","bottom"].includes(d)?(m="width",g=f?"right":"left",h=Math.abs(n)):(m="height",g="top",h=-n),l.useMemo(()=>{if(!c.length)return[0,0];const y=c.length;let b=y;for(let x=0;x<y;x+=1){const C=e.get(c[x].key)||fR;if(Math.floor(C[g]+C[m])>Math.floor(h+t)){b=x-1;break}}let v=0;for(let x=y-1;x>=0;x-=1)if((e.get(c[x].key)||fR)[g]<h){v=x+1;break}return v>b?[0,-1]:[v,b]},[e,t,r,a,s,h,d,c.map(y=>y.key).join("_"),f])}function mR(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const oq="TABS_DQ";function UN(e){return String(e).replace(/"/g,oq)}function R1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const qN=l.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:a,style:s}=e;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":a?.addAriaLabel||"Add tab",onClick:c=>{r.onEdit("add",{event:c})}},r.addIcon||"+")}),pR=l.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:a}=e;if(!a)return null;let s,c={};return typeof a=="object"&&!l.isValidElement(a)?c=a:c.right=a,n==="right"&&(s=c.right),n==="left"&&(s=c.left),s?l.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});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 aq=l.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:a,locale:s,mobile:c,more:d={},style:f,className:m,editable:g,tabBarGutter:h,rtl:y,removeAriaLabel:b,onTabClick:v,getPopupContainer:x,popupClassName:C,popupStyle:w}=e,[R,$]=l.useState(!1),[E,T]=l.useState(null),{icon:N="More"}=d,O=`${r}-more-popup`,D=`${n}-dropdown`,j=E!==null?`${O}-${E}`:null,B=s?.dropdownAriaLabel;function V(I,z){I.preventDefault(),I.stopPropagation(),g.onEdit("remove",{key:z,event:I})}const U=l.createElement(Fs,{onClick:({key:I,domEvent:z})=>{v(I,z),$(!1)},prefixCls:`${D}-menu`,id:O,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[E],"aria-label":B!==void 0?B:"expanded dropdown"},a.map(I=>{const{closable:z,disabled:L,closeIcon:P,key:A,label:k}=I,q=R1(z,P,g,L);return l.createElement(Ed,{key:A,id:`${O}-${A}`,role:"option","aria-controls":r&&`${r}-panel-${A}`,disabled:L},l.createElement("span",null,k),q&&l.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:`${D}-menu-item-remove`,onClick:K=>{K.stopPropagation(),V(K,A)}},P||g.removeIcon||"×"))}));function G(I){const z=a.filter(A=>!A.disabled);let L=z.findIndex(A=>A.key===E)||0;const P=z.length;for(let A=0;A<P;A+=1){L=(L+I+P)%P;const k=z[L];if(!k.disabled){T(k.key);return}}}function Y(I){const{which:z}=I;if(!R){[it.DOWN,it.SPACE,it.ENTER].includes(z)&&($(!0),I.preventDefault());return}switch(z){case it.UP:G(-1),I.preventDefault();break;case it.DOWN:G(1),I.preventDefault();break;case it.ESC:$(!1);break;case it.SPACE:case it.ENTER:E!==null&&v(E,I);break}}l.useEffect(()=>{const I=document.getElementById(j);I?.scrollIntoView&&I.scrollIntoView(!1)},[j,E]),l.useEffect(()=>{R||T(null)},[R]);const _={marginInlineStart:h};a.length||(_.visibility="hidden",_.order=1);const H=Q(C,{[`${D}-rtl`]:y}),F=c?null:l.createElement(p6,T0({prefixCls:D,overlay:U,visible:a.length?R:!1,onVisibleChange:$,overlayClassName:H,overlayStyle:w,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},d),l.createElement("button",{type:"button",className:`${n}-nav-more`,style:_,"aria-haspopup":"listbox","aria-controls":O,id:`${r}-more`,"aria-expanded":R,onKeyDown:Y},N));return l.createElement("div",{className:Q(`${n}-nav-operations`,m),style:f,ref:t},F,l.createElement(qN,{prefixCls:n,locale:s,editable:g}))}),iq=l.memo(aq,(e,t)=>t.tabMoving),lq=e=>{const{prefixCls:t,id:n,active:r,focus:a,tab:{key:s,label:c,disabled:d,closeIcon:f,icon:m},closable:g,renderWrapper:h,removeAriaLabel:y,editable:b,onClick:v,onFocus:x,onBlur:C,onKeyDown:w,onMouseDown:R,onMouseUp:$,style:E,className:T,tabCount:N,currentPosition:O}=e,D=`${t}-tab`,j=R1(g,f,b,d);function B(_){d||v(_)}function V(_){_.preventDefault(),_.stopPropagation(),b.onEdit("remove",{key:s,event:_})}const U=l.useMemo(()=>m&&typeof c=="string"?l.createElement("span",null,c):c,[c,m]),G=l.useRef(null);l.useEffect(()=>{a&&G.current&&G.current.focus()},[a]);const Y=l.createElement("div",{key:s,"data-node-key":UN(s),className:Q(D,T,{[`${D}-with-remove`]:j,[`${D}-active`]:r,[`${D}-disabled`]:d,[`${D}-focus`]:a}),style:E,onClick:B},l.createElement("div",{ref:G,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${D}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:_=>{_.stopPropagation(),B(_)},onKeyDown:w,onMouseDown:R,onMouseUp:$,onFocus:x,onBlur:C},a&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${O} of ${N}`),m&&l.createElement("span",{className:`${D}-icon`},m),c&&U),j&&l.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:r?0:-1,className:`${D}-remove`,onClick:_=>{_.stopPropagation(),V(_)}},f||b.removeIcon||"×"));return h?h(Y):Y};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 sq=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:a,offsetLeft:s}=e,{width:c,height:d,left:f,top:m}=e.getBoundingClientRect();return Math.abs(c-n)<1?[c,d,f-t.left,m-t.top]:[n,r,s,a]},cs=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:a}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,a]}return[t,n]},sm=(e,t)=>e[t?0:1],gR=l.forwardRef((e,t)=>{const{className:n,style:r,id:a,animated:s,activeKey:c,rtl:d,extra:f,editable:m,locale:g,tabPosition:h,tabBarGutter:y,children:b,onTabClick:v,onTabScroll:x,indicator:C,classNames:w,styles:R}=e,{prefixCls:$,tabs:E}=l.useContext(M1),T=l.useRef(null),N=l.useRef(null),O=l.useRef(null),D=l.useRef(null),j=l.useRef(null),B=l.useRef(null),V=l.useRef(null),U=h==="top"||h==="bottom",[G,Y]=cR(0,(Ie,Ue)=>{U&&x&&x({direction:Ie>Ue?"left":"right"})}),[_,H]=cR(0,(Ie,Ue)=>{!U&&x&&x({direction:Ie>Ue?"top":"bottom"})}),[F,I]=l.useState([0,0]),[z,L]=l.useState([0,0]),[P,A]=l.useState([0,0]),[k,q]=l.useState([0,0]),[K,Z]=nq(new Map),J=JU(E,K,z[0]),re=sm(F,U),ie=sm(z,U),ne=sm(P,U),le=sm(k,U),se=Math.floor(re)<Math.floor(ie+ne),ce=se?re-le:re-ne,me=`${$}-nav-operations-hidden`;let ae=0,fe=0;U&&d?(ae=0,fe=Math.max(0,ie-ce)):(ae=Math.min(0,ce-ie),fe=0);function ge(Ie){return Ie<ae?ae:Ie>fe?fe:Ie}const he=l.useRef(null),[ye,Ae]=l.useState();function xe(){Ae(Date.now())}function Se(){he.current&&clearTimeout(he.current)}tq(D,(Ie,Ue)=>{function Te(qe,Je){qe(ot=>ge(ot+Je))}return se?(U?Te(Y,Ie):Te(H,Ue),Se(),xe(),!0):!1}),l.useEffect(()=>(Se(),ye&&(he.current=setTimeout(()=>{Ae(0)},100)),Se),[ye]);const[ue,ve]=rq(J,ce,U?G:_,ie,ne,le,{...e,tabs:E}),Me=ct((Ie=c)=>{const Ue=J.get(Ie)||{width:0,height:0,left:0,right:0,top:0};if(U){let Te=G;d?Ue.right<G?Te=Ue.right:Ue.right+Ue.width>G+ce&&(Te=Ue.right+Ue.width-ce):Ue.left<-G?Te=-Ue.left:Ue.left+Ue.width>-G+ce&&(Te=-(Ue.left+Ue.width-ce)),H(0),Y(ge(Te))}else{let Te=_;Ue.top<-_?Te=-Ue.top:Ue.top+Ue.height>-_+ce&&(Te=-(Ue.top+Ue.height-ce)),Y(0),H(ge(Te))}}),[Pe,je]=l.useState(),[Be,Ze]=l.useState(!1),Fe=E.filter(Ie=>!Ie.disabled).map(Ie=>Ie.key),_e=Ie=>{const Ue=Fe.indexOf(Pe||c),Te=Fe.length,qe=(Ue+Ie+Te)%Te,Je=Fe[qe];je(Je)},He=(Ie,Ue)=>{const Te=Fe.indexOf(Ie),qe=E.find(ot=>ot.key===Ie);R1(qe?.closable,qe?.closeIcon,m,qe?.disabled)&&(Ue.preventDefault(),Ue.stopPropagation(),m.onEdit("remove",{key:Ie,event:Ue}),Te===Fe.length-1?_e(-1):_e(1))},Ke=(Ie,Ue)=>{Ze(!0),Ue.button===1&&He(Ie,Ue)},Ne=Ie=>{const{code:Ue}=Ie,Te=d&&U,qe=Fe[0],Je=Fe[Fe.length-1];switch(Ue){case"ArrowLeft":{U&&_e(Te?1:-1);break}case"ArrowRight":{U&&_e(Te?-1:1);break}case"ArrowUp":{Ie.preventDefault(),U||_e(-1);break}case"ArrowDown":{Ie.preventDefault(),U||_e(1);break}case"Home":{Ie.preventDefault(),je(qe);break}case"End":{Ie.preventDefault(),je(Je);break}case"Enter":case"Space":{Ie.preventDefault(),v(Pe??c,Ie);break}case"Backspace":case"Delete":{He(Pe,Ie);break}}},Ce={};U?Ce.marginInlineStart=y:Ce.marginTop=y;const Ye=E.map((Ie,Ue)=>{const{key:Te}=Ie;return l.createElement(lq,{id:a,prefixCls:$,key:Te,tab:Ie,className:w?.item,style:Ue===0?R?.item:{...Ce,...R?.item},closable:Ie.closable,editable:m,active:Te===c,focus:Te===Pe,renderWrapper:b,removeAriaLabel:g?.removeAriaLabel,tabCount:Fe.length,currentPosition:Ue+1,onClick:qe=>{v(Te,qe)},onKeyDown:Ne,onFocus:()=>{Be||je(Te),Me(Te),xe(),D.current&&(d||(D.current.scrollLeft=0),D.current.scrollTop=0)},onBlur:()=>{je(void 0)},onMouseDown:qe=>Ke(Te,qe),onMouseUp:()=>{Ze(!1)}})}),et=()=>Z(()=>{const Ie=new Map,Ue=j.current?.getBoundingClientRect();return E.forEach(({key:Te})=>{const qe=j.current?.querySelector(`[data-node-key="${UN(Te)}"]`);if(qe){const[Je,ot,ft,Lt]=sq(qe,Ue);Ie.set(Te,{width:Je,height:ot,left:ft,top:Lt})}}),Ie});l.useEffect(()=>{et()},[E.map(Ie=>Ie.key).join("_")]);const Le=YN(()=>{const Ie=cs(T),Ue=cs(N),Te=cs(O);I([Ie[0]-Ue[0]-Te[0],Ie[1]-Ue[1]-Te[1]]);const qe=cs(V);A(qe);const Je=cs(B);q(Je);const ot=cs(j);L([ot[0]-qe[0],ot[1]-qe[1]]),et()}),Ge=E.slice(0,ue),Re=E.slice(ve+1),Xe=[...Ge,...Re],tt=J.get(c),{style:at}=ZU({activeTabOffset:tt,horizontal:U,indicator:C,rtl:d});l.useEffect(()=>{Me()},[c,ae,fe,mR(tt),mR(J),U]),l.useEffect(()=>{Le()},[d]);const bt=!!Xe.length,ht=`${$}-nav-wrap`;let xt,ke,Qe,ze;return U?d?(ke=G>0,xt=G!==fe):(xt=G<0,ke=G!==ae):(Qe=_<0,ze=_!==ae),l.createElement(oo,{onResize:Le},l.createElement("div",{ref:ea(t,T),role:"tablist","aria-orientation":U?"horizontal":"vertical",className:Q(`${$}-nav`,n,w?.header),style:{...R?.header,...r},onKeyDown:()=>{xe()}},l.createElement(pR,{ref:N,position:"left",extra:f,prefixCls:$}),l.createElement(oo,{onResize:Le},l.createElement("div",{className:Q(ht,{[`${ht}-ping-left`]:xt,[`${ht}-ping-right`]:ke,[`${ht}-ping-top`]:Qe,[`${ht}-ping-bottom`]:ze}),ref:D},l.createElement(oo,{onResize:Le},l.createElement("div",{ref:j,className:`${$}-nav-list`,style:{transform:`translate(${G}px, ${_}px)`,transition:ye?"none":void 0}},Ye,l.createElement(qN,{ref:V,prefixCls:$,locale:g,editable:m,style:{...Ye.length===0?void 0:Ce,visibility:bt?"hidden":null}}),l.createElement("div",{className:Q(`${$}-ink-bar`,w?.indicator,{[`${$}-ink-bar-animated`]:s.inkBar}),style:{...at,...R?.indicator}}))))),l.createElement(iq,O0({},e,{removeAriaLabel:g?.removeAriaLabel,ref:B,prefixCls:$,tabs:Xe,className:!bt&&me,popupStyle:R?.popup,tabMoving:!!ye})),l.createElement(pR,{ref:O,position:"right",extra:f,prefixCls:$})))}),cq=({renderTabBar:e,...t})=>e?e(t,gR):l.createElement(gR,t),uq=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,id:s,active:c,tabKey:d,children:f}=e,m=l.Children.count(f)>0;return l.createElement("div",{id:s&&`${s}-panel-${d}`,role:"tabpanel",tabIndex:c&&m?0:-1,"aria-labelledby":s&&`${s}-tab-${d}`,"aria-hidden":!c,style:a,className:Q(n,c&&`${n}-active`,r),ref:t},f)});function mp(){return mp=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},mp.apply(this,arguments)}const dq=e=>{const{id:t,activeKey:n,animated:r,tabPosition:a,destroyOnHidden:s,contentStyle:c,contentClassName:d}=e,{prefixCls:f,tabs:m}=l.useContext(M1),g=r.tabPane,h=`${f}-tabpane`;return l.createElement("div",{className:Q(`${f}-content-holder`)},l.createElement("div",{className:Q(`${f}-content`,`${f}-content-${a}`,{[`${f}-content-animated`]:g})},m.map(y=>{const{key:b,forceRender:v,style:x,className:C,destroyOnHidden:w,...R}=y,$=b===n;return l.createElement(vr,mp({key:b,visible:$,forceRender:v,removeOnLeave:!!(s??w),leavedClassName:`${h}-hidden`},r.tabPaneMotion),({style:E,className:T},N)=>l.createElement(uq,mp({},R,{prefixCls:h,id:t,tabKey:b,animated:g,active:$,style:{...c,...x,...E},className:Q(d,C,T),ref:N})))})))};function fq(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 hu(){return hu=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},hu.apply(this,arguments)}let hR=0;const mq=l.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:a,items:s,direction:c,activeKey:d,defaultActiveKey:f,editable:m,animated:g,tabPosition:h="top",tabBarGutter:y,tabBarStyle:b,tabBarExtraContent:v,locale:x,more:C,destroyOnHidden:w,renderTabBar:R,onChange:$,onTabClick:E,onTabScroll:T,getPopupContainer:N,popupClassName:O,indicator:D,classNames:j,styles:B,...V}=e,U=l.useMemo(()=>(s||[]).filter(J=>J&&typeof J=="object"&&"key"in J),[s]),G=c==="rtl",Y=fq(g),[_,H]=l.useState(!1);l.useEffect(()=>{H(QU())},[]);const[F,I]=Yt(f??U[0]?.key,d),[z,L]=l.useState(()=>U.findIndex(J=>J.key===F));l.useEffect(()=>{let J=U.findIndex(re=>re.key===F);J===-1&&(J=Math.max(0,Math.min(z,U.length-1)),I(U[J]?.key)),L(J)},[U.map(J=>J.key).join("_"),F,z]);const[P,A]=Yt(null,n);l.useEffect(()=>{n||(A(`rc-tabs-${hR}`),hR+=1)},[]);function k(J,re){E?.(J,re);const ie=J!==F;I(J),ie&&$?.(J)}const q={id:P,activeKey:F,animated:Y,tabPosition:h,rtl:G,mobile:_},K={...q,editable:m,locale:x,more:C,tabBarGutter:y,onTabClick:k,onTabScroll:T,extra:v,style:b,getPopupContainer:N,popupClassName:Q(O,j?.popup),indicator:D,styles:B,classNames:j},Z=l.useMemo(()=>({tabs:U,prefixCls:r}),[U,r]);return l.createElement(M1.Provider,{value:Z},l.createElement("div",hu({ref:t,id:n,className:Q(r,`${r}-${h}`,{[`${r}-mobile`]:_,[`${r}-editable`]:m,[`${r}-rtl`]:G},a)},V),l.createElement(cq,hu({},K,{renderTabBar:R})),l.createElement(dq,hu({destroyOnHidden:w},q,{contentStyle:B?.content,contentClassName:j?.content,animated:Y}))))}),pq={motionAppear:!1,motionEnter:!0,motionLeave:!0};function gq(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={...pq,motionName:Zo(e,"switch")}),n}function hq(e){return e.filter(t=>t)}function yq(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=fr(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:s}=r,{tab:c,...d}=s||{};return{key:String(a),...d,label:c}}return null});return hq(n)}const bq=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}`}}}}},[Jo(e,"slide-up"),Jo(e,"slide-down")]]},vq=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,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)`]:jo(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:te(a)}}}},[`&${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(a)}}},[`&${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}}}}}}},Sq=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Jt(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"}}}}}}},Cq=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:s,verticalItemMargin:c,motionDurationSlow:d,calc:f}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${te(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(m=>`${m} ${d}`).join(", ")}},[`${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,
|
|
285
|
+
> 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:f(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","top"].map(m=>`${m} ${d}`).join(", ")}},[`${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(f(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:f(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}}}}}},xq=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,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:a,minHeight:a}},[`&${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}}}}}},$q=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:s,horizontalItemPadding:c,itemSelectedColor:d,itemColor:f}=e,m=`${t}-tab`;return{[m]:{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}`,[`${m}-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},...wo(e)},"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:d},[`&${m}-focus ${m}-btn:focus-visible`]:jo(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:s}}}},wq=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Eq=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:s,itemActiveColor:c,colorBorderSecondary:d}=e;return{[t]:{...Jt(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:a},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},...wo(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...$q(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...wo(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"}}}}}},Mq=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:s}=e,c=t||s,d=n||a,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}},Rq=Pt("Tabs",e=>{const t=Nt(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[xq(t),wq(t),Cq(t),Sq(t),vq(t),Eq(t),bq(t)]},Mq),Tq=()=>null,Oq=l.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:a,size:s,onEdit:c,hideAdd:d,centered:f,addIcon:m,removeIcon:g,moreIcon:h,more:y,popupClassName:b,children:v,items:x,animated:C,style:w,indicatorSize:R,indicator:$,classNames:E,styles:T,destroyInactiveTabPane:N,destroyOnHidden:O,tabPlacement:D,tabPosition:j,...B}=e,{prefixCls:V}=B,{getPrefixCls:U,direction:G,getPopupContainer:Y,className:_,style:H,classNames:F,styles:I}=Rt("tabs"),{tabs:z}=l.useContext(dt),L=U("tabs",V),P=ir(L),[A,k]=Rq(L,P),q=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:q.current}));let K;n==="editable-card"&&(K={onEdit:(ae,{key:fe,event:ge})=>{c?.(ae==="add"?ge:fe,ae)},removeIcon:g??z?.removeIcon??l.createElement(Ur,null),addIcon:(m??z?.addIcon)||l.createElement(fp,null),showAdd:d!==!0});const Z=U(),J=pr(s),re=yq(x,v),ie=gq(L,C),ne={align:$?.align??z?.indicator?.align,size:$?.size??R??z?.indicator?.size??z?.indicatorSize},le=l.useMemo(()=>{const ae=D??j??void 0,fe=G==="rtl";switch(ae){case"start":return fe?"right":"left";case"end":return fe?"left":"right";default:return ae}},[D,j,G]),se={...e,size:J,tabPlacement:le,items:re},[ce,me]=Bt([F,E],[I,T],{props:se},{popup:{_default:"root"}});return l.createElement(mq,{ref:q,direction:G,getPopupContainer:Y,...B,items:re,className:Q({[`${L}-${J}`]:J,[`${L}-card`]:["card","editable-card"].includes(n),[`${L}-editable-card`]:n==="editable-card",[`${L}-centered`]:f},_,r,a,ce.root,A,k,P),classNames:{...ce,popup:Q(b,A,k,P,ce.popup?.root)},styles:me,style:{...me.root,...H,...w},editable:K,more:{icon:z?.more?.icon??z?.moreIcon??h??l.createElement(m1,null),transitionName:`${Z}-slide-up`,...y},prefixCls:L,animated:ie,indicator:ne,destroyOnHidden:O??N,tabPosition:le})}),T1=Oq;T1.TabPane=Tq;const GN=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{const{getPrefixCls:a}=l.useContext(dt),s=a("card",e),c=Q(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return l.createElement("div",{...r,className:c})},Nq=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:s}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${te(a)}`,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`,...al(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...$o,[`
|
|
286
|
+
> ${n}-typography,
|
|
287
|
+
> ${n}-typography-edit-content
|
|
288
|
+
`]:{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}`}}}},Iq=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
289
|
+
${te(a)} 0 0 0 ${n},
|
|
290
|
+
0 ${te(a)} 0 0 ${n},
|
|
291
|
+
${te(a)} ${te(a)} 0 0 ${n},
|
|
292
|
+
${te(a)} 0 0 0 ${n} inset,
|
|
293
|
+
0 ${te(a)} 0 0 ${n} inset;
|
|
294
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Pq=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,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)}`,...al(),"& > 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:a,lineHeight:te(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`}}}},zq=e=>({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...al(),"&-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}}),Aq=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(a)}`}}},Dq=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},jq=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:s,bodyPadding:c,extraColor:d,motionDurationMid:f}=e;return{[t]:{...Jt(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:Nq(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)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:Iq(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Pq(e),[`${t}-meta`]:zq(e)},[`${t}-bordered`]:{border:`${te(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(m=>`${m} ${f}`).join(", "),"&: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`]:Aq(e),[`${t}-loading`]:Dq(e),[`${t}-rtl`]:{direction:"rtl"}}},_q=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,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"}}}}},Hq=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}),Bq=Pt("Card",e=>{const t=Nt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[jq(t),_q(t)]},Hq),Lq=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,s)=>{const c=`action-${s}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:c},l.createElement("span",null,a))}))},Vq=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:s,extra:c,headStyle:d={},bodyStyle:f={},title:m,loading:g,bordered:h,variant:y,size:b,type:v,cover:x,actions:C,tabList:w,children:R,activeTabKey:$,defaultActiveTabKey:E,tabBarExtraContent:T,hoverable:N,tabProps:O={},classNames:D,styles:j,...B}=e,{getPrefixCls:V,direction:U,className:G,style:Y,classNames:_,styles:H}=Rt("card"),[F]=Ls("card",y,h),I=pr(b),z={...e,size:I,variant:F,loading:g},[L,P]=Bt([_,D],[H,j],{props:z}),A=ue=>{e.onTabChange?.(ue)},k=l.useMemo(()=>fr(R).some(ve=>l.isValidElement(ve)&&ve.type===GN),[R]),q=V("card",n),[K,Z]=Bq(q),J=l.createElement(Si,{loading:!0,active:!0,paragraph:{rows:4},title:!1},R),re=$!==void 0,ie={...O,[re?"activeKey":"defaultActiveKey"]:re?$:E,tabBarExtraContent:T};let ne;const le=!I||I==="default"?"large":I,se=w?l.createElement(T1,{size:le,...ie,className:`${q}-head-tabs`,onChange:A,items:w.map(({tab:ue,...ve})=>({label:ue,...ve}))}):null;if(m||c||se){const ue=Q(`${q}-head`,L.header),ve=Q(`${q}-head-title`,L.title),Me=Q(`${q}-extra`,L.extra),Pe={...d,...P.header};ne=l.createElement("div",{className:ue,style:Pe},l.createElement("div",{className:`${q}-head-wrapper`},m&&l.createElement("div",{className:ve,style:P.title},m),c&&l.createElement("div",{className:Me,style:P.extra},c)),se)}const ce=Q(`${q}-cover`,L.cover),me=x?l.createElement("div",{className:ce,style:P.cover},x):null,ae=Q(`${q}-body`,L.body),fe={...f,...P.body},ge=l.createElement("div",{className:ae,style:fe},g?J:R),he=Q(`${q}-actions`,L.actions),ye=C?.length?l.createElement(Lq,{actionClasses:he,actionStyle:P.actions,actions:C}):null,Ae=rn(B,["onTabChange"]),xe=Q(q,G,{[`${q}-loading`]:g,[`${q}-bordered`]:F!=="borderless",[`${q}-hoverable`]:N,[`${q}-contain-grid`]:k,[`${q}-contain-tabs`]:w?.length,[`${q}-${I}`]:I,[`${q}-type-${v}`]:!!v,[`${q}-rtl`]:U==="rtl"},r,a,K,Z,L.root),Se={...P.root,...Y,...s};return l.createElement("div",{ref:t,...Ae,className:xe,style:Se},ne,me,ge,ye)}),Fq=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:s,style:c,classNames:d,styles:f,...m}=e,{getPrefixCls:g,className:h,style:y,classNames:b,styles:v}=Rt("cardMeta"),C=`${g("card",t)}-meta`,[w,R]=Bt([b,d],[v,f],{props:e}),$=Q(C,n,h,w.root),E={...y,...R.root,...c},T=Q(`${C}-avatar`,w.avatar),N=Q(`${C}-title`,w.title),O=Q(`${C}-description`,w.description),D=Q(`${C}-section`,w.section),j=r?l.createElement("div",{className:T,style:R.avatar},r):null,B=a?l.createElement("div",{className:N,style:R.title},a):null,V=s?l.createElement("div",{className:O,style:R.description},s):null,U=B||V?l.createElement("div",{className:D,style:R.section},B,V):null;return l.createElement("div",{...m,className:$,style:E},j,U)},Oa=Vq;Oa.Grid=GN;Oa.Meta=Fq;function kq(e,t,n){var r=n||{},a=r.noTrailing,s=a===void 0?!1:a,c=r.noLeading,d=c===void 0?!1:c,f=r.debounceMode,m=f===void 0?void 0:f,g,h=!1,y=0;function b(){g&&clearTimeout(g)}function v(C){var w=C||{},R=w.upcomingOnly,$=R===void 0?!1:R;b(),h=!$}function x(){for(var C=arguments.length,w=new Array(C),R=0;R<C;R++)w[R]=arguments[R];var $=this,E=Date.now()-y;if(h)return;function T(){y=Date.now(),t.apply($,w)}function N(){g=void 0}!d&&m&&!g&&T(),b(),m===void 0&&E>e?d?(y=Date.now(),s||(g=setTimeout(m?N:T,e))):T():s!==!0&&(g=setTimeout(m?N:T,m===void 0?e-E:e))}return x.cancel=v,x}function Wq(e,t,n){var r={},a=r.atBegin,s=a===void 0?!1:a;return kq(e,t,{debounceMode:s!==!1})}const Yq=e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,a=`${t}-wrapper`;return[{[`${t}-group`]:{...Jt(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[a]:{...Jt(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${a}`]:{marginInlineStart:0},[`&${a}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...Jt(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).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}`},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:jo(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
295
|
+
${a}:not(${a}-disabled),
|
|
296
|
+
${t}:not(${t}-disabled)
|
|
297
|
+
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${a}:not(${a}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[`${t}-checked`]:{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}`},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{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":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${a}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function Uq(e,t){const n=Nt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return Yq(n)}const XN=Pt("Checkbox",(e,{prefixCls:t})=>[Uq(t,e)]),KN=oe.createContext(null),qq=(e,t)=>{const{prefixCls:n,children:r,indeterminate:a=!1,onMouseEnter:s,onMouseLeave:c,skipGroup:d=!1,disabled:f,rootClassName:m,className:g,style:h,classNames:y,styles:b,name:v,value:x,checked:C,defaultChecked:w,onChange:R,...$}=e,{getPrefixCls:E,direction:T,className:N,style:O,classNames:D,styles:j}=Rt("checkbox"),B=l.useContext(KN),{isFormItemInput:V}=l.useContext(Tr),U=l.useContext(Wr),G=(B?.disabled||f)??U,[Y,_]=Yt(w,C);let H=Y;const F=ct(se=>{_(se.target.checked),R?.(se),!d&&B?.toggleOption&&B.toggleOption({label:r,value:x})});B&&!d&&(H=B.value.includes(x));const I=l.useRef(null),z=ea(t,I);l.useEffect(()=>{if(!(d||!B))return B.registerValue(x),()=>{B.cancelValue(x)}},[x,d]),l.useEffect(()=>{I.current?.input&&(I.current.input.indeterminate=a)},[a]);const L=E("checkbox",n),P=ir(L),[A,k]=XN(L,P),q={...$},K={...e,indeterminate:a,disabled:G,checked:H},[Z,J]=Bt([D,y],[j,b],{props:K}),re=Q(`${L}-wrapper`,{[`${L}-rtl`]:T==="rtl",[`${L}-wrapper-checked`]:H,[`${L}-wrapper-disabled`]:G,[`${L}-wrapper-in-form-item`]:V},N,g,Z.root,m,k,P,A),ie=Q(Z.icon,{[`${L}-indeterminate`]:a},gd,A),[ne,le]=MN(q.onClick);return l.createElement(hd,{component:"Checkbox",disabled:G},l.createElement("label",{className:re,style:{...J.root,...O,...h},onMouseEnter:s,onMouseLeave:c,onClick:ne},l.createElement(EN,{...q,name:!d&&B?B.name:v,checked:H,onClick:le,onChange:F,prefixCls:L,className:ie,style:J.icon,disabled:G,ref:z,value:x}),Mr(r)&&l.createElement("span",{className:Q(`${L}-label`,Z.label),style:J.label},r)))},QN=l.forwardRef(qq),Gq=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:s,className:c,rootClassName:d,style:f,onChange:m,role:g="group",...h}=e,{getPrefixCls:y,direction:b}=l.useContext(dt),[v,x]=l.useState(h.value||n||[]),[C,w]=l.useState([]);l.useEffect(()=>{"value"in h&&x(h.value||[])},[h.value]);const R=l.useMemo(()=>a.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_),[a]),$=_=>{w(H=>H.filter(F=>F!==_))},E=_=>{w(H=>[].concat($n(H),[_]))},T=_=>{const H=v.indexOf(_.value),F=$n(v);H===-1?F.push(_.value):F.splice(H,1),"value"in h||x(F),m?.(F.filter(I=>C.includes(I)).sort((I,z)=>{const L=R.findIndex(A=>A.value===I),P=R.findIndex(A=>A.value===z);return L-P}))},N=y("checkbox",s),O=`${N}-group`,D=ir(N),[j,B]=XN(N,D),V=rn(h,["value","disabled"]),U=a.length?R.map(_=>l.createElement(QN,{prefixCls:N,key:_.value.toString(),disabled:"disabled"in _?_.disabled:h.disabled,value:_.value,checked:v.includes(_.value),onChange:_.onChange,className:Q(`${O}-item`,_.className),style:_.style,title:_.title,id:_.id,required:_.required},_.label)):r,G=l.useMemo(()=>({toggleOption:T,value:v,disabled:h.disabled,name:h.name,registerValue:E,cancelValue:$}),[T,v,h.disabled,h.name,E,$]),Y=Q(O,{[`${O}-rtl`]:b==="rtl"},c,d,B,D,j);return l.createElement("div",{className:Y,style:f,role:g,...V,ref:t},l.createElement(KN.Provider,{value:G},U))}),zs=QN;zs.Group=Gq;zs.__ANT_CHECKBOX=!0;const ZN=l.createContext({}),Xq=e=>typeof e=="number"&&!Number.isNaN(e);function yR(e){return e==="auto"?"1 1 auto":Xq(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Kq=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{gutter:a,wrap:s}=l.useContext(ZN),{prefixCls:c,span:d,order:f,offset:m,push:g,pull:h,className:y,children:b,flex:v,style:x,...C}=e,w=n("col",c),R=n(),[$,E]=AH(w),[T]=Ut(R,"col"),N={};let O={};$9.forEach(B=>{let V={};const U=e[B];typeof U=="number"?V.span=U:typeof U=="object"&&(V=U||{}),delete C[B],O={...O,[`${w}-${B}-${V.span}`]:V.span!==void 0,[`${w}-${B}-order-${V.order}`]:V.order||V.order===0,[`${w}-${B}-offset-${V.offset}`]:V.offset||V.offset===0,[`${w}-${B}-push-${V.push}`]:V.push||V.push===0,[`${w}-${B}-pull-${V.pull}`]:V.pull||V.pull===0,[`${w}-rtl`]:r==="rtl"},V.flex&&(O[`${w}-${B}-flex`]=!0,N[T(`${B}-flex`)]=yR(V.flex))});const D=Q(w,{[`${w}-${d}`]:d!==void 0,[`${w}-order-${f}`]:f,[`${w}-offset-${m}`]:m,[`${w}-push-${g}`]:g,[`${w}-pull-${h}`]:h},y,O,$,E),j={};if(a?.[0]){const B=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;j.paddingInline=B}return v&&(j.flex=yR(v),s===!1&&!j.minWidth&&(j.minWidth=0)),l.createElement("div",{...C,style:{...j,...x,...N},className:D,ref:t},b)});function Qq(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((s,c)=>{if(typeof s=="object"&&s!==null)for(let d=0;d<Ea.length;d++){const f=Ea[d];if(a[f]&&s[f]!==void 0){n[c]=s[f];break}}else n[c]=s}),n}function bR(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let s=0;s<Ea.length;s++){const c=Ea[s];if(!t||!t[c])continue;const d=e[c];if(d!==void 0){r(d);return}}};return l.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const Zq=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:s,style:c,children:d,gutter:f=0,wrap:m,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(dt),b=Lp(!0,null),v=bR(a,b),x=bR(r,b),C=h("row",n),[w,R]=zH(C),$=Qq(f,b),E=Q(C,{[`${C}-no-wrap`]:m===!1,[`${C}-${x}`]:x,[`${C}-${v}`]:v,[`${C}-rtl`]:y==="rtl"},s,w,R),T={};if($?.[0]){const j=typeof $[0]=="number"?`${$[0]/-2}px`:`calc(${$[0]} / -2)`;T.marginInline=j}const[N,O]=$;T.rowGap=O;const D=l.useMemo(()=>({gutter:[N,O],wrap:m}),[N,O,m]);return l.createElement(ZN.Provider,{value:D},l.createElement("div",{...g,className:E,style:{...T,...c},ref:t},d))}),Jq=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},eG=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:s,orientationMargin:c,verticalMarginInline:d}=e,f=`${t}-rail`;return{[t]:{...Jt(e),borderBlockStart:`${te(a)} solid ${r}`,[f]:{borderBlockStart:`${te(a)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${te(a)} 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(a)} 0 0`,[f]:{borderBlockStart:`${te(a)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${f}-start, ${f}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${te(a)} 0 0`,[f]:{borderBlockStart:`${te(a)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${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}}}}},tG=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),nG=Pt("Divider",e=>{const t=Nt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[eG(t),Jq(t)]},tG,{unitless:{orientationMargin:!0}}),rG=["left","right","center","start","end"],oG={small:"sm",middle:"md"},ui=e=>{const{getPrefixCls:t,direction:n,className:r,style:a,classNames:s,styles:c}=Rt("divider"),{prefixCls:d,type:f,orientation:m,vertical:g,titlePlacement:h,orientationMargin:y,className:b,rootClassName:v,children:x,dashed:C,variant:w="solid",plain:R,style:$,size:E,classNames:T,styles:N,...O}=e,D=t("divider",d),j=`${D}-rail`,[B,V]=nG(D),U=pr(E),G=oG[U],Y=!!x,_=rG.includes(m||""),H=l.useMemo(()=>{const J=h??(_?m:"center");return J==="left"?n==="rtl"?"end":"start":J==="right"?n==="rtl"?"start":"end":J},[n,m,h,_]),F=H==="start"&&y!=null,I=H==="end"&&y!=null,[z,L]=ud(m,g,f),P={...e,orientation:z,titlePlacement:H,size:U},[A,k]=Bt([s,T],[c,N],{props:P}),q=Q(D,r,B,V,`${D}-${z}`,{[`${D}-with-text`]:Y,[`${D}-with-text-${H}`]:Y,[`${D}-dashed`]:!!C,[`${D}-${w}`]:w!=="solid",[`${D}-plain`]:!!R,[`${D}-rtl`]:n==="rtl",[`${D}-no-default-orientation-margin-start`]:F,[`${D}-no-default-orientation-margin-end`]:I,[`${D}-${G}`]:!!G,[j]:!x,[A.rail]:A.rail&&!x},b,v,A.root),K=l.useMemo(()=>typeof y=="number"?y:/^\d+$/.test(y)?Number(y):y,[y]),Z={marginInlineStart:F?K:void 0,marginInlineEnd:I?K:void 0};return l.createElement("div",{className:q,style:{...a,...k.root,...x?{}:k.rail,...$},...O,role:"separator"},x&&!L&&l.createElement(l.Fragment,null,l.createElement("div",{className:Q(j,`${j}-start`,A.rail),style:k.rail}),l.createElement("span",{className:Q(`${D}-inner-text`,A.content),style:{...Z,...k.content}},x),l.createElement("div",{className:Q(j,`${j}-end`,A.rail),style:k.rail})))},vR=(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}},Go=e=>e!==void 0?`${e}px`:void 0;function aG(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:a,motionName:s,onMotionStart:c,onMotionEnd:d,direction:f,vertical:m=!1}=e,g=l.useRef(null),[h,y]=l.useState(r),b=O=>{const D=a(O),j=n.current?.querySelectorAll(`.${t}-item`)[D];return j?.offsetParent&&j},[v,x]=l.useState(null),[C,w]=l.useState(null);It(()=>{if(h!==r){const O=b(h),D=b(r),j=vR(O,m),B=vR(D,m);y(r),x(j),w(B),O&&D?c():d()}},[r]);const R=l.useMemo(()=>Go(m?v?.top??0:f==="rtl"?-v?.right:v?.left),[m,f,v]),$=l.useMemo(()=>Go(m?C?.top??0:f==="rtl"?-C?.right:C?.left),[m,f,C]),E=()=>m?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},T=()=>m?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},N=()=>{x(null),w(null),d()};return!v||!C?null:l.createElement(vr,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:E,onAppearActive:T,onVisibleChanged:N},({className:O,style:D},j)=>{const B={...D,"--thumb-start-left":R,"--thumb-start-width":Go(v?.width),"--thumb-active-left":$,"--thumb-active-width":Go(C?.width),"--thumb-start-top":R,"--thumb-start-height":Go(v?.height),"--thumb-active-top":$,"--thumb-active-height":Go(C?.height)},V={ref:mr(g,j),style:B,className:Q(`${t}-thumb`,O)};return l.createElement("div",V)})}function iG(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function lG(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=iG(t);return{...t,title:n}}return{label:t?.toString(),title:t?.toString(),value:t}})}const sG=({prefixCls:e,className:t,style:n,styles:r,classNames:a,data:s,disabled:c,checked:d,label:f,title:m,value:g,name:h,onChange:y,onFocus:b,onBlur:v,onKeyDown:x,onKeyUp:C,onMouseDown:w,itemRender:R=$=>$})=>{const $=T=>{c||y(T,g)},E=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:$,onFocus:b,onBlur:v,onKeyDown:x,onKeyUp:C}),l.createElement("div",{className:Q(`${e}-item-label`,a?.label),title:m,style:r?.label},f));return R(E,{item:s})},cG=l.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:a,options:s=[],disabled:c,defaultValue:d,value:f,name:m,onChange:g,className:h="",style:y,styles:b,classNames:v,motionName:x="thumb-motion",itemRender:C,...w}=e,R=l.useRef(null),$=l.useMemo(()=>mr(R,t),[R,t]),E=l.useMemo(()=>lG(s),[s]),[T,N]=Yt(d??E[0]?.value,f),[O,D]=l.useState(!1),j=(A,k)=>{N(k),g?.(k)},B=rn(w,["children"]),[V,U]=l.useState(!1),[G,Y]=l.useState(!1),_=()=>{Y(!0)},H=()=>{Y(!1)},F=()=>{U(!1)},I=A=>{A.key==="Tab"&&U(!0)},z=A=>{const k=E.findIndex(J=>J.value===T),q=E.length,K=(k+A+q)%q,Z=E[K];Z&&(N(Z.value),g?.(Z.value))},L=A=>{switch(A.key){case"ArrowLeft":case"ArrowUp":z(-1);break;case"ArrowRight":case"ArrowDown":z(1);break}},P=A=>{const{value:k,disabled:q}=A;return l.createElement(sG,Xn({},A,{name:m,data:A,itemRender:C,key:k,prefixCls:n,className:Q(A.className,`${n}-item`,v?.item,{[`${n}-item-selected`]:k===T&&!O,[`${n}-item-focused`]:G&&V&&k===T}),style:b?.item,classNames:v,styles:b,checked:k===T,onChange:j,onFocus:_,onBlur:H,onKeyDown:L,onKeyUp:I,onMouseDown:F,disabled:!!c||!!q}))};return l.createElement("div",Xn({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,"aria-orientation":a?"vertical":"horizontal",style:y},B,{className:Q(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:c,[`${n}-vertical`]:a},h),ref:$}),l.createElement("div",{className:`${n}-group`},l.createElement(aG,{vertical:a,prefixCls:n,value:T,containerRef:R,motionName:`${n}-${x}`,direction:r,getValueIndex:A=>E.findIndex(k=>k.value===A),onMotionStart:()=>{D(!0)},onMotionEnd:()=>{D(!1)}}),E.map(P)))}),uG=cG;function SR(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function CR(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const dG={overflow:"hidden",...$o},fG=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:a}=e,s=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),c=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),d=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Jt(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${a}`,...wo(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 ${a}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...CR(e),color:e.itemSelectedColor},"&-focused":jo(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(f=>`${f} ${a}`).join(", ")},[`&: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:s,lineHeight:te(s),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,...dG},"&-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`]:{...CR(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:c,lineHeight:te(c),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:d,lineHeight:te(d),padding:`0 ${te(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...SR(`&-disabled ${t}-item`,e),...SR(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(f=>`${f} ${n} ${r}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},mG=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:s,lineWidthBold:c,colorBgLayout:d}=e;return{trackPadding:c,trackBg:d,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:s,itemSelectedColor:n}},pG=Pt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Nt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return fG(r)},mG);function gG(e){return typeof e=="object"&&!!e?.icon}const hG=l.forwardRef((e,t)=>{const n=Ho(),{prefixCls:r,className:a,rootClassName:s,block:c,options:d=[],size:f="middle",style:m,vertical:g,orientation:h,shape:y="default",name:b=n,styles:v,classNames:x,...C}=e,{getPrefixCls:w,direction:R,className:$,style:E,classNames:T,styles:N}=Rt("segmented"),O={...e,options:d,size:f,shape:y},[D,j]=Bt([T,x],[N,v],{props:O}),B=w("segmented",r),[V,U]=pG(B),G=pr(f),Y=l.useMemo(()=>d.map(z=>{if(gG(z)){const{icon:L,label:P,...A}=z;return{...A,label:l.createElement(l.Fragment,null,l.createElement("span",{className:Q(`${B}-item-icon`,D.icon),style:j.icon},L),P&&l.createElement("span",null,P))}}return z}),[d,B,D.icon,j.icon]),[,_]=ud(h,g),H=Q(a,s,$,D.root,{[`${B}-block`]:c,[`${B}-sm`]:G==="small",[`${B}-lg`]:G==="large",[`${B}-vertical`]:_,[`${B}-shape-${y}`]:y==="round"},V,U),F={...j.root,...E,...m},I=(z,{item:L})=>{if(!L.tooltip)return z;const P=typeof L.tooltip=="object"?L.tooltip:{title:L.tooltip};return l.createElement(dr,{...P},z)};return l.createElement(uG,{...C,name:b,className:H,style:F,classNames:D,styles:j,itemRender:I,options:Y,ref:t,prefixCls:B,direction:R,vertical:_})}),yG=hG,bG=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:s,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:f,borderRadiusSM:m,colorBgContainerDisabled:g,lineWidth:h,antCls:y}=e,[b,v]=Ut(y,"space");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:m,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}},{[b("addon-border-color")]:a,[b("addon-background")]:g,[b("addon-border-color-outlined")]:a,[b("addon-background-filled")]:g,borderColor:v("addon-border-color"),background:v("addon-background"),"&-variant-outlined":{[b("addon-border-color")]:v("addon-border-color-outlined")},"&-variant-filled":{[b("addon-border-color")]:"transparent",[b("addon-background")]:v("addon-background-filled"),[`&${t}-disabled`]:{[b("addon-border-color")]:a,[b("addon-background")]:g}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[b("addon-border-color-outlined")]:e.colorError,[b("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[b("addon-border-color-outlined")]:e.colorWarning,[b("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},vG=Pt(["Space","Addon"],e=>[bG(e),bd(e,{focus:!1})]),SG=oe.forwardRef((e,t)=>{const{className:n,children:r,style:a,prefixCls:s,variant:c="outlined",disabled:d,status:f,...m}=e,{getPrefixCls:g,direction:h}=oe.useContext(dt),y=g("space-addon",s),[b,v]=vG(y),{compactItemClassnames:x,compactSize:C}=Ia(y,h),w=ll(y,f),R=Q(y,b,x,v,`${y}-variant-${c}`,w,{[`${y}-${C}`]:C,[`${y}-disabled`]:d},n);return oe.createElement("div",{ref:t,className:R,style:a,...m},r)});function CG(e){return!!(e.addonBefore||e.addonAfter)}function xG(e){return!!(e.prefix||e.suffix||e.allowClear)}function xR(e,t,n){const r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...s)=>{t.setSelectionRange(...s)},a}function pp(e,t,n,r){if(!n)return;let a=t;if(t.type==="click"){a=xR(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=xR(t,e,r),n(a);return}n(a)}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 JN=oe.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:a,prefix:s,suffix:c,addonBefore:d,addonAfter:f,className:m,style:g,disabled:h,readOnly:y,focused:b,triggerFocus:v,allowClear:x,value:C,handleReset:w,hidden:R,classes:$,classNames:E,dataAttrs:T,styles:N,components:O,onClear:D}=e,j=r??n,B=O?.affixWrapper||"span",V=O?.groupWrapper||"span",U=O?.wrapper||"span",G=O?.groupAddon||"span",Y=l.useRef(null),_=z=>{Y.current?.contains(z.target)&&v?.()},H=xG(e);let F=l.cloneElement(j,{value:C,className:Q(j.props?.className,!H&&E?.variant)||null});const I=l.useRef(null);if(oe.useImperativeHandle(t,()=>({nativeElement:I.current||Y.current})),H){let z=null;if(x){const k=!h&&!y&&C,q=`${a}-clear-icon`,K=typeof x=="object"&&x?.clearIcon?x.clearIcon:"✖";z=oe.createElement("button",{type:"button",tabIndex:-1,onClick:Z=>{w?.(Z),D?.()},onMouseDown:Z=>Z.preventDefault(),className:Q(q,{[`${q}-hidden`]:!k,[`${q}-has-suffix`]:!!c})},K)}const L=`${a}-affix-wrapper`,P=Q(L,{[`${a}-disabled`]:h,[`${L}-disabled`]:h,[`${L}-focused`]:b,[`${L}-readonly`]:y,[`${L}-input-with-clear-btn`]:c&&x&&C},$?.affixWrapper,E?.affixWrapper,E?.variant),A=(c||x)&&oe.createElement("span",{className:Q(`${a}-suffix`,E?.suffix),style:N?.suffix},z,c);F=oe.createElement(B,N0({className:P,style:N?.affixWrapper,onClick:_},T?.affixWrapper,{ref:Y}),s&&oe.createElement("span",{className:Q(`${a}-prefix`,E?.prefix),style:N?.prefix},s),F,A)}if(CG(e)){const z=`${a}-group`,L=`${z}-addon`,P=`${z}-wrapper`,A=Q(`${a}-wrapper`,z,$?.wrapper,E?.wrapper),k=Q(P,{[`${P}-disabled`]:h},$?.group,E?.groupWrapper);F=oe.createElement(V,{className:k,ref:I},oe.createElement(U,{className:A},d&&oe.createElement(G,{className:L},d),F,f&&oe.createElement(G,{className:L},f)))}return oe.cloneElement(F,{className:Q(F.props?.className,m)||null,style:{...F.props?.style,...g},hidden:R})});function e3(e,t){return l.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...a}=n;return{...a,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:a.strategy||(s=>s.length)}},[e,t])}function gp(){return gp=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},gp.apply(this,arguments)}const $G=l.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:a,onBlur:s,onPressEnter:c,onKeyDown:d,onKeyUp:f,prefixCls:m="rc-input",disabled:g,htmlSize:h,className:y,maxLength:b,suffix:v,showCount:x,count:C,type:w="text",classes:R,classNames:$,styles:E,onCompositionStart:T,onCompositionEnd:N,...O}=e,[D,j]=l.useState(!1),B=l.useRef(!1),V=l.useRef(!1),U=l.useRef(null),G=l.useRef(null),Y=ae=>{U.current&&cO(U.current,ae)},[_,H]=Yt(e.defaultValue,e.value),F=_==null?"":String(_),[I,z]=l.useState(null),L=e3(C,x),P=L.max||b,A=L.strategy(F),k=!!P&&A>P;l.useImperativeHandle(t,()=>({focus:Y,blur:()=>{U.current?.blur()},setSelectionRange:(ae,fe,ge)=>{U.current?.setSelectionRange(ae,fe,ge)},select:()=>{U.current?.select()},input:U.current,nativeElement:G.current?.nativeElement||U.current})),l.useEffect(()=>{V.current&&(V.current=!1),j(ae=>ae&&g?!1:ae)},[g]);const q=(ae,fe,ge)=>{let he=fe;if(!B.current&&L.exceedFormatter&&L.max&&L.strategy(fe)>L.max)he=L.exceedFormatter(fe,{max:L.max}),fe!==he&&z([U.current?.selectionStart||0,U.current?.selectionEnd||0]);else if(ge.source==="compositionEnd")return;H(he),U.current&&pp(U.current,ae,r,he)};l.useEffect(()=>{I&&U.current?.setSelectionRange(...I)},[I]);const K=ae=>{q(ae,ae.target.value,{source:"change"})},Z=ae=>{B.current=!1,q(ae,ae.currentTarget.value,{source:"compositionEnd"}),N?.(ae)},J=ae=>{c&&ae.key==="Enter"&&!V.current&&!ae.nativeEvent.isComposing&&(V.current=!0,c(ae)),d?.(ae)},re=ae=>{ae.key==="Enter"&&(V.current=!1),f?.(ae)},ie=ae=>{j(!0),a?.(ae)},ne=ae=>{V.current&&(V.current=!1),j(!1),s?.(ae)},le=ae=>{H(""),Y(),U.current&&pp(U.current,ae,r)},se=k&&`${m}-out-of-range`,ce=()=>{const ae=rn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return oe.createElement("input",gp({autoComplete:n},ae,{onChange:K,onFocus:ie,onBlur:ne,onKeyDown:J,onKeyUp:re,className:Q(m,{[`${m}-disabled`]:g},$?.input),style:E?.input,ref:U,size:h,type:w,onCompositionStart:fe=>{B.current=!0,T?.(fe)},onCompositionEnd:Z}))},me=()=>{const ae=Number(P)>0;if(v||L.show){const fe=L.showFormatter?L.showFormatter({value:F,count:A,maxLength:P}):`${A}${ae?` / ${P}`:""}`;return oe.createElement(oe.Fragment,null,L.show&&oe.createElement("span",{className:Q(`${m}-show-count-suffix`,{[`${m}-show-count-has-suffix`]:!!v},$?.count),style:{...E?.count}},fe),v)}return null};return oe.createElement(JN,gp({},O,{prefixCls:m,className:Q(y,se),handleReset:le,value:F,focused:D,triggerFocus:Y,suffix:me(),disabled:g,classes:R,classNames:$,styles:E,ref:G}),ce())}),t3=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:oe.createElement(_s,null)}),t};function n3(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(a=>{a&&clearTimeout(a)})),[]),r}function wG(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const eg=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:s,disabled:c,onBlur:d,onFocus:f,suffix:m,allowClear:g,addonAfter:h,addonBefore:y,className:b,style:v,styles:x,rootClassName:C,onChange:w,classNames:R,variant:$,...E}=e,{getPrefixCls:T,direction:N,allowClear:O,autoComplete:D,className:j,style:B,classNames:V,styles:U}=Rt("input"),G=T("input",n),Y=l.useRef(null),_=ir(G),[H,F]=jN(G,C);_N(G,_);const{compactSize:I,compactItemClassnames:z}=Ia(G,N),L=pr(ye=>s??I??ye),P=oe.useContext(Wr),A=c??P,k={...e,size:L,disabled:A},[q,K]=Bt([V,R],[U,x],{props:k}),{status:Z,hasFeedback:J,feedbackIcon:re}=l.useContext(Tr),ie=Bs(Z,a),ne=wG(e)||!!J;l.useRef(ne);const le=n3(Y,!0),se=ye=>{le(),d?.(ye)},ce=ye=>{le(),f?.(ye)},me=ye=>{le(),w?.(ye)},ae=(J||m)&&oe.createElement(oe.Fragment,null,m,J&&re),fe=t3(g??O),[ge,he]=Ls("input",$,r);return oe.createElement($G,{ref:mr(t,Y),prefixCls:G,autoComplete:D,...E,disabled:A,onBlur:se,onFocus:ce,style:{...K.root,...B,...v},styles:K,suffix:ae,allowClear:fe,className:Q(b,C,F,_,z,j,q.root),onChange:me,addonBefore:y&&oe.createElement(Ta,{form:!0,space:!0},y),addonAfter:h&&oe.createElement(Ta,{form:!0,space:!0},h),classNames:{...q,input:Q({[`${G}-sm`]:L==="small",[`${G}-lg`]:L==="large",[`${G}-rtl`]:N==="rtl"},q.input,H),variant:Q({[`${G}-${ge}`]:he},ll(G,ie)),affixWrapper:Q({[`${G}-affix-wrapper-sm`]:L==="small",[`${G}-affix-wrapper-lg`]:L==="large",[`${G}-affix-wrapper-rtl`]:N==="rtl"},H),wrapper:Q({[`${G}-group-rtl`]:N==="rtl"},H),groupWrapper:Q({[`${G}-group-wrapper-sm`]:L==="small",[`${G}-group-wrapper-lg`]:L==="large",[`${G}-group-wrapper-rtl`]:N==="rtl",[`${G}-group-wrapper-${ge}`]:he},ll(`${G}-group-wrapper`,ie,J),H)}})});var EG={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 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 MG=(e,t)=>l.createElement(pt,I0({},e,{ref:t,icon:EG})),RG=l.forwardRef(MG),r3=(e,t,n,r,a,s)=>{const{classNames:c,styles:d}=Rt(e),[f,m]=Bt([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={...m,popup:{...m.popup,root:{...m.popup?.root,...a}}};return[g,h]},[f,m,r,a])};function TG(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 OG(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 o3(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=t6({...e,componentName:"DatePicker"});return[l.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),a]}const[NG,IG]=["week","WeekPicker"],[PG,zG]=["month","MonthPicker"],[AG,DG]=["year","YearPicker"],[jG,_G]=["quarter","QuarterPicker"],[O1,Jy]=["time","TimePicker"];var HG={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 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 BG=(e,t)=>l.createElement(pt,P0({},e,{ref:t,icon:HG})),a3=l.forwardRef(BG);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:"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 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 VG=(e,t)=>l.createElement(pt,z0({},e,{ref:t,icon:LG})),Td=l.forwardRef(VG),i3=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?oe.createElement(oe.Fragment,null,e===O1?oe.createElement(Td,null):oe.createElement(a3,null),t&&n):r,FG=e=>l.createElement(_t,{size:"small",type:"primary",...e});function l3(e){return l.useMemo(()=>({button:FG,...e}),[e])}const kG=e=>l.forwardRef((n,r)=>{const{prefixCls:a,getPopupContainer:s,components:c,className:d,style:f,classNames:m,styles:g,placement:h,size:y,disabled:b,bordered:v=!0,placeholder:x,status:C,variant:w,picker:R,dropdownClassName:$,popupClassName:E,popupStyle:T,rootClassName:N,suffixIcon:O,separator:D,...j}=n,B=R===O1?"timePicker":"datePicker",[V,U]=r3(B,m,g,E||$,T),G=l.useRef(null),{getPrefixCls:Y,direction:_,getPopupContainer:H,rangePicker:F}=l.useContext(dt),I=Y("picker",a),{compactSize:z,compactItemClassnames:L}=Ia(I,_),P=Y(),A=D??F?.separator,[k,q]=Ls("rangePicker",w,v),K=ir(I),[Z,J]=VN(I,K),re=Q(Z,J,K,N),[ie]=o3(n),ne=l3(c),le=pr(Se=>y??z??Se),se=l.useContext(Wr),ce=b??se,me=l.useContext(Tr),{hasFeedback:ae,status:fe,feedbackIcon:ge}=me,he=i3({picker:R,hasFeedback:ae,feedbackIcon:ge,suffixIcon:O});l.useImperativeHandle(r,()=>G.current);const[ye]=ao("Calendar",Mu),Ae=xa(ye,n.locale||{}),[xe]=vi("DatePicker",U?.popup?.root?.zIndex);return l.createElement(Ta,{space:!0},l.createElement(_Y,{separator:l.createElement("span",{"aria-label":"to",className:`${I}-separator`},A??l.createElement(RG,null)),disabled:ce,ref:G,placement:h,placeholder:OG(Ae,R,x),suffixIcon:he,prevIcon:l.createElement("span",{className:`${I}-prev-icon`}),nextIcon:l.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${P}-slide-up`,picker:R,...j,locale:Ae.lang,getPopupContainer:s||H,generateConfig:e,components:ne,direction:_,prefixCls:I,rootClassName:re,className:Q({[`${I}-${le}`]:le,[`${I}-${k}`]:q},ll(I,Bs(fe,C),ae),L,d,F?.className),style:{...F?.style,...f},classNames:V,styles:{...U,popup:{...U.popup,root:{...U.popup.root,zIndex:xe}}},allowClear:ie}))}),WG=e=>{const t=(f,m)=>{const g=m===Jy?"timePicker":"datePicker";return l.forwardRef((y,b)=>{const{prefixCls:v,getPopupContainer:x,components:C,style:w,className:R,size:$,bordered:E,placement:T,placeholder:N,disabled:O,status:D,variant:j,onCalendarChange:B,classNames:V,styles:U,dropdownClassName:G,popupClassName:Y,popupStyle:_,rootClassName:H,suffixIcon:F,...I}=y,{suffixIcon:z}=Rt(m===Jy?"timePicker":"datePicker"),{getPrefixCls:L,direction:P,getPopupContainer:A,[g]:k}=l.useContext(dt),q=L("picker",v),{compactSize:K,compactItemClassnames:Z}=Ia(q,P),J=pr(Le=>$??K??Le),re=l.useContext(Wr),ie=O??re,ne={...y,size:J,disabled:ie,status:D,variant:j},[le,se]=r3(g,V,U,Y||G,_,ne),ce=l.useRef(null),[me,ae]=Ls("datePicker",j,E),fe=ir(q),[ge,he]=VN(q,fe),ye=Q(ge,he,fe,H);l.useImperativeHandle(b,()=>ce.current);const Ae={showToday:!0},xe=f||y.picker,Se=L(),{onSelect:ue,multiple:ve}=I,Me=ue&&f==="time"&&!ve,Pe=(Le,Ge,Re)=>{B?.(Le,Ge,Re),Me&&ue(Le)},[je,Be]=o3(y),Ze=l3(C),Fe=l.useContext(Tr),{hasFeedback:_e,status:He,feedbackIcon:Ke}=Fe,Ne=i3({picker:xe,hasFeedback:_e,feedbackIcon:Ke,suffixIcon:F===void 0?z:F}),[Ce]=ao("DatePicker",Mu),Ye=xa(Ce,y.locale||{}),[et]=vi("DatePicker",se?.popup?.root?.zIndex);return l.createElement(Ta,{space:!0},l.createElement(lU,{ref:ce,placeholder:TG(Ye,xe,N),suffixIcon:Ne,placement:T,prevIcon:l.createElement("span",{className:`${q}-prev-icon`}),nextIcon:l.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${Se}-slide-up`,picker:f,onCalendarChange:Pe,...Ae,...I,locale:Ye.lang,getPopupContainer:x||A,generateConfig:e,components:Ze,direction:P,disabled:ie,prefixCls:q,rootClassName:ye,className:Q({[`${q}-${J}`]:J,[`${q}-${me}`]:ae},ll(q,Bs(He,D),_e),Z,k?.className,R),style:{...k?.style,...w},classNames:le,styles:{...se,popup:{...se.popup,root:{...se.popup.root,zIndex:et}}},allowClear:je,removeIcon:Be}))})},n=t(),r=t(NG,IG),a=t(PG,zG),s=t(AG,DG),c=t(jG,_G),d=t(O1,Jy);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:s,TimePicker:d,QuarterPicker:c}},s3=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:s,QuarterPicker:c}=WG(e),d=kG(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=a,f.RangePicker=d,f.TimePicker=s,f.QuarterPicker=c,f},yl=s3(j6),YG=Bp(yl,"popupAlign",void 0,"picker");yl._InternalPanelDoNotUseOrYouWillBeFired=YG;const UG=Bp(yl.RangePicker,"popupAlign",void 0,"picker");yl._InternalRangePanelDoNotUseOrYouWillBeFired=UG;yl.generatePicker=s3;const $R=l.createContext(null),c3=l.createContext({});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 qG=e=>{const{prefixCls:t,className:n,containerRef:r,...a}=e,{panel:s}=l.useContext(c3),c=ea(s,r);return l.createElement("div",A0({className:Q(`${t}-section`,n),role:"dialog",ref:c},An(e,{aria:!0}),{"aria-modal":"true"},a))};function GG(e){const{prefixCls:t,direction:n,className:r,style:a,maxSize:s,containerRef:c,currentSize:d,onResize:f,onResizeEnd:m,onResizeStart:g}=e,[h,y]=l.useState(!1),[b,v]=l.useState(0),[x,C]=l.useState(0),w=n==="left"||n==="right",R=ct(N=>{N.preventDefault(),N.stopPropagation(),y(!0),v(w?N.clientX:N.clientY);let O;if(typeof d=="number")O=d;else if(c?.current){const D=c.current.getBoundingClientRect();O=w?D.width:D.height}C(O),g?.(O)}),$=ct(N=>{if(!h)return;let D=(w?N.clientX:N.clientY)-b;(n==="right"||n==="bottom")&&(D=-D);let j=x+D;j<0&&(j=0),s&&j>s&&(j=s),f?.(j)}),E=l.useCallback(()=>{if(h&&(y(!1),c?.current)){const N=c.current.getBoundingClientRect(),O=w?N.width:N.height;m?.(O)}},[h,c,m,w]);return l.useEffect(()=>{if(h)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",E)}},[h,$,E]),{dragElementProps:{className:Q(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:h,[`${t}-dragger-horizontal`]:w,[`${t}-dragger-vertical`]:!w},r),style:a,onMouseDown:R},isDragging:h}}function eb(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&rr(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function XG(e,t,n,r,a){const s=r??a!==!1,[c]=uO(t&&s,e);return oe.useEffect(()=>{t&&n===!0&&e()?.focus({preventScroll:!0})},[t]),c}function bs(){return bs=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},bs.apply(this,arguments)}const KG=(e,t)=>{const{prefixCls:n,open:r,placement:a,inline:s,push:c,forceRender:d,autoFocus:f,focusTrap:m,classNames:g,rootClassName:h,rootStyle:y,zIndex:b,className:v,id:x,style:C,motion:w,width:R,height:$,size:E,maxSize:T,children:N,mask:O,maskClosable:D,maskMotion:j,maskClassName:B,maskStyle:V,afterOpenChange:U,onClose:G,onMouseEnter:Y,onMouseOver:_,onMouseLeave:H,onClick:F,onKeyDown:I,onKeyUp:z,styles:L,drawerRender:P,resizable:A,defaultSize:k}=e,q=l.useRef(null);l.useImperativeHandle(t,()=>q.current);const K=XG(()=>q.current,r,f,m,O),[Z,J]=l.useState(!1),re=l.useContext($R);let ie;typeof c=="boolean"?ie=c?{}:{distance:0}:ie=c||{};const ne=ie?.distance??re?.pushDistance??180,le=l.useMemo(()=>({pushDistance:ne,push:()=>{J(!0)},pull:()=>{J(!1)}}),[ne]);l.useEffect(()=>{r?re?.push?.():re?.pull?.()},[r]),l.useEffect(()=>()=>{re?.pull?.()},[]);const se=l.createElement(vr,bs({key:"mask"},j,{visible:O&&r}),({className:Be,style:Ze},Fe)=>l.createElement("div",{className:Q(`${n}-mask`,Be,g?.mask,B),style:{...Ze,...V,...L?.mask},onClick:D&&r?G:void 0,ref:Fe})),ce=typeof w=="function"?w(a):w,[me,ae]=l.useState(),fe=a==="left"||a==="right",ge=l.useMemo(()=>eb(E??(fe?R:$)??me??k??(fe?378:void 0)),[E,R,$,k,fe,me]),he=l.useMemo(()=>{const Be={};if(Z&&ne)switch(a){case"top":Be.transform=`translateY(${ne}px)`;break;case"bottom":Be.transform=`translateY(${-ne}px)`;break;case"left":Be.transform=`translateX(${ne}px)`;break;default:Be.transform=`translateX(${-ne}px)`;break}return fe?Be.width=eb(ge):Be.height=eb(ge),Be},[Z,ne,a,fe,ge]),ye=l.useRef(null),Ae=!!A,xe=typeof A=="object"&&A||{},Se=ct(Be=>{ae(Be),xe.onResize?.(Be)}),{dragElementProps:ue,isDragging:ve}=GG({prefixCls:`${n}-resizable`,direction:a,className:g?.dragger,style:L?.dragger,maxSize:T,containerRef:ye,currentSize:ge,onResize:Se,onResizeStart:xe.onResizeStart,onResizeEnd:xe.onResizeEnd}),Me={onMouseEnter:Y,onMouseOver:_,onMouseLeave:H,onClick:F,onKeyDown:I,onKeyUp:z,onFocus:Be=>{K(Be.target)}},Pe=l.createElement(vr,bs({key:"panel"},ce,{visible:r,forceRender:d,onVisibleChanged:U,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:Be,style:Ze},Fe)=>{const _e=l.createElement(qG,bs({id:x,containerRef:Fe,prefixCls:n,className:Q(v,g?.section),style:{...C,...L?.section}},An(e,{aria:!0}),Me),N);return l.createElement("div",bs({ref:ye,className:Q(`${n}-content-wrapper`,ve&&`${n}-content-wrapper-dragging`,g?.wrapper,!ve&&Be),style:{...Ze,...he,...L?.wrapper}},An(e,{data:!0})),Ae&&l.createElement("div",ue),P?P(_e):_e)}),je={...y};return b&&(je.zIndex=b),l.createElement($R.Provider,{value:le},l.createElement("div",{className:Q(n,`${n}-${a}`,h,{[`${n}-open`]:r,[`${n}-inline`]:s}),style:je,tabIndex:-1,ref:q},se,Pe))},QG=l.forwardRef(KG),ZG=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:r="right",autoFocus:a=!0,keyboard:s=!0,width:c,height:d,size:f,maxSize:m,mask:g=!0,maskClosable:h=!0,getContainer:y,forceRender:b,afterOpenChange:v,destroyOnHidden:x,onMouseEnter:C,onMouseOver:w,onMouseLeave:R,onClick:$,onKeyDown:E,onKeyUp:T,onClose:N,resizable:O,defaultSize:D,focusTriggerAfterClose:j,panelRef:B}=e,[V,U]=l.useState(!1),[G,Y]=l.useState(!1);It(()=>{Y(!0)},[]);const _=G?t:!1,H=l.useRef(null),F=l.useRef(null);It(()=>{_&&(F.current=document.activeElement)},[_]);const I=k=>{U(k),v?.(k),!k&&j!==!1&&F.current&&!H.current?.contains(F.current)&&F.current?.focus({preventScroll:!0})},z=l.useMemo(()=>({panel:B}),[B]);if(!b&&!V&&!_&&x)return null;const P={...e,open:_,prefixCls:n,placement:r,autoFocus:a,keyboard:s,width:c,height:d,size:f,maxSize:m,defaultSize:D,mask:g,maskClosable:h,inline:y===!1,afterOpenChange:I,ref:H,resizable:O,...{onMouseEnter:C,onMouseOver:w,onMouseLeave:R,onClick:$,onKeyDown:E,onKeyUp:T}},A=({top:k,event:q})=>{k&&s&&(q.stopPropagation(),N?.(q))};return l.createElement(c3.Provider,{value:z},l.createElement(fd,{open:_||b||V,autoDestroy:!1,getContainer:y,autoLock:g&&(_||V),onEsc:A},l.createElement(QG,P)))},u3=e=>{const{prefixCls:t,ariaId:n,title:r,footer:a,extra:s,closable:c,loading:d,onClose:f,headerStyle:m,bodyStyle:g,footerStyle:h,children:y,classNames:b,styles:v}=e,x=Rt("drawer"),{classNames:C,styles:w,closable:R}=x,[$,E]=Bt([C,b],[w,v],{props:{...e,closable:c??R}}),T=l.useMemo(()=>{const V=c??R;if(V!==!1)return typeof V=="object"&&V?.placement==="end"?"end":"start"},[c,R]),N=l.useCallback(V=>l.createElement("button",{type:"button",onClick:f,className:Q(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},$.close),style:E.close},V),[f,t,T,$.close,E.close]),[O,D]=VS(Ms(e),Ms(x),{closable:!0,closeIconRender:N}),j=()=>!r&&!O?null:l.createElement("div",{style:{...E.header,...m},className:Q(`${t}-header`,$.header,{[`${t}-header-close-only`]:O&&!r&&!s})},l.createElement("div",{className:`${t}-header-title`},T==="start"&&D,r&&l.createElement("div",{className:Q(`${t}-title`,$.title),style:E.title,id:n},r)),s&&l.createElement("div",{className:Q(`${t}-extra`,$.extra),style:E.extra},s),T==="end"&&D),B=()=>a?l.createElement("div",{className:Q(`${t}-footer`,$.footer),style:{...E.footer,...h}},a):null;return l.createElement(l.Fragment,null,j(),l.createElement("div",{className:Q(`${t}-body`,$.body),style:{...E.body,...g}},d?l.createElement(Si,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):y),B())},JG=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},d3=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),f3=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...d3({opacity:e},{opacity:1})}),eX=(e,t)=>[f3(.7,t),d3({transform:JG(e)},{transform:"none"})],tX=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:f3(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>({...r,[`&-${a}`]:eX(a,n)}),{})}}},nX=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:s,motionDurationSlow:c,motionDurationMid:d,paddingXS:f,padding:m,paddingLG:g,fontSizeLG:h,lineHeightLG:y,lineWidth:b,lineType:v,colorSplit:x,marginXS:C,colorIcon:w,colorIconHover:R,colorBgTextHover:$,colorBgTextActive:E,colorText:T,fontWeightStrong:N,footerPaddingBlock:O,footerPaddingInline:D,draggerSize:j,calc:B}=e,V=`${n}-content-wrapper`,U=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-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:a,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[V]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${V}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${V}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${V}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${V}`]:{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(m)} ${te(g)}`,fontSize:h,lineHeight:y,borderBottom:`${te(b)} ${v} ${x}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:B(h).add(f).equal(),height:B(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:C},[`&:not(${n}-close-end)`]:{marginInlineEnd:C},"&:hover":{color:R,backgroundColor:$,textDecoration:"none"},"&:active":{backgroundColor:E},...wo(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(O)} ${te(D)}`,borderTop:`${te(b)} ${v} ${x}`},[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,right:{_skip_check_:!0,value:0},width:j,cursor:"col-resize"},[`${U}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:j,cursor:"col-resize"},[`${U}-top`]:{insetInline:0,bottom:0,height:j,cursor:"row-resize"},[`${U}-bottom`]:{insetInline:0,top:0,height:j,cursor:"row-resize"},[`${V}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},rX=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),m3=Pt("Drawer",e=>{const t=Nt(e,{});return[nX(t),tX(t)]},rX),oX={distance:180},wR=378,ER={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},p3=e=>{const{rootClassName:t,size:n,defaultSize:r=wR,height:a,width:s,mask:c,push:d=oX,open:f,afterOpenChange:m,onClose:g,prefixCls:h,getContainer:y,panelRef:b=null,style:v,className:x,resizable:C,"aria-labelledby":w,focusable:R,maskClosable:$,maskStyle:E,drawerStyle:T,contentWrapperStyle:N,destroyOnClose:O,destroyOnHidden:D,...j}=e,{placement:B}=j,V=Ho(),U=j.title?V:void 0,{getPopupContainer:G,getPrefixCls:Y,direction:_,className:H,style:F,classNames:I,styles:z,mask:L}=Rt("drawer"),P=Y("drawer",h),[A,k]=m3(P),q=y===void 0&&G?()=>G(document.body):y,K=l.useMemo(()=>typeof n=="number"?n:n==="large"?736:n==="default"?wR:typeof n=="string"?/^\d+(\.\d+)?$/.test(n)?Number(n):n:!B||B==="left"||B==="right"?s:a,[n,B,s,a]),Z={motionName:Zo(P,"mask-motion"),...ER},J=ue=>({motionName:Zo(P,`panel-motion-${ue}`),...ER}),re=vO(),ie=mr(b,re),[ne,le]=vi("Drawer",j.zIndex),[se,ce,me]=ST(c,L,P,$),ae=hO(R,q!==!1&&se),{classNames:fe,styles:ge,rootStyle:he}=j,ye={...e,zIndex:ne,panelRef:b,mask:se,maskClosable:me,defaultSize:r,push:d,focusable:ae},[Ae,xe]=Bt([I,fe],[z,ge],{props:ye}),Se=Q({"no-mask":!se,[`${P}-rtl`]:_==="rtl"},t,A,k,Ae.root);return l.createElement(Ta,{form:!0,space:!0},l.createElement(dd.Provider,{value:le},l.createElement(ZG,{prefixCls:P,onClose:g,maskMotion:Z,motion:J,...j,classNames:{mask:Q(Ae.mask,ce.mask),section:Ae.section,wrapper:Ae.wrapper,dragger:Ae.dragger},styles:{mask:{...xe.mask,...E},section:{...xe.section,...T},wrapper:{...xe.wrapper,...N},dragger:xe.dragger},open:f,mask:se,maskClosable:me,push:d,size:K,defaultSize:r,style:{...F,...v},rootStyle:{...he,...xe.root},className:Q(H,x),rootClassName:Se,getContainer:q,afterOpenChange:m,panelRef:ie,zIndex:ne,...C?{resizable:C}:{},"aria-labelledby":w??U,destroyOnHidden:D??O,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusTrap:ae.trap},l.createElement(u3,{prefixCls:P,size:n,...j,ariaId:U,onClose:g}))))},aX=e=>{const{prefixCls:t,style:n,className:r,placement:a="right",...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("drawer",t),[f,m]=m3(d),g=Q(d,`${d}-pure`,`${d}-${a}`,f,m,r);return l.createElement("div",{className:g,style:n},l.createElement(u3,{prefixCls:d,...s}))};p3._InternalPanelDoNotUseOrYouWillBeFired=aX;function MR(e){return["small","middle","large"].includes(e)}function RR(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const g3=oe.createContext({latestIndex:0}),iX=g3.Provider,lX=e=>{const{className:t,prefix:n,index:r,children:a,separator:s,style:c,classNames:d,styles:f}=e,{latestIndex:m}=l.useContext(g3);return Mr(a)?l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:c},a),r<m&&s&&l.createElement("span",{className:Q(`${n}-item-separator`,d?.separator),style:f?.separator},s)):null},sX=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"}}}},cX=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}}}},uX=Pt("Space",e=>{const t=Nt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[sX(t),cX(t)]},()=>({}),{resetStyle:!1}),dX=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:a,className:s,style:c,classNames:d,styles:f}=Rt("space"),{size:m=a??"small",align:g,className:h,rootClassName:y,children:b,direction:v,orientation:x,prefixCls:C,split:w,separator:R,style:$,vertical:E,wrap:T=!1,classNames:N,styles:O,...D}=e,[j,B]=Array.isArray(m)?m:[m,m],V=MR(B),U=MR(j),G=RR(B),Y=RR(j),_=fr(b,{keepEmpty:!0}),[H,F]=ud(x,E,v),I=g===void 0&&!F?"center":g,z=R??w,L=n("space",C),[P,A]=uX(L),k={...e,size:m,orientation:H,align:I},[q,K]=Bt([d,N],[f,O],{props:k}),Z=Q(L,s,P,`${L}-${H}`,{[`${L}-rtl`]:r==="rtl",[`${L}-align-${I}`]:I,[`${L}-gap-row-${B}`]:V,[`${L}-gap-col-${j}`]:U},h,y,A,q.root),J=Q(`${L}-item`,q.item),re=_.map((le,se)=>{const ce=le?.key||`${J}-${se}`;return l.createElement(lX,{prefix:L,classNames:q,styles:K,className:J,key:ce,index:se,separator:z,style:K.item},le)}),ie=l.useMemo(()=>({latestIndex:_.reduce((se,ce,me)=>Mr(ce)?me:se,0)}),[_]);if(_.length===0)return null;const ne={};return T&&(ne.flexWrap="wrap"),!U&&Y&&(ne.columnGap=j),!V&&G&&(ne.rowGap=B),l.createElement("div",{ref:t,className:Z,style:{...ne,...K.root,...c,...$},...D},l.createElement(iX,{value:ie},re))}),pn=dX;pn.Compact=QT;pn.Addon=SG;const h3=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(dt),{prefixCls:a,type:s="default",danger:c,disabled:d,loading:f,onClick:m,htmlType:g,children:h,className:y,menu:b,arrow:v,autoFocus:x,trigger:C,align:w,open:R,onOpenChange:$,placement:E,getPopupContainer:T,href:N,icon:O=l.createElement(m1,null),title:D,buttonsRender:j=ne=>ne,mouseEnterDelay:B,mouseLeaveDelay:V,overlayClassName:U,overlayStyle:G,destroyOnHidden:Y,destroyPopupOnHide:_,dropdownRender:H,popupRender:F,...I}=e,z=n("dropdown",a),L=`${z}-button`,A={menu:b,arrow:v,autoFocus:x,align:w,disabled:d,trigger:d?[]:C,onOpenChange:$,getPopupContainer:T||t,mouseEnterDelay:B,mouseLeaveDelay:V,classNames:{root:U},styles:{root:G},destroyOnHidden:Y,popupRender:F||H},{compactSize:k,compactItemClassnames:q}=Ia(z,r),K=Q(L,q,y);"destroyPopupOnHide"in e&&(A.destroyPopupOnHide=_),"open"in e&&(A.open=R),"placement"in e?A.placement=E:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const Z=l.createElement(_t,{type:s,danger:c,disabled:d,loading:f,onClick:m,htmlType:g,href:N,title:D},h),J=l.createElement(_t,{type:s,danger:c,icon:O}),[re,ie]=j([Z,J]);return l.createElement(pn.Compact,{className:K,size:k,block:!0,...I},re,l.createElement(qp,{...A},ie))};h3.__ANT_BUTTON=!0;const N1=qp;N1.Button=h3;var fX={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 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 mX=(e,t)=>l.createElement(pt,D0({},e,{ref:t,icon:fX})),hp=l.forwardRef(mX),pX=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,className:a}=e,s=t("input-group",r),c=t("input"),[d,f]=_N(c),m=Q(s,f,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},d,a),g=l.useContext(Tr),h=l.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return l.createElement(Tr.Provider,{value:h},l.createElement(pn.Compact,{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},gX=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}}}},hX=Pt(["Input","OTP"],e=>{const t=Nt(e,Ys(e));return gX(t)},Us),yX=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:s,index:c,mask:d,onFocus:f,...m}=e,{getPrefixCls:g}=l.useContext(dt),h=g("otp"),y=typeof d=="string"?d:r,b=l.useRef(null);l.useImperativeHandle(t,()=>b.current);const v=R=>{a(c,R.target.value)},x=()=>{Ht(()=>{const R=b.current?.input;document.activeElement===R&&R&&R.select()})},C=R=>{f?.(R),x()},w=R=>{const{key:$,ctrlKey:E,metaKey:T}=R;$==="ArrowLeft"?s(c-1):$==="ArrowRight"?s(c+1):$==="z"&&(E||T)?R.preventDefault():$==="Backspace"&&!r&&s(c-1),x()};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(eg,{"aria-label":`OTP Input ${c+1}`,type:d===!0?"password":"text",...m,ref:b,value:r,onInput:v,onFocus:C,onKeyDown:w,onMouseDown:x,onMouseUp:x,className:Q(n,{[`${h}-mask-input`]:d})}))});function cm(e){return(e||"").split("")}const bX=e=>{const{index:t,prefixCls:n,separator:r,className:a,style:s}=e,c=typeof r=="function"?r(t):r;return c?l.createElement("span",{className:Q(`${n}-separator`,a),style:s},c):null},vX=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:s,value:c,onChange:d,formatter:f,separator:m,variant:g,disabled:h,status:y,autoFocus:b,mask:v,type:x,autoComplete:C,onInput:w,onFocus:R,inputMode:$,classNames:E,styles:T,className:N,style:O,...D}=e,{classNames:j,styles:B,getPrefixCls:V,direction:U,style:G,className:Y}=Rt("otp"),_=V("otp",n),H={...e,length:r},[F,I]=Bt([j,E],[B,T],{props:H}),z=An(D,{aria:!0,data:!0,attr:!0}),[L,P]=hX(_),A=pr(ge=>a??ge),k=l.useContext(Tr),q=Bs(k.status,y),K=l.useMemo(()=>({...k,status:q,hasFeedback:!1,feedbackIcon:null}),[k,q]),Z=l.useRef(null),J=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{J.current[0]?.focus()},blur:()=>{for(let ge=0;ge<r;ge+=1)J.current[ge]?.blur()},nativeElement:Z.current}));const re=ge=>f?f(ge):ge,[ie,ne]=l.useState(()=>cm(re(s||"")));l.useEffect(()=>{c!==void 0&&ne(cm(c))},[c]);const le=ct(ge=>{ne(ge),w&&w(ge),d&&ge.length===r&&ge.every(he=>he)&&ge.some((he,ye)=>ie[ye]!==he)&&d(ge.join(""))}),se=ct((ge,he)=>{let ye=$n(ie);for(let xe=0;xe<ge;xe+=1)ye[xe]||(ye[xe]="");he.length<=1?ye[ge]=he:ye=ye.slice(0,ge).concat(cm(he)),ye=ye.slice(0,r);for(let xe=ye.length-1;xe>=0&&!ye[xe];xe-=1)ye.pop();const Ae=re(ye.map(xe=>xe||" ").join(""));return ye=cm(Ae).map((xe,Se)=>xe===" "&&!ye[Se]?ye[Se]:xe),ye}),ce=(ge,he)=>{const ye=se(ge,he),Ae=Math.min(ge+he.length,r-1);Ae!==ge&&ye[ge]!==void 0&&J.current[Ae]?.focus(),le(ye)},me=ge=>{J.current[ge]?.focus()},ae=(ge,he)=>{for(let ye=0;ye<he;ye+=1)if(!J.current[ye]?.input?.value){J.current[ye]?.focus();break}R?.(ge)},fe={variant:g,disabled:h,status:q,mask:v,type:x,inputMode:$,autoComplete:C};return l.createElement("div",{...z,ref:Z,className:Q(N,_,{[`${_}-sm`]:A==="small",[`${_}-lg`]:A==="large",[`${_}-rtl`]:U==="rtl"},P,L,Y,F.root),style:{...I.root,...G,...O},role:"group"},l.createElement(Tr.Provider,{value:K},Array.from({length:r}).map((ge,he)=>{const ye=`otp-${he}`,Ae=ie[he]||"";return l.createElement(l.Fragment,{key:ye},l.createElement(yX,{ref:xe=>{J.current[he]=xe},index:he,size:A,htmlSize:1,className:Q(F.input,`${_}-input`),style:I.input,onChange:ce,value:Ae,onActiveChange:me,autoFocus:he===0&&b,onFocus:xe=>ae(xe,he),...fe}),he<r-1&&l.createElement(bX,{separator:m,index:he,prefixCls:_,className:Q(F.separator),style:I.separator}))})))});var SX={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 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 CX=(e,t)=>l.createElement(pt,j0({},e,{ref:t,icon:SX})),xX=l.forwardRef(CX);var $X={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 _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 wX=(e,t)=>l.createElement(pt,_0({},e,{ref:t,icon:$X})),EX=l.forwardRef(wX),MX=e=>e?l.createElement(EX,null):l.createElement(xX,null),RX={click:"onClick",hover:"onMouseOver"},TX=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:s=MX,suffix:c}=e,d=l.useContext(Wr),f=n??d,m=typeof a=="object"&&a.visible!==void 0,[g,h]=l.useState(()=>m?a.visible:!1),y=l.useRef(null);l.useEffect(()=>{m&&h(a.visible)},[m,a]);const b=n3(y),v=()=>{if(f)return;g&&b();const V=!g;h(V),typeof a=="object"&&a.onVisibleChange?.(V)},x=V=>{const U=RX[r]||"",G=s(g),Y={[U]:v,className:`${V}-icon`,key:"passwordIcon",onMouseDown:_=>{_.preventDefault()},onMouseUp:_=>{_.preventDefault()}};return l.cloneElement(l.isValidElement(G)?G:l.createElement("span",null,G),Y)},{className:C,prefixCls:w,inputPrefixCls:R,size:$,...E}=e,{getPrefixCls:T}=l.useContext(dt),N=T("input",R),O=T("input-password",w),D=a&&x(O),j=Q(O,C,{[`${O}-${$}`]:!!$}),B={...rn(E,["suffix","iconRender","visibilityToggle"]),type:g?"text":"password",className:j,prefixCls:N,suffix:l.createElement(l.Fragment,null,D,c)};return $&&(B.size=$),l.createElement(eg,{ref:mr(t,y),...B})}),OX=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}}}}}}},NX=Pt(["Input","Search"],e=>[OX(e)]),IX=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:s,style:c,enterButton:d=!1,addonAfter:f,loading:m,disabled:g,onSearch:h,onChange:y,onCompositionStart:b,onCompositionEnd:v,variant:x,onPressEnter:C,classNames:w,styles:R,hidden:$,...E}=e,{direction:T,getPrefixCls:N,classNames:O,styles:D}=Rt("inputSearch"),j={...e,enterButton:d},[B,V]=Bt([O,w],[D,R],{props:j},{button:{_default:"root"}}),U=l.useRef(!1),G=N("input-search",n),Y=N("input",r),[_,H]=NX(G),{compactSize:F}=Ia(G,T),I=pr(ae=>s??F??ae),z=l.useRef(null),L=ae=>{ae?.target&&ae.type==="click"&&h&&h(ae.target.value,ae,{source:"clear"}),y?.(ae)},P=ae=>{document.activeElement===z.current?.input&&ae.preventDefault()},A=ae=>{h&&h(z.current?.input?.value,ae,{source:"input"})},k=ae=>{U.current||m||(C?.(ae),A(ae))},q=typeof d=="boolean"?l.createElement(e6,null):null,K=`${G}-btn`,Z=Q(K,{[`${K}-${x}`]:x});let J;const re=d||{},ie=re.type&&re.type.__ANT_BUTTON===!0;ie||re.type==="button"?J=or(re,{onMouseDown:P,onClick:ae=>{re?.props?.onClick?.(ae),A(ae)},key:"enterButton",...ie?{className:Z,size:I}:{}}):J=l.createElement(_t,{classNames:B.button,styles:V.button,className:Z,color:d?"primary":"default",size:I,disabled:g,key:"enterButton",onMouseDown:P,onClick:A,loading:m,icon:q,variant:x==="borderless"||x==="filled"||x==="underlined"?"text":d?"solid":void 0},d),f&&(J=[J,or(f,{key:"addonAfter"})]);const ne=Q(G,H,{[`${G}-rtl`]:T==="rtl",[`${G}-${I}`]:!!I,[`${G}-with-button`]:!!d},a,_,B.root),le=ae=>{U.current=!0,b?.(ae)},se=ae=>{U.current=!1,v?.(ae)},ce=An(E,{data:!0}),me=rn({...E,classNames:rn(B,["button","root"]),styles:rn(V,["button","root"]),prefixCls:Y,type:"search",size:I,variant:x,onPressEnter:k,onCompositionStart:le,onCompositionEnd:se,onChange:L,disabled:g},Object.keys(ce));return l.createElement(QT,{className:ne,style:{...c,...V.root},...ce,hidden:$},l.createElement(eg,{ref:mr(z,t),...me}),J)}),PX=`
|
|
298
|
+
min-height:0 !important;
|
|
299
|
+
max-height:none !important;
|
|
300
|
+
height:0 !important;
|
|
301
|
+
visibility:hidden !important;
|
|
302
|
+
overflow:hidden !important;
|
|
303
|
+
position:absolute !important;
|
|
304
|
+
z-index:-1000 !important;
|
|
305
|
+
top:0 !important;
|
|
306
|
+
right:0 !important;
|
|
307
|
+
pointer-events: none !important;
|
|
308
|
+
`,zX=["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"],tb={};let no;function AX(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&tb[n])return tb[n];const r=window.getComputedStyle(e),a=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:zX.map(m=>`${m}:${r.getPropertyValue(m)}`).join(";"),paddingSize:s,borderSize:c,boxSizing:a};return t&&n&&(tb[n]=f),f}function DX(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:a,borderSize:s,boxSizing:c,sizingStyle:d}=AX(e,t);no.setAttribute("style",`${d};${PX}`),no.value=e.value||e.placeholder||"";let f,m,g,h=no.scrollHeight;if(c==="border-box"?h+=s:c==="content-box"&&(h-=a),n!==null||r!==null){no.value=" ";const b=no.scrollHeight-a;n!==null&&(f=b*n,c==="border-box"&&(f=f+a+s),h=Math.max(f,h)),r!==null&&(m=b*r,c==="border-box"&&(m=m+a+s),g=h>m?"":"hidden",h=Math.min(m,h))}const y={height:h,overflowY:g,resize:"none"};return f&&(y.minHeight=f),m&&(y.maxHeight=m),y}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 nb=0,rb=1,ob=2,jX=l.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:a,autoSize:s,onResize:c,className:d,style:f,disabled:m,onChange:g,onInternalAutoSize:h,...y}=e,[b,v]=Yt(r,a),x=b??"",C=_=>{v(_.target.value),g?.(_)},w=l.useRef();l.useImperativeHandle(t,()=>({textArea:w.current}));const[R,$]=l.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),E=!!s,[T,N]=l.useState(ob),[O,D]=l.useState(),j=()=>{N(nb)};It(()=>{E&&j()},[a,R,$,E]),It(()=>{if(T===nb)N(rb);else if(T===rb){const _=DX(w.current,!1,R,$);N(ob),D(_)}},[T]);const B=l.useRef(),V=()=>{Ht.cancel(B.current)},U=_=>{T===ob&&(c?.(_),s&&(V(),B.current=Ht(()=>{j()})))};l.useEffect(()=>V,[]);const Y={...f,...E?O:null};return(T===nb||T===rb)&&(Y.overflowY="hidden",Y.overflowX="hidden"),l.createElement(oo,{onResize:U,disabled:!(s||c)},l.createElement("textarea",H0({},y,{ref:w,style:Y,className:Q(n,d,{[`${n}-disabled`]:m}),disabled:m,value:x,onChange:C})))});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 _X=oe.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:a,allowClear:s,maxLength:c,onCompositionStart:d,onCompositionEnd:f,suffix:m,prefixCls:g="rc-textarea",showCount:h,count:y,className:b,style:v,disabled:x,hidden:C,classNames:w,styles:R,onResize:$,onClear:E,onPressEnter:T,readOnly:N,autoSize:O,onKeyDown:D,...j},B)=>{const[V,U]=Yt(e,t),G=V==null?"":String(V),[Y,_]=oe.useState(!1),H=oe.useRef(!1),[F,I]=oe.useState(null),z=l.useRef(null),L=l.useRef(null),P=()=>L.current?.textArea,A=()=>{P().focus()};l.useImperativeHandle(B,()=>({resizableTextArea:L.current,focus:A,blur:()=>{P().blur()},nativeElement:z.current?.nativeElement||P()})),l.useEffect(()=>{_(Se=>!x&&Se)},[x]);const[k,q]=oe.useState(null);oe.useEffect(()=>{k&&P().setSelectionRange(...k)},[k]);const K=e3(y,h),Z=K.max??c,J=Number(Z)>0,re=K.strategy(G),ie=!!Z&&re>Z,ne=(Se,ue)=>{let ve=ue;!H.current&&K.exceedFormatter&&K.max&&K.strategy(ue)>K.max&&(ve=K.exceedFormatter(ue,{max:K.max}),ue!==ve&&q([P().selectionStart||0,P().selectionEnd||0])),U(ve),pp(Se.currentTarget,Se,a,ve)},le=Se=>{H.current=!0,d?.(Se)},se=Se=>{H.current=!1,ne(Se,Se.currentTarget.value),f?.(Se)},ce=Se=>{ne(Se,Se.target.value)},me=Se=>{Se.key==="Enter"&&T&&!Se.nativeEvent.isComposing&&T(Se),D?.(Se)},ae=Se=>{_(!0),n?.(Se)},fe=Se=>{_(!1),r?.(Se)},ge=Se=>{U(""),A(),pp(P(),Se,a)};let he=m,ye;K.show&&(K.showFormatter?ye=K.showFormatter({value:G,count:re,maxLength:Z}):ye=`${re}${J?` / ${Z}`:""}`,he=oe.createElement(oe.Fragment,null,he,oe.createElement("span",{className:Q(`${g}-data-count`,w?.count),style:R?.count},ye)));const Ae=Se=>{$?.(Se),P()?.style.height&&I(!0)},xe=!O&&!h&&!s;return oe.createElement(JN,{ref:z,value:G,allowClear:s,handleReset:ge,suffix:he,prefixCls:g,classNames:{...w,affixWrapper:Q(w?.affixWrapper,{[`${g}-show-count`]:h,[`${g}-textarea-allow-clear`]:s})},disabled:x,focused:Y,className:Q(b,ie&&`${g}-out-of-range`),style:{...v,...F&&!xe?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof ye=="string"?ye:void 0}},hidden:C,readOnly:N,onClear:E},oe.createElement(jX,B0({},j,{autoSize:O,maxLength:c,onKeyDown:me,onChange:ce,onFocus:ae,onBlur:fe,onCompositionStart:le,onCompositionEnd:se,className:Q(w?.textarea),style:{resize:v?.resize,...R?.textarea},disabled:x,prefixCls:g,onResize:Ae,ref:L,readOnly:N})))}),HX=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"}},[`
|
|
309
|
+
&-allow-clear > ${t},
|
|
310
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
311
|
+
`]:{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}}}}}},BX=Pt(["Input","TextArea"],e=>{const t=Nt(e,Ys(e));return HX(t)},Us,{resetFont:!1}),y3=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:a,disabled:s,status:c,allowClear:d,classNames:f,rootClassName:m,className:g,style:h,styles:y,variant:b,showCount:v,onMouseDown:x,onResize:C,...w}=e,{getPrefixCls:R,direction:$,allowClear:E,autoComplete:T,className:N,style:O,classNames:D,styles:j}=Rt("textArea"),B=l.useContext(Wr),V=s??B,{status:U,hasFeedback:G,feedbackIcon:Y}=l.useContext(Tr),_=Bs(U,c),[H,F]=Bt([D,f],[j,y],{props:e}),I=l.useRef(null);l.useImperativeHandle(t,()=>({resizableTextArea:I.current?.resizableTextArea,focus:ae=>{cO(I.current?.resizableTextArea?.textArea,ae)},blur:()=>I.current?.blur(),nativeElement:I.current?.nativeElement||null}));const z=R("input",n),L=ir(z),[P,A]=jN(z,m);BX(z,L);const{compactSize:k,compactItemClassnames:q}=Ia(z,$),K=pr(ae=>a??k??ae),[Z,J]=Ls("textArea",b,r),re=t3(d??E),[ie,ne]=l.useState(!1),[le,se]=l.useState(!1),ce=ae=>{ne(!0),x?.(ae);const fe=()=>{ne(!1),document.removeEventListener("mouseup",fe)};document.addEventListener("mouseup",fe)},me=ae=>{if(C?.(ae),ie&&typeof getComputedStyle=="function"){const fe=I.current?.nativeElement?.querySelector("textarea");fe&&getComputedStyle(fe).resize==="both"&&se(!0)}};return l.createElement(_X,{autoComplete:T,...w,style:{...F.root,...O,...h},styles:F,disabled:V,allowClear:re,className:Q(A,L,g,m,q,N,H.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:le}),classNames:{...H,textarea:Q({[`${z}-sm`]:K==="small",[`${z}-lg`]:K==="large"},P,H.textarea,ie&&`${z}-mouse-active`),variant:Q({[`${z}-${Z}`]:J},ll(z,_)),affixWrapper:Q(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:$==="rtl",[`${z}-affix-wrapper-sm`]:K==="small",[`${z}-affix-wrapper-lg`]:K==="large",[`${z}-textarea-show-count`]:v||e.count?.show},P)},prefixCls:z,suffix:G&&l.createElement("span",{className:`${z}-textarea-suffix`},Y),showCount:v,ref:I,onResize:me,onMouseDown:ce})}),Ir=eg;Ir.Group=pX;Ir.Search=IX;Ir.TextArea=y3;Ir.Password=TX;Ir.OTP=vX;function LX(e,t,n){return typeof n=="boolean"?n:e.length?!0:fr(t).some(a=>a.type===I6)}const tg=({suffixCls:e,tagName:t,displayName:n})=>r=>l.forwardRef((s,c)=>l.createElement(r,{ref:c,suffixCls:e,tagName:t,...s})),I1=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:s,...c}=e,{getPrefixCls:d}=l.useContext(dt),f=d("layout",n),[m]=N6(f),g=r?`${f}-${r}`:f;return l.createElement(s,{className:Q(n||g,a,m),ref:t,...c})}),VX=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(dt),[r,a]=l.useState([]),{prefixCls:s,className:c,rootClassName:d,children:f,hasSider:m,tagName:g,style:h,...y}=e,b=rn(y,["suffixCls"]),{getPrefixCls:v,className:x,style:C}=Rt("layout"),w=v("layout",s),R=LX(r,f,m),[$,E]=N6(w),T=Q(w,{[`${w}-has-sider`]:R,[`${w}-rtl`]:n==="rtl"},x,c,d,$,E),N=l.useMemo(()=>({siderHook:{addSider:O=>{a(D=>[].concat($n(D),[O]))},removeSider:O=>{a(D=>D.filter(j=>j!==O))}}}),[]);return l.createElement(R6.Provider,{value:N},l.createElement(g,{ref:t,className:T,style:{...C,...h},...b},f))}),FX=tg({tagName:"div",displayName:"Layout"})(VX),kX=tg({suffixCls:"header",tagName:"header",displayName:"Header"})(I1),WX=tg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(I1),YX=tg({suffixCls:"content",tagName:"main",displayName:"Content"})(I1),Pa=FX;Pa.Header=kX;Pa.Footer=WX;Pa.Content=YX;Pa.Sider=I6;Pa._InternalSiderContext=Up;var UX={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 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 qX=(e,t)=>l.createElement(pt,L0({},e,{ref:t,icon:UX})),TR=l.forwardRef(qX);var GX={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 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 XX=(e,t)=>l.createElement(pt,V0({},e,{ref:t,icon:GX})),OR=l.forwardRef(XX),KX={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:"页码"},QX=[10,20,50,100],ZX=e=>{const{pageSizeOptions:t=QX,locale:n,changeSize:r,pageSize:a,goButton:s,quickGo:c,rootPrefixCls:d,disabled:f,buildOptionText:m,showSizeChanger:g,sizeChangerRender:h}=e,[y,b]=oe.useState(""),v=oe.useMemo(()=>!y||Number.isNaN(y)?void 0:Number(y),[y]),x=typeof m=="function"?m:D=>`${D} ${n.items_per_page}`,C=D=>{const j=D.target.value;/^\d*$/.test(j)&&b(j)},w=D=>{s||y===""||(b(""),!(D.relatedTarget&&(D.relatedTarget.className.includes(`${d}-item-link`)||D.relatedTarget.className.includes(`${d}-item`)))&&c?.(v))},R=D=>{y!==""&&(D.keyCode===it.ENTER||D.type==="click")&&(b(""),c?.(v))},$=()=>t.some(D=>D.toString()===a.toString())?t:t.concat([a]).sort((D,j)=>{const B=Number.isNaN(Number(D))?0:Number(D),V=Number.isNaN(Number(j))?0:Number(j);return B-V}),E=`${d}-options`;if(!g&&!c)return null;let T=null,N=null,O=null;return g&&h&&(T=h({disabled:f,size:a,onSizeChange:D=>{r?.(Number(D))},"aria-label":n.page_size,className:`${E}-size-changer`,options:$().map(D=>({label:x(D),value:D}))})),c&&(s&&(O=typeof s=="boolean"?oe.createElement("button",{type:"button",onClick:R,onKeyUp:R,disabled:f,className:`${E}-quick-jumper-button`},n.jump_to_confirm):oe.createElement("span",{onClick:R,onKeyUp:R},s)),N=oe.createElement("div",{className:`${E}-quick-jumper`},n.jump_to,oe.createElement("input",{disabled:f,type:"text",value:y,onChange:C,onKeyUp:R,onBlur:w,"aria-label":n.page}),n.page,O)),oe.createElement("li",{className:E},T,N)},Xc=e=>{const{rootPrefixCls:t,page:n,active:r,className:a,style:s,showTitle:c,onClick:d,onKeyPress:f,itemRender:m}=e,g=`${t}-item`,h=Q(g,`${g}-${n}`,{[`${g}-active`]:r,[`${g}-disabled`]:!n},a),y=()=>{d(n)},b=x=>{f(x,d,n)},v=m(n,"page",oe.createElement("a",{rel:"nofollow"},n));return v?oe.createElement("li",{title:c?String(n):null,className:h,style:s,onClick:y,onKeyDown:b,tabIndex:0},v):null};function ci(){return ci=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},ci.apply(this,arguments)}const JX=(e,t,n)=>n;function NR(){}function IR(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ki(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const eK=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:a,styles:s,current:c,defaultCurrent:d=1,total:f=0,pageSize:m,defaultPageSize:g=10,onChange:h=NR,hideOnSinglePage:y,align:b,showPrevNextJumpers:v=!0,showQuickJumper:x,showLessItems:C,showTitle:w=!0,onShowSizeChange:R=NR,locale:$=KX,style:E,totalBoundaryShowSizeChanger:T=50,disabled:N,simple:O,showTotal:D,showSizeChanger:j=f>T,sizeChangerRender:B,pageSizeOptions:V,itemRender:U=JX,jumpPrevIcon:G,jumpNextIcon:Y,prevIcon:_,nextIcon:H}=e,F=oe.useRef(null),[I,z]=Yt(g,m),[L,P]=Yt(d,c),A=Math.max(1,Math.min(L,ki(void 0,I,f))),[k,q]=oe.useState(A);l.useEffect(()=>{q(A)},[A]);const K=Math.max(1,A-(C?3:5)),Z=Math.min(ki(void 0,I,f),A+(C?3:5));function J(ke,Qe){let ze=ke||oe.createElement("button",{type:"button","aria-label":Qe,className:`${t}-item-link`});return typeof ke=="function"&&(ze=oe.createElement(ke,e)),ze}function re(ke){const Qe=ke.target.value,ze=ki(void 0,I,f);let Ie;return Qe===""?Ie=Qe:Number.isNaN(Number(Qe))?Ie=k:Qe>=ze?Ie=ze:Ie=Number(Qe),Ie}function ie(ke){return IR(ke)&&ke!==A&&IR(f)&&f>0}const ne=f>I?x:!1;function le(ke){(ke.keyCode===it.UP||ke.keyCode===it.DOWN)&&ke.preventDefault()}function se(ke){const Qe=re(ke);switch(Qe!==k&&q(Qe),ke.keyCode){case it.ENTER:ae(Qe);break;case it.UP:ae(Qe-1);break;case it.DOWN:ae(Qe+1);break}}function ce(ke){ae(re(ke))}function me(ke){const Qe=ki(ke,I,f),ze=A>Qe&&Qe!==0?Qe:A;z(ke),q(ze),R?.(A,ke),P(ze),h?.(ze,ke)}function ae(ke){if(ie(ke)&&!N){const Qe=ki(void 0,I,f);let ze=ke;return ke>Qe?ze=Qe:ke<1&&(ze=1),ze!==k&&q(ze),P(ze),h?.(ze,I),ze}return A}const fe=A>1,ge=A<ki(void 0,I,f);function he(){fe&&ae(A-1)}function ye(){ge&&ae(A+1)}function Ae(){ae(K)}function xe(){ae(Z)}function Se(ke,Qe,...ze){(ke.key==="Enter"||ke.charCode===it.ENTER||ke.keyCode===it.ENTER)&&Qe(...ze)}function ue(ke){Se(ke,he)}function ve(ke){Se(ke,ye)}function Me(ke){Se(ke,Ae)}function Pe(ke){Se(ke,xe)}function je(ke){const Qe=U(ke,"prev",J(_,"prev page"));return oe.isValidElement(Qe)?oe.cloneElement(Qe,{disabled:!fe}):Qe}function Be(ke){const Qe=U(ke,"next",J(H,"next page"));return oe.isValidElement(Qe)?oe.cloneElement(Qe,{disabled:!ge}):Qe}function Ze(ke){(ke.type==="click"||ke.keyCode===it.ENTER)&&ae(k)}let Fe=null;const _e=An(e,{aria:!0,data:!0}),He=D&&oe.createElement("li",{className:`${t}-total-text`},D(f,[f===0?0:(A-1)*I+1,A*I>f?f:A*I]));let Ke=null;const Ne=ki(void 0,I,f);if(y&&f<=I)return null;const Ce=[],Ye={rootPrefixCls:t,onClick:ae,onKeyPress:Se,showTitle:w,itemRender:U,page:-1,className:a?.item,style:s?.item},et=A-1>0?A-1:0,Le=A+1<Ne?A+1:Ne,Ge=x&&x.goButton,Re=typeof O=="object"?O.readOnly:!O;let Xe=Ge,tt=null;O&&(Ge&&(typeof Ge=="boolean"?Xe=oe.createElement("button",{type:"button",onClick:Ze,onKeyUp:Ze},$.jump_to_confirm):Xe=oe.createElement("span",{onClick:Ze,onKeyUp:Ze},Ge),Xe=oe.createElement("li",{title:w?`${$.jump_to}${A}/${Ne}`:null,className:`${t}-simple-pager`},Xe)),tt=oe.createElement("li",{title:w?`${A}/${Ne}`:null,className:Q(`${t}-simple-pager`,a?.item),style:s?.item},Re?k:oe.createElement("input",{type:"text","aria-label":$.jump_to,value:k,disabled:N,onKeyDown:le,onKeyUp:se,onChange:se,onBlur:ce,size:3}),oe.createElement("span",{className:`${t}-slash`},"/"),Ne));const at=C?1:2;if(Ne<=3+at*2){Ne||Ce.push(oe.createElement(Xc,ci({},Ye,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let ke=1;ke<=Ne;ke+=1)Ce.push(oe.createElement(Xc,ci({},Ye,{key:ke,page:ke,active:A===ke})))}else{const ke=C?$.prev_3:$.prev_5,Qe=C?$.next_3:$.next_5,ze=U(K,"jump-prev",J(G,"prev page")),Ie=U(Z,"jump-next",J(Y,"next page"));v&&(Fe=ze?oe.createElement("li",{title:w?ke:null,key:"prev",onClick:Ae,tabIndex:0,onKeyDown:Me,className:Q(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!G})},ze):null,Ke=Ie?oe.createElement("li",{title:w?Qe:null,key:"next",onClick:xe,tabIndex:0,onKeyDown:Pe,className:Q(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!Y})},Ie):null);let Ue=Math.max(1,A-at),Te=Math.min(A+at,Ne);A-1<=at&&(Te=1+at*2),Ne-A<=at&&(Ue=Ne-at*2);for(let qe=Ue;qe<=Te;qe+=1)Ce.push(oe.createElement(Xc,ci({},Ye,{key:qe,page:qe,active:A===qe})));if(A-1>=at*2&&A!==3&&(Ce[0]=oe.cloneElement(Ce[0],{className:Q(`${t}-item-after-jump-prev`,Ce[0].props.className)}),Ce.unshift(Fe)),Ne-A>=at*2&&A!==Ne-2){const qe=Ce[Ce.length-1];Ce[Ce.length-1]=oe.cloneElement(qe,{className:Q(`${t}-item-before-jump-next`,qe.props.className)}),Ce.push(Ke)}Ue!==1&&Ce.unshift(oe.createElement(Xc,ci({},Ye,{key:1,page:1}))),Te!==Ne&&Ce.push(oe.createElement(Xc,ci({},Ye,{key:Ne,page:Ne})))}let bt=je(et);if(bt){const ke=!fe||!Ne;bt=oe.createElement("li",{title:w?$.prev_page:null,onClick:he,tabIndex:ke?null:0,onKeyDown:ue,className:Q(`${t}-prev`,a?.item,{[`${t}-disabled`]:ke}),style:s?.item,"aria-disabled":ke},bt)}let ht=Be(Le);if(ht){let ke,Qe;O?(ke=!ge,Qe=fe?0:null):(ke=!ge||!Ne,Qe=ke?null:0),ht=oe.createElement("li",{title:w?$.next_page:null,onClick:ye,tabIndex:Qe,onKeyDown:ve,className:Q(`${t}-next`,a?.item,{[`${t}-disabled`]:ke}),style:s?.item,"aria-disabled":ke},ht)}const xt=Q(t,r,{[`${t}-start`]:b==="start",[`${t}-center`]:b==="center",[`${t}-end`]:b==="end",[`${t}-simple`]:O,[`${t}-disabled`]:N});return oe.createElement("ul",ci({className:xt,style:E,ref:F},_e),He,bt,O?tt:Ce,ht,oe.createElement(ZX,{locale:$,rootPrefixCls:t,disabled:N,selectPrefixCls:n,changeSize:me,pageSize:I,pageSizeOptions:V,quickGo:ne?ae:null,goButton:Xe,showSizeChanger:j,sizeChangerRender:B}))},tK=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}}}}},nK=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...w1(e),width:e.paginationMiniQuickJumperInputWidth}}}}},rK=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...$1(e)}}}}},oK=e=>{const{componentCls:t,antCls:n}=e,[,r]=Ut(n,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),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}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},aK=e=>{const{componentCls:t,antCls:n}=e,[,r]=Ut(n,"pagination");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}}},[`
|
|
312
|
+
${t}-prev,
|
|
313
|
+
${t}-jump-prev,
|
|
314
|
+
${t}-jump-next
|
|
315
|
+
`]:{marginInlineEnd:r("item-spacing-actual")},[`
|
|
316
|
+
${t}-prev,
|
|
317
|
+
${t}-next,
|
|
318
|
+
${t}-jump-prev,
|
|
319
|
+
${t}-jump-next
|
|
320
|
+
`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r("item-size-actual"),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:r("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:r("item-size-actual"),verticalAlign:"baseline",input:{...E1(e),...x1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Jp(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},iK=e=>{const{componentCls:t,antCls:n}=e,[,r]=Ut(n,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:te(e.calc(r("item-size-actual")).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}}}}},lK=e=>{const{componentCls:t,antCls:n}=e,[r,a]=Ut(n,"pagination");return{[t]:{[r("item-size-actual")]:te(e.itemSize),[r("item-spacing-actual")]:te(e.marginXS),"&-small":{[r("item-size-actual")]:te(e.itemSizeSM),[r("item-spacing-actual")]:te(e.marginXXS)},"&-large":{[r("item-size-actual")]:te(e.itemSizeLG),[r("item-spacing-actual")]:te(e.marginSM)},...Jt(e),display:"flex",alignItems:"center","&-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:a("item-size-actual"),marginInlineEnd:a("item-spacing-actual"),lineHeight:te(e.calc(a("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...iK(e),...aK(e),...oK(e),...nK(e),...rK(e),...tK(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"}}},sK=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...wo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...jo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:jo(e)}}}},b3=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Us(e)}),v3=e=>Nt(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"},Ys(e)),cK=Pt("Pagination",e=>{const t=v3(e);return[lK(t),sK(t)]},b3),uK=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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}}}}},dK=cd(["Pagination","bordered"],e=>{const t=v3(e);return uK(t)},b3);function PR(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const fK=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:s,style:c,size:d,locale:f,responsive:m,showSizeChanger:g,selectComponentClass:h,pageSizeOptions:y,styles:b,classNames:v,...x}=e,{xs:C}=Lp(m),[,w]=Yr(),{getPrefixCls:R,direction:$,showSizeChanger:E,className:T,style:N,classNames:O,styles:D,totalBoundaryShowSizeChanger:j}=Rt("pagination"),B=R("pagination",n),[V,U]=cK(B),G=pr(d),Y=G==="small"||!!(C&&!G&&m),_={...e,size:G},[H,F]=Bt([O,v],[D,b],{props:_}),[I]=ao("Pagination",hT),z={...I,...f},[L,P]=PR(g),[A,k]=PR(E),q=L??A,K=P??k,Z=h||Fr,J=l.useMemo(()=>y?y.map(ce=>Number(ce)):void 0,[y]),re=ce=>{const{disabled:me,size:ae,onSizeChange:fe,"aria-label":ge,className:he,options:ye}=ce,{className:Ae,onChange:xe}=K||{},Se=ye.find(ue=>String(ue.value)===String(ae))?.value;return l.createElement(Z,{disabled:me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ue=>ue.parentNode,"aria-label":ge,options:ye,...K,value:Se,onChange:(ue,ve)=>{fe?.(ue),xe?.(ue,ve)},size:G,className:Q(he,Ae)})},ie=l.useMemo(()=>{const ce=l.createElement("span",{className:`${B}-item-ellipsis`},"•••"),me=l.createElement("button",{className:`${B}-item-link`,type:"button",tabIndex:-1},$==="rtl"?l.createElement(Ts,null):l.createElement(Ou,null)),ae=l.createElement("button",{className:`${B}-item-link`,type:"button",tabIndex:-1},$==="rtl"?l.createElement(Ou,null):l.createElement(Ts,null)),fe=l.createElement("a",{className:`${B}-item-link`},l.createElement("div",{className:`${B}-item-container`},$==="rtl"?l.createElement(OR,{className:`${B}-item-link-icon`}):l.createElement(TR,{className:`${B}-item-link-icon`}),ce)),ge=l.createElement("a",{className:`${B}-item-link`},l.createElement("div",{className:`${B}-item-container`},$==="rtl"?l.createElement(TR,{className:`${B}-item-link-icon`}):l.createElement(OR,{className:`${B}-item-link-icon`}),ce));return{prevIcon:me,nextIcon:ae,jumpPrevIcon:fe,jumpNextIcon:ge}},[$,B]),ne=R("select",r),le=Q({[`${B}-${t}`]:!!t,[`${B}-${G}`]:G,[`${B}-mini`]:Y,[`${B}-rtl`]:$==="rtl",[`${B}-bordered`]:w.wireframe},T,a,s,H.root,V,U),se={...F.root,...N,...c};return l.createElement(l.Fragment,null,w.wireframe&&l.createElement(dK,{prefixCls:B}),l.createElement(eK,{...ie,...x,styles:F,classNames:H,style:se,prefixCls:B,selectPrefixCls:ne,className:le,locale:z,pageSizeOptions:J,showSizeChanger:q,totalBoundaryShowSizeChanger:x.totalBoundaryShowSizeChanger??j,sizeChangerRender:re}))},yp=100,S3=yp/5,C3=yp/2-S3/2,ab=C3*2*Math.PI,zR=50,AR=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:C3,cx:zR,cy:zR,strokeWidth:S3,style:n})},mK=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[s,c]=l.useState(!1);It(()=>{e!==0&&c(!0)},[e!==0]);const d=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${ab/4}`,strokeDasharray:`${ab*d/100} ${ab*(100-d)/100}`};return l.createElement("span",{className:Q(r,`${n}-progress`,d<=0&&a)},l.createElement("svg",{viewBox:`0 0 ${yp} ${yp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},l.createElement(AR,{dotClassName:n,hasCircleCls:!0}),l.createElement(AR,{dotClassName:n,style:f})))};function pK(e){const{prefixCls:t,percent:n=0,className:r,style:a}=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:a},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(mK,{prefixCls:t,percent:n}))}function gK(e){const{prefixCls:t,indicator:n,percent:r,className:a,style:s}=e,c=`${t}-dot`;return n&&l.isValidElement(n)?or(n,d=>({className:Q(d.className,c,a),style:{...d.style,...s},percent:r})):l.createElement(pK,{prefixCls:t,percent:r,className:a,style:s})}const hK=new At("antSpinMove",{to:{opacity:1}}),yK=new At("antRotate",{to:{transform:"rotate(405deg)"}}),bK=e=>{const{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Jt(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},vK=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[a,s]=Ut(n,"spin");return{[t]:{[a("dot-holder-size")]:e.dotSize,[a("dot-item-size")]:`calc((${s("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:s("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(c=>`${c} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:s("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:yK,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:s("dot-item-size"),height:s("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:hK,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"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(c=>`${c} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},SK=e=>{const{componentCls:t}=e,[n]=Ut(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},CK=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},xK=Pt("Spin",e=>{const t=Nt(e,{spinDotDefault:e.colorTextDescription});return[bK(t),vK(t),SK(t)]},CK),$K=200,DR=[[30,.05],[70,.03],[96,.01]];function wK(e,t){const[n,r]=l.useState(0),a=l.useRef(null),s=t==="auto";return l.useEffect(()=>(s&&e&&(r(0),a.current=setInterval(()=>{r(c=>{const d=100-c;for(let f=0;f<DR.length;f+=1){const[m,g]=DR[f];if(c<=m)return c+d*g}return c})},$K)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[s,e]),s?n:t}let x3;function EK(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const bp=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:a,rootClassName:s,size:c="default",tip:d,description:f,wrapperClassName:m,style:g,children:h,fullscreen:y=!1,indicator:b,percent:v,classNames:x,styles:C,...w}=e,{getPrefixCls:R,direction:$,indicator:E,className:T,style:N,classNames:O,styles:D}=Rt("spin"),j=R("spin",t),[B,V]=xK(j),[U,G]=l.useState(()=>n&&!EK(n,r)),Y=wK(U,v);l.useEffect(()=>{if(n){const k=Wq(r,()=>{G(!0)});return k(),()=>{k?.cancel?.()}}G(!1)},[r,n]);const _=f??d,H={...e,size:c,spinning:U,tip:_,description:_,fullscreen:y,children:h,percent:Y},[F,I]=Bt([O,x],[D,C],{props:H}),z=b??E??x3,L=typeof h<"u",P=L||y,A=l.createElement(l.Fragment,null,l.createElement(gK,{className:Q(F.indicator),style:I.indicator,prefixCls:j,indicator:z,percent:Y}),_&&l.createElement("div",{className:Q(`${j}-description`,F.tip,F.description),style:{...I.tip,...I.description}},_));return l.createElement("div",{className:Q(j,{[`${j}-sm`]:c==="small",[`${j}-lg`]:c==="large",[`${j}-spinning`]:U,[`${j}-rtl`]:$==="rtl",[`${j}-fullscreen`]:y},s,F.root,y&&F.mask,P?m:[`${j}-section`,F.section],T,a,B,V),style:{...I.root,...P?{}:I.section,...y?I.mask:{},...N,...g},"aria-live":"polite","aria-busy":U,...w},U&&(P?l.createElement("div",{className:Q(`${j}-section`,F.section),style:I.section},A):A),L&&l.createElement("div",{className:Q(`${j}-container`,F.container),style:I.container},h))};bp.setDefaultIndicator=e=>{x3=e};const P1=oe.createContext({});P1.Consumer;const MK=({prefixCls:e,className:t,avatar:n,title:r,description:a,...s})=>{const{getPrefixCls:c}=l.useContext(dt),d=c("list",e),f=Q(`${d}-item-meta`,t),m=oe.createElement("div",{className:`${d}-item-meta-content`},r&&oe.createElement("h4",{className:`${d}-item-meta-title`},r),a&&oe.createElement("div",{className:`${d}-item-meta-description`},a));return oe.createElement("div",{...s,className:f},n&&oe.createElement("div",{className:`${d}-item-meta-avatar`},n),(r||a)&&m)},RK=oe.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:s,styles:c,className:d,classNames:f,colStyle:m,...g}=e,{grid:h,itemLayout:y}=l.useContext(P1),{getPrefixCls:b,list:v}=l.useContext(dt),x=O=>Q(v?.item?.classNames?.[O],f?.[O]),C=O=>({...v?.item?.styles?.[O],...c?.[O]}),w=()=>{const O=fr(r);return O.some(j=>typeof j=="string")&&O.length>1},R=()=>y==="vertical"?!!s:!w(),$=b("list",n),E=a&&a.length>0&&oe.createElement("ul",{className:Q(`${$}-item-action`,x("actions")),key:"actions",style:C("actions")},a.map((O,D)=>oe.createElement("li",{key:`${$}-item-action-${D}`},O,D!==a.length-1&&oe.createElement("em",{className:`${$}-item-action-split`})))),T=h?"div":"li",N=oe.createElement(T,{...g,...h?{}:{ref:t},className:Q(`${$}-item`,{[`${$}-item-no-flex`]:!R()},d)},y==="vertical"&&s?[oe.createElement("div",{className:`${$}-item-main`,key:"content"},r,E),oe.createElement("div",{className:Q(`${$}-item-extra`,x("extra")),key:"extra",style:C("extra")},s)]:[r,E,or(s,{key:"extra"})]);return h?oe.createElement(Kq,{ref:t,flex:1,style:m},N):N}),$3=RK;$3.Meta=MK;const TK=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:s,itemPaddingLG:c,marginLG:d,borderRadiusLG:f}=e,m=te(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${m} ${m} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${m} ${m}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${te(a)} ${te(d)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},OK=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:s,margin:c}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@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)}`}}}}}},NK=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:s,marginLG:c,padding:d,itemPadding:f,colorPrimary:m,itemPaddingSM:g,itemPaddingLG:h,paddingXS:y,margin:b,colorText:v,colorTextDescription:x,motionDurationSlow:C,lineWidth:w,headerBg:R,footerBg:$,emptyTextPadding:E,metaMarginBottom:T,avatarMarginRight:N,titleMarginBottom:O,descriptionFontSize:D}=e;return{[t]:{...Jt(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:R},[`${t}-footer`]:{background:$},[`${t}-header, ${t}-footer`]:{paddingBlock:s},[`${t}-pagination`]:{marginBlockStart:c,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:v,[`${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:v},[`${t}-item-meta-title`]:{margin:`0 0 ${te(e.marginXXS)} 0`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${C}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:x,fontSize:D,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:x,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:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:E,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:b,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:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:v,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"}}}}},IK=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}),PK=Pt("List",e=>{const t=Nt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[NK(t),TK(t),OK(t)]},IK,{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),zK=(e,t)=>{const{pagination:n=!1,prefixCls:r,bordered:a=!1,split:s=!0,className:c,rootClassName:d,style:f,children:m,itemLayout:g,loadMore:h,grid:y,dataSource:b=[],size:v,header:x,footer:C,loading:w=!1,rowKey:R,renderItem:$,locale:E,...T}=e,N=n&&typeof n=="object"?n:{},[O,D]=l.useState(N.defaultCurrent||1),[j,B]=l.useState(N.defaultPageSize||10),{getPrefixCls:V,direction:U,className:G,style:Y}=Rt("list"),{renderEmpty:_}=l.useContext(dt),H={current:1,total:0,position:"bottom"},F=Se=>(ue,ve)=>{D(ue),B(ve),n&&n?.[Se]?.(ue,ve)},I=F("onChange"),z=F("onShowSizeChange"),L=(Se,ue)=>{if(!$)return null;let ve;return typeof R=="function"?ve=R(Se):R?ve=Se[R]:ve=Se.key,ve||(ve=`list-item-${ue}`),l.createElement(l.Fragment,{key:ve},$(Se,ue))},P=!!(h||n||C),A=V("list",r),[k,q]=PK(A);let K=w;typeof K=="boolean"&&(K={spinning:K});const Z=!!K?.spinning,J=pr(v);let re="";switch(J){case"large":re="lg";break;case"small":re="sm";break}const ie=Q(A,{[`${A}-vertical`]:g==="vertical",[`${A}-${re}`]:re,[`${A}-split`]:s,[`${A}-bordered`]:a,[`${A}-loading`]:Z,[`${A}-grid`]:!!y,[`${A}-something-after-last-item`]:P,[`${A}-rtl`]:U==="rtl"},G,c,d,k,q),ne=`${A}-container`,le=tv(H,{total:b.length,current:O,pageSize:j},n||{}),se=Math.ceil(le.total/le.pageSize);le.current=Math.min(le.current,se);const ce=n&&l.createElement("div",{className:Q(`${A}-pagination`)},l.createElement(fK,{align:"end",...le,onChange:I,onShowSizeChange:z}));let me=$n(b);n&&b.length>(le.current-1)*le.pageSize&&(me=$n(b).splice((le.current-1)*le.pageSize,le.pageSize));const ae=Object.keys(y||{}).some(Se=>Ea.includes(Se)),fe=Lp(ae),ge=l.useMemo(()=>{for(let Se=0;Se<Ea.length;Se+=1){const ue=Ea[Se];if(fe[ue])return ue}},[fe]),he=l.useMemo(()=>{if(!y)return;const Se=ge&&y[ge]?y[ge]:y.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[JSON.stringify(y),ge]);let ye=Z&&l.createElement("div",{style:{minHeight:53}});if(me.length>0){const Se=me.map(L);ye=y?l.createElement(Zq,{className:Q(ne,q),gutter:y.gutter},l.Children.map(Se,ue=>l.createElement("div",{key:ue?.key,style:he},ue))):l.createElement("ul",{className:Q(`${A}-items`,ne,q)},Se)}else!m&&!Z&&(ye=l.createElement("div",{className:`${A}-empty-text`},E?.emptyText||_?.("List")||l.createElement(JO,{componentName:"List"})));const Ae=le.position,xe=l.useMemo(()=>({grid:y,itemLayout:g}),[JSON.stringify(y),g]);return l.createElement(P1.Provider,{value:xe},l.createElement("div",{ref:t,style:{...Y,...f},className:ie,...T},(Ae==="top"||Ae==="both")&&ce,x&&l.createElement("div",{className:`${A}-header`},x),l.createElement(bp,{...K},ye,m),C&&l.createElement("div",{className:`${A}-footer`},C),h||(Ae==="bottom"||Ae==="both")&&ce))},AK=l.forwardRef(zK),Co=AK;Co.Item=$3;const DK=(e,t=!1)=>t&&!Mr(e)?[]:Array.isArray(e)?e:[e];let Ui=null,Ji=e=>e(),od=[],ad={};function jR(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=ad,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:a}}const jK=oe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(dt),s=ad.prefixCls||a("message"),c=l.useContext(XH),[d,f]=GT({...n,prefixCls:s,...c.message});return oe.useImperativeHandle(t,()=>{const m={...d};return Object.keys(m).forEach(g=>{m[g]=(...h)=>(r(),d[g].apply(d,h))}),{instance:m,sync:r}}),f}),_K=oe.forwardRef((e,t)=>{const[n,r]=oe.useState(jR),a=()=>{r(jR)};oe.useEffect(a,[]);const s=kT(),c=s.getRootPrefixCls(),d=s.getIconPrefixCls(),f=s.getTheme(),m=oe.createElement(jK,{ref:t,sync:a,messageConfig:n});return oe.createElement(ta,{prefixCls:c,iconPrefixCls:d,theme:f},s.holderRender?s.holderRender(m):m)}),ng=()=>{if(!Ui){const e=document.createDocumentFragment(),t={fragment:e};Ui=t,Ji(()=>{WS(oe.createElement(_K,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,ng())})}}),e)});return}Ui.instance&&(od.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ji(()=>{const r=Ui.instance.open({...ad,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ji(()=>{Ui?.instance.destroy(e.key)});break;default:Ji(()=>{var r;const a=(r=Ui.instance)[t].apply(r,$n(e.args));a?.then(e.resolve),e.setCloseFn(a)})}}),od=[])};function HK(e){ad={...ad,...e},Ji(()=>{Ui?.sync?.()})}function BK(e){const t=kS(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return od.push(a),()=>{r?Ji(()=>{r()}):a.skipped=!0}});return ng(),t}function LK(e,t){const n=kS(r=>{let a;const s={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return od.push(s),()=>{a?Ji(()=>{a()}):s.skipped=!0}});return ng(),n}const VK=e=>{od.push({type:"destroy",key:e}),ng()},FK=["success","info","warning","error","loading"],kK={open:BK,destroy:VK,config:HK,useMessage:xD,_InternalPanelDoNotUseOrYouWillBeFired:gD},En=kK;FK.forEach(e=>{En[e]=(...t)=>LK(e,t)});const WK=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:s,title:c,children:d,footer:f,classNames:m,styles:g,...h}=e,{getPrefixCls:y}=l.useContext(dt),{className:b,style:v,classNames:x,styles:C}=Rt("modal"),w=y(),R=t||y("modal"),$=ir(w),[E,T]=EO(R,$),[N,O]=Bt([x,m],[C,g],{props:e}),D=`${R}-confirm`;let j={};return s?j={closable:a??!1,title:"",footer:"",children:l.createElement(RO,{...e,prefixCls:R,confirmPrefixCls:D,rootPrefixCls:w,content:d})}:j={closable:a??!0,title:c,footer:f!==null&&l.createElement(CO,{...e}),children:d},l.createElement(dO,{prefixCls:R,className:Q(E,`${R}-pure-panel`,s&&D,s&&`${D}-${s}`,n,b,T,$,N.root),style:{...v,...O.root},...h,closeIcon:SO(R,r),closable:a,classNames:N,styles:O,...j})},YK=jO(WK);function w3(e){return $d(IO(e))}const io=MO;io.useModal=GH;io.info=function(t){return $d(PO(t))};io.success=function(t){return $d(zO(t))};io.error=function(t){return $d(AO(t))};io.warning=w3;io.warn=w3;io.confirm=function(t){return $d(DO(t))};io.destroyAll=function(){for(;Zi.length;){const t=Zi.pop();t&&t()}};io.config=WH;io._InternalPanelDoNotUseOrYouWillBeFired=YK;const UK=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:s,colorWarning:c,marginXXS:d,marginXS:f,fontSize:m,fontWeightStrong:g,colorTextHeading:h}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:m},[`${t}-message`]:{marginBottom:f,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:m,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}}}}},qK=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},E3=Pt("Popconfirm",e=>UK(e),qK,{resetStyle:!1}),M3=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:s,cancelText:c,okText:d,okType:f="primary",icon:m=l.createElement(Hs,null),showCancel:g=!0,close:h,onConfirm:y,onCancel:b,onPopupClick:v,classNames:x,styles:C}=e,{getPrefixCls:w}=l.useContext(dt),[R]=ao("Popconfirm",Ra.Popconfirm),$=Is(a),E=Is(s);return l.createElement("div",{className:`${t}-inner-content`,onClick:v},l.createElement("div",{className:`${t}-message`},m&&l.createElement("span",{className:`${t}-message-icon`},m),l.createElement("div",{className:`${t}-message-text`},$&&l.createElement("div",{className:Q(`${t}-title`,x?.title),style:C?.title},$),E&&l.createElement("div",{className:Q(`${t}-description`,x?.content),style:C?.content},E))),l.createElement("div",{className:`${t}-buttons`},g&&l.createElement(_t,{onClick:b,size:"small",...r},c||R?.cancelText),l.createElement(GS,{buttonProps:{size:"small",...YS(f),...n},actionFn:y,close:h,prefixCls:w("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||R?.okText)))},GK=e=>{const{prefixCls:t,placement:n,className:r,style:a,...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("popconfirm",t);return E3(d),l.createElement(u6,{placement:n,className:Q(d,r),style:a,content:l.createElement(M3,{prefixCls:d,...s})})},XK=l.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:a,okType:s="primary",icon:c=l.createElement(Hs,null),children:d,overlayClassName:f,onOpenChange:m,overlayStyle:g,styles:h,arrow:y,classNames:b,...v}=e,{getPrefixCls:x,className:C,style:w,classNames:R,styles:$,arrow:E,trigger:T}=Rt("popconfirm"),[N,O]=Yt(e.defaultOpen??!1,e.open),D=i1(y,E),j=a||T||"click",B=L=>{O(L),m?.(L)},V=()=>{B(!1)},U=L=>e.onConfirm?.call(void 0,L),G=L=>{B(!1),e.onCancel?.call(void 0,L)},Y=L=>{const{disabled:P=!1}=e;P||B(L)},_=x("popconfirm",n),H={...e,placement:r,trigger:j,okType:s,overlayStyle:g,styles:h,classNames:b},[F,I]=Bt([R,b],[$,h],{props:H}),z=Q(_,C,f,F.root);return E3(_),l.createElement(d6,{arrow:D,...rn(v,["title"]),trigger:j,placement:r,onOpenChange:Y,open:N,ref:t,classNames:{root:z,container:F.container,arrow:F.arrow},styles:{root:{...w,...I.root,...g},container:I.container,arrow:I.arrow},content:l.createElement(M3,{okType:s,icon:c,...e,prefixCls:_,close:V,onConfirm:U,onCancel:G,classNames:F,styles:I}),"data-popover-inject":!0},d)}),F0=XK;F0._InternalPanelDoNotUseOrYouWillBeFired=GK;const KK={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},QK=()=>{const e=l.useRef([]),t=l.useRef(null);return l.useEffect(()=>{const n=Date.now();let r=!1;e.current.forEach(a=>{if(!a)return;r=!0;const s=a.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(s.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},_R=({bg:e,children:t})=>l.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function HR(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),a=`${Math.floor(r*t)}%`;return`${e[n]} ${a}`})}const ZK=l.forwardRef((e,t)=>{const{prefixCls:n,color:r,gradientId:a,radius:s,className:c,style:d,ptg:f,strokeLinecap:m,strokeWidth:g,size:h,gapDegree:y}=e,b=r&&typeof r=="object",v=b?"#FFF":void 0,x=h/2,C=l.createElement("circle",{className:Q(`${n}-circle-path`,c),r:s,cx:x,cy:x,stroke:v,strokeLinecap:m,strokeWidth:g,opacity:f===0?0:1,style:d,ref:t});if(!b)return C;const w=`${a}-conic`,R=y?`${180+y/2}deg`:"0deg",$=HR(r,(360-y)/360),E=HR(r,1),T=`conic-gradient(from ${R}, ${$.join(", ")})`,N=`linear-gradient(to ${y?"bottom":"top"}, ${E.join(", ")})`;return l.createElement(l.Fragment,null,l.createElement("mask",{id:w},C),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:`url(#${w})`},l.createElement(_R,{bg:N},l.createElement(_R,{bg:T}))))}),au=100,ib=(e,t,n,r,a,s,c,d,f,m,g=0)=>{const h=n/100*360*((360-s)/360),y=s===0?0:{bottom:0,top:180,left:90,right:-90}[c];let b=(100-r)/100*t;f==="round"&&r!==100&&(b+=m/2,b>=t&&(b=t-.01));const v=au/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:b+g,transform:`rotate(${a+h+y}deg)`,transformOrigin:`${v}px ${v}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}},JK=(({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:oe.createElement("style",null,`@keyframes ${n} {
|
|
321
|
+
0% { transform: rotate(0deg); }
|
|
322
|
+
100% { transform: rotate(360deg); }
|
|
323
|
+
}`)}});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)}function BR(e){const t=e??[];return Array.isArray(t)?t:[t]}const eQ=e=>{const{id:t,prefixCls:n,classNames:r={},styles:a={},steps:s,strokeWidth:c,railWidth:d,gapDegree:f=0,gapPosition:m,railColor:g,strokeLinecap:h,style:y,className:b,strokeColor:v,percent:x,loading:C,...w}={...KK,...e},R=au/2,$=Ho(t),E=`${$}-gradient`,T=R-c/2,N=Math.PI*2*T,O=f>0?90+f/2:-90,D=N*((360-f)/360),{count:j,gap:B}=typeof s=="object"?s:{count:s,gap:2},V=BR(x),U=BR(v),G=U.find(A=>A&&typeof A=="object"),_=G&&typeof G=="object"?"butt":h,{indeterminateStyleProps:H,indeterminateStyleAnimation:F}=JK({id:$,loading:C}),I=ib(N,D,0,100,O,f,m,g,_,c),z=QK(),L=()=>{let A=0;return V.map((k,q)=>{const K=U[q]||U[U.length-1],Z=ib(N,D,A,k,O,f,m,K,_,c);return A+=k,l.createElement(ZK,{key:q,color:K,ptg:k,radius:T,prefixCls:n,gradientId:E,className:r.track,style:{...Z,...H,...a.track},strokeLinecap:_,strokeWidth:c,gapDegree:f,ref:J=>{z[q]=J},size:au})}).reverse()},P=()=>{const A=Math.round(j*(V[0]/100)),k=100/j;let q=0;return new Array(j).fill(null).map((K,Z)=>{const J=Z<=A-1?U[0]:g,re=J&&typeof J=="object"?`url(#${E})`:void 0,ie=ib(N,D,q,k,O,f,m,J,"butt",c,B);return q+=(D-ie.strokeDashoffset+B)*100/D,l.createElement("circle",{key:Z,className:Q(`${n}-circle-path`,r.track),r:T,cx:R,cy:R,stroke:re,strokeWidth:c,opacity:1,style:{...ie,...a.track},ref:ne=>{z[Z]=ne}})})};return l.createElement("svg",k0({className:Q(`${n}-circle`,r.root,b),viewBox:`0 0 ${au} ${au}`,style:{...a.root,...y},id:t,role:"presentation"},w),!j&&l.createElement("circle",{className:Q(`${n}-circle-rail`,r.rail),r:T,cx:R,cy:R,stroke:g,strokeLinecap:_,strokeWidth:d||c,style:{...I,...a.rail}}),j?P():L(),F)};function nl(e){return!e||e<0?0:e>100?100:e}function vp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const tQ=({percent:e,success:t})=>{const n=nl(vp({success:t}));return[n,nl(nl(e)-n)]},nQ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Ss.green,t||null]},rg=(e,t,n)=>{let r=-1,a=-1;if(t==="step"){const s=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,a=c??8):typeof e=="number"?[r,a]=[e,e]:[r=14,a=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"?a=s||(e==="small"?6:8):typeof e=="number"?[r,a]=[e,e]:[r=-1,a=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,a]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,a]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,a=e[0]??e[1]??120));return[r,a]},rQ=3,oQ=e=>rQ/e*100,LR=["root","body","indicator"],aQ=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:a,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:f,gapDegree:m,width:g=120,type:h,children:y,success:b,size:v=g,steps:x}=e,{direction:C}=Rt("progress"),w=a??s,[R,$]=rg(v,"circle");let{strokeWidth:E}=e;E===void 0&&(E=Math.max(oQ(R),6));const T={width:R,height:$,fontSize:R*.15+6},N=l.useMemo(()=>{if(m||m===0)return m;if(h==="dashboard")return 75},[m,h]),O=tQ(e),D=l.useMemo(()=>{const _=(f??d)||h==="dashboard"&&"bottom"||void 0,H=C==="rtl";switch(_){case"start":return H?"right":"left";case"end":return H?"left":"right";default:return _}},[C,f,d,h]),j=Object.prototype.toString.call(e.strokeColor)==="[object Object]",B=nQ({success:b,strokeColor:e.strokeColor}),V=Q(`${t}-body`,{[`${t}-circle-gradient`]:j},n.body),U=l.createElement(eQ,{steps:x,percent:x?O[1]:O,strokeWidth:E,railWidth:E,strokeColor:x?B[1]:B,strokeLinecap:c,railColor:w,prefixCls:t,gapDegree:N,gapPosition:D,classNames:rn(n,LR),styles:rn(r,LR)}),G=R<=20,Y=l.createElement("div",{className:V,style:{...T,...r.body}},U,!G&&y);return G?l.createElement(dr,{title:y},Y):Y},W0="--progress-line-stroke-color",iQ=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}})},lQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Jt(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}}}}},sQ=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:iQ(),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)"}}}}},cQ=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"}}}},uQ=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}}}}}},dQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},fQ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),mQ=Pt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Nt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[lQ(n),sQ(n),cQ(n),uQ(n),dQ(n)]},fQ),pQ=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(", ")},gQ=(e,t)=>{const{from:n=Ss.blue,to:r=Ss.blue,direction:a=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=pQ(s),f=`linear-gradient(${a}, ${d})`;return{background:f,[W0]:f}}const c=`linear-gradient(${a}, ${n}, ${r})`;return{background:c,[W0]:c}},hQ=e=>{const{prefixCls:t,classNames:n,styles:r,direction:a,percent:s,size:c,strokeWidth:d,strokeColor:f,strokeLinecap:m="round",children:g,railColor:h,trailColor:y,percentPosition:b,success:v}=e,{align:x,type:C}=b,w=h??y,R=m==="square"||m==="butt"?0:void 0,$=c??[-1,d||(c==="small"?6:8)],[E,T]=rg($,"line",{strokeWidth:d}),N={backgroundColor:w||void 0,borderRadius:R,height:T},O=`${t}-track`,D=f&&typeof f!="string"?gQ(f,a):{[W0]:f,background:f},j={width:`${nl(s)}%`,height:T,borderRadius:R,...D},B=vp(e),V={width:`${nl(B)}%`,height:T,borderRadius:R,backgroundColor:v?.strokeColor};return l.createElement("div",{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:x==="center"&&C==="outer"}),style:{width:E>0?E:"100%",...r.body}},l.createElement("div",{className:Q(`${t}-rail`,n.rail),style:{...N,...r.rail}},l.createElement("div",{className:Q(O,n.track),style:{...j,...r.track}},C==="inner"&&g),B!==void 0&&l.createElement("div",{className:Q(O,`${O}-success`,n.track),style:{...V,...r.track}})),C==="outer"&&g)},yQ=e=>{const{classNames:t,styles:n,size:r,steps:a,rounding:s=Math.round,percent:c=0,strokeWidth:d=8,strokeColor:f,railColor:m,trailColor:g,prefixCls:h,children:y}=e,b=s(a*(c/100)),x=r??[r==="small"?2:14,d],[C,w]=rg(x,"step",{steps:a,strokeWidth:d}),R=C/a,$=Array.from({length:a}),E=m??g;for(let T=0;T<a;T++){const N=Array.isArray(f)?f[T]:f;$[T]=l.createElement("div",{key:T,className:Q(`${h}-steps-item`,{[`${h}-steps-item-active`]:T<=b-1},t.track),style:{backgroundColor:T<=b-1?N:E,width:R,height:w,...n.track}})}return l.createElement("div",{className:Q(`${h}-steps-body`,t.body),style:n.body},$,y)},bQ=["normal","exception","active","success"],vQ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,classNames:s,styles:c,steps:d,strokeColor:f,percent:m=0,size:g="default",showInfo:h=!0,type:y="line",status:b,format:v,style:x,percentPosition:C={},...w}=e,{align:R="end",type:$="outer"}=C,E=Array.isArray(f)?f[0]:f,T=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(E){const J=typeof E=="string"?E:Object.values(E)[0];return new nn(J).isLight()}return!1},[f]),O=l.useMemo(()=>{const J=vp(e);return Number.parseInt(J!==void 0?(J??0)?.toString():(m??0)?.toString(),10)},[m,e.success]),D=l.useMemo(()=>!bQ.includes(b)&&O>=100?"success":b||"normal",[b,O]),{getPrefixCls:j,direction:B,className:V,style:U,classNames:G,styles:Y}=Rt("progress"),_=j("progress",n),[H,F]=mQ(_),I={...e,percent:m,type:y,size:g,showInfo:h,percentPosition:C},[z,L]=Bt([G,s],[Y,c],{props:I}),P=y==="line",A=P&&!d,k=l.useMemo(()=>{if(!h)return null;const J=vp(e);let re;const ie=v||(le=>`${le}%`),ne=P&&N&&$==="inner";return $==="inner"||v||D!=="exception"&&D!=="success"?re=ie(nl(m),nl(J)):D==="exception"?re=P?l.createElement(_s,null):l.createElement(Ur,null):D==="success"&&(re=P?l.createElement(Op,null):l.createElement(pl,null)),l.createElement("span",{className:Q(`${_}-indicator`,{[`${_}-indicator-bright`]:ne,[`${_}-indicator-${R}`]:A,[`${_}-indicator-${$}`]:A},z.indicator),style:L.indicator,title:typeof re=="string"?re:void 0},re)},[h,m,O,D,y,_,v,P,N,$,R,A,z.indicator,L.indicator]),q={...e,classNames:z,styles:L};let K;y==="line"?K=d?l.createElement(yQ,{...q,strokeColor:T,prefixCls:_,steps:typeof d=="object"?d.count:d},k):l.createElement(hQ,{...q,strokeColor:E,prefixCls:_,direction:B,percentPosition:{align:R,type:$}},k):(y==="circle"||y==="dashboard")&&(K=l.createElement(aQ,{...q,strokeColor:E,prefixCls:_,progressStatus:D},k));const Z=Q(_,`${_}-status-${D}`,{[`${_}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${_}-inline-circle`]:y==="circle"&&rg(g,"circle")[0]<=20,[`${_}-line`]:A,[`${_}-line-align-${R}`]:A,[`${_}-line-position-${$}`]:A,[`${_}-steps`]:d,[`${_}-show-info`]:h,[`${_}-${g}`]:typeof g=="string",[`${_}-rtl`]:B==="rtl"},V,r,a,z.root,H,F);return l.createElement("div",{ref:t,style:{...U,...L.root,...x},className:Z,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...rn(w,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},K)});var SQ={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 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 CQ=(e,t)=>l.createElement(pt,Y0({},e,{ref:t,icon:SQ})),R3=l.forwardRef(CQ);function xQ(e){const{prefixCls:t,className:n,style:r,status:a}=e,s=`${t}-rail`;return l.createElement("div",{className:Q(s,`${s}-${a}`,n),style:r})}const $Q=l.createContext({}),z1=l.createContext(null);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 T3=l.createContext({}),VR=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext(z1),{className:m,style:g}=l.useContext(T3),h=`${c}-item`;return l.createElement("div",U0({},An(s,!1),{ref:t,className:Q(`${h}-icon`,d.itemIcon,m,n),style:{...f.itemIcon,...g,...r}}),a)});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)}function lb(e){return e!=null}function wQ(e){const{prefixCls:t,classNames:n,styles:r,data:a,last:s,nextStatus:c,active:d,index:f,itemRender:m,iconRender:g,itemWrapperRender:h,onClick:y}=e,b=`${t}-item`,{railFollowPrevStatus:v}=l.useContext($Q),{ItemComponent:x}=l.useContext(z1),{onClick:C,title:w,subTitle:R,content:$,description:E,disabled:T,icon:N,status:O,className:D,style:j,classNames:B={},styles:V={},...U}=a,G=$??E,Y={item:{...a,content:G},index:f,active:d},_=!!(y||C)&&!T,H={};_&&(H.role="button",H.tabIndex=0,H.onClick=q=>{C?.(q),y(f)},H.onKeyDown=q=>{const{which:K}=q;(K===it.ENTER||K===it.SPACE)&&y(f)});const F=O||"wait",I=lb(w),z=lb(R),L=Q(b,`${b}-${F}`,{[`${b}-custom`]:N,[`${b}-active`]:d,[`${b}-disabled`]:T===!0,[`${b}-empty-header`]:!I&&!z},D,n.item,B.root);let P=l.createElement(VR,null);g&&(P=g(P,{...Y,components:{Icon:VR}}));const A=l.createElement("div",{className:Q(`${b}-wrapper`,n.itemWrapper,B.wrapper),style:{...r.itemWrapper,...V.wrapper}},l.createElement(T3.Provider,{value:{className:B.icon,style:V.icon}},P),l.createElement("div",{className:Q(`${b}-section`,n.itemSection,B.section),style:{...r.itemSection,...V.section}},l.createElement("div",{className:Q(`${b}-header`,n.itemHeader,B.header),style:{...r.itemHeader,...V.header}},I&&l.createElement("div",{className:Q(`${b}-title`,n.itemTitle,B.title),style:{...r.itemTitle,...V.title}},w),z&&l.createElement("div",{title:typeof R=="string"?R:void 0,className:Q(`${b}-subtitle`,n.itemSubtitle,B.subtitle),style:{...r.itemSubtitle,...V.subtitle}},R),!s&&l.createElement(xQ,{prefixCls:b,className:Q(n.itemRail,B.rail),style:{...r.itemRail,...V.rail},status:v?O:c})),lb(G)&&l.createElement("div",{className:Q(`${b}-content`,n.itemContent,B.content),style:{...r.itemContent,...V.content}},G)));let k=l.createElement(x,q0({},U,H,{className:L,style:{...r.item,...V.root,...j}}),h?h(A):A);return m&&(k=m(k,Y)||null),k}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 FR={};function EQ(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:a=FR,styles:s=FR,rootClassName:c,orientation:d,titlePlacement:f,components:m,status:g="process",current:h=0,initial:y=0,onChange:b,items:v,iconRender:x,itemRender:C,itemWrapperRender:w,...R}=e,$=d==="vertical",E=$?"vertical":"horizontal",T=!$&&f==="vertical"?"vertical":"horizontal",N=Q(t,`${t}-${E}`,`${t}-title-${T}`,c,r,a.root),O=oe.useMemo(()=>(v||[]).filter(Boolean),[v]),D=oe.useMemo(()=>O.map(({status:Y},_)=>{const H=y+_;return Y||(H===h?g:H<h?"finish":"wait")}),[O,g,h,y]),j=Y=>{b&&h!==Y&&b(Y)},{root:B="div",item:V="div"}=m||{},U=oe.useMemo(()=>({prefixCls:t,classNames:a,styles:s,ItemComponent:V}),[t,a,s,V]),G=(Y,_)=>{const H=y+_,F=D[_],I=D[_+1],z={...Y,status:F};return oe.createElement(wQ,{key:H,prefixCls:t,classNames:a,styles:s,data:z,nextStatus:I,active:H===h,index:H,last:O.length-1===_,iconRender:x,itemRender:C,itemWrapperRender:w,onClick:b&&j})};return oe.createElement(B,G0({className:N,style:{...n,...s?.root}},R),oe.createElement(z1.Provider,{value:U},O.map(G)))}const MQ=l.createContext(null),RQ=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"}))},TQ=e=>{const{prefixCls:t,rootPrefixCls:n,children:r,percent:a}=e,s=`${t}-item-progress-icon`,c=`${s}-circle`,[,d]=Ut(n,"cmp-steps"),f=`calc(${d("progress-radius")} * 2 * ${Math.PI*a/100}) 9999`;return l.createElement(l.Fragment,null,l.createElement("svg",{className:`${s}-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":a},l.createElement("title",null,"Progress"),l.createElement("circle",{className:Q(c,`${c}-rail`)}),l.createElement("circle",{className:Q(c,`${c}-ptg`),strokeDasharray:f,transform:"rotate(-90 50 50)"})),r)},OQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[a,s]=Ut(n,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${r}-rail`]:{[a("horizontal-rail-margin")]:`calc(${s("icon-size-max")} / 2 + ${s("item-wrapper-padding-top")})`,position:"static",marginTop:s("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:s("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},NQ=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r,iconSize:a,lineWidth:s,lineType:c,antCls:d}=e,f=`${t}-item`,[m,g]=Ut(d,"cmp-steps");return{[t]:{[m("icon-size")]:a,[m("icon-border-width")]:s,[`${f}-icon`]:{width:g("icon-size"),height:g("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:g("icon-size"),textAlign:"center",borderRadius:g("icon-size"),border:`${g("icon-border-width")} ${c} transparent`,transition:["background-color","border","color","inset","transform"].map(h=>`${h} ${r}`).join(", "),zIndex:1},[`${f}-custom ${f}-icon`]:{background:"none",border:0,fontSize:n}}}},IQ=e=>{const{componentCls:t,inlineDotSize:n,paddingXS:r,lineWidth:a,antCls:s,calc:c}=e,d=c(r).add(a).equal(),f=`${t}-item`,[m,g]=Ut(s,"cmp-steps");return{[`${t}-inline`]:{[m("items-offset")]:"0",[m("item-wrapper-padding-top")]:d,display:"inline-flex","&:before":{content:'""',flex:g("items-offset")},[f]:{[m("title-vertical-row-gap")]:r,[m("icon-size")]:n,[m("icon-size-active")]:n,[m("title-font-size")]:e.fontSizeSM,[m("title-line-height")]:e.lineHeightSM,[m("item-title-color")]:e.colorTextSecondary,[m("subtitle-font-size")]:e.fontSizeSM,[m("subtitle-line-height")]:e.lineHeightSM,[m("item-subtitle-color")]:e.colorTextQuaternary,[m("rail-size")]:e.lineWidth,[m("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-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${f}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function PQ(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}const A1=(e,t,n)=>{const{calc:r,componentCls:a,descriptionMaxWidth:s,antCls:c}=e,d=`${a}-item`,[,f]=Ut(c,"cmp-steps");return{[`@container style(${PQ(s)})`]:[{[`${d}-icon`]:{marginInlineStart:r(s).sub(f("icon-size")).div(2).equal()},[`${d}-rail`]:{width:"auto",insetInlineStart:r(s).add(f("icon-size")).div(2).add(t).equal(),insetInlineEnd:r(s).sub(f("icon-size")).div(2).sub(t).mul(-1).equal()}},n]}},zQ=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:a,margin:s,paddingSM:c,marginXXS:d,antCls:f,calc:m}=e,g=`${t}-item`,[h,y]=Ut(f,"cmp-steps");return{[t]:{[h("icon-size-max")]:`max(${y("icon-size")}, ${y("icon-size-active",y("icon-size"))})`,[`${g}-icon`]:{marginBlockStart:`calc((${y("heading-height")} - ${y("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[h("title-horizontal-item-margin")]:s,[h("title-horizontal-rail-margin")]:s,[h("title-horizontal-title-height")]:a,[h("heading-height")]:`max(${y("icon-size")}, ${y("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${g}:not(:first-child)`]:{marginInlineStart:y("title-horizontal-item-margin")},[`${g}:last-child`]:{flex:"0 1 auto"},[`${g}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${g}-wrapper`]:{columnGap:e.margin},[`${g}-empty-header`]:{[`${g}-header`]:{minHeight:"auto"},[`${g}-content`]:{marginTop:m(y("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${g}-section`]:{flex:1,minWidth:0},[`${g}-header`]:{minHeight:y("heading-height")},[`${g}-title`]:{flex:"0 1 auto"},[`${g}-content`]:{maxWidth:n},[`${g}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${g}-rail`]:{[h("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:y("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[h("title-vertical-row-gap")]:c,[h("title-horizontal-rail-gap")]:d,[h("heading-height")]:y("icon-size-max"),[`> ${g}`]:{flex:"1 1 0%",[`${g}-wrapper`]:{flexDirection:"column",rowGap:y("title-vertical-row-gap"),alignItems:"center"},[`${g}-section`]:{alignSelf:"stretch"},[`${g}-header`]:{flexDirection:"column",alignItems:"center"},[`${g}-title, ${g}-subtitle, ${g}-content`]:{textAlign:"center",maxWidth:"100%"},[`${g}-subtitle`]:{margin:0},[`${g}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${y("icon-size")} - ${y("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${y("icon-size")} / 2 + ${y("title-horizontal-rail-gap")})`}},...A1(e,r,{[`${g}:last-child`]:{flex:"none"},[`${g}-icon`]:{alignSelf:"flex-start"},[`${g}-section`]:{width:n}})}}},AQ=e=>{const{componentCls:t,fontSizeIcon:n,navContentMaxWidth:r,navArrowColor:a,colorPrimary:s,motionDurationSlow:c,antCls:d,calc:f}=e,m=`${t}-item`,g=s,[h,y]=Ut(d,"cmp-steps");return{[`${t}${t}-navigation`]:{[m.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${m}-wrapper`]:{paddingBlock:e.paddingSM},[`${m}-section`]:{maxWidth:r},[`${m}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:g,transition:`all ${c}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${a}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${a}`,content:'""'},[`&${m}-active`]:{[h("item-content-active-color")]:y("item-content-color"),[h("item-icon-active-bg-color")]:y("item-icon-bg-color"),[h("item-icon-active-border-color")]:y("item-icon-border-color"),[h("item-icon-active-text-color")]:y("item-icon-text-color")}},[`&${t}-horizontal`]:{[m]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${m}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:f(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[m.repeat(4)]:{[`${m}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${m}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:f(n).div(3).mul(2).equal(),height:f(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},DQ=e=>{const{componentCls:t,lineWidthBold:n,borderRadius:r,borderRadiusSM:a,motionDurationMid:s,paddingXS:c,lineType:d,paddingSM:f,antCls:m,calc:g}=e,h=`${t}-item`,[y,b]=Ut(m,"cmp-steps"),v=`${te(n)} ${d} ${b("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${h}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[h]:{flex:1,margin:0}}},{"&":{[y("panel-padding")]:f,[y("item-border-radius")]:r,[h]:{[y("panel-bg-color")]:b("item-icon-bg-color"),[y("panel-border-color")]:b("item-icon-border-color"),[y("panel-active-bg-color")]:b("item-icon-active-bg-color"),[y("panel-active-border-color")]:b("item-icon-active-border-color"),[y("panel-title-height")]:`calc(${b("title-font-size")} * ${b("title-line-height")})`,[y("item-base-height")]:g(b("panel-padding")).mul(2).add(b("icon-size")).add(b("panel-title-height")).equal(),[y("item-base-width")]:`calc(${b("item-base-height")} * 0.7071)`,transition:`background-color ${s}`}},[`${h}-icon`]:{display:"none"},[`${h}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:g(n).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:g(n).mul(2).add("100%").equal(),width:b("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:b("panel-bg-color"),stroke:b("panel-border-color"),strokeWidth:n,vectorEffect:"non-scaling-stroke",transition:`fill ${s}`}},[`${h}:last-child ${t}-panel-arrow`]:{display:"none"},[h]:{padding:b("panel-padding"),background:b("panel-bg-color"),position:"relative",borderBlock:v,"&:not(:first-child)":{paddingInlineStart:`calc(${b("panel-padding")} + ${b("item-base-width")})`},"&:first-child":{borderInlineStart:v,borderStartStartRadius:b("item-border-radius"),borderEndStartRadius:b("item-border-radius")},"&:last-child":{borderInlineEnd:v,borderStartEndRadius:b("item-border-radius"),borderEndEndRadius:b("item-border-radius")},"&-active":{background:b("panel-active-bg-color"),borderColor:b("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:b("panel-active-bg-color"),stroke:b("panel-active-border-color")}},[`${h}-title, ${h}-subtitle, ${h}-content`]:{color:b("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[y("panel-padding")]:c,[y("item-border-radius")]:a}},{[`&${t}-filled`]:{[h]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(n)} 0`,`calc(100% + ${b("item-base-width")}) 0`,`calc(100% + ${b("item-base-width")}) 100%`,`${te(n)} 100%`,`calc(${b("item-base-width")} + ${te(n)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:g(n).div(2).mul(-1).equal(),height:g(n).add("100%").equal()}}}]}},jQ=e=>{const{calc:t,antCls:n,componentCls:r,lineWidthBold:a,motionDurationSlow:s}=e,c=`${r}-item`,[d,f]=Ut(n,"cmp-steps"),m=t(a).add(a).equal();return{[`${r}${r}-with-progress`]:{[d("item-wrapper-padding-top")]:m,[`${c}${c}-process`]:{[`${c}-icon`]:{position:"relative"}},[`${c}-progress-icon`]:{"&-svg":{[d("svg-size")]:t(m).mul(2).add(f("icon-size")).equal(),[d("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${f("svg-size")}, 1px)))`,fontSize:f("svg-size"),lineHeight:f("icon-size-ptg-unitless"),position:"absolute",inset:t(m).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:f("icon-size-ptg-unitless"),strokeWidth:t(f("icon-size-ptg-unitless")).mul(a).equal(),[d("progress-radius")]:t(f("svg-size")).sub(a).mul(f("icon-size-ptg-unitless")).div(2).equal(),r:f("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${s} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},_Q=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:a,marginXXS:s,lineWidthBold:c,fontSizeSM:d,antCls:f}=e,m=`${t}-item`,[g,h]=Ut(f,"cmp-steps");return{[`${t}${t}-dot`]:{[g("icon-size-active")]:a,[g("icon-size")]:r,[g("dot-icon-size")]:r,[g("dot-icon-border-width")]:c,[g("rail-size")]:c,[g("icon-border-width")]:c,[`${m}-custom ${m}-icon`]:{fontSize:d},[`${m}-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%)"}},[`${m}-active ${m}-icon`]:{[g("icon-size")]:h("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:A1(e,s)}}}},HQ=e=>{const{componentCls:t,lineWidthBold:n,antCls:r}=e,a=`${t}-item`,[,s]=Ut(r,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${a}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[a]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${s("item-base-width")}) 0px`,`calc(100% - ${te(n)}) 0px`,`calc(100% - ${s("item-base-width")} - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,`calc(0px - ${s("item-base-width")}) 100%`].join(",")})`}}}}}}},BQ=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:a,marginXS:s,fontHeight:c,marginSM:d,paddingXS:f,antCls:m}=e,[g]=Ut(m,"cmp-steps");return{[`${t}${t}-small`]:{[g("icon-size")]:n,[g("title-horizontal-item-margin")]:d,[g("title-vertical-row-gap")]:f,[g("title-font-size")]:r,[g("title-line-height")]:a,[g("title-horizontal-rail-margin")]:s,[g("title-horizontal-title-height")]:c,[`&${t}-horizontal${t}-title-vertical`]:A1(e,s)}}},um="wait",dm="process",fm="finish",mm="error",LQ=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:a,colorTextLabel:s,colorError:c,colorErrorHover:d,colorErrorBgFilledHover:f,colorFillTertiary:m,colorErrorBg:g,colorPrimaryBgHover:h,colorPrimaryBg:y,colorText:b,colorTextDescription:v,colorBgContainer:x,colorPrimaryHover:C,lineType:w,antCls:R}=e,$=`${t}-item`,[E,T]=Ut(R,"cmp-steps");return{[t]:[{[$]:{[E("item-solid-line-color")]:"#000",[E("item-title-color")]:"#000",[E("item-content-color")]:"#000",[E("item-subtitle-color")]:T("item-content-color"),[E("item-icon-custom-color")]:"#000",[E("item-icon-bg-color")]:"#000",[E("item-icon-border-color")]:"#000",[E("item-icon-text-color")]:"#fff",[E("item-icon-dot-color")]:"#000",[E("item-icon-dot-bg-color")]:T("item-icon-dot-color"),[E("item-icon-dot-border-color")]:T("item-icon-dot-color"),[E("item-text-hover-color")]:"#000",[E("item-icon-bg-hover-color")]:T("item-icon-bg-color"),[E("item-icon-border-hover-color")]:T("item-icon-border-color"),[E("item-icon-text-hover-color")]:T("item-icon-text-color"),[E("item-content-active-color")]:T("item-content-color"),[E("item-icon-active-bg-color")]:T("item-icon-bg-color"),[E("item-icon-active-border-color")]:T("item-icon-border-color"),[E("item-icon-active-text-color")]:T("item-icon-text-color"),[E("item-process-rail-line-style")]:w},[`${$}-rail`]:{borderColor:T("item-solid-line-color")},[`${$}-custom ${$}-icon`]:{color:T("item-icon-custom-color")},[`${$}-title`]:{color:T("item-title-color")},[`${$}-subtitle`]:{color:T("item-subtitle-color")},[`${$}-content`]:{color:T("item-content-color")},[`${$}-active ${$}-icon`]:{},[`${$}-active ${$}-content`]:{color:T("item-content-active-color")},[`${$}[role='button']:not(${$}-active):hover`]:{[`${$}-title, ${$}-content`]:{color:T("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${$}:not(${$}-custom)`]:{[`${$}-icon`]:{background:T("item-icon-bg-color"),borderColor:T("item-icon-border-color"),color:T("item-icon-text-color")},[`&[role='button']:not(${$}-active):hover`]:{[`${$}-icon`]:{background:T("item-icon-bg-hover-color"),borderColor:T("item-icon-border-hover-color"),color:T("item-icon-text-hover-color")}},[`&${$}-active`]:{[`${$}-icon`]:{background:T("item-icon-active-bg-color"),borderColor:T("item-icon-active-border-color"),color:T("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${$}-icon`]:{background:T("item-icon-dot-bg-color"),borderColor:T("item-icon-dot-border-color"),color:T("item-icon-dot-color"),[`&${$}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${$}-${um}`]:{[E("item-icon-custom-color")]:n,[E("item-title-color")]:v,[E("item-content-color")]:v,[E("item-content-active-color")]:b,[E("item-text-hover-color")]:C},[`${$}-rail-${um}`]:{[E("item-solid-line-color")]:n},[`${$}-${dm}`]:{[E("item-icon-custom-color")]:a,[E("item-title-color")]:b,[E("item-content-color")]:v,[E("item-content-active-color")]:b,[E("item-text-hover-color")]:C},[`${$}-rail-${dm}`]:{[E("item-solid-line-color")]:a,[E("rail-line-style")]:T("item-process-rail-line-style")},[`${$}-${fm}`]:{[E("item-icon-custom-color")]:a,[E("item-title-color")]:b,[E("item-content-color")]:v,[E("item-content-active-color")]:b,[E("item-text-hover-color")]:C},[`${$}-rail-${fm}`]:{[E("item-solid-line-color")]:a},[`${$}-${mm}`]:{[E("item-icon-custom-color")]:c,[E("item-title-color")]:c,[E("item-content-color")]:c,[E("item-content-active-color")]:c,[E("item-text-hover-color")]:d},[`${$}-rail-${mm}`]:{[E("item-solid-line-color")]:c}},{[`&${t}-filled`]:{[$]:{[E("item-icon-dot-border-color")]:"transparent"},[`${$}-${um}`]:{[E("item-icon-bg-color")]:m,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:s,[E("item-icon-dot-bg-color")]:n,[E("item-icon-bg-hover-color")]:h,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:a,[E("item-icon-active-bg-color")]:a,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r},[`${$}-${dm}, ${$}-${fm}`]:{[E("item-icon-bg-color")]:y,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:a,[E("item-icon-dot-bg-color")]:a,[E("item-icon-bg-hover-color")]:h,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:a,[E("item-icon-active-bg-color")]:a,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r},[`${$}-${mm}`]:{[E("item-icon-bg-color")]:g,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:c,[E("item-icon-dot-bg-color")]:c,[E("item-icon-bg-hover-color")]:f,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:c,[E("item-icon-active-bg-color")]:c,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r}}},{[`&${t}-outlined`]:{[$]:{[E("item-icon-dot-bg-color")]:"transparent"},[`${$}-${um}`]:{[E("item-icon-bg-color")]:x,[E("item-icon-border-color")]:n,[E("item-icon-text-color")]:n,[E("item-icon-dot-color")]:n,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:C,[E("item-icon-text-hover-color")]:C,[E("item-icon-active-bg-color")]:m},[`${$}-${dm}, ${$}-${fm}`]:{[E("item-icon-bg-color")]:x,[E("item-icon-border-color")]:a,[E("item-icon-text-color")]:a,[E("item-icon-dot-color")]:a,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:C,[E("item-icon-text-hover-color")]:C,[E("item-icon-active-bg-color")]:y},[`${$}-${mm}`]:{[E("item-icon-bg-color")]:x,[E("item-icon-border-color")]:c,[E("item-icon-text-color")]:c,[E("item-icon-dot-color")]:c,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:d,[E("item-icon-text-hover-color")]:d,[E("item-icon-active-bg-color")]:g}}}]}},VQ=e=>{const{componentCls:t,marginXXS:n,paddingSM:r,controlHeight:a,antCls:s,calc:c}=e,d=`${t}-item`,[f,m]=Ut(s,"cmp-steps");return{[`${t}-vertical`]:{[f("vertical-rail-margin")]:c(n).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${d}`]:{minHeight:c(a).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${d}-icon`]:{marginInlineStart:`calc((${m("icon-size-max")} - ${m("icon-size")}) / 2)`},[`${d}-rail`]:{[f("rail-offset")]:c(m("heading-height")).sub(m("icon-size")).div(2).equal(),borderInlineStartWidth:m("rail-size"),position:"absolute",top:c(m("icon-size")).add(m("item-wrapper-padding-top")).add(m("rail-offset")).add(m("vertical-rail-margin")).equal(),insetInlineStart:c(m("icon-size-max")).div(2).equal(),bottom:c(m("vertical-rail-margin")).sub(m("rail-offset")).equal(),marginInlineStart:`calc(${m("rail-size")} / -2)`}}}}},FQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[a,s]=Ut(n,"cmp-steps");return{[t]:{[a("title-font-size")]:e.fontSizeLG,[a("title-line-height")]:e.lineHeightLG,[a("subtitle-font-size")]:e.fontSize,[a("subtitle-line-height")]:e.lineHeight,[a("item-wrapper-padding-top")]:"0px",[a("rail-size")]:e.lineWidth,[a("rail-line-style")]:e.lineType,...Jt(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[r]:{flex:"none",position:"relative"},[`${r}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:s("item-wrapper-padding-top")},[`${r}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${r}-title`]:{color:e.colorText,fontSize:s("title-font-size"),lineHeight:s("title-line-height"),wordBreak:"break-word"},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:s("subtitle-font-size"),lineHeight:s("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${r}-rail`]:{borderStyle:s("rail-line-style"),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:$o},[`${r}[role='button']:not(${r}-active):hover`]:{cursor:"pointer"}}}},kQ=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}),WQ=Pt("Steps",e=>{const t=Nt(e,{inlineDotSize:6});return[FQ(t),NQ(t),VQ(t),OQ(t),zQ(t),BQ(t),_Q(t),LQ(t),AQ(t),DQ(t),IQ(t),jQ(t),HQ(t)]},kQ),YQ={itemIcon:gd},UQ=e=>{const{size:t,className:n,rootClassName:r,style:a,variant:s="filled",type:c,classNames:d,styles:f,direction:m,orientation:g,responsive:h=!0,progressDot:y,labelPlacement:b,titlePlacement:v,ellipsis:x,offset:C=0,items:w,percent:R,current:$=0,onChange:E,iconRender:T,...N}=e,O=l.useContext(MQ),D=Rt("steps"),{getPrefixCls:j,direction:B,className:V,style:U}=D;let G,Y,_={};O?_={root:O.rootComponent,item:O.itemComponent}:{classNames:G,styles:Y}=D;const H=j(),F=j("steps",e.prefixCls),I=`${F}-item-icon`,[z,L]=WQ(F),[P]=Ut(H,"cmp-steps"),A=pr(t),k=l.useMemo(()=>(w||[]).filter(Boolean),[w]),{xs:q}=Lp(h),K=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),Z=K==="inline",J=K==="dot"||K==="inline",re=l.useMemo(()=>K==="dot"&&typeof y=="function"?y:void 0,[K,y]),ie=l.useMemo(()=>{const Ae=g||m;return K==="panel"?"horizontal":h&&q||Ae==="vertical"?"vertical":"horizontal"},[g,m,K,h,q]),ne=l.useMemo(()=>J||ie==="vertical"?ie==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":v||b||"horizontal",[J,b,ie,v,c]),le=Z?void 0:R,se={...e,variant:s,size:A,type:K,orientation:ie,titlePlacement:ne,current:$,percent:le,responsive:h,offset:C},[ce,me]=Bt([YQ,G,d],[Y,f],{props:se}),ae=(Ae,xe)=>{const{item:Se,index:ue,active:ve,components:{Icon:Me}}=xe,{status:Pe,icon:je}=Se;let Be=null;if(J||je)Be=je;else switch(Pe){case"finish":Be=l.createElement(pl,{className:`${I}-finish`});break;case"error":Be=l.createElement(Ur,{className:`${I}-error`});break;default:{let Fe=l.createElement("span",{className:`${I}-number`},xe.index+1);Pe==="process"&&le!==void 0&&(Fe=l.createElement(TQ,{prefixCls:F,rootPrefixCls:H,percent:le},Fe)),Be=Fe}}let Ze=l.createElement(Me,null,Be);return T?Ze=T(Ze,{index:ue,active:ve,item:Se,components:{Icon:Me}}):typeof re=="function"&&(Ze=re(Ze,{index:ue,...Se})),Ze},fe=(Ae,xe)=>{let Se=Ae;return Z&&xe.item.content&&(Se=l.createElement(dr,{destroyOnHidden:!0,title:xe.item.content},Ae)),l.createElement(hd,{component:"Steps",disabled:xe.item.disabled||!E,colorSource:s==="filled"?"color":null},Se)},ge=K==="panel"?Ae=>l.createElement(l.Fragment,null,Ae,l.createElement(RQ,{prefixCls:F})):void 0,he={[P("items-offset")]:`${C}`,...U,...a},ye=Q(V,`${F}-${s}`,{[`${F}-${K}`]:K!=="dot"?K:!1,[`${F}-rtl`]:B==="rtl",[`${F}-dot`]:J,[`${F}-ellipsis`]:x,[`${F}-with-progress`]:le!==void 0,[`${F}-${A}`]:A},n,r,z,L);return l.createElement(EQ,{...N,prefixCls:F,className:ye,style:he,classNames:ce,styles:me,orientation:ie,titlePlacement:ne,components:_,current:$,items:k,onChange:E,iconRender:ae,itemRender:fe,itemWrapperRender:ge})};var qQ={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 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 GQ=(e,t)=>l.createElement(pt,X0({},e,{ref:t,icon:qQ})),XQ=l.forwardRef(GQ),KQ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:s}=e,c=s(r).sub(n).equal(),d=s(t).sub(n).equal();return{[a]:{...Jt(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",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-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(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${a}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${a}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${a}-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,[`&${a}-default`]:{color:e.solidTextColor}},[`${a}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${a}-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}},[`&${a}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${a}-solid, &${a}-filled`]:{color:e.colorTextDisabled,[`${a}-close-icon`]:{color:e.colorTextDisabled}},[`${a}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},D1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Nt(e,{tagFontSize:a,tagLineHeight:te(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},j1=e=>{const t=oO(new Km(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new nn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},_1=Pt("Tag",e=>{const t=D1(e);return KQ(t)},j1),O3=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:s,children:c,icon:d,onChange:f,onClick:m,disabled:g,...h}=e,{getPrefixCls:y,tag:b}=l.useContext(dt),v=l.useContext(Wr),x=g??v,C=T=>{x||(f?.(!s),m?.(T))},w=y("tag",n),[R,$]=_1(w),E=Q(w,`${w}-checkable`,{[`${w}-checkable-checked`]:s,[`${w}-checkable-disabled`]:x},b?.className,a,R,$);return l.createElement("span",{...h,ref:t,style:{...r,...b?.style},className:E,onClick:C},d,l.createElement("span",null,c))});function QQ(e,t){const{id:n,prefixCls:r,rootClassName:a,className:s,style:c,classNames:d,styles:f,disabled:m,options:g,value:h,defaultValue:y,onChange:b,multiple:v,...x}=e,{getPrefixCls:C,direction:w,className:R,style:$,classNames:E,styles:T}=Rt("tag"),N=C("tag",r),O=`${N}-checkable-group`,D=ir(N),[j,B]=_1(N,D),[V,U]=Bt([E,d],[T,f],{props:e}),G=l.useMemo(()=>(g||[]).map(z=>z&&typeof z=="object"?z:{value:z,label:z}),[g]),[Y,_]=Yt(y,h),H=(z,L)=>{let P=null;if(v){const A=Y||[];P=z?[].concat($n(A),[L.value]):A.filter(k=>k!==L.value)}else P=z?L.value:null;_(P),b?.(P)},F=oe.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:F.current}));const I=An(x,{aria:!0,data:!0});return oe.createElement("div",{...I,className:Q(O,R,a,{[`${O}-disabled`]:m,[`${O}-rtl`]:w==="rtl"},j,B,s,V.root),style:{...$,...U.root,...c},id:n,ref:F},G.map(z=>oe.createElement(O3,{key:z.value,className:Q(`${O}-item`,V.item),style:U.item,checked:v?(Y||[]).includes(z.value):Y===z.value,onChange:L=>H(L,z),disabled:m},z.label)))}const ZQ=oe.forwardRef(QQ);function JQ(e,t){const{color:n,variant:r,bordered:a}=e;return l.useMemo(()=>{const s=n?.endsWith("-inverse");let c;r?c=r:s?c="solid":a===!1?c="filled":c=t||"filled";const d=s?n?.replace("-inverse",""):n,f=kp(n),m=j9(n),g={};if(!f&&!m&&d)if(c==="solid")g.backgroundColor=n;else{const h=new nn(d).toHsl();h.l=.95,g.backgroundColor=new nn(h).toHexString(),g.color=n,c==="outlined"&&(g.borderColor=n)}return[c,d,f,m,g]},[n,r,a,t])}const eZ=e=>Tp(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:a,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:a,color:n}}})),tZ=cd(["Tag","preset"],e=>{const t=D1(e);return eZ(t)},j1);function nZ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const pm=(e,t,n)=>{const r=nZ(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}`]}}}},rZ=cd(["Tag","status"],e=>{const t=D1(e);return[pm(t,"success","Success"),pm(t,"processing","Info"),pm(t,"error","Error"),pm(t,"warning","Warning")]},j1),oZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:s,children:c,icon:d,color:f,variant:m,onClose:g,bordered:h,disabled:y,href:b,target:v,styles:x,classNames:C,...w}=e,{getPrefixCls:R,direction:$,className:E,variant:T,style:N,classNames:O,styles:D}=Rt("tag"),[j,B,V,U,G]=JQ(e,T),Y=V||U,_=l.useContext(Wr),H=y??_,{tag:F}=l.useContext(dt),[I,z]=l.useState(!0),L=rn(w,["closeIcon","closable"]),P={...e,color:B,variant:j,disabled:H,href:b,target:v,icon:d},[A,k]=Bt([O,C],[D,x],{props:P}),q=l.useMemo(()=>{let fe={...k.root,...N,...s};return H||(fe={...G,...fe}),fe},[k.root,N,s,G,H]),K=R("tag",n),[Z,J]=_1(K),re=Q(K,E,A.root,`${K}-${j}`,{[`${K}-${B}`]:Y,[`${K}-hidden`]:!I,[`${K}-rtl`]:$==="rtl",[`${K}-disabled`]:H},r,a,Z,J),ie=fe=>{H||(fe.stopPropagation(),g?.(fe),!fe.defaultPrevented&&z(!1))},[,ne]=VS(Ms(e),Ms(F),{closable:!1,closeIconRender:fe=>{const ge=l.createElement("span",{className:`${K}-close-icon`,onClick:ie},fe);return _T(fe,ge,he=>({onClick:ye=>{he?.onClick?.(ye),ie(ye)},className:Q(he?.className,`${K}-close-icon`)}))}}),le=typeof w.onClick=="function"||c&&c.type==="a",se=or(d,{className:Q(l.isValidElement(d)?d.props?.className:"",A.icon),style:k.icon}),ce=se?l.createElement(l.Fragment,null,se,c&&l.createElement("span",{className:A.content,style:k.content},c)):c,me=b?"a":"span",ae=l.createElement(me,{...L,ref:t,className:re,style:q,href:H?void 0:b,target:v,onClick:H?void 0:L.onClick,...b&&H?{"aria-disabled":!0}:{}},ce,ne,V&&l.createElement(tZ,{key:"preset",prefixCls:K}),U&&l.createElement(rZ,{key:"status",prefixCls:K}));return le?l.createElement(hd,{component:"Tag"},ae):ae}),cr=oZ;cr.CheckableTag=O3;cr.CheckableTagGroup=ZQ;const aZ={defaultSeed:km.token,defaultAlgorithm:K4};var iZ={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 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 lZ=(e,t)=>l.createElement(pt,K0({},e,{ref:t,icon:iZ})),Sp=l.forwardRef(lZ);var sZ={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 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 cZ=(e,t)=>l.createElement(pt,Q0({},e,{ref:t,icon:sZ})),yi=l.forwardRef(cZ);var uZ={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 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 dZ=(e,t)=>l.createElement(pt,Z0({},e,{ref:t,icon:uZ})),fZ=l.forwardRef(dZ),mZ=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:s}=r;return{marginBottom:a,color:n,fontWeight:s,fontSize:e,lineHeight:t}},pZ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
324
|
+
h${r}&,
|
|
325
|
+
div&-h${r},
|
|
326
|
+
div&-h${r} > textarea,
|
|
327
|
+
h${r}
|
|
328
|
+
`]=mZ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},gZ=e=>{const{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...nT(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},hZ=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:Vm[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}}),yZ=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"}}}},bZ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),vZ=()=>({"\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"}}),SZ=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...pZ(e),[`
|
|
329
|
+
& + h1${t},
|
|
330
|
+
& + h2${t},
|
|
331
|
+
& + h3${t},
|
|
332
|
+
& + h4${t},
|
|
333
|
+
& + h5${t}
|
|
334
|
+
`]:{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}},...hZ(e),...gZ(e),[`
|
|
335
|
+
${t}-expand,
|
|
336
|
+
${t}-collapse,
|
|
337
|
+
${t}-edit,
|
|
338
|
+
${t}-copy
|
|
339
|
+
`]:{...nT(e),marginInlineStart:e.marginXXS},...yZ(e),...bZ(e),...vZ(),"&-rtl":{direction:"rtl"}}}},CZ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),N3=Pt("Typography",SZ,CZ),xZ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:s,maxLength:c,autoSize:d=!0,value:f,onSave:m,onCancel:g,onEnd:h,component:y,enterIcon:b=l.createElement(fZ,null)}=e,v=l.useRef(null),x=l.useRef(!1),C=l.useRef(null),[w,R]=l.useState(f);l.useEffect(()=>{R(f)},[f]),l.useEffect(()=>{if(v.current?.resizableTextArea){const{textArea:G}=v.current.resizableTextArea;G.focus();const{length:Y}=G.value;G.setSelectionRange(Y,Y)}},[]);const $=({target:G})=>{R(G.value.replace(/[\n\r]/g,""))},E=()=>{x.current=!0},T=()=>{x.current=!1},N=({keyCode:G})=>{x.current||(C.current=G)},O=()=>{m(w.trim())},D=({keyCode:G,ctrlKey:Y,altKey:_,metaKey:H,shiftKey:F})=>{C.current!==G||x.current||Y||_||H||F||(G===it.ENTER?(O(),h?.()):G===it.ESC&&g())},j=()=>{O()},[B,V]=N3(t),U=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,B,V);return l.createElement("div",{className:U,style:a},l.createElement(y3,{ref:v,maxLength:c,value:w,onChange:$,onKeyDown:N,onKeyUp:D,onCompositionStart:E,onCompositionEnd:T,onBlur:j,"aria-label":n,rows:1,autoSize:d}),b!==null?or(b,{className:`${t}-edit-content-confirm`}):null)},$Z=(e,t)=>{let n=!1;const r=a=>{a.stopPropagation(),a.preventDefault(),a.clipboardData?.clearData(),a.clipboardData?.setData("text/plain",e),t&&a.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})}},wZ=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 EZ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await wZ(e,n)||$Z(e,n))}const MZ=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[a,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 m=ct(async g=>{g?.preventDefault(),g?.stopPropagation(),s(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await EZ(h||DK(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:a,onClick:m}};function sb(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const RZ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},TZ=(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]),I3=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:s,children:c,direction:d,style:f,...m}=e,{getPrefixCls:g,direction:h,className:y,style:b}=Rt("typography"),v=d??h,x=g("typography",n),[C,w]=N3(x),R=Q(x,y,{[`${x}-rtl`]:v==="rtl"},a,s,C,w),$={...b,...f};return l.createElement(r,{className:R,style:$,ref:t,...m},c)});var OZ={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 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 NZ=(e,t)=>l.createElement(pt,J0({},e,{ref:t,icon:OZ})),P3=l.forwardRef(NZ);function kR(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function cb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function IZ(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 H1=e=>["string","number"].includes(typeof e),PZ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const m=kR(a),g=kR(s),{copied:h,copy:y}=n??{},b=t?h:y,v=cb(m[t?1:0],b),x=typeof v=="string"?v:b;return l.createElement(dr,{title:v},l.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":x,tabIndex:c},t?cb(g[1],l.createElement(pl,null),!0):cb(g[0],f?l.createElement(Ip,null):l.createElement(P3,null),!0)))},gm=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),zZ=e=>e.reduce((t,n)=>t+(H1(n)?String(n).length:1),0);function WR(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const s=e[a],d=H1(s)?String(s).length:1,f=n+d;if(f>t){const m=t-n;return r.push(String(s).slice(0,m)),r}r.push(s),n=f}return e}const ub=0,db=1,fb=2,mb=3,YR=4,hm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function AZ(e){const{enableMeasure:t,width:n,text:r,children:a,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,m=l.useMemo(()=>fr(r),[r]),g=l.useMemo(()=>zZ(m),[r]),h=l.useMemo(()=>a(m,!1),[r]),[y,b]=l.useState(null),v=l.useRef(null),x=l.useRef(null),C=l.useRef(null),w=l.useRef(null),R=l.useRef(null),[$,E]=l.useState(!1),[T,N]=l.useState(ub),[O,D]=l.useState(0),[j,B]=l.useState(null);It(()=>{N(t&&n&&g?db:ub)},[n,r,s,t,m]),It(()=>{if(T===db){N(fb);const Y=x.current&&getComputedStyle(x.current).whiteSpace;B(Y)}else if(T===fb){const Y=!!C.current?.isExceed();N(Y?mb:YR),b(Y?[0,g]:null),E(Y);const _=C.current?.getHeight()||0,H=s===1?0:w.current?.getHeight()||0,F=R.current?.getHeight()||0,I=Math.max(_,H+F);D(I+1),f(Y)}},[T]);const V=y?Math.ceil((y[0]+y[1])/2):0;It(()=>{const[Y,_]=y||[0,0];if(Y!==_){const F=(v.current?.getHeight()||0)>O;let I=V;_-Y===1&&(I=F?Y:_),b(F?[Y,I]:[I,_])}},[y,V]);const U=l.useMemo(()=>{if(!t)return a(m,!1);if(T!==mb||!y||y[0]!==y[1]){const Y=a(m,!1);return[YR,ub].includes(T)?Y:l.createElement("span",{style:{...hm,WebkitLineClamp:s}},Y)}return a(c?m:WR(m,y[0]),$)},[c,T,y,m].concat($n(d))),G={width:n,margin:0,padding:0,whiteSpace:j==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,U,T===fb&&l.createElement(l.Fragment,null,l.createElement(gm,{style:{...G,...hm,WebkitLineClamp:s},ref:C},h),l.createElement(gm,{style:{...G,...hm,WebkitLineClamp:s-1},ref:w},h),l.createElement(gm,{style:{...G,...hm,WebkitLineClamp:1},ref:R},a([],!0))),T===mb&&y&&y[0]!==y[1]&&l.createElement(gm,{style:{...G,top:400},ref:v},a(WR(m,V),!0)),T===db&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const DZ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(dr,{open:t?void 0:!1,...r},n);function jZ({mark:e,code:t,underline:n,delete:r,strong:a,keyboard:s,italic:c},d){let f=d;function m(g,h){h&&(f=l.createElement(g,{},f))}return m("strong",a),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",s),m("i",c),f}const _Z="...",UR=["delete","mark","code","underline","strong","keyboard","italic"],og=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,type:s,disabled:c,children:d,ellipsis:f,editable:m,copyable:g,component:h,title:y,...b}=e,{getPrefixCls:v,direction:x}=l.useContext(dt),[C]=ao("Text"),w=l.useRef(null),R=l.useRef(null),$=v("typography",n),E=rn(b,UR),[T,N]=sb(m),[O,D]=Yt(!1,N.editing),{triggerType:j=["icon"]}=N,B=Ce=>{Ce&&N.onStart?.(),D(Ce)},V=RZ(O);It(()=>{!O&&V&&R.current?.focus()},[O]);const U=Ce=>{Ce?.preventDefault(),B(!0)},G=Ce=>{N.onChange?.(Ce),B(!1)},Y=()=>{N.onCancel?.(),B(!1)},[_,H]=sb(g),{copied:F,copyLoading:I,onClick:z}=MZ({copyConfig:H,children:d}),[L,P]=l.useState(!1),[A,k]=l.useState(!1),[q,K]=l.useState(!1),[Z,J]=l.useState(!1),[re,ie]=l.useState(!0),[ne,le]=sb(f,{expandable:!1,symbol:Ce=>Ce?C?.collapse:C?.expand}),[se,ce]=Yt(le.defaultExpanded||!1,le.expanded),me=ne&&(!se||le.expandable==="collapsible"),{rows:ae=1}=le,fe=l.useMemo(()=>me&&(le.suffix!==void 0||le.onEllipsis||le.expandable||T||_),[me,le,T,_]);It(()=>{ne&&!fe&&(P(r2("webkitLineClamp")),k(r2("textOverflow")))},[fe,ne]);const[ge,he]=l.useState(me),ye=l.useMemo(()=>fe?!1:ae===1?A:L,[fe,A,L]);It(()=>{he(ye&&me)},[ye,me]);const Ae=me&&(ge?Z:q),xe=me&&ae===1&&ge,Se=me&&ae>1&&ge,ue=(Ce,Ye)=>{ce(Ye.expanded),le.onExpand?.(Ce,Ye)},[ve,Me]=l.useState(0),Pe=({offsetWidth:Ce})=>{Me(Ce)},je=Ce=>{K(Ce),q!==Ce&&le.onEllipsis?.(Ce)};l.useEffect(()=>{const Ce=w.current;if(ne&&ge&&Ce){const Ye=IZ(Ce);Z!==Ye&&J(Ye)}},[ne,ge,d,Se,re,ve]),l.useEffect(()=>{const Ce=w.current;if(typeof IntersectionObserver>"u"||!Ce||!ge||!me)return;const Ye=new IntersectionObserver(()=>{ie(!!Ce.offsetParent)});return Ye.observe(Ce),()=>{Ye.disconnect()}},[ge,me]);const Be=TZ(le.tooltip,N.text,d),Ze=l.useMemo(()=>{if(!(!ne||ge))return[N.text,d,y,Be.title].find(H1)},[ne,ge,y,Be.title,Ae]);if(O)return l.createElement(xZ,{value:N.text??(typeof d=="string"?d:""),onSave:G,onCancel:Y,onEnd:N.onEnd,prefixCls:$,className:r,style:a,direction:x,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const Fe=()=>{const{expandable:Ce,symbol:Ye}=le;return Ce?l.createElement("button",{type:"button",key:"expand",className:`${$}-${se?"collapse":"expand"}`,onClick:et=>ue(et,{expanded:!se}),"aria-label":se?C.collapse:C?.expand},typeof Ye=="function"?Ye(se):Ye):null},_e=()=>{if(!T)return;const{icon:Ce,tooltip:Ye,tabIndex:et}=N,Le=fr(Ye)[0]||C?.edit,Ge=typeof Le=="string"?Le:"";return j.includes("icon")?l.createElement(dr,{key:"edit",title:Ye===!1?"":Le},l.createElement("button",{type:"button",ref:R,className:`${$}-edit`,onClick:U,"aria-label":Ge,tabIndex:et},Ce||l.createElement(yi,{role:"button"}))):null},He=()=>_?l.createElement(PZ,{key:"copy",...H,prefixCls:$,copied:F,locale:C,onCopy:z,loading:I,iconOnly:!Mr(d)}):null,Ke=Ce=>[Ce&&Fe(),_e(),He()],Ne=Ce=>[Ce&&!se&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},_Z),le.suffix,Ke(Ce)];return l.createElement(oo,{onResize:Pe,disabled:!me},Ce=>l.createElement(DZ,{tooltipProps:Be,enableEllipsis:me,isEllipsis:Ae},l.createElement(I3,{className:Q({[`${$}-${s}`]:s,[`${$}-disabled`]:c,[`${$}-ellipsis`]:ne,[`${$}-ellipsis-single-line`]:xe,[`${$}-ellipsis-multiple-line`]:Se,[`${$}-link`]:h==="a"},r),prefixCls:n,style:{...a,WebkitLineClamp:Se?ae:void 0},component:h,ref:mr(Ce,w,t),direction:x,onClick:j.includes("text")?U:void 0,"aria-label":Ze?.toString(),title:y,...E},l.createElement(AZ,{enableMeasure:me&&!ge,text:d,rows:ae,width:ve,onEllipsis:je,expanded:se,miscDeps:[F,se,I,T,_,C].concat($n(UR.map(Ye=>e[Ye])))},(Ye,et)=>jZ(e,l.createElement(l.Fragment,null,Ye.length>0&&et&&!se&&Ze?l.createElement("span",{key:"show-content","aria-hidden":!0},Ye):Ye,Ne(et)))))))}),HZ=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:a,navigate:s,...c}=e,d={...c,rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r};return l.createElement(og,{...d,ref:t,ellipsis:!!n,component:"a"},a)}),BZ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(og,{ref:t,...r,component:"div"},n)}),LZ=(e,t)=>{const{ellipsis:n,children:r,...a}=e,s=l.useMemo(()=>n&&typeof n=="object"?rn(n,["expandable","rows"]):n,[n]);return l.createElement(og,{ref:t,...a,ellipsis:s,component:"span"},r)},VZ=l.forwardRef(LZ),FZ=[1,2,3,4,5],kZ=l.forwardRef((e,t)=>{const{level:n=1,children:r,...a}=e,s=FZ.includes(n)?`h${n}`:"h1";return l.createElement(og,{ref:t,...a,component:s},r)}),Pr=I3;Pr.Text=VZ;Pr.Link=HZ;Pr.Title=kZ;Pr.Paragraph=BZ;var Hm={exports:{}},WZ=Hm.exports,qR;function YZ(){return qR||(qR=1,(function(e,t){(function(n,r){e.exports=r(D6())})(WZ,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=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 a.default.locale(s,null,!0),s}))})(Hm)),Hm.exports}YZ();var UZ={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 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 qZ=(e,t)=>l.createElement(pt,eS({},e,{ref:t,icon:UZ})),GR=l.forwardRef(qZ);var GZ={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 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 XZ=(e,t)=>l.createElement(pt,tS({},e,{ref:t,icon:GZ})),KZ=l.forwardRef(XZ);var QZ={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 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 ZZ=(e,t)=>l.createElement(pt,nS({},e,{ref:t,icon:QZ})),JZ=l.forwardRef(ZZ);var eJ={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 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 tJ=(e,t)=>l.createElement(pt,rS({},e,{ref:t,icon:eJ})),B1=l.forwardRef(tJ);var nJ={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 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 rJ=(e,t)=>l.createElement(pt,oS({},e,{ref:t,icon:nJ})),oJ=l.forwardRef(rJ);var aJ={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 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 iJ=(e,t)=>l.createElement(pt,aS({},e,{ref:t,icon:aJ})),z3=l.forwardRef(iJ);var lJ={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 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 sJ=(e,t)=>l.createElement(pt,iS({},e,{ref:t,icon:lJ})),XR=l.forwardRef(sJ);var cJ={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 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 uJ=(e,t)=>l.createElement(pt,lS({},e,{ref:t,icon:cJ})),dJ=l.forwardRef(uJ);var fJ={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 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 mJ=(e,t)=>l.createElement(pt,sS({},e,{ref:t,icon:fJ})),pJ=l.forwardRef(mJ);var gJ={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 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 hJ=(e,t)=>l.createElement(pt,cS({},e,{ref:t,icon:gJ})),yJ=l.forwardRef(hJ);var bJ={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 uS(){return uS=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},uS.apply(this,arguments)}const vJ=(e,t)=>l.createElement(pt,uS({},e,{ref:t,icon:bJ})),SJ=l.forwardRef(vJ);var CJ={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 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)}const xJ=(e,t)=>l.createElement(pt,dS({},e,{ref:t,icon:CJ})),$J=l.forwardRef(xJ);var wJ={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 fS(){return fS=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},fS.apply(this,arguments)}const EJ=(e,t)=>l.createElement(pt,fS({},e,{ref:t,icon:wJ})),MJ=l.forwardRef(EJ);var RJ={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 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 TJ=(e,t)=>l.createElement(pt,mS({},e,{ref:t,icon:RJ})),OJ=l.forwardRef(TJ);var NJ={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 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)}const IJ=(e,t)=>l.createElement(pt,pS({},e,{ref:t,icon:NJ})),A3=l.forwardRef(IJ);var PJ={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 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 zJ=(e,t)=>l.createElement(pt,gS({},e,{ref:t,icon:PJ})),AJ=l.forwardRef(zJ);var DJ={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 hS(){return hS=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},hS.apply(this,arguments)}const jJ=(e,t)=>l.createElement(pt,hS({},e,{ref:t,icon:DJ})),_J=l.forwardRef(jJ);var HJ={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 yS(){return yS=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},yS.apply(this,arguments)}const BJ=(e,t)=>l.createElement(pt,yS({},e,{ref:t,icon:HJ})),D3=l.forwardRef(BJ);var LJ={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 bS(){return bS=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},bS.apply(this,arguments)}const VJ=(e,t)=>l.createElement(pt,bS({},e,{ref:t,icon:LJ})),FJ=l.forwardRef(VJ);var kJ={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 vS(){return vS=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},vS.apply(this,arguments)}const WJ=(e,t)=>l.createElement(pt,vS({},e,{ref:t,icon:kJ})),YJ=l.forwardRef(WJ);var UJ={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 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 qJ=(e,t)=>l.createElement(pt,SS({},e,{ref:t,icon:UJ})),L1=l.forwardRef(qJ);var GJ={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 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 XJ=(e,t)=>l.createElement(pt,CS({},e,{ref:t,icon:GJ})),KJ=l.forwardRef(XJ);var QJ={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 xS(){return xS=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},xS.apply(this,arguments)}const ZJ=(e,t)=>l.createElement(pt,xS({},e,{ref:t,icon:QJ})),JJ=l.forwardRef(ZJ);var eee={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 $S(){return $S=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},$S.apply(this,arguments)}const tee=(e,t)=>l.createElement(pt,$S({},e,{ref:t,icon:eee})),nee=l.forwardRef(tee);var ree={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 wS(){return wS=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},wS.apply(this,arguments)}const oee=(e,t)=>l.createElement(pt,wS({},e,{ref:t,icon:ree})),j3=l.forwardRef(oee),_3=l.createContext(null),bl=()=>{const e=l.useContext(_3);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},aee={},Xo=typeof import.meta<"u"&&aee?.VITE_API_URL||"/api";class H3 extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function Ko(e){if(!e.ok){const t=await e.json().catch(()=>({message:"API Error"}));throw new H3(e.status,t.message||`HTTP ${e.status}`,t.code)}if(!(e.status===204||e.headers.get("content-length")==="0"))return e.json()}const KR={async getCalendarData(e){const t=new URLSearchParams;e.year!==void 0&&t.set("year",String(e.year)),e.month!==void 0&&t.set("month",String(e.month));const n=`${Xo}/calendar`+(t.toString()?"?"+t:""),r=await fetch(n);return Ko(r)},async getAvailableYearMonths(e){const t=`${Xo}/calendar/months`,n=await fetch(t);return Ko(n)}},Cp={async getConfig(e){const t=`${Xo}/config`,n=await fetch(t);return Ko(n)},async updateConfig(e){const t=`${Xo}/config`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Ko(n)},async getRoutinesMarkdown(e){const t=`${Xo}/config/routines/markdown`,n=await fetch(t);return Ko(n)},async saveRoutinesMarkdown(e){const t=`${Xo}/config/routines/markdown`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Ko(n)}},iee={async getStatus(e){const t=`${Xo}/git/status`,n=await fetch(t);return Ko(n)}},fs={async getReport(e){const t=`${Xo}/reports/${e.date}`,n=await fetch(t);return Ko(n)},async saveReport(e){const t=`${Xo}/reports/${e.date}`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Ko(n)},async deleteReport(e){const t=`${Xo}/reports/${e.date}`,n=await fetch(t,{method:"DELETE"});await Ko(n)}},{TextArea:lee}=Ir,{Header:see}=Pa,{Text:wr}=Pr,QR="dashboard_save_step",cee=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:a,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:m}=bl(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[b,v]=l.useState(()=>{const z=localStorage.getItem(QR);return z?parseInt(z,10):0}),[x,C]=l.useState(!1),[w,R]=l.useState(new Set),[$,E]=l.useState(null),[T,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(QR,String(b))},[b]),l.useEffect(()=>{!g&&b>2&&v(2)},[g,b]);const O=l.useMemo(()=>{const z=new Set(m.unsavedDates),L=e.format("YYYY-MM-DD");return c.isDirty&&z.add(L),Array.from(z).sort((P,A)=>A.localeCompare(P))},[m.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(R(new Set(O)),N(!0),iee.getStatus({}).then(z=>E(z)).catch(z=>console.error("Git状態の取得に失敗:",z)).finally(()=>N(!1)))},[h,O]);const D=l.useMemo(()=>!!(w.size>0||b>=1&&$?.uncommitted&&$.uncommitted.count>0||b>=2&&$?.unpushed&&$.unpushed.count>0),[w.size,b,$]),j=l.useCallback(()=>{t(bn())},[t]),B=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),V=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),U=l.useCallback(()=>{y(!0)},[]),G=l.useCallback(async()=>{if(!D){En.warning("実行対象がありません");return}C(!0);try{const z=b>=1,L=b>=2,P=b>=3,A={git:z?{commit:!0,push:L}:void 0,slack:P?{post:!0}:void 0},k=Array.from(w);k.length>0?await d(k,A):(z||L)&&await d([e.format("YYYY-MM-DD")],A),y(!1)}catch{En.error("操作に失敗しました")}finally{C(!1)}},[b,w,d,D,e]),Y=l.useCallback((z,L)=>{R(P=>{const A=new Set(P);return L?A.add(z):A.delete(z),A})},[]),_=l.useCallback(z=>{R(z?new Set(O):new Set)},[O]),H=l.useCallback(z=>{const L=e.format("YYYY-MM-DD");return z===L?c.markdownContent||"(日報データがありません)":m.getUnsavedReport(z)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,m]),F=l.useMemo(()=>{const z=O.length;return X.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[X.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),X.jsxs("div",{children:["未保存: ",z,"件"]})]})},[O.length]),I=O.length>0;return X.jsxs(see,{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:[X.jsxs(pn,{size:"large",children:[X.jsxs("div",{className:"dashboard-title",style:{display:"flex",alignItems:"center",gap:12},children:[X.jsx(a3,{style:{fontSize:24,color:"#1890ff"}}),X.jsx(wr,{className:"dashboard-title-text",strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),X.jsxs(pn,{size:"small",children:[X.jsx(_t,{size:"small",onClick:B,children:"◀"}),X.jsx(yl,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),X.jsx(_t,{size:"small",onClick:V,children:"▶"}),X.jsx(_t,{type:"primary",size:"small",onClick:j,children:"今日"}),r.length>0&&X.jsxs(pn,{size:4,style:{marginLeft:8},children:[r.map(z=>X.jsx(cr,{color:z.color,closable:!0,onClose:()=>a?.(z.code),closeIcon:X.jsx(Ur,{style:{fontSize:10}}),children:z.code},z.code)),r.length>1&&X.jsx(cr,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),X.jsxs(pn,{size:"middle",align:"center",children:[X.jsx(_t,{icon:X.jsx(MJ,{}),onClick:n,children:"取り込み"}),X.jsx(_t,{type:"primary",icon:X.jsx(dJ,{}),onClick:U,loading:c.saving,children:"保存"}),X.jsx(dr,{title:F,children:X.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[X.jsx(SJ,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&X.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:"!"})]})})]}),X.jsxs(io,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:G,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:x,disabled:!D},width:900,children:[X.jsxs("div",{style:{marginBottom:24},children:[X.jsx(wr,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),X.jsx(UQ,{current:b,onChange:z=>v(z),items:[{title:"ローカル保存",description:"ファイルに保存",icon:X.jsx(XQ,{})},{title:"Commit",description:"Gitにコミット",icon:X.jsx(L1,{})},{title:"Push",description:"リモートに反映",icon:X.jsx(XR,{})},...g?[{title:"Slack",description:"日報を投稿",icon:X.jsx(KJ,{})}]:[]],style:{marginTop:16}})]}),X.jsxs("div",{style:{marginTop:16},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[X.jsxs(wr,{strong:!0,style:{fontSize:14},children:["保存対象 (",w.size,"/",O.length,"件)"]}),X.jsx(zs,{checked:w.size===O.length&&O.length>0,indeterminate:w.size>0&&w.size<O.length,onChange:z=>_(z.target.checked),children:"全選択"})]}),X.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[O.map((z,L)=>X.jsxs("div",{style:{padding:12,borderBottom:L<O.length-1?"1px solid #f0f0f0":"none",background:w.has(z)?"#f6ffed":"#fff"},children:[X.jsxs(zs,{checked:w.has(z),onChange:P=>Y(z,P.target.checked),style:{marginBottom:8},children:[X.jsx(wr,{strong:!0,children:z}),z===e.format("YYYY-MM-DD")&&X.jsx(cr,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),w.has(z)&&X.jsx(lee,{value:H(z),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},z)),O.length===0&&X.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:X.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),b>=1&&X.jsxs(X.Fragment,{children:[X.jsx(ui,{style:{margin:"16px 0 12px"}}),X.jsxs("div",{children:[X.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[X.jsx(yJ,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),T?X.jsx("div",{style:{padding:16,textAlign:"center"},children:X.jsx(bp,{size:"small"})}):$?.uncommitted&&$.uncommitted.count>0?X.jsx(FE,{size:"small",items:[{key:"uncommitted",label:X.jsxs(wr,{type:"secondary",children:[$.uncommitted.count,"件の未コミットファイル"]}),children:X.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:$.uncommitted.files.map((z,L)=>X.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[X.jsx(hp,{style:{color:"#1890ff"}}),X.jsx(wr,{code:!0,style:{fontSize:11},children:z.path}),X.jsx(cr,{color:z.status==="D"?"red":z.status==="A"||z.status==="?"?"green":"blue",style:{fontSize:10},children:z.status==="D"?"削除":z.status==="A"?"追加":z.status==="?"?"新規":"変更"})]},L))})}],defaultActiveKey:["uncommitted"]}):X.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:X.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),X.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),b>=2&&X.jsxs(X.Fragment,{children:[X.jsx(ui,{style:{margin:"16px 0 12px"}}),X.jsxs("div",{children:[X.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[X.jsx(XR,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),T?X.jsx("div",{style:{padding:16,textAlign:"center"},children:X.jsx(bp,{size:"small"})}):$?.unpushed&&$.unpushed.count>0?X.jsx(FE,{size:"small",items:[{key:"unpushed",label:X.jsxs(wr,{type:"secondary",children:[$.unpushed.count,"件の未プッシュコミット"]}),children:X.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:$.unpushed.commits.map((z,L)=>X.jsxs("div",{style:{padding:"8px 0",borderBottom:L<$.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[X.jsx(cr,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:z.hash}),X.jsx(wr,{style:{fontSize:12},children:z.message})]}),z.files.length>0&&X.jsxs("div",{style:{paddingLeft:16},children:[z.files.slice(0,5).map((P,A)=>X.jsxs("div",{style:{fontSize:11,color:"#666"},children:[X.jsx(hp,{style:{marginRight:4}}),P]},A)),z.files.length>5&&X.jsxs(wr,{type:"secondary",style:{fontSize:11},children:["... 他 ",z.files.length-5," ファイル"]})]})]},L))})}],defaultActiveKey:["unpushed"]}):X.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:X.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),X.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:pb}=Pr,uee=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:a}=bl(),[s,c]=l.useState(e),d=bn(),f=l.useMemo(()=>{const $={};for(const E of n.days)E.hasReport&&($[E.date]={actual:E.resultHours||0,plan:E.planHours||0});return $},[n.days]),m=l.useMemo(()=>{const $=new Map;for(const T of n.availableYearMonths){const N=`${T.year}-${T.month-1}`;$.has(N)||$.set(N,{year:T.year,month:T.month-1})}const E=`${d.year()}-${d.month()}`;$.has(E)||$.set(E,{year:d.year(),month:d.month()});for(let T=-2;T<=2;T++){const N=d.add(T,"month"),O=`${N.year()}-${N.month()}`;$.has(O)||$.set(O,{year:N.year(),month:N.month()})}return Array.from($.values()).sort((T,N)=>T.year-N.year||T.month-N.month).map(T=>({...T,label:`${T.year}年${T.month+1}月`}))},[n.availableYearMonths,d]),g=m.map($=>({value:`${$.year}-${$.month}`,label:$.label})),h=$=>{const[E,T]=$.split("-").map(Number),N=s.year(E).month(T);c(N),n.loadCalendar(E,T+1)},y=()=>{const $=m.findIndex(E=>E.year===s.year()&&E.month===s.month());if($>0){const E=m[$-1],T=s.year(E.year).month(E.month);c(T),n.loadCalendar(E.year,E.month+1)}},b=()=>{const $=m.findIndex(E=>E.year===s.year()&&E.month===s.month());if($<m.length-1){const E=m[$+1],T=s.year(E.year).month(E.month);c(T),n.loadCalendar(E.year,E.month+1)}};l.useEffect(()=>{(e.month()!==s.month()||e.year()!==s.year())&&c(e)},[e]);const v=m.findIndex($=>$.year===s.year()&&$.month===s.month()),x=v>0,C=v<m.length-1,w=$=>$>=9?"#ff4d4f":$>=8?"#52c41a":$>=6?"#1890ff":"#d9d9d9",R=$=>{const E=$.format("YYYY-MM-DD"),T=$.isBefore(d,"day"),N=$.isAfter(d,"day"),O=$.isSame(d,"day"),D=$.isSame(e,"day"),j=$.month()===s.month(),B=f[E],V=B?Math.min(B.actual/8*100,100):0,U=r.hasUnsavedChangesForDate(E)||D&&a.isDirty;return X.jsx(dr,{title:B?`稼働: ${B.actual}h${U?" (未保存)":""}`:U?"未保存":void 0,children:X.jsxs("div",{onClick:()=>t(E),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:j?1:.3},children:[(T||O)&&B&&X.jsx(vQ,{type:"circle",percent:V,size:30,strokeColor:w(B.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),U&&X.jsx(Hs,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),X.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:O||D?600:400,color:O||D?"#1890ff":"#000",background:D?"#e6f7ff":O?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:$.date()})]})})};return X.jsxs(Oa,{title:X.jsx("div",{style:{display:"flex",justifyContent:"center"},children:X.jsxs(pn,{size:"small",children:[X.jsx(_t,{size:"small",onClick:y,disabled:!x,children:"◀"}),X.jsx(Fr,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),X.jsx(_t,{size:"small",onClick:b,disabled:!C,children:"▶"})]})}),styles:{body:{padding:8}},children:[X.jsx("style",{children:`
|
|
340
|
+
.compact-calendar .ant-picker-content th,
|
|
341
|
+
.compact-calendar .ant-picker-content td {
|
|
342
|
+
padding: 2px 0 !important;
|
|
343
|
+
}
|
|
344
|
+
.compact-calendar .ant-picker-cell {
|
|
345
|
+
padding: 0 !important;
|
|
346
|
+
}
|
|
347
|
+
.compact-calendar .ant-picker-cell-inner {
|
|
348
|
+
min-width: 32px !important;
|
|
349
|
+
height: 32px !important;
|
|
350
|
+
line-height: 32px !important;
|
|
351
|
+
}
|
|
352
|
+
`}),X.jsx(WN,{fullscreen:!1,value:s,className:"compact-calendar",onSelect:$=>{c($),t($.format("YYYY-MM-DD"))},fullCellRender:R,style:{border:"none"},headerRender:()=>null}),n.summary&&X.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:X.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[X.jsxs("span",{children:["稼働日数: ",n.summary.workDays??0,"日"]}),X.jsxs("span",{children:["合計: ",(n.summary.totalResultHours??0).toFixed(1),"h"]})]})}),X.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),X.jsx(pb,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),X.jsx(pb,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),X.jsx(pb,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function id(e){const[t,n]=e.split(":").map(Number);return t*60+n}function Wi(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:gb}=Pr,dee=({item:e,type:t,isHovered:n,isDragging:r,isDraggingToResultArea:a,dragOffset:s,getProjectColor:c,projects:d,onHover:f,onDragStart:m,onMenuAction:g})=>{const h=t==="result",y=e.topPx,b=e.heightPx,v=r&&!a?y+s:y,C={items:[{key:"project",label:"プロジェクト変更",children:d.filter(w=>w.active).map(w=>({key:`project:${e.id}:${t}:${w.code}`,label:X.jsxs(pn,{children:[X.jsx(hi,{color:w.color}),w.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:X.jsx(B1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:X.jsx(Sp,{}),danger:!0}],onClick:({key:w})=>g(w),onSelect:({key:w})=>g(w),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return X.jsxs("div",{onMouseEnter:()=>!r&&f(`${t}-${e.id}`),onMouseLeave:()=>!r&&f(null),onMouseDown:w=>m(w,e.id,t,e.startMinutes),style:{position:"absolute",top:Math.max(0,v),height:Math.max(b,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:a?.4:r?.8:1,zIndex:r?10:1,boxShadow:r&&!a?"0 4px 12px rgba(0,0,0,0.15)":"none"},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx(gb,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),X.jsx(gb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),X.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:X.jsx(N1,{menu:C,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:X.jsx(A3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:w=>w.stopPropagation(),onClick:w=>w.stopPropagation()})})})]}),e.description&&X.jsx(gb,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:hb}=Pr;function ZR(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const fee=({dragState:e,dragOffset:t,isDraggingToResult:n,planItems:r,getProjectColor:a,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,m=ZR(f),g=(f-s*60)/60*c;if(e.isBreak){const b=e.breakDuration||60,v=b/60*c,x=f+b,C=ZR(x);return X.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(v,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:X.jsxs(hb,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",m,"〜",C]})})}const h=r.find(b=>b.id===e.itemId);if(!h)return null;const y=c;return X.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(y,20),left:4,right:4,background:`${a(h.project)}30`,borderLeft:`3px dashed ${a(h.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",fontSize:11,opacity:.8,zIndex:5,pointerEvents:"none"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx(hb,{style:{fontSize:10,color:"#666",flexShrink:0},children:m}),X.jsx(hb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function JR(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function ym(e,t,n,r,a,s=15){const c=t/n*60;let d=Math.round(e+c);d=Math.round(d/s)*s;const f=0,m=(a+r)*60;d=Math.max(f,Math.min(m-60,d));const g=Math.floor(d/60),h=d%60;return`${String(g).padStart(2,"0")}:${String(h).padStart(2,"0")}`}function mee({resultAreaRef:e,currentReport:t,updatePlan:n,updateResult:r,startHour:a=8,totalHours:s=12,hourHeight:c=60,snapMinutes:d=15}){const[f,m]=l.useState(null),[g,h]=l.useState(0),[y,b]=l.useState(!1),v=l.useCallback((w,R,$,E,T,N)=>{w.preventDefault(),w.stopPropagation(),m({itemId:R,type:$,startY:w.clientY,startMinutes:E,isBreak:T,breakDuration:N}),h(0)},[]),x=l.useCallback(w=>{if(!f)return;const R=w.clientY-f.startY,$=c/4,E=Math.round(R/$)*$;if(h(E),f.type==="plan"&&e.current){const T=e.current.getBoundingClientRect(),N=w.clientX>=T.left&&w.clientX<=T.right;b(N)}},[f,e,c]),C=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const w=g!==0?ym(f.startMinutes,g,c,s,a,d):JR(f.startMinutes),R={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:w,project:"---",task:"休憩"},$=f.startMinutes+(f.breakDuration||60),E=g!==0?ym($,g,c,s,a,d):JR($),T=[...t.result,R];T.sort((N,O)=>N.time.localeCompare(O.time)),r(T),En.success(`休憩(${w}〜${E})を実績にコピーしました`)}else{const w=t.plan.find(R=>R.id===f.itemId);if(w){const R=g!==0?ym(f.startMinutes,g,c,s,a,d):w.time,$={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:R,project:w.project,task:w.task},E=[...t.result,$];E.sort((T,N)=>T.time.localeCompare(N.time)),r(E),En.success(`「${w.task}」を実績にコピーしました`)}}else if(g!==0){const w=ym(f.startMinutes,g,c,s,a,d),$=(f.type==="plan"?[...t.plan]:[...t.result]).map(E=>E.id===f.itemId?{...E,time:w}:E);$.sort((E,T)=>E.time.localeCompare(T.time)),f.type==="plan"?n($):r($),En.success(`予定を ${w} に移動しました`)}m(null),h(0),b(!1)}},[f,g,y,t,n,r,a,s,c,d]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",C),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",C),document.body.style.cursor="",document.body.style.userSelect=""}},[f,x,C]),{dragState:f,dragOffset:g,isDraggingToResult:y,handleDragStart:v}}function pee(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function ES(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(`
|
|
353
|
+
`);for(const a of r)t.push(` ${a}`)}return t}function e4(e,t){return[`## ${t}`,...ES(e)].join(`
|
|
354
|
+
`)}function t4(e){const t=e.split(`
|
|
355
|
+
`),n=[];let r=null,a=[];const s=()=>{r&&(a.length>0&&(r.description=a.join(`
|
|
356
|
+
`)),n.push(r),r=null,a=[])};for(let c=0;c<t.length;c++){const d=t[c];if(d.startsWith(" ")&&r){a.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 m=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s*$/);m&&(s(),n.push({id:`break${Date.now()}-${c}`,time:m[1].padStart(5,"0"),project:"",task:""}))}return s(),n}function n4(e,t=8,n=12,r=60){if(e.length===0)return[];const a=[...e].sort((f,m)=>f.time.localeCompare(m.time)),s=t*60,c=n*60,d=[];for(let f=0;f<a.length;f++){const m=a[f];if(!m.task)continue;const h=id(m.time);let y=60;for(let v=f+1;v<a.length;v++){const x=a[v],C=id(x.time);if(C>h){y=C-h;break}}const b=h+y;d.push({id:m.id,time:m.time,project:m.project,task:m.task,description:m.description,duration:y,isBreak:!1,startMinutes:h,endMinutes:b,top:(h-s)/c*100,height:y/c*100,topPx:(h-s)/60*r,heightPx:y/60*r})}return d}function r4(e,t=8,n=12,r=60){if(e.length===0)return[];const a=[...e].sort((f,m)=>f.time.localeCompare(m.time)),s=[],c=t*60,d=n*60;for(let f=0;f<a.length;f++){const m=a[f];if(!m.task){let g=!1,h=0;for(let v=f+1;v<a.length;v++)if(a[v].task){h=id(a[v].time),g=!0;break}if(!g)continue;const y=id(m.time),b=h-y;s.push({id:m.id,startTime:m.time,endTime:pee(h),startMinutes:y,endMinutes:h,duration:b,top:(y-c)/d*100,height:b/d*100,topPx:(y-c)/60*r,heightPx:b/60*r})}}return s}function gee(e,t={}){const{maxHours:n=36,defaultStartHour:r=8,defaultEndHour:a=20}=t;if(e.length===0)return{startHour:r,endHour:a,totalHours:a-r};let s=r*60,c=a*60;for(const g of e){const h=id(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 m=d+n;return f>m&&(f=m),{startHour:d,endHour:f,totalHours:f-d}}function hee(e){switch(e){case"completed":return"x";case"in_progress":return"*";case"on_hold":return"-";default:return" "}}function yee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";default:return"pending"}}function B3(e){const t=[];for(const n of e){const r=hee(n.status),a=n.priority==="high"?"!!!":n.priority==="medium"?"!!":n.priority==="low"?"!":"",s=n.deadline?` @${n.deadline}`:"";if(t.push(`- [${r}] [${n.project}] ${a}${n.task}${s}`),n.description){const c=n.description.split(`
|
|
357
|
+
`);for(const d of c)t.push(` ${d}`)}}return t}function o4(e,t){const n=["## [TODO]",""];return n.push(...B3(e)),n.push(""),n.push("## [NOTE]"),n.push(t),n.join(`
|
|
358
|
+
`)}function bee(e){const t=e.split(`
|
|
359
|
+
`),n=[];let r="P99",a=!1;const s=[];let c=null;const d=[],f=()=>{c&&(d.length>0&&(c.description=d.join(`
|
|
360
|
+
`)),n.push(c),c=null,d.length=0)};for(let m=0;m<t.length;m++){const g=t[m];if(g.match(/^##\s+\[NOTE\]/i)){f(),a=!0;continue}if(a){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 b=y[1];let v=y[2],x=r;const C=v.match(/^\[([^\]]+)\]\s*/);C&&(x=C[1],v=v.substring(C[0].length));let w;const R=v.match(/^(!!!|!!|!)/);if(R){const T=R[1];w=T==="!!!"?"high":T==="!!"?"medium":"low",v=v.substring(R[0].length)}let $;const E=v.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(E)$=E[1],v=v.substring(0,v.length-E[0].length);else{const T=v.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);T&&($=T[1],v=v.substring(T[0].length))}$&&$.length===5&&($=`${new Date().getFullYear()}-${$}`),c={id:`t${Date.now()}-${m}`,project:x,task:v.trim(),status:yee(b),deadline:$,priority:w}}}return f(),{todos:n,notes:s.join(`
|
|
361
|
+
`).trim()}}function L3(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 vee(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 See(e,t,n){const r=s=>s.map(c=>`* ${c.time} [${c.project}] ${c.task}`).join(`
|
|
362
|
+
`),a=s=>s.map(c=>{const d=c.status==="completed"?"x":c.status==="in_progress"?"*":c.status==="on_hold"?"-":" ",f=c.deadline?`@${c.deadline} `:"",m=c.priority==="high"?"!!! ":c.priority==="medium"?"!! ":c.priority==="low"?"! ":"";return`- [${d}] ${f}${m}[${c.project}] ${c.task}`}).join(`
|
|
363
|
+
`);return`# [日報] ${n} ${t}
|
|
364
|
+
|
|
365
|
+
## [PLAN]
|
|
366
|
+
${r(e.plan)}
|
|
367
|
+
|
|
368
|
+
## [RESULT]
|
|
369
|
+
${r(e.result)}
|
|
370
|
+
|
|
371
|
+
## [TODO]
|
|
372
|
+
${a(e.todos)}
|
|
373
|
+
|
|
374
|
+
## [NOTE]
|
|
375
|
+
${e.notes||""}
|
|
376
|
+
`}const{Text:Fn}=Pr,{TextArea:a4}=Ir,Cee=({selectedDate:e,selectedProjects:t=[]})=>{const{report:n,config:r}=bl(),[a,s]=l.useState(!1),[c,d]=l.useState(!1),[f,m]=l.useState(null),g=l.useRef(null),h=l.useRef(null),y=n.report,b=r.projects,v=l.useMemo(()=>y?.plan||[],[y?.plan]),x=l.useMemo(()=>y?.result||[],[y?.result]),C=r.config?.timeline,w=C?.hourHeight??60,R=C?.maxHours??36,$=C?.defaultStartHour??8,E=C?.defaultEndHour??20,T=C?.snapMinutes??15,N=l.useMemo(()=>{const ue=[...v,...x];return gee(ue,{maxHours:R,defaultStartHour:$,defaultEndHour:E})},[v,x,R,$,E]),{startHour:O,endHour:D,totalHours:j}=N,B=j*w,[V,U]=l.useState(""),[G,Y]=l.useState(""),{dragState:_,dragOffset:H,isDraggingToResult:F,handleDragStart:I}=mee({resultAreaRef:h,currentReport:y,updatePlan:n.updatePlan,updateResult:n.updateResult,startHour:O,totalHours:j,hourHeight:w,snapMinutes:T}),z=ue=>r.getProjectColor(ue),L=bn(),P=e.isSame(L,"day"),A=L.hour()*60+L.minute(),k=Array.from({length:j+1},(ue,ve)=>O+ve),q=l.useMemo(()=>n4(v,O,j,w),[v,O,j,w]),K=l.useMemo(()=>n4(x,O,j,w),[x,O,j,w]),Z=l.useMemo(()=>r4(v,O,j,w),[v,O,j,w]),J=l.useMemo(()=>r4(x,O,j,w),[x,O,j,w]),re=l.useMemo(()=>t.length>0?q.filter(ue=>t.includes(ue.project)):q,[q,t]),ie=l.useMemo(()=>t.length>0?K.filter(ue=>t.includes(ue.project)):K,[K,t]),ne=Z,le=J,se=l.useRef(null);l.useEffect(()=>{const ue=e.format("YYYY-MM-DD");if(se.current===ue)return;const ve=[...v,...x];if(ve.length===0)return;const Me=ve.reduce((Be,Ze)=>{const[Fe,_e]=Ze.time.split(":").map(Number),He=Fe*60+_e;return He<Be?He:Be},1/0),Pe=Math.max(Me-30,O*60),je=(Pe-O*60)/60*w;requestAnimationFrame(()=>{g.current&&!a&&(g.current.scrollTop=je,se.current=ue,console.log(`[Timeline] Scrolled to ${Pe}min (${Math.floor(Pe/60)}:${String(Pe%60).padStart(2,"0")}), scrollTop=${je}px, firstItem=${Me}min, startHour=${O}`))})},[e,a,O,w,v,x]);const ce=(ue,ve)=>{n.deleteScheduleItem(ve,ue),En.success(`${ve==="plan"?"計画":"実績"}を削除しました`)},me=l.useCallback((ue,ve,Me)=>{n.updateScheduleItem(Me,ue,{project:ve}),En.success(`プロジェクトを ${ve} に変更しました`)},[n]),ae=ue=>{n.addScheduleItem("result",{time:ue.time,project:ue.project,task:ue.task,duration:ue.duration}),En.success(`「${ue.task}」を実績にコピーしました`)},fe=l.useCallback(ue=>{if(ue.startsWith("project:")){const ve=ue.split(":"),Me=ve[1],Pe=ve[2],je=ve[3];me(Me,je,Pe)}else if(ue.startsWith("toResult:")){const[,ve]=ue.split(":"),Me=y?.plan.find(Pe=>Pe.id===ve);Me&&ae(Me)}else if(ue.startsWith("delete:")){const[,ve,Me]=ue.split(":");ce(ve,Me)}},[y,me]),ge=l.useMemo(()=>re.reduce((ue,ve)=>ue+ve.duration,0),[re]),he=l.useMemo(()=>ie.reduce((ue,ve)=>ue+ve.duration,0),[ie]),ye=l.useMemo(()=>{const ue=new Map;for(const Pe of q)Pe.project&&!Pe.isBreak&&ue.set(Pe.project,(ue.get(Pe.project)||0)+Pe.duration);const ve=new Map;for(const Pe of K)Pe.project&&!Pe.isBreak&&ve.set(Pe.project,(ve.get(Pe.project)||0)+Pe.duration);const Me=new Set([...ue.keys(),...ve.keys()]);return Array.from(Me).map(Pe=>{const je=b.find(Be=>Be.code===Pe);return{project:Pe,projectName:je?.name||Pe,color:je?.color||"#999",planMinutes:ue.get(Pe)||0,resultMinutes:ve.get(Pe)||0}}).sort((Pe,je)=>je.resultMinutes-Pe.resultMinutes||je.planMinutes-Pe.planMinutes)},[q,K,b]),Ae=()=>{!a&&y&&(U(e4(y.plan,"[PLAN]")),Y(e4(y.result,"[RESULT]"))),s(!a)},xe=()=>{const ue=t4(V),ve=t4(G);n.updatePlan(ue),n.updateResult(ve),En.success("反映しました"),s(!1)},Se=(ue,ve)=>{const Me=ve?"result":"plan",Pe=f===`${Me}-${ue.id}`,je=_?.itemId===ue.id&&_?.type===Me,Be=je&&F;return X.jsx(dee,{item:ue,type:Me,isHovered:Pe,isDragging:je,isDraggingToResultArea:Be,dragOffset:H,getProjectColor:z,projects:b,onHover:m,onDragStart:I,onMenuAction:fe},ue.id)};return X.jsxs(Oa,{title:X.jsxs(pn,{children:[X.jsx(Td,{}),X.jsx("span",{children:"タイムライン"}),X.jsx(cr,{children:e.format("MM/DD (ddd)")})]}),extra:X.jsx(pn,{children:a?X.jsxs(X.Fragment,{children:[X.jsx(_t,{size:"small",icon:X.jsx(Ur,{}),onClick:()=>s(!1),children:"キャンセル"}),X.jsx(_t,{type:"primary",size:"small",icon:X.jsx(pl,{}),onClick:xe,children:"OK"})]}):X.jsxs(X.Fragment,{children:[X.jsx(_t,{size:"small",icon:X.jsx(GR,{}),onClick:()=>d(!0),children:"集計"}),X.jsx(_t,{type:"primary",size:"small",icon:X.jsx(yi,{}),onClick:Ae,children:"編集"})]})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:[a?X.jsxs("div",{style:{display:"flex",flex:1,gap:12,overflow:"hidden"},children:[X.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[X.jsx(Fn,{strong:!0,style:{marginBottom:4,color:"#1890ff"},children:"計画"}),X.jsx(a4,{value:V,onChange:ue=>U(ue.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}),X.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[X.jsx(Fn,{strong:!0,style:{marginBottom:4,color:"#52c41a"},children:"実績"}),X.jsx(a4,{value:G,onChange:ue=>Y(ue.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]})]}):X.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[X.jsxs("div",{style:{display:"flex",flexShrink:0,paddingBottom:4,borderBottom:"1px solid #f0f0f0"},children:[X.jsx("div",{style:{width:40,flexShrink:0}}),X.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80},children:[X.jsx(D3,{style:{fontSize:12,color:"#1890ff"}}),X.jsx(Fn,{style:{fontSize:11,color:"#1890ff"},children:"計画"}),X.jsx(Fn,{strong:!0,style:{fontSize:12,color:"#1890ff"},children:Wi(ge)})]}),X.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80,marginLeft:8},children:[X.jsx(B1,{style:{fontSize:12,color:"#52c41a"}}),X.jsx(Fn,{style:{fontSize:11,color:"#52c41a"},children:F?"ここにドロップでコピー":"実績"}),X.jsx(Fn,{strong:!0,style:{fontSize:12,color:"#52c41a"},children:Wi(he)})]})]}),X.jsxs("div",{ref:g,style:{display:"flex",flex:1,overflow:"auto",minHeight:0},children:[X.jsx("div",{style:{width:40,flexShrink:0,position:"relative",height:B},children:k.map((ue,ve)=>X.jsx("div",{style:{position:"absolute",top:ve*w,left:0,right:0,height:ve<k.length-1?w:0,borderTop:"1px solid #f0f0f0",paddingRight:4,textAlign:"right"},children:X.jsxs(Fn,{type:"secondary",style:{fontSize:10},children:[ue,":00"]})},ue))}),X.jsxs("div",{style:{flex:1,position:"relative",minWidth:80,height:B,background:"#fafafa"},children:[k.map(ue=>X.jsx("div",{style:{position:"absolute",top:(ue-O)*w,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},ue)),P&&A>=O*60&&A<=D*60&&X.jsx("div",{style:{position:"absolute",top:(A-O*60)/60*w,left:0,right:0,borderTop:"2px solid #ff4d4f",zIndex:10},children:X.jsx("div",{style:{position:"absolute",left:-4,top:-6,width:10,height:10,borderRadius:"50%",background:"#ff4d4f"}})}),ne.map(ue=>{const ve=_?.itemId===ue.id&&_?.isBreak;return X.jsx("div",{style:{position:"absolute",top:(ue.startMinutes-O*60)/60*w+(ve?H:0),height:ue.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:ve?.5:.8,cursor:"grab",transition:ve?"none":"opacity 0.2s"},onMouseDown:Me=>I(Me,ue.id,"plan",ue.startMinutes,!0,ue.duration),children:X.jsx(Fn,{type:"secondary",style:{fontSize:10},children:"休憩"})},ue.id)}),re.map(ue=>Se(ue,!1))]}),X.jsxs("div",{ref:h,style:{flex:1,position:"relative",minWidth:80,marginLeft:8,height:B,background:"#fafafa",transition:"all 0.2s",...F&&{boxShadow:"0 0 0 2px #52c41a"}},children:[k.map(ue=>X.jsx("div",{style:{position:"absolute",top:(ue-O)*w,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},ue)),le.map(ue=>{const ve=_?.itemId===ue.id&&_?.isBreak;return X.jsx("div",{style:{position:"absolute",top:(ue.startMinutes-O*60)/60*w+(ve?H:0),height:ue.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:ve?.5:.8,cursor:"grab",transition:ve?"none":"opacity 0.2s"},onMouseDown:Me=>I(Me,ue.id,"result",ue.startMinutes,!0,ue.duration),children:X.jsx(Fn,{type:"secondary",style:{fontSize:10},children:"休憩"})},ue.id)}),ie.map(ue=>Se(ue,!0)),X.jsx(fee,{dragState:_,dragOffset:H,isDraggingToResult:F,planItems:v,getProjectColor:z,startHour:O,hourHeight:w})]})]})]}),X.jsx(io,{title:X.jsxs(pn,{children:[X.jsx(GR,{}),X.jsx("span",{children:"プロジェクト別稼働時間"}),X.jsx(cr,{children:e.format("MM/DD (ddd)")})]}),open:c,onCancel:()=>d(!1),footer:null,width:600,children:X.jsxs("div",{style:{padding:"16px 0"},children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:24,padding:"12px 16px",background:"#fafafa",borderRadius:8},children:[X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx(Fn,{type:"secondary",style:{fontSize:12},children:"計画"}),X.jsx("div",{children:X.jsx(Fn,{strong:!0,style:{fontSize:20,color:"#1890ff"},children:Wi(ge)})})]}),X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx(Fn,{type:"secondary",style:{fontSize:12},children:"実績"}),X.jsx("div",{children:X.jsx(Fn,{strong:!0,style:{fontSize:20,color:"#52c41a"},children:Wi(he)})})]}),X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx(Fn,{type:"secondary",style:{fontSize:12},children:"差分"}),X.jsx("div",{children:X.jsxs(Fn,{strong:!0,style:{fontSize:20,color:he>=ge?"#52c41a":"#ff4d4f"},children:[he>=ge?"+":"-",Wi(Math.abs(he-ge))]})})]})]}),ye.length>0?X.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:ye.map(ue=>{const ve=Math.max(...ye.map(je=>Math.max(je.planMinutes,je.resultMinutes)),60),Me=ue.planMinutes/ve*100,Pe=ue.resultMinutes/ve*100;return X.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[X.jsx("div",{style:{width:12,height:12,borderRadius:2,background:ue.color,flexShrink:0}}),X.jsxs(Fn,{strong:!0,style:{fontSize:13},children:["[",ue.project,"] ",ue.projectName]})]}),X.jsxs("div",{style:{marginLeft:20},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:2},children:[X.jsx(Fn,{type:"secondary",style:{fontSize:11,width:32},children:"計画"}),X.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:X.jsx("div",{style:{width:`${Me}%`,height:"100%",background:`linear-gradient(90deg, ${ue.color}88, ${ue.color}cc)`,transition:"width 0.3s ease"}})}),X.jsx(Fn,{style:{fontSize:12,width:50,textAlign:"right",color:"#1890ff"},children:Wi(ue.planMinutes)})]}),X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[X.jsx(Fn,{type:"secondary",style:{fontSize:11,width:32},children:"実績"}),X.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:X.jsx("div",{style:{width:`${Pe}%`,height:"100%",background:ue.color,transition:"width 0.3s ease"}})}),X.jsx(Fn,{style:{fontSize:12,width:50,textAlign:"right",color:"#52c41a"},children:Wi(ue.resultMinutes)})]})]})]},ue.project)})}):X.jsx("div",{style:{textAlign:"center",padding:40},children:X.jsx(Fn,{type:"secondary",children:"データがありません"})})]})})]})},xee=({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 X.jsx("span",{style:n,onClick:t,children:X.jsx(oJ,{style:{fontSize:18,color:"#52c41a"}})});case"in_progress":return X.jsx("span",{style:n,onClick:t,children:X.jsx("span",{style:{...r,border:"2px solid #1890ff"},children:X.jsx(JZ,{style:{fontSize:8,color:"#1890ff"}})})});case"on_hold":return X.jsx("span",{style:n,onClick:t,children:X.jsx("span",{style:{...r,border:"2px solid #faad14"},children:X.jsx(_J,{style:{fontSize:8,color:"#faad14"}})})});default:return X.jsx("span",{style:n,onClick:t,children:X.jsx(KZ,{style:{fontSize:18,color:"#d9d9d9"}})})}},{Text:i4}=Pr,{TextArea:$ee}=Ir,wee=({todo:e,isHovered:t,isEditing:n,editText:r,editDeadline:a,editPriority:s,projects:c,onHover:d,onStatusChange:f,onSaveEdit:m,onCancelEdit:g,onEditTextChange:h,onEditDeadlineChange:y,onEditPriorityChange:b,onMenuAction:v})=>{const x=L3(e.deadline),C=vee(e.deadline),w=E=>E==="high"?X.jsx(cr,{color:"red",style:{margin:0,fontSize:10},children:"高"}):E==="medium"?X.jsx(cr,{color:"orange",style:{margin:0,fontSize:10},children:"中"}):null,$={items:[{key:"edit",label:"編集",icon:X.jsx(yi,{})},{key:"project",label:"プロジェクト変更",children:c.filter(E=>E.active).map(E=>({key:`project:${e.id}:${E.code}`,label:X.jsxs(pn,{children:[X.jsx(hi,{color:E.color}),E.name]})}))},{type:"divider"},{key:"delete",label:"削除",icon:X.jsx(Sp,{}),danger:!0}],onClick:({key:E})=>v(E,e),onSelect:({key:E})=>v(E,e),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return n?X.jsx(Co.Item,{style:{padding:"8px 12px",borderRadius:6,marginBottom:6,border:"1px solid #1890ff",background:"#e6f7ff"},children:X.jsxs("div",{style:{width:"100%"},children:[X.jsx($ee,{value:r,onChange:E=>h(E.target.value),autoSize:{minRows:2,maxRows:8},style:{marginBottom:8,fontSize:12},placeholder:`1行目: タスク名
|
|
377
|
+
2行目以降: 詳細説明(任意)`}),X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:8},children:[X.jsxs(pn,{size:"small",children:[X.jsx(yl,{size:"small",placeholder:"期日",value:a?bn(a):null,onChange:E=>y(E?E.format("YYYY-MM-DD"):void 0),style:{width:120},format:"MM/DD"}),X.jsx(Fr,{size:"small",placeholder:"優先度",value:s,onChange:E=>b(E),allowClear:!0,style:{width:80},options:[{value:"high",label:X.jsx(cr,{color:"red",style:{margin:0},children:"高"})},{value:"medium",label:X.jsx(cr,{color:"orange",style:{margin:0},children:"中"})},{value:"low",label:X.jsx(cr,{color:"blue",style:{margin:0},children:"低"})}]})]}),X.jsxs(pn,{size:"small",children:[X.jsx(_t,{size:"small",icon:X.jsx(Ur,{}),onClick:g,children:"キャンセル"}),X.jsx(_t,{size:"small",type:"primary",icon:X.jsx(pl,{}),onClick:m,children:"OK"})]})]})]})}):X.jsx(Co.Item,{onMouseEnter:()=>d(e.id),onMouseLeave:()=>d(null),style:{padding:"8px 12px",background:e.status==="completed"?"#fafafa":x?"#fff2f0":"transparent",opacity:e.status==="completed"?.6:1,borderRadius:6,marginBottom:6,border:x&&e.status!=="completed"?"1px solid #ffccc7":"1px solid #f0f0f0"},children:X.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},children:[X.jsx(xee,{status:e.status,onClick:()=>f(e.id)}),X.jsxs("div",{style:{flex:1,minWidth:0},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[X.jsx(i4,{delete:e.status==="completed",style:{fontWeight:500,fontSize:13},children:e.task}),w(e.priority),x&&e.status!=="completed"&&X.jsxs(cr,{color:"error",style:{margin:0,fontSize:10},children:[X.jsx(j3,{})," 期限切れ"]})]}),e.description&&X.jsx("div",{style:{marginTop:4,paddingLeft:4},children:X.jsx(i4,{type:"secondary",style:{fontSize:12,whiteSpace:"pre-wrap",lineHeight:1.5},children:e.description})}),e.deadline&&X.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:4},children:X.jsx(dr,{title:`期限: ${e.deadline}`,children:X.jsxs(cr,{color:x?"error":C?"warning":"default",style:{margin:0,fontSize:10},children:[X.jsx(Td,{style:{marginRight:2}}),bn(e.deadline).format("MM/DD")]})})})]}),X.jsx(pn,{size:4,style:{visibility:t?"visible":"hidden",flexShrink:0},children:X.jsx(N1,{menu:$,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:X.jsx(A3,{style:{fontSize:16,color:"#666",cursor:"pointer",padding:"0 4px"},onClick:E=>E.stopPropagation()})})})]})})},Eee=({filter:e,counts:t,onFilterChange:n})=>{const r=[{key:"all",icon:X.jsx(OJ,{}),label:"全て",count:t.all,color:"#666"},{key:"pending",icon:X.jsx(Td,{}),label:"未着手",count:t.pending,color:"#999"},{key:"in_progress",icon:X.jsx(D3,{}),label:"進行中",count:t.in_progress,color:"#1890ff"},{key:"completed",icon:X.jsx(B1,{}),label:"完了",count:t.completed,color:"#52c41a"},{key:"on_hold",icon:X.jsx(AJ,{}),label:"保留",count:t.on_hold,color:"#faad14"}];return X.jsx("div",{style:{display:"flex",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0},children:r.map(a=>X.jsxs("div",{onClick:()=>n(a.key),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"10px 4px",cursor:"pointer",background:e===a.key?"#fff":"transparent",borderBottom:e===a.key?`2px solid ${a.color}`:"2px solid transparent",transition:"all 0.2s"},children:[X.jsx("span",{style:{fontSize:14,color:e===a.key?a.color:"#999"},children:a.icon}),X.jsx("span",{style:{fontSize:11,color:e===a.key?a.color:"#999",fontWeight:e===a.key?600:400},children:a.label}),X.jsx(hi,{count:a.count,size:"small",style:{backgroundColor:e===a.key?a.color:"#d9d9d9",fontSize:10}})]},a.key))})},{Text:Kc}=Pr,{TextArea:l4}=Ir,Mee=({selectedProjects:e=[]})=>{const{report:t,config:n}=bl(),[r,a]=l.useState("all"),[s,c]=l.useState(!1),[d,f]=l.useState(null),[m,g]=l.useState(null),[h,y]=l.useState(""),[b,v]=l.useState(void 0),[x,C]=l.useState(void 0),w=t.report,R=w?.todos||[],$=n.projects,[E,T]=l.useState(w?.notes||""),[N,O]=l.useState("");l.useEffect(()=>{w&&(T(w.notes||""),O(o4(w.todos,w.notes||"")))},[w]),l.useEffect(()=>{w&&E!==w.notes&&t.updateNotes(E)},[E]);const D=q=>n.getProjectColor(q),j=q=>n.getProjectName(q),B=e.length>0?R.filter(q=>e.includes(q.project)):R,V=B.filter(q=>!(r!=="all"&&q.status!==r)),U=V.filter(q=>q.deadline&&L3(q.deadline)&&q.status!=="completed"),G=V.reduce((q,K)=>{const Z=K.project;return q[Z]||(q[Z]=[]),q[Z].push(K),q},{}),Y=q=>{t.toggleTodoStatus(q)},_=(q,K)=>{t.updateTodo(q,{project:K}),En.success(`プロジェクトを ${K} に変更しました`)},H=q=>{t.deleteTodo(q),En.success("TODOを削除しました")},F=q=>{g(q.id);const K=q.description?`${q.task}
|
|
378
|
+
${q.description}`:q.task;y(K),v(q.deadline),C(q.priority)},I=()=>{if(m){const q=h.split(`
|
|
379
|
+
`),K=q[0].trim(),Z=q.slice(1).join(`
|
|
380
|
+
`).trim()||void 0;t.updateTodo(m,{task:K,description:Z,deadline:b,priority:x}),En.success("更新しました"),g(null),y(""),v(void 0),C(void 0)}},z=()=>{g(null),y(""),v(void 0),C(void 0)},L=l.useCallback((q,K)=>{if(q==="edit")F(K);else if(q.startsWith("project:")){const Z=q.split(":"),J=Z[1],re=Z[2];_(J,re)}else q==="delete"&&H(K.id)},[_]),P={all:B.length,pending:B.filter(q=>q.status==="pending").length,in_progress:B.filter(q=>q.status==="in_progress").length,completed:B.filter(q=>q.status==="completed").length,on_hold:B.filter(q=>q.status==="on_hold").length},A=()=>{!s&&w&&O(o4(w.todos,w.notes||"")),c(!s)},k=()=>{const{todos:q,notes:K}=bee(N);t.updateTodos(q),t.updateNotes(K),T(K),En.success("反映しました"),c(!1)};return X.jsx(Oa,{title:X.jsxs(pn,{children:[X.jsx(z3,{}),X.jsx("span",{children:"TODO"}),X.jsx(hi,{count:P.pending+P.in_progress,style:{backgroundColor:"#1890ff"}}),U.length>0&&X.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:[X.jsx(j3,{}),X.jsxs("span",{children:[U.length,"件期限切れ"]})]})]}),extra:s?X.jsxs(pn,{children:[X.jsx(_t,{size:"small",icon:X.jsx(Ur,{}),onClick:()=>c(!1),children:"キャンセル"}),X.jsx(_t,{type:"primary",size:"small",icon:X.jsx(pl,{}),onClick:k,children:"OK"})]}):X.jsx(_t,{type:"primary",size:"small",icon:X.jsx(yi,{}),onClick:A,children:"編集"}),style:{height:"100%"},styles:{body:{padding:0,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:s?X.jsxs("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column"},children:[X.jsx(Kc,{type:"secondary",style:{marginBottom:8,fontSize:11},children:"TODO: - [ ] タスク名 @期日 !優先度 / NOTE: ## [NOTE] 以降に自由記述"}),X.jsx(l4,{value:N,onChange:q=>O(q.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}):X.jsxs(X.Fragment,{children:[X.jsx(Eee,{filter:r,counts:P,onFilterChange:a}),X.jsxs("div",{style:{flex:1,overflow:"auto",padding:"12px 12px 12px 12px"},children:[Object.entries(G).map(([q,K])=>X.jsxs("div",{style:{marginBottom:16},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8,padding:"6px 10px",background:"#f5f5f5",borderRadius:6},children:[X.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:D(q),flexShrink:0}}),X.jsxs(Kc,{type:"secondary",style:{fontSize:10},children:["[",q,"]"]}),X.jsx(Kc,{strong:!0,style:{fontSize:12},children:j(q)}),X.jsxs(Kc,{type:"secondary",style:{fontSize:11},children:["(",K.length,")"]})]}),X.jsx(Co,{dataSource:K,renderItem:Z=>X.jsx(wee,{todo:Z,isHovered:d===Z.id,isEditing:m===Z.id,editText:h,editDeadline:b,editPriority:x,projects:$,getProjectColor:D,onHover:f,onStatusChange:Y,onStartEdit:F,onSaveEdit:I,onCancelEdit:z,onEditTextChange:y,onEditDeadlineChange:v,onEditPriorityChange:C,onMenuAction:L},Z.id),size:"small",split:!1})]},q)),X.jsx(ui,{style:{margin:"16px 0 12px 0"}}),X.jsxs("div",{style:{marginBottom:12},children:[X.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:8},children:X.jsxs(pn,{children:[X.jsx(hp,{style:{color:"#666"}}),X.jsx(Kc,{strong:!0,style:{fontSize:12},children:"NOTE"})]})}),X.jsx(l4,{value:E,onChange:q=>T(q.target.value),autoSize:{minRows:3,maxRows:8},placeholder:"メモを入力...",style:{fontSize:12}})]})]})]})})},{Text:bm}=Pr,Ree=({selectedProjects:e=[],onToggleProject:t})=>{const{config:n,report:r}=bl(),a=n.projects,s=l.useMemo(()=>{const f=r.report?.todos||[];return a.filter(m=>m.active).map(m=>{const h=f.filter(y=>y.project===m.code).filter(y=>y.status!=="completed").length;return{...m,pendingTodos:h}})},[a,r.report?.todos]),c=l.useMemo(()=>s.reduce((f,m)=>(f[m.category]||(f[m.category]=[]),f[m.category].push(m),f),{}),[s]),d=f=>{t&&t(f)};return X.jsx(Oa,{title:X.jsxs(pn,{children:[X.jsx(FJ,{}),X.jsx("span",{children:"プロジェクト"})]}),extra:X.jsx(_t,{type:"text",size:"small",icon:X.jsx(JJ,{})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Object.entries(c).map(([f,m])=>X.jsxs("div",{style:{marginBottom:12},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6,padding:"4px 8px",background:"#f5f5f5",borderRadius:4},children:[X.jsx(bm,{strong:!0,style:{fontSize:11},children:f}),X.jsxs(bm,{type:"secondary",style:{fontSize:10,marginLeft:6},children:["(",m.length,")"]})]}),X.jsx(Co,{dataSource:m,renderItem:g=>{const h=e.includes(g.code);return X.jsx(Co.Item,{onClick:()=>d(g.code),style:{padding:"8px 10px",marginBottom:4,borderRadius:6,border:h?`2px solid ${g.color}`:"1px solid #f0f0f0",cursor:"pointer",background:h?`${g.color}10`:"#fff",transition:"all 0.2s"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:g.color,flexShrink:0}}),X.jsxs("div",{style:{flex:1,minWidth:0},children:[X.jsxs(bm,{type:"secondary",style:{fontSize:10,marginRight:4},children:["[",g.code,"]"]}),X.jsx(bm,{strong:!0,style:{fontSize:12},children:g.name})]}),g.pendingTodos>0&&X.jsx(hi,{count:g.pendingTodos,size:"small",style:{backgroundColor:"#999"}})]})})},size:"small",split:!1})]},f))})},{TextArea:Tee}=Ir,{Text:us}=Pr,Oee=({onApplyRoutine:e})=>{const{config:t}=bl(),{loadConfig:n}=t,[r,a]=l.useState(new Set),[s,c]=l.useState(!1),[d,f]=l.useState(""),[m,g]=l.useState(!1),[h,y]=l.useState(!1),b=t.routines?.weekly||{},v=t.routines?.adhoc||[],x=t.routines?.monthly||{},C=t.routines?.quarterly||[],w=t.routines?.yearly||[],R=l.useCallback(async()=>{y(!0);try{const I=await Cp.getRoutinesMarkdown({});f(I.content),c(!0)}catch(I){console.error("Failed to load routines markdown:",I),En.error("ルーチン設定の読み込みに失敗しました")}finally{y(!1)}},[]),$=l.useCallback(async()=>{g(!0);try{await Cp.saveRoutinesMarkdown({data:{content:d}}),En.success("ルーチン設定を保存しました"),c(!1),await n()}catch(I){console.error("Failed to save routines markdown:",I),En.error("ルーチン設定の保存に失敗しました")}finally{g(!1)}},[d,n]),E=l.useCallback(()=>{c(!1),f("")},[]),T=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:"年次"}],O=bn().day(),D=O===0?"sunday":N[O-1].key,j=l.useMemo(()=>{const I=[];return x.schedule&&x.schedule.forEach(z=>{I.push({time:z.time,project:z.project,task:z.task,category:"plan"})}),x.start_of_month&&x.start_of_month.forEach(z=>{I.push({project:z.project,task:`[月初] ${z.task}`,category:z.category||"todo"})}),x.end_of_month&&x.end_of_month.forEach(z=>{I.push({project:z.project,task:`[月末] ${z.task}`,category:z.category||"todo"})}),I},[x]),B=l.useMemo(()=>{const I=[];return C.forEach(z=>{if(z.schedule&&z.schedule.forEach(L=>{I.push({time:L.time,project:L.project,task:L.task,category:"plan"})}),z.months.length>0){const L=z.months.join(",")+"月";z.tasks.forEach(P=>{I.push({project:P.project,task:`[${L}] ${P.task}`,category:P.category||"todo"})})}}),I},[C]),V=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 L=`${I}:${z}`;a(P=>{const A=new Set(P);return A.has(L)?A.delete(L):A.add(L),A})},G=(I,z)=>{const L=z.map((A,k)=>`${I}:${k}`),P=L.every(A=>r.has(A));a(A=>{const k=new Set(A);return P?L.forEach(q=>k.delete(q)):L.forEach(q=>k.add(q)),k})},Y=()=>{if(r.size===0){En.info("追加するルーチンを選択してください");return}const I=[];if(r.forEach(z=>{const[L,P]=z.split(":"),A=parseInt(P,10);let k;if(L==="adhoc"?k=v[A]:L==="monthly"?k=j[A]:L==="quarterly"?k=B[A]:L==="yearly"?k=V[A]:k=b[L]?.[A],k){const q=k.time&&k.time!=="",K=k.category||(q?"plan":"todo");I.push({time:k.time,project:k.project,task:k.task,duration:k.duration,category:K})}}),I.length>0&&e){e(I),a(new Set);const z=I.filter(A=>A.category==="plan").length,L=I.filter(A=>A.category==="todo").length,P=[];z>0&&P.push(`PLAN: ${z}件`),L>0&&P.push(`TODO: ${L}件`),En.success(`ルーチンを追加しました(${P.join("、")})`)}},_=(I,z)=>{const L=z.map((k,q)=>`${I}:${q}`),P=L.length>0&&L.every(k=>r.has(k)),A=L.some(k=>r.has(k));return X.jsxs("div",{children:[z.length>0&&X.jsx("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:X.jsx(zs,{checked:P,indeterminate:A&&!P,onChange:()=>G(I,z),children:X.jsx(us,{type:"secondary",style:{fontSize:11},children:"すべて選択"})})}),z.length===0?X.jsx("div",{style:{textAlign:"center",padding:16},children:X.jsx(us,{type:"secondary",children:"ルーチンが登録されていません"})}):X.jsx(Co,{dataSource:z,renderItem:(k,q)=>{const K=`${I}:${q}`,Z=r.has(K),J=k.time&&k.time!=="",re=k.category==="todo"||!J;return X.jsx(Co.Item,{style:{padding:"6px 8px",marginBottom:4,borderRadius:4,borderLeft:`3px solid ${T(k.project)}`,background:Z?"#e6f7ff":"#fafafa",cursor:"pointer",transition:"background 0.2s"},onClick:()=>U(I,String(q)),children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx(zs,{checked:Z,onClick:ie=>ie.stopPropagation(),onChange:()=>U(I,String(q))}),re?X.jsxs(us,{style:{fontSize:11,color:"#52c41a",minWidth:40},children:[X.jsx(z3,{style:{marginRight:2}}),"TODO"]}):X.jsxs(us,{style:{fontSize:11,color:"#1890ff",minWidth:40,fontWeight:500},children:[X.jsx(Td,{style:{marginRight:2}}),k.time]}),X.jsx(cr,{color:T(k.project),style:{margin:0,fontSize:10},children:k.project}),X.jsx(us,{ellipsis:!0,style:{flex:1,fontSize:12},children:k.task}),k.duration&&k.duration>0&&X.jsx(us,{type:"secondary",style:{fontSize:10},children:H(k.duration)})]})})},size:"small",split:!1})]})},H=I=>{if(!I||isNaN(I))return"";const z=Math.floor(I/60),L=I%60;return z===0?`${L}分`:L===0?`${z}時間`:`${z}時間${L}分`},F=l.useMemo(()=>N.map(I=>{let z;I.key==="adhoc"?z=v:I.key==="monthly"?z=j:I.key==="quarterly"?z=B:I.key==="yearly"?z=V:z=b[I.key]||[];const L=I.key===D,P=z.filter((A,k)=>r.has(`${I.key}:${k}`)).length;return{key:I.key,label:X.jsxs(pn,{size:4,children:[X.jsx("span",{children:I.label}),L&&X.jsx(hi,{status:"processing"}),P>0&&X.jsx(hi,{count:P,size:"small",style:{backgroundColor:"#1890ff"}})]}),children:_(I.key,z)}}),[b,v,j,B,V,r,D]);return s?X.jsx(Oa,{title:X.jsxs(pn,{children:[X.jsx(yi,{}),X.jsx("span",{children:"ルーチン編集"})]}),extra:X.jsxs(pn,{children:[X.jsx(_t,{size:"small",icon:X.jsx(Ur,{}),onClick:E,disabled:m,children:"キャンセル"}),X.jsx(_t,{type:"primary",size:"small",icon:X.jsx(L1,{}),onClick:$,loading:m,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",display:"flex",flexDirection:"column"}},children:X.jsx(Tee,{value:d,onChange:I=>f(I.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12,resize:"none"},placeholder:`## [ROUTINES]
|
|
381
|
+
|
|
382
|
+
### [Mon]
|
|
383
|
+
* 08:00 [P99] タスク確認
|
|
384
|
+
|
|
385
|
+
### [month]
|
|
386
|
+
- [ ] [P99] 月末タスク`})}):X.jsx(Oa,{title:X.jsxs(pn,{children:[X.jsx(R3,{}),X.jsx("span",{children:"ルーチン"})]}),extra:X.jsxs(pn,{children:[X.jsxs(_t,{type:"primary",size:"small",icon:X.jsx(fp,{}),disabled:r.size===0,onClick:Y,children:["追加 ",r.size>0&&`(${r.size})`]}),X.jsx(_t,{size:"small",icon:X.jsx(yi,{}),onClick:R,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:X.jsx(T1,{defaultActiveKey:D,size:"small",items:F})})},{Text:yb}=Pr,{TextArea:s4}=Ir,Nee=()=>{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},Iee=Nee(),Pee=({selectedDate:e})=>{const{report:t,config:n}=bl(),[r,a]=l.useState("visual"),[s,c]=l.useState([]),[d,f]=l.useState([]),[m,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 b=n.projects,v=n.routines?.weekly,x=t.report?.author||n.config?.author||"",C=()=>See({date:e.format("YYYY-MM-DD"),plan:s,result:d,todos:m,notes:h},e.format("YYYY-MM-DD"),x),[w,R]=l.useState(C()),$=b.filter(z=>z.active).map(z=>({value:z.code,label:X.jsxs(pn,{children:[X.jsx("span",{style:{color:z.color},children:"●"}),z.code," - ",z.name]})})),E=()=>{if(!v)return[];const L=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return v[L]||[]},T=z=>{const L={id:`${z}-${Date.now()}`,time:bn().format("HH:00"),project:"P99",task:""};z==="plan"?c([...s,L]):f([...d,L])},N=(z,L)=>{z==="plan"?c(s.filter(P=>P.id!==L)):f(d.filter(P=>P.id!==L))},O=(z,L,P,A)=>{const k=q=>q.map(K=>K.id===L?{...K,[P]:A}:K);z==="plan"?c(k(s)):f(k(d))},D=()=>{const z={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...m,z])},j=(z,L,P)=>{g(m.map(A=>A.id===z?{...A,[L]:P}:A))},B=z=>{g(m.filter(L=>L.id!==z))},V=()=>{En.success("保存しました")},U=()=>{const z=E(),L=z.map((P,A)=>({id:`plan-routine-${Date.now()}-${A}`,time:P.time||"09:00",project:P.project,task:P.task,duration:P.duration}));c([...s,...L]),En.success(`${z.length}件のルーチンを計画に追加しました`)},G=()=>{const L=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((P,A)=>({id:`plan-gcal-${Date.now()}-${A}`,time:P.time,project:P.project,task:P.task}));c([...s,...L]),En.success("Googleカレンダーから計画を取り込みました")},Y=()=>{const z=s.map((L,P)=>({...L,id:`result-copy-${Date.now()}-${P}`}));f(z),En.success("計画を実績にコピーしました")},_=(z,L)=>X.jsxs("div",{style:{marginBottom:16},children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[X.jsx(yb,{strong:!0,style:{fontSize:14},children:z==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),X.jsxs(pn,{children:[z==="plan"&&X.jsxs(X.Fragment,{children:[X.jsx(dr,{title:"ルーチンから取り込み",children:X.jsx(_t,{size:"small",icon:X.jsx(R3,{}),onClick:U,children:"ルーチン"})}),X.jsx(dr,{title:"Googleカレンダーから取り込み",children:X.jsx(_t,{size:"small",icon:X.jsx($J,{}),onClick:G,children:"GCal"})})]}),z==="result"&&X.jsx(dr,{title:"計画を実績にコピー",children:X.jsx(_t,{size:"small",type:"primary",ghost:!0,icon:X.jsx(P3,{}),onClick:Y,children:"計画をコピー"})}),X.jsx(_t,{size:"small",type:"primary",icon:X.jsx(fp,{}),onClick:()=>T(z),children:"追加"})]})]}),z==="result"&&X.jsx(ET,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),X.jsx(Co,{dataSource:L,renderItem:P=>X.jsx(Co.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:X.jsxs("div",{style:{width:"100%"},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx(pJ,{style:{color:"#999",cursor:"grab"}}),X.jsx(Fr,{value:P.time,options:Iee,size:"small",style:{width:90},showSearch:!0,filterOption:(A,k)=>(k?.value??"").toLowerCase().includes(A.toLowerCase()),onChange:A=>O(z,P.id,"time",A),placeholder:"時刻"}),X.jsx(Fr,{value:P.project,options:$,size:"small",style:{width:150},onChange:A=>O(z,P.id,"project",A)}),X.jsx(Ir,{value:P.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>O(z,P.id,"task",A.target.value)}),X.jsx(F0,{title:"削除しますか?",onConfirm:()=>N(z,P.id),children:X.jsx(_t,{type:"text",size:"small",danger:!0,icon:X.jsx(Sp,{})})})]}),X.jsx(Ir.TextArea,{value:P.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:A=>O(z,P.id,"description",A.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),H=()=>X.jsxs("div",{style:{marginBottom:16},children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[X.jsx(yb,{strong:!0,style:{fontSize:14},children:"[TODO]"}),X.jsx(_t,{size:"small",type:"primary",icon:X.jsx(fp,{}),onClick:D,children:"追加"})]}),X.jsx(Co,{dataSource:m,renderItem:z=>X.jsx(Co.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx(Fr,{value:z.status,size:"small",style:{width:110},onChange:L=>j(z.id,"status",L),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),X.jsx(Fr,{value:z.project,options:$,size:"small",style:{width:150},onChange:L=>j(z.id,"project",L)}),X.jsx(Ir,{value:z.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:L=>j(z.id,"task",L.target.value)}),X.jsx(Ir,{value:z.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:L=>j(z.id,"deadline",L.target.value)}),X.jsx(F0,{title:"削除しますか?",onConfirm:()=>B(z.id),children:X.jsx(_t,{type:"text",size:"small",danger:!0,icon:X.jsx(Sp,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),F=()=>X.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[_("plan",s),X.jsx(ui,{style:{margin:"16px 0"}}),_("result",d),X.jsx(ui,{style:{margin:"16px 0"}}),H(),X.jsx(ui,{style:{margin:"16px 0"}}),X.jsxs("div",{children:[X.jsx(yb,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),X.jsx(s4,{value:h,onChange:z=>y(z.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),I=()=>X.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:X.jsx("div",{style:{flex:1,overflow:"hidden"},children:X.jsx(s4,{value:w,onChange:z=>R(z.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return X.jsx(Oa,{title:X.jsxs(pn,{children:[X.jsx(yi,{}),X.jsx("span",{children:"日報編集"}),X.jsx(cr,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:X.jsxs(pn,{children:[X.jsx(yG,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:X.jsx(yi,{})},{label:"テキスト",value:"text",icon:X.jsx(hp,{})}],value:r,onChange:z=>{z==="text"&&R(C()),a(z)}}),X.jsx(ui,{type:"vertical"}),X.jsx(dr,{title:"元に戻す (Ctrl+Z)",children:X.jsx(_t,{type:"text",size:"small",icon:X.jsx(nee,{})})}),X.jsx(dr,{title:"やり直し (Ctrl+Shift+Z)",children:X.jsx(_t,{type:"text",size:"small",icon:X.jsx(YJ,{})})}),X.jsx(ui,{type:"vertical"}),X.jsx(_t,{type:"primary",icon:X.jsx(L1,{}),onClick:V,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?F():I()})};function zee(e,t){const[n,r]=l.useState(e||bn().format("YYYY-MM-DD")),[a,s]=l.useState(null),[c,d]=l.useState(null),[f,m]=l.useState(!1),[g,h]=l.useState(!1),[y,b]=l.useState(null),[v,x]=l.useState(!1),C=l.useCallback(async I=>{m(!0),b(null),r(I);try{let z;try{z=await fs.getReport({date:I})}catch(L){if(L instanceof H3&&L.status===404)z=null;else throw L}if(z)d(z.stats),s(vm(I,z.content));else{const L=V3(I);t&&(L.author=t);const P=bn(I).subtract(1,"day").format("YYYY-MM-DD");try{const A=await fs.getReport({date:P});if(A){const q=vm(P,A.content).todos.filter(K=>K.status!=="completed");L.todos=q.map((K,Z)=>({...K,id:`carryover-${Date.now()}-${Z}`}))}}catch{}s(L),d(null)}x(!1)}catch(z){b(z instanceof Error?z.message:"読み込みに失敗しました")}finally{m(!1)}},[t]),w=l.useCallback(async I=>{if(!a)return!1;h(!0),b(null);try{const z=c4(a),L=await fs.saveReport({date:n,data:{content:z,git:I?.git,slack:I?.slack}});if(L.saved){d(L.stats),x(!1);const P=await fs.getReport({date:n});return P&&(s(vm(n,P.content)),d(P.stats)),!0}return!1}catch(z){return b(z instanceof Error?z.message:"保存に失敗しました"),!1}finally{h(!1)}},[a,n]),R=l.useCallback(async()=>{try{return await fs.deleteReport({date:n}),s(null),d(null),x(!1),!0}catch(I){return b(I instanceof Error?I.message:"削除に失敗しました"),!1}},[n]),$=l.useCallback(I=>{s(z=>z?{...z,plan:I}:null),x(!0)},[]),E=l.useCallback(I=>{s(z=>z?{...z,result:I}:null),x(!0)},[]),T=l.useCallback(I=>{s(z=>z?{...z,todos:I}:null),x(!0)},[]),N=l.useCallback(I=>{s(z=>z?{...z,notes:I}:null),x(!0)},[]),O=l.useCallback(I=>{const z=vm(n,I);s(z),x(!0)},[n]),D=l.useCallback(I=>{s(z=>{if(!z)return null;const L={...I,id:`t${Date.now()}-${Math.random().toString(36).substring(2,9)}`};return{...z,todos:[...z.todos,L]}}),x(!0)},[]),j=l.useCallback((I,z)=>{s(L=>L?{...L,todos:L.todos.map(P=>P.id===I?{...P,...z}:P)}:null),x(!0)},[]),B=l.useCallback(I=>{s(z=>z?{...z,todos:z.todos.filter(L=>L.id!==I)}:null),x(!0)},[]),V=l.useCallback(I=>{s(z=>z?{...z,todos:z.todos.map(L=>L.id!==I?L:{...L,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[L.status]||"pending"})}:null),x(!0)},[]),U=l.useCallback((I,z)=>{s(L=>{if(!L)return null;const P={...z,id:`${I[0]}${Date.now()}-${Math.random().toString(36).substring(2,9)}`},A=[...L[I],P].sort((k,q)=>k.time.localeCompare(q.time));return{...L,[I]:A}}),x(!0)},[]),G=l.useCallback((I,z,L)=>{s(P=>{if(!P)return null;const A=P[I].map(k=>k.id===z?{...k,...L}:k);return A.sort((k,q)=>k.time.localeCompare(q.time)),{...P,[I]:A}}),x(!0)},[]),Y=l.useCallback((I,z)=>{s(L=>L?{...L,[I]:L[I].filter(P=>P.id!==z)}:null),x(!0)},[]),_=l.useCallback(I=>{s(z=>{if(!z)return null;const L=I.map((A,k)=>({...A,id:`p${Date.now()}-${k}`})),P=[...z.plan,...L].sort((A,k)=>A.time.localeCompare(k.time));return{...z,plan:P}}),x(!0)},[]),H=l.useCallback(()=>{s(I=>{if(!I)return null;const z=I.plan.map((L,P)=>({...L,id:`r${Date.now()}-${P}`}));return{...I,result:z}}),x(!0)},[]);l.useEffect(()=>{e&&C(e)},[e,C]);const F=l.useMemo(()=>a?c4(a):"",[a]);return{report:a,markdownContent:F,stats:c,loading:f,saving:g,error:y,isDirty:v,loadReport:C,saveReport:w,deleteReport:R,updatePlan:$,updateResult:E,updateTodos:T,updateNotes:N,updateMarkdown:O,addTodo:D,updateTodo:j,deleteTodo:B,toggleTodoStatus:V,addScheduleItem:U,updateScheduleItem:G,deleteScheduleItem:Y,applyRoutine:_,copyPlanToResult:H}}function V3(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function vm(e,t){const n=V3(e),r=t.split(`
|
|
387
|
+
`);let a="",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 m=r[f];if(m.match(/^##\s+\[PLAN\]/i)){a="plan";continue}if(m.match(/^##\s+\[RESULT\]/i)){a="result";continue}if(m.match(/^##\s+\[TODO\]/i)){a="todo";continue}if(m.match(/^##\s+\[NOTE\]/i)){a="note";continue}if(a==="todo"&&m.match(/^###\s+(.+)$/)){const g=m.match(/^###\s+(.+)$/);g&&(s=g[1].trim());continue}if((a==="plan"||a==="result")&&m.startsWith("*")){const g=m.match(/^\*\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s+(.+)$/);if(g){const y={id:`${a[0]}${f}`,time:g[1],project:g[2],task:g[3]};a==="plan"?n.plan.push(y):n.result.push(y);continue}const h=m.match(/^\*\s+(\d{2}:\d{2})\s*$/);if(h){const y={id:`break${a[0]}${f}`,time:h[1],project:"",task:""};a==="plan"?n.plan.push(y):n.result.push(y)}}if(a==="todo"&&m.startsWith("-")){const g=m.match(/^-\s+\[([xX\s*\->])\]\s+(.+)$/);if(g){const h=g[1];let y=g[2],b=s,v,x;const C=y.match(/^\[([^\]]+)\]\s*/);C&&(b=C[1],y=y.substring(C[0].length));const w=y.match(/^(!!!|!!|!)\s*/);if(w){const E=w[1];x=E==="!!!"?"high":E==="!!"?"medium":"low",y=y.substring(w[0].length)}const R=y.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(R)v=R[1],y=y.substring(0,y.length-R[0].length);else{const E=y.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);E&&(v=E[1],y=y.substring(E[0].length))}v&&v.length===5&&(v=`${new Date().getFullYear()}-${v}`);const $={id:`t${f}`,status:Aee(h),project:b,task:y.trim(),deadline:v,priority:x};n.todos.push($);continue}}if(a==="todo"&&m.match(/^\s{2,}/)&&n.todos.length>0){const g=n.todos[n.todos.length-1],h=m.trim();g.description?g.description+=`
|
|
388
|
+
`+h:g.description=h;continue}a==="note"&&!m.startsWith("##")&&c.push(m)}return n.notes=c.join(`
|
|
389
|
+
`).trim(),n}function c4(e){const t=[];return t.push(`# [日報] ${e.author} ${e.date}`),t.push(""),t.push("## [PLAN]"),t.push(""),t.push(...ES(e.plan)),t.push(""),t.push("## [RESULT]"),t.push(""),t.push(...ES(e.result)),t.push(""),t.push("## [TODO]"),t.push(""),t.push(...B3(e.todos)),t.push(""),t.push("## [NOTE]"),t.push(""),t.push(e.notes||""),t.join(`
|
|
390
|
+
`)}function Aee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function Dee(){const[e,t]=l.useState(null),[n,r]=l.useState(!1),[a,s]=l.useState(null),c=l.useCallback(async()=>{r(!0),s(null);try{const v=await Cp.getConfig({});t(v)}catch(v){s(v instanceof Error?v.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async v=>{s(null);try{const x=await Cp.updateConfig({data:v});return t(x),!0}catch(x){return s(x instanceof Error?x.message:"設定の更新に失敗しました"),!1}},[]),f=l.useCallback(v=>e?.projects?.find(x=>x.code===v),[e]),m=l.useCallback(v=>f(v)?.color||"#999",[f]),g=l.useCallback(v=>f(v)?.name||v,[f]),h=l.useCallback(()=>e?.projects?.filter(v=>v.active)||[],[e]),y=l.useCallback(v=>{if(!e?.routines?.weekly)return[];const C={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}[v.day()];return e.routines.weekly[C]||[]},[e]),b=l.useCallback(v=>e?.routines?.monthly?e.routines.monthly[v]||[]:[],[e]);return l.useEffect(()=>{c()},[c]),{config:e,projects:e?.projects||[],routines:e?.routines||null,loading:n,error:a,loadConfig:c,updateConfig:d,getProject:f,getProjectColor:m,getProjectName:g,getActiveProjects:h,getRoutinesForDay:y,getMonthlyRoutines:b}}function jee(e,t){const n=bn(),[r,a]=l.useState(e||n.year()),[s,c]=l.useState(t||n.month()+1),[d,f]=l.useState(null),[m,g]=l.useState([]),[h,y]=l.useState(!1),[b,v]=l.useState(null),x=l.useCallback(async(O,D)=>{y(!0),v(null);try{const j=await KR.getCalendarData({year:O,month:D});f(j),a(O),c(D)}catch(j){v(j instanceof Error?j.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),C=l.useCallback(async()=>{try{const O=await KR.getAvailableYearMonths({});g(O.yearMonths)}catch(O){console.error("Failed to load available months:",O)}},[]),w=l.useCallback(()=>{const O=bn(`${r}-${s}-01`).subtract(1,"month");x(O.year(),O.month()+1)},[r,s,x]),R=l.useCallback(()=>{const O=bn(`${r}-${s}-01`).add(1,"month");x(O.year(),O.month()+1)},[r,s,x]),$=l.useCallback((O,D)=>{x(O,D)},[x]),E=l.useCallback(O=>d?.days.find(D=>D.date===O),[d]),T=l.useCallback(O=>E(O)?.hasReport||!1,[E]),N=l.useCallback(O=>{const D=E(O);return{plan:D?.planHours||0,result:D?.resultHours||0}},[E]);return l.useEffect(()=>{x(r,s),C()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:b,year:r,month:s,availableYearMonths:m,loadCalendar:x,loadAvailableMonths:C,goToPrevMonth:w,goToNextMonth:R,goToMonth:$,getDayStats:E,hasReport:T,getWorkHours:N}}function _ee(){const[e,t]=l.useState(new Map),n=l.useMemo(()=>e.size>0,[e]),r=l.useMemo(()=>Array.from(e.keys()),[e]),a=l.useCallback(m=>e.has(m),[e]),s=l.useCallback((m,g,h,y)=>{if(h===y){t(b=>{const v=new Map(b);return v.delete(m),v});return}t(b=>{const v=new Map(b);return v.set(m,{date:m,report:g,originalMarkdown:h,currentMarkdown:y}),v})},[]),c=l.useCallback(m=>{t(g=>{const h=new Map(g);return h.delete(m),h})},[]),d=l.useCallback(()=>{t(new Map)},[]),f=l.useCallback(m=>e.get(m),[e]);return{unsavedReports:e,hasUnsavedChanges:n,unsavedDates:r,hasUnsavedChangesForDate:a,setUnsavedReport:s,clearUnsavedReport:c,clearAllUnsavedReports:d,getUnsavedReport:f}}bn.locale("ja");const{Content:Hee}=Pa,Bee=()=>{const[e,t]=l.useState(bn()),[n,r]=l.useState(!1),[a,s]=l.useState(!1),[c,d]=l.useState([]),f=Dee(),m=zee(e.format("YYYY-MM-DD"),f.config?.author),g=jee(e.year(),e.month()+1),h=_ee(),y=l.useRef(h);y.current=h;const b=l.useRef(e.format("YYYY-MM-DD")),v=l.useRef(!1);l.useEffect(()=>{const Y=e.format("YYYY-MM-DD");b.current!==Y&&(v.current=!0,b.current=Y)},[e]),l.useEffect(()=>{if(v.current){v.current=!1;return}const Y=e.format("YYYY-MM-DD");m.isDirty&&m.report&&y.current.setUnsavedReport(Y,m.report,"",m.markdownContent)},[m.isDirty,m.report,m.markdownContent,e]);const[x,C]=l.useState(null),w=l.useRef(null),R=l.useRef(0),$=l.useRef(0),E=l.useCallback(async Y=>{if(Y){const _=Y.format("YYYY-MM-DD");t(Y),(Y.month()!==e.month()||Y.year()!==e.year())&&g.loadCalendar(Y.year(),Y.month()+1);const H=y.current.getUnsavedReport(_);await m.loadReport(_),H&&m.updateMarkdown(H.currentMarkdown)}},[m,g,e]),T=l.useCallback(async Y=>{const _=bn(Y);t(_);const H=y.current.getUnsavedReport(Y);await m.loadReport(Y),H&&m.updateMarkdown(H.currentMarkdown)},[m]),N=l.useCallback(Y=>{d(_=>_.includes(Y)?_.filter(H=>H!==Y):[..._,Y])},[]),O=l.useCallback(()=>{d([])},[]),D=c.map(Y=>f.getProject(Y)).filter(Y=>Y!==void 0),j=l.useCallback(async Y=>{await m.saveReport(Y)?(h.clearUnsavedReport(e.format("YYYY-MM-DD")),En.success("日報を保存しました"),g.loadCalendar(g.year,g.month)):En.error("日報の保存に失敗しました")},[m,g,h,e]),B=l.useCallback(async(Y,_)=>{let H=0,F=0;for(const I of Y)try{if(I===e.format("YYYY-MM-DD"))await m.saveReport(_)?(H++,h.clearUnsavedReport(I)):F++;else{const z=h.getUnsavedReport(I);z&&((await fs.saveReport({date:I,data:{content:z.currentMarkdown,git:_?.git,slack:_?.slack}})).saved?(H++,h.clearUnsavedReport(I)):F++)}}catch{F++}H>0&&(En.success(`${H}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),F>0&&En.error(`${F}件の日報の保存に失敗しました`)},[m,e,h,g]),V=l.useCallback(Y=>{const _=Y.filter(F=>F.category==="plan"||!F.category&&F.time&&F.time!==""),H=Y.filter(F=>F.category==="todo"||!F.category&&(!F.time||F.time===""));if(_.length>0){const F=_.map((I,z)=>({id:`routine-${Date.now()}-${z}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));m.applyRoutine(F)}H.length>0&&H.forEach(F=>{m.addTodo({project:F.project,task:F.task,status:"pending"})}),s(!1)},[m]),U=l.useCallback(Y=>{Y.preventDefault();const _=w.current?.firstElementChild;if(!_||!w.current)return;R.current=Y.clientX,$.current=_.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const H=I=>{if(!w.current)return;const z=I.clientX-R.current,L=w.current.getBoundingClientRect().width,P=296,A=200,k=L-P-A-20;let q=$.current+z;q=Math.max(A,Math.min(k,q)),C(q)},F=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",F)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",F)},[]),G={selectedDate:e,setSelectedDate:E,selectedProjects:c,toggleProject:N,clearProjectFilter:O,report:m,config:f,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:j,saveMultipleReports:B};return X.jsx(_3.Provider,{value:G,children:X.jsx(ta,{theme:{algorithm:aZ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:X.jsxs(Pa,{style:{height:"100vh",overflow:"hidden"},children:[X.jsx(cee,{selectedDate:e,onDateChange:E,onImportClick:()=>s(!0),selectedProjects:D,onRemoveProject:N,onClearProjectFilter:O}),X.jsx(Hee,{className:"dashboard-content",style:{padding:16,background:"#f0f2f5",flex:1,display:"flex",flexDirection:"column"},children:X.jsxs("div",{ref:w,className:"dashboard-container",children:[X.jsx("div",{className:"dashboard-timeline",style:{width:x??void 0,flex:x?void 0:1},children:X.jsx(Cee,{selectedDate:e,onEditClick:()=>r(!0),selectedProjects:c})}),X.jsx("div",{className:"dashboard-resizer",onMouseDown:U,children:X.jsx("div",{className:"dashboard-resizer-handle"})}),X.jsx("div",{className:"dashboard-todo",children:X.jsx(Mee,{selectedDate:e,selectedProjects:c})}),X.jsxs("div",{className:"dashboard-right-column",children:[X.jsx("div",{className:"dashboard-calendar",children:X.jsx(uee,{selectedDate:e,onDateSelect:T,selectedProjects:c})}),X.jsx("div",{className:"dashboard-project",children:X.jsx(Ree,{selectedProjects:c,onToggleProject:N})})]})]})}),X.jsx(io,{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:X.jsx(Pee,{selectedDate:e,onClose:()=>r(!1)})}),X.jsx(p3,{title:"ルーチンから取り込み",placement:"right",size:"large",onClose:()=>s(!1),open:a,children:X.jsx(Oee,{onApplyRoutine:V})})]})})})},{Footer:kee}=Pa,{Text:Wee}=Pr;function Lee(){return X.jsx(Bee,{})}d4.createRoot(document.getElementById("root")).render(X.jsx(l.StrictMode,{children:X.jsx(Lee,{})}));
|