=0;O-=1){var F=o(t[O]),j=n.get(F);if(j===void 0){y=!0;break}if(M-=j,M<=0)break}switch($){case"top":S=E-g;break;case"bottom":S=I-C+g;break;default:{var P=e.current.scrollTop,D=P+C;ED&&(b="bottom")}}S!==null&&i(S),S!==f.lastTop&&(y=!0)}y&&m(k(k({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}else(f==null?void 0:f.times)===hf&&_e(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(v){if(v==null){s();return}if(ut.cancel(c.current),typeof v=="number")i(v);else if(v&&De(v)==="object"){var h,p=v.align;"index"in v?h=v.index:h=t.findIndex(function(y){return o(y)===v.key});var g=v.offset,C=g===void 0?0:g;m({times:0,index:h,offset:C,originAlign:p})}}}function bf(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Gs=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,h=l.useState(!1),p=U(h,2),g=p[0],C=p[1],y=l.useState(null),b=U(y,2),S=b[0],$=b[1],x=l.useState(null),E=U(x,2),I=E[0],w=E[1],R=!r,N=l.useRef(),T=l.useRef(),M=l.useState(!1),O=U(M,2),F=O[0],j=O[1],P=l.useRef(),D=function(){clearTimeout(P.current),j(!0),P.current=setTimeout(function(){j(!1)},3e3)},z=a-f||0,L=f-d||0,_=l.useMemo(function(){if(o===0||z===0)return 0;var Z=o/z;return Z*L},[o,z,L]),B=function(J){J.stopPropagation(),J.preventDefault()},H=l.useRef({top:_,dragging:g,pageY:S,startTop:I});H.current={top:_,dragging:g,pageY:S,startTop:I};var K=function(J){C(!0),$(bf(J,u)),w(H.current.top),i(),J.stopPropagation(),J.preventDefault()};l.useEffect(function(){var Z=function(W){W.preventDefault()},J=N.current,ne=T.current;return J.addEventListener("touchstart",Z),ne.addEventListener("touchstart",K),function(){J.removeEventListener("touchstart",Z),ne.removeEventListener("touchstart",K)}},[]);var G=l.useRef();G.current=z;var te=l.useRef();te.current=L,l.useEffect(function(){if(g){var Z,J=function(W){var ee=H.current,oe=ee.dragging,he=ee.pageY,Ce=ee.startTop;if(ut.cancel(Z),oe){var de=bf(W,u)-he,ae=Ce;!R&&u?ae-=de:ae+=de;var ce=G.current,we=te.current,ye=we?ae/we:0,me=Math.ceil(ye*ce);me=Math.max(me,0),me=Math.min(me,ce),Z=ut(function(){c(me,u)})}},ne=function(){C(!1),s()};return window.addEventListener("mousemove",J),window.addEventListener("touchmove",J),window.addEventListener("mouseup",ne),window.addEventListener("touchend",ne),function(){window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),ut.cancel(Z)}}},[g]),l.useEffect(function(){D()},[o]),l.useImperativeHandle(t,function(){return{delayHidden:D}});var Y="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:F?null:"hidden"},ie={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,ie.height="100%",ie.width=d,R?ie.left=_:ie.right=_):(Q.width=8,Q.top=0,Q.bottom=0,R?Q.right=0:Q.left=0,ie.width="100%",ie.height=d,ie.top=_),l.createElement("div",{ref:N,className:V(Y,A(A(A({},"".concat(Y,"-horizontal"),u),"".concat(Y,"-vertical"),!u),"".concat(Y,"-visible"),F)),style:k(k({},Q),m),onMouseDown:B,onMouseMove:D},l.createElement("div",{ref:T,className:V("".concat(Y,"-thumb"),A({},"".concat(Y,"-thumb-moving"),g)),style:k(k({},ie),v),onMouseDown:K}))});Gs.displayName="ScrollBar";var G1=20;function yf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,G1),Math.floor(n)}var q1=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],U1=[],X1={overflowY:"auto",overflowAnchor:"none"};function Y1(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,h=e.direction,p=e.scrollWidth,g=e.component,C=g===void 0?"div":g,y=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,$=e.innerProps,x=e.extraRender,E=e.styles,I=We(e,q1),w=l.useCallback(function(Re){return typeof m=="function"?m(Re):Re==null?void 0:Re[m]},[m]),R=V1(w),N=U(R,4),T=N[0],M=N[1],O=N[2],F=N[3],j=!!(v!==!1&&a&&i),P=l.useMemo(function(){return Object.values(O.maps).reduce(function(Re,Pe){return Re+Pe},0)},[O.id,O.maps]),D=j&&d&&(Math.max(i*d.length,P)>a||!!p),z=h==="rtl",L=V(r,A({},"".concat(r,"-rtl"),z),o),_=d||U1,B=l.useRef(),H=l.useRef(),K=l.useRef(),G=l.useState(0),te=U(G,2),Y=te[0],Q=te[1],ie=l.useState(0),Z=U(ie,2),J=Z[0],ne=Z[1],re=l.useState(!1),W=U(re,2),ee=W[0],oe=W[1],he=function(){oe(!0)},Ce=function(){oe(!1)},de={getKey:w};function ae(Re){Q(function(Pe){var Fe;typeof Re=="function"?Fe=Re(Pe):Fe=Re;var wt=Me(Fe);return B.current.scrollTop=wt,wt})}var ce=l.useRef({start:0,end:_.length}),we=l.useRef(),ye=z1(_,w),me=U(ye,1),be=me[0];we.current=be;var xe=l.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:_.length-1,offset:void 0};if(!D){var Re;return{scrollHeight:((Re=H.current)===null||Re===void 0?void 0:Re.offsetHeight)||0,start:0,end:_.length-1,offset:void 0}}for(var Pe=0,Fe,wt,Xt,qn=_.length,Yt=0;Yt=Y&&Fe===void 0&&(Fe=Yt,wt=Pe),gn>Y+a&&Xt===void 0&&(Xt=Yt),Pe=gn}return Fe===void 0&&(Fe=0,wt=0,Xt=Math.ceil(a/i)),Xt===void 0&&(Xt=_.length-1),Xt=Math.min(Xt+1,_.length-1),{scrollHeight:Pe,start:Fe,end:Xt,offset:wt}},[D,j,Y,_,F,a]),Be=xe.scrollHeight,ke=xe.start,Ee=xe.end,$e=xe.offset;ce.current.start=ke,ce.current.end=Ee;var Ue=l.useState({width:0,height:a}),He=U(Ue,2),tt=He[0],dt=He[1],mt=function(Pe){dt({width:Pe.width||Pe.offsetWidth,height:Pe.height||Pe.offsetHeight})},Ve=l.useRef(),nt=l.useRef(),et=l.useMemo(function(){return yf(tt.width,p)},[tt.width,p]),pt=l.useMemo(function(){return yf(tt.height,Be)},[tt.height,Be]),ct=Be-a,yt=l.useRef(ct);yt.current=ct;function Me(Re){var Pe=Re;return Number.isNaN(yt.current)||(Pe=Math.min(Pe,yt.current)),Pe=Math.max(Pe,0),Pe}var Se=Y<=0,Oe=Y>=ct,ve=J<=0,ze=J>=p,Ne=dp(Se,Oe,ve,ze),ge=function(){return{x:z?-J:J,y:Y}},Le=l.useRef(ge()),rt=Vt(function(Re){if(b){var Pe=k(k({},ge()),Re);(Le.current.x!==Pe.x||Le.current.y!==Pe.y)&&(b(Pe),Le.current=Pe)}});function pe(Re,Pe){var Fe=Re;Pe?(mo.flushSync(function(){ne(Fe)}),rt()):ae(Fe)}function Ae(Re){var Pe=Re.currentTarget.scrollTop;Pe!==Y&&ae(Pe),y==null||y(Re),rt()}var Ie=function(Pe){var Fe=Pe,wt=p?p-tt.width:0;return Fe=Math.max(Fe,0),Fe=Math.min(Fe,wt),Fe},Ke=Vt(function(Re,Pe){Pe?(mo.flushSync(function(){ne(function(Fe){var wt=Fe+(z?-Re:Re);return Ie(wt)})}),rt()):ae(function(Fe){var wt=Fe+Re;return wt})}),Qe=B1(j,Se,Oe,ve,ze,!!p,Ke),ot=U(Qe,2),Ot=ot[0],xt=ot[1];K1(j,B,function(Re,Pe,Fe){return Ne(Re,Pe,Fe)?!1:(Ot({preventDefault:function(){},deltaX:Re?Pe:0,deltaY:Re?0:Pe}),!0)}),ft(function(){function Re(Fe){j&&Fe.preventDefault()}var Pe=B.current;return Pe.addEventListener("wheel",Ot),Pe.addEventListener("DOMMouseScroll",xt),Pe.addEventListener("MozMousePixelScroll",Re),function(){Pe.removeEventListener("wheel",Ot),Pe.removeEventListener("DOMMouseScroll",xt),Pe.removeEventListener("MozMousePixelScroll",Re)}},[j]),ft(function(){if(p){var Re=Ie(J);ne(Re),rt({x:Re})}},[tt.width,p]);var $t=function(){var Pe,Fe;(Pe=Ve.current)===null||Pe===void 0||Pe.delayHidden(),(Fe=nt.current)===null||Fe===void 0||Fe.delayHidden()},Ze=W1(B,_,O,i,w,function(){return M(!0)},ae,$t);l.useImperativeHandle(t,function(){return{nativeElement:K.current,getScrollInfo:ge,scrollTo:function(Pe){function Fe(wt){return wt&&De(wt)==="object"&&("left"in wt||"top"in wt)}Fe(Pe)?(Pe.left!==void 0&&ne(Ie(Pe.left)),Ze(Pe.top)):Ze(Pe)}}}),ft(function(){if(S){var Re=_.slice(ke,Ee+1);S(Re,_)}},[ke,Ee,_]);var Pt=k1(_,w,O,i),Nt=x==null?void 0:x({start:ke,end:Ee,virtual:D,offsetX:J,offsetY:$e,rtl:z,getSize:Pt}),un=_1(_,ke,Ee,p,J,T,f,de),Ft=null;a&&(Ft=k(A({},c?"height":"maxHeight",a),X1),j&&(Ft.overflowY="hidden",p&&(Ft.overflowX="hidden"),ee&&(Ft.pointerEvents="none")));var Ut={};return z&&(Ut.dir="rtl"),l.createElement("div",fe({ref:K,style:k(k({},u),{},{position:"relative"}),className:L},Ut,I),l.createElement(dr,{onResize:mt},l.createElement(C,{className:"".concat(r,"-holder"),style:Ft,ref:B,onScroll:Ae,onMouseEnter:$t},l.createElement(up,{prefixCls:r,height:Be,offsetX:J,offsetY:$e,scrollWidth:p,onInnerResize:M,ref:H,innerProps:$,rtl:z,extra:Nt},un))),D&&Be>a&&l.createElement(Gs,{ref:Ve,prefixCls:r,scrollOffset:Y,scrollRange:Be,rtl:z,onScroll:pe,onStartMove:he,onStopMove:Ce,spinSize:pt,containerSize:tt.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),D&&p>tt.width&&l.createElement(Gs,{ref:nt,prefixCls:r,scrollOffset:J,scrollRange:p,rtl:z,onScroll:pe,onStartMove:he,onStopMove:Ce,spinSize:et,containerSize:tt.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var Gc=l.forwardRef(Y1);Gc.displayName="List";function Q1(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Z1=["disabled","title","children","style","className"];function Cf(e){return typeof e=="string"||typeof e=="number"}var J1=function(t,n){var r=qw(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=l.useContext(Vc),h=v.maxCount,p=v.flattenOptions,g=v.onActiveValue,C=v.defaultActiveFirstOption,y=v.onSelect,b=v.menuItemSelectedIcon,S=v.rawValues,$=v.fieldNames,x=v.virtual,E=v.direction,I=v.listHeight,w=v.listItemHeight,R=v.optionRender,N="".concat(o,"-item"),T=Sa(function(){return p},[i,p],function(Z,J){return J[0]&&Z[1]!==J[1]}),M=l.useRef(null),O=l.useMemo(function(){return s&&Ks(h)&&(S==null?void 0:S.size)>=h},[s,h,S==null?void 0:S.size]),F=function(J){J.preventDefault()},j=function(J){var ne;(ne=M.current)===null||ne===void 0||ne.scrollTo(typeof J=="number"?{index:J}:J)},P=function(J){for(var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=T.length,W=0;W1&&arguments[1]!==void 0?arguments[1]:!1;_(J);var re={source:ne?"keyboard":"mouse"},W=T[J];if(!W){g(null,-1,re);return}g(W.value,J,re)};l.useEffect(function(){B(C!==!1?P(0):-1)},[T.length,u]);var H=l.useCallback(function(Z){return S.has(Z)&&c!=="combobox"},[c,ue(S).toString(),S.size]);l.useEffect(function(){var Z=setTimeout(function(){if(!s&&i&&S.size===1){var ne=Array.from(S)[0],re=T.findIndex(function(W){var ee=W.data;return ee.value===ne});re!==-1&&(B(re),j(re))}});if(i){var J;(J=M.current)===null||J===void 0||J.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[i,u]);var K=function(J){J!==void 0&&y(J,{selected:!S.has(J)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(J){var ne=J.which,re=J.ctrlKey;switch(ne){case le.N:case le.P:case le.UP:case le.DOWN:{var W=0;if(ne===le.UP?W=-1:ne===le.DOWN?W=1:Q1()&&re&&(ne===le.N?W=1:ne===le.P&&(W=-1)),W!==0){var ee=P(L+W,W);j(ee),B(ee,!0)}break}case le.ENTER:{var oe,he=T[L];he&&!(he!=null&&(oe=he.data)!==null&&oe!==void 0&&oe.disabled)&&!O?K(he.value):K(void 0),i&&J.preventDefault();break}case le.ESC:d(!1),i&&J.stopPropagation()}},onKeyUp:function(){},scrollTo:function(J){j(J)}}}),T.length===0)return l.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(N,"-empty"),onMouseDown:F},f);var G=Object.keys($).map(function(Z){return $[Z]}),te=function(J){return J.label};function Y(Z,J){var ne=Z.group;return{role:ne?"presentation":"option",id:"".concat(a,"_list_").concat(J)}}var Q=function(J){var ne=T[J];if(!ne)return null;var re=ne.data||{},W=re.value,ee=ne.group,oe=xn(re,!0),he=te(ne);return ne?l.createElement("div",fe({"aria-label":typeof he=="string"&&!ee?he:null},oe,{key:J},Y(ne,J),{"aria-selected":H(W)}),W):null},ie={role:"listbox",id:"".concat(a,"_list")};return l.createElement(l.Fragment,null,x&&l.createElement("div",fe({},ie,{style:{height:0,width:0,overflow:"hidden"}}),Q(L-1),Q(L),Q(L+1)),l.createElement(Gc,{itemKey:"key",ref:M,data:T,height:I,itemHeight:w,fullHeight:!1,onMouseDown:F,onScroll:m,virtual:x,direction:E,innerProps:x?null:ie},function(Z,J){var ne=Z.group,re=Z.groupOption,W=Z.data,ee=Z.label,oe=Z.value,he=W.key;if(ne){var Ce,de=(Ce=W.title)!==null&&Ce!==void 0?Ce:Cf(ee)?ee.toString():void 0;return l.createElement("div",{className:V(N,"".concat(N,"-group"),W.className),title:de},ee!==void 0?ee:he)}var ae=W.disabled,ce=W.title;W.children;var we=W.style,ye=W.className,me=We(W,Z1),be=kt(me,G),xe=H(oe),Be=ae||!xe&&O,ke="".concat(N,"-option"),Ee=V(N,ke,ye,A(A(A(A({},"".concat(ke,"-grouped"),re),"".concat(ke,"-active"),L===J&&!Be),"".concat(ke,"-disabled"),Be),"".concat(ke,"-selected"),xe)),$e=te(Z),Ue=!b||typeof b=="function"||xe,He=typeof $e=="number"?$e:$e||oe,tt=Cf(He)?He.toString():void 0;return ce!==void 0&&(tt=ce),l.createElement("div",fe({},xn(be),x?{}:Y(Z,J),{"aria-selected":xe,className:Ee,title:tt,onMouseMove:function(){L===J||Be||B(J)},onClick:function(){Be||K(oe)},style:we}),l.createElement("div",{className:"".concat(ke,"-content")},typeof R=="function"?R(Z,{index:J}):He),l.isValidElement(b)||xe,Ue&&l.createElement(rl,{className:"".concat(N,"-option-state"),customizeIcon:b,customizeIconProps:{value:oe,disabled:Be,isSelected:xe}},xe?"✓":null))}))},fp=l.forwardRef(J1);fp.displayName="OptionList";const eE=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var a=n.current,i=a.values,s=a.options,c=e.map(function(f){if(f.label===void 0){var m;return k(k({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=l.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Wl(e,t){return Hc(e).join("").toUpperCase().includes(t)}const tE=function(e,t,n,r,o){return l.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,h){return o?Wl(h[o],d):h[a]?Wl(h[i!=="children"?i:"label"],d):Wl(h[s],d)},m=u?function(v){return Ws(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var h=f(n,m(v));if(h)c.push(v);else{var p=v[a].filter(function(g){return f(n,m(g))});p.length&&c.push(k(k({},v),{},A({},a,p)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])};var Sf=0,nE=en();function rE(){var e;return nE?(e=Sf,Sf+=1):e="TEST_OR_SSR",e}function oE(e){var t=l.useState(),n=U(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_select_".concat(rE()))},[]),e||r}var aE=["children","value"],iE=["children"];function lE(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=We(r,aE);return k({key:n,value:a!==void 0?a:n,children:o},i)}function qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return sn(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,c=s.children,u=We(s,iE);return t||!a?lE(n):k(k({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:qc(c)})}).filter(function(n){return n})}var sE=function(t,n,r,o,a){return l.useMemo(function(){var i=t,s=!t;s&&(i=qc(n));var c=new Map,u=new Map,d=function(v,h,p){p&&typeof p=="string"&&v.set(h[p],h)},f=function m(v){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p1&&arguments[1]!==void 0?arguments[1]:!1,i=0;i2&&arguments[2]!==void 0?arguments[2]:{},Ke=Ie.source,Qe=Ke===void 0?"keyboard":Ke;Me(Ae),i&&r==="combobox"&&pe!==null&&Qe==="keyboard"&&et(String(pe))},[i,r]),ve=function(Ae,Ie,Ke){var Qe=function(){var Ut,Re=be(Ae);return[z?{label:Re==null?void 0:Re[Y.label],value:Ae,key:(Ut=Re==null?void 0:Re.key)!==null&&Ut!==void 0?Ut:Ae}:Ae,Ws(Re)]};if(Ie&&v){var ot=Qe(),Ot=U(ot,2),xt=Ot[0],$t=Ot[1];v(xt,$t)}else if(!Ie&&h&&Ke!=="clear"){var Ze=Qe(),Pt=U(Ze,2),Nt=Pt[0],un=Pt[1];h(Nt,un)}},ze=xf(function(pe,Ae){var Ie,Ke=K?Ae.selected:!0;Ke?Ie=K?[].concat(ue(me),[pe]):[pe]:Ie=me.filter(function(Qe){return Qe.value!==pe}),dt(Ie),ve(pe,Ke),r==="combobox"?et(""):(!Ni||m)&&(J(""),et(""))}),Ne=function(Ae,Ie){dt(Ae);var Ke=Ie.type,Qe=Ie.values;(Ke==="remove"||Ke==="clear")&&Qe.forEach(function(ot){ve(ot.value,!1,Ke)})},ge=function(Ae,Ie){if(J(Ae),et(null),Ie.source==="submit"){var Ke=(Ae||"").trim();if(Ke){var Qe=Array.from(new Set([].concat(ue(Be),[Ke])));dt(Qe),ve(Ke,!0),J("")}return}Ie.source!=="blur"&&(r==="combobox"&&dt(Ae),d==null||d(Ae))},Le=function(Ae){var Ie=Ae;r!=="tags"&&(Ie=Ae.map(function(Qe){var ot=W.get(Qe);return ot==null?void 0:ot.value}).filter(function(Qe){return Qe!==void 0}));var Ke=Array.from(new Set([].concat(ue(Be),ue(Ie))));dt(Ke),Ke.forEach(function(Qe){ve(Qe,!0)})},rt=l.useMemo(function(){var pe=R!==!1&&g!==!1;return k(k({},ne),{},{flattenOptions:tt,onActiveValue:Oe,defaultActiveFirstOption:Se,onSelect:ze,menuItemSelectedIcon:w,rawValues:Be,fieldNames:Y,virtual:pe,direction:N,listHeight:M,listItemHeight:F,childrenAsData:G,maxCount:_,optionRender:x})},[_,ne,tt,Oe,Se,ze,w,Be,Y,R,g,N,M,F,G,x]);return cE(e),uE(ee,Y),l.createElement(Vc.Provider,{value:rt},l.createElement(cp,fe({},B,{id:H,prefixCls:a,ref:t,omitDomProps:fE,mode:r,displayValues:xe,onDisplayValuesChange:Ne,direction:N,searchValue:Z,onSearch:ge,autoClearSearchValue:m,onSearchSplit:Le,dropdownMatchSelectWidth:g,OptionList:fp,emptyOptions:!tt.length,activeValue:nt,activeDescendantId:"".concat(H,"_list_").concat(yt)})))});mp.displayName="Select";var Uc=mp;Uc.Option=Wc;Uc.OptGroup=Kc;function Co(e,t,n){return V({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ta=(e,t)=>t||e,vp=()=>{const[,e]=qt(),n=new Rt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),l.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),l.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),l.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),l.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};vp.displayName="EmptyImage";const gp=()=>{const[,e]=qt(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new Rt(t).onBackground(o).toHexShortString(),shadowColor:new Rt(n).onBackground(o).toHexShortString(),contentColor:new Rt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:a},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};gp.displayName="SimpleImage";const vE=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},gE=It("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=st(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[vE(o)]});var pE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=pp,description:a,children:i,imageStyle:s,style:c}=e,u=pE(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=l.useContext(je),v=d("empty",r),[h,p,g]=gE(v),[C]=xa("Empty"),y=typeof a<"u"?a:C==null?void 0:C.description,b=typeof y=="string"?y:"empty";let S=null;return typeof o=="string"?S=l.createElement("img",{alt:b,src:o}):S=o,h(l.createElement("div",Object.assign({className:V(p,g,v,m==null?void 0:m.className,{[`${v}-normal`]:o===hp,[`${v}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),l.createElement("div",{className:`${v}-image`,style:s},S),y&&l.createElement("div",{className:`${v}-description`},y),i&&l.createElement("div",{className:`${v}-footer`},i)))};yr.PRESENTED_IMAGE_DEFAULT=pp;yr.PRESENTED_IMAGE_SIMPLE=hp;yr.displayName="Empty";const hE=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(je),r=n("empty");switch(t){case"Table":case"List":return q.createElement(yr,{image:yr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return q.createElement(yr,{image:yr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return q.createElement(yr,null)}},bE=["outlined","borderless","filled"],al=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=l.useContext(Tg);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=bE.includes(r);return[r,o]},yE=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function CE(e,t){return e||yE(t)}const $f=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},SE=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},St(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,[`
+ ${o}${s}bottomLeft,
+ ${a}${s}bottomLeft
+ `]:{animationName:Dc},[`
+ ${o}${s}topLeft,
+ ${a}${s}topLeft,
+ ${o}${s}topRight,
+ ${a}${s}topRight
+ `]:{animationName:Fc},[`${i}${s}bottomLeft`]:{animationName:jc},[`
+ ${i}${s}topLeft,
+ ${i}${s}topRight
+ `]:{animationName:_c},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},$f(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Si),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},$f(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},yo(e,"slide-up"),yo(e,"slide-down"),Ri(e,"move-up"),Ri(e,"move-down")]},xE=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:X(t),itemLineHeight:X(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},$E=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},wE=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},wo()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},EE=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=$E(e),s=t?`${n}-${t}`:"",c=xE(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},wE(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${X(r)} 0`,lineHeight:X(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:X(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:X(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Gl(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
+ &${n}-show-arrow ${n}-selector,
+ &${n}-allow-clear ${n}-selector
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[EE(e,t),o]}const IE=e=>{const{componentCls:t}=e,n=st(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=st(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Gl(e),Gl(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Gl(r,"lg")]};function ql(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},St(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
+ ${n}-selection-item,
+ ${n}-selection-placeholder
+ `]:{padding:0,lineHeight:X(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
+ &${n}-show-arrow ${n}-selection-item,
+ &${n}-show-arrow ${n}-selection-placeholder
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${X(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:X(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${X(r)}`,"&:after":{display:"none"}}}}}}}function OE(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ql(e),ql(st(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${X(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
+ &${t}-show-arrow ${t}-selection-item,
+ &${t}-show-arrow ${t}-selection-placeholder
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ql(st(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const RE=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:p,colorBgContainerDisabled:g,colorTextDisabled:C}=e,y=s*2,b=r*2,S=Math.min(o-y,o-b),$=Math.min(a-y,a-b),x=Math.min(i-y,i-b);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:p,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:$,multipleItemHeightLG:x,multipleSelectorBgDisabled:g,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},bp=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${X(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${X(o)} ${t.activeShadowColor}`,outline:0}}}},wf=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bp(e,t))}),PE=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},bp(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),wf(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),wf(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),yp=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Ef=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},yp(e,t))}),NE=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},yp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Ef(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Ef(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),ME=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),TE=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},PE(e)),NE(e)),ME(e))}),AE=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},DE=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},jE=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},St(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},AE(e)),DE(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Si),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Si),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},wo()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},FE=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},jE(e),OE(e),IE(e),SE(e),{[`${t}-rtl`]:{direction:"rtl"}},Qi(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},_E=It("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=st(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[FE(r),TE(r)]},RE,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var LE={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"},zE=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:LE}))},Cp=l.forwardRef(zE);Cp.displayName="CheckOutlined";var BE={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"},kE=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:BE}))},Xc=l.forwardRef(kE);Xc.displayName="DownOutlined";var HE={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"},VE=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:HE}))},Yc=l.forwardRef(VE);Yc.displayName="SearchOutlined";function KE(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;vt(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const v=n??l.createElement(Oo,null),h=y=>t===null&&!s&&!f?null:l.createElement(l.Fragment,null,u!==!1&&y,s&&d);let p=null;if(t!==void 0)p=h(t);else if(a)p=h(l.createElement(Kr,{spin:!0}));else{const y=`${c}-suffix`;p=b=>{let{open:S,showSearch:$}=b;return h(S&&$?l.createElement(Yc,{className:y}):l.createElement(Xc,{className:y}))}}let g=null;r!==void 0?g=r:i?g=l.createElement(Cp,null):g=null;let C=null;return o!==void 0?C=o:C=l.createElement(Ro,null),{clearIcon:v,suffixIcon:p,itemIcon:g,removeIcon:C}}function WE(e,t){return t!==void 0?t:e!==null}var GE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:v,disabled:h,notFoundContent:p,status:g,builtinPlacements:C,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:S,style:$,allowClear:x,variant:E,dropdownStyle:I,transitionName:w,tagRender:R,maxCount:N}=e,T=GE(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:O,renderEmpty:F,direction:j,virtual:P,popupMatchSelectWidth:D,popupOverflow:z,select:L}=l.useContext(je),[,_]=qt(),B=m??(_==null?void 0:_.controlHeight),H=O("select",r),K=O(),G=S??j,{compactSize:te,compactItemClassnames:Y}=Po(H,G),[Q,ie]=al(E,o),Z=rn(H),[J,ne,re]=_E(H,Z),W=l.useMemo(()=>{const{mode:nt}=e;if(nt!=="combobox")return nt===Sp?"combobox":nt},[e.mode]),ee=W==="multiple"||W==="tags",oe=WE(e.suffixIcon,e.showArrow),he=(n=b??y)!==null&&n!==void 0?n:D,{status:Ce,hasFeedback:de,isFormItemInput:ae,feedbackIcon:ce}=l.useContext(nn),we=Ta(Ce,g);let ye;p!==void 0?ye=p:W==="combobox"?ye=null:ye=(F==null?void 0:F("Select"))||l.createElement(hE,{componentName:"Select"});const{suffixIcon:me,itemIcon:be,removeIcon:xe,clearIcon:Be}=KE(Object.assign(Object.assign({},T),{multiple:ee,hasFeedback:de,feedbackIcon:ce,showSuffixIcon:oe,prefixCls:H,componentName:"Select"})),ke=x===!0?{clearIcon:Be}:x,Ee=kt(T,["suffixIcon","itemIcon"]),$e=V(c||u,{[`${H}-dropdown-${G}`]:G==="rtl"},i,re,Z,ne),Ue=Mn(nt=>{var et;return(et=v??te)!==null&&et!==void 0?et:nt}),He=l.useContext(Hn),tt=h??He,dt=V({[`${H}-lg`]:Ue==="large",[`${H}-sm`]:Ue==="small",[`${H}-rtl`]:G==="rtl",[`${H}-${Q}`]:ie,[`${H}-in-form-item`]:ae},Co(H,we,de),Y,L==null?void 0:L.className,a,i,re,Z,ne),mt=l.useMemo(()=>f!==void 0?f:G==="rtl"?"bottomRight":"bottomLeft",[f,G]);{const nt=vt("Select");nt.deprecated(!u,"dropdownClassName","popupClassName"),nt.deprecated(y===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),nt(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),nt.deprecated(!("bordered"in e),"bordered","variant"),nt(!(typeof N<"u"&&!ee),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Ve]=Ea("SelectLike",I==null?void 0:I.zIndex);return J(l.createElement(Uc,Object.assign({ref:t,virtual:P,showSearch:L==null?void 0:L.showSearch},Ee,{style:Object.assign(Object.assign({},L==null?void 0:L.style),$),dropdownMatchSelectWidth:he,transitionName:Br(K,"slide-up",w),builtinPlacements:CE(C,z),listHeight:d,listItemHeight:B,mode:W,prefixCls:H,placement:mt,direction:G,suffixIcon:me,menuItemSelectedIcon:be,removeIcon:xe,allowClear:ke,notFoundContent:ye,className:dt,getPopupContainer:s||M,dropdownClassName:$e,disabled:tt,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:Ve}),maxCount:ee?N:void 0,tagRender:ee?R:void 0})))};xp.displayName="Select";const To=l.forwardRef(xp),qE=Yg(To);To.SECRET_COMBOBOX_MODE_DO_NOT_USE=Sp;To.Option=Wc;To.OptGroup=Kc;To._InternalPanelDoNotUseOrYouWillBeFired=qE;To.displayName="Select";const ga=["xxl","xl","lg","md","sm","xs"],UE=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)`}),XE=e=>{const t=e,n=[].concat(ga).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}const Mi=e=>e?typeof e=="function"?e():e:null;function Qc(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return l.createElement("div",{className:V("".concat(n,"-content"),a),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var to={shiftX:64,adjustY:1},no={adjustX:1,shiftY:!0},On=[0,0],QE={left:{points:["cr","cl"],overflow:no,offset:[-4,0],targetOffset:On},right:{points:["cl","cr"],overflow:no,offset:[4,0],targetOffset:On},top:{points:["bc","tc"],overflow:to,offset:[0,-4],targetOffset:On},bottom:{points:["tc","bc"],overflow:to,offset:[0,4],targetOffset:On},topLeft:{points:["bl","tl"],overflow:to,offset:[0,-4],targetOffset:On},leftTop:{points:["tr","tl"],overflow:no,offset:[-4,0],targetOffset:On},topRight:{points:["br","tr"],overflow:to,offset:[0,-4],targetOffset:On},rightTop:{points:["tl","tr"],overflow:no,offset:[4,0],targetOffset:On},bottomRight:{points:["tr","br"],overflow:to,offset:[0,4],targetOffset:On},rightBottom:{points:["bl","br"],overflow:no,offset:[4,0],targetOffset:On},bottomLeft:{points:["tl","bl"],overflow:to,offset:[0,4],targetOffset:On},leftBottom:{points:["br","bl"],overflow:no,offset:[-4,0],targetOffset:On}},ZE=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],JE=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,C=t.animation,y=t.motion,b=t.placement,S=b===void 0?"right":b,$=t.align,x=$===void 0?{}:$,E=t.destroyTooltipOnHide,I=E===void 0?!1:E,w=t.defaultVisible,R=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,M=t.id,O=t.showArrow,F=O===void 0?!0:O,j=We(t,ZE),P=l.useRef(null);l.useImperativeHandle(n,function(){return P.current});var D=k({},j);"visible"in t&&(D.popupVisible=t.visible);var z=function(){return l.createElement(Qc,{key:"content",prefixCls:m,id:M,overlayInnerStyle:N},T)};return l.createElement(ol,fe({popupClassName:r,prefixCls:m,popup:z,action:a,builtinPlacements:QE,popupPlacement:S,ref:P,popupAlign:x,getPopupContainer:R,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:y,defaultPopupVisible:w,autoDestroy:I,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:F},D),v)};const eI=l.forwardRef(JE);function Zc(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,v=2*o-s,h=c,p=2*o-a,g=i,C=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${h} A ${r} ${r} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:S,arrowPolygon:b}}const tI=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${X(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},$p=8;function il(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?$p:r}}function ni(e,t){return e?t:{}}function Jc(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},tI(e,t,o)),{"&:before":{background:t}})]},ni(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),ni(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),ni(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),ni(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function nI(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const If={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"]}},rI={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"]}},oI=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wp(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,c={};return Object.keys(If).forEach(u=>{const d=r&&rI[u]||If[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,oI.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const m=il({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+s;break}f.overflow=nI(u,m,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const aI=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},St(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${X(e.calc(u).div(2).equal())} ${X(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,$p)}},[`${t}-content`]:{position:"relative"}}),Vy(e,(f,m)=>{let{darkColor:v}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Jc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},iI=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},il({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Zc(st(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ep=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return It("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,s=st(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[aI(s),Pa(r,"zoom-big-fast")]},iI,{resetStyle:!1,injectStyle:t})(e)},lI=ca.map(e=>`${e}-inverse`);function sI(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ue(lI),ue(ca)).includes(e):ca.includes(e)}function Ip(e,t){const n=sI(t),r=V({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const cI=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(je),c=s("tooltip",t),[u,d,f]=Ep(c),m=Ip(c,a),v=m.arrowStyle,h=Object.assign(Object.assign({},i),m.overlayStyle),p=V(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(l.createElement("div",{className:p,style:v},l.createElement("div",{className:`${c}-arrow`}),l.createElement(Qc,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),o)))};var uI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:h=!0,title:p,overlay:g,builtinPlacements:C,arrowPointAtCenter:y=!1,autoAdjustOverflow:b=!0}=e,S=!!h,[,$]=qt(),{getPopupContainer:x,getPrefixCls:E,direction:I}=l.useContext(je),w=vt("Tooltip"),R=l.useRef(null),N=()=>{var ye;(ye=R.current)===null||ye===void 0||ye.forceAlign()};l.useImperativeHandle(t,()=>{var ye;return{forceAlign:N,forcePopupAlign:()=>{w.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(ye=R.current)===null||ye===void 0?void 0:ye.nativeElement}}),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ye=>{let[me,be]=ye;w.deprecated(!(me in e),me,be)}),w(!v||typeof v=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),w(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[T,M]=Kt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=!p&&!g&&p!==0,F=ye=>{var me,be;M(O?!1:ye),O||((me=e.onOpenChange)===null||me===void 0||me.call(e,ye),(be=e.onVisibleChange)===null||be===void 0||be.call(e,ye))},j=l.useMemo(()=>{var ye,me;let be=y;return typeof h=="object"&&(be=(me=(ye=h.pointAtCenter)!==null&&ye!==void 0?ye:h.arrowPointAtCenter)!==null&&me!==void 0?me:y),C||wp({arrowPointAtCenter:be,autoAdjustOverflow:b,arrowWidth:S?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[y,h,C,$]),P=l.useMemo(()=>p===0?p:g||p||"",[g,p]),D=l.createElement(bo,null,typeof P=="function"?P():P),{getPopupContainer:z,placement:L="top",mouseEnterDelay:_=.1,mouseLeaveDelay:B=.1,overlayStyle:H,rootClassName:K}=e,G=uI(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),te=E("tooltip",o),Y=E(),Q=e["data-popover-inject"];let ie=T;!("open"in e)&&!("visible"in e)&&O&&(ie=!1);const Z=l.isValidElement(d)&&!Yv(d)?d:l.createElement("span",null,d),J=Z.props,ne=!J.className||typeof J.className=="string"?V(J.className,a||`${te}-open`):J.className,[re,W,ee]=Ep(te,!Q),oe=Ip(te,c),he=oe.arrowStyle,Ce=Object.assign(Object.assign({},u),oe.overlayStyle),de=V(s,{[`${te}-rtl`]:I==="rtl"},oe.className,K,W,ee),[ae,ce]=Ea("Tooltip",G.zIndex),we=l.createElement(eI,Object.assign({},G,{zIndex:ae,showArrow:S,placement:L,mouseEnterDelay:_,mouseLeaveDelay:B,prefixCls:te,overlayClassName:de,overlayStyle:Object.assign(Object.assign({},he),H),getTooltipContainer:z||i||x,ref:R,builtinPlacements:j,overlay:D,visible:ie,onVisibleChange:F,afterVisibleChange:f??m,overlayInnerStyle:Ce,arrowContent:l.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:Br(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),ie?tn(Z,{className:ne}):Z);return re(l.createElement(wa.Provider,{value:ce},we))}),Aa=dI;Aa.displayName="Tooltip";Aa._InternalPanelDoNotUseOrYouWillBeFired=cI;const fI=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:v,innerContentPadding:h,titlePadding:p}=e;return[{[t]:Object.assign(Object.assign({},St(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:v,padding:p},[`${t}-inner-content`]:{color:n,padding:h}})},Jc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},mI=e=>{const{componentCls:t}=e;return{[t]:ca.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},vI=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,v=m/2,h=m/2-t,p=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Zc(e)),il({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${v}px ${p}px ${h}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${p}px`:0})},Op=It("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=st(e,{popoverBg:t,popoverColor:n});return[fI(r),mI(r),Pa(r,"zoom-big")]},vI,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var gI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${e}-title`},Mi(t)),l.createElement("div",{className:`${e}-inner-content`},Mi(n))),hI=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:c}=e;return l.createElement("div",{className:V(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},l.createElement("div",{className:`${n}-arrow`}),l.createElement(Qc,Object.assign({},e,{className:t,prefixCls:n}),c||pI(n,i,s)))},bI=e=>{const{prefixCls:t,className:n}=e,r=gI(e,["prefixCls","className"]),{getPrefixCls:o}=l.useContext(je),a=o("popover",t),[i,s,c]=Op(a);return i(l.createElement(hI,Object.assign({},r,{prefixCls:a,hashId:s,className:V(n,c)})))};var yI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},Mi(t)),l.createElement("div",{className:`${r}-inner-content`},Mi(n)))},SI=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:a,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:v,overlayStyle:h={}}=e,p=yI(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=l.useContext(je),C=g("popover",o),[y,b,S]=Op(C),$=g(),x=V(s,b,S),[E,I]=Kt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),w=(T,M)=>{I(T,!0),v==null||v(T,M)},R=T=>{T.keyCode===le.ESC&&w(!1,T)},N=T=>{w(T)};return y(l.createElement(Aa,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m,overlayStyle:h},p,{prefixCls:C,overlayClassName:x,ref:t,open:E,onOpenChange:N,overlay:a||i?l.createElement(CI,{prefixCls:C,title:a,content:i}):null,transitionName:Br($,"zoom-big",p.transitionName),"data-popover-inject":!0}),tn(d,{onKeyDown:T=>{var M,O;l.isValidElement(d)&&((O=d==null?void 0:(M=d.props).onKeyDown)===null||O===void 0||O.call(M,T)),R(T)}})))}),Rp=SI;Rp._InternalPanelDoNotUseOrYouWillBeFired=bI;Rp.displayName="Popover";var xI={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"},$I=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:xI}))},pa=l.forwardRef($I);pa.displayName="RightOutlined";var wI=le.ESC,EI=le.TAB;function II(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case wI:s();break;case EI:{var m=!1;i.current||(m=c()),m?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&ut(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var OI=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=vn(t,a==null?void 0:a.ref);return q.createElement(q.Fragment,null,r&&q.createElement("div",{className:"".concat(o,"-arrow")}),q.cloneElement(a,{ref:ur(a)?i:void 0}))}),ro={adjustX:1,adjustY:1},oo=[0,0],RI={topLeft:{points:["bl","tl"],overflow:ro,offset:[0,-4],targetOffset:oo},top:{points:["bc","tc"],overflow:ro,offset:[0,-4],targetOffset:oo},topRight:{points:["br","tr"],overflow:ro,offset:[0,-4],targetOffset:oo},bottomLeft:{points:["tl","bl"],overflow:ro,offset:[0,4],targetOffset:oo},bottom:{points:["tc","bc"],overflow:ro,offset:[0,4],targetOffset:oo},bottomRight:{points:["tr","br"],overflow:ro,offset:[0,4],targetOffset:oo}},PI=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function NI(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?RI:m,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,y=e.overlayStyle,b=e.visible,S=e.trigger,$=S===void 0?["hover"]:S,x=e.autoFocus,E=e.overlay,I=e.children,w=e.onVisibleChange,R=We(e,PI),N=q.useState(),T=U(N,2),M=T[0],O=T[1],F="visible"in e?b:M,j=q.useRef(null),P=q.useRef(null),D=q.useRef(null);q.useImperativeHandle(t,function(){return j.current});var z=function(Q){O(Q),w==null||w(Q)};II({visible:F,triggerRef:D,onVisibleChange:z,autoFocus:x,overlayRef:P});var L=function(Q){var ie=e.onOverlayClick;O(!1),ie&&ie(Q)},_=function(){return q.createElement(OI,{ref:P,overlay:E,prefixCls:i,arrow:o})},B=function(){return typeof E=="function"?_:_()},H=function(){var Q=e.minOverlayWidthMatchTrigger,ie=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!ie},K=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(i,"-open")},G=q.cloneElement(I,{className:V((n=I.props)===null||n===void 0?void 0:n.className,F&&K()),ref:ur(I)?vn(D,I.ref):void 0}),te=g;return!te&&$.indexOf("contextMenu")!==-1&&(te=["click"]),q.createElement(ol,fe({builtinPlacements:v},R,{prefixCls:i,ref:j,popupClassName:V(C,A({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:$,showAction:p,hideAction:te,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:F,stretch:H()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:L,getPopupContainer:h}),G)}const MI=q.forwardRef(NI);var Pp=l.createContext(null);function Np(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Mp(e){var t=l.useContext(Pp);return Np(t,e)}var TI=["children","locked"],Vn=l.createContext(null);function AI(e,t){var n=k({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ha(e){var t=e.children,n=e.locked,r=We(e,TI),o=l.useContext(Vn),a=Sa(function(){return AI(o,r)},[o,r],function(i,s){return!n&&(i[0]!==s[0]||!oa(i[1],s[1],!0))});return l.createElement(Vn.Provider,{value:a},t)}var DI=[],Tp=l.createContext(null);function ll(){return l.useContext(Tp)}var Ap=l.createContext(DI);function Ao(e){var t=l.useContext(Ap);return l.useMemo(function(){return e!==void 0?[].concat(ue(t),[e]):t},[t,e])}var Dp=l.createContext(null),eu=l.createContext({});function Of(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ui(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function jI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ue(e.querySelectorAll("*")).filter(function(r){return Of(r,t)});return Of(e,t)&&n.unshift(e),n}var qs=le.LEFT,Us=le.RIGHT,Xs=le.UP,gi=le.DOWN,pi=le.ENTER,jp=le.ESC,ko=le.HOME,Ho=le.END,Rf=[Xs,gi,qs,Us];function FI(e,t,n,r){var o,a="prev",i="next",s="children",c="parent";if(e==="inline"&&r===pi)return{inlineTrigger:!0};var u=A(A({},Xs,a),gi,i),d=A(A(A(A({},qs,n?i:a),Us,n?a:i),gi,s),pi,s),f=A(A(A(A(A(A({},Xs,a),gi,i),pi,s),jp,c),qs,n?s:c),Us,n?c:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},v=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(v){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function _I(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function LI(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function tu(e,t){var n=jI(e,!0);return n.filter(function(r){return t.has(r)})}function Pf(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=tu(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Ys=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(Np(n,i),"']"));s&&(r.add(s),a.set(s,i),o.set(i,s))}),{elements:r,key2element:o,element2key:a}};function zI(e,t,n,r,o,a,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var m=function(){ut.cancel(d.current)};return l.useEffect(function(){return function(){m()}},[]),function(v){var h=v.which;if([].concat(Rf,[pi,jp,ko,Ho]).includes(h)){var p=a(),g=Ys(p,r),C=g,y=C.elements,b=C.key2element,S=C.element2key,$=b.get(t),x=LI($,y),E=S.get(x),I=FI(e,i(E,!0).length===1,n,h);if(!I&&h!==ko&&h!==Ho)return;(Rf.includes(h)||[ko,Ho].includes(h))&&v.preventDefault();var w=function(P){if(P){var D=P,z=P.querySelector("a");z!=null&&z.getAttribute("href")&&(D=z);var L=S.get(P);s(L),m(),d.current=ut(function(){f.current===L&&D.focus()})}};if([ko,Ho].includes(h)||I.sibling||!x){var R;!x||e==="inline"?R=o.current:R=_I(x);var N,T=tu(R,y);h===ko?N=T[0]:h===Ho?N=T[T.length-1]:N=Pf(R,y,x,I.offset),w(N)}else if(I.inlineTrigger)c(E);else if(I.offset>0)c(E,!0),m(),d.current=ut(function(){g=Ys(p,r);var j=x.getAttribute("aria-controls"),P=document.getElementById(j),D=Pf(P,g.elements);w(D)},5);else if(I.offset<0){var M=i(E,!0),O=M[M.length-2],F=b.get(O);c(O,!1),w(F)}}u==null||u(v)}}function BI(e){Promise.resolve().then(e)}var nu="__RC_UTIL_PATH_SPLIT__",Nf=function(t){return t.join(nu)},kI=function(t){return t.split(nu)},Qs="rc-menu-more";function HI(){var e=l.useState({}),t=U(e,2),n=t[1],r=l.useRef(new Map),o=l.useRef(new Map),a=l.useState([]),i=U(a,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},m=l.useCallback(function(b,S){_e(!r.current.has(b),"Duplicated key '".concat(b,"' used in Menu by path [").concat(S.join(" > "),"]"));var $=Nf(S);o.current.set($,b),r.current.set(b,$),u.current+=1;var x=u.current;BI(function(){x===u.current&&f()})},[]),v=l.useCallback(function(b,S){var $=Nf(S);o.current.delete($),r.current.delete(b)},[]),h=l.useCallback(function(b){c(b)},[]),p=l.useCallback(function(b,S){var $=r.current.get(b)||"",x=kI($);return S&&s.includes(x[0])&&x.unshift(Qs),x},[s]),g=l.useCallback(function(b,S){return b.some(function($){var x=p($,!0);return x.includes(S)})},[p]),C=function(){var S=ue(r.current.keys());return s.length&&S.push(Qs),S},y=l.useCallback(function(b){var S="".concat(r.current.get(b)).concat(nu),$=new Set;return ue(o.current.keys()).forEach(function(x){x.startsWith(S)&&$.add(o.current.get(x))}),$},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:y}}function Ko(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!m.current&&!S&&g(!0),b==null?void 0:b(S)},p?null:l.createElement(ha,{mode:a,locked:!m.current},l.createElement(Kn,fe({visible:C},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var $=S.className,x=S.style;return l.createElement(ru,{id:t,className:$,style:x},o)}))}var aO=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],iO=["active"],lO=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey,i=e.warnKey,s=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,v=e.popupOffset,h=e.popupStyle,p=e.onClick,g=e.onMouseEnter,C=e.onMouseLeave,y=e.onTitleClick,b=e.onTitleMouseEnter,S=e.onTitleMouseLeave,$=We(e,aO),x=Mp(a),E=l.useContext(Vn),I=E.prefixCls,w=E.mode,R=E.openKeys,N=E.disabled,T=E.overflowDisabled,M=E.activeKey,O=E.selectedKeys,F=E.itemIcon,j=E.expandIcon,P=E.onItemClick,D=E.onOpenChange,z=E.onActive,L=l.useContext(eu),_=L._internalRenderSubMenuItem,B=l.useContext(Dp),H=B.isSubPathKey,K=Ao(),G="".concat(I,"-submenu"),te=N||s,Y=l.useRef(),Q=l.useRef();i&&_e(!1,"SubMenu should not leave undefined `key`.");var ie=d??F,Z=f??j,J=R.includes(a),ne=!T&&J,re=H(O,a),W=Fp(a,te,b,S),ee=W.active,oe=We(W,iO),he=l.useState(!1),Ce=U(he,2),de=Ce[0],ae=Ce[1],ce=function(Ve){te||ae(Ve)},we=function(Ve){ce(!0),g==null||g({key:a,domEvent:Ve})},ye=function(Ve){ce(!1),C==null||C({key:a,domEvent:Ve})},me=l.useMemo(function(){return ee||(w!=="inline"?de||H([M],a):!1)},[w,ee,M,de,a,H]),be=_p(K.length),xe=function(Ve){te||(y==null||y({key:a,domEvent:Ve}),w==="inline"&&D(a,!J))},Be=Ko(function(mt){p==null||p(Ti(mt)),P(mt)}),ke=function(Ve){w!=="inline"&&D(a,Ve)},Ee=function(){z(a)},$e=x&&"".concat(x,"-popup"),Ue=l.createElement("div",fe({role:"menuitem",style:be,className:"".concat(G,"-title"),tabIndex:te?null:-1,ref:Y,title:typeof o=="string"?o:null,"data-menu-id":T&&x?null:x,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":te,onClick:xe,onFocus:Ee},oe),o,l.createElement(Lp,{icon:w!=="horizontal"?Z:void 0,props:k(k({},e),{},{isOpen:ne,isSubMenu:!0})},l.createElement("i",{className:"".concat(G,"-arrow")}))),He=l.useRef(w);if(w!=="inline"&&K.length>1?He.current="vertical":He.current=w,!T){var tt=He.current;Ue=l.createElement(rO,{mode:tt,prefixCls:G,visible:!c&&ne&&w!=="inline",popupClassName:m,popupOffset:v,popupStyle:h,popup:l.createElement(ha,{mode:tt==="horizontal"?"vertical":tt},l.createElement(ru,{id:$e,ref:Q},u)),disabled:te,onVisibleChange:ke},Ue)}var dt=l.createElement(Yn.Item,fe({ref:t,role:"none"},$,{component:"li",style:n,className:V(G,"".concat(G,"-").concat(w),r,A(A(A(A({},"".concat(G,"-open"),ne),"".concat(G,"-active"),me),"".concat(G,"-selected"),re),"".concat(G,"-disabled"),te)),onMouseEnter:we,onMouseLeave:ye}),Ue,!T&&l.createElement(oO,{id:$e,open:ne,keyPath:K},u));return _&&(dt=_(dt,e,{selected:re,active:me,open:ne,disabled:te})),l.createElement(ha,{onItemClick:Be,mode:w==="horizontal"?"vertical":w,itemIcon:ie,expandIcon:Z},dt)}),Da=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ao(n),a=ou(r,o),i=ll();l.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var s;return i?s=a:s=l.createElement(lO,fe({ref:t},e),a),l.createElement(Ap.Provider,{value:o},s)});Da.displayName="SubMenu";function au(e){var t=e.className,n=e.style,r=l.useContext(Vn),o=r.prefixCls,a=ll();return a?null:l.createElement("li",{role:"separator",className:V("".concat(o,"-item-divider"),t),style:n})}var sO=["className","title","eventKey","children"],cO=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=We(e,sO),i=l.useContext(Vn),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",fe({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:V(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),cl=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ao(n),a=ou(r,o),i=ll();return i?a:l.createElement(cO,fe({ref:t},kt(e,["warnKey"])),a)});cl.displayName="MenuItemGroup";var uO=["label","children","key","type"];function Zs(e,t){var n=t.item,r=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(i,s){if(i&&De(i)==="object"){var c=i,u=c.label,d=c.children,f=c.key,m=c.type,v=We(c,uO),h=f??"tmp-".concat(s);return d||m==="group"?m==="group"?l.createElement(r,fe({key:h},v,{title:u}),Zs(d,t)):l.createElement(o,fe({key:h},v,{title:u}),Zs(d,t)):m==="divider"?l.createElement(a,fe({key:h},v)):l.createElement(n,fe({key:h},v),u)}return null}).filter(function(i){return i})}function Tf(e,t,n,r){var o=e,a=k({divider:au,item:sl,group:cl,submenu:Da},r);return t&&(o=Zs(t,a)),ou(o,n)}var dO=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Or=[],fO=l.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,v=r.direction,h=r.id,p=r.mode,g=p===void 0?"vertical":p,C=r.inlineCollapsed,y=r.disabled,b=r.disabledOverflow,S=r.subMenuOpenDelay,$=S===void 0?.1:S,x=r.subMenuCloseDelay,E=x===void 0?.1:x,I=r.forceSubMenuRender,w=r.defaultOpenKeys,R=r.openKeys,N=r.activeKey,T=r.defaultActiveFirst,M=r.selectable,O=M===void 0?!0:M,F=r.multiple,j=F===void 0?!1:F,P=r.defaultSelectedKeys,D=r.selectedKeys,z=r.onSelect,L=r.onDeselect,_=r.inlineIndent,B=_===void 0?24:_,H=r.motion,K=r.defaultMotions,G=r.triggerSubMenuAction,te=G===void 0?"hover":G,Y=r.builtinPlacements,Q=r.itemIcon,ie=r.expandIcon,Z=r.overflowedIndicator,J=Z===void 0?"...":Z,ne=r.overflowedIndicatorPopupClassName,re=r.getPopupContainer,W=r.onClick,ee=r.onOpenChange,oe=r.onKeyDown,he=r.openAnimation,Ce=r.openTransitionName,de=r._internalRenderMenuItem,ae=r._internalRenderSubMenuItem,ce=r._internalComponents,we=We(r,dO),ye=l.useMemo(function(){return[Tf(m,f,Or,ce),Tf(m,f,Or,{})]},[m,f,ce]),me=U(ye,2),be=me[0],xe=me[1],Be=l.useState(!1),ke=U(Be,2),Ee=ke[0],$e=ke[1],Ue=l.useRef(),He=KI(h),tt=v==="rtl";_e(!he&&!Ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var dt=Kt(w,{value:R,postState:function(qe){return qe||Or}}),mt=U(dt,2),Ve=mt[0],nt=mt[1],et=function(qe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Et(){nt(qe),ee==null||ee(qe)}at?mo.flushSync(Et):Et()},pt=l.useState(Ve),ct=U(pt,2),yt=ct[0],Me=ct[1],Se=l.useRef(!1),Oe=l.useMemo(function(){return(g==="inline"||g==="vertical")&&C?["vertical",C]:[g,!1]},[g,C]),ve=U(Oe,2),ze=ve[0],Ne=ve[1],ge=ze==="inline",Le=l.useState(ze),rt=U(Le,2),pe=rt[0],Ae=rt[1],Ie=l.useState(Ne),Ke=U(Ie,2),Qe=Ke[0],ot=Ke[1];l.useEffect(function(){Ae(ze),ot(Ne),Se.current&&(ge?nt(yt):et(Or))},[ze,Ne]);var Ot=l.useState(0),xt=U(Ot,2),$t=xt[0],Ze=xt[1],Pt=$t>=be.length-1||pe!=="horizontal"||b;l.useEffect(function(){ge&&Me(Ve)},[Ve]),l.useEffect(function(){return Se.current=!0,function(){Se.current=!1}},[]);var Nt=HI(),un=Nt.registerPath,Ft=Nt.unregisterPath,Ut=Nt.refreshOverflowKeys,Re=Nt.isSubPathKey,Pe=Nt.getKeyPath,Fe=Nt.getKeys,wt=Nt.getSubPathKeys,Xt=l.useMemo(function(){return{registerPath:un,unregisterPath:Ft}},[un,Ft]),qn=l.useMemo(function(){return{isSubPathKey:Re}},[Re]);l.useEffect(function(){Ut(Pt?Or:be.slice($t+1).map(function(Ge){return Ge.key}))},[$t,Pt]);var Yt=Kt(N||T&&((n=be[0])===null||n===void 0?void 0:n.key),{value:N}),Tn=U(Yt,2),dn=Tn[0],Zt=Tn[1],gn=Ko(function(Ge){Zt(Ge)}),mr=Ko(function(){Zt(void 0)});l.useImperativeHandle(t,function(){return{list:Ue.current,focus:function(qe){var at,Et=Fe(),Ct=Ys(Et,He),an=Ct.elements,Gt=Ct.key2element,pn=Ct.element2key,qr=tu(Ue.current,an),ln=dn??(qr[0]?pn.get(qr[0]):(at=be.find(function(Zn){return!Zn.props.disabled}))===null||at===void 0?void 0:at.key),Un=Gt.get(ln);if(ln&&Un){var hn;Un==null||(hn=Un.focus)===null||hn===void 0||hn.call(Un,qe)}}}});var fn=Kt(P||[],{value:D,postState:function(qe){return Array.isArray(qe)?qe:qe==null?Or:[qe]}}),on=U(fn,2),$n=on[0],vr=on[1],wn=function(qe){if(O){var at=qe.key,Et=$n.includes(at),Ct;j?Et?Ct=$n.filter(function(Gt){return Gt!==at}):Ct=[].concat(ue($n),[at]):Ct=[at],vr(Ct);var an=k(k({},qe),{},{selectedKeys:Ct});Et?L==null||L(an):z==null||z(an)}!j&&Ve.length&&pe!=="inline"&&et(Or)},An=Ko(function(Ge){W==null||W(Ti(Ge)),wn(Ge)}),Dn=Ko(function(Ge,qe){var at=Ve.filter(function(Ct){return Ct!==Ge});if(qe)at.push(Ge);else if(pe!=="inline"){var Et=wt(Ge);at=at.filter(function(Ct){return!Et.has(Ct)})}oa(Ve,at,!0)||et(at,!0)}),En=function(qe,at){var Et=at??!Ve.includes(qe);Dn(qe,Et)},Je=zI(pe,dn,tt,He,Ue,Fe,Pe,Zt,En,oe);l.useEffect(function(){$e(!0)},[]);var Xe=l.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:ae}},[de,ae]),_t=pe!=="horizontal"||b?be:be.map(function(Ge,qe){return l.createElement(ha,{key:Ge.key,overflowDisabled:qe>$t},Ge)}),Lt=l.createElement(Yn,fe({id:h,ref:Ue,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:sl,className:V(a,"".concat(a,"-root"),"".concat(a,"-").concat(pe),c,A(A({},"".concat(a,"-inline-collapsed"),Qe),"".concat(a,"-rtl"),tt),i),dir:v,style:s,role:"menu",tabIndex:d,data:_t,renderRawItem:function(qe){return qe},renderRawRest:function(qe){var at=qe.length,Et=at?be.slice(-at):null;return l.createElement(Da,{eventKey:Qs,title:J,disabled:Pt,internalPopupClose:at===0,popupClassName:ne},Et)},maxCount:pe!=="horizontal"||b?Yn.INVALIDATE:Yn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(qe){Ze(qe)},onKeyDown:Je},we));return l.createElement(eu.Provider,{value:Xe},l.createElement(Pp.Provider,{value:He},l.createElement(ha,{prefixCls:a,rootClassName:i,mode:pe,openKeys:Ve,rtl:tt,disabled:y,motion:Ee?H:null,defaultMotions:Ee?K:null,activeKey:dn,onActive:gn,onInactive:mr,selectedKeys:$n,inlineIndent:B,subMenuOpenDelay:$,subMenuCloseDelay:E,forceSubMenuRender:I,builtinPlacements:Y,triggerSubMenuAction:te,getPopupContainer:re,itemIcon:Q,expandIcon:ie,onItemClick:An,onOpenChange:Dn},l.createElement(Dp.Provider,{value:qn},Lt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(Tp.Provider,{value:Xt},xe)))))}),ja=fO;ja.Item=sl;ja.SubMenu=Da;ja.ItemGroup=cl;ja.Divider=au;var mO={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"},vO=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:mO}))},Bp=l.forwardRef(vO);Bp.displayName="BarsOutlined";var gO={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"},pO=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:gO}))},Js=l.forwardRef(pO);Js.displayName="LeftOutlined";const hO=e=>!isNaN(parseFloat(e))&&isFinite(e),bO=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var yO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),SO=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:h,onCollapse:p,onBreakpoint:g}=e,C=yO(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=l.useContext(bO),[b,S]=l.useState("collapsed"in e?e.collapsed:i),[$,x]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(M,O)=>{"collapsed"in e||S(M),p==null||p(M,O)},I=l.useRef();I.current=M=>{x(M.matches),g==null||g(M.matches),b!==M.matches&&E(M.matches,"responsive")},l.useEffect(()=>{function M(F){return I.current(F)}let O;if(typeof window<"u"){const{matchMedia:F}=window;if(F&&h&&h in Af){O=F(`screen and (max-width: ${Af[h]})`);try{O.addEventListener("change",M)}catch{O.addListener(M)}M(O)}}return()=>{try{O==null||O.removeEventListener("change",M)}catch{O==null||O.removeListener(M)}}},[h]),l.useEffect(()=>{const M=CO("ant-sider-");return y.addSider(M),()=>y.removeSider(M)},[]);const w=()=>{E(!b,"clickTrigger")},{getPrefixCls:R}=l.useContext(je),N=()=>{const M=R("layout-sider",n),O=kt(C,["collapsed"]),F=b?m:f,j=hO(F)?`${F}px`:String(F),P=parseFloat(String(m||0))===0?l.createElement("span",{onClick:w,className:V(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${d?"right":"left"}`),style:v},o||l.createElement(Bp,null)):null,L={expanded:d?l.createElement(pa,null):l.createElement(Js,null),collapsed:d?l.createElement(Js,null):l.createElement(pa,null)}[b?"collapsed":"expanded"],_=o!==null?P||l.createElement("div",{className:`${M}-trigger`,onClick:w,style:{width:j}},o||L):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${j}`,maxWidth:j,minWidth:j,width:j}),H=V(M,`${M}-${s}`,{[`${M}-collapsed`]:!!b,[`${M}-has-trigger`]:u&&o!==null&&!P,[`${M}-below`]:!!$,[`${M}-zero-width`]:parseFloat(j)===0},r);return l.createElement("aside",Object.assign({className:H},O,{style:B,ref:t}),l.createElement("div",{className:`${M}-children`},a),u||$&&P?_:null)},T=l.useMemo(()=>({siderCollapsed:b}),[b]);return l.createElement(iu.Provider,{value:T},N())});SO.displayName="Sider";var xO={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"},$O=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:xO}))},lu=l.forwardRef($O);lu.displayName="EllipsisOutlined";var wO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=wO(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=l.useContext(je),i=a("menu",t),s=V({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(au,Object.assign({className:s},o))},Ai=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Hp=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=l.useContext(Ai),m=y=>{const b=l.createElement("span",{className:`${s}-title-content`},r);return(!o||l.isValidElement(r)&&r.type==="span")&&r&&y&&c&&typeof r=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):b},{siderCollapsed:v}=l.useContext(iu);let h=a;typeof a>"u"?h=c?r:"":a===!1&&(h="");const p={title:h};!v&&!f&&(p.title=null,p.open=!1);const g=sn(r).length;let C=l.createElement(sl,Object.assign({},kt(e,["title","icon","danger"]),{className:V({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?g+1:g)===1},n),title:typeof a=="string"?a:void 0}),tn(o,{className:V(l.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(f));return d||(C=l.createElement(Aa,Object.assign({},p,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),C)),C};var EO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=EO(e,["children"]),o=l.useContext(Di),a=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=u0(n),s=Vr(t,i?n.ref:null);return l.createElement(Di.Provider,{value:a},l.createElement(bo,null,i?l.cloneElement(n,{ref:s}):n))}),OO=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${X(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
+ > ${t}-item-active,
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},RO=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
+ ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${X(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${X(n)})`}}}}},Df=e=>Object.assign({},Eo(e)),jf=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:v,motionEaseOut:h,itemPaddingInline:p,motionDurationMid:g,itemHoverColor:C,lineType:y,colorSplit:b,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:I,dangerItemSelectedBg:w,popupBg:R,itemHoverBg:N,itemActiveBg:T,menuSubMenuBg:M,horizontalItemSelectedColor:O,horizontalItemSelectedBg:F,horizontalItemBorderRadius:j,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},Df(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Df(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:T}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:T}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:w}},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:R},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:R},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${X(u)} solid transparent`,transition:`border-color ${m} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:F,"&:hover":{backgroundColor:F},"&::after":{borderBottomWidth:u,borderBottomColor:O}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${X(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${X(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${v}`,`opacity ${g} ${v}`].join(",")}}}}}},Ff=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:c}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:X(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:X(n)},[`${t}-item-group-list ${t}-submenu-title,
+ ${t}-submenu-title`]:{paddingInlineEnd:u}}},PO=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:h,collapsedWidth:p,collapsedIconSize:g}=e,C={height:r,lineHeight:X(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Ff(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Ff(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${X(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${s} ${c}`,`padding-inline calc(50% - ${X(e.calc(f).div(2).equal())} - ${X(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`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:p,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${X(e.calc(f).div(2).equal())} - ${X(d)})`,textOverflow:"clip",[`
+ ${t}-submenu-arrow,
+ ${t}-submenu-expand-icon
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:X(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Si),{paddingInline:v})}}]},_f=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},wo()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lf=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${X(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${X(i)})`}}}}},NO=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:h,menuArrowOffset:p,lineType:g,groupTitleLineHeight:C,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},xi()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},St(e)),xi()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${X(s)} ${X(c)}`,fontSize:y,lineHeight:C,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_f(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${X(e.calc(r).mul(2).equal())} ${X(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},_f(e)),Lf(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Lf(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${X(p)})`},"&::after":{transform:`rotate(45deg) translateX(${X(e.calc(p).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${X(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${X(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${X(p)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},MO=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:h,controlItemBgActive:p,colorBgTextHover:g,controlHeightLG:C,lineHeight:y,colorBgElevated:b,marginXXS:S,padding:$,fontSize:x,controlHeightSM:E,fontSizeLG:I,colorTextLightSolid:w,colorErrorHover:R}=e,N=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,T=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,M=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,O=new Rt(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:v,activeBarBorderWidth:T,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:y,collapsedWidth:C*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:$,horizontalLineHeight:`${C*1.15}px`,iconSize:x,iconMarginInlineEnd:E-x,collapsedIconSize:I,groupTitleFontSize:x,darkItemDisabledColor:new Rt(w).setAlpha(.25).toRgbString(),darkItemColor:O,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:O,darkItemHoverColor:w,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:a,itemWidth:N?`calc(100% + ${T}px)`:`calc(100% - ${M*2}px)`}},TO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return It("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:v,darkDangerItemSelectedBg:h,darkItemHoverBg:p,darkGroupTitleColor:g,darkItemHoverColor:C,darkItemDisabledColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:$,popupBg:x,darkPopupBg:E}=o,I=o.calc(s).div(7).mul(5).equal(),w=st(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:x}),R=st(w,{itemColor:c,itemHoverColor:C,groupTitleColor:g,itemSelectedColor:m,itemBg:d,popupBg:E,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:y,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:v});return[NO(w),OO(w),PO(w),jf(w,"light"),jf(R,"dark"),RO(w),tl(w),yo(w,"slide-up"),yo(w,"slide-down"),Pa(w,"zoom-big")]},MO,{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)},Vp=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=l.useContext(Ai),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=Ao();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const h=l.isValidElement(o)&&o.type==="span";f=l.createElement(l.Fragment,null,tn(r,{className:V(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:l.createElement("span",{className:`${s}-title-content`},o))}const m=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[v]=Ea("Menu");return l.createElement(Ai.Provider,{value:m},l.createElement(Da,Object.assign({},kt(e,["icon"]),{title:f,popupClassName:V(s,n,`${s}-${a||u}`),popupStyle:{zIndex:v}})))};var AO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=l.useContext(Di),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:s,menu:c}=l.useContext(je),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:g,siderCollapsed:C,rootClassName:y,mode:b,selectable:S,onClick:$,overflowedIndicatorPopupClassName:x}=e,E=AO(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=kt(E,["collapsedWidth"]);{const B=vt("Menu");B(!("inlineCollapsed"in e&&b!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),B(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),B.deprecated("items"in e&&!e.children,"children","items")}(n=o.validator)===null||n===void 0||n.call(o,{mode:b});const w=Vt(function(){var B;$==null||$.apply(void 0,arguments),(B=o.onClick)===null||B===void 0||B.call(o)}),R=o.mode||b,N=S??o.selectable,T=l.useMemo(()=>C!==void 0?C:g,[g,C]),M={horizontal:{motionName:`${u}-slide-up`},inline:da(u),other:{motionName:`${u}-zoom-big`}},O=a("menu",d||o.prefixCls),F=rn(O),[j,P,D]=TO(O,F,!r),z=V(`${O}-${v}`,c==null?void 0:c.className,f),L=l.useMemo(()=>{var B,H;if(typeof h=="function"||Ul(h))return h||null;if(typeof o.expandIcon=="function"||Ul(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||Ul(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const K=(B=h??(o==null?void 0:o.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return tn(K,{className:V(`${O}-submenu-expand-icon`,l.isValidElement(K)?(H=K.props)===null||H===void 0?void 0:H.className:void 0)})},[h,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,O]),_=l.useMemo(()=>({prefixCls:O,inlineCollapsed:T||!1,direction:s,firstLevel:!0,theme:v,mode:R,disableMenuItemTitleTooltip:p}),[O,T,s,p,v]);return j(l.createElement(Di.Provider,{value:null},l.createElement(Ai.Provider,{value:_},l.createElement(ja,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(lu,null),overflowedIndicatorPopupClassName:V(O,`${O}-${v}`,x),mode:R,selectable:N,onClick:w},I,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:z,prefixCls:O,direction:s,defaultMotions:M,expandIcon:L,ref:t,rootClassName:V(y,P,o.rootClassName,D,F),_internalComponents:DO})))))}),Do=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(iu);return l.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),l.createElement(jO,Object.assign({ref:n},e,r))});Do.Item=Hp;Do.SubMenu=Vp;Do.Divider=kp;Do.ItemGroup=cl;Do.displayName="Menu";const FO=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},_O=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:p}=e;return[{[t]:Object.assign(Object.assign({},St(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
+ &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
+ &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
+ &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
+ &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
+ &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Dc},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
+ &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
+ &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
+ &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
+ &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
+ &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Fc},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
+ &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
+ &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:jc},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
+ &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
+ &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:_c}})},Jc(e,p,{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`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ua(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${X(u)} ${X(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${X(u)} ${X(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ua(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${X(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.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${X(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[yo(e,"slide-up"),yo(e,"slide-down"),Ri(e,"move-up"),Ri(e,"move-down"),Pa(e,"zoom-big")]]},LO=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},il({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Zc(e)),zO=It("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=st(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[_O(a),FO(a)]},LO,{resetStyle:!1}),Fa=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:v,visible:h,onVisibleChange:p,mouseEnterDelay:g=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:y=!0,placement:b="",overlay:S,transitionName:$}=e,{getPopupContainer:x,getPrefixCls:E,direction:I,dropdown:w}=l.useContext(je),R=vt("Dropdown");[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(re=>{let[W,ee]=re;R.deprecated(!(W in e),W,ee)}),R.deprecated(!("overlay"in e),"overlay","menu");const N=l.useMemo(()=>{const re=E();return $!==void 0?$:b.includes("top")?`${re}-slide-down`:`${re}-slide-up`},[E,b,$]),T=l.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:I==="rtl"?"bottomRight":"bottomLeft",[b,I]);{if(b.includes("Center")){const re=b.slice(0,b.indexOf("Center"));R(!b.includes("Center"),"deprecated",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${re}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(re=>{let[W,ee]=re;R.deprecated(!(W in e),W,ee)})}const M=E("dropdown",r),O=rn(M),[F,j,P]=zO(M,O),[,D]=qt(),z=l.Children.only(o),L=tn(z,{className:V(`${M}-trigger`,{[`${M}-rtl`]:I==="rtl"},z.props.className),disabled:i}),_=i?[]:a;let B;_&&_.includes("contextMenu")&&(B=!0);const[H,K]=Kt(!1,{value:m??h}),G=Vt(re=>{v==null||v(re,{source:"trigger"}),p==null||p(re),K(re)}),te=V(u,d,j,P,O,w==null?void 0:w.className,{[`${M}-rtl`]:I==="rtl"}),Y=wp({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:D.marginXXS,arrowWidth:n?D.sizePopupArrow:0,borderRadius:D.borderRadius}),Q=l.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(v==null||v(!1,{source:"menu"}),K(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ie=()=>{let re;return t!=null&&t.items?re=l.createElement(Do,Object.assign({},t)):typeof S=="function"?re=S():re=S,s&&(re=s(re)),re=l.Children.only(typeof re=="string"?l.createElement("span",null,re):re),l.createElement(IO,{prefixCls:`${M}-menu`,rootClassName:V(P,O),expandIcon:l.createElement("span",{className:`${M}-menu-submenu-arrow`},l.createElement(pa,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:W=>{let{mode:ee}=W;R(!ee||ee==="vertical","usage",`mode="${ee}" is not supported for Dropdown's Menu.`)}},re)},[Z,J]=Ea("Dropdown",f==null?void 0:f.zIndex);let ne=l.createElement(MI,Object.assign({alignPoint:B},kt(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:C,visible:H,builtinPlacements:Y,arrow:!!n,overlayClassName:te,prefixCls:M,getPopupContainer:c||x,transitionName:N,trigger:_,overlay:ie,placement:T,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.style),f),{zIndex:Z})}),L);return Z&&(ne=l.createElement(wa.Provider,{value:J},ne)),F(ne)};function BO(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const kO=Yg(Fa,"dropdown",e=>e,BO),HO=e=>l.createElement(kO,Object.assign({},e),l.createElement("span",null));Fa._InternalPanelDoNotUseOrYouWillBeFired=HO;Fa.displayName="Dropdown";const Kp=l.createContext(null),VO=Kp.Provider,Wp=l.createContext(null),KO=Wp.Provider;var WO=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],GO=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,v=e.onChange,h=We(e,WO),p=l.useRef(null),g=l.useRef(null),C=Kt(u,{value:i}),y=U(C,2),b=y[0],S=y[1];l.useImperativeHandle(t,function(){return{focus:function(I){var w;(w=p.current)===null||w===void 0||w.focus(I)},blur:function(){var I;(I=p.current)===null||I===void 0||I.blur()},input:p.current,nativeElement:g.current}});var $=V(r,o,A(A({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),x=function(I){s||("checked"in e||S(I.target.checked),v==null||v({target:k(k({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return l.createElement("span",{className:$,title:m,style:a,ref:g},l.createElement("input",fe({},h,{className:"".concat(r,"-input"),ref:p,onChange:x,disabled:s,checked:!!b,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});const qO=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},St(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},UO=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:h,lineType:p,radioColor:g,radioBgColor:C,calc:y}=e,b=`${t}-inner`,$=y(o).sub(y(4).mul(2)),x=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},St(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${X(d)} ${p} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},St(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
+ &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},Eo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y($).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},XO=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:v,controlHeightSM:h,paddingXS:p,borderRadius:g,borderRadiusSM:C,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:x,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:I,colorPrimary:w,colorPrimaryHover:R,colorPrimaryActive:N,buttonSolidCheckedBg:T,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:O,calc:F}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:X(F(n).sub(F(o).mul(2)).equal()),background:f,border:`${X(o)} ${a} ${i}`,borderBlockStartWidth:F(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:F(o).mul(-1).equal(),insetInlineStart:F(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${X(o)} ${a} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:v,fontSize:m,lineHeight:X(F(v).sub(F(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:F(p).sub(o).equal(),paddingBlock:0,lineHeight:X(F(h).sub(F(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":Object.assign({},Eo(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:b,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:T,borderColor:T,"&:hover":{color:S,background:M,borderColor:M},"&:active":{color:S,background:O,borderColor:O}},"&-disabled":{color:$,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:E,borderColor:i,boxShadow:"none"}}}},YO=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:h}=e,p=4,g=a,C=t?g-p*2:g-(p+o)*2;return{radioSize:g,dotSize:C,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},Gp=It("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${X(n)} ${t}`,a=st(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[qO(a),UO(a),XO(a)]},YO,{unitless:{radioSize:!0,dotSize:!0}});var QO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=l.useContext(Kp),a=l.useContext(Wp),{getPrefixCls:i,direction:s,radio:c}=l.useContext(je),u=l.useRef(null),d=vn(t,u),{isFormItemInput:f}=l.useContext(nn);vt("Radio")(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.");const m=O=>{var F,j;(F=e.onChange)===null||F===void 0||F.call(e,O),(j=o==null?void 0:o.onChange)===null||j===void 0||j.call(o,O)},{prefixCls:v,className:h,rootClassName:p,children:g,style:C,title:y}=e,b=QO(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",v),$=((o==null?void 0:o.optionType)||a)==="button",x=$?`${S}-button`:S,E=rn(S),[I,w,R]=Gp(S,E),N=Object.assign({},b),T=l.useContext(Hn);o&&(N.name=o.name,N.onChange=m,N.checked=e.value===o.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:o.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:T;const M=V(`${x}-wrapper`,{[`${x}-wrapper-checked`]:N.checked,[`${x}-wrapper-disabled`]:N.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:f},c==null?void 0:c.className,h,p,w,R,E);return I(l.createElement(Xi,{component:"Radio",disabled:N.disabled},l.createElement("label",{className:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},l.createElement(GO,Object.assign({},N,{className:V(N.className,!$&&Ic),type:"radio",prefixCls:x,ref:d})),g!==void 0?l.createElement("span",null,g):null)))},ba=l.forwardRef(ZO);ba.displayName="Radio";const JO=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(je),[o,a]=Kt(e.defaultValue,{value:e.value}),i=O=>{const F=o,j=O.target.value;"value"in e||a(j);const{onChange:P}=e;P&&j!==F&&P(O)},{prefixCls:s,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:v,size:h,style:p,id:g,onMouseEnter:C,onMouseLeave:y,onFocus:b,onBlur:S}=e,$=n("radio",s),x=`${$}-group`,E=rn($),[I,w,R]=Gp($,E);let N=v;d&&d.length>0&&(N=d.map(O=>typeof O=="string"||typeof O=="number"?l.createElement(ba,{key:O.toString(),prefixCls:$,disabled:m,value:O,checked:o===O},O):l.createElement(ba,{key:`radio-group-value-options-${O.value}`,prefixCls:$,disabled:O.disabled||m,value:O.value,checked:o===O.value,title:O.title,style:O.style,id:O.id,required:O.required},O.label)));const T=Mn(h),M=V(x,`${x}-${f}`,{[`${x}-${T}`]:T,[`${x}-rtl`]:r==="rtl"},c,u,w,R,E);return I(l.createElement("div",Object.assign({},xn(e,{aria:!0,data:!0}),{className:M,style:p,onMouseEnter:C,onMouseLeave:y,onFocus:b,onBlur:S,id:g,ref:t}),l.createElement(VO,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},N)))}),e2=l.memo(JO);var t2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=l.useContext(je),{prefixCls:r}=e,o=t2(e,["prefixCls"]),a=n("radio",r);return l.createElement(KO,{value:"button"},l.createElement(ba,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},r2=l.forwardRef(n2),su=ba;su.Button=r2;su.Group=e2;su.__ANT_RADIO=!0;function cu(e){return st(e,{inputAffixPadding:e.paddingXXS})}const uu=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:C,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${C}`,warningActiveShadow:`0 0 0 ${p}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},o2=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),du=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},o2(st(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qp=(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}}),zf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Up=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},du(e))}),zf(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),zf(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Bf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Xp=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Bf(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Bf(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},du(e))}})}),Yp=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Qp=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),kf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Zp=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},du(e))}),kf(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),kf(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Hf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Jp=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Hf(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Hf(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),eh=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),th=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${X(t)} ${X(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},nh=e=>({padding:`${X(e.paddingBlockSM)} ${X(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ul=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${X(e.paddingBlock)} ${X(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},eh(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},th(e)),"&-sm":Object.assign({},nh(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),rh=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},th(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},nh(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${X(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${X(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${X(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${X(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${X(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},xi()),{[`${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},[`
+ & > ${t}-affix-wrapper,
+ & > ${t}-number-affix-wrapper,
+ & > ${n}-picker-range
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
+ & > ${n}-select-auto-complete ${t},
+ & > ${n}-cascader-picker ${t},
+ & > ${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,
+ & > ${n}-select:first-child > ${n}-select-selector,
+ & > ${n}-select-auto-complete:first-child ${t},
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
+ & > ${n}-select:last-child > ${n}-select-selector,
+ & > ${n}-cascader-picker:last-child ${t},
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},a2=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},St(e)),ul(e)),Up(e)),Zp(e)),Yp(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},i2=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${X(e.inputAffixPadding)}`}}}},l2=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},ul(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),i2(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},s2=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},St(e)),rh(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Xp(e)),Jp(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}}})})}},c2=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
+ > ${t},
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},u2=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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"}},[`
+ &-allow-clear > ${t},
+ &-affix-wrapper${r}-has-feedback ${t}
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,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"}}}}}},d2=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},fu=It("Input",e=>{const t=st(e,cu(e));return[a2(t),u2(t),l2(t),s2(t),c2(t),d2(t),Qi(t)]},uu,{resetFont:!1});function f2(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function v(){d&&clearTimeout(d)}function h(g){var C=g||{},y=C.upcomingOnly,b=y===void 0?!1:y;v(),f=!b}function p(){for(var g=arguments.length,C=new Array(g),y=0;ye?s?(m=Date.now(),a||(d=setTimeout(u?x:$,e))):$():a!==!0&&(d=setTimeout(u?x:$,u===void 0?e-S:e))}return p.cancel=h,p}function m2(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return f2(e,t,{debounceMode:a!==!1})}function mn(e,t){return e[t]}var v2=["children"];function oh(e,t){return"".concat(e,"-").concat(t)}function g2(e){return e&&e.type&&e.type.isTreeNode}function _a(e,t){return e??t}function So(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function p2(e,t){var n=new Map;function r(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(o||[]).forEach(function(i){var s=i[t.key],c=i[t.children];_e(s!=null,"Tree node must have a certain key: [".concat(a).concat(s,"]"));var u=String(s);_e(!n.has(u)||s===null||s===void 0,"Same 'key' exist in the Tree: ".concat(u)),n.set(u,!0),r(c,"".concat(a).concat(u," > "))})}r(e)}function ah(e){function t(n){var r=sn(n);return r.map(function(o){if(!g2(o))return _e(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,s=i.children,c=We(i,v2),u=k({key:a},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function Xl(e,t,n){var r=So(n),o=r._title,a=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,v){for(var h=oh(f?f.pos:"0",v),p=_a(m[a],h),g,C=0;C1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),h2(e,function(v){var h=v.node,p=v.index,g=v.pos,C=v.key,y=v.parentPos,b=v.level,S=v.nodes,$={node:h,nodes:S,index:p,key:C,pos:g,level:b},x=_a(C,g);d[g]=$,f[x]=$,$.parent=d[y],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),o&&o(m),m}function Zo(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=mn(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function zt(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,h=k(k({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return _e(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function lh(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function b2(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function y2(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var m=f.key,v=f.node,h=f.children,p=h===void 0?[]:h;o.has(m)&&!r(v)&&p.filter(function(g){return!r(g.node)}).forEach(function(g){o.add(g.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var h=!0,p=!1;(m.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var C=g.key,y=o.has(C);h&&!y&&(h=!1),!p&&(y||a.has(C))&&(p=!0)}),h&&o.add(m.key),p&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(lh(a,o))}}function C2(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var v=m.key,h=m.node,p=m.children,g=p===void 0?[]:p;!a.has(v)&&!i.has(v)&&!o(h)&&g.filter(function(C){return!o(C.node)}).forEach(function(C){a.delete(C.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var v=m.parent,h=m.node;if(!(o(h)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(v.key);return}var p=!0,g=!1;(v.children||[]).filter(function(C){return!o(C.node)}).forEach(function(C){var y=C.key,b=a.has(y);p&&!b&&(p=!1),!g&&(b||i.has(y))&&(g=!0)}),p||a.delete(v.key),g&&i.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(lh(i,a))}}function Yl(e,t,n,r){var o=[],a;a=b2;var i=new Set(e.filter(function(d){var f=!!mn(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,v=s.get(m);v||(v=new Set,s.set(m,v)),v.add(f),c=Math.max(c,m)}),_e(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=y2(i,s,c,a):u=C2(i,t.halfCheckedKeys,s,c,a),u}const S2=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},St(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},St(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},St(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Eo(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${X(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
+ ${n}:not(${n}-disabled),
+ ${t}:not(${t}-disabled)
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
+ ${n}-checked:not(${n}-disabled),
+ ${t}-checked:not(${t}-disabled)
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function sh(e,t){const n=st(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[S2(n)]}It("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[sh(n,e)]});const ch=l.createContext({}),x2=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"}}}},$2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},w2=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},ec=(e,t)=>w2(e,t),E2=(e,t,n)=>({[`@media (min-width: ${X(t)})`]:Object.assign({},ec(e,n))}),I2=()=>({}),O2=()=>({}),R2=It("Grid",x2,I2),P2=It("Grid",e=>{const t=st(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[$2(t),ec(t,""),ec(t,"-xs"),Object.keys(n).map(r=>E2(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},O2);var N2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=l.useContext(je),{gutter:o,wrap:a}=l.useContext(ch),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:m,children:v,flex:h,style:p}=e,g=N2(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",i),[y,b,S]=P2(C),$={};let x={};M2.forEach(w=>{let R={};const N=e[w];typeof N=="number"?R.span=N:typeof N=="object"&&(R=N||{}),delete g[w],x=Object.assign(Object.assign({},x),{[`${C}-${w}-${R.span}`]:R.span!==void 0,[`${C}-${w}-order-${R.order}`]:R.order||R.order===0,[`${C}-${w}-offset-${R.offset}`]:R.offset||R.offset===0,[`${C}-${w}-push-${R.push}`]:R.push||R.push===0,[`${C}-${w}-pull-${R.pull}`]:R.pull||R.pull===0,[`${C}-rtl`]:r==="rtl"}),R.flex&&(x[`${C}-${w}-flex`]=!0,$[`--${C}-${w}-flex`]=Vf(R.flex))});const E=V(C,{[`${C}-${s}`]:s!==void 0,[`${C}-order-${c}`]:c,[`${C}-offset-${u}`]:u,[`${C}-push-${d}`]:d,[`${C}-pull-${f}`]:f},m,x,b,S),I={};if(o&&o[0]>0){const w=o[0]/2;I.paddingLeft=w,I.paddingRight=w}return h&&(I.flex=Vf(h),a===!1&&!I.minWidth&&(I.minWidth=0)),y(l.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},I),p),$),className:E,ref:t}),v))});mu.displayName="Col";var T2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{o()},[JSON.stringify(e),t]),n}const uh=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:c=0,wrap:u}=e,d=T2(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=l.useContext(je),[v,h]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=Kf(o,p),y=Kf(r,p),b=l.useRef(c),S=YE();l.useEffect(()=>{const P=S.subscribe(D=>{g(D);const z=b.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&h(D)});return()=>S.unsubscribe(P)},[]);const $=()=>{const P=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((z,L)=>{if(typeof z=="object")for(let _=0;_0?R[0]/-2:void 0;M&&(T.marginLeft=M,T.marginRight=M);const[O,F]=R;T.rowGap=F;const j=l.useMemo(()=>({gutter:[O,F],wrap:u}),[O,F,u]);return E(l.createElement(ch.Provider,{value:j},l.createElement("div",Object.assign({},d,{className:N,style:Object.assign(Object.assign({},T),i),ref:t}),s)))});uh.displayName="Row";var dh=q.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,a=e.style,i=e.children,s=e.isActive,c=e.role,u=q.useState(s||r),d=U(u,2),f=d[0],m=d[1];return q.useEffect(function(){(r||s)&&m(!0)},[r,s]),f?q.createElement("div",{ref:t,className:V("".concat(n,"-content"),A(A({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:a,role:c},q.createElement("div",{className:"".concat(n,"-content-box")},i)):null});dh.displayName="PanelContent";var A2=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],fh=q.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,a=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,m=e.panelKey,v=e.extra,h=e.header,p=e.expandIcon,g=e.openMotion,C=e.destroyInactivePanel,y=e.children,b=We(e,A2),S=d==="disabled",$=d==="header",x=d==="icon",E=v!=null&&typeof v!="boolean",I=function(){i==null||i(m)},w=function(F){(F.key==="Enter"||F.keyCode===le.ENTER||F.which===le.ENTER)&&I()},R=typeof p=="function"?p(e):q.createElement("i",{className:"arrow"});R&&(R=q.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?I:void 0},R));var N=V(A(A(A({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),S),c),T=V(o,A(A(A({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),$),"".concat(u,"-icon-collapsible-only"),x)),M={className:T,"aria-expanded":a,"aria-disabled":S,onKeyDown:w};return!$&&!x&&(M.onClick=I,M.role=f?"tab":"button",M.tabIndex=S?-1:0),q.createElement("div",fe({},b,{ref:t,className:N}),q.createElement("div",M,r&&R,q.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?I:void 0},h),E&&q.createElement("div",{className:"".concat(u,"-extra")},v)),q.createElement(Kn,fe({visible:a,leavedClassName:"".concat(u,"-content-hidden")},g,{forceRender:s,removeOnLeave:C}),function(O,F){var j=O.className,P=O.style;return q.createElement(dh,{ref:F,prefixCls:u,className:j,style:P,isActive:a,forceRender:s,role:f?"tabpanel":void 0},y)}))}),D2=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],j2=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var v=f.children,h=f.label,p=f.key,g=f.collapsible,C=f.onItemClick,y=f.destroyInactivePanel,b=We(f,D2),S=String(p??m),$=g??a,x=y??i,E=function(R){$!=="disabled"&&(s(R),C==null||C(R))},I=!1;return o?I=c[0]===S:I=c.indexOf(S)>-1,q.createElement(fh,fe({},b,{prefixCls:r,key:S,panelKey:S,isActive:I,accordion:o,openMotion:u,expandIcon:d,header:h,collapsible:$,onItemClick:E,destroyInactivePanel:x}),v)})},F2=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),v=t.props,h=v.header,p=v.headerClass,g=v.destroyInactivePanel,C=v.collapsible,y=v.onItemClick,b=!1;a?b=u[0]===m:b=u.indexOf(m)>-1;var S=C??i,$=function(I){S!=="disabled"&&(c(I),y==null||y(I))},x={key:m,panelKey:m,header:h,headerClass:p,isActive:b,prefixCls:o,destroyInactivePanel:g??s,openMotion:d,accordion:a,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(E){typeof x[E]>"u"&&delete x[E]}),q.cloneElement(t,x))};function _2(e,t,n){return Array.isArray(e)?j2(e,n):sn(t).map(function(r,o){return F2(r,o,n)})}function L2(e){var t=e;if(!Array.isArray(t)){var n=De(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var z2=q.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,v=e.activeKey,h=e.defaultActiveKey,p=e.onChange,g=e.items,C=V(r,c),y=Kt([],{value:v,onChange:function(w){return p==null?void 0:p(w)},defaultValue:h,postState:L2}),b=U(y,2),S=b[0],$=b[1],x=function(w){return $(function(){if(s)return S[0]===w?[]:[w];var R=S.indexOf(w),N=R>-1;return N?S.filter(function(T){return T!==w}):[].concat(ue(S),[w])})};_e(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=_2(g,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:a,onItemClick:x,activeKey:S});return q.createElement("div",fe({ref:t,className:C,style:i,role:s?"tablist":void 0},xn(e,{aria:!0,data:!0})),E)});const vu=Object.assign(z2,{Panel:fh});vu.Panel;const B2=l.forwardRef((e,t)=>{vt("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');const{getPrefixCls:n}=l.useContext(je),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=V({[`${i}-no-arrow`]:!a},o);return l.createElement(vu.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),k2=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:v,colorTextDisabled:h,fontSizeLG:p,lineHeight:g,lineHeightLG:C,marginSM:y,paddingSM:b,paddingLG:S,paddingXS:$,motionDurationSlow:x,fontSizeIcon:E,contentPadding:I,fontHeight:w,fontHeightLG:R}=e,N=`${X(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},St(e)),{backgroundColor:o,border:N,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:last-child":{[`
+ &,
+ & > ${t}-header`]:{borderRadius:`0 0 ${X(c)} ${X(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:v,lineHeight:g,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:w,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},wo()),{fontSize:E,transition:`transform ${x}`,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:N,[`& > ${t}-content-box`]:{padding:I},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:p,lineHeight:C,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:R,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${X(c)} ${X(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},H2=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},V2=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
+ > ${t}-item:last-child,
+ > ${t}-item:last-child ${t}-header
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},K2=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},W2=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),G2=It("Collapse",e=>{const t=st(e,{collapseHeaderPaddingSM:`${X(e.paddingXS)} ${X(e.paddingSM)}`,collapseHeaderPaddingLG:`${X(e.padding)} ${X(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[k2(t),V2(t),K2(t),H2(t),tl(t)]},W2),mh=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=l.useContext(je),{prefixCls:a,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:m="start",children:v,expandIcon:h}=e,p=Mn(N=>{var T;return(T=f??N)!==null&&T!==void 0?T:"middle"}),g=n("collapse",a),C=n(),[y,b,S]=G2(g);vt("Collapse")(m!=="left"&&m!=="right","deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");const $=l.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=h??(o==null?void 0:o.expandIcon),E=l.useCallback(function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const T=typeof x=="function"?x(N):l.createElement(pa,{rotate:N.isActive?90:void 0});return tn(T,()=>{var M;return{className:V((M=T==null?void 0:T.props)===null||M===void 0?void 0:M.className,`${g}-arrow`)}})},[x,g]),I=V(`${g}-icon-position-${$}`,{[`${g}-borderless`]:!u,[`${g}-rtl`]:r==="rtl",[`${g}-ghost`]:!!d,[`${g}-${p}`]:p!=="middle"},o==null?void 0:o.className,i,s,b,S),w=Object.assign(Object.assign({},da(C)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),R=l.useMemo(()=>v?sn(v).map((N,T)=>{var M,O;if(!((M=N.props)===null||M===void 0)&&M.disabled){const F=(O=N.key)!==null&&O!==void 0?O:String(T),{disabled:j,collapsible:P}=N.props,D=Object.assign(Object.assign({},kt(N.props,["disabled"])),{key:F,collapsible:P??(j?"disabled":void 0)});return tn(N,D)}return N}):null,[v]);return y(l.createElement(vu,Object.assign({ref:t,openMotion:w},kt(e,["rootClassName"]),{expandIcon:E,prefixCls:g,className:I,style:Object.assign(Object.assign({},o==null?void 0:o.style),c)}),R))});mh.displayName="Collapse";const hM=Object.assign(mh,{Panel:B2}),q2=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},St(e)),{borderBlockStart:`${X(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${X(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${X(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${X(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${X(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${X(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},U2=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),X2=It("Divider",e=>{const t=st(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[q2(t)]},U2,{unitless:{orientationMargin:!0}});var Y2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(je),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,plain:m,style:v}=e,h=Y2(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),p=t("divider",o),[g,C,y]=X2(p),b=!!d,S=i==="left"&&s!=null,$=i==="right"&&s!=null,x=V(p,r==null?void 0:r.className,C,y,`${p}-${a}`,{[`${p}-with-text`]:b,[`${p}-with-text-${i}`]:b,[`${p}-dashed`]:!!f,[`${p}-plain`]:!!m,[`${p}-rtl`]:n==="rtl",[`${p}-no-default-orientation-margin-left`]:S,[`${p}-no-default-orientation-margin-right`]:$},c,u),E=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),I=Object.assign(Object.assign({},S&&{marginLeft:E}),$&&{marginRight:E});return vt("Divider")(!d||a!=="vertical","usage","`children` not working in `vertical` mode."),g(l.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},h,{role:"separator"}),d&&a!=="vertical"&&l.createElement("span",{className:`${p}-inner-text`,style:I},d)))};Q2.displayName="Divider";var Z2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},J2=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:Z2}))},vh=l.forwardRef(J2);vh.displayName="UpOutlined";function tc(){return typeof BigInt=="function"}function gh(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function _r(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function gu(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Ar(e){var t=String(e);if(gu(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&pu(t)?t.length-t.indexOf(".")-1:0}function dl(e){var t=String(e);if(gu(e)){if(e>Number.MAX_SAFE_INTEGER)return String(tc()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":_r("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),tR=function(){function e(t){if(At(this,e),A(this,"origin",""),A(this,"number",void 0),A(this,"empty",void 0),gh(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Dt(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":dl(this.number):this.origin}}]),e}();function Fn(e){return tc()?new eR(e):new tR(e)}function hi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=_r(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(a).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=Fn(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return hi(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function nR(e){return!!(e.addonBefore||e.addonAfter)}function rR(e){return!!(e.prefix||e.suffix||e.allowClear)}function Wf(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function ji(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Wf(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Wf(t,e,r),n(o);return}n(o)}}function ph(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var hu=q.forwardRef(function(e,t){var n,r,o=e.inputElement,a=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,v=e.disabled,h=e.readOnly,p=e.focused,g=e.triggerFocus,C=e.allowClear,y=e.value,b=e.handleReset,S=e.hidden,$=e.classes,x=e.classNames,E=e.dataAttrs,I=e.styles,w=e.components,R=a??o,N=(w==null?void 0:w.affixWrapper)||"span",T=(w==null?void 0:w.groupWrapper)||"span",M=(w==null?void 0:w.wrapper)||"span",O=(w==null?void 0:w.groupAddon)||"span",F=l.useRef(null),j=function(ee){var oe;(oe=F.current)!==null&&oe!==void 0&&oe.contains(ee.target)&&(g==null||g())},P=rR(e),D=l.cloneElement(R,{value:y,className:V(R.props.className,!P&&(x==null?void 0:x.variant))||null}),z=l.useRef(null);if(q.useImperativeHandle(t,function(){return{nativeElement:z.current||F.current}}),P){var L,_=null;if(C){var B,H=!v&&!h&&y,K="".concat(i,"-clear-icon"),G=De(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";_=q.createElement("span",{onClick:b,onMouseDown:function(ee){return ee.preventDefault()},className:V(K,(B={},A(B,"".concat(K,"-hidden"),!H),A(B,"".concat(K,"-has-suffix"),!!c),B)),role:"button",tabIndex:-1},G)}var te="".concat(i,"-affix-wrapper"),Y=V(te,(L={},A(L,"".concat(i,"-disabled"),v),A(L,"".concat(te,"-disabled"),v),A(L,"".concat(te,"-focused"),p),A(L,"".concat(te,"-readonly"),h),A(L,"".concat(te,"-input-with-clear-btn"),c&&C&&y),L),$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),Q=(c||C)&&q.createElement("span",{className:V("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:I==null?void 0:I.suffix},_,c);D=q.createElement(N,fe({className:Y,style:I==null?void 0:I.affixWrapper,onClick:j},E==null?void 0:E.affixWrapper,{ref:F}),s&&q.createElement("span",{className:V("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:I==null?void 0:I.prefix},s),D,Q)}if(nR(e)){var ie="".concat(i,"-group"),Z="".concat(ie,"-addon"),J="".concat(ie,"-wrapper"),ne=V("".concat(i,"-wrapper"),ie,$==null?void 0:$.wrapper,x==null?void 0:x.wrapper),re=V(J,A({},"".concat(J,"-disabled"),v),$==null?void 0:$.group,x==null?void 0:x.groupWrapper);D=q.createElement(T,{className:re,ref:z},q.createElement(M,{className:ne},u&&q.createElement(O,{className:Z},u),D,d&&q.createElement(O,{className:Z},d)))}return q.cloneElement(D,{className:V((n=D.props)===null||n===void 0?void 0:n.className,f)||null,style:k(k({},(r=D.props)===null||r===void 0?void 0:r.style),m),hidden:S})}),oR=["show"];function hh(e,t){return l.useMemo(function(){var n={};t&&(n.show=De(t)==="object"&&t.formatter?t.formatter:!!t),n=k(k({},n),e);var r=n,o=r.show,a=We(r,oR);return k(k({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var aR=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],iR=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,v=e.maxLength,h=e.suffix,p=e.showCount,g=e.count,C=e.type,y=C===void 0?"text":C,b=e.classes,S=e.classNames,$=e.styles,x=e.onCompositionStart,E=e.onCompositionEnd,I=We(e,aR),w=l.useState(!1),R=U(w,2),N=R[0],T=R[1],M=l.useRef(!1),O=l.useRef(null),F=l.useRef(null),j=function(ce){O.current&&ph(O.current,ce)},P=Kt(e.defaultValue,{value:e.value}),D=U(P,2),z=D[0],L=D[1],_=z==null?"":String(z),B=l.useState(null),H=U(B,2),K=H[0],G=H[1],te=hh(g,p),Y=te.max||v,Q=te.strategy(_),ie=!!Y&&Q>Y;l.useImperativeHandle(t,function(){var ae;return{focus:j,blur:function(){var we;(we=O.current)===null||we===void 0||we.blur()},setSelectionRange:function(we,ye,me){var be;(be=O.current)===null||be===void 0||be.setSelectionRange(we,ye,me)},select:function(){var we;(we=O.current)===null||we===void 0||we.select()},input:O.current,nativeElement:((ae=F.current)===null||ae===void 0?void 0:ae.nativeElement)||O.current}}),l.useEffect(function(){T(function(ae){return ae&&d?!1:ae})},[d]);var Z=function(ce,we,ye){var me=we;if(!M.current&&te.exceedFormatter&&te.max&&te.strategy(we)>te.max){if(me=te.exceedFormatter(we,{max:te.max}),we!==me){var be,xe;G([((be=O.current)===null||be===void 0?void 0:be.selectionStart)||0,((xe=O.current)===null||xe===void 0?void 0:xe.selectionEnd)||0])}}else if(ye.source==="compositionEnd")return;L(me),O.current&&ji(O.current,ce,r,me)};l.useEffect(function(){if(K){var ae;(ae=O.current)===null||ae===void 0||ae.setSelectionRange.apply(ae,ue(K))}},[K]);var J=function(ce){Z(ce,ce.target.value,{source:"change"})},ne=function(ce){M.current=!1,Z(ce,ce.currentTarget.value,{source:"compositionEnd"}),E==null||E(ce)},re=function(ce){i&&ce.key==="Enter"&&i(ce),s==null||s(ce)},W=function(ce){T(!0),o==null||o(ce)},ee=function(ce){T(!1),a==null||a(ce)},oe=function(ce){L(""),j(),O.current&&ji(O.current,ce,r)},he=ie&&"".concat(u,"-out-of-range"),Ce=function(){var ce=kt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return q.createElement("input",fe({autoComplete:n},ce,{onChange:J,onFocus:W,onBlur:ee,onKeyDown:re,className:V(u,A({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:O,size:f,type:y,onCompositionStart:function(ye){M.current=!0,x==null||x(ye)},onCompositionEnd:ne}))},de=function(){var ce=Number(Y)>0;if(h||te.show){var we=te.showFormatter?te.showFormatter({value:_,count:Q,maxLength:Y}):"".concat(Q).concat(ce?" / ".concat(Y):"");return q.createElement(q.Fragment,null,te.show&&q.createElement("span",{className:V("".concat(u,"-show-count-suffix"),A({},"".concat(u,"-show-count-has-suffix"),!!h),S==null?void 0:S.count),style:k({},$==null?void 0:$.count)},we),h)}return null};return q.createElement(hu,fe({},I,{prefixCls:u,className:V(m,he),handleReset:oe,value:_,focused:N,triggerFocus:j,suffix:de(),disabled:d,classes:b,classNames:S,styles:$}),Ce())});function lR(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var a=r[o];return typeof a=="function"?a.bind(r):a}}):e}function sR(e,t){var n=l.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,a),u=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=a.length;if(a.endsWith(c))d=a.length-n.current.afterTxt.length;else if(a.startsWith(s))d=s.length;else{var f=s[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(v){_e(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var cR=function(){var t=l.useState(!1),n=U(t,2),r=n[0],o=n[1];return ft(function(){o(Bc())},[]),r},uR=200,dR=600;function fR(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(b,S){b.preventDefault(),d(),u.current(S);function $(){u.current(S),s.current=setTimeout($,uR)}s.current=setTimeout($,dR)};l.useEffect(function(){return function(){d(),c.current.forEach(function(y){return ut.cancel(y)})}},[]);var m=cR();if(m)return null;var v="".concat(t,"-handler"),h=V(v,"".concat(v,"-up"),A({},"".concat(v,"-up-disabled"),o)),p=V(v,"".concat(v,"-down"),A({},"".concat(v,"-down-disabled"),a)),g=function(){return c.current.push(ut(d))},C={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return l.createElement("div",{className:"".concat(v,"-wrap")},l.createElement("span",fe({},C,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",fe({},C,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:p}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Gf(e){var t=typeof e=="number"?dl(e):_r(e).fullStr,n=t.includes(".");return n?_r(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const mR=function(){var e=l.useRef(0),t=function(){ut.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=ut(function(){n()})}};var vR=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],gR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],qf=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Uf=function(t){var n=Fn(t);return n.isInvalidate()?null:n},pR=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,v=e.upHandler,h=e.downHandler,p=e.keyboard,g=e.changeOnWheel,C=g===void 0?!1:g,y=e.controls,b=y===void 0?!0:y;e.classNames;var S=e.stringMode,$=e.parser,x=e.formatter,E=e.precision,I=e.decimalSeparator,w=e.onChange,R=e.onInput,N=e.onPressEnter,T=e.onStep,M=e.changeOnBlur,O=M===void 0?!0:M,F=e.domRef,j=We(e,vR),P="".concat(n,"-input"),D=l.useRef(null),z=l.useState(!1),L=U(z,2),_=L[0],B=L[1],H=l.useRef(!1),K=l.useRef(!1),G=l.useRef(!1),te=l.useState(function(){return Fn(d??u)}),Y=U(te,2),Q=Y[0],ie=Y[1];function Z(Me){d===void 0&&ie(Me)}var J=l.useCallback(function(Me,Se){if(!Se)return E>=0?E:Math.max(Ar(Me),Ar(c))},[E,c]),ne=l.useCallback(function(Me){var Se=String(Me);if($)return $(Se);var Oe=Se;return I&&(Oe=Oe.replace(I,".")),Oe.replace(/[^\w.-]+/g,"")},[$,I]),re=l.useRef(""),W=l.useCallback(function(Me,Se){if(x)return x(Me,{userTyping:Se,input:String(re.current)});var Oe=typeof Me=="number"?dl(Me):Me;if(!Se){var ve=J(Oe,Se);if(pu(Oe)&&(I||ve>=0)){var ze=I||".";Oe=hi(Oe,ze,ve)}}return Oe},[x,J,I]),ee=l.useState(function(){var Me=u??d;return Q.isInvalidate()&&["string","number"].includes(De(Me))?Number.isNaN(Me)?"":Me:W(Q.toString(),!1)}),oe=U(ee,2),he=oe[0],Ce=oe[1];re.current=he;function de(Me,Se){Ce(W(Me.isInvalidate()?Me.toString(!1):Me.toString(!Se),Se))}var ae=l.useMemo(function(){return Uf(i)},[i,E]),ce=l.useMemo(function(){return Uf(a)},[a,E]),we=l.useMemo(function(){return!ae||!Q||Q.isInvalidate()?!1:ae.lessEquals(Q)},[ae,Q]),ye=l.useMemo(function(){return!ce||!Q||Q.isInvalidate()?!1:Q.lessEquals(ce)},[ce,Q]),me=sR(D.current,_),be=U(me,2),xe=be[0],Be=be[1],ke=function(Se){return ae&&!Se.lessEquals(ae)?ae:ce&&!ce.lessEquals(Se)?ce:null},Ee=function(Se){return!ke(Se)},$e=function(Se,Oe){var ve=Se,ze=Ee(ve)||ve.isEmpty();if(!ve.isEmpty()&&!Oe&&(ve=ke(ve)||ve,ze=!0),!m&&!f&&ze){var Ne=ve.toString(),ge=J(Ne,Oe);return ge>=0&&(ve=Fn(hi(Ne,".",ge)),Ee(ve)||(ve=Fn(hi(Ne,".",ge,!0)))),ve.equals(Q)||(Z(ve),w==null||w(ve.isEmpty()?null:qf(S,ve)),d===void 0&&de(ve,Oe)),ve}return Q},Ue=mR(),He=function Me(Se){if(xe(),re.current=Se,Ce(Se),!K.current){var Oe=ne(Se),ve=Fn(Oe);ve.isNaN()||$e(ve,!0)}R==null||R(Se),Ue(function(){var ze=Se;$||(ze=Se.replace(/。/g,".")),ze!==Se&&Me(ze)})},tt=function(){K.current=!0},dt=function(){K.current=!1,He(D.current.value)},mt=function(Se){He(Se.target.value)},Ve=function(Se){var Oe;if(!(Se&&we||!Se&&ye)){H.current=!1;var ve=Fn(G.current?Gf(c):c);Se||(ve=ve.negate());var ze=(Q||Fn(0)).add(ve.toString()),Ne=$e(ze,!1);T==null||T(qf(S,Ne),{offset:G.current?Gf(c):c,type:Se?"up":"down"}),(Oe=D.current)===null||Oe===void 0||Oe.focus()}},nt=function(Se){var Oe=Fn(ne(he)),ve;Oe.isNaN()?ve=$e(Q,Se):ve=$e(Oe,Se),d!==void 0?de(Q,!1):ve.isNaN()||de(ve,!1)},et=function(){H.current=!0},pt=function(Se){var Oe=Se.key,ve=Se.shiftKey;H.current=!0,G.current=ve,Oe==="Enter"&&(K.current||(H.current=!1),nt(!1),N==null||N(Se)),p!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Oe)&&(Ve(Oe==="Up"||Oe==="ArrowUp"),Se.preventDefault())},ct=function(){H.current=!1,G.current=!1};l.useEffect(function(){if(C&&_){var Me=function(ve){Ve(ve.deltaY<0),ve.preventDefault()},Se=D.current;if(Se)return Se.addEventListener("wheel",Me,{passive:!1}),function(){return Se.removeEventListener("wheel",Me)}}});var yt=function(){O&&nt(!1),B(!1),H.current=!1};return Uo(function(){Q.isInvalidate()||de(Q,!1)},[E,x]),Uo(function(){var Me=Fn(d);ie(Me);var Se=Fn(ne(he));(!Me.equals(Se)||!H.current||x)&&de(Me,H.current)},[d]),Uo(function(){x&&Be()},[he]),l.createElement("div",{ref:F,className:V(n,r,A(A(A(A(A({},"".concat(n,"-focused"),_),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Q.isNaN()),"".concat(n,"-out-of-range"),!Q.isInvalidate()&&!Ee(Q))),style:o,onFocus:function(){B(!0)},onBlur:yt,onKeyDown:pt,onKeyUp:ct,onCompositionStart:tt,onCompositionEnd:dt,onBeforeInput:et},b&&l.createElement(fR,{prefixCls:n,upNode:v,downNode:h,upDisabled:we,downDisabled:ye,onStep:Ve}),l.createElement("div",{className:"".concat(P,"-wrap")},l.createElement("input",fe({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:c},j,{ref:vn(D,t),className:P,value:he,onChange:mt,disabled:f,readOnly:m}))))}),bh=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,v=We(e,gR),h=l.useRef(null),p=l.useRef(null),g=l.useRef(null),C=function(b){g.current&&ph(g.current,b)};return l.useImperativeHandle(t,function(){return lR(g.current,{nativeElement:h.current.nativeElement||p.current})}),l.createElement(hu,{className:f,triggerFocus:C,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},l.createElement(pR,fe({prefixCls:a,disabled:n,ref:g,domRef:p,className:m==null?void 0:m.input},v)))});bh.displayName="InputNumber";const hR=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},uu(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Rt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},Xf=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},bR=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:s,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:m,colorTextDescription:v,motionDurationMid:h,handleHoverColor:p,paddingInline:g,paddingBlock:C,handleBg:y,handleActiveBg:b,colorTextDisabled:S,borderRadiusSM:$,borderRadiusLG:x,controlWidth:E,handleOpacity:I,handleBorderColor:w,filledHandleBg:R,lineHeightLG:N,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},St(e)),ul(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),Up(e,{[`${t}-handler-wrap`]:{background:y,[`${t}-handler-down`]:{borderBlockStart:`${X(n)} ${r} ${w}`}}})),Zp(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${X(n)} ${r} ${w}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:y}}})),Yp(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:N,borderRadius:x,[`input${t}-input`]:{height:T(i).sub(T(n).mul(2)).equal(),padding:`${X(f)} ${X(m)}`}},"&-sm":{padding:0,borderRadius:$,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${X(d)} ${X(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},St(e)),rh(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:x,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}},Xp(e)),Jp(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},St(e)),{width:"100%",padding:`${X(C)} ${X(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),eh(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:I,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
+ ${t}-handler-up-inner,
+ ${t}-handler-down-inner
+ `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${X(n)} ${r} ${w}`,transition:`all ${h} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
+ ${t}-handler-up-inner,
+ ${t}-handler-down-inner
+ `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},wo()),{color:v,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Xf(e,"lg")),Xf(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
+ ${t}-handler-up-disabled,
+ ${t}-handler-down-disabled
+ `]:{cursor:"not-allowed"},[`
+ ${t}-handler-up-disabled:hover &-handler-up-inner,
+ ${t}-handler-down-disabled:hover &-handler-down-inner
+ `]:{color:S}})}]},yR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${X(n)} 0`}},ul(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${X(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${X(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},CR=It("InputNumber",e=>{const t=st(e,cu(e));return[bR(t),yR(t),Qi(t)]},hR,{unitless:{handleOpacity:!0}});var SR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{{const{deprecated:Y}=vt("InputNumber");Y(!("bordered"in e),"bordered","variant")}const{getPrefixCls:n,direction:r}=l.useContext(je),o=l.useRef(null);l.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,bordered:v,readOnly:h,status:p,controls:g,variant:C}=e,y=SR(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),b=n("input-number",u),S=rn(b),[$,x,E]=CR(b,S),{compactSize:I,compactItemClassnames:w}=Po(b,r);let R=l.createElement(vh,{className:`${b}-handler-up-inner`}),N=l.createElement(Xc,{className:`${b}-handler-down-inner`});const T=typeof g=="boolean"?g:void 0;typeof g=="object"&&(R=typeof g.upIcon>"u"?R:l.createElement("span",{className:`${b}-handler-up-inner`},g.upIcon),N=typeof g.downIcon>"u"?N:l.createElement("span",{className:`${b}-handler-down-inner`},g.downIcon));const{hasFeedback:M,status:O,isFormItemInput:F,feedbackIcon:j}=l.useContext(nn),P=Ta(O,p),D=Mn(Y=>{var Q;return(Q=s??I)!==null&&Q!==void 0?Q:Y}),z=l.useContext(Hn),L=c??z,[_,B]=al(C,v),H=M&&l.createElement(l.Fragment,null,j),K=V({[`${b}-lg`]:D==="large",[`${b}-sm`]:D==="small",[`${b}-rtl`]:r==="rtl",[`${b}-in-form-item`]:F},x),G=`${b}-group`,te=l.createElement(bh,Object.assign({ref:o,disabled:L,className:V(E,S,a,i,w),upHandler:R,downHandler:N,prefixCls:b,readOnly:h,controls:T,prefix:m,suffix:H,addonAfter:f&&l.createElement(bo,null,l.createElement(Oi,{override:!0,status:!0},f)),addonBefore:d&&l.createElement(bo,null,l.createElement(Oi,{override:!0,status:!0},d)),classNames:{input:K,variant:V({[`${b}-${_}`]:B},Co(b,P,M)),affixWrapper:V({[`${b}-affix-wrapper-sm`]:D==="small",[`${b}-affix-wrapper-lg`]:D==="large",[`${b}-affix-wrapper-rtl`]:r==="rtl"},x),wrapper:V({[`${G}-rtl`]:r==="rtl"},x),groupWrapper:V({[`${b}-group-wrapper-sm`]:D==="small",[`${b}-group-wrapper-lg`]:D==="large",[`${b}-group-wrapper-rtl`]:r==="rtl",[`${b}-group-wrapper-${_}`]:B},Co(`${b}-group-wrapper`,P,M),x)}},y));return $(te)}),Ch=yh,xR=e=>l.createElement(Wn,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(yh,Object.assign({},e)));Ch.displayName="InputNumber";Ch._InternalPanelDoNotUseOrYouWillBeFired=xR;const $R=e=>{const{getPrefixCls:t,direction:n}=l.useContext(je),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,c]=fu(i),u=V(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),d=l.useContext(nn),f=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return vt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(nn.Provider,{value:f},e.children)))},Sh=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:q.createElement(Oo,null)}),t};function xh(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function wR(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var ER=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:v,className:h,style:p,styles:g,rootClassName:C,onChange:y,classNames:b,variant:S}=e,$=ER(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);{const{deprecated:ee}=vt("Input");ee(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:E,input:I}=q.useContext(je),w=x("input",r),R=l.useRef(null),N=rn(w),[T,M,O]=fu(w,N),{compactSize:F,compactItemClassnames:j}=Po(w,E),P=Mn(ee=>{var oe;return(oe=i??F)!==null&&oe!==void 0?oe:ee}),D=q.useContext(Hn),z=s??D,{status:L,hasFeedback:_,feedbackIcon:B}=l.useContext(nn),H=Ta(L,a),K=wR(e)||!!_,G=l.useRef(K);{const ee=vt("Input");l.useEffect(()=>{var oe;K&&!G.current&&ee(document.activeElement===((oe=R.current)===null||oe===void 0?void 0:oe.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),G.current=K},[K])}const te=xh(R,!0),Y=ee=>{te(),c==null||c(ee)},Q=ee=>{te(),u==null||u(ee)},ie=ee=>{te(),y==null||y(ee)},Z=(_||d)&&q.createElement(q.Fragment,null,d,_&&B),J=ee=>ee&&q.createElement(bo,null,q.createElement(Oi,{override:!0,status:!0},ee)),ne=Sh(f??(I==null?void 0:I.allowClear)),[re,W]=al(S,o);return T(q.createElement(iR,Object.assign({ref:vn(t,R),prefixCls:w,autoComplete:I==null?void 0:I.autoComplete},$,{disabled:z,onBlur:Y,onFocus:Q,style:Object.assign(Object.assign({},I==null?void 0:I.style),p),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),g),suffix:Z,allowClear:ne,className:V(h,C,O,N,j,I==null?void 0:I.className),onChange:ie,addonBefore:J(v),addonAfter:J(m),classNames:Object.assign(Object.assign(Object.assign({},b),I==null?void 0:I.classNames),{input:V({[`${w}-sm`]:P==="small",[`${w}-lg`]:P==="large",[`${w}-rtl`]:E==="rtl"},b==null?void 0:b.input,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.input,M),variant:V({[`${w}-${re}`]:W},Co(w,H)),affixWrapper:V({[`${w}-affix-wrapper-sm`]:P==="small",[`${w}-affix-wrapper-lg`]:P==="large",[`${w}-affix-wrapper-rtl`]:E==="rtl"},M),wrapper:V({[`${w}-group-rtl`]:E==="rtl"},M),groupWrapper:V({[`${w}-group-wrapper-sm`]:P==="small",[`${w}-group-wrapper-lg`]:P==="large",[`${w}-group-wrapper-rtl`]:E==="rtl",[`${w}-group-wrapper-${re}`]:W},Co(`${w}-group-wrapper`,H,_),M)})})))});La.displayName="Input";const OR=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},RR=It(["Input","OTP"],e=>{const t=st(e,cu(e));return[OR(t)]},uu);var PR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:a,mask:i}=e,s=PR(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=h=>{r(a,h.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const f=()=>{ut(()=>{var h;const p=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===p&&p&&p.select()})},m=h=>{let{key:p}=h;p==="ArrowLeft"?o(a-1):p==="ArrowRight"&&o(a+1),f()},v=h=>{h.key==="Backspace"&&!n&&o(a-1),f()};return l.createElement(La,Object.assign({},s,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:m,onKeyUp:v,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var MR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:m,mask:v}=e,h=MR(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);vt("Input.OTP")(!(typeof v=="string"&&v.length>1),"usage","`mask` prop should be a single character.");const{getPrefixCls:p,direction:g}=l.useContext(je),C=p("otp",n),y=xn(h,{aria:!0,data:!0,attr:!0}),b=rn(C),[S,$,x]=RR(C,b),E=Mn(_=>o??_),I=l.useContext(nn),w=Ta(I.status,f),R=l.useMemo(()=>Object.assign(Object.assign({},I),{status:w,hasFeedback:!1,feedbackIcon:null}),[I,w]),N=l.useRef(null),T=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var _;(_=T.current[0])===null||_===void 0||_.focus()},blur:()=>{var _;for(let B=0;Bc?c(_):_,[O,F]=l.useState(ri(M(a||"")));l.useEffect(()=>{i!==void 0&&F(ri(i))},[i]);const j=Vt(_=>{F(_),s&&_.length===r&&_.every(B=>B)&&_.some((B,H)=>O[H]!==B)&&s(_.join(""))}),P=Vt((_,B)=>{let H=ue(O);for(let G=0;G<_;G+=1)H[G]||(H[G]="");B.length<=1?H[_]=B:H=H.slice(0,_).concat(ri(B)),H=H.slice(0,r);for(let G=H.length-1;G>=0&&!H[G];G-=1)H.pop();const K=M(H.map(G=>G||" ").join(""));return H=ri(K).map((G,te)=>G===" "&&!H[te]?H[te]:G),H}),D=(_,B)=>{var H;const K=P(_,B),G=Math.min(_+B.length,r-1);G!==_&&((H=T.current[G])===null||H===void 0||H.focus()),j(K)},z=_=>{var B;(B=T.current[_])===null||B===void 0||B.focus()},L={variant:u,disabled:d,status:w,mask:v};return S(l.createElement("div",Object.assign({},y,{ref:N,className:V(C,{[`${C}-sm`]:E==="small",[`${C}-lg`]:E==="large",[`${C}-rtl`]:g==="rtl"},x,$)}),l.createElement(nn.Provider,{value:R},Array.from({length:r}).map((_,B)=>{const H=`otp-${B}`,K=O[B]||"";return l.createElement(NR,Object.assign({ref:G=>{T.current[B]=G},key:H,index:B,size:E,htmlSize:1,className:`${C}-input`,onChange:D,value:K,onActiveChange:z,autoFocus:B===0&&m},L))}))))});var AR={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"},DR=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:AR}))},$h=l.forwardRef(DR);$h.displayName="EyeInvisibleOutlined";var jR={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"},FR=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:jR}))},wh=l.forwardRef(FR);wh.displayName="EyeOutlined";var _R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?l.createElement(wh,null):l.createElement($h,null),zR={click:"onClick",hover:"onMouseOver"},Eh=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=LR}=e,i=typeof o=="object"&&o.visible!==void 0,[s,c]=l.useState(()=>i?o.visible:!1),u=l.useRef(null);l.useEffect(()=>{i&&c(o.visible)},[i,o]);const d=xh(u),f=()=>{n||(s&&d(),c(I=>{var w;const R=!I;return typeof o=="object"&&((w=o.onVisibleChange)===null||w===void 0||w.call(o,R)),R}))},m=I=>{const w=zR[r]||"",R=a(s),N={[w]:f,className:`${I}-icon`,key:"passwordIcon",onMouseDown:T=>{T.preventDefault()},onMouseUp:T=>{T.preventDefault()}};return l.cloneElement(l.isValidElement(R)?R:l.createElement("span",null,R),N)},{className:v,prefixCls:h,inputPrefixCls:p,size:g}=e,C=_R(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=l.useContext(je),b=y("input",p),S=y("input-password",h),$=o&&m(S),x=V(S,v,{[`${S}-${g}`]:!!g}),E=Object.assign(Object.assign({},kt(C,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:x,prefixCls:b,suffix:$});return g&&(E.size=g),l.createElement(La,Object.assign({ref:vn(t,u)},E))});Eh.displayName="Input.Password";var BR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:h}=e,p=BR(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:C}=l.useContext(je),y=l.useRef(!1),b=g("input-search",n),S=g("input",r),{compactSize:$}=Po(b,C),x=Mn(L=>{var _;return(_=a??$)!==null&&_!==void 0?_:L}),E=l.useRef(null),I=L=>{L&&L.target&&L.type==="click"&&f&&f(L.target.value,L,{source:"clear"}),m&&m(L)},w=L=>{var _;document.activeElement===((_=E.current)===null||_===void 0?void 0:_.input)&&L.preventDefault()},R=L=>{var _,B;f&&f((B=(_=E.current)===null||_===void 0?void 0:_.input)===null||B===void 0?void 0:B.value,L,{source:"input"})},N=L=>{y.current||u||R(L)},T=typeof s=="boolean"?l.createElement(Yc,null):null,M=`${b}-button`;let O;const F=s||{},j=F.type&&F.type.__ANT_BUTTON===!0;j||F.type==="button"?O=tn(F,Object.assign({onMouseDown:w,onClick:L=>{var _,B;(B=(_=F==null?void 0:F.props)===null||_===void 0?void 0:_.onClick)===null||B===void 0||B.call(_,L),R(L)},key:"enterButton"},j?{className:M,size:x}:{})):O=l.createElement(sr,{className:M,type:s?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:w,onClick:R,loading:u,icon:T},s),c&&(O=[O,tn(c,{key:"addonAfter"})]);const P=V(b,{[`${b}-rtl`]:C==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!s},o),D=L=>{y.current=!0,v==null||v(L)},z=L=>{y.current=!1,h==null||h(L)};return l.createElement(La,Object.assign({ref:vn(E,t),onPressEnter:N},p,{size:x,onCompositionStart:D,onCompositionEnd:z,prefixCls:S,addonAfter:O,suffix:i,onChange:I,className:P,disabled:d}))});Ih.displayName="Search";var kR=`
+ min-height:0 !important;
+ max-height:none !important;
+ height:0 !important;
+ visibility:hidden !important;
+ overflow:hidden !important;
+ position:absolute !important;
+ z-index:-1000 !important;
+ top:0 !important;
+ right:0 !important;
+ pointer-events: none !important;
+`,HR=["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"],Ql={},Rn;function VR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ql[n])return Ql[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=HR.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Ql[n]=c),c}function KR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Rn||(Rn=document.createElement("textarea"),Rn.setAttribute("tab-index","-1"),Rn.setAttribute("aria-hidden","true"),document.body.appendChild(Rn)),e.getAttribute("wrap")?Rn.setAttribute("wrap",e.getAttribute("wrap")):Rn.removeAttribute("wrap");var o=VR(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,c=o.sizingStyle;Rn.setAttribute("style","".concat(c,";").concat(kR)),Rn.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Rn.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){Rn.value=" ";var v=Rn.scrollHeight-a;n!==null&&(u=v*n,s==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=v*r,s==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var WR=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Zl=0,Jl=1,es=2,GR=l.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=We(n,WR),v=Kt(o,{value:a,postState:function(K){return K??""}}),h=U(v,2),p=h[0],g=h[1],C=function(K){g(K.target.value),f==null||f(K)},y=l.useRef();l.useImperativeHandle(t,function(){return{textArea:y.current}});var b=l.useMemo(function(){return i&&De(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=U(b,2),$=S[0],x=S[1],E=!!i,I=function(){try{if(document.activeElement===y.current){var K=y.current,G=K.selectionStart,te=K.selectionEnd,Y=K.scrollTop;y.current.setSelectionRange(G,te),y.current.scrollTop=Y}}catch{}},w=l.useState(es),R=U(w,2),N=R[0],T=R[1],M=l.useState(),O=U(M,2),F=O[0],j=O[1],P=function(){T(Zl)};ft(function(){E&&P()},[a,$,x,E]),ft(function(){if(N===Zl)T(Jl);else if(N===Jl){var H=KR(y.current,!1,$,x);T(es),j(H)}else I()},[N]);var D=l.useRef(),z=function(){ut.cancel(D.current)},L=function(K){N===es&&(s==null||s(K),i&&(z(),D.current=ut(function(){P()})))};l.useEffect(function(){return z},[]);var _=E?F:null,B=k(k({},u),_);return(N===Zl||N===Jl)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(dr,{onResize:L,disabled:!(i||s)},l.createElement("textarea",fe({},m,{ref:y,style:B,className:V(r,c,A({},"".concat(r,"-disabled"),d)),disabled:d,value:p,onChange:C})))}),qR=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],UR=q.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,p=e.showCount,g=e.count,C=e.className,y=e.style,b=e.disabled,S=e.hidden,$=e.classNames,x=e.styles,E=e.onResize,I=e.readOnly,w=We(e,qR),R=Kt(r,{value:o,defaultValue:r}),N=U(R,2),T=N[0],M=N[1],O=T==null?"":String(T),F=q.useState(!1),j=U(F,2),P=j[0],D=j[1],z=q.useRef(!1),L=q.useState(null),_=U(L,2),B=_[0],H=_[1],K=l.useRef(null),G=l.useRef(null),te=function(){var $e;return($e=G.current)===null||$e===void 0?void 0:$e.textArea},Y=function(){te().focus()};l.useImperativeHandle(t,function(){var Ee;return{resizableTextArea:G.current,focus:Y,blur:function(){te().blur()},nativeElement:((Ee=K.current)===null||Ee===void 0?void 0:Ee.nativeElement)||te()}}),l.useEffect(function(){D(function(Ee){return!b&&Ee})},[b]);var Q=q.useState(null),ie=U(Q,2),Z=ie[0],J=ie[1];q.useEffect(function(){if(Z){var Ee;(Ee=te()).setSelectionRange.apply(Ee,ue(Z))}},[Z]);var ne=hh(g,p),re=(n=ne.max)!==null&&n!==void 0?n:u,W=Number(re)>0,ee=ne.strategy(O),oe=!!re&&ee>re,he=function($e,Ue){var He=Ue;!z.current&&ne.exceedFormatter&&ne.max&&ne.strategy(Ue)>ne.max&&(He=ne.exceedFormatter(Ue,{max:ne.max}),Ue!==He&&J([te().selectionStart||0,te().selectionEnd||0])),M(He),ji($e.currentTarget,$e,s,He)},Ce=function($e){z.current=!0,d==null||d($e)},de=function($e){z.current=!1,he($e,$e.currentTarget.value),f==null||f($e)},ae=function($e){he($e,$e.target.value)},ce=function($e){var Ue=w.onPressEnter,He=w.onKeyDown;$e.key==="Enter"&&Ue&&Ue($e),He==null||He($e)},we=function($e){D(!0),a==null||a($e)},ye=function($e){D(!1),i==null||i($e)},me=function($e){M(""),Y(),ji(te(),$e,s)},be=m,xe;ne.show&&(ne.showFormatter?xe=ne.showFormatter({value:O,count:ee,maxLength:re}):xe="".concat(ee).concat(W?" / ".concat(re):""),be=q.createElement(q.Fragment,null,be,q.createElement("span",{className:V("".concat(h,"-data-count"),$==null?void 0:$.count),style:x==null?void 0:x.count},xe)));var Be=function($e){var Ue;E==null||E($e),(Ue=te())!==null&&Ue!==void 0&&Ue.style.height&&H(!0)},ke=!w.autoSize&&!p&&!c;return q.createElement(hu,{ref:K,value:O,allowClear:c,handleReset:me,suffix:be,prefixCls:h,classNames:k(k({},$),{},{affixWrapper:V($==null?void 0:$.affixWrapper,A(A({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),c))}),disabled:b,focused:P,className:V(C,oe&&"".concat(h,"-out-of-range")),style:k(k({},y),B&&!ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:S,readOnly:I},q.createElement(GR,fe({},w,{maxLength:u,onKeyDown:ce,onChange:ae,onFocus:we,onBlur:ye,onCompositionStart:Ce,onCompositionEnd:de,className:V($==null?void 0:$.textarea),style:k(k({},x==null?void 0:x.textarea),{},{resize:y==null?void 0:y.resize}),disabled:b,prefixCls:h,onResize:Be,ref:G,readOnly:I})))}),XR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:m,style:v,styles:h,variant:p}=e,g=XR(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);{const{deprecated:L}=vt("TextArea");L(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:y,textArea:b}=l.useContext(je),S=Mn(i),$=l.useContext(Hn),x=s??$,{status:E,hasFeedback:I,feedbackIcon:w}=l.useContext(nn),R=Ta(E,c),N=l.useRef(null);l.useImperativeHandle(t,()=>{var L;return{resizableTextArea:(L=N.current)===null||L===void 0?void 0:L.resizableTextArea,focus:_=>{var B,H;IR((H=(B=N.current)===null||B===void 0?void 0:B.resizableTextArea)===null||H===void 0?void 0:H.textArea,_)},blur:()=>{var _;return(_=N.current)===null||_===void 0?void 0:_.blur()}}});const T=C("input",o),M=rn(T),[O,F,j]=fu(T,M),[P,D]=al(p,a),z=Sh(u??(b==null?void 0:b.allowClear));return O(l.createElement(UR,Object.assign({autoComplete:b==null?void 0:b.autoComplete},g,{style:Object.assign(Object.assign({},b==null?void 0:b.style),v),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),h),disabled:x,allowClear:z,className:V(j,M,m,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},d),b==null?void 0:b.classNames),{textarea:V({[`${T}-sm`]:S==="small",[`${T}-lg`]:S==="large"},F,d==null?void 0:d.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:V({[`${T}-${P}`]:D},Co(T,R)),affixWrapper:V(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:y==="rtl",[`${T}-affix-wrapper-sm`]:S==="small",[`${T}-affix-wrapper-lg`]:S==="large",[`${T}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},F)}),prefixCls:T,suffix:I&&l.createElement("span",{className:`${T}-textarea-suffix`},w),ref:N})))}),za=La;za.Group=$R;za.Search=Ih;za.TextArea=YR;za.Password=Eh;za.OTP=TR;function Yf(e){return["small","middle","large"].includes(e)}function Qf(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Oh=q.createContext({latestIndex:0}),QR=Oh.Provider,ZR=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=l.useContext(Oh);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:a},r),n{var n,r,o;const{getPrefixCls:a,space:i,direction:s}=l.useContext(je),{size:c=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:m,direction:v="horizontal",prefixCls:h,split:p,style:g,wrap:C=!1,classNames:y,styles:b}=e,S=JR(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[$,x]=Array.isArray(c)?c:[c,c],E=Yf(x),I=Yf($),w=Qf(x),R=Qf($),N=sn(m,{keepEmpty:!0}),T=u===void 0&&v==="horizontal"?"center":u,M=a("space",h),[O,F,j]=ig(M),P=V(M,i==null?void 0:i.className,F,`${M}-${v}`,{[`${M}-rtl`]:s==="rtl",[`${M}-align-${T}`]:T,[`${M}-gap-row-${x}`]:E,[`${M}-gap-col-${$}`]:I},d,f,j),D=V(`${M}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(o=i==null?void 0:i.classNames)===null||o===void 0?void 0:o.item);let z=0;const L=N.map((H,K)=>{var G,te;H!=null&&(z=K);const Y=H&&H.key||`${D}-${K}`;return l.createElement(ZR,{className:D,key:Y,index:K,split:p,style:(G=b==null?void 0:b.item)!==null&&G!==void 0?G:(te=i==null?void 0:i.styles)===null||te===void 0?void 0:te.item},H)}),_=l.useMemo(()=>({latestIndex:z}),[z]);if(N.length===0)return null;const B={};return C&&(B.flexWrap="wrap"),!I&&R&&(B.columnGap=$),!E&&w&&(B.rowGap=x),O(l.createElement("div",Object.assign({ref:t,className:P,style:Object.assign(Object.assign(Object.assign({},B),i==null?void 0:i.style),g)},S),l.createElement(QR,{value:_},L)))}),bu=eP;bu.Compact=WS;bu.displayName="Space";var tP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(je),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:h,autoFocus:p,overlay:g,trigger:C,align:y,open:b,onOpenChange:S,placement:$,getPopupContainer:x,href:E,icon:I=l.createElement(lu,null),title:w,buttonsRender:R=Q=>Q,mouseEnterDelay:N,mouseLeaveDelay:T,overlayClassName:M,overlayStyle:O,destroyPopupOnHide:F,dropdownRender:j}=e,P=tP(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),D=n("dropdown",o),z=`${D}-button`,L={menu:v,arrow:h,autoFocus:p,align:y,disabled:s,trigger:s?[]:C,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:N,mouseLeaveDelay:T,overlayClassName:M,overlayStyle:O,destroyPopupOnHide:F,dropdownRender:j},{compactSize:_,compactItemClassnames:B}=Po(D,r),H=V(z,B,m);"overlay"in e&&(L.overlay=g),"open"in e&&(L.open=b),"placement"in e?L.placement=$:L.placement=r==="rtl"?"bottomLeft":"bottomRight";const K=l.createElement(sr,{type:a,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:E,title:w},f),G=l.createElement(sr,{type:a,danger:i,icon:I}),[te,Y]=R([K,G]);return l.createElement(bu.Compact,Object.assign({className:H,size:_,block:!0},P),te,l.createElement(Fa,Object.assign({},L),Y))};Rh.__ANT_BUTTON=!0;const nP=Fa;nP.Button=Rh;function Fi(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const rP=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
+ opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
+ transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},oP=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${X(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Zf=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},aP=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},St(e)),oP(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Zf(e,e.controlHeightSM)),"&-large":Object.assign({},Zf(e,e.controlHeightLG))})}},iP=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:a,labelRequiredMarkColor:i,labelColor:s,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},St(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
+ &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Lc,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Jf=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},lP=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
+ > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},zn=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ph=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:zn(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},sP=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
+ ${r}-col-24${n}-label,
+ ${r}-col-xl-24${n}-label`]:zn(e)}},[`@media (max-width: ${X(e.screenXSMax)})`]:[Ph(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:zn(e)}}}],[`@media (max-width: ${X(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:zn(e)}}},[`@media (max-width: ${X(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:zn(e)}}},[`@media (max-width: ${X(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:zn(e)}}}}},cP=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
+ ${n}-col-24${t}-label,
+ ${n}-col-xl-24${t}-label`]:zn(e),[`@media (max-width: ${X(e.screenXSMax)})`]:[Ph(e),{[t]:{[`${n}-col-xs-24${t}-label`]:zn(e)}}],[`@media (max-width: ${X(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:zn(e)}},[`@media (max-width: ${X(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:zn(e)}},[`@media (max-width: ${X(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:zn(e)}}}},uP=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Nh=(e,t)=>st(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),yu=It("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Nh(e,n);return[aP(r),iP(r),rP(r),Jf(r,r.componentCls),Jf(r,r.formItemCls),lP(r),sP(r),cP(r),tl(r),Lc]},uP,{order:-1e3}),em=[];function ts(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Mh=e=>{let{help:t,helpStatus:n,errors:r=em,warnings:o=em,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(Ac),u=`${c}-item-explain`,d=rn(c),[f,m,v]=yu(c,d),h=l.useMemo(()=>da(c),[c]),p=Fi(r),g=Fi(o),C=l.useMemo(()=>t!=null?[ts(t,"help",n)]:[].concat(ue(p.map((b,S)=>ts(b,"error","error",S))),ue(g.map((b,S)=>ts(b,"warning","warning",S)))),[t,n,p,g]),y={};return i&&(y.id=`${i}_help`),f(l.createElement(Kn,{motionDeadline:h.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:s},b=>{const{className:S,style:$}=b;return l.createElement("div",Object.assign({},y,{className:V(u,S,v,d,a,m),style:$,role:"alert"}),l.createElement(Bv,Object.assign({keys:C},da(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:E,error:I,errorStatus:w,className:R,style:N}=x;return l.createElement("div",{key:E,className:V(R,{[`${u}-${w}`]:w}),style:N},I)}))}))},dP=["parentNode"],fP="form_item";function Jo(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Th(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:dP.includes(n)?`${fP}_${n}`:n}function Ah(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function tm(e){return Jo(e).join("_")}function mP(e,t){const n=t.getFieldInstance(e),r=$m(n);if(r)return r;const o=Th(Jo(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Dh(e){const[t]=Tc(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=tm(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=mP(o,r);i&&QC(i,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=tm(o);return n.current[a]}}),[e,t]);return[r]}const oi={};function vP(e){let{name:t}=e;const n=vt("Form");l.useEffect(()=>{if(t)return oi[t]=(oi[t]||0)+1,n(oi[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{oi[t]-=1}},[t])}var gP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=l.useContext(Hn),{getPrefixCls:r,direction:o,form:a}=l.useContext(je),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:m,labelAlign:v,labelWrap:h,labelCol:p,wrapperCol:g,hideRequiredMark:C,layout:y="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:$,name:x,style:E,feedbackIcons:I,variant:w}=e,R=gP(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=Mn(u),T=l.useContext(sv);vP(e);const M=l.useMemo(()=>S!==void 0?S:C?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[C,S,a]),O=m??(a==null?void 0:a.colon),F=r("form",i),j=rn(F),[P,D,z]=yu(F,j),L=V(F,`${F}-${y}`,{[`${F}-hide-required-mark`]:M===!1,[`${F}-rtl`]:o==="rtl",[`${F}-${N}`]:N},z,j,D,a==null?void 0:a.className,s,c),[_]=Dh(f),{__INTERNAL__:B}=_;B.name=x;const H=l.useMemo(()=>({name:x,labelAlign:v,labelCol:p,labelWrap:h,wrapperCol:g,vertical:y==="vertical",colon:O,requiredMark:M,itemRef:B.itemRef,form:_,feedbackIcons:I}),[x,v,p,g,y,O,M,_,I]),K=l.useRef(null);l.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},_),{nativeElement:(Y=K.current)===null||Y===void 0?void 0:Y.nativeElement})});const G=(Y,Q)=>{if(Y){let ie={block:"nearest"};typeof Y=="object"&&(ie=Y),_.scrollToField(Q,ie)}},te=Y=>{if($==null||$(Y),Y.errorFields.length){const Q=Y.errorFields[0].name;if(b!==void 0){G(b,Q);return}a&&a.scrollToFirstError!==void 0&&G(a.scrollToFirstError,Q)}};return P(l.createElement(Tg.Provider,{value:w},l.createElement(pc,{disabled:d},l.createElement(zr.Provider,{value:N},l.createElement(Mg,{validateMessages:T},l.createElement(cr.Provider,{value:H},l.createElement(No,Object.assign({id:x},R,{name:x,onFinishFailed:te,form:_,ref:K,style:Object.assign(Object.assign({},a==null?void 0:a.style),E),className:L}))))))))},jh=l.forwardRef(pP);jh.displayName="Form";function hP(e){if(typeof e=="function")return e;const t=sn(e);return t.length<=1?t[0]:t}const Fh=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(nn);return vt("Form.Item")(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus"),{status:e,errors:t,warnings:n}};Fh.Context=nn;function bP(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),a=l.useRef(!1);l.useEffect(()=>(a.current=!1,()=>{a.current=!0,ut.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=ut(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,i]}function yP(){const{itemRef:e}=l.useContext(cr),t=l.useRef({});function n(r,o){const a=o&&typeof o=="object"&&o.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=vn(e(r),a)),t.current.ref}return n}const CP=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},SP=yc(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Nh(e,n);return[CP(r)]}),xP=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,v=`${t}-item`,h=l.useContext(cr),p=r||h.wrapperCol||{},g=V(`${v}-control`,p.className),C=l.useMemo(()=>Object.assign({},h),[h]);delete C.labelCol,delete C.wrapperCol;const y=l.createElement("div",{className:`${v}-control-input`},l.createElement("div",{className:`${v}-control-input-content`},o)),b=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||a.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(Ac.Provider,{value:b},l.createElement(Mh,{fieldId:d,errors:a,warnings:i,help:u,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:m})),!!f&&l.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const x=c?l.createElement("div",Object.assign({},$,{className:`${v}-extra`}),c):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:y,errorList:S,extra:x}):l.createElement(l.Fragment,null,y,S,x);return l.createElement(cr.Provider,{value:C},l.createElement(mu,Object.assign({},p,{className:g}),E),l.createElement(SP,{prefixCls:t}))};var $P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},wP=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:$P}))},_h=l.forwardRef(wP);_h.displayName="QuestionCircleOutlined";var EP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[m]=xa("Form"),{labelAlign:v,labelCol:h,labelWrap:p,colon:g}=l.useContext(cr);if(!n)return null;const C=o||h||{},y=a||v,b=`${t}-item-label`,S=V(b,y==="left"&&`${b}-left`,C.className,{[`${b}-wrap`]:!!p});let $=n;const x=i===!0||g!==!1&&i!==!1;x&&!d&&typeof n=="string"&&n.trim()!==""&&($=n.replace(/[:|:]\s*$/,""));const I=IP(u);if(I){const{icon:T=l.createElement(_h,null)}=I,M=EP(I,["icon"]),O=l.createElement(Aa,Object.assign({},M),l.cloneElement(T,{className:`${t}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));$=l.createElement(l.Fragment,null,$,O)}const w=c==="optional",R=typeof c=="function";R?$=c($,{required:!!s}):w&&!s&&($=l.createElement(l.Fragment,null,$,l.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=wr.Form)===null||f===void 0?void 0:f.optional))));const N=V({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:w||R,[`${t}-item-no-colon`]:!x});return l.createElement(mu,Object.assign({},C,{className:S}),l.createElement("label",{htmlFor:r,className:N,title:typeof n=="string"?n:""},$))},RP={success:Wi,warning:Gi,error:Oo,validating:Kr};function Lh(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(cr),f=Ah(n,r,s,null,!!o,a),{isFormItemInput:m,status:v,hasFeedback:h,feedbackIcon:p}=l.useContext(nn),g=l.useMemo(()=>{var C;let y;if(o){const S=o!==!0&&o.icons||d,$=f&&((C=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||C===void 0?void 0:C[f]),x=f&&RP[f];y=$!==!1&&x?l.createElement("span",{className:V(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||l.createElement(x,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return c&&(b.status=(f??v)||"",b.isFormItemInput=m,b.hasFeedback=!!(o??h),b.feedbackIcon=o!==void 0?b.feedbackIcon:p),b},[f,o,c,m,v]);return l.createElement(nn.Provider,{value:g},t)}var PP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(N&&E.current){const z=getComputedStyle(E.current);O(parseInt(z.marginBottom,10))}},[N,T]);const F=z=>{z||O(null)},P=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=z?I:u.errors,_=z?w:u.warnings;return Ah(L,_,u,"",!!d,c)}(),D=V(b,n,r,{[`${b}-with-help`]:R||I.length||w.length,[`${b}-has-feedback`]:P&&d,[`${b}-has-success`]:P==="success",[`${b}-has-warning`]:P==="warning",[`${b}-has-error`]:P==="error",[`${b}-is-validating`]:P==="validating",[`${b}-hidden`]:f,[`${b}-${C}`]:C});return l.createElement("div",{className:D,style:o,ref:E},l.createElement(uh,Object.assign({className:`${b}-row`},kt(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(OP,Object.assign({htmlFor:v},e,{requiredMark:S,required:h??p,prefixCls:t,vertical:x})),l.createElement(xP,Object.assign({},e,u,{errors:I,warnings:w,prefixCls:t,status:P,help:a,marginBottom:M,onErrorVisibleChanged:F}),l.createElement(Ng.Provider,{value:g},l.createElement(Lh,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:P},m)))),!!M&&l.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-M}}))}const MP="__SPLIT__";function TP(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const AP=l.memo(e=>{let{children:t}=e;return t},(e,t)=>TP(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function nm(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function DP(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:h,help:p,layout:g}=e,{getPrefixCls:C}=l.useContext(je),{name:y}=l.useContext(cr),b=hP(c),S=typeof b=="function",$=l.useContext(Ng),{validateTrigger:x}=l.useContext(kr),E=v!==void 0?v:x,I=t!=null,w=C("form",a),R=rn(w),[N,T,M]=yu(w,R),O=vt("Form.Item");O(t!==null,"usage","`null` is passed as `name` property");const F=l.useContext(ma),j=l.useRef(),[P,D]=bP({}),[z,L]=$r(()=>nm()),_=Q=>{const ie=F==null?void 0:F.getKey(Q.name);if(L(Q.destroy?nm():Q,!0),n&&p!==!1&&$){let Z=Q.name;if(Q.destroy)Z=j.current||Z;else if(ie!==void 0){const[J,ne]=ie;Z=[J].concat(ue(ne)),j.current=Z}$(Q,Z)}},B=(Q,ie)=>{D(Z=>{const J=Object.assign({},Z),re=[].concat(ue(Q.name.slice(0,-1)),ue(ie)).join(MP);return Q.destroy?delete J[re]:J[re]=Q,J})},[H,K]=l.useMemo(()=>{const Q=ue(z.errors),ie=ue(z.warnings);return Object.values(P).forEach(Z=>{Q.push.apply(Q,ue(Z.errors||[])),ie.push.apply(ie,ue(Z.warnings||[]))}),[Q,ie]},[P,z.errors,z.warnings]),G=yP();function te(Q,ie,Z){return n&&!h?l.createElement(Lh,{prefixCls:w,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:H,warnings:K,noStyle:!0},Q):l.createElement(NP,Object.assign({key:"row"},e,{className:V(r,M,R,T),prefixCls:w,fieldId:ie,isRequired:Z,errors:H,warnings:K,meta:z,onSubItemMetaChange:B,layout:g}),Q)}if(!I&&!S&&!o)return N(te(b));let Y={};return typeof d=="string"?Y.label=d:t&&(Y.label=String(t)),f&&(Y=Object.assign(Object.assign({},Y),f)),N(l.createElement(Mc,Object.assign({},e,{messageVariables:Y,trigger:m,validateTrigger:E,onMetaChange:_}),(Q,ie,Z)=>{const J=Jo(t).length&&ie?ie.name:[],ne=Th(J,y),re=u!==void 0?u:!!(s&&s.some(oe=>{if(oe&&typeof oe=="object"&&oe.required&&!oe.warningOnly)return!0;if(typeof oe=="function"){const he=oe(Z);return he&&he.required&&!he.warningOnly}return!1})),W=Object.assign({},Q);let ee=null;if(O(!(i&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(b)&&I)O(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),ee=b;else if(S&&(!(i||o)||I))O(!!(i||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),O(!I,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!S&&!I)O(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(l.isValidElement(b)){O(b.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const oe=Object.assign(Object.assign({},b.props),W);if(oe.id||(oe.id=ne),p||H.length>0||K.length>0||e.extra){const de=[];(p||H.length>0)&&de.push(`${ne}_help`),e.extra&&de.push(`${ne}_extra`),oe["aria-describedby"]=de.join(" ")}H.length>0&&(oe["aria-invalid"]="true"),re&&(oe["aria-required"]="true"),ur(b)&&(oe.ref=G(J,b)),new Set([].concat(ue(Jo(m)),ue(Jo(E)))).forEach(de=>{oe[de]=function(){for(var ae,ce,we,ye,me,be=arguments.length,xe=new Array(be),Be=0;Be{var{prefixCls:t,children:n}=e,r=jP(e,["prefixCls","children"]);vt("Form.List")(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.");const{getPrefixCls:o}=l.useContext(je),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(Ig,Object.assign({},r),(s,c,u)=>l.createElement(Ac.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function _P(){const{form:e}=l.useContext(cr);return e}const Ir=jh;Ir.Item=zh;Ir.List=FP;Ir.ErrorList=Mh;Ir.useForm=Dh;Ir.useFormInstance=_P;Ir.useWatch=Pg;Ir.Provider=Mg;Ir.create=()=>{fr(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};function LP(e){let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,a=`${o}-hidden`,[i,s]=l.useState(!1);ft(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0),u=100,d=u/5,f=u/2-d/2,m=f*2*Math.PI,v=(h,p)=>l.createElement("circle",{className:V(h,`${r}-circle`),r:f,cx:"50",cy:"50",strokeWidth:d,style:p});return i?l.createElement("span",{className:V(o,`${r}-progress`,c<=0&&a)},l.createElement("svg",{viewBox:`0 0 ${u} ${u}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},v(`${r}-circle-bg`),v("",{strokeDasharray:`${m*c/100} ${m*(100-c)/100}`,strokeDashoffset:`${m/4}`}))):null}function zP(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:V(o,n>0&&a)},l.createElement("span",{className:V(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(LP,{prefixCls:t,percent:n}))}function BP(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&l.isValidElement(n)?tn(n,{className:V(n.props.className,o),percent:r}):l.createElement(zP,{prefixCls:t,percent:r})}const kP=new lt("antSpinMove",{to:{opacity:1}}),HP=new lt("antRotate",{to:{transform:"rotate(405deg)"}}),VP=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},St(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:kP,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:HP,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},KP=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},WP=It("Spin",e=>{const t=st(e,{spinDotDefault:e.colorTextDescription});return[VP(t)]},KP),GP=200,rm=[[30,.05],[70,.03],[96,.01]];function qP(e,t){const[n,r]=l.useState(0),o=l.useRef(),a=t==="auto";return l.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c{clearInterval(o.current)}),[a,e]),a?n:t}var UP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:s,wrapperClassName:c,style:u,children:d,fullscreen:f=!1,indicator:m,percent:v}=e,h=UP(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:p}=l.useContext(je),g=p("spin",t),[C,y,b]=WP(g),[S,$]=l.useState(()=>n&&!XP(n,r)),x=qP(S,v);l.useEffect(()=>{if(n){const O=m2(r,()=>{$(!0)});return O(),()=>{var F;(F=O==null?void 0:O.cancel)===null||F===void 0||F.call(O)}}$(!1)},[r,n]);const E=l.useMemo(()=>typeof d<"u"&&!f,[d,f]);vt("Spin")(!s||E||f,"usage","`tip` only work in nest or fullscreen pattern.");const{direction:I,spin:w}=l.useContext(je),R=V(g,w==null?void 0:w.className,{[`${g}-sm`]:i==="small",[`${g}-lg`]:i==="large",[`${g}-spinning`]:S,[`${g}-show-text`]:!!s,[`${g}-rtl`]:I==="rtl"},o,!f&&a,y,b),N=V(`${g}-container`,{[`${g}-blur`]:S}),T=Object.assign(Object.assign({},w==null?void 0:w.style),u),M=l.createElement("div",Object.assign({},h,{style:T,className:R,"aria-live":"polite","aria-busy":S}),l.createElement(BP,{prefixCls:g,indicator:m??Bh,percent:x}),s&&(E||f)?l.createElement("div",{className:`${g}-text`},s):null);return C(E?l.createElement("div",Object.assign({},h,{className:V(`${g}-nested-loading`,c,y,b)}),S&&l.createElement("div",{key:"loading"},M),l.createElement("div",{className:N,key:"container"},d)):f?l.createElement("div",{className:V(`${g}-fullscreen`,{[`${g}-fullscreen-show`]:S},a,y,b)},M):M)};kh.setDefaultIndicator=e=>{Bh=e};kh.displayName="Spin";let Pn=null,Dr=e=>e(),ya=[],Ca={};function om(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ca,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const YP=q.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=l.useContext(je),a=Ca.prefixCls||o("message"),i=l.useContext(Ww),[s,c]=og(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return q.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),QP=q.forwardRef((e,t)=>{const[n,r]=q.useState(om),o=()=>{r(om)};q.useEffect(o,[]);const a=Sc(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=q.createElement(YP,{ref:t,sync:o,messageConfig:n});return q.createElement(Wn,{prefixCls:i,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)});function fl(){if(!Pn){const e=document.createDocumentFragment(),t={fragment:e};Pn=t,Dr(()=>{Ec(q.createElement(QP,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,fl())})}}),e)});return}Pn.instance&&(ya.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Dr(()=>{const r=Pn.instance.open(Object.assign(Object.assign({},Ca),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Dr(()=>{Pn==null||Pn.instance.destroy(e.key)});break;default:Dr(()=>{var r;const o=(r=Pn.instance)[t].apply(r,ue(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ya=[])}function ZP(e){Ca=Object.assign(Object.assign({},Ca),e),Dr(()=>{var t;(t=Pn==null?void 0:Pn.sync)===null||t===void 0||t.call(Pn)})}function JP(e){const t=wc(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return ya.push(o),()=>{r?Dr(()=>{r()}):o.skipped=!0}});return fl(),t}function eN(e,t){Sc().holderRender||Hv("message");const r=wc(o=>{let a;const i={type:e,args:t,resolve:o,setCloseFn:s=>{a=s}};return ya.push(i),()=>{a?Dr(()=>{a()}):i.skipped=!0}});return fl(),r}const tN=e=>{ya.push({type:"destroy",key:e}),fl()},nN=["success","info","warning","error","loading"],rN={open:JP,destroy:tN,config:ZP,useMessage:xS,_InternalPanelDoNotUseOrYouWillBeFired:vS},oN=rN;nN.forEach(e=>{oN[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:c}=e,u=aN(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(je),f=d(),m=t||d("modal"),v=rn(f),[h,p,g]=Lg(m,v),C=`${m}-confirm`;let y={};return a?y={closable:o??!1,title:"",footer:"",children:l.createElement(Bg,Object.assign({},e,{prefixCls:m,confirmPrefixCls:C,rootPrefixCls:f,content:s}))}:y={closable:o??!0,title:i,footer:c!==null&&l.createElement(jg,Object.assign({},e)),children:s},h(l.createElement(Pc,Object.assign({prefixCls:m,className:V(p,`${m}-pure-panel`,a&&C,a&&`${C}-${a}`,n,g,v)},u,{closeIcon:Dg(m,r),closable:o},y)))},lN=Xg(iN);function Hh(e){return Na(Kg(e))}const Gn=zg;Gn.useModal=Kw;Gn.info=function(t){return Na(Wg(t))};Gn.success=function(t){return Na(Gg(t))};Gn.error=function(t){return Na(qg(t))};Gn.warning=Hh;Gn.warn=Hh;Gn.confirm=function(t){return Na(Ug(t))};Gn.destroyAll=function(){for(;Tr.length;){const t=Tr.pop();t&&t()}};Gn.config=zw;Gn._InternalPanelDoNotUseOrYouWillBeFired=lN;Gn.displayName="Modal";var sN=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Vh=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,v=e.onChange,h=e.onKeyDown,p=We(e,sN),g=Kt(!1,{value:i,defaultValue:s}),C=U(g,2),y=C[0],b=C[1];function S(I,w){var R=y;return c||(R=I,b(R),v==null||v(R,w)),R}function $(I){I.which===le.LEFT?S(!1,I):I.which===le.RIGHT&&S(!0,I),h==null||h(I)}function x(I){var w=S(!y,I);m==null||m(w,I)}var E=V(o,a,(n={},A(n,"".concat(o,"-checked"),y),A(n,"".concat(o,"-disabled"),c),n));return l.createElement("button",fe({},p,{type:"button",role:"switch","aria-checked":y,disabled:c,className:E,ref:t,onKeyDown:$,onClick:x}),u,l.createElement("span",{className:"".concat(o,"-inner")},l.createElement("span",{className:"".concat(o,"-inner-checked")},d),l.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Vh.displayName="Switch";const cN=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=X(c(s).add(c(r).mul(2)).equal()),f=X(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:X(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${X(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},uN=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},dN=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${X(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},fN=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,c=`${t}-inner`,u=X(s(i).add(s(r).mul(2)).equal()),d=X(s(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},mN=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},St(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${X(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ua(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},vN=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,c=a-s*2,u=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Rt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},gN=It("Switch",e=>{const t=st(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[mN(t),fN(t),dN(t),uN(t),cN(t)]},vN);var pN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:v}=e,h=pN(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,g]=Kt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:C,direction:y,switch:b}=l.useContext(je),S=l.useContext(Hn),$=(o??S)||a,x=C("switch",n),E=l.createElement("div",{className:`${x}-handle`},a&&l.createElement(Kr,{className:`${x}-loading-icon`})),[I,w,R]=gN(x),N=Mn(r),T=V(b==null?void 0:b.className,{[`${x}-small`]:N==="small",[`${x}-loading`]:a,[`${x}-rtl`]:y==="rtl"},i,s,w,R),M=Object.assign(Object.assign({},b==null?void 0:b.style),c),O=function(){g(arguments.length<=0?void 0:arguments[0]),v==null||v.apply(void 0,arguments)};return I(l.createElement(Xi,{component:"Switch"},l.createElement(Vh,Object.assign({},h,{checked:p,onChange:O,prefixCls:x,className:T,style:M,disabled:$,ref:t,loadingIcon:E}))))}),Kh=hN;Kh.__ANT_SWITCH=!0;Kh.displayName="Switch";var Cu=l.createContext(null),bN=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function hr(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Su(e){return e.split("-")}function $N(e,t){var n=[],r=mn(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var s=i.key,c=i.children;n.push(s),o(c)})}return o(r.children),n}function wN(e){if(e.parent){var t=Su(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function EN(e){var t=Su(e.pos);return Number(t[t.length-1])===0}function lm(e,t,n,r,o,a,i,s,c,u){var d,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,p=v.height,g=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),C=(g-12)/r,y=c.filter(function(j){var P;return(P=s[j])===null||P===void 0||(P=P.children)===null||P===void 0?void 0:P.length}),b=mn(s,n.props.eventKey);if(m-1.5?a({dragNode:M,dropNode:O,dropPosition:1})?R=1:F=!1:a({dragNode:M,dropNode:O,dropPosition:0})?R=0:a({dragNode:M,dropNode:O,dropPosition:1})?R=1:F=!1:a({dragNode:M,dropNode:O,dropPosition:1})?R=1:F=!1,{dropPosition:R,dropLevelOffset:N,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:R===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:F}}function sm(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function ns(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(De(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return _e(!1,"`checkedKeys` is not an array or an object"),null;return t}function nc(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=mn(t,o);if(a){n.add(o);var i=a.parent,s=a.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),ue(n)}function IN(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return l.createElement("div",{style:o})}function Wh(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function ON(e,t){var n=l.useState(!1),r=U(n,2),o=r[0],a=r[1];ft(function(){if(o)return e(),function(){t()}},[o]),ft(function(){return a(!0),function(){a(!1)}},[])}var RN=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Gh=function(t,n){var r=t.className,o=t.style,a=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=We(t,RN),v=l.useState(!0),h=U(v,2),p=h[0],g=h[1],C=l.useContext(Cu),y=C.prefixCls,b=i&&s!=="hide";ft(function(){i&&b!==p&&g(b)},[i]);var S=function(){i&&c()},$=l.useRef(!1),x=function(){i&&!$.current&&($.current=!0,u())};ON(S,x);var E=function(w){b===w&&x()};return i?l.createElement(Kn,fe({ref:n,visible:p},a,{motionAppear:s==="show",onVisibleChanged:E}),function(I,w){var R=I.className,N=I.style;return l.createElement("div",{ref:w,className:V("".concat(y,"-treenode-motion"),R),style:N},i.map(function(T){var M=Object.assign({},(Wh(T.data),T.data)),O=T.title,F=T.key,j=T.isStart,P=T.isEnd;delete M.children;var D=Zo(F,f);return l.createElement(xo,fe({},M,D,{title:O,active:d,data:T.data,key:F,isStart:j,isEnd:P}))}))}):l.createElement(xo,fe({domRef:n,className:r,style:o},m,{active:d}))};Gh.displayName="MotionTreeNode";var PN=l.forwardRef(Gh);function NN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var s=new Map;a.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var Uh=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,h=e.dropPosition,p=e.motion,g=e.height,C=e.itemHeight,y=e.virtual,b=e.focusable,S=e.activeItem,$=e.focused,x=e.tabIndex,E=e.onKeyDown,I=e.onFocus,w=e.onBlur,R=e.onActiveChange,N=e.onListChangeStart,T=e.onListChangeEnd,M=We(e,MN),O=l.useRef(null),F=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(ce){O.current.scrollTo(ce)},getIndentWidth:function(){return F.current.offsetWidth}}});var j=l.useState(o),P=U(j,2),D=P[0],z=P[1],L=l.useState(r),_=U(L,2),B=_[0],H=_[1],K=l.useState(r),G=U(K,2),te=G[0],Y=G[1],Q=l.useState([]),ie=U(Q,2),Z=ie[0],J=ie[1],ne=l.useState(null),re=U(ne,2),W=re[0],ee=re[1],oe=l.useRef(r);oe.current=r;function he(){var ae=oe.current;H(ae),Y(ae),J([]),ee(null),T()}ft(function(){z(o);var ae=NN(D,o);if(ae.key!==null)if(ae.add){var ce=B.findIndex(function(Be){var ke=Be.key;return ke===ae.key}),we=fm(cm(B,r,ae.key),y,g,C),ye=B.slice();ye.splice(ce+1,0,dm),Y(ye),J(we),ee("show")}else{var me=r.findIndex(function(Be){var ke=Be.key;return ke===ae.key}),be=fm(cm(r,B,ae.key),y,g,C),xe=r.slice();xe.splice(me+1,0,dm),Y(xe),J(be),ee("hide")}else B!==r&&(H(r),Y(r))},[o,r]),l.useEffect(function(){m||he()},[m]);var Ce=p?te:r,de={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:h,keyEntities:d};return l.createElement(l.Fragment,null,$&&S&&l.createElement("span",{style:um,"aria-live":"assertive"},AN(S)),l.createElement("div",null,l.createElement("input",{style:um,disabled:b===!1||f,tabIndex:b!==!1?x:null,onKeyDown:E,onFocus:I,onBlur:w,value:"",onChange:TN,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:F,className:"".concat(n,"-indent-unit")}))),l.createElement(Gc,fe({},M,{data:Ce,itemKey:mm,height:g,fullHeight:!1,virtual:y,itemHeight:C,prefixCls:"".concat(n,"-list"),ref:O,onVisibleChange:function(ce,we){var ye=new Set(ce),me=we.filter(function(be){return!ye.has(be)});me.some(function(be){return mm(be)===Hr})&&he()}}),function(ae){var ce=ae.pos,we=Object.assign({},(Wh(ae.data),ae.data)),ye=ae.title,me=ae.key,be=ae.isStart,xe=ae.isEnd,Be=_a(me,ce);delete we.key,delete we.children;var ke=Zo(Be,de);return l.createElement(PN,fe({},we,ke,{title:ye,active:!!S&&me===S.key,pos:ce,data:ae.data,isStart:be,isEnd:xe,motion:p,motionNodes:me===Hr?Z:null,motionType:W,onMotionStart:N,onMotionEnd:he,treeNodeRequiredProps:de,onMouseMove:function(){R(null)}}))}))});Uh.displayName="NodeList";var DN=10,xu=function(e){Qn(n,e);var t=Er(n);function n(){var r;At(this,n);for(var o=arguments.length,a=new Array(o),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,h=f.dropTargetKey,p=f.dropTargetPos,g=f.dropAllowed;if(g){var C=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var y=k(k({},Zo(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:mn(r.state.keyEntities,h).node}),b=m.indexOf(h)!==-1;_e(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=Su(p),$={event:s,node:zt(y),dragNode:r.dragNode?zt(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number(S[S.length-1])};d||C==null||C($),r.dragNode=null}}}),A(se(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),A(se(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,v=c.key,h=c.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var p=f.filter(function(C){return C.key===v})[0],g=zt(k(k({},Zo(v,r.getTreeNodeRequiredProps())),{},{data:p.data}));r.setExpandedKeys(m?tr(d,v):hr(d,v)),r.onNodeExpand(s,g)}}),A(se(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),A(se(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),A(se(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,v=r.props,h=v.onSelect,p=v.multiple,g=c.selected,C=c[m.key],y=!g;y?p?u=hr(u,C):u=[C]:u=tr(u,C);var b=u.map(function(S){var $=mn(f,S);return $?$.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:y,node:c,selectedNodes:b,nativeEvent:s.nativeEvent})}),A(se(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,v=d.halfCheckedKeys,h=r.props,p=h.checkStrictly,g=h.onCheck,C=c.key,y,b={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(p){var S=u?hr(m,C):tr(m,C),$=tr(v,C);y={checked:S,halfChecked:$},b.checkedNodes=S.map(function(N){return mn(f,N)}).filter(function(N){return N}).map(function(N){return N.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=Yl([].concat(ue(m),[C]),!0,f),E=x.checkedKeys,I=x.halfCheckedKeys;if(!u){var w=new Set(E);w.delete(C);var R=Yl(Array.from(w),{checked:!1,halfCheckedKeys:I},f);E=R.checkedKeys,I=R.halfCheckedKeys}y=E,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=I,E.forEach(function(N){var T=mn(f,N);if(T){var M=T.node,O=T.pos;b.checkedNodes.push(M),b.checkedNodesPositions.push({node:M,pos:O})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:I})}g==null||g(y,b)}),A(se(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=mn(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(v,h){r.setState(function(p){var g=p.loadedKeys,C=g===void 0?[]:g,y=p.loadingKeys,b=y===void 0?[]:y,S=r.props,$=S.loadData,x=S.onLoad;if(!$||C.indexOf(u)!==-1||b.indexOf(u)!==-1)return null;var E=$(s);return E.then(function(){var I=r.state.loadedKeys,w=hr(I,u);x==null||x(w,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:w}),r.setState(function(R){return{loadingKeys:tr(R.loadingKeys,u)}}),v()}).catch(function(I){if(r.setState(function(R){return{loadingKeys:tr(R.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=DN){var w=r.state.loadedKeys;_e(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:hr(w,u)}),v()}h(I)}),{loadingKeys:hr(b,u)}})});return m.catch(function(){}),m}}),A(se(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),A(se(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),A(se(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),A(se(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(v){if(v in r.props){f=!1;return}d=!0,m[v]=s[v]}),d&&(!c||f)&&r.setState(k(k({},m),u))}}),A(se(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Dt(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,s=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,v=o.dropPosition,h=o.dragOverNodeKey,p=o.indent,g=this.props,C=g.prefixCls,y=g.className,b=g.style,S=g.showLine,$=g.focusable,x=g.tabIndex,E=x===void 0?0:x,I=g.selectable,w=g.showIcon,R=g.icon,N=g.switcherIcon,T=g.draggable,M=g.checkable,O=g.checkStrictly,F=g.disabled,j=g.motion,P=g.loadData,D=g.filterTreeNode,z=g.height,L=g.itemHeight,_=g.virtual,B=g.titleRender,H=g.dropIndicatorRender,K=g.onContextMenu,G=g.onScroll,te=g.direction,Y=g.rootClassName,Q=g.rootStyle,ie=xn(this.props,{aria:!0,data:!0}),Z;return T&&(De(T)==="object"?Z=T:typeof T=="function"?Z={nodeDraggable:T}:Z={}),l.createElement(Cu.Provider,{value:{prefixCls:C,selectable:I,showIcon:w,icon:R,switcherIcon:N,draggable:Z,draggingNodeKey:c,checkable:M,checkStrictly:O,disabled:F,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:v,dragOverNodeKey:h,indent:p,direction:te,dropIndicatorRender:H,loadData:P,filterTreeNode:D,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:V(C,y,Y,A(A(A({},"".concat(C,"-show-line"),S),"".concat(C,"-focused"),a),"".concat(C,"-active-focused"),u!==null)),style:Q},l.createElement(Uh,fe({ref:this.listRef,prefixCls:C,style:b,data:i,disabled:F,selectable:I,checkable:!!M,motion:j,dragging:c!==null,height:z,itemHeight:L,virtual:_,focusable:$,focused:a,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:K,onScroll:G},this.getTreeNodeRequiredProps(),ie))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s={prevProps:o};function c(x){return!i&&x in o||i&&i[x]!==o[x]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=So(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(_e(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=ah(o.children)),u){s.treeData=u;var f=ih(u,{fieldNames:d});s.keyEntities=k(A({},Hr,qh),f.keyEntities),p2(u,d)}var m=s.keyEntities||a.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?nc(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var v=k({},m);delete v[Hr],s.expandedKeys=Object.keys(v).map(function(x){return v[x].key})}else!i&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?nc(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var h=Xl(u||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=h}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=sm(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(s.selectedKeys=sm(o.defaultSelectedKeys,o))),o.checkable){var p;if(c("checkedKeys")?p=ns(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?p=ns(o.defaultCheckedKeys)||{}:u&&(p=ns(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),p){var g=p,C=g.checkedKeys,y=C===void 0?[]:C,b=g.halfCheckedKeys,S=b===void 0?[]:b;if(!o.checkStrictly){var $=Yl(y,!0,m);y=$.checkedKeys,S=$.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=S}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(l.Component);A(xu,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:IN,allowDrop:function(){return!0},expandAction:!1});A(xu,"TreeNode",xo);var jN={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"},FN=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:jN}))},$u=l.forwardRef(FN);$u.displayName="FileOutlined";var _N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},LN=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:_N}))},Xh=l.forwardRef(LN);Xh.displayName="FolderOpenOutlined";var zN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},BN=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:zN}))},Yh=l.forwardRef(BN);Yh.displayName="FolderOutlined";var kN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},HN=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:kN}))},Qh=l.forwardRef(HN);Qh.displayName="HolderOutlined";const VN=new lt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),KN=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),WN=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${X(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),GN=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},St(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Eo(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:VN,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${X(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${X(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},KN(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${X(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${X(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${X(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${X(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${X(a)}`,userSelect:"none"},WN(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${X(t.calc(a).div(2).equal())} !important`}}}}})}},qN=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},UN=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=st(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[GN(e,a),qN(a)]},XN=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},YN=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},XN(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},QN=It("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:sh(`${n}-checkbox`,e)},UN(n,e),tl(e)]},YN),vm=4;function ZN(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",c={[i]:-n*o+vm,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+vm;break}return q.createElement("div",{style:c,className:`${r}-drop-indicator`})}var JN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},eM=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:JN}))},Zh=l.forwardRef(eM);Zh.displayName="CaretDownFilled";var tM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},nM=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:tM}))},Jh=l.forwardRef(nM);Jh.displayName="MinusSquareOutlined";var rM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},oM=function(t,n){return l.createElement(bt,fe({},t,{ref:n,icon:rM}))},e0=l.forwardRef(oM);e0.displayName="PlusSquareOutlined";const aM=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:a,expanded:i,loading:s}=r;if(s)return l.createElement(Kr,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(r):c,m=`${t}-switcher-line-custom-icon`;return l.isValidElement(f)?tn(f,{className:V(f.props.className||"",m)}):f}return c?l.createElement($u,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return l.isValidElement(d)?tn(d,{className:V(d.props.className||"",u)}):d!==void 0?d:o?i?l.createElement(Jh,{className:`${t}-switcher-line-icon`}):l.createElement(e0,{className:`${t}-switcher-line-icon`}):l.createElement(Zh,{className:u})},wu=q.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=q.useContext(je),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:m=!1,children:v,checkable:h=!1,selectable:p=!0,draggable:g,motion:C,style:y}=e,b=r("tree",s),S=r(),$=C??Object.assign(Object.assign({},da(S)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:h,selectable:p,showIcon:u,motion:$,blockNode:m,showLine:!!d,dropIndicatorRender:ZN}),[E,I,w]=QN(b),[,R]=qt(),N=R.paddingXS/2+(((n=R.Tree)===null||n===void 0?void 0:n.titleHeight)||R.controlHeightSM),T=q.useMemo(()=>{if(!g)return!1;let O={};switch(typeof g){case"function":O.nodeDraggable=g;break;case"object":O=Object.assign({},g);break}return O.icon!==!1&&(O.icon=O.icon||q.createElement(Qh,null)),O},[g]),M=O=>q.createElement(aM,{prefixCls:b,switcherIcon:f,treeNodeProps:O,showLine:d});return E(q.createElement(xu,Object.assign({itemHeight:N,ref:t,virtual:a},x,{style:Object.assign(Object.assign({},i==null?void 0:i.style),y),prefixCls:b,className:V({[`${b}-icon-hide`]:!u,[`${b}-block-node`]:m,[`${b}-unselectable`]:!p,[`${b}-rtl`]:o==="rtl"},i==null?void 0:i.className,c,I,w),direction:o,checkable:h&&q.createElement("span",{className:`${b}-checkbox-inner`}),selectable:p,switcherIcon:M,draggable:T}),v))});wu.displayName="Tree";const gm=0,rs=1,pm=2;function Eu(e,t,n){const{key:r,children:o}=n;function a(i){const s=i[r],c=i[o];t(s,i)!==!1&&Eu(c||[],t,n)}e.forEach(a)}function iM(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const i=[];let s=gm;if(r&&r===o)return[r];if(!r||!o)return[];function c(u){return u===r||u===o}return Eu(t,u=>{if(s===pm)return!1;if(c(u)){if(i.push(u),s===gm)s=rs;else if(s===rs)return s=pm,!1}else s===rs&&i.push(u);return n.includes(u)},So(a)),i}function os(e,t,n){const r=ue(t),o=[];return Eu(e,(a,i)=>{const s=r.indexOf(a);return s!==-1&&(o.push(i),r.splice(s,1)),!!r.length},So(n)),o}var hm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=hm(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:I}=ih(bm(a));let w;return n?w=Object.keys(I):r?w=nc(a.expandedKeys||o||[],I):w=a.expandedKeys||o||[],w},[u,d]=l.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),l.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const v=(I,w)=>{var R;return"expandedKeys"in a||m(I),(R=a.onExpand)===null||R===void 0?void 0:R.call(a,I,w)},h=(I,w)=>{var R;const{multiple:N,fieldNames:T}=a,{node:M,nativeEvent:O}=w,{key:F=""}=M,j=bm(a),P=Object.assign(Object.assign({},w),{selected:!0}),D=(O==null?void 0:O.ctrlKey)||(O==null?void 0:O.metaKey),z=O==null?void 0:O.shiftKey;let L;N&&D?(L=I,i.current=F,s.current=L,P.selectedNodes=os(j,L,T)):N&&z?(L=Array.from(new Set([].concat(ue(s.current||[]),ue(iM({treeData:j,expandedKeys:f,startKey:F,endKey:i.current,fieldNames:T}))))),P.selectedNodes=os(j,L,T)):(L=[F],i.current=F,s.current=L,P.selectedNodes=os(j,L,T)),(R=a.onSelect)===null||R===void 0||R.call(a,L,P),"selectedKeys"in a||d(L)},{getPrefixCls:p,direction:g}=l.useContext(je),{prefixCls:C,className:y,showIcon:b=!0,expandAction:S="click"}=a,$=hm(a,["prefixCls","className","showIcon","expandAction"]),x=p("tree",C),E=V(`${x}-directory`,{[`${x}-directory-rtl`]:g==="rtl"},y);return l.createElement(wu,Object.assign({icon:lM,ref:t,blockNode:!0},$,{showIcon:b,expandAction:S,prefixCls:x,className:E,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:v}))},t0=l.forwardRef(sM);t0.displayName="DirectoryTree";const n0=wu;n0.DirectoryTree=t0;n0.TreeNode=xo;const cM=e=>{const t=e!=null&&e.algorithm?aa(e.algorithm):aa($a),n=Object.assign(Object.assign({},ho),e==null?void 0:e.token);return Vm(n,{override:e==null?void 0:e.token},t,hc)};function uM(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const dM=(e,t)=>{const n=t??$a(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),uM(t??e)),bv(r)),{controlHeight:o}),hv(Object.assign(Object.assign({},n),{controlHeight:o})))},nr=(e,t)=>new Rt(e).setAlpha(t).toRgbString(),ao=(e,t)=>new Rt(e).lighten(t).toHexString(),fM=e=>{const t=ir(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},mM=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:nr(r,.85),colorTextSecondary:nr(r,.65),colorTextTertiary:nr(r,.45),colorTextQuaternary:nr(r,.25),colorFill:nr(r,.18),colorFillSecondary:nr(r,.12),colorFillTertiary:nr(r,.08),colorFillQuaternary:nr(r,.04),colorBgElevated:ao(n,12),colorBgContainer:ao(n,8),colorBgLayout:ao(n,0),colorBgSpotlight:ao(n,26),colorBgBlur:nr(r,.04),colorBorder:ao(n,26),colorBorderSecondary:ao(n,19)}},vM=(e,t)=>{const n=Object.keys(vc).map(o=>{const a=ir(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${o}-${c+1}`]=a[c],i[`${o}${c+1}`]=a[c],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??$a(e);return Object.assign(Object.assign(Object.assign({},r),n),pv(e,{generateColorPalettes:fM,generateNeutralColorPalettes:mM}))};function gM(){const[e,t,n]=qt();return{theme:e,token:t,hashId:n}}const bM={defaultConfig:sa,defaultSeed:sa.token,useToken:gM,defaultAlgorithm:$a,darkAlgorithm:vM,compactAlgorithm:dM,getDesignToken:cM};export{sr as B,Wn as C,nP as D,yr as E,Ir as F,za as I,Gn as M,Rp as P,uh as R,Kh as S,Ch as T,To as a,n0 as b,V as c,mu as d,su as e,hM as f,Aa as g,bu as h,kh as i,Q2 as j,oN as s,bM as t};
diff --git a/docs/js/lib/antd.D4maI9zB.js b/docs/js/lib/antd.D4maI9zB.js
deleted file mode 100644
index c44ae47..0000000
--- a/docs/js/lib/antd.D4maI9zB.js
+++ /dev/null
@@ -1,273 +0,0 @@
-import{g as Bh,R as W,a as pu,r as l,b as Di,c as uo,d as Hh}from"./react.DsKeDyCH.js";var om={exports:{}};/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return W.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cn(r)):Bo.isFragment(r)&&r.props?n=n.concat(cn(r.props.children,t)):n.push(r))}),n}var Ul={},qs=[],Vh=function(t){qs.push(t)};function rr(e,t){if(!e&&console!==void 0){var n=qs.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Kh(e,t){if(!e&&console!==void 0){var n=qs.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Wh(){Ul={}}function im(e,t,n){!t&&!Ul[n]&&(e(!1,n),Ul[n]=!0)}function je(e,t){im(rr,e,t)}function Xl(e,t){im(Kh,e,t)}je.preMessage=Vh;je.resetWarned=Wh;je.noteOnce=Xl;function De(e){"@babel/helpers - typeof";return De=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},De(e)}function Gh(e,t){if(De(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(De(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lm(e){var t=Gh(e,"string");return De(t)=="symbol"?t:t+""}function A(e,t,n){return(t=lm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0},e.prototype.connect_=function(){!Ql||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),t0?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ql||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=e0.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),cm=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof fo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new u0(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof fo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new d0(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),dm=typeof WeakMap<"u"?new WeakMap:new sm,fm=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=n0.getInstance(),r=new f0(t,n,this);dm.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){fm.prototype[e]=function(){var t;return(t=dm.get(this))[e].apply(t,arguments)}});var m0=function(){return typeof pi.ResizeObserver<"u"?pi.ResizeObserver:fm}(),yr=new Map;function v0(e){e.forEach(function(t){var n,r=t.target;(n=yr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var mm=new m0(v0);function g0(e,t){yr.has(e)||(yr.set(e,new Set),mm.observe(e)),yr.get(e).add(t)}function p0(e,t){yr.has(e)&&(yr.get(e).delete(t),yr.get(e).size||(mm.unobserve(e),yr.delete(e)))}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yu(e,t){for(var n=0;n1?rr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&rr(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(y0,"-").concat(a);return l.createElement(gm,ue({},e,{key:i,ref:a===0?t:void 0}),o)})}var cr=l.forwardRef(C0);cr.displayName="ResizeObserver";cr.Collection=Xh;function Wt(e,t){var n=H({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Zl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Cu+=1;var r=Cu;function o(a){if(a===0)ym(r),t();else{var i=hm(function(){o(a-1)});ji.set(r,i)}}return o(n),r};ut.cancel=function(e){var t=ji.get(e);return ym(e),bm(t)};ut.ids=function(){return ji};function Cm(e){if(Array.isArray(e))return e}function w0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function Sm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){return Cm(e)||w0(e,t)||Xs(e,t)||Sm()}function Qo(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function nn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jl(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Su="data-rc-order",xu="data-rc-priority",$0="rc-util-key",es=new Map;function xm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):$0}function Li(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function E0(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ys(e){return Array.from((es.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function wm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=E0(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(Su,i),s&&a&&c.setAttribute(xu,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Li(t),d=u.firstChild;if(r){if(s){var f=(t.styles||Ys(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Su)))return!1;var v=Number(m.getAttribute(xu)||0);return a>=v});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function $m(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Li(t);return(t.styles||Ys(n)).find(function(r){return r.getAttribute(xm(t))===e})}function Zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$m(e,t);if(n){var r=Li(t);r.removeChild(n)}}function I0(e,t){var n=es.get(e);if(!n||!Jl(document,n)){var r=wm("",t),o=r.parentNode;es.set(e,o),e.removeChild(r)}}function nr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Li(n),o=Ys(r),a=H(H({},n),{},{styles:o});I0(r,a);var i=$m(t,a);if(i){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=wm(e,a);return d.setAttribute(xm(a),t),d}function O0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function We(e,t){if(e==null)return{};var n,r,o=O0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(je(!c,"Warning: There may be circular references"),c)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=G(u,2),m=f[1];return o.internalGet(d)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),wu+=1}return Ft(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),fl=new Qs;function ea(e){var t=Array.isArray(e)?e:[e];return fl.has(t)||fl.set(t,new Em(t)),fl.get(t)}var A0=new WeakMap,ml={};function D0(e,t){for(var n=A0,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=$u.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof Em?n+=o.id:o&&De(o)==="object"?n+=ko(o,t):n+=o}),t&&(n=Qo(n)),$u.set(e,n)),n}function Eu(e,t){return Qo("".concat(t,"_").concat(ko(e,!0)))}var ns=nn();function X(e){return typeof e=="number"?"".concat(e,"px"):e}function bi(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=H(H({},o),{},(r={},A(r,mo,t),A(r,zn,n),r)),s=Object.keys(i).map(function(c){var u=i[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"")}var Im=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},F0=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=G(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Om=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,c,u=G(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,v=Im(d,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(v,")")}}),[a,F0(o,n,{scope:r==null?void 0:r.scope})]},Iu=nn()?l.useLayoutEffect:l.useEffect,mt=function(t,n){var r=l.useRef(!0);Iu(function(){return t(r.current)},n),Iu(function(){return r.current=!1,function(){r.current=!0}},[])},Vo=function(t,n){mt(function(r){if(!r)return t()},n)},_0=H({},Di),Ou=_0.useInsertionEffect,j0=function(t,n,r){l.useMemo(t,r),mt(function(){return n(!0)},r)},L0=Ou?function(e,t,n){return Ou(function(){return e(),t()},n)}:j0,z0=H({},Di),B0=z0.useInsertionEffect,H0=function(t){var n=[],r=!1;function o(a){if(r){rr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},k0=function(){return function(t){t()}},V0=typeof B0<"u"?H0:k0,rs=!1;function K0(){return rs}const W0=K0;if(typeof module<"u"&&module&&module.hot&&typeof window<"u"){var vl=window;if(typeof vl.webpackHotUpdate=="function"){var G0=vl.webpackHotUpdate;vl.webpackHotUpdate=function(){return rs=!0,setTimeout(function(){rs=!1},0),G0.apply(void 0,arguments)}}}function Zs(e,t,n,r,o){var a=l.useContext(zi),i=a.cache,s=[e].concat(ce(t)),c=ts(s),u=V0([c]),d=W0(),f=function(h){i.opUpdate(c,function(g){var C=g||[void 0,void 0],y=G(C,2),b=y[0],S=b===void 0?0:b,w=y[1],x=w;w&&d&&(r==null||r(x,d),x=null);var $=x||n(),I=[S,$];return h?h(I):I})};l.useMemo(function(){f()},[c]);var m=i.opGet(c);m||(f(),m=i.opGet(c));var v=m[1];return L0(function(){o==null||o(v)},function(p){return f(function(h){var g=G(h,2),C=g[0],y=g[1];return p&&C===0&&(o==null||o(v)),[C+1,y]}),function(){i.opUpdate(c,function(h){var g=h||[],C=G(g,2),y=C[0],b=y===void 0?0:y,S=C[1],w=b-1;return w===0?(u(function(){(p||!i.opGet(c))&&(r==null||r(S,!1))}),null):[b-1,S]})}},[c]),v}var q0={},U0="css-dev-only-do-not-override",Pr=new Map;function X0(e){Pr.set(e,(Pr.get(e)||0)+1)}function Y0(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(mo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Cr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var Q0=0;function Z0(e,t){Pr.set(e,(Pr.get(e)||0)-1);var n=Array.from(Pr.keys()),r=n.filter(function(o){var a=Pr.get(o)||0;return a<=0});n.length-r.length>Q0&&r.forEach(function(o){Y0(o,t),Pr.delete(o)})}var Rm=function(t,n,r,o){var a=r.getDerivativeToken(t),i=H(H({},a),n);return o&&(i=o(i)),i},Pm="token";function J0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(zi),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?q0:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=D0(function(){return Object.assign.apply(Object,[{}].concat(ce(t)))},t),p=ko(v),h=ko(u),g=m?ko(m):"",C=Zs(Pm,[s,e.id,p,h,g],function(){var y,b=f?f(v,u,e):Rm(v,u,e,d),S=H({},b),w="";if(m){var x=Om(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),$=G(x,2);b=$[0],w=$[1]}var I=Eu(b,s);b._tokenKey=I,S._tokenKey=Eu(S,s);var E=(y=m==null?void 0:m.key)!==null&&y!==void 0?y:I;b._themeKey=E,X0(E);var R="".concat(U0,"-").concat(Qo(I));return b._hashId=R,[b,R,S,w,(m==null?void 0:m.key)||""]},function(y){Z0(y[0]._themeKey,o)},function(y){var b=G(y,4),S=b[0],w=b[3];if(m&&w){var x=nr(w,Qo("css-variables-".concat(S._themeKey)),{mark:zn,prepend:"queue",attachTo:a,priority:-999});x[Cr]=o,x.setAttribute(mo,S._themeKey)}});return C}var eb=function(t,n,r){var o=G(t,5),a=o[2],i=o[3],s=o[4],c=r||{},u=c.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=bi(i,s,d,m,u);return[f,d,v]},tb={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},Nm="comm",Mm="rule",Tm="decl",nb="@import",rb="@keyframes",ob="@layer",Am=Math.abs,Js=String.fromCharCode;function Dm(e){return e.trim()}function ri(e,t,n){return e.replace(t,n)}function ab(e,t,n){return e.indexOf(t,n)}function ta(e,t){return e.charCodeAt(t)|0}function na(e,t,n){return e.slice(t,n)}function tr(e){return e.length}function ib(e){return e.length}function Ha(e,t){return t.push(e),e}var Bi=1,vo=1,Fm=0,Pn=0,Bt=0,Co="";function ec(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Bi,column:vo,length:i,return:"",siblings:s}}function lb(){return Bt}function sb(){return Bt=Pn>0?ta(Co,--Pn):0,vo--,Bt===10&&(vo=1,Bi--),Bt}function Bn(){return Bt=Pn2||os(Bt)>3?"":" "}function fb(e,t){for(;--t&&Bn()&&!(Bt<48||Bt>102||Bt>57&&Bt<65||Bt>70&&Bt<97););return Hi(e,oi()+(t<6&&Fr()==32&&Bn()==32))}function as(e){for(;Bn();)switch(Bt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&as(Bt);break;case 40:e===41&&as(e);break;case 92:Bn();break}return Pn}function mb(e,t){for(;Bn()&&e+Bt!==57;)if(e+Bt===84&&Fr()===47)break;return"/*"+Hi(t,Pn-1)+"*"+Js(e===47?e:Bn())}function vb(e){for(;!os(Fr());)Bn();return Hi(e,Pn)}function gb(e){return ub(ai("",null,null,null,[""],e=cb(e),0,[0],e))}function ai(e,t,n,r,o,a,i,s,c){for(var u=0,d=0,f=i,m=0,v=0,p=0,h=1,g=1,C=1,y=0,b="",S=o,w=a,x=r,$=b;g;)switch(p=y,y=Bn()){case 40:if(p!=108&&ta($,f-1)==58){ab($+=ri(gl(y),"&","&\f"),"&\f",Am(u?s[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:$+=gl(y);break;case 9:case 10:case 13:case 32:$+=db(p);break;case 92:$+=fb(oi()-1,7);continue;case 47:switch(Fr()){case 42:case 47:Ha(pb(mb(Bn(),oi()),t,n,c),c);break;default:$+="/"}break;case 123*h:s[u++]=tr($)*C;case 125*h:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:C==-1&&($=ri($,/\f/g,"")),v>0&&tr($)-f&&Ha(v>32?Pu($+";",r,n,f-1,c):Pu(ri($," ","")+";",r,n,f-2,c),c);break;case 59:$+=";";default:if(Ha(x=Ru($,t,n,u,d,o,s,b,S=[],w=[],f,a),a),y===123)if(d===0)ai($,t,x,x,S,a,f,s,w);else switch(m===99&&ta($,3)===110?100:m){case 100:case 108:case 109:case 115:ai(e,x,x,r&&Ha(Ru(e,x,x,0,0,o,s,b,o,S=[],f,w),w),o,w,f,s,r?S:w);break;default:ai($,x,x,x,[""],w,0,s,w)}}u=d=v=0,h=C=1,b=$="",f=i;break;case 58:f=1+tr($),v=p;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&sb()==125)continue}switch($+=Js(y),y*h){case 38:C=d>0?1:($+="\f",-1);break;case 44:s[u++]=(tr($)-1)*C,C=1;break;case 64:Fr()===45&&($+=gl(Bn())),m=Fr(),d=f=tr(b=$+=vb(oi())),y++;break;case 45:p===45&&tr($)==2&&(h=0)}}return a}function Ru(e,t,n,r,o,a,i,s,c,u,d,f){for(var m=o-1,v=o===0?a:[""],p=ib(v),h=0,g=0,C=0;h0?v[y]+" "+b:ri(b,/&\f/g,v[y])))&&(c[C++]=S);return ec(e,t,n,o===0?Mm:s,c,u,d,f)}function pb(e,t,n,r){return ec(e,t,n,Nm,Js(lb()),na(e,2,-2),0,r)}function Pu(e,t,n,r,o){return ec(e,t,n,Tm,na(e,0,r),na(e,r+1,-1),r,o)}function is(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f,v=n.linters,p=v===void 0?[]:v,h="",g={};function C(S){var w=S.getName(s);if(!g[w]){var x=e(S.style,n,{root:!1,parentSelectors:i}),$=G(x,1),I=$[0];g[w]="@keyframes ".concat(S.getName(s)).concat(I)}}function y(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(x){Array.isArray(x)?y(x,w):x&&w.push(x)}),w}var b=y(Array.isArray(t)?t:[t]);return b.forEach(function(S){var w=typeof S=="string"&&!o?{}:S;if(typeof w=="string")h+="".concat(w,`
-`);else if(w._keyframe)C(w);else{var x=m.reduce(function($,I){var E;return(I==null||(E=I.visit)===null||E===void 0?void 0:E.call(I,$))||$},w);Object.keys(x).forEach(function($){var I=x[$];if(De(I)==="object"&&I&&($!=="animationName"||!I._keyframe)&&!wb(I)){var E=!1,R=$.trim(),P=!1;(o||a)&&s?R.startsWith("@")?E=!0:R=$b($,s,d):o&&!s&&(R==="&"||R==="")&&(R="",P=!0);var N=e(I,n,{root:P,injectHash:E,parentSelectors:[].concat(ce(i),[R])}),T=G(N,2),O=T[0],j=T[1];g=H(H({},g),j),h+="".concat(R).concat(O)}else{let F=function(z,L){(De(I)!=="object"||!(I!=null&&I[zm]))&&[bb,yb].concat(ce(p)).forEach(function(k){return k(z,L,{path:u,hashId:s,parentSelectors:i})});var _=z.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),B=L;!tb[z]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),z==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(C(L),B=L.getName(s)),h+="".concat(_,":").concat(B,";")};var D,M=(D=I==null?void 0:I.value)!==null&&D!==void 0?D:I;De(I)==="object"&&I!==null&&I!==void 0&&I[Bm]&&Array.isArray(M)?M.forEach(function(z){F($,z)}):F($,M)}})}}),o?c&&(h="@layer ".concat(c.name," {").concat(h,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(`
-`))):h="{".concat(h,"}"),[h,g]};function Hm(e,t){return Qo("".concat(e.join("%")).concat(t))}function Ib(){return null}var km="style";function ls(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(zi),f=d.autoClear,m=d.mock,v=d.defaultCache,p=d.hashPriority,h=d.container,g=d.ssrInline,C=d.transformers,y=d.linters,b=d.cache,S=d.layer,w=n._tokenKey,x=[w];S&&x.push("layer"),x.push.apply(x,ce(r));var $=ns;m!==void 0&&($=m==="client");var I=Zs(km,x,function(){var T=x.join("|");if(Sb(T)){var O=xb(T),j=G(O,2),D=j[0],M=j[1];if(D)return[D,w,M,{},s,u]}var F=t(),z=Eb(F,{hashId:o,hashPriority:p,layer:S?a:void 0,path:r.join("-"),transformers:C,linters:y}),L=G(z,2),_=L[0],B=L[1],k=ii(_),q=Hm(x,k);return[k,w,q,B,s,u]},function(T,O){var j=G(T,3),D=j[2];(O||f)&&ns&&Zo(D,{mark:zn})},function(T){var O=G(T,4),j=O[0];O[1];var D=O[2],M=O[3];if($&&j!==jm){var F={mark:zn,prepend:S?!1:"queue",attachTo:h,priority:u},z=typeof i=="function"?i():i;z&&(F.csp={nonce:z});var L=[],_=[];Object.keys(M).forEach(function(k){k.startsWith("@layer")?L.push(k):_.push(k)}),L.forEach(function(k){nr(ii(M[k]),"_layer-".concat(k),H(H({},F),{},{prepend:!0}))});var B=nr(j,D,F);B[Cr]=b.instanceId,B.setAttribute(mo,w),B.setAttribute(N0,x.join("|")),_.forEach(function(k){nr(ii(M[k]),"_effect-".concat(k),F)})}}),E=G(I,3),R=E[0],P=E[1],N=E[2];return function(T){var O;if(!g||$||!v)O=l.createElement(Ib,null);else{var j;O=l.createElement("style",ue({},(j={},A(j,mo,P),A(j,zn,N),j),{dangerouslySetInnerHTML:{__html:R}}))}return l.createElement(l.Fragment,null,O,T)}}var Ob=function(t,n,r){var o=G(t,6),a=o[0],i=o[1],s=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var v=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return v=bi(a,i,s,p,m),c&&Object.keys(c).forEach(function(h){if(!n[h]){n[h]=!0;var g=ii(c[h]),C=bi(g,i,"_effect-".concat(h),p,m);h.startsWith("@layer")?v=C+v:v+=C}}),[d,s,v]},Vm="cssVar",Rb=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(zi),f=d.cache.instanceId,m=d.container,v=s._tokenKey,p=[].concat(ce(t.path),[r,u,v]),h=Zs(Vm,p,function(){var g=n(),C=Om(g,r,{prefix:o,unitless:a,ignore:i,scope:u}),y=G(C,2),b=y[0],S=y[1],w=Hm(p,S);return[b,S,w,r]},function(g){var C=G(g,3),y=C[2];ns&&Zo(y,{mark:zn})},function(g){var C=G(g,3),y=C[1],b=C[2];if(y){var S=nr(y,b,{mark:zn,prepend:"queue",attachTo:m,priority:-999});S[Cr]=f,S.setAttribute(mo,r)}});return h},Pb=function(t,n,r){var o=G(t,4),a=o[1],i=o[2],s=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=bi(a,s,i,f,u);return[d,i,m]},To;To={},A(To,km,Ob),A(To,Pm,eb),A(To,Vm,Pb);var st=function(){function e(t,n){Dt(this,e),A(this,"name",void 0),A(this,"style",void 0),A(this,"_keyframe",!0),this.name=t,this.style=n}return Ft(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Ur(e){return e.notSplit=!0,e}Ur(["borderTop","borderBottom"]),Ur(["borderTop"]),Ur(["borderBottom"]),Ur(["borderLeft","borderRight"]),Ur(["borderLeft"]),Ur(["borderRight"]);var tc=l.createContext({});function Km(e){return Cm(e)||pm(e)||Xs(e)||Sm()}function Un(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Un(e,t.slice(0,-1))?e:Wm(e,t,n,r)}function Nb(e){return De(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Mu(e){return Array.isArray(e)?[]:{}}var Mb=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function io(){for(var e=arguments.length,t=new Array(e),n=0;n{je(e,`[antd: ${t}] ${n}`)};const Gm=l.createContext({}),vt=e=>{const{strict:t}=l.useContext(Gm),n=(r,o,a)=>{if(!r)if(t===!1&&o==="deprecated"){const i=vr;vr||(vr={}),vr[e]=vr[e]||[],vr[e].includes(a||"")||vr[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",vr)}else ur(r,e,a)};return n.deprecated=(r,o,a,i)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},n},qm=l.createContext(void 0);var Ab={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"},Db={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 Um={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Tu={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Db),timePickerLocale:Object.assign({},Um)},hn="${label} is not a valid ${type}",wr={locale:"en",Pagination:Ab,DatePicker:Tu,TimePicker:Um,Calendar:Tu,global:{placeholder:"Please select"},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:hn,method:hn,array:hn,object:hn,number:hn,date:hn,boolean:hn,integer:hn,float:hn,regexp:hn,email:hn,url:hn,hex:hn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let li=Object.assign({},wr.Modal),si=[];const Au=()=>si.reduce((e,t)=>Object.assign(Object.assign({},e),t),wr.Modal);function Fb(e){if(e){const t=Object.assign({},e);return si.push(t),li=Au(),()=>{si=si.filter(n=>n!==t),li=Au()}}li=Object.assign({},wr.Modal)}function Xm(){return li}const nc=l.createContext(void 0),ba=(e,t)=>{const n=l.useContext(nc),r=l.useMemo(()=>{var a;const i=t||wr[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=l.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?wr.locale:a},[n]);return[r,o]},Ym="internalMark",Qm=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;vt("LocaleProvider")(r===Ym,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),l.useEffect(()=>Fb(t&&t.Modal),[t]);const o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(nc.Provider,{value:o},n)};Qm.displayName="LocaleProvider";function Yt(e,t){_b(e)&&(e="100%");var n=jb(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ka(e){return Math.min(1,Math.max(0,e))}function _b(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jb(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Zm(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Va(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Nr(e){return e.length===1?"0"+e:String(e)}function Lb(e,t,n){return{r:Yt(e,255)*255,g:Yt(t,255)*255,b:Yt(n,255)*255}}function Du(e,t,n){e=Yt(e,255),t=Yt(t,255),n=Yt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else{var c=r-o;switch(i=s>.5?c/(2-r-o):c/(r+o),r){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zb(e,t,n){var r,o,a;if(e=Yt(e,360),t=Yt(t,100),n=Yt(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=pl(s,i,e+1/3),o=pl(s,i,e),a=pl(s,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function ss(e,t,n){e=Yt(e,255),t=Yt(t,255),n=Yt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,c=r===0?0:s/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var us={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function oo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=Gb(e)),typeof e=="object"&&(Qn(e.r)&&Qn(e.g)&&Qn(e.b)?(t=Lb(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qn(e.h)&&Qn(e.s)&&Qn(e.v)?(r=Va(e.s),o=Va(e.v),t=Bb(e.h,r,o),i=!0,s="hsv"):Qn(e.h)&&Qn(e.s)&&Qn(e.l)&&(r=Va(e.s),a=Va(e.l),t=zb(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Zm(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Kb="[-\\+]?\\d+%?",Wb="[-\\+]?\\d*\\.\\d+%?",Sr="(?:".concat(Wb,")|(?:").concat(Kb,")"),hl="[\\s|\\(]+(".concat(Sr,")[,|\\s]+(").concat(Sr,")[,|\\s]+(").concat(Sr,")\\s*\\)?"),bl="[\\s|\\(]+(".concat(Sr,")[,|\\s]+(").concat(Sr,")[,|\\s]+(").concat(Sr,")[,|\\s]+(").concat(Sr,")\\s*\\)?"),Fn={CSS_UNIT:new RegExp(Sr),rgb:new RegExp("rgb"+hl),rgba:new RegExp("rgba"+bl),hsl:new RegExp("hsl"+hl),hsla:new RegExp("hsla"+bl),hsv:new RegExp("hsv"+hl),hsva:new RegExp("hsva"+bl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Gb(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(us[e])e=us[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Fn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Fn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Fn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Fn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Fn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Fn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Fn.hex8.exec(e),n?{r:yn(n[1]),g:yn(n[2]),b:yn(n[3]),a:Fu(n[4]),format:t?"name":"hex8"}:(n=Fn.hex6.exec(e),n?{r:yn(n[1]),g:yn(n[2]),b:yn(n[3]),format:t?"name":"hex"}:(n=Fn.hex4.exec(e),n?{r:yn(n[1]+n[1]),g:yn(n[2]+n[2]),b:yn(n[3]+n[3]),a:Fu(n[4]+n[4]),format:t?"name":"hex8"}:(n=Fn.hex3.exec(e),n?{r:yn(n[1]+n[1]),g:yn(n[2]+n[2]),b:yn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Qn(e){return!!Fn.CSS_UNIT.exec(String(e))}var Ot=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Vb(t)),this.originalInput=t;var o=oo(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Zm(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=ss(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=ss(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Du(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Du(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),cs(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Hb(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Yt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Yt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+cs(this.r,this.g,this.b,!1),n=0,r=Object.entries(us);n=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ka(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ka(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ka(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ka(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ka*t:Math.round(e.h)+Ka*t:r=n?Math.round(e.h)+Ka*t:Math.round(e.h)-Ka*t,r<0?r+=360:r>=360&&(r-=360),r}function zu(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-_u*t:t===ev?r=e.s+_u:r=e.s+qb*t,r>1&&(r=1),n&&t===Jm&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Bu(e,t,n){var r;return n?r=e.v+Ub*t:r=e.v-Xb*t,r>1&&(r=1),Number(r.toFixed(2))}function or(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=oo(e),o=Jm;o>0;o-=1){var a=ju(r),i=Wa(oo({h:Lu(a,o,!0),s:zu(a,o,!0),v:Bu(a,o,!0)}));n.push(i)}n.push(Wa(r));for(var s=1;s<=ev;s+=1){var c=ju(r),u=Wa(oo({h:Lu(c,s),s:zu(c,s),v:Bu(c,s)}));n.push(u)}return t.theme==="dark"?Yb.map(function(d){var f=d.index,m=d.opacity,v=Wa(Qb(oo(t.backgroundColor||"#141414"),oo(n[f]),m*100));return v}):n}var yl={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"},ci={},Cl={};Object.keys(yl).forEach(function(e){ci[e]=or(yl[e]),ci[e].primary=ci[e][5],Cl[e]=or(yl[e],{theme:"dark",backgroundColor:"#141414"}),Cl[e].primary=Cl[e][5]});var Zb=ci.blue;const rc={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"},go=Object.assign(Object.assign({},rc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
-'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
-'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function tv(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),v=n(a),p=n(i),h=n(s),g=r(u,d),C=e.colorLink||e.colorInfo,y=n(C);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Ot("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Jb=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function ey(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},Jb(r))}const nv=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ui(e){return(e+8)/e}function ty(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ui(n)}))}const rv=e=>{const t=ty(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function ny(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 Zn=(e,t)=>new Ot(e).setAlpha(t).toRgbString(),Ao=(e,t)=>new Ot(e).darken(t).toHexString(),ry=e=>{const t=or(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]}},oy=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zn(r,.88),colorTextSecondary:Zn(r,.65),colorTextTertiary:Zn(r,.45),colorTextQuaternary:Zn(r,.25),colorFill:Zn(r,.15),colorFillSecondary:Zn(r,.06),colorFillTertiary:Zn(r,.04),colorFillQuaternary:Zn(r,.02),colorBgLayout:Ao(n,4),colorBgContainer:Ao(n,0),colorBgElevated:Ao(n,0),colorBgSpotlight:Zn(r,.85),colorBgBlur:"transparent",colorBorder:Ao(n,15),colorBorderSecondary:Ao(n,6)}};function ya(e){const t=Object.keys(rc).map(n=>{const r=or(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),tv(e,{generateColorPalettes:ry,generateNeutralColorPalettes:oy})),rv(e.fontSize)),ny(e)),nv(e)),ey(e))}const ov=ea(ya),ra={token:go,override:{override:go},hashed:!0},av=W.createContext(ra),oc="anticon",ay=(e,t)=>t||(e?`ant-${e}`:"ant"),He=l.createContext({getPrefixCls:ay,iconPrefixCls:oc}),iy=`-ant-${Date.now()}-${Math.random()}`;function ly(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(i,s)=>{const c=new Ot(i),u=or(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Ot(t.primaryColor),s=or(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new Ot(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
- :root {
- ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
-`)}
- }
- `.trim()}function sy(e,t){const n=ly(e,t);nn()?nr(n,`${iy}-dynamic-theme`):ur(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Hn=l.createContext(!1),ac=e=>{let{children:t,disabled:n}=e;const r=l.useContext(Hn);return l.createElement(Hn.Provider,{value:n??r},t)},zr=l.createContext(void 0),cy=e=>{let{children:t,size:n}=e;const r=l.useContext(zr);return l.createElement(zr.Provider,{value:n||r},t)};function uy(){const e=l.useContext(Hn),t=l.useContext(zr);return{componentDisabled:e,componentSize:t}}const oa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],dy="5.17.3";function Sl(e){return e>=0&&e<=255}function Ga(e,t){const{r:n,g:r,b:o,a}=new Ot(e).toRgb();if(a<1)return e;const{r:i,g:s,b:c}=new Ot(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Sl(d)&&Sl(f)&&Sl(m))return new Ot({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Ot({r:n,g:r,b:o,a:1}).toRgbString()}var fy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ga(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ga(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ga(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ga(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowSecondary:`
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowTertiary:`
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
- `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
- 0 1px 2px -2px ${new Ot("rgba(0, 0, 0, 0.16)").toRgbString()},
- 0 3px 6px 0 ${new Ot("rgba(0, 0, 0, 0.12)").toRgbString()},
- 0 5px 12px 4px ${new Ot("rgba(0, 0, 0, 0.09)").toRgbString()}
- `,boxShadowDrawerRight:`
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowDrawerLeft:`
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowDrawerUp:`
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowDrawerDown:`
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Hu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,a=Hu(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=ic(i),a&&Object.entries(a).forEach(s=>{let[c,u]=s;const{theme:d}=u,f=Hu(u,["theme"]);let m=f;d&&(m=sv(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=m}),i};function Gt(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=W.useContext(av),a=`${dy}-${t||""}`,i=n||ov,[s,c,u]=J0(i,[go,e],{salt:a,override:r,getComputedToken:sv,formatToken:ic,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:iv,ignore:lv,preserve:my}});return[i,u,t?c:"",s,o]}function cv(e,t,n){return t=Lr(t),vm(e,_i()?Reflect.construct(t,[],Lr(e).constructor):t.apply(e,n))}let uv=Ft(function e(){Dt(this,e)});const dv="CALC_UNIT",vy=new RegExp(dv,"g");function xl(e){return typeof e=="number"?`${e}${dv}`:e}let gy=function(e){function t(n){var r;return Dt(this,t),r=cv(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=xl(n):typeof n=="string"&&(r.result=n),r}return Yn(t,e),Ft(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${xl(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${xl(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{};return this.result=this.result.replace(vy,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}])}(uv),py=function(e){function t(n){var r;return Dt(this,t),r=cv(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Yn(t,e),Ft(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}])}(uv);const hy=e=>{const t=e==="css"?gy:py;return n=>new t(n)};function kt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},So=()=>({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"}}),Ci=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),by=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),yy=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},xo=e=>({outline:`${X(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),aa=e=>({"&:focus-visible":Object.assign({},xo(e))});function Cy(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rX(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rX(o)).join(",")})`}}}let ds=!0;function ct(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),ds=!0,r}const ku={};function Sy(){}const xy=e=>{let t,n=e,r=Sy;return typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return ds&&t.add(a),o[a]}}),r=(o,a)=>{var i;ku[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=ku[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},fv=(e,t)=>{const[n,r]=Gt();return ls({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},So()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},mv=(e,t,n)=>{var r;return typeof n=="function"?n(ct(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},vv=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(s=>{let[c,u]=s;var d;je(!(o!=null&&o[c]),`Component Token \`${String(c)}\` of ${e} is deprecated. Please use \`${String(u)}\` instead.`),(o!=null&&o[c]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[c]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},wy=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function lc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return function(s){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;const[u,d,f,m,v]=Gt(),{getPrefixCls:p,iconPrefixCls:h,csp:g}=l.useContext(He),C=p(),y=v?"css":"js",b=hy(y),{max:S,min:w}=Cy(y),x={theme:u,token:m,hashId:f,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};return ls(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",C]}),()=>[{"&":by(m)}]),fv(h,g),[ls(Object.assign(Object.assign({},x),{path:[i,s,h]}),()=>{if(r.injectStyle===!1)return[];const{token:I,flush:E}=xy(m),R=mv(a,d,n),P=`.${s}`,N=vv(a,d,R,{deprecatedTokens:r.deprecatedTokens});v&&Object.keys(R).forEach(j=>{R[j]=`var(${Im(j,wy(a,v.prefix))})`});const T=ct(I,{componentCls:P,prefixCls:s,iconCls:`.${h}`,antCls:`.${C}`,calc:b,max:S,min:w},v?R:N),O=t(T,{hashId:f,prefixCls:s,rootPrefixCls:C,iconPrefixCls:h});return E(a,N),[r.resetStyle===!1?null:yy(T,s,c,r.resetFont),O]}),f]}}const sc=(e,t,n,r)=>{const o=lc(e,t,n,Object.assign({resetStyle:!1,order:-998},r)),a=i=>{let{prefixCls:s,rootCls:c=s}=i;return o(s,c),null};return a.displayName=`SubStyle_${Array.isArray(e)?e.join("."):e}`,a},$y=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=n??{},i={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{i[r(u)]=o[u]});const s=u=>{let{rootCls:d,cssVar:f}=u;const[,m]=Gt();return Rb({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},iv),i),ignore:lv,token:m,scope:d},()=>{const v=mv(e,m,t),p=vv(e,m,v,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(v).forEach(h=>{p[r(h)]=p[h],delete p[h]}),p}),null};return u=>{const[,,,,d]=Gt();return[f=>a&&d?W.createElement(W.Fragment,null,W.createElement(s,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},Rt=(e,t,n,r)=>{const o=lc(e,t,n,r),a=$y(Array.isArray(e)?e[0]:e,n,r);return function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;const[,c]=o(i,s),[u,d]=a(s);return[u,c,d]}};function Ey(e,t){return oa.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const Iy=Object.assign({},Di),{useId:Vu}=Iy,Oy=()=>"",Ry=typeof Vu>"u"?Oy:Vu;function Py(e,t,n){var r,o;const a=vt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},ra),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:ra.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=Ry();{const u=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((o=i.cssVar)===null||o===void 0)&&o.key)||c);a(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ha(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(p=>{f[p]=Object.assign(Object.assign({},f[p]),e.components[p])});const m=`css-var-${c.replace(/:/g,"")}`,v=((u=i.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||m});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:v})},[i,s],(u,d)=>u.some((f,m)=>{const v=d[m];return!Jo(f,v,!0)}))}var Ny=["children"],gv=l.createContext({});function My(e){var t=e.children,n=We(e,Ny);return l.createElement(gv.Provider,{value:n},t)}var Ty=function(e){Yn(n,e);var t=$r(n);function n(){return Dt(this,n),t.apply(this,arguments)}return Ft(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component),hr="none",qa="appear",Ua="enter",Xa="leave",Ku="none",Ln="prepare",lo="start",so="active",cc="end",pv="prepared";function Wu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Ay(e,t){var n={animationend:Wu("Animation","AnimationEnd"),transitionend:Wu("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Dy=Ay(nn(),typeof window<"u"?window:{}),hv={};if(nn()){var Fy=document.createElement("div");hv=Fy.style}var Ya={};function bv(e){if(Ya[e])return Ya[e];var t=Dy[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var a=ut(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Ly=[Ln,lo,so,cc],zy=[Ln,pv],wv=!1,By=!0;function $v(e){return e===so||e===cc}const Hy=function(e,t,n){var r=xr(Ku),o=G(r,2),a=o[0],i=o[1],s=jy(),c=G(s,2),u=c[0],d=c[1];function f(){i(Ln,!0)}var m=t?zy:Ly;return xv(function(){if(a!==Ku&&a!==cc){var v=m.indexOf(a),p=m[v+1],h=n(a);h===wv?i(p,!0):p&&u(function(g){function C(){g.isCanceled()||i(p,!0)}h===!0?C():Promise.resolve(h).then(C)})}},[e,a]),l.useEffect(function(){return function(){d()}},[]),[f,a]};function ky(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,p=r.onLeavePrepare,h=r.onAppearStart,g=r.onEnterStart,C=r.onLeaveStart,y=r.onAppearActive,b=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,$=r.onLeaveEnd,I=r.onVisibleChanged,E=xr(),R=G(E,2),P=R[0],N=R[1],T=xr(hr),O=G(T,2),j=O[0],D=O[1],M=xr(null),F=G(M,2),z=F[0],L=F[1],_=l.useRef(!1),B=l.useRef(null);function k(){return n()}var q=l.useRef(!1);function Q(){D(hr,!0),L(null,!0)}var te=kt(function(de){if(j!==hr){var oe=k();if(!(de&&!de.deadline&&de.target!==oe)){var se=q.current,$e;j===qa&&se?$e=w==null?void 0:w(oe,de):j===Ua&&se?$e=x==null?void 0:x(oe,de):j===Xa&&se&&($e=$==null?void 0:$(oe,de)),se&&$e!==!1&&Q()}}}),U=_y(te),Z=G(U,1),ae=Z[0],J=function(oe){switch(oe){case qa:return A(A(A({},Ln,m),lo,h),so,y);case Ua:return A(A(A({},Ln,v),lo,g),so,b);case Xa:return A(A(A({},Ln,p),lo,C),so,S);default:return{}}},Y=l.useMemo(function(){return J(j)},[j]),re=Hy(j,!e,function(de){if(de===Ln){var oe=Y[Ln];return oe?oe(k()):wv}if(ne in Y){var se;L(((se=Y[ne])===null||se===void 0?void 0:se.call(Y,k(),null))||null)}return ne===so&&j!==hr&&(ae(k()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){te({deadline:!0})},d))),ne===pv&&Q(),By}),ee=G(re,2),V=ee[0],ne=ee[1],fe=$v(ne);q.current=fe,xv(function(){N(t);var de=_.current;_.current=!0;var oe;!de&&t&&s&&(oe=qa),de&&t&&a&&(oe=Ua),(de&&!t&&u||!de&&f&&!t&&u)&&(oe=Xa);var se=J(oe);oe&&(e||se[Ln])?(D(oe),V()):D(hr)},[t]),l.useEffect(function(){(j===qa&&!s||j===Ua&&!a||j===Xa&&!u)&&D(hr)},[s,a,u]),l.useEffect(function(){return function(){_.current=!1,clearTimeout(B.current)}},[]);var ye=l.useRef(!1);l.useEffect(function(){P&&(ye.current=!0),P!==void 0&&j===hr&&((ye.current||P)&&(I==null||I(P)),ye.current=!0)},[P,j]);var be=z;return Y[Ln]&&ne===lo&&(be=H({transition:"none"},be)),[j,ne,be,P??t]}function Vy(e){var t=e;De(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=l.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,p=o.eventProps,h=l.useContext(gv),g=h.motion,C=n(o,g),y=l.useRef(),b=l.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:Ho(b.current)}catch{return null}}var w=ky(C,s,S,o),x=G(w,4),$=x[0],I=x[1],E=x[2],R=x[3],P=l.useRef(R);R&&(P.current=!0);var N=l.useCallback(function(z){y.current=z,Us(a,z)},[a]),T,O=H(H({},p),{},{visible:s});if(!f)T=null;else if($===hr)R?T=f(H({},O),N):!u&&P.current&&v?T=f(H(H({},O),{},{className:v}),N):d||!u&&!v?T=f(H(H({},O),{},{style:{display:"none"}}),N):T=null;else{var j;I===Ln?j="prepare":$v(I)?j="active":I===lo&&(j="start");var D=Uu(m,"".concat($,"-").concat(j));T=f(H(H({},O),{},{className:K(Uu(m,$),A(A({},D,D&&j),m,typeof m=="string")),style:E}),N)}if(l.isValidElement(T)&&sr(T)){var M=T,F=M.ref;F||(T=l.cloneElement(T,{ref:N}))}return l.createElement(Ty,{ref:b},T)});return r.displayName="CSSMotion",r}const Vn=Vy(Sv);var fs="add",ms="keep",vs="remove",$l="removed";function Ky(e){var t;return e&&De(e)==="object"&&"key"in e?t=e:t={key:e},H(H({},t),{},{key:String(t.key)})}function gs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Ky)}function Wy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=gs(e),i=gs(t);a.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==vs}),n.forEach(function(d){d.key===u&&(d.status=ms)})}),n}var Gy=["component","children","onVisibleChanged","onAllRemoved"],qy=["status"],Uy=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Xy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vn,n=function(r){Yn(a,r);var o=$r(a);function a(){var i;Dt(this,a);for(var s=arguments.length,c=new Array(s),u=0;u{let{dropdownMatchSelectWidth:t}=e;return vt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});Iv.displayName="PropWarning";const Qy=Iv;var Zy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{ur(!ps,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")},Jy=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],eC="ant";let Si,Rv,Pv,Nv;function di(){return Si||eC}function tC(){return Rv||oc}function nC(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const rC=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Si=t),n!==void 0&&(Rv=n),"holderRender"in e&&(Nv=o),r&&(nC(r)?(ur(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),sy(di(),r)):Pv=r)},uc=()=>({getPrefixCls:(e,t)=>t||(e?`${di()}-${e}`:di()),getIconPrefixCls:tC,getRootPrefixCls:()=>Si||di(),getTheme:()=>Pv,holderRender:Nv}),oC=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:v,popupOverflow:p,legacyLocale:h,parentContext:g,iconPrefixCls:C,theme:y,componentDisabled:b,segmented:S,statistic:w,spin:x,calendar:$,carousel:I,cascader:E,collapse:R,typography:P,checkbox:N,descriptions:T,divider:O,drawer:j,skeleton:D,steps:M,image:F,layout:z,list:L,mentions:_,modal:B,progress:k,result:q,slider:Q,breadcrumb:te,menu:U,pagination:Z,input:ae,textArea:J,empty:Y,badge:re,radio:ee,rate:V,switch:ne,transfer:fe,avatar:ye,message:be,tag:de,table:oe,card:se,tabs:$e,timeline:Ce,timePicker:pe,upload:Se,notification:me,tree:Fe,colorPicker:Le,datePicker:Ee,rangePicker:we,flex:Ue,wave:ke,dropdown:tt,warning:dt,tour:ft,floatButtonGroup:Ve}=e,nt=l.useCallback((ge,ze)=>{const{prefixCls:rt}=e;if(ze)return ze;const he=rt||g.getPrefixCls("");return ge?`${he}-${ge}`:he},[g.getPrefixCls,e.prefixCls]),et=C||g.iconPrefixCls||oc,pt=n||g.csp;fv(et,pt);const lt=Py(y,g.theme,{prefixCls:nt("")});ps=ps||!!lt;const bt={csp:pt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||h,direction:u,space:d,virtual:f,popupMatchSelectWidth:v??m,popupOverflow:p,getPrefixCls:nt,iconPrefixCls:et,theme:lt,segmented:S,statistic:w,spin:x,calendar:$,carousel:I,cascader:E,collapse:R,typography:P,checkbox:N,descriptions:T,divider:O,drawer:j,skeleton:D,steps:M,image:F,input:ae,textArea:J,layout:z,list:L,mentions:_,modal:B,progress:k,result:q,slider:Q,breadcrumb:te,menu:U,pagination:Z,empty:Y,badge:re,radio:ee,rate:V,switch:ne,transfer:fe,avatar:ye,message:be,tag:de,table:oe,card:se,tabs:$e,timeline:Ce,timePicker:pe,upload:Se,notification:me,tree:Fe,colorPicker:Le,datePicker:Ee,rangePicker:we,flex:Ue,wave:ke,dropdown:tt,warning:dt,tour:ft,floatButtonGroup:Ve};vt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Me=Object.assign({},g);Object.keys(bt).forEach(ge=>{bt[ge]!==void 0&&(Me[ge]=bt[ge])}),Jy.forEach(ge=>{const ze=e[ge];ze&&(Me[ge]=ze)}),typeof r<"u"&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const xe=ha(()=>Me,Me,(ge,ze)=>{const rt=Object.keys(ge),he=Object.keys(ze);return rt.length!==he.length||rt.some(Ae=>ge[Ae]!==ze[Ae])}),Ne=l.useMemo(()=>({prefixCls:et,csp:pt}),[et,pt]);let ve=l.createElement(l.Fragment,null,l.createElement(Qy,{dropdownMatchSelectWidth:m}),t);const Be=l.useMemo(()=>{var ge,ze,rt,he;return io(((ge=wr.Form)===null||ge===void 0?void 0:ge.defaultValidateMessages)||{},((rt=(ze=xe.locale)===null||ze===void 0?void 0:ze.Form)===null||rt===void 0?void 0:rt.defaultValidateMessages)||{},((he=xe.form)===null||he===void 0?void 0:he.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[xe,i==null?void 0:i.validateMessages]);Object.keys(Be).length>0&&(ve=l.createElement(qm.Provider,{value:Be},ve)),s&&(ve=l.createElement(Qm,{locale:s,_ANT_MARK__:Ym},ve)),(et||pt)&&(ve=l.createElement(tc.Provider,{value:Ne},ve)),c&&(ve=l.createElement(cy,{size:c},ve)),ve=l.createElement(Yy,null,ve);const Pe=l.useMemo(()=>{const ge=lt||{},{algorithm:ze,token:rt,components:he,cssVar:Ae}=ge,Ie=Zy(ge,["algorithm","token","components","cssVar"]),Ke=ze&&(!Array.isArray(ze)||ze.length>0)?ea(ze):ov,Qe={};Object.entries(he||{}).forEach(It=>{let[xt,wt]=It;const Ze=Object.assign({},wt);"algorithm"in Ze&&(Ze.algorithm===!0?Ze.theme=Ke:(Array.isArray(Ze.algorithm)||typeof Ze.algorithm=="function")&&(Ze.theme=ea(Ze.algorithm)),delete Ze.algorithm),Qe[xt]=Ze});const ot=Object.assign(Object.assign({},go),rt);return Object.assign(Object.assign({},Ie),{theme:Ke,token:ot,components:Qe,override:Object.assign({override:ot},Qe),cssVar:Ae})},[lt]);return y&&(ve=l.createElement(av.Provider,{value:Pe},ve)),xe.warning&&(ve=l.createElement(Gm.Provider,{value:xe.warning},ve)),b!==void 0&&(ve=l.createElement(ac,{disabled:b},ve)),l.createElement(He.Provider,{value:xe},ve)},Kn=e=>{const t=l.useContext(He),n=l.useContext(nc);return l.createElement(oC,Object.assign({parentContext:t,legacyLocale:n},e))};Kn.ConfigContext=He;Kn.SizeContext=zr;Kn.config=rC;Kn.useConfig=uy;Object.defineProperty(Kn,"SizeContext",{get:()=>(ur(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),zr)});Kn.displayName="ConfigProvider";var aC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Mv(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function iC(e){return Mv(e)instanceof ShadowRoot}function xi(e){return iC(e)?Mv(e):null}function lC(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function sC(e,t){je(e,"[@ant-design/icons] ".concat(t))}function Xu(e){return De(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(De(e.icon)==="object"||typeof e.icon=="function")}function Yu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[lC(n)]=r}return t},{})}function hs(e,t,n){return n?W.createElement(e.tag,H(H({key:t},Yu(e.attrs)),n),(e.children||[]).map(function(r,o){return hs(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):W.createElement(e.tag,H({key:t},Yu(e.attrs)),(e.children||[]).map(function(r,o){return hs(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Tv(e){return or(e)[0]}function Av(e){return e?Array.isArray(e)?e:[e]:[]}var cC=`
-.anticon {
- display: inline-flex;
- align-items: center;
- color: inherit;
- font-style: normal;
- line-height: 0;
- text-align: center;
- text-transform: none;
- vertical-align: -0.125em;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-.anticon > * {
- line-height: 1;
-}
-
-.anticon svg {
- display: inline-block;
-}
-
-.anticon::before {
- display: none;
-}
-
-.anticon .anticon-icon {
- display: block;
-}
-
-.anticon[tabindex] {
- cursor: pointer;
-}
-
-.anticon-spin::before,
-.anticon-spin {
- display: inline-block;
- -webkit-animation: loadingCircle 1s infinite linear;
- animation: loadingCircle 1s infinite linear;
-}
-
-@-webkit-keyframes loadingCircle {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
-
-@keyframes loadingCircle {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
-`,uC=function(t){var n=l.useContext(tc),r=n.csp,o=n.prefixCls,a=cC;o&&(a=a.replace(/anticon/g,o)),l.useEffect(function(){var i=t.current,s=xi(i);nr(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},dC=["icon","className","onClick","style","primaryColor","secondaryColor"],Ko={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fC(e){var t=e.primaryColor,n=e.secondaryColor;Ko.primaryColor=t,Ko.secondaryColor=n||Tv(t),Ko.calculated=!!n}function mC(){return H({},Ko)}var wo=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,c=We(t,dC),u=l.useRef(),d=Ko;if(i&&(d={primaryColor:i,secondaryColor:s||Tv(i)}),uC(u),sC(Xu(n),"icon should be icon definiton, but got ".concat(n)),!Xu(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=H(H({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),hs(f.icon,"svg-".concat(f.name),H(H({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};wo.displayName="IconReact";wo.getTwoToneColors=mC;wo.setTwoToneColors=fC;function Dv(e){var t=Av(e),n=G(t,2),r=n[0],o=n[1];return wo.setTwoToneColors({primaryColor:r,secondaryColor:o})}function vC(){var e=wo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var gC=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Dv(Zb.primary);var St=l.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=We(e,gC),d=l.useContext(tc),f=d.prefixCls,m=f===void 0?"anticon":f,v=d.rootClassName,p=K(v,m,A(A({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),h=i;h===void 0&&s&&(h=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,C=Av(c),y=G(C,2),b=y[0],S=y[1];return l.createElement("span",ue({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:s,className:p}),l.createElement(wo,{icon:r,primaryColor:b,secondaryColor:S,style:g}))});St.displayName="AntdIcon";St.getTwoToneColor=vC;St.setTwoToneColor=Dv;var pC=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:aC}))},ki=l.forwardRef(pC);ki.displayName="CheckCircleFilled";var hC={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"},bC=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:hC}))},$o=l.forwardRef(bC);$o.displayName="CloseCircleFilled";var yC={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"},CC=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:yC}))},Eo=l.forwardRef(CC);Eo.displayName="CloseOutlined";var SC={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"},xC=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:SC}))},Vi=l.forwardRef(xC);Vi.displayName="ExclamationCircleFilled";var wC={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"},$C=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:wC}))},dc=l.forwardRef($C);dc.displayName="InfoCircleFilled";var EC=`accept acceptCharset accessKey action allowFullScreen allowTransparency
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
- charSet checked classID className colSpan cols content contentEditable contextMenu
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
- mediaGroup method min minLength multiple muted name noValidate nonce open
- optimum pattern placeholder poster preload radioGroup readOnly rel required
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
- summary tabIndex target title type useMap value width wmode wrap`,IC=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,OC="".concat(EC," ").concat(IC).split(/[\s\n]+/),RC="aria-",PC="data-";function Qu(e,t){return e.indexOf(t)===0}function Sn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=H({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Qu(o,RC))||n.data&&Qu(o,PC)||n.attr&&OC.includes(o))&&(r[o]=e[o])}),r}function Fv(e){return e&&W.isValidElement(e)&&e.type===W.Fragment}const NC=(e,t,n)=>W.isValidElement(e)?W.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Qt(e,t){return NC(e,e,t)}const Zu=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ju=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",El=(e,t)=>{if(e.clientHeight{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightat||a>e&&i=t&&s>=n?a-e-r:i>t&&sn?i-t+o:0,MC=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},ed=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:D=>D!==u;if(!Zu(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let p=e;for(;Zu(p)&&f(p);){if(p=MC(p),p===m){v.push(p);break}p!=null&&p===document.body&&El(p)&&!El(document.documentElement)||p!=null&&El(p,d)&&v.push(p)}const h=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:C,scrollY:y}=window,{height:b,width:S,top:w,right:x,bottom:$,left:I}=e.getBoundingClientRect(),{top:E,right:R,bottom:P,left:N}=(D=>{const M=window.getComputedStyle(D);return{top:parseFloat(M.scrollMarginTop)||0,right:parseFloat(M.scrollMarginRight)||0,bottom:parseFloat(M.scrollMarginBottom)||0,left:parseFloat(M.scrollMarginLeft)||0}})(e);let T=s==="start"||s==="nearest"?w-E:s==="end"?$+P:w+b/2-E+P,O=c==="center"?I+S/2-N+R:c==="end"?x+R:I-N;const j=[];for(let D=0;D=0&&I>=0&&$<=g&&x<=h&&w>=L&&$<=B&&I>=k&&x<=_)return j;const q=getComputedStyle(M),Q=parseInt(q.borderLeftWidth,10),te=parseInt(q.borderTopWidth,10),U=parseInt(q.borderRightWidth,10),Z=parseInt(q.borderBottomWidth,10);let ae=0,J=0;const Y="offsetWidth"in M?M.offsetWidth-M.clientWidth-Q-U:0,re="offsetHeight"in M?M.offsetHeight-M.clientHeight-te-Z:0,ee="offsetWidth"in M?M.offsetWidth===0?0:z/M.offsetWidth:0,V="offsetHeight"in M?M.offsetHeight===0?0:F/M.offsetHeight:0;if(m===M)ae=s==="start"?T:s==="end"?T-g:s==="nearest"?Qa(y,y+g,g,te,Z,y+T,y+T+b,b):T-g/2,J=c==="start"?O:c==="center"?O-h/2:c==="end"?O-h:Qa(C,C+h,h,Q,U,C+O,C+O+S,S),ae=Math.max(0,ae+y),J=Math.max(0,J+C);else{ae=s==="start"?T-L-te:s==="end"?T-B+Z+re:s==="nearest"?Qa(L,B,F,te,Z+re,T,T+b,b):T-(L+F/2)+re/2,J=c==="start"?O-k-Q:c==="center"?O-(k+z/2)+Y/2:c==="end"?O-_+U+Y:Qa(k,_,z,Q,U+Y,O,O+S,S);const{scrollLeft:ne,scrollTop:fe}=M;ae=V===0?0:Math.max(0,Math.min(fe+ae/V,M.scrollHeight-F/V+re)),J=ee===0?0:Math.max(0,Math.min(ne+J/ee,M.scrollWidth-z/ee+Y)),T+=fe-ae,O+=ne-J}j.push({el:M,top:ae,left:J})}return j},TC=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function AC(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(ed(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of ed(e,TC(t))){const s=a-n.top+n.bottom,c=i-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}const on=e=>{const[,,,,t]=Gt();return t?`${e}-css-var`:""};var ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ie.F1&&n<=ie.F12)return!1;switch(n){case ie.ALT:case ie.CAPS_LOCK:case ie.CONTEXT_MENU:case ie.CTRL:case ie.DOWN:case ie.END:case ie.ESC:case ie.HOME:case ie.INSERT:case ie.LEFT:case ie.MAC_FF_META:case ie.META:case ie.NUMLOCK:case ie.NUM_CENTER:case ie.PAGE_DOWN:case ie.PAGE_UP:case ie.PAUSE:case ie.PRINT_SCREEN:case ie.RIGHT:case ie.SHIFT:case ie.UP:case ie.WIN_KEY:case ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ie.ZERO&&t<=ie.NINE||t>=ie.NUM_ZERO&&t<=ie.NUM_MULTIPLY||t>=ie.A&&t<=ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ie.SPACE:case ie.QUESTION_MARK:case ie.NUM_PLUS:case ie.NUM_MINUS:case ie.NUM_PERIOD:case ie.NUM_DIVISION:case ie.SEMICOLON:case ie.DASH:case ie.EQUALS:case ie.COMMA:case ie.PERIOD:case ie.SLASH:case ie.APOSTROPHE:case ie.SINGLE_QUOTE:case ie.OPEN_SQUARE_BRACKET:case ie.BACKSLASH:case ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_v=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,m=e.props,v=e.onClick,p=e.onNoticeClose,h=e.times,g=e.hovering,C=l.useState(!1),y=G(C,2),b=y[0],S=y[1],w=g||b,x=function(){p(s)},$=function(N){(N.key==="Enter"||N.code==="Enter"||N.keyCode===ie.ENTER)&&x()};l.useEffect(function(){if(!w&&i>0){var P=setTimeout(function(){x()},i*1e3);return function(){clearTimeout(P)}}},[i,w,h]);var I=l.useMemo(function(){return De(u)==="object"&&u!==null?u:u?{closeIcon:f}:{}},[u,f]),E=Sn(I,!0),R="".concat(n,"-notice");return l.createElement("div",ue({},m,{ref:t,className:K(R,o,A({},"".concat(R,"-closable"),u)),style:r,onMouseEnter:function(N){var T;S(!0),m==null||(T=m.onMouseEnter)===null||T===void 0||T.call(m,N)},onMouseLeave:function(N){var T;S(!1),m==null||(T=m.onMouseLeave)===null||T===void 0||T.call(m,N)},onClick:v}),l.createElement("div",{className:"".concat(R,"-content")},c),u&&l.createElement("a",ue({tabIndex:0,className:"".concat(R,"-close"),onKeyDown:$,"aria-label":"Close"},E,{onClick:function(N){N.preventDefault(),N.stopPropagation(),x()}}),I.closeIcon))}),jv=W.createContext({}),DC=function(t){var n=t.children,r=t.classNames;return W.createElement(jv.Provider,{value:{classNames:r}},n)},td=8,nd=3,rd=16,FC=function(t){var n={offset:td,threshold:nd,gap:rd};if(t&&De(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:td,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:nd,n.gap=(a=t.gap)!==null&&a!==void 0?a:rd}return[!!t,n]},_C=["className","style","classNames","styles"],Lv=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(jv),m=f.classNames,v=l.useRef({}),p=l.useState(null),h=G(p,2),g=h[0],C=h[1],y=l.useState([]),b=G(y,2),S=b[0],w=b[1],x=n.map(function(D){return{config:D,key:String(D.key)}}),$=FC(d),I=G($,2),E=I[0],R=I[1],P=R.offset,N=R.threshold,T=R.gap,O=E&&(S.length>0||x.length<=N),j=typeof s=="function"?s(r):s;return l.useEffect(function(){E&&S.length>1&&w(function(D){return D.filter(function(M){return x.some(function(F){var z=F.key;return M===z})})})},[S,x,E]),l.useEffect(function(){var D;if(E&&v.current[(D=x[x.length-1])===null||D===void 0?void 0:D.key]){var M;C(v.current[(M=x[x.length-1])===null||M===void 0?void 0:M.key])}},[x,E]),W.createElement(Ev,ue({key:r,className:K(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,a,A(A({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),O)),style:i,keys:x,motionAppear:!0},j,{onAllRemoved:function(){c(r)}}),function(D,M){var F=D.config,z=D.className,L=D.style,_=D.index,B=F,k=B.key,q=B.times,Q=String(k),te=F,U=te.className,Z=te.style,ae=te.classNames,J=te.styles,Y=We(te,_C),re=x.findIndex(function(pe){return pe.key===Q}),ee={};if(E){var V=x.length-1-(re>-1?re:_-1),ne=r==="top"||r==="bottom"?"-50%":"0";if(V>0){var fe,ye,be;ee.height=O?(fe=v.current[Q])===null||fe===void 0?void 0:fe.offsetHeight:g==null?void 0:g.offsetHeight;for(var de=0,oe=0;oe-1?v.current[Q]=Se:delete v.current[Q]},prefixCls:o,classNames:ae,styles:J,className:K(U,m==null?void 0:m.notice),style:Z,times:q,key:k,eventKey:k,onNoticeClose:u,hovering:E&&S.length>0})))})};Lv.displayName="NoticeList";var zv=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=l.useState([]),v=G(m,2),p=v[0],h=v[1],g=function(E){var R,P=p.find(function(N){return N.key===E});P==null||(R=P.onClose)===null||R===void 0||R.call(P),h(function(N){return N.filter(function(T){return T.key!==E})})};l.useImperativeHandle(t,function(){return{open:function(E){h(function(R){var P=ce(R),N=P.findIndex(function(j){return j.key===E.key}),T=H({},E);if(N>=0){var O;T.times=(((O=R[N])===null||O===void 0?void 0:O.times)||0)+1,P[N]=T}else T.times=0,P.push(T);return i>0&&P.length>i&&(P=P.slice(-i)),P})},close:function(E){g(E)},destroy:function(){h([])}}});var C=l.useState({}),y=G(C,2),b=y[0],S=y[1];l.useEffect(function(){var I={};p.forEach(function(E){var R=E.placement,P=R===void 0?"topRight":R;P&&(I[P]=I[P]||[],I[P].push(E))}),Object.keys(b).forEach(function(E){I[E]=I[E]||[]}),S(I)},[p]);var w=function(E){S(function(R){var P=H({},R),N=P[E]||[];return N.length||delete P[E],P})},x=l.useRef(!1);if(l.useEffect(function(){Object.keys(b).length>0?x.current=!0:x.current&&(u==null||u(),x.current=!1)},[b]),!o)return null;var $=Object.keys(b);return uo.createPortal(l.createElement(l.Fragment,null,$.map(function(I){var E=b[I],R=l.createElement(Lv,{key:I,configList:E,placement:I,prefixCls:r,className:s==null?void 0:s(I),style:c==null?void 0:c(I),motion:a,onNoticeClose:g,onAllNoticeRemoved:w,stack:d});return f?f(R,{prefixCls:r,key:I}):R})),o)});zv.displayName="Notifications";var jC=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],LC=function(){return document.body},od=0;function zC(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?LC:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=We(e,jC),m=l.useState(),v=G(m,2),p=v[0],h=v[1],g=l.useRef(),C=l.createElement(zv,{container:p,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),y=l.useState([]),b=G(y,2),S=b[0],w=b[1],x=l.useMemo(function(){return{open:function(I){var E=zC(f,I);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(od),od+=1),w(function(R){return[].concat(ce(R),[{type:"open",config:E}])})},close:function(I){w(function(E){return[].concat(ce(E),[{type:"close",key:I}])})},destroy:function(){w(function(I){return[].concat(ce(I),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){h(n())}),l.useEffect(function(){g.current&&S.length&&(S.forEach(function($){switch($.type){case"open":g.current.open($.config);break;case"close":g.current.close($.key);break;case"destroy":g.current.destroy();break}}),w(function($){return $.filter(function(I){return!S.includes(I)})}))},[S]),[x,C]}var HC={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"},kC=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:HC}))},Wr=l.forwardRef(kC);Wr.displayName="LoadingOutlined";const Ca=W.createContext(void 0);Ca.displayName="zIndexContext";const Rr=100,VC=10,fc=Rr*VC,Bv={Modal:Rr,Drawer:Rr,Popover:Rr,Popconfirm:Rr,Tooltip:Rr,Tour:Rr},KC={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function WC(e){return e in Bv}function Sa(e,t){const[,n]=Gt(),r=W.useContext(Ca),o=WC(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+Bv[e],a=Math.min(a,n.zIndexPopupBase+fc)):a+=KC[e],[r===void 0?t:a,a]}const GC=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:v,borderRadiusLG:p,zIndexPopup:h,contentPadding:g,contentBg:C}=e,y=`${t}-notice`,b=new st("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),S=new st("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:v,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:m,fontSize:u},[`${y}-content`]:{display:"inline-block",padding:g,background:C,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
- ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Ct(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
- ${t}-move-up-appear,
- ${t}-move-up-enter
- `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
- ${t}-move-up-appear${t}-move-up-appear-active,
- ${t}-move-up-enter${t}-move-up-enter-active
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},qC=e=>({zIndexPopup:e.zIndexPopupBase+fc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Hv=Rt("Message",e=>{const t=ct(e,{height:150});return[GC(t)]},qC);var UC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return l.createElement("div",{className:K(`${t}-custom-content`,`${t}-${n}`)},r||XC[n],l.createElement("span",null,o))},YC=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=UC(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(He),c=t||s("message"),u=on(c),[d,f,m]=Hv(c,u);return d(l.createElement(_v,Object.assign({},i,{prefixCls:c,className:K(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:l.createElement(kv,{prefixCls:c,type:r,icon:o},a)})))};function QC(e,t){return{motionName:t??`${e}-move-up`}}function mc(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var ZC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=on(n),[o,a,i]=Hv(n,r);return o(l.createElement(DC,{classNames:{list:K(a,i,r)}},t))},nS=(e,t)=>{let{prefixCls:n,key:r}=t;return l.createElement(tS,{prefixCls:n,key:r},e)},rS=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=eS,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:v}=l.useContext(He),p=r||d("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??JC}),g=()=>K({[`${p}-rtl`]:s??v==="rtl"}),C=()=>QC(p,c),y=l.createElement("span",{className:`${p}-close-x`},l.createElement(Eo,{className:`${p}-close-icon`})),[b,S]=BC({prefixCls:p,style:h,className:g,motion:C,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:nS});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:p,message:m})),S});let ad=0;function Vv(e){const t=l.useRef(null),n=vt("Message");return[l.useMemo(()=>{const o=u=>{var d;(d=t.current)===null||d===void 0||d.close(u)},a=u=>{if(!t.current){n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const $=()=>{};return $.then=()=>{},$}const{open:d,prefixCls:f,message:m}=t.current,v=`${f}-notice`,{content:p,icon:h,type:g,key:C,className:y,style:b,onClose:S}=u,w=ZC(u,["content","icon","type","key","className","style","onClose"]);let x=C;return x==null&&(ad+=1,x=`antd-message-${ad}`),mc($=>(d(Object.assign(Object.assign({},w),{key:x,content:l.createElement(kv,{prefixCls:f,type:g,icon:h},p),placement:"top",className:K(g&&`${v}-${g}`,y,m==null?void 0:m.className),style:Object.assign(Object.assign({},m==null?void 0:m.style),b),onClose:()=>{S==null||S(),$()}})),()=>{o(x)}))},s={open:a,destroy:u=>{var d;u!==void 0?o(u):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{const d=(f,m,v)=>{let p;f&&typeof f=="object"&&"content"in f?p=f:p={content:f};let h,g;typeof m=="function"?g=m:(h=m,g=v);const C=Object.assign(Object.assign({onClose:g,duration:h},p),{type:u});return a(C)};s[u]=d}),s},[]),l.createElement(rS,Object.assign({key:"message-holder"},e,{ref:t}))]}function oS(e){return Vv(e)}function aS(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(o=>[].concat(ce(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function un(){un=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(D,M,F){D[M]=F.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(D,M,F){return Object.defineProperty(D,M,{value:F,enumerable:!0,configurable:!0,writable:!0}),D[M]}try{u({},"")}catch{u=function(F,z,L){return F[z]=L}}function d(D,M,F,z){var L=M&&M.prototype instanceof C?M:C,_=Object.create(L.prototype),B=new O(z||[]);return o(_,"_invoke",{value:R(D,F,B)}),_}function f(D,M,F){try{return{type:"normal",arg:D.call(M,F)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var m="suspendedStart",v="suspendedYield",p="executing",h="completed",g={};function C(){}function y(){}function b(){}var S={};u(S,i,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==n&&r.call(x,i)&&(S=x);var $=b.prototype=C.prototype=Object.create(S);function I(D){["next","throw","return"].forEach(function(M){u(D,M,function(F){return this._invoke(M,F)})})}function E(D,M){function F(L,_,B,k){var q=f(D[L],D,_);if(q.type!=="throw"){var Q=q.arg,te=Q.value;return te&&De(te)=="object"&&r.call(te,"__await")?M.resolve(te.__await).then(function(U){F("next",U,B,k)},function(U){F("throw",U,B,k)}):M.resolve(te).then(function(U){Q.value=U,B(Q)},function(U){return F("throw",U,B,k)})}k(q.arg)}var z;o(this,"_invoke",{value:function(_,B){function k(){return new M(function(q,Q){F(_,B,q,Q)})}return z=z?z.then(k,k):k()}})}function R(D,M,F){var z=m;return function(L,_){if(z===p)throw Error("Generator is already running");if(z===h){if(L==="throw")throw _;return{value:e,done:!0}}for(F.method=L,F.arg=_;;){var B=F.delegate;if(B){var k=P(B,F);if(k){if(k===g)continue;return k}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(z===m)throw z=h,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);z=p;var q=f(D,M,F);if(q.type==="normal"){if(z=F.done?h:v,q.arg===g)continue;return{value:q.arg,done:F.done}}q.type==="throw"&&(z=h,F.method="throw",F.arg=q.arg)}}}function P(D,M){var F=M.method,z=D.iterator[F];if(z===e)return M.delegate=null,F==="throw"&&D.iterator.return&&(M.method="return",M.arg=e,P(D,M),M.method==="throw")||F!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+F+"' method")),g;var L=f(z,D.iterator,M.arg);if(L.type==="throw")return M.method="throw",M.arg=L.arg,M.delegate=null,g;var _=L.arg;return _?_.done?(M[D.resultName]=_.value,M.next=D.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,g):_:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,g)}function N(D){var M={tryLoc:D[0]};1 in D&&(M.catchLoc=D[1]),2 in D&&(M.finallyLoc=D[2],M.afterLoc=D[3]),this.tryEntries.push(M)}function T(D){var M=D.completion||{};M.type="normal",delete M.arg,D.completion=M}function O(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(N,this),this.reset(!0)}function j(D){if(D||D===""){var M=D[i];if(M)return M.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var F=-1,z=function L(){for(;++F=0;--L){var _=this.tryEntries[L],B=_.completion;if(_.tryLoc==="root")return z("end");if(_.tryLoc<=this.prev){var k=r.call(_,"catchLoc"),q=r.call(_,"finallyLoc");if(k&&q){if(this.prev<_.catchLoc)return z(_.catchLoc,!0);if(this.prev<_.finallyLoc)return z(_.finallyLoc)}else if(k){if(this.prev<_.catchLoc)return z(_.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<_.finallyLoc)return z(_.finallyLoc)}}}},abrupt:function(M,F){for(var z=this.tryEntries.length-1;z>=0;--z){var L=this.tryEntries[z];if(L.tryLoc<=this.prev&&r.call(L,"finallyLoc")&&this.prev=0;--F){var z=this.tryEntries[F];if(z.finallyLoc===M)return this.complete(z.completion,z.afterLoc),T(z),g}},catch:function(M){for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F];if(z.tryLoc===M){var L=z.completion;if(L.type==="throw"){var _=L.arg;T(z)}return _}}throw Error("illegal catch attempt")},delegateYield:function(M,F,z){return this.delegate={iterator:j(M),resultName:F,nextLoc:z},this.method==="next"&&(this.arg=e),g}},t}function id(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function Gr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(c){id(a,r,o,i,s,"next",c)}function s(c){id(a,r,o,i,s,"throw",c)}i(void 0)})}}var xa=H({},Hh),iS=xa.version,lS=xa.render,sS=xa.unmountComponentAtNode,Ki;try{var cS=Number((iS||"").split(".")[0]);cS>=18&&(Ki=xa.createRoot)}catch{}function ld(e){var t=xa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&De(t)==="object"&&(t.usingClientEntryPoint=e)}var wi="__rc_react_root__";function uS(e,t){ld(!0);var n=t[wi]||Ki(t);ld(!1),n.render(e),t[wi]=n}function dS(e,t){lS(e,t)}function vc(e,t){if(Ki){uS(e,t);return}dS(e,t)}function fS(e){return bs.apply(this,arguments)}function bs(){return bs=Gr(un().mark(function e(t){return un().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[wi])===null||o===void 0||o.unmount(),delete t[wi]}));case 1:case"end":return r.stop()}},e)})),bs.apply(this,arguments)}function mS(e){sS(e)}function Kv(e){return ys.apply(this,arguments)}function ys(){return ys=Gr(un().mark(function e(t){return un().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ki===void 0){r.next=2;break}return r.abrupt("return",fS(t));case 2:mS(t);case 3:case"end":return r.stop()}},e)})),ys.apply(this,arguments)}const Il=()=>({height:0,opacity:0}),sd=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},vS=e=>({height:e?e.offsetHeight:0}),Ol=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",gS=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Il,onEnterStart:Il,onAppearActive:sd,onEnterActive:sd,onLeaveStart:vS,onLeaveActive:Il,onAppearEnd:Ol,onEnterEnd:Ol,onLeaveEnd:Ol,motionDeadline:500}},Br=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ia=gS,Wi=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},pS=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},hS=lc("Wave",e=>[pS(e)]),gc="ant-wave-target";function bS(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Rl(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&bS(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function yS(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Rl(t)?t:Rl(n)?n:Rl(r)?r:null}function Pl(e){return Number.isNaN(e)?0:e}const CS=e=>{const{className:t,target:n,component:r}=e,o=l.useRef(null),[a,i]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[f,m]=l.useState(0),[v,p]=l.useState(0),[h,g]=l.useState(0),[C,y]=l.useState(!1),b={left:u,top:f,width:v,height:h,borderRadius:s.map(x=>`${x}px`).join(" ")};a&&(b["--wave-color"]=a);function S(){const x=getComputedStyle(n);i(yS(n));const $=x.position==="static",{borderLeftWidth:I,borderTopWidth:E}=x;d($?n.offsetLeft:Pl(-parseFloat(I))),m($?n.offsetTop:Pl(-parseFloat(E))),p(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:P,borderBottomLeftRadius:N,borderBottomRightRadius:T}=x;c([R,P,T,N].map(O=>Pl(parseFloat(O))))}if(l.useEffect(()=>{if(n){const x=ut(()=>{S(),y(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(n)),()=>{ut.cancel(x),$==null||$.disconnect()}}},[]),!C)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(gc));return l.createElement(Vn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,$)=>{var I;if($.deadline||$.propertyName==="opacity"){const E=(I=o.current)===null||I===void 0?void 0:I.parentElement;Kv(E).then(()=>{E==null||E.remove()})}return!1}},(x,$)=>{let{className:I}=x;return l.createElement("div",{ref:gn(o,$),className:K(t,{"wave-quick":w},I),style:b})})},SS=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),vc(l.createElement(CS,Object.assign({},t,{target:e})),o)},xS=(e,t,n)=>{const{wave:r}=l.useContext(He),[,o,a]=Gt(),i=kt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${gc}`)||d,{showEffect:m}=r||{};(m||SS)(f,{className:t,token:o,component:n,event:u,hashId:a})}),s=l.useRef();return u=>{ut.cancel(s.current),s.current=ut(()=>{i(u)})}},Gi=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=l.useContext(He),a=l.useRef(null),i=o("wave"),[,s]=hS(i),c=xS(a,K(i,s),r);if(W.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!Wi(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!W.isValidElement(t))return t??null;const u=sr(t)?gn(t.ref,a):a;return Qt(t,{ref:u})};Gi.displayName="Wave";const Nn=e=>{const t=W.useContext(zr);return W.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},wS=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},$S=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"}}}},ES=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}}}},Wv=Rt("Space",e=>{const t=ct(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[$S(t),ES(t),wS(t)]},()=>({}),{resetStyle:!1});var Gv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=l.useContext(qi),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return K(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Hr=e=>{let{children:t}=e;return l.createElement(qi.Provider,{value:null},t)},IS=e=>{var{children:t}=e,n=Gv(e,["children"]);return l.createElement(qi.Provider,{value:n},t)},OS=e=>{const{getPrefixCls:t,direction:n}=l.useContext(He),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=Gv(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Nn(b=>r??b),m=t("space-compact",i),[v,p]=Wv(m),h=K(m,p,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,c),g=l.useContext(qi),C=cn(u),y=l.useMemo(()=>C.map((b,S)=>{const w=b&&b.key||`${m}-item-${S}`;return l.createElement(IS,{key:w,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:S===C.length-1&&(!g||(g==null?void 0:g.isLastItem))},b)}),[r,C,g]);return C.length===0?null:v(l.createElement("div",Object.assign({className:h},d),y))};var RS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=l.useContext(He),{prefixCls:r,size:o,className:a}=e,i=RS(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=Gt();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}vt("Button.Group")(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.");const d=K(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},a,c);return l.createElement(qv.Provider,{value:o},l.createElement("div",Object.assign({},i,{className:d})))},cd=/^[\u4e00-\u9fa5]{2}$/,Cs=cd.test.bind(cd);function Uv(e){return e==="danger"?{danger:!0}:{type:e}}function ud(e){return typeof e=="string"}function Za(e){return e==="text"||e==="link"}function NS(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ud(e.type)&&Cs(e.props.children)?Qt(e,{children:e.props.children.split("").join(n)}):ud(e)?Cs(e)?W.createElement("span",null,e.split("").join(n)):W.createElement("span",null,e):Fv(e)?W.createElement("span",null,e):e}function MS(e,t){let n=!1;const r=[];return W.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=i}),W.Children.map(r,o=>NS(o,t))}const Xv=l.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=K(`${a}-icon`,n);return W.createElement("span",{ref:t,className:i,style:r},o)}),dd=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a,iconPosition:i="start"}=e,s=K(r,{[`${n}-loading-icon-end`]:i==="end",[`${n}-loading-icon`]:i==="start"});return W.createElement(Xv,{prefixCls:n,className:s,style:o,ref:t},W.createElement(Wr,{className:a}))}),Nl=()=>({width:0,opacity:0,transform:"scale(0)"}),Ml=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),TS=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,iconPosition:i}=e,s=!!n;return r?W.createElement(dd,{prefixCls:t,className:o,style:a,iconPosition:i}):W.createElement(Vn,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Nl,onAppearActive:Ml,onEnterStart:Nl,onEnterActive:Ml,onLeaveStart:Ml,onLeaveActive:Nl},(c,u)=>{let{className:d,style:f}=c;return W.createElement(dd,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),f),ref:u,iconClassName:d,iconPosition:i})})},fd=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),AS=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},fd(`${t}-primary`,o),fd(`${t}-danger`,a)]}},Yv=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ct(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Qv=e=>{var t,n,r,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:ui(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:ui(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:ui(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,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,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},DS=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${X(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0,"&-end":{marginInlineStart:e.marginXS}},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS},[`&${t}-loading-icon-end`]:{marginInlineStart:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},aa(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},ar=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),FS=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),_S=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),jS=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),la=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ar(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),pc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jS(e))}),Zv=e=>Object.assign({},pc(e)),$i=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Jv=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zv(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),ar(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),la(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},ar(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),la(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),pc(e))}),LS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zv(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),ar(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),la(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},ar(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),la(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pc(e))}),zS=e=>Object.assign(Object.assign({},Jv(e)),{borderStyle:"dashed"}),BS=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},ar(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$i(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ar(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$i(e))}),HS=e=>Object.assign(Object.assign(Object.assign({},ar(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$i(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$i(e)),ar(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),kS=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Jv(e),[`${t}-primary`]:LS(e),[`${t}-dashed`]:zS(e),[`${t}-link`]:BS(e),[`${t}-text`]:HS(e),[`${t}-ghost`]:la(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},hc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${X(u)} ${X(s)}`,borderRadius:i,[`&${d}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:FS(e)},{[`${n}${n}-round${t}`]:_S(e)}]},VS=e=>{const t=ct(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return hc(t,e.componentCls)},KS=e=>{const t=ct(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return hc(t,`${e.componentCls}-sm`)},WS=e=>{const t=ct(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return hc(t,`${e.componentCls}-lg`)},GS=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},qS=Rt("Button",e=>{const t=Yv(e);return[DS(t),VS(t),KS(t),WS(t),GS(t),kS(t),AS(t)]},Qv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function US(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function XS(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ui(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},US(e,r,t)),XS(n,r,t))}}function YS(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function QS(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 ZS(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},YS(e,t)),QS(e.componentCls,t))}}const JS=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${X(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${X(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},ex=sc(["Button","compact"],e=>{const t=Yv(e);return[Ui(t),ZS(t),JS(t)]},Qv);var tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o;const{loading:a=!1,prefixCls:i,type:s,danger:c,shape:u="default",size:d,styles:f,disabled:m,className:v,rootClassName:p,children:h,icon:g,iconPosition:C="start",ghost:y=!1,block:b=!1,htmlType:S="button",classNames:w,style:x={},autoInsertSpace:$}=e,I=tx(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),E=s||"default",{getPrefixCls:R,direction:P,button:N}=l.useContext(He),T=(n=$??(N==null?void 0:N.autoInsertSpace))!==null&&n!==void 0?n:!0,O=R("btn",i),[j,D,M]=qS(O),F=l.useContext(Hn),z=m??F,L=l.useContext(qv),_=l.useMemo(()=>nx(a),[a]),[B,k]=l.useState(_.loading),[q,Q]=l.useState(!1),U=gn(t,l.createRef()),Z=l.Children.count(h)===1&&!g&&!Za(E);l.useEffect(()=>{let me=null;_.delay>0?me=setTimeout(()=>{me=null,k(!0)},_.delay):k(_.loading);function Fe(){me&&(clearTimeout(me),me=null)}return Fe},[_]),l.useEffect(()=>{if(!U||!U.current||!T)return;const me=U.current.textContent;Z&&Cs(me)?q||Q(!0):q&&Q(!1)},[U]);const ae=me=>{const{onClick:Fe}=e;if(B||z){me.preventDefault();return}Fe==null||Fe(me)};{const me=vt("Button");me(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),me(!(y&&Za(E)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:Y}=Io(O,P),re={large:"lg",small:"sm",middle:void 0},ee=Nn(me=>{var Fe,Le;return(Le=(Fe=d??J)!==null&&Fe!==void 0?Fe:L)!==null&&Le!==void 0?Le:me}),V=ee&&re[ee]||"",ne=B?"loading":g,fe=Wt(I,["navigate"]),ye=K(O,D,M,{[`${O}-${u}`]:u!=="default"&&u,[`${O}-${E}`]:E,[`${O}-${V}`]:V,[`${O}-icon-only`]:!h&&h!==0&&!!ne,[`${O}-background-ghost`]:y&&!Za(E),[`${O}-loading`]:B,[`${O}-two-chinese-chars`]:q&&T&&!B,[`${O}-block`]:b,[`${O}-dangerous`]:!!c,[`${O}-rtl`]:P==="rtl"},Y,v,p,N==null?void 0:N.className),be=Object.assign(Object.assign({},N==null?void 0:N.style),x),de=C==="end"&&h&&h!==0&&ne,oe=K(w==null?void 0:w.icon,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.icon,{[`${O}-icon-end`]:de}),se=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.icon)||{}),$e=g&&!B?W.createElement(Xv,{prefixCls:O,className:oe,style:se},g):W.createElement(TS,{existIcon:!!g,prefixCls:O,loading:!!B,iconPosition:C}),Ce=h||h===0?MS(h,Z&&T):null,pe=(me,Fe)=>C==="start"?W.createElement(W.Fragment,null,me,Fe):W.createElement(W.Fragment,null,Fe,me);if(fe.href!==void 0)return j(W.createElement("a",Object.assign({},fe,{className:K(ye,{[`${O}-disabled`]:z}),href:z?void 0:fe.href,style:be,onClick:ae,ref:U,tabIndex:z?-1:0}),pe($e,Ce)));let Se=W.createElement("button",Object.assign({},I,{type:S,className:ye,style:be,onClick:ae,disabled:z,ref:U}),pe($e,Ce),!!Y&&W.createElement(ex,{key:"compact",prefixCls:O}));return Za(E)||(Se=W.createElement(Gi,{component:"Button",disabled:!!B},Se)),j(Se)}),ir=rx;ir.Group=PS;ir.__ANT_BUTTON=!0;ir.displayName="Button";function md(e){return!!(e&&e.then)}const eg=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),m=l.useRef(null),[v,p]=xr(!1),h=function(){a==null||a.apply(void 0,arguments)};l.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var b;(b=m.current)===null||b===void 0||b.focus()})),()=>{y&&clearTimeout(y)}},[]);const g=y=>{md(y)&&(p(!0),y.then(function(){p(!1,!0),h.apply(void 0,arguments),f.current=!1},b=>{if(p(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(b)}))},C=y=>{if(f.current)return;if(f.current=!0,!d){h();return}let b;if(s){if(b=d(y),u&&!md(b)){f.current=!1,h(y);return}}else if(d.length)b=d(a),f.current=!1;else if(b=d(),!b){h();return}g(b)};return l.createElement(ir,Object.assign({},Uv(t),{onClick:C,loading:v,prefixCls:r},o,{ref:m}),n)},wa=W.createContext({}),{Provider:tg}=wa,vd=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:c}=l.useContext(wa);return o?W.createElement(eg,{isSilent:r,actionFn:s,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},gd=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:c}=l.useContext(wa);return W.createElement(eg,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)};var ng=l.createContext(null),pd=[];function ox(e,t){var n=l.useState(function(){if(!nn())return null;var p=document.createElement("div");return t&&p.setAttribute("data-debug",t),p}),r=G(n,1),o=r[0],a=l.useRef(!1),i=l.useContext(ng),s=l.useState(pd),c=G(s,2),u=c[0],d=c[1],f=i||(a.current?void 0:function(p){d(function(h){var g=[p].concat(ce(h));return g})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),a.current=!1}return mt(function(){return e?i?i(m):m():v(),v},[e]),mt(function(){u.length&&(u.forEach(function(p){return p()}),d(pd))},[u]),[o,f]}function ax(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";nr(`
-#`.concat(t,`::-webkit-scrollbar {
-`).concat(d,`
-`).concat(f,`
-}`),t)}catch(p){console.error(p),o=c,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Zo(t),{width:m,height:v}}function ix(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ax(e)}function lx(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var sx="rc-util-locker-".concat(Date.now()),hd=0;function cx(e){var t=!!e,n=l.useState(function(){return hd+=1,"".concat(sx,"_").concat(hd)}),r=G(n,1),o=r[0];mt(function(){if(t){var a=ix(document.body).width,i=lx();nr(`
-html body {
- overflow-y: hidden;
- `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
-}`),o)}else Zo(o);return function(){Zo(o)}},[t,o])}var ux=!1;function dx(e){return ux}var bd=function(t){return t===!1?!1:!nn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Xi=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,a=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,c=e.children,u=l.useState(n),d=G(u,2),f=d[0],m=d[1],v=f||n;je(nn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),l.useEffect(function(){(s||n)&&m(n)},[n,s]);var p=l.useState(function(){return bd(o)}),h=G(p,2),g=h[0],C=h[1];l.useEffect(function(){var N=bd(o);C(N??null)});var y=ox(v&&!g,a),b=G(y,2),S=b[0],w=b[1],x=g??S;cx(r&&n&&nn()&&(x===S||x===document.body));var $=null;if(c&&sr(c)&&t){var I=c;$=I.ref}var E=Kr($,t);if(!v||!nn()||g===void 0)return null;var R=x===!1||dx(),P=c;return t&&(P=l.cloneElement(c,{ref:E})),l.createElement(ng.Provider,{value:w},R?P:uo.createPortal(P,x))});Xi.displayName="Portal";var rg=l.createContext({});function fx(){var e=H({},Di);return e.useId}var yd=0,Cd=fx();const og=Cd?function(t){var n=Cd();return t||n}:function(t){var n=l.useState("ssr-id"),r=G(n,2),o=r[0],a=r[1];return l.useEffect(function(){var i=yd;yd+=1,a("rc_unique_".concat(i))},[]),t||o};function Sd(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function xd(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function mx(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=xd(o),n.top+=xd(o,!0),n}const vx=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var wd={width:0,height:0,overflow:"hidden",outline:"none"},gx={outline:"none"},bc=W.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,v=e.bodyProps,p=e.modalRender,h=e.onMouseDown,g=e.onMouseUp,C=e.holderRef,y=e.visible,b=e.forceRender,S=e.width,w=e.height,x=e.classNames,$=e.styles,I=W.useContext(rg),E=I.panel,R=Kr(C,E),P=l.useRef(),N=l.useRef(),T=l.useRef();W.useImperativeHandle(t,function(){return{focus:function(){var B;(B=T.current)===null||B===void 0||B.focus()},changeActive:function(B){var k=document,q=k.activeElement;B&&q===N.current?P.current.focus():!B&&q===P.current&&N.current.focus()}}});var O={};S!==void 0&&(O.width=S),w!==void 0&&(O.height=w);var j;s&&(j=W.createElement("div",{className:K("".concat(n,"-footer"),x==null?void 0:x.footer),style:H({},$==null?void 0:$.footer)},s));var D;a&&(D=W.createElement("div",{className:K("".concat(n,"-header"),x==null?void 0:x.header),style:H({},$==null?void 0:$.header)},W.createElement("div",{className:"".concat(n,"-title"),id:i},a)));var M=l.useMemo(function(){return De(c)==="object"&&c!==null?c:c?{closeIcon:u??W.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u]),F=Sn(M,!0),z;c&&(z=W.createElement("button",ue({type:"button",onClick:d,"aria-label":"Close"},F,{className:"".concat(n,"-close")}),M.closeIcon));var L=W.createElement("div",{className:K("".concat(n,"-content"),x==null?void 0:x.content),style:$==null?void 0:$.content},z,D,W.createElement("div",ue({className:K("".concat(n,"-body"),x==null?void 0:x.body),style:H(H({},m),$==null?void 0:$.body)},v),f),j);return W.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:R,style:H(H({},o),O),className:K(n,r),onMouseDown:h,onMouseUp:g},W.createElement("div",{tabIndex:0,ref:P,style:wd,"aria-hidden":"true"}),W.createElement("div",{ref:T,tabIndex:-1,style:gx},W.createElement(vx,{shouldUpdate:y||b},p?p(L):L)),W.createElement("div",{tabIndex:0,ref:N,style:wd,"aria-hidden":"true"}))});bc.displayName="Panel";var ag=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,v=l.useRef(),p=l.useState(),h=G(p,2),g=h[0],C=h[1],y={};g&&(y.transformOrigin=g);function b(){var S=mx(v.current);C(m?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return l.createElement(Vn,{visible:i,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:u,removeOnLeave:c,ref:v},function(S,w){var x=S.className,$=S.style;return l.createElement(bc,ue({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:w,style:H(H(H({},$),o),y),className:K(a,x)}))})});ag.displayName="Content";function px(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return l.createElement(Vn,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(s,c){var u=s.className,d=s.style;return l.createElement("div",ue({ref:c,style:H(H({},d),n),className:K("".concat(t,"-mask"),u,i)},o))})}function hx(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,a=o===void 0?!1:o,i=e.keyboard,s=i===void 0?!0:i,c=e.focusTriggerAfterClose,u=c===void 0?!0:c,d=e.wrapStyle,f=e.wrapClassName,m=e.wrapProps,v=e.onClose,p=e.afterOpenChange,h=e.afterClose,g=e.transitionName,C=e.animation,y=e.closable,b=y===void 0?!0:y,S=e.mask,w=S===void 0?!0:S,x=e.maskTransitionName,$=e.maskAnimation,I=e.maskClosable,E=I===void 0?!0:I,R=e.maskStyle,P=e.maskProps,N=e.rootClassName,T=e.classNames,O=e.styles;["wrapStyle","bodyStyle","maskStyle"].forEach(function(ee){rr(!(ee in e),"".concat(ee," is deprecated, please use styles instead."))}),"wrapClassName"in e&&rr(!1,"wrapClassName is deprecated, please use classNames instead.");var j=l.useRef(),D=l.useRef(),M=l.useRef(),F=l.useState(a),z=G(F,2),L=z[0],_=z[1],B=og();function k(){Jl(D.current,document.activeElement)||(j.current=document.activeElement)}function q(){if(!Jl(D.current,document.activeElement)){var ee;(ee=M.current)===null||ee===void 0||ee.focus()}}function Q(ee){if(ee)q();else{if(_(!1),w&&j.current&&u){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}L&&(h==null||h())}p==null||p(ee)}function te(ee){v==null||v(ee)}var U=l.useRef(!1),Z=l.useRef(),ae=function(){clearTimeout(Z.current),U.current=!0},J=function(){Z.current=setTimeout(function(){U.current=!1})},Y=null;E&&(Y=function(V){U.current?U.current=!1:D.current===V.target&&te(V)});function re(ee){if(s&&ee.keyCode===ie.ESC){ee.stopPropagation(),te(ee);return}a&&ee.keyCode===ie.TAB&&M.current.changeActive(!ee.shiftKey)}return l.useEffect(function(){a&&(_(!0),k())},[a]),l.useEffect(function(){return function(){clearTimeout(Z.current)}},[]),l.createElement("div",ue({className:K("".concat(n,"-root"),N)},Sn(e,{data:!0})),l.createElement(px,{prefixCls:n,visible:w&&a,motionName:Sd(n,x,$),style:H(H({zIndex:r},R),O==null?void 0:O.mask),maskProps:P,className:T==null?void 0:T.mask}),l.createElement("div",ue({tabIndex:-1,onKeyDown:re,className:K("".concat(n,"-wrap"),f,T==null?void 0:T.wrapper),ref:D,onClick:Y,style:H(H(H({zIndex:r},d),O==null?void 0:O.wrapper),{},{display:L?null:"none"})},m),l.createElement(ag,ue({},e,{onMouseDown:ae,onMouseUp:J,ref:M,closable:b,ariaId:B,prefixCls:n,visible:a&&L,onClose:te,onVisibleChanged:Q,motionName:Sd(n,g,C)}))))}var ig=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=G(u,2),f=d[0],m=d[1],v=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&m(!0)},[n]),!o&&i&&!f?null:l.createElement(rg.Provider,{value:v},l.createElement(Xi,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(hx,ue({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),m(!1)}}))))};ig.displayName="Dialog";function $d(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Ed(e){const{closable:t,closeIcon:n}=e||{};return W.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function Id(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(e[a]=o[a])})}),e}const bx={};function yx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bx;const r=Ed(e),o=Ed(t),a=W.useMemo(()=>Object.assign({closeIcon:W.createElement(Eo,null)},n),[n]),i=W.useMemo(()=>r===!1?!1:r?Id(a,o,r):o===!1?!1:o?Id(a,o):a.closable?a:!1,[r,o,a]);return W.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:s}=a,{closeIcon:c}=i;let u=c;if(u!=null){s&&(u=s(c));const d=Sn(i,!0);Object.keys(d).length&&(u=W.isValidElement(u)?W.cloneElement(u,d):W.createElement("span",Object.assign({},d),u))}return[!0,u]},[i,a])}const Cx=()=>nn()&&window.document.documentElement;var Mr="RC_FORM_INTERNAL_HOOKS",ht=function(){je(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kr=l.createContext({getFieldValue:ht,getFieldsValue:ht,getFieldError:ht,getFieldWarning:ht,getFieldsError:ht,isFieldsTouched:ht,isFieldTouched:ht,isFieldValidating:ht,isFieldsValidating:ht,resetFields:ht,setFields:ht,setFieldValue:ht,setFieldsValue:ht,validateFields:ht,submit:ht,getInternalHooks:function(){return ht(),{dispatch:ht,initEntityValue:ht,registerField:ht,useSubscribe:ht,setInitialValues:ht,destroyForm:ht,setCallbacks:ht,registerWatch:ht,getFields:ht,setValidateMessages:ht,setPreserve:ht,getInitialValue:ht}}}),sa=l.createContext(null);function Ss(e){return e==null?[]:Array.isArray(e)?e:[e]}function Sx(e){return e&&!!e._init}function xs(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ws=xs();function xx(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function wx(e,t,n){if(_i())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Yo(o,n.prototype),o}function $s(e){var t=typeof Map=="function"?new Map:void 0;return $s=function(r){if(r===null||!xx(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return wx(r,arguments,Lr(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Yo(o,r)},$s(e)}var $x={},Ex=/%[sdj%]/g,lg=function(){};typeof process<"u"&&$x&&typeof window<"u"&&typeof document<"u"&&(lg=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Es(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 Cn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Ix(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Kt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Ix(t)&&typeof e=="string"&&!e)}function Ox(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,ce(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function Od(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,st.max?o.push(Cn(a.messages[f].max,t.fullField,t.max)):s&&c&&(dt.max)&&o.push(Cn(a.messages[f].range,t.fullField,t.min,t.max))},sg=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||Kt(n,i||t.type))&&o.push(Cn(a.messages.required,t.fullField))},Ja;const Fx=function(){if(Ja)return Ja;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,p=d.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(p,"|").concat(h).concat(g).concat(C,")").concat(y).concat(b);return Ja=new RegExp("(?:^".concat(S,"$)"),"i"),Ja};var Md={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Lo={integer:function(t){return Lo.number(t)&&parseInt(t,10)===t},float:function(t){return Lo.number(t)&&!Lo.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 De(t)==="object"&&!Lo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Md.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Fx())},hex:function(t){return typeof t=="string"&&!!t.match(Md.hex)}},_x=function(t,n,r,o,a){if(t.required&&n===void 0){sg(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Lo[s](n)||o.push(Cn(a.messages.types[s],t.fullField,t.type)):s&&De(n)!==t.type&&o.push(Cn(a.messages.types[s],t.fullField,t.type))},jx=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(Cn(a.messages.whitespace,t.fullField))};const it={required:sg,whitespace:jx,type:_x,range:Dx,enum:Tx,pattern:Ax};var Lx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a)}r(i)},zx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();it.required(t,n,o,i,a,"array"),n!=null&&(it.type(t,n,o,i,a),it.range(t,n,o,i,a))}r(i)},Bx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),n!==void 0&&it.type(t,n,o,i,a)}r(i)},Hx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n,"date")&&!t.required)return r();if(it.required(t,n,o,i,a),!Kt(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),it.type(t,c,o,i,a),c&&it.range(t,c.getTime(),o,i,a)}}r(i)},kx="enum",Vx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),n!==void 0&&it[kx](t,n,o,i,a)}r(i)},Kx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),n!==void 0&&(it.type(t,n,o,i,a),it.range(t,n,o,i,a))}r(i)},Wx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),n!==void 0&&(it.type(t,n,o,i,a),it.range(t,n,o,i,a))}r(i)},Gx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),n!==void 0&&it.type(t,n,o,i,a)}r(i)},qx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),n!==void 0&&(it.type(t,n,o,i,a),it.range(t,n,o,i,a))}r(i)},Ux=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),n!==void 0&&it.type(t,n,o,i,a)}r(i)},Xx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n,"string")&&!t.required)return r();it.required(t,n,o,i,a),Kt(n,"string")||it.pattern(t,n,o,i,a)}r(i)},Yx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n)&&!t.required)return r();it.required(t,n,o,i,a),Kt(n)||it.type(t,n,o,i,a)}r(i)},Qx=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":De(n);it.required(t,n,o,i,a,s),r(i)},Zx=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Kt(n,"string")&&!t.required)return r();it.required(t,n,o,i,a,"string"),Kt(n,"string")||(it.type(t,n,o,i,a),it.range(t,n,o,i,a),it.pattern(t,n,o,i,a),t.whitespace===!0&&it.whitespace(t,n,o,i,a))}r(i)},Tl=function(t,n,r,o,a){var i=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(Kt(n,i)&&!t.required)return r();it.required(t,n,o,s,a,i),Kt(n,i)||it.type(t,n,o,s,a)}r(s)};const Wo={string:Zx,method:Gx,number:qx,boolean:Bx,regexp:Yx,integer:Wx,float:Kx,array:zx,object:Ux,enum:Vx,pattern:Xx,date:Hx,url:Tl,hex:Tl,email:Tl,required:Qx,any:Lx};var $a=function(){function e(t){Dt(this,e),A(this,"rules",null),A(this,"_messages",ws),this.define(t)}return Ft(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(De(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=Nd(xs(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=o,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(p){var h=[],g={};function C(b){if(Array.isArray(b)){var S;h=(S=h).concat.apply(S,ce(b))}else h.push(b)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray($)?$:[$];!s.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&g.message!==void 0&&(I=[].concat(g.message));var E=I.map(Pd(g,i));if(s.first&&E.length)return v[g.field]=1,h(E);if(!C)h(E);else{if(g.required&&!p.value)return g.message!==void 0?E=[].concat(g.message).map(Pd(g,i)):s.error&&(E=[s.error(g,Cn(s.messages.required,g.field))]),h(E);var R={};g.defaultField&&Object.keys(p.value).map(function(T){R[T]=g.defaultField}),R=H(H({},R),p.rule.fields);var P={};Object.keys(R).forEach(function(T){var O=R[T],j=Array.isArray(O)?O:[O];P[T]=j.map(y.bind(null,T))});var N=new e(P);N.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),N.validate(p.value,p.rule.options||s,function(T){var O=[];E&&E.length&&O.push.apply(O,ce(E)),T&&T.length&&O.push.apply(O,ce(T)),h(O.length?O:null)})}}var S;if(g.asyncValidator)S=g.asyncValidator(g,p.value,b,p.source,s);else if(g.validator){try{S=g.validator(g,p.value,b,p.source,s)}catch($){var w,x;(w=(x=console).error)===null||w===void 0||w.call(x,$),s.suppressValidatorError||setTimeout(function(){throw $},0),b($.message)}S===!0?b():S===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function($){return b($)})},function(p){u(p)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Wo.hasOwnProperty(n.type))throw new Error(Cn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Wo.required:Wo[this.getType(n)]||void 0}}]),e}();A($a,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Wo[t]=n});A($a,"warning",lg);A($a,"messages",ws);A($a,"validators",Wo);var bn="'${name}' is not a valid ${type}",cg={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:bn,method:bn,array:bn,object:bn,number:bn,date:bn,boolean:bn,integer:bn,float:bn,regexp:bn,email:bn,url:bn,hex:bn},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}"}},Td=$a;function Jx(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Ad="CODE_LOGIC_ERROR";function Is(e,t,n,r,o){return Os.apply(this,arguments)}function Os(){return Os=Gr(un().mark(function e(t,n,r,o,a){var i,s,c,u,d,f,m,v,p;return un().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=H({},r),delete i.ruleIndex,Td.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(Ad)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new Td(A({},t,[i])),d=io(cg,o.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(A({},t,n),H({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,y){var b=C.message,S=b===Ad?d.default:b;return l.isValidElement(S)?l.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&c)){g.next=23;break}return g.next=21,Promise.all(n.map(function(C,y){return Is("".concat(t,".").concat(y),C,c,o,a)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(C,y){return[].concat(ce(C),ce(y))},[]));case 23:return v=H(H({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),p=f.map(function(C){return typeof C=="string"?Jx(C,v):C}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Os.apply(this,arguments)}function ew(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(d,f){var m=d.validator,v=H(H({},d),{},{ruleIndex:f});return m&&(v.validator=function(p,h,g){var C=!1,y=function(){for(var w=arguments.length,x=new Array(w),$=0;$2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return ug(t,r,n)})}function ug(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function rw(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||De(e)!=="object"||De(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ce(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function ow(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&De(t.target)==="object"&&e in t.target?t.target[e]:t}function Fd(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ce(e.slice(0,n)),[o],ce(e.slice(n,t)),ce(e.slice(t+1,r))):a<0?[].concat(ce(e.slice(0,t)),ce(e.slice(t+1,n+1)),[o],ce(e.slice(n+1,r))):e}var aw=["name"],En=[];function _d(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var yc=function(e){Yn(n,e);var t=$r(n);function n(r){var o;if(Dt(this,n),o=t.call(this,r),A(le(o),"state",{resetCount:0}),A(le(o),"cancelRegisterFunc",null),A(le(o),"mounted",!1),A(le(o),"touched",!1),A(le(o),"dirty",!1),A(le(o),"validatePromise",void 0),A(le(o),"prevValidating",void 0),A(le(o),"errors",En),A(le(o),"warnings",En),A(le(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,At(f)),o.cancelRegisterFunc=null}),A(le(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ce(m),ce(u)):[]}),A(le(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),A(le(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),A(le(o),"metaCache",null),A(le(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=H(H({},o.getMeta()),{},{destroy:c});Jo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),A(le(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,v=f.dependencies,p=v===void 0?[]:v,h=f.onReset,g=d.store,C=o.getNamePath(),y=o.getValue(c),b=o.getValue(g),S=u&&co(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!Jo(y,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=En,o.warnings=En,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=En,o.warnings=En,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var w=d.data;if(S){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||En),"warnings"in w&&(o.warnings=w.warnings||En),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&co(u,C,!0)){o.reRender();return}if(m&&!C.length&&_d(m,c,g,y,b,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=p.map(At);if(x.some(function($){return co(d.relatedFields,$)})){o.reRender();return}break}default:if(S||(!p.length||C.length||m)&&_d(m,c,g,y,b,d)){o.reRender();return}break}m===!0&&o.reRender()}),A(le(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,v=f.validateOnly,p=v===void 0?!1:v,h=Promise.resolve().then(Gr(un().mark(function g(){var C,y,b,S,w,x,$;return un().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(C=o.props,y=C.validateFirst,b=y===void 0?!1:y,S=C.messageVariables,w=C.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(R){return R}).filter(function(R){var P=R.validateTrigger;if(!P)return!0;var N=Ss(P);return N.includes(m)})),!(w&&m)){E.next=10;break}return E.next=8,new Promise(function(R){setTimeout(R,w)});case 8:if(o.validatePromise===h){E.next=10;break}return E.abrupt("return",[]);case 10:return $=ew(u,d,x,c,b,S),$.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:En;if(o.validatePromise===h){var P;o.validatePromise=null;var N=[],T=[];(P=R.forEach)===null||P===void 0||P.call(R,function(O){var j=O.rule.warningOnly,D=O.errors,M=D===void 0?En:D;j?T.push.apply(T,ce(M)):N.push.apply(N,ce(M))}),o.errors=N,o.warnings=T,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",$);case 13:case"end":return E.stop()}},g)})));return p||(o.validatePromise=h,o.dirty=!0,o.errors=En,o.warnings=En,o.triggerMetaEvent(),o.reRender()),h}),A(le(o),"isFieldValidating",function(){return!!o.validatePromise}),A(le(o),"isFieldTouched",function(){return o.touched}),A(le(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(Mr),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),A(le(o),"getErrors",function(){return o.errors}),A(le(o),"getWarnings",function(){return o.warnings}),A(le(o),"isListField",function(){return o.props.isListField}),A(le(o),"isList",function(){return o.props.isList}),A(le(o),"isPreserve",function(){return o.props.preserve}),A(le(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),A(le(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return H(H({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=cn(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),A(le(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Un(c||u(!0),d)}),A(le(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,v=u.getValueFromEvent,p=u.normalize,h=u.valuePropName,g=u.getValueProps,C=u.fieldContext,y=m!==void 0?m:C.validateTrigger,b=o.getNamePath(),S=C.getInternalHooks,w=C.getFieldsValue,x=S(Mr),$=x.dispatch,I=o.getValue(),E=g||function(O){return A({},h,O)},R=c[f],P=d!==void 0?E(I):{};P&&Object.keys(P).forEach(function(O){je(typeof P[O]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(O,")"))});var N=H(H({},c),P);N[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var O,j=arguments.length,D=new Array(j),M=0;M=0&&R<=P.length?(d.keys=[].concat(ce(d.keys.slice(0,R)),[d.id],ce(d.keys.slice(R))),b([].concat(ce(P.slice(0,R)),[E],ce(P.slice(R))))):((R<0||R>P.length)&&je(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ce(d.keys),[d.id]),b([].concat(ce(P),[E]))),d.id+=1},remove:function(E){var R=w(),P=new Set(Array.isArray(E)?E:[E]);P.size<=0||(d.keys=d.keys.filter(function(N,T){return!P.has(T)}),b(R.filter(function(N,T){return!P.has(T)})))},move:function(E,R){if(E!==R){var P=w();E<0||E>=P.length||R<0||R>=P.length||(d.keys=Fd(d.keys,E,R),b(Fd(P,E,R)))}}},$=y||[];return Array.isArray($)||($=[],je(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r($.map(function(I,E){var R=d.keys[E];return R===void 0&&(d.keys[E]=d.id,R=d.keys[E],d.id+=1),{name:E,key:R,isListField:!0}}),x,g)})))}function iw(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var fg="__@field_split__";function Al(e){return e.map(function(t){return"".concat(De(t),":").concat(t)}).join(fg)}var Yr=function(){function e(){Dt(this,e),A(this,"kvs",new Map)}return Ft(e,[{key:"set",value:function(n,r){this.kvs.set(Al(n),r)}},{key:"get",value:function(n){return this.kvs.get(Al(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Al(n))}},{key:"map",value:function(n){return ce(this.kvs.entries()).map(function(r){var o=G(r,2),a=o[0],i=o[1],s=a.split(fg);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=G(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),lw=["name"],sw=Ft(function e(t){var n=this;Dt(this,e),A(this,"formHooked",!1),A(this,"forceRootUpdate",void 0),A(this,"subscribable",!0),A(this,"store",{}),A(this,"fieldEntities",[]),A(this,"initialValues",{}),A(this,"callbacks",{}),A(this,"validateMessages",null),A(this,"preserve",null),A(this,"lastValidatePromise",null),A(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),A(this,"getInternalHooks",function(r){return r===Mr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(je(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),A(this,"useSubscribe",function(r){n.subscribable=r}),A(this,"prevWithoutPreserves",null),A(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=io(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;i=jn(i,c,Un(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),A(this,"destroyForm",function(){var r=new Yr;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),A(this,"getInitialValue",function(r){var o=Un(n.initialValues,r);return r.length?io(o):o}),A(this,"setCallbacks",function(r){n.callbacks=r}),A(this,"setValidateMessages",function(r){n.validateMessages=r}),A(this,"setPreserve",function(r){n.preserve=r}),A(this,"watchList",[]),A(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),A(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),A(this,"timeoutId",null),A(this,"warningUnhooked",function(){!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||je(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),A(this,"updateStore",function(r){n.store=r}),A(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),A(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Yr;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),A(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=At(a);return o.get(i)||{INVALIDATE_NAME_PATH:At(a)}})}),A(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&De(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var p,h;if((p=(h=d).isList)!==null&&p!==void 0&&p.call(h))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(v);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(v)}}),Dd(n.store,u.map(At))}),A(this,"getFieldValue",function(r){n.warningUnhooked();var o=At(r);return Un(n.store,o)}),A(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:At(r[i]),errors:[],warnings:[]}})}),A(this,"getFieldError",function(r){n.warningUnhooked();var o=At(r),a=n.getFieldsError([o])[0];return a.errors}),A(this,"getFieldWarning",function(r){n.warningUnhooked();var o=At(r),a=n.getFieldsError([o])[0];return a.warnings}),A(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=new Yr,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),v=n.getInitialValue(m);if(v!==void 0)je(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var p=o.get(m);if(p&&p.size>1)je(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var h=n.getFieldValue(m),g=d.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(jn(n.store,m,ce(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,ce(ce(u).map(function(f){return f.entity})))}})):s=a,i(s)}),A(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(io(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(At);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(jn(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),A(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,c=We(i,lw),u=At(s);a.push(u),"value"in c&&n.updateStore(jn(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),A(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),c=H(H({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),A(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Un(n.store,a);i===void 0&&n.updateStore(jn(n.store,a,o))}}),A(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),A(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!ug(f.getNamePath(),o)})){var d=n.store;n.updateStore(jn(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),A(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),A(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=H(H({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,i)})}else n.forceRootUpdate()}),A(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ce(a))}),a}),A(this,"updateValue",function(r,o){var a=At(r),i=n.store;n.updateStore(jn(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),c=n.callbacks.onValuesChange;if(c){var u=Dd(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ce(s)))}),A(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=io(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),A(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),A(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Yr;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=At(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),A(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Yr;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return co(r,d)});c.length&&a(c,i)}}),A(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,c=s?a.map(At):[],u=[],d=String(Date.now()),f=new Set,m=i||{},v=m.recursive,p=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||c.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(p&&!y.isFieldDirty())){var b=y.getNamePath();if(f.add(b.join(d)),!s||co(c,b,v)){var S=y.validateRules(H({validateMessages:H(H({},cg),n.validateMessages)},i));u.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var x,$=[],I=[];return(x=w.forEach)===null||x===void 0||x.call(w,function(E){var R=E.rule.warningOnly,P=E.errors;R?I.push.apply(I,ce(P)):$.push.apply($,ce(P))}),$.length?Promise.reject({name:b,errors:$,warnings:I}):{name:b,errors:$,warnings:I}}))}}});var h=iw(u);n.lastValidatePromise=h,h.catch(function(y){return y}).then(function(y){var b=y.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,y)});var g=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(y){var b=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:b,outOfDate:n.lastValidatePromise!==h})});g.catch(function(y){return y});var C=c.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(C),g}),A(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Sc(e){var t=l.useRef(),n=l.useState({}),r=G(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new sw(a);t.current=i.getForm()}return[t.current]}var Ns=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mg=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=l.useContext(Ns),s=l.useRef({});return l.createElement(Ns.Provider,{value:H(H({},i),{},{validateMessages:H(H({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=H(H({},s.current),{},A({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=H({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},a)},cw=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],uw=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,v=m===void 0?"onChange":m,p=t.onValuesChange,h=t.onFieldsChange,g=t.onFinish,C=t.onFinishFailed,y=We(t,cw),b=l.useContext(Ns),S=Sc(i),w=G(S,1),x=w[0],$=x.getInternalHooks(Mr),I=$.useSubscribe,E=$.setInitialValues,R=$.setCallbacks,P=$.setValidateMessages,N=$.setPreserve,T=$.destroyForm;l.useImperativeHandle(n,function(){return x}),l.useEffect(function(){return b.registerForm(r,x),function(){b.unregisterForm(r)}},[b,x,r]),P(H(H({},b.validateMessages),f)),R({onValuesChange:p,onFieldsChange:function(B){if(b.triggerFormChange(r,B),h){for(var k=arguments.length,q=new Array(k>1?k-1:0),Q=1;Q{}}),gg=l.createContext(null),pg=e=>{const t=Wt(e,["prefixCls"]);return l.createElement(mg,Object.assign({},t))},xc=l.createContext({prefixCls:""}),rn=l.createContext({});rn.displayName="FormItemInputContext";const ca=e=>{let{children:t,status:n,override:r}=e;const o=l.useContext(rn),a=l.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return l.createElement(rn.Provider,{value:a},t)},hg=l.createContext(void 0);function Ld(){}const mw=l.createContext({add:Ld,remove:Ld});function vw(e){const t=l.useContext(mw),n=l.useRef();return kt(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const zd=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(wa);return W.createElement(ir,Object.assign({onClick:n},e),t)},Bd=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=l.useContext(wa);return W.createElement(ir,Object.assign({},Uv(n),{loading:e,onClick:o},t),r)};function bg(e,t){return W.createElement("span",{className:`${e}-close-x`},t||W.createElement(Eo,{className:`${e}-close-icon`}))}const yg=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=ba("Modal",Xm()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),v={confirmLoading:o,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i},p=W.useMemo(()=>v,ce(Object.values(v)));let h;return typeof u=="function"||typeof u>"u"?(h=W.createElement(W.Fragment,null,W.createElement(zd,null),W.createElement(Bd,null)),typeof u=="function"&&(h=u(h,{OkBtn:Bd,CancelBtn:zd})),h=W.createElement(tg,{value:p},h)):h=u,W.createElement(ac,{disabled:!1},h)},Yi=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),gw=e=>({animationDuration:e,animationFillMode:"both"}),pw=e=>({animationDuration:e,animationFillMode:"both"}),Qi=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
- ${a}${e}-enter,
- ${a}${e}-appear
- `]:Object.assign(Object.assign({},gw(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},pw(r)),{animationPlayState:"paused"}),[`
- ${a}${e}-enter${e}-enter-active,
- ${a}${e}-appear${e}-appear-active
- `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},hw=new st("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),bw=new st("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),yw=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Qi(r,hw,bw,e.motionDurationMid,t),{[`
- ${o}${r}-enter,
- ${o}${r}-appear
- `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Cw=new st("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Sw=new st("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xw=new st("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ww=new st("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$w=new st("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ew=new st("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Iw=new st("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ow=new st("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Rw={"move-up":{inKeyframes:Iw,outKeyframes:Ow},"move-down":{inKeyframes:Cw,outKeyframes:Sw},"move-left":{inKeyframes:xw,outKeyframes:ww},"move-right":{inKeyframes:$w,outKeyframes:Ew}},Ei=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Rw[t];return[Qi(r,o,a,e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wc=new st("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$c=new st("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ec=new st("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ic=new st("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Pw=new st("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Nw=new st("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mw=new st("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Tw=new st("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Aw={"slide-up":{inKeyframes:wc,outKeyframes:$c},"slide-down":{inKeyframes:Ec,outKeyframes:Ic},"slide-left":{inKeyframes:Pw,outKeyframes:Nw},"slide-right":{inKeyframes:Mw,outKeyframes:Tw}},po=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Aw[t];return[Qi(r,o,a,e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Oc=new st("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Dw=new st("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Hd=new st("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),kd=new st("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Fw=new st("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),_w=new st("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),jw=new st("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Lw=new st("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),zw=new st("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Bw=new st("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Hw=new st("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),kw=new st("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Vw={zoom:{inKeyframes:Oc,outKeyframes:Dw},"zoom-big":{inKeyframes:Hd,outKeyframes:kd},"zoom-big-fast":{inKeyframes:Hd,outKeyframes:kd},"zoom-left":{inKeyframes:jw,outKeyframes:Lw},"zoom-right":{inKeyframes:zw,outKeyframes:Bw},"zoom-up":{inKeyframes:Fw,outKeyframes:_w},"zoom-down":{inKeyframes:Hw,outKeyframes:kw}},Ea=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Vw[t];return[Qi(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Vd(e){return{position:e,inset:0}}const Kw=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Vd("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Vd("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:yw(e)}]},Ww=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${X(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ct(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${X(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${X(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},aa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${X(e.borderRadiusLG)} ${X(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}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
- ${t}-body,
- ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Gw=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Cg=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return ct(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()})},Sg=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${X(e.paddingMD)} ${X(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${X(e.padding)} ${X(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${X(e.paddingXS)} ${X(e.padding)}`:0,footerBorderTop:e.wireframe?`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${X(e.padding*2)} ${X(e.padding*2)} ${X(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),xg=Rt("Modal",e=>{const t=Cg(e);return[Ww(t),Gw(t),Kw(t),Ea(t,"zoom")]},Sg,{unitless:{titleLineHeight:!0}});var qw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{Ms={x:e.pageX,y:e.pageY},setTimeout(()=>{Ms=null},100)};Cx()&&document.documentElement.addEventListener("click",Uw,!0);const wg=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=l.useContext(He),i=L=>{const{onCancel:_}=e;_==null||_(L)},s=L=>{const{onOk:_}=e;_==null||_(L)};{const L=vt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(_=>{let[B,k]=_;L.deprecated(!(B in e),B,k)})}const{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:m,centered:v,getContainer:p,focusTriggerAfterClose:h=!0,style:g,visible:C,width:y=520,footer:b,classNames:S,styles:w}=e,x=qw(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),$=r("modal",c),I=r(),E=on($),[R,P,N]=xg($,E),T=K(m,{[`${$}-centered`]:!!v,[`${$}-wrap-rtl`]:o==="rtl"}),O=b!==null&&l.createElement(yg,Object.assign({},e,{onOk:s,onCancel:i})),[j,D]=yx($d(e),$d(a),{closable:!0,closeIcon:l.createElement(Eo,{className:`${$}-close-icon`}),closeIconRender:L=>bg($,L)}),M=vw(`.${$}-content`),[F,z]=Sa("Modal",x.zIndex);return R(l.createElement(Hr,null,l.createElement(ca,{status:!0,override:!0},l.createElement(Ca.Provider,{value:z},l.createElement(ig,Object.assign({width:y},x,{zIndex:F,getContainer:p===void 0?n:p,prefixCls:$,rootClassName:K(P,d,N,E),footer:O,visible:f??C,mousePosition:(t=x.mousePosition)!==null&&t!==void 0?t:Ms,onClose:i,closable:j,closeIcon:D,focusTriggerAfterClose:h,transitionName:Br(I,"zoom",e.transitionName),maskTransitionName:Br(I,"fade",e.maskTransitionName),className:K(P,u,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),g),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),S),{wrapper:K(T,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:M}))))))},Xw=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Ci()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${X(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
- ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Yw=sc(["Modal","confirm"],e=>{const t=Cg(e);return[Xw(t)]},Sg,{order:-1e3});var Qw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`);let f=n;if(!n&&n!==null)switch(i){case"info":f=l.createElement(dc,null);break;case"success":f=l.createElement(ki,null);break;case"error":f=l.createElement($o,null);break;default:f=l.createElement(Vi,null)}const m=s??i==="confirm",v=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[p]=ba("Modal"),h=u||p,g=r||(m?h==null?void 0:h.okText:h==null?void 0:h.justOkText),C=o||(h==null?void 0:h.cancelText),y=Object.assign({autoFocusButton:v,cancelTextLocale:C,okTextLocale:g,mergedOkCancel:m},d),b=l.useMemo(()=>y,ce(Object.values(y))),S=l.createElement(l.Fragment,null,l.createElement(vd,null),l.createElement(gd,null)),w=e.title!==void 0&&e.title!==null,x=`${a}-body`;return l.createElement("div",{className:`${a}-body-wrapper`},l.createElement("div",{className:K(x,{[`${x}-has-title`]:w})},f,l.createElement("div",{className:`${a}-paragraph`},w&&l.createElement("span",{className:`${a}-title`},e.title),l.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(tg,{value:b},l.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(S,{OkBtn:gd,CancelBtn:vd}):S)):c,l.createElement(Yw,{prefixCls:t}))}const Eg=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:m,bodyStyle:v,closable:p=!1,closeIcon:h,modalRender:g,focusTriggerAfterClose:C,onConfirm:y,styles:b}=e;{const N=vt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(T=>{let[O,j]=T;N.deprecated(!(O in e),O,j)})}const S=`${d}-confirm`,w=e.width||416,x=e.style||{},$=e.mask===void 0?!0:e.mask,I=e.maskClosable===void 0?!1:e.maskClosable,E=K(S,`${S}-${e.type}`,{[`${S}-rtl`]:u==="rtl"},e.className),[,R]=Gt(),P=l.useMemo(()=>n!==void 0?n:R.zIndexPopupBase+fc,[n,R]);return l.createElement(wg,{prefixCls:d,className:E,wrapClassName:K({[`${S}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),y==null||y(!1)},open:o,title:"",footer:null,transitionName:Br(m||"","zoom",e.transitionName),maskTransitionName:Br(m||"","fade",e.maskTransitionName),mask:$,maskClosable:I,style:x,styles:Object.assign({body:v,mask:c},b),width:w,zIndex:P,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:p,closeIcon:h,modalRender:g,focusTriggerAfterClose:C},l.createElement($g,Object.assign({},e,{confirmPrefixCls:S})))},Rc=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return l.createElement(Kn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},l.createElement(Eg,Object.assign({},e)))};Eg.displayName="ConfirmDialog",Rc.displayName="ConfirmDialogWrapper";const Tr=[];let Ig="";function Og(){return Ig}const Zw=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=Xm(),s=l.useContext(He),c=Og()||s.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0,ur(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),W.createElement(Rc,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function Ia(e){const t=uc();t.holderRender||Ov("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function a(){for(var u=arguments.length,d=new Array(u),f=0;fv&&v.triggerCancel);e.onCancel&&m&&e.onCancel.apply(e,[()=>{}].concat(ce(d.slice(1))));for(let v=0;v{const d=t.getPrefixCls(void 0,Og()),f=t.getIconPrefixCls(),m=t.getTheme(),v=W.createElement(Zw,Object.assign({},u));vc(W.createElement(Kn,{prefixCls:d,iconPrefixCls:f,theme:m},t.holderRender?t.holderRender(v):v),n)})}function s(){for(var u=arguments.length,d=new Array(u),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),Tr.push(s),{destroy:s,update:c}}function Rg(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Pg(e){return Object.assign(Object.assign({},e),{type:"info"})}function Ng(e){return Object.assign(Object.assign({},e),{type:"success"})}function Mg(e){return Object.assign(Object.assign({},e),{type:"error"})}function Tg(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Jw(e){let{rootPrefixCls:t}=e;ur(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Ig=t}var e$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,a=e$(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(o),{direction:d,getPrefixCls:f}=l.useContext(He),m=f("modal"),v=f(),p=()=>{var y;r(),(y=c.afterClose)===null||y===void 0||y.call(c)},h=function(){s(!1);for(var y=arguments.length,b=new Array(y),S=0;Sx&&x.triggerCancel);c.onCancel&&w&&c.onCancel.apply(c,[()=>{}].concat(ce(b.slice(1))))};l.useImperativeHandle(t,()=>({destroy:h,update:y=>{u(b=>Object.assign(Object.assign({},b),y))}}));const g=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[C]=ba("Modal",wr.Modal);return l.createElement(Rc,Object.assign({prefixCls:m,rootPrefixCls:v},c,{close:h,open:i,afterClose:p,okText:c.okText||(g?C==null?void 0:C.okText:C==null?void 0:C.justOkText),direction:c.direction||d,cancelText:c.cancelText||(C==null?void 0:C.cancelText)},a))},n$=l.forwardRef(t$);let Kd=0;const r$=l.memo(l.forwardRef((e,t)=>{const[n,r]=aS();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function o$(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(ce(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(a=>function(s){var c;Kd+=1;const u=l.createRef();let d;const f=new Promise(g=>{d=g});let m=!1,v;const p=l.createElement(n$,{key:`modal-${Kd}`,config:a(s),ref:u,afterClose:()=>{v==null||v()},isSilent:()=>m,onConfirm:g=>{d(g)}});return v=(c=e.current)===null||c===void 0?void 0:c.patchElement(p),v&&Tr.push(v),{destroy:()=>{function g(){var C;(C=u.current)===null||C===void 0||C.destroy()}u.current?g():n(C=>[].concat(ce(C),[g]))},update:g=>{function C(){var y;(y=u.current)===null||y===void 0||y.update(g)}u.current?C():n(y=>[].concat(ce(y),[C]))},then:g=>(m=!0,f.then(g))}},[]);return[l.useMemo(()=>({info:r(Pg),success:r(Ng),error:r(Mg),warning:r(Rg),confirm:r(Tg)}),[]),l.createElement(r$,{key:"modal-holder",ref:e})]}const a$=W.createContext({});function Ag(e){return t=>l.createElement(Kn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const Dg=(e,t,n,r)=>Ag(a=>{const{prefixCls:i,style:s}=a,c=l.useRef(null),[u,d]=l.useState(0),[f,m]=l.useState(0),[v,p]=Vt(!1,{value:a.open}),{getPrefixCls:h}=l.useContext(He),g=h(t||"select",i);l.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(w=>{const x=w[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),S=setInterval(()=>{var w;const x=n?`.${n(g)}`:`.${g}-dropdown`,$=(w=c.current)===null||w===void 0?void 0:w.querySelector(x);$&&(clearInterval(S),b.observe($))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let C=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>c.current});r&&(C=r(C));const y={paddingBottom:u,position:"relative",minWidth:f};return l.createElement("div",{ref:c,style:y},l.createElement(e,Object.assign({},C)))}),Pc=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Zi=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:K(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},i$=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=W.useMemo(function(){if(De(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=W.useMemo(function(){return!!(!i&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,i,r.length,s,c]);return{allowClear:d,clearIcon:W.createElement(Zi,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},Fg=l.createContext(null);function l$(){return l.useContext(Fg)}function s$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=G(t,2),r=n[0],o=n[1],a=l.useRef(null),i=function(){window.clearTimeout(a.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,i]}function _g(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function c$(e,t,n,r){var o=l.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function u$(e){return![ie.ESC,ie.SHIFT,ie.BACKSPACE,ie.TAB,ie.WIN_KEY,ie.ALT,ie.META,ie.WIN_KEY_RIGHT,ie.CTRL,ie.SEMICOLON,ie.EQUALS,ie.CAPS_LOCK,ie.CONTEXT_MENU,ie.F1,ie.F2,ie.F3,ie.F4,ie.F5,ie.F6,ie.F7,ie.F8,ie.F9,ie.F10,ie.F11,ie.F12].includes(e)}var d$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Qr=void 0;function f$(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,p=e.order,h=e.component,g=h===void 0?"div":h,C=We(e,d$),y=i&&!v;function b(I){c(u,I)}l.useEffect(function(){return function(){b(null)}},[]);var S=a&&o!==Qr?a(o):m,w;r||(w={opacity:y?0:1,height:y?0:Qr,overflowY:y?"hidden":Qr,order:i?p:Qr,pointerEvents:y?"none":Qr,position:y?"absolute":Qr});var x={};y&&(x["aria-hidden"]=!0);var $=l.createElement(g,ue({className:K(!r&&n,d),style:H(H({},w),f)},x,C,{ref:t}),S);return i&&($=l.createElement(cr,{onResize:function(E){var R=E.offsetWidth;b(R)},disabled:s},$)),$}var Go=l.forwardRef(f$);Go.displayName="Item";function m$(e){if(typeof MessageChannel>"u")ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function v$(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],m$(function(){uo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Do(e,t){var n=l.useState(t),r=G(n,2),o=r[0],a=r[1],i=kt(function(s){e(function(){a(s)})});return[o,i]}var Ii=W.createContext(null),g$=["component"],p$=["className"],h$=["className"],b$=function(t,n){var r=l.useContext(Ii);if(!r){var o=t.component,a=o===void 0?"div":o,i=We(t,g$);return l.createElement(a,ue({},i,{ref:n}))}var s=r.className,c=We(r,p$),u=t.className,d=We(t,h$);return l.createElement(Ii.Provider,{value:null},l.createElement(Go,ue({ref:n,className:K(s,u)},c,d)))},jg=l.forwardRef(b$);jg.displayName="RawItem";var y$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Lg="responsive",zg="invalidate";function C$(e){return"+ ".concat(e.length," ...")}function S$(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,v=e.className,p=e.maxCount,h=e.renderRest,g=e.renderRawRest,C=e.suffix,y=e.component,b=y===void 0?"div":y,S=e.itemComponent,w=e.onVisibleChange,x=We(e,y$),$=f==="full",I=v$(),E=Do(I,null),R=G(E,2),P=R[0],N=R[1],T=P||0,O=Do(I,new Map),j=G(O,2),D=j[0],M=j[1],F=Do(I,0),z=G(F,2),L=z[0],_=z[1],B=Do(I,0),k=G(B,2),q=k[0],Q=k[1],te=Do(I,0),U=G(te,2),Z=U[0],ae=U[1],J=l.useState(null),Y=G(J,2),re=Y[0],ee=Y[1],V=l.useState(null),ne=G(V,2),fe=ne[0],ye=ne[1],be=l.useMemo(function(){return fe===null&&$?Number.MAX_SAFE_INTEGER:fe||0},[fe,P]),de=l.useState(!1),oe=G(de,2),se=oe[0],$e=oe[1],Ce="".concat(r,"-item"),pe=Math.max(L,q),Se=p===Lg,me=a.length&&Se,Fe=p===zg,Le=me||typeof p=="number"&&a.length>p,Ee=l.useMemo(function(){var Pe=a;return me?P===null&&$?Pe=a:Pe=a.slice(0,Math.min(a.length,T/d)):typeof p=="number"&&(Pe=a.slice(0,p)),Pe},[a,d,P,p,me]),we=l.useMemo(function(){return me?a.slice(be+1):a.slice(Ee.length)},[a,Ee,me,be]),Ue=l.useCallback(function(Pe,ge){var ze;return typeof c=="function"?c(Pe):(ze=c&&(Pe==null?void 0:Pe[c]))!==null&&ze!==void 0?ze:ge},[c]),ke=l.useCallback(i||function(Pe){return Pe},[i]);function tt(Pe,ge,ze){fe===Pe&&(ge===void 0||ge===re)||(ye(Pe),ze||($e(PeT){tt(rt-1,Pe-he-Z+q);break}}C&&et(0)+Z>T&&ee(null)}},[T,D,q,Z,Ue,Ee]);var pt=se&&!!we.length,lt={};re!==null&&me&&(lt={position:"absolute",left:re,top:0});var bt={prefixCls:Ce,responsive:me,component:S,invalidate:Fe},Me=s?function(Pe,ge){var ze=Ue(Pe,ge);return l.createElement(Ii.Provider,{key:ze,value:H(H({},bt),{},{order:ge,item:Pe,itemKey:ze,registerSize:ft,display:ge<=be})},s(Pe,ge))}:function(Pe,ge){var ze=Ue(Pe,ge);return l.createElement(Go,ue({},bt,{order:ge,key:ze,item:Pe,renderItem:ke,itemKey:ze,registerSize:ft,display:ge<=be}))},xe,Ne={order:pt?be:Number.MAX_SAFE_INTEGER,className:"".concat(Ce,"-rest"),registerSize:Ve,display:pt};if(g)g&&(xe=l.createElement(Ii.Provider,{value:H(H({},bt),Ne)},g(we)));else{var ve=h||C$;xe=l.createElement(Go,ue({},bt,Ne),typeof ve=="function"?ve(we):ve)}var Be=l.createElement(b,ue({className:K(!Fe&&r,v),style:m,ref:t},x),Ee.map(Me),Le?xe:null,C&&l.createElement(Go,ue({},bt,{responsive:Se,responsiveDisabled:!me,order:be,className:"".concat(Ce,"-suffix"),registerSize:nt,display:!0,style:lt}),C));return Se&&(Be=l.createElement(cr,{onResize:dt,disabled:!me},Be)),Be}var Xn=l.forwardRef(S$);Xn.displayName="Overflow";Xn.Item=jg;Xn.RESPONSIVE=Lg;Xn.INVALIDATE=zg;var x$=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,v=t.value,p=t.maxLength,h=t.onKeyDown,g=t.onMouseDown,C=t.onChange,y=t.onPaste,b=t.onCompositionStart,S=t.onCompositionEnd,w=t.open,x=t.attrs,$=i||l.createElement("input",null),I=$,E=I.ref,R=I.props,P=R.onKeyDown,N=R.onChange,T=R.onMouseDown,O=R.onCompositionStart,j=R.onCompositionEnd,D=R.style;return rr(!("maxLength"in $.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),$=l.cloneElement($,H(H(H({type:"search"},R),{},{id:a,ref:gn(n,E),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:K("".concat(o,"-selection-search-input"),(r=$)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":w?m:void 0},x),{},{value:f?v:"",maxLength:p,readOnly:!f,unselectable:f?null:"on",style:H(H({},D),{},{opacity:f?null:0}),onKeyDown:function(F){h(F),P&&P(F)},onMouseDown:function(F){g(F),T&&T(F)},onChange:function(F){C(F),N&&N(F)},onCompositionStart:function(F){b(F),O&&O(F)},onCompositionEnd:function(F){S(F),j&&j(F)},onPaste:y})),$},Nc=l.forwardRef(x$);Nc.displayName="Input";function Mc(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var w$=typeof window<"u"&&window.document&&window.document.documentElement,$$=w$;function E$(e){return e!=null}function I$(e){return!e&&e!==0}function Wd(e){return["string","number"].includes(De(e))}function Bg(e){var t=void 0;return e&&(Wd(e.title)?t=e.title.toString():Wd(e.label)&&(t=e.label.toString())),t}function O$(e,t){$$?l.useLayoutEffect(e,t):l.useEffect(e,t)}function R$(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Gd=function(t){t.preventDefault(),t.stopPropagation()},P$=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,v=t.autoFocus,p=t.autoComplete,h=t.activeDescendantId,g=t.tabIndex,C=t.removeIcon,y=t.maxTagCount,b=t.maxTagTextLength,S=t.maxTagPlaceholder,w=S===void 0?function(ee){return"+ ".concat(ee.length," ...")}:S,x=t.tagRender,$=t.onToggleOpen,I=t.onRemove,E=t.onInputChange,R=t.onInputPaste,P=t.onInputKeyDown,N=t.onInputMouseDown,T=t.onInputCompositionStart,O=t.onInputCompositionEnd,j=l.useRef(null),D=l.useState(0),M=G(D,2),F=M[0],z=M[1],L=l.useState(!1),_=G(L,2),B=_[0],k=_[1],q="".concat(r,"-selection"),Q=a||f==="multiple"&&s===!1||f==="tags"?i:"",te=f==="tags"||f==="multiple"&&s===!1||m&&(a||B);O$(function(){z(j.current.scrollWidth)},[Q]);var U=function(V,ne,fe,ye,be){return l.createElement("span",{title:Bg(V),className:K("".concat(q,"-item"),A({},"".concat(q,"-item-disabled"),fe))},l.createElement("span",{className:"".concat(q,"-item-content")},ne),ye&&l.createElement(Zi,{className:"".concat(q,"-item-remove"),onMouseDown:Gd,onClick:be,customizeIcon:C},"×"))},Z=function(V,ne,fe,ye,be,de){var oe=function($e){Gd($e),$(!a)};return l.createElement("span",{onMouseDown:oe},x({label:ne,value:V,disabled:fe,closable:ye,onClose:be,isMaxTag:!!de}))},ae=function(V){var ne=V.disabled,fe=V.label,ye=V.value,be=!d&&!ne,de=fe;if(typeof b=="number"&&(typeof fe=="string"||typeof fe=="number")){var oe=String(de);oe.length>b&&(de="".concat(oe.slice(0,b),"..."))}var se=function(Ce){Ce&&Ce.stopPropagation(),I(V)};return typeof x=="function"?Z(ye,de,ne,be,se):U(V,de,ne,be,se)},J=function(V){var ne=typeof w=="function"?w(V):w;return typeof x=="function"?Z(void 0,ne,!1,!1,void 0,!0):U({title:ne},ne,!1)},Y=l.createElement("div",{className:"".concat(q,"-search"),style:{width:F},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},l.createElement(Nc,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:v,autoComplete:p,editable:te,activeDescendantId:h,value:Q,onKeyDown:P,onMouseDown:N,onChange:E,onPaste:R,onCompositionStart:T,onCompositionEnd:O,tabIndex:g,attrs:Sn(t,!0)}),l.createElement("span",{ref:j,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},Q," ")),re=l.createElement(Xn,{prefixCls:"".concat(q,"-overflow"),data:o,renderItem:ae,renderRest:J,suffix:Y,itemKey:R$,maxCount:y});return l.createElement(l.Fragment,null,re,!o.length&&!Q&&l.createElement("span",{className:"".concat(q,"-placeholder")},u))},N$=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,v=t.placeholder,p=t.tabIndex,h=t.showSearch,g=t.searchValue,C=t.activeValue,y=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,w=t.onInputChange,x=t.onInputPaste,$=t.onInputCompositionStart,I=t.onInputCompositionEnd,E=t.title,R=l.useState(!1),P=G(R,2),N=P[0],T=P[1],O=d==="combobox",j=O||h,D=m[0],M=g||"";O&&C&&!N&&(M=C),l.useEffect(function(){O&&T(!1)},[O,C]);var F=d!=="combobox"&&!f&&!h?!1:!!M,z=E===void 0?Bg(D):E,L=l.useMemo(function(){return D?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},v)},[D,F,v,r]);return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(Nc,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:j,activeDescendantId:u,value:M,onKeyDown:b,onMouseDown:S,onChange:function(B){T(!0),w(B)},onPaste:x,onCompositionStart:$,onCompositionEnd:I,tabIndex:p,attrs:Sn(t,!0),maxLength:O?y:void 0})),!O&&D?l.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:F?{visibility:"hidden"}:void 0},D.label):null,L)},M$=function(t,n){var r=l.useRef(null),o=l.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,m=t.onSearch,v=t.onSearchSubmit,p=t.onToggleOpen,h=t.onInputKeyDown,g=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(F){r.current.focus(F)},blur:function(){r.current.blur()}}});var C=_g(0),y=G(C,2),b=y[0],S=y[1],w=function(F){var z=F.which;(z===ie.UP||z===ie.DOWN)&&F.preventDefault(),h&&h(F),z===ie.ENTER&&s==="tags"&&!o.current&&!i&&(v==null||v(F.target.value)),u$(z)&&p(!0)},x=function(){S(!0)},$=l.useRef(null),I=function(F){m(F,!0,o.current)!==!1&&p(!0)},E=function(){o.current=!0},R=function(F){o.current=!1,s!=="combobox"&&I(F.target.value)},P=function(F){var z=F.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var L=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(L,$.current)}$.current=null,I(z)},N=function(F){var z=F.clipboardData,L=z==null?void 0:z.getData("text");$.current=L||""},T=function(F){var z=F.target;if(z!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus()}):r.current.focus()}},O=function(F){var z=b();F.target!==r.current&&!z&&!(s==="combobox"&&d)&&F.preventDefault(),(s!=="combobox"&&(!c||!z)||!i)&&(i&&f!==!1&&m("",!0,!1),p())},j={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:P,onInputPaste:N,onInputCompositionStart:E,onInputCompositionEnd:R},D=s==="multiple"||s==="tags"?l.createElement(P$,ue({},t,j)):l.createElement(N$,ue({},t,j));return l.createElement("div",{ref:g,className:"".concat(a,"-selector"),onClick:T,onMouseDown:O},D)},Hg=l.forwardRef(M$);Hg.displayName="Selector";function T$(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=l.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],h=n.points[1],g=p[0],C=p[1],y=h[0],b=h[1];g===y||!["t","b"].includes(g)?v.top=f:g==="t"?v.top=0:v.bottom=0,C===b||!["l","r"].includes(C)?v.left=u:C==="l"?v.left=0:v.right=0}return l.createElement("div",{ref:m,className:K("".concat(t,"-arrow"),i),style:v},s)}function A$(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?l.createElement(Vn,ue({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:K("".concat(t,"-mask"),s)})}):null}var kg=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});kg.displayName="PopupContent";var Vg=l.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,p=e.arrowPos,h=e.align,g=e.motion,C=e.maskMotion,y=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,w=e.portal,x=e.zIndex,$=e.onMouseEnter,I=e.onMouseLeave,E=e.onPointerEnter,R=e.ready,P=e.offsetX,N=e.offsetY,T=e.offsetR,O=e.offsetB,j=e.onAlign,D=e.onPrepare,M=e.stretch,F=e.targetWidth,z=e.targetHeight,L=typeof n=="function"?n():n,_=c||u,B=(b==null?void 0:b.length)>0,k=l.useState(!b||!B),q=G(k,2),Q=q[0],te=q[1];if(mt(function(){!Q&&B&&i&&te(!0)},[Q,B,i]),!Q)return null;var U="auto",Z={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(R||!c){var ae,J=h.points,Y=h.dynamicInset||((ae=h._experimental)===null||ae===void 0?void 0:ae.dynamicInset),re=Y&&J[0][1]==="r",ee=Y&&J[0][0]==="b";re?(Z.right=T,Z.left=U):(Z.left=P,Z.right=U),ee?(Z.bottom=O,Z.top=U):(Z.top=N,Z.bottom=U)}var V={};return M&&(M.includes("height")&&z?V.height=z:M.includes("minHeight")&&z&&(V.minHeight=z),M.includes("width")&&F?V.width=F:M.includes("minWidth")&&F&&(V.minWidth=F)),c||(V.pointerEvents="none"),l.createElement(w,{open:y||_,getContainer:b&&function(){return b(i)},autoDestroy:S},l.createElement(A$,{prefixCls:o,open:c,zIndex:x,mask:m,motion:C}),l.createElement(cr,{onResize:j,disabled:!c},function(ne){return l.createElement(Vn,ue({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:D,onEnterPrepare:D,visible:c,onVisibleChanged:function(ye){var be;g==null||(be=g.onVisibleChanged)===null||be===void 0||be.call(g,ye),s(ye)}}),function(fe,ye){var be=fe.className,de=fe.style,oe=K(o,be,r);return l.createElement("div",{ref:gn(ne,t,ye),className:oe,style:H(H(H(H({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},Z),V),de),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:$,onMouseLeave:I,onPointerEnter:E,onClick:f},v&&l.createElement(T$,{prefixCls:o,arrow:v,arrowPos:p,align:h}),l.createElement(kg,{cache:!c&&!d},L))})}))});Vg.displayName="Popup";var Kg=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=sr(n),a=l.useCallback(function(s){Us(t,r?r(s):s)},[r]),i=Kr(a,n.ref);return o?l.cloneElement(n,{ref:i}):n});Kg.displayName="TriggerWrapper";var qd=l.createContext(null);function Ud(e){return e?Array.isArray(e)?e:[e]:[]}function D$(e,t,n,r){return l.useMemo(function(){var o=Ud(n??t),a=Ud(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function F$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _$(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Fo(e){return ua(parseFloat(e),0)}function Yd(e,t){var n=H({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Oa(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,p=r.offsetWidth,h=r.clientWidth,g=Fo(s),C=Fo(c),y=Fo(u),b=Fo(d),S=ua(Math.round(f.width/p*1e3)/1e3),w=ua(Math.round(f.height/m*1e3)/1e3),x=(p-h-y-b)*S,$=(m-v-g-C)*w,I=g*w,E=C*w,R=y*S,P=b*S,N=0,T=0;if(a==="clip"){var O=Fo(i);N=O*S,T=O*w}var j=f.x+R-N,D=f.y+I-T,M=j+f.width+2*N-R-P-x,F=D+f.height+2*T-I-E-$;n.left=Math.max(n.left,j),n.top=Math.max(n.top,D),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,F)}}),n}function Qd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Zd(e,t){var n=t||[],r=G(n,2),o=r[0],a=r[1];return[Qd(e.width,o),Qd(e.height,a)]}function Jd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Zr(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function gr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function j$(e,t,n,r,o,a,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=G(s,2),u=c[0],d=c[1],f=l.useRef(0),m=l.useMemo(function(){return t?Ts(t):[]},[t]),v=l.useRef({}),p=function(){v.current={}};e||p();var h=kt(function(){if(t&&n&&e){let sn=function(qn,en){var mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oe,_a=L.x+qn,qr=L.y+en,ja=_a+ae,Mo=qr+Z,La=Math.max(_a,mr.left),sl=Math.max(qr,mr.top),cl=Math.min(ja,mr.right),ul=Math.min(Mo,mr.bottom);return Math.max(0,(cl-La)*(ul-sl))},Ir=function(){xt=L.y+ve,wt=xt+Z,Ze=L.x+Ne,Pt=Ze+ae};var y,b,S=t,w=S.ownerDocument,x=Oa(S),$=x.getComputedStyle(S),I=$.width,E=$.height,R=$.position,P=S.style.left,N=S.style.top,T=S.style.right,O=S.style.bottom,j=S.style.overflow,D=H(H({},o[r]),a),M=w.createElement("div");(y=S.parentElement)===null||y===void 0||y.appendChild(M),M.style.left="".concat(S.offsetLeft,"px"),M.style.top="".concat(S.offsetTop,"px"),M.style.position=R,M.style.height="".concat(S.offsetHeight,"px"),M.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var z=n.getBoundingClientRect();F={x:z.x,y:z.y,width:z.width,height:z.height}}var L=S.getBoundingClientRect(),_=w.documentElement,B=_.clientWidth,k=_.clientHeight,q=_.scrollWidth,Q=_.scrollHeight,te=_.scrollTop,U=_.scrollLeft,Z=L.height,ae=L.width,J=F.height,Y=F.width,re={left:0,top:0,right:B,bottom:k},ee={left:-U,top:-te,right:q-U,bottom:Q-te},V=D.htmlRegion,ne="visible",fe="visibleFirst";V!=="scroll"&&V!==fe&&(V=ne);var ye=V===fe,be=Yd(ee,m),de=Yd(re,m),oe=V===ne?de:be,se=ye?de:oe;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var $e=S.getBoundingClientRect();S.style.left=P,S.style.top=N,S.style.right=T,S.style.bottom=O,S.style.overflow=j,(b=S.parentElement)===null||b===void 0||b.removeChild(M);var Ce=ua(Math.round(ae/parseFloat(I)*1e3)/1e3),pe=ua(Math.round(Z/parseFloat(E)*1e3)/1e3);if(Ce===0||pe===0||Xo(n)&&!Wi(n))return;var Se=D.offset,me=D.targetOffset,Fe=Zd(L,Se),Le=G(Fe,2),Ee=Le[0],we=Le[1],Ue=Zd(F,me),ke=G(Ue,2),tt=ke[0],dt=ke[1];F.x-=tt,F.y-=dt;var ft=D.points||[],Ve=G(ft,2),nt=Ve[0],et=Ve[1],pt=Jd(et),lt=Jd(nt),bt=Zr(F,pt),Me=Zr(L,lt),xe=H({},D),Ne=bt.x-Me.x+Ee,ve=bt.y-Me.y+we,Be=sn(Ne,ve),Pe=sn(Ne,ve,de),ge=Zr(F,["t","l"]),ze=Zr(L,["t","l"]),rt=Zr(F,["b","r"]),he=Zr(L,["b","r"]),Ae=D.overflow||{},Ie=Ae.adjustX,Ke=Ae.adjustY,Qe=Ae.shiftX,ot=Ae.shiftY,It=function(en){return typeof en=="boolean"?en:en>=0},xt,wt,Ze,Pt;Ir();var Nt=It(Ke),dn=lt[0]===pt[0];if(Nt&<[0]==="t"&&(wt>se.bottom||v.current.bt)){var _t=ve;dn?_t-=Z-J:_t=ge.y-he.y-we;var qt=sn(Ne,_t),Oe=sn(Ne,_t,de);qt>Be||qt===Be&&(!ye||Oe>=Pe)?(v.current.bt=!0,ve=_t,we=-we,xe.points=[gr(lt,0),gr(pt,0)]):v.current.bt=!1}if(Nt&<[0]==="b"&&(xtBe||_e===Be&&(!ye||$t>=Pe)?(v.current.tb=!0,ve=Re,we=-we,xe.points=[gr(lt,0),gr(pt,0)]):v.current.tb=!1}var Ut=It(Ie),Gn=lt[1]===pt[1];if(Ut&<[1]==="l"&&(Pt>se.right||v.current.rl)){var Xt=Ne;Gn?Xt-=ae-Y:Xt=ge.x-he.x-Ee;var Mn=sn(Xt,ve),fn=sn(Xt,ve,de);Mn>Be||Mn===Be&&(!ye||fn>=Pe)?(v.current.rl=!0,Ne=Xt,Ee=-Ee,xe.points=[gr(lt,1),gr(pt,1)]):v.current.rl=!1}if(Ut&<[1]==="r"&&(ZeBe||pn===Be&&(!ye||dr>=Pe)?(v.current.lr=!0,Ne=Zt,Ee=-Ee,xe.points=[gr(lt,1),gr(pt,1)]):v.current.lr=!1}Ir();var mn=Qe===!0?0:Qe;typeof mn=="number"&&(Zede.right&&(Ne-=Pt-de.right-Ee,F.x>de.right-mn&&(Ne+=F.x-de.right+mn)));var an=ot===!0?0:ot;typeof an=="number"&&(xtde.bottom&&(ve-=wt-de.bottom-we,F.y>de.bottom-an&&(ve+=F.y-de.bottom+an)));var xn=L.x+Ne,fr=xn+ae,wn=L.y+ve,Tn=wn+Z,An=F.x,$n=An+Y,Je=F.y,Xe=Je+J,jt=Math.max(xn,An),Lt=Math.min(fr,$n),Ge=(jt+Lt)/2,qe=Ge-xn,at=Math.max(wn,Je),Et=Math.min(Tn,Xe),yt=(at+Et)/2,ln=yt-wn;i==null||i(t,xe);var Jt=$e.right-L.x-(Ne+L.width),Dn=$e.bottom-L.y-(ve+L.height);d({ready:!0,offsetX:Ne/Ce,offsetY:ve/pe,offsetR:Jt/Ce,offsetB:Dn/pe,arrowX:qe/Ce,arrowY:ln/pe,scaleX:Ce,scaleY:pe,align:xe})}}),g=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&h()})},C=function(){d(function(b){return H(H({},b),{},{ready:!1})})};return mt(C,[r]),mt(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function L$(e,t,n,r,o){mt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,s=Ts(a),c=Ts(i),u=Oa(i),d=new Set([u].concat(ce(s),ce(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function z$(e,t,n,r,o,a,i,s){var c=l.useRef(e);c.current=e,l.useEffect(function(){if(t&&r&&(!o||a)){var u=function(C){var y=C.target;c.current&&!i(y)&&s(!1)},d=Oa(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=xi(n);f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0));{var m,v,p=n==null||(m=n.getRootNode)===null||m===void 0?void 0:m.call(n),h=(v=r.getRootNode)===null||v===void 0?void 0:v.call(r);rr(p===h,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,o,a])}var B$=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function H$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xi,t=l.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,h=n.mouseEnterDelay,g=n.mouseLeaveDelay,C=g===void 0?.1:g,y=n.focusDelay,b=n.blurDelay,S=n.mask,w=n.maskClosable,x=w===void 0?!0:w,$=n.getPopupContainer,I=n.forceRender,E=n.autoDestroy,R=n.destroyPopupOnHide,P=n.popup,N=n.popupClassName,T=n.popupStyle,O=n.popupPlacement,j=n.builtinPlacements,D=j===void 0?{}:j,M=n.popupAlign,F=n.zIndex,z=n.stretch,L=n.getPopupClassNameFromAlign,_=n.fresh,B=n.alignPoint,k=n.onPopupClick,q=n.onPopupAlign,Q=n.arrow,te=n.popupMotion,U=n.maskMotion,Z=n.popupTransitionName,ae=n.popupAnimation,J=n.maskTransitionName,Y=n.maskAnimation,re=n.className,ee=n.getTriggerDOMNode,V=We(n,B$),ne=E||R||!1,fe=l.useState(!1),ye=G(fe,2),be=ye[0],de=ye[1];mt(function(){de(Pc())},[]);var oe=l.useRef({}),se=l.useContext(qd),$e=l.useMemo(function(){return{registerSubPopup:function(Ye,Mt){oe.current[Ye]=Mt,se==null||se.registerSubPopup(Ye,Mt)}}},[se]),Ce=og(),pe=l.useState(null),Se=G(pe,2),me=Se[0],Fe=Se[1],Le=l.useRef(null),Ee=kt(function(Te){Le.current=Te,Xo(Te)&&me!==Te&&Fe(Te),se==null||se.registerSubPopup(Ce,Te)}),we=l.useState(null),Ue=G(we,2),ke=Ue[0],tt=Ue[1],dt=l.useRef(null),ft=kt(function(Te){Xo(Te)&&ke!==Te&&(tt(Te),dt.current=Te)}),Ve=l.Children.only(i),nt=(Ve==null?void 0:Ve.props)||{},et={},pt=kt(function(Te){var Ye,Mt,Ht=ke;return(Ht==null?void 0:Ht.contains(Te))||((Ye=xi(Ht))===null||Ye===void 0?void 0:Ye.host)===Te||Te===Ht||(me==null?void 0:me.contains(Te))||((Mt=xi(me))===null||Mt===void 0?void 0:Mt.host)===Te||Te===me||Object.values(oe.current).some(function(Tt){return(Tt==null?void 0:Tt.contains(Te))||Te===Tt})}),lt=Xd(a,te,ae,Z),bt=Xd(a,U,Y,J),Me=l.useState(m||!1),xe=G(Me,2),Ne=xe[0],ve=xe[1],Be=f??Ne,Pe=kt(function(Te){f===void 0&&ve(Te)});mt(function(){ve(f||!1)},[f]);var ge=l.useRef(Be);ge.current=Be;var ze=l.useRef([]);ze.current=[];var rt=kt(function(Te){var Ye;Pe(Te),((Ye=ze.current[ze.current.length-1])!==null&&Ye!==void 0?Ye:Be)!==Te&&(ze.current.push(Te),v==null||v(Te))}),he=l.useRef(),Ae=function(){clearTimeout(he.current)},Ie=function(Ye){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ae(),Mt===0?rt(Ye):he.current=setTimeout(function(){rt(Ye)},Mt*1e3)};l.useEffect(function(){return Ae},[]);var Ke=l.useState(!1),Qe=G(Ke,2),ot=Qe[0],It=Qe[1];mt(function(Te){(!Te||Be)&&It(!0)},[Be]);var xt=l.useState(null),wt=G(xt,2),Ze=wt[0],Pt=wt[1],Nt=l.useState([0,0]),dn=G(Nt,2),_t=dn[0],qt=dn[1],Oe=function(Ye){qt([Ye.clientX,Ye.clientY])},Re=j$(Be,me,B?_t:ke,O,D,M,q),_e=G(Re,11),$t=_e[0],Ut=_e[1],Gn=_e[2],Xt=_e[3],Mn=_e[4],fn=_e[5],Zt=_e[6],pn=_e[7],dr=_e[8],mn=_e[9],an=_e[10],xn=D$(be,c,u,d),fr=G(xn,2),wn=fr[0],Tn=fr[1],An=wn.has("click"),$n=Tn.has("click")||Tn.has("contextMenu"),Je=kt(function(){ot||an()}),Xe=function(){ge.current&&B&&$n&&Ie(!1)};L$(Be,ke,me,Je,Xe),mt(function(){Je()},[_t,O]),mt(function(){Be&&!(D!=null&&D[O])&&Je()},[JSON.stringify(M)]);var jt=l.useMemo(function(){var Te=_$(D,a,mn,B);return K(Te,L==null?void 0:L(mn))},[mn,L,D,a,B]);l.useImperativeHandle(r,function(){return{nativeElement:dt.current,popupElement:Le.current,forceAlign:Je}});var Lt=l.useState(0),Ge=G(Lt,2),qe=Ge[0],at=Ge[1],Et=l.useState(0),yt=G(Et,2),ln=yt[0],Jt=yt[1],Dn=function(){if(z&&ke){var Ye=ke.getBoundingClientRect();at(Ye.width),Jt(Ye.height)}},sn=function(){Dn(),Je()},Ir=function(Ye){It(!1),an(),p==null||p(Ye)},qn=function(){return new Promise(function(Ye){Dn(),Pt(function(){return Ye})})};mt(function(){Ze&&(an(),Ze(),Pt(null))},[Ze]);function en(Te,Ye,Mt,Ht){et[Te]=function(Tt){var za;Ht==null||Ht(Tt),Ie(Ye,Mt);for(var dl=arguments.length,gu=new Array(dl>1?dl-1:0),Ba=1;Ba1?Mt-1:0),Tt=1;Tt1?Mt-1:0),Tt=1;Tt1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Gg(n,!1),i=a.label,s=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(v){if(m||!(c in v)){var p=v[s];o.push({key:ef(v,o.length),groupOption:m,data:v,label:v[i],value:p})}else{var h=v[u];h===void 0&&r&&(h=v.label),o.push({key:ef(v,o.length),group:!0,data:v,label:h}),d(v[c],!0)}})}return d(e,!1),o}function Ds(e){var t=H({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return je(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var G$=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function s(c,u){var d=Km(u),f=d[0],m=d.slice(1);if(!f)return[c];var v=c.split(f);return o=o||v.length>1,v.reduce(function(p,h){return[].concat(ce(p),ce(s(h,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},Tc=l.createContext(null);function q$(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(De(a))?a:i}).join(", ")),n.length>r?", ...":null)}var U$=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X$=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Oi=function(t){return t==="tags"||t==="multiple"},qg=l.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,v=e.notFoundContent,p=v===void 0?"Not Found":v,h=e.onClear,g=e.mode,C=e.disabled,y=e.loading,b=e.getInputElement,S=e.getRawInputElement,w=e.open,x=e.defaultOpen,$=e.onDropdownVisibleChange,I=e.activeValue,E=e.onActiveValueChange,R=e.activeDescendantId,P=e.searchValue,N=e.autoClearSearchValue,T=e.onSearch,O=e.onSearchSplit,j=e.tokenSeparators,D=e.allowClear,M=e.suffixIcon,F=e.clearIcon,z=e.OptionList,L=e.animation,_=e.transitionName,B=e.dropdownStyle,k=e.dropdownClassName,q=e.dropdownMatchSelectWidth,Q=e.dropdownRender,te=e.dropdownAlign,U=e.placement,Z=e.builtinPlacements,ae=e.getPopupContainer,J=e.showAction,Y=J===void 0?[]:J,re=e.onFocus,ee=e.onBlur,V=e.onKeyUp,ne=e.onKeyDown,fe=e.onMouseDown,ye=We(e,U$),be=Oi(g),de=(i!==void 0?i:be)||g==="combobox",oe=H({},ye);X$.forEach(function(Je){delete oe[Je]}),u==null||u.forEach(function(Je){delete oe[Je]});var se=l.useState(!1),$e=G(se,2),Ce=$e[0],pe=$e[1];l.useEffect(function(){pe(Pc())},[]);var Se=l.useRef(null),me=l.useRef(null),Fe=l.useRef(null),Le=l.useRef(null),Ee=l.useRef(null),we=l.useRef(!1),Ue=s$(),ke=G(Ue,3),tt=ke[0],dt=ke[1],ft=ke[2];l.useImperativeHandle(t,function(){var Je,Xe;return{focus:(Je=Le.current)===null||Je===void 0?void 0:Je.focus,blur:(Xe=Le.current)===null||Xe===void 0?void 0:Xe.blur,scrollTo:function(Lt){var Ge;return(Ge=Ee.current)===null||Ge===void 0?void 0:Ge.scrollTo(Lt)},nativeElement:Se.current||me.current}});var Ve=l.useMemo(function(){var Je;if(g!=="combobox")return P;var Xe=(Je=d[0])===null||Je===void 0?void 0:Je.value;return typeof Xe=="string"||typeof Xe=="number"?String(Xe):""},[P,g,d]),nt=g==="combobox"&&typeof b=="function"&&b()||null,et=typeof S=="function"&&S(),pt=Kr(me,et==null||(n=et.props)===null||n===void 0?void 0:n.ref),lt=l.useState(!1),bt=G(lt,2),Me=bt[0],xe=bt[1];mt(function(){xe(!0)},[]);var Ne=Vt(!1,{defaultValue:x,value:w}),ve=G(Ne,2),Be=ve[0],Pe=ve[1],ge=Me?Be:!1,ze=!p&&m;(C||ze&&ge&&g==="combobox")&&(ge=!1);var rt=ze?!1:ge,he=l.useCallback(function(Je){var Xe=Je!==void 0?Je:!ge;C||(Pe(Xe),ge!==Xe&&($==null||$(Xe)))},[C,ge,Pe,$]),Ae=l.useMemo(function(){return(j||[]).some(function(Je){return[`
-`,`\r
-`].includes(Je)})},[j]),Ie=l.useContext(Tc)||{},Ke=Ie.maxCount,Qe=Ie.rawValues,ot=function(Xe,jt,Lt){if(!(be&&As(Ke)&&(Qe==null?void 0:Qe.size)>=Ke)){var Ge=!0,qe=Xe;E==null||E(null);var at=G$(Xe,j,As(Ke)?Ke-Qe.size:void 0),Et=Lt?null:at;return g!=="combobox"&&Et&&(qe="",O==null||O(Et),he(!1),Ge=!1),T&&Ve!==qe&&T(qe,{source:jt?"typing":"effect"}),Ge}},It=function(Xe){!Xe||!Xe.trim()||T(Xe,{source:"submit"})};l.useEffect(function(){!ge&&!be&&g!=="combobox"&&ot("",!1,!1)},[ge]),l.useEffect(function(){Be&&C&&Pe(!1),C&&!we.current&&dt(!1)},[C]);var xt=_g(),wt=G(xt,2),Ze=wt[0],Pt=wt[1],Nt=function(Xe){var jt=Ze(),Lt=Xe.which;if(Lt===ie.ENTER&&(g!=="combobox"&&Xe.preventDefault(),ge||he(!0)),Pt(!!Ve),Lt===ie.BACKSPACE&&!jt&&be&&!Ve&&d.length){for(var Ge=ce(d),qe=null,at=Ge.length-1;at>=0;at-=1){var Et=Ge[at];if(!Et.disabled){Ge.splice(at,1),qe=Et;break}}qe&&f(Ge,{type:"remove",values:[qe]})}for(var yt=arguments.length,ln=new Array(yt>1?yt-1:0),Jt=1;Jt1?jt-1:0),Ge=1;Ge1?at-1:0),yt=1;yt"u"?"undefined":De(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Xg=function(e,t,n,r){var o=l.useRef(!1),a=l.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}};function e1(e,t,n,r,o,a,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=Xg(t,n,r,o);function m(y,b){ut.cancel(c.current),s.current+=b,u.current=b,!f(!1,b)&&(tf||y.preventDefault(),c.current=ut(function(){var S=d.current?10:1;i(s.current*S),s.current=0}))}function v(y,b){i(b,!0),tf||y.preventDefault()}var p=l.useRef(null),h=l.useRef(null);function g(y){if(e){ut.cancel(h.current),h.current=ut(function(){p.current=null},2);var b=y.deltaX,S=y.deltaY,w=y.shiftKey,x=b,$=S;(p.current==="sx"||!p.current&&w&&S&&!b)&&(x=S,$=0,p.current="sx");var I=Math.abs(x),E=Math.abs($);p.current===null&&(p.current=a&&I>E?"x":"y"),p.current==="y"?m(y,$):v(y,x)}}function C(y){e&&(d.current=y.detail===u.current)}return[g,C]}function t1(e,t,n,r){var o=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=G(o,2),i=a[0],s=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),v=i.get(f);if(m===void 0||v===void 0)for(var p=e.length,h=s.length;h0&&arguments[0]!==void 0?arguments[0]:!1;d();var p=function(){s.current.forEach(function(g,C){if(g&&g.offsetParent){var y=Ho(g),b=y.offsetHeight;c.current.get(C)!==b&&c.current.set(C,y.offsetHeight)}}),i(function(g){return g+1})};v?p():u.current=ut(p)}function m(v,p){var h=e(v);s.current.get(h),p?(s.current.set(h,p),f()):s.current.delete(h)}return l.useEffect(function(){return d},[]),[m,f,c.current,a]}var nf=14/15;function o1(e,t,n){var r=l.useRef(!1),o=l.useRef(0),a=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(v){if(r.current){var p=Math.ceil(v.touches[0].pageX),h=Math.ceil(v.touches[0].pageY),g=o.current-p,C=a.current-h,y=Math.abs(g)>Math.abs(C);y?o.current=p:a.current=h,n(y,y?g:C)&&v.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){y?g*=nf:C*=nf;var b=Math.floor(y?g:C);(!n(y,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16)}},d=function(){r.current=!1,c()},f=function(v){c(),v.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(v.touches[0].pageX),a.current=Math.ceil(v.touches[0].pageY),i.current=v.target,i.current.addEventListener("touchmove",u),i.current.addEventListener("touchend",d))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},mt(function(){return e&&t.current.addEventListener("touchstart",f),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}var rf=10;function a1(e,t,n,r,o,a,i,s){var c=l.useRef(),u=l.useState(null),d=G(u,2),f=d[0],m=d[1];return mt(function(){if(f&&f.times=0;O-=1){var j=o(t[O]),D=n.get(j);if(D===void 0){y=!0;break}if(T-=D,T<=0)break}switch(w){case"top":S=$-g;break;case"bottom":S=I-C+g;break;default:{var M=e.current.scrollTop,F=M+C;$F&&(b="bottom")}}S!==null&&i(S),S!==f.lastTop&&(y=!0)}y&&m(H(H({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}else(f==null?void 0:f.times)===rf&&je(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(v){if(v==null){s();return}if(ut.cancel(c.current),typeof v=="number")i(v);else if(v&&De(v)==="object"){var p,h=v.align;"index"in v?p=v.index:p=t.findIndex(function(y){return o(y)===v.key});var g=v.offset,C=g===void 0?0:g;m({times:0,index:p,offset:C,originAlign:h})}}}function of(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Fs=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,p=l.useState(!1),h=G(p,2),g=h[0],C=h[1],y=l.useState(null),b=G(y,2),S=b[0],w=b[1],x=l.useState(null),$=G(x,2),I=$[0],E=$[1],R=!r,P=l.useRef(),N=l.useRef(),T=l.useState(!1),O=G(T,2),j=O[0],D=O[1],M=l.useRef(),F=function(){clearTimeout(M.current),D(!0),M.current=setTimeout(function(){D(!1)},3e3)},z=a-f||0,L=f-d||0,_=l.useMemo(function(){if(o===0||z===0)return 0;var J=o/z;return J*L},[o,z,L]),B=function(Y){Y.stopPropagation(),Y.preventDefault()},k=l.useRef({top:_,dragging:g,pageY:S,startTop:I});k.current={top:_,dragging:g,pageY:S,startTop:I};var q=function(Y){C(!0),w(of(Y,u)),E(k.current.top),i(),Y.stopPropagation(),Y.preventDefault()};l.useEffect(function(){var J=function(V){V.preventDefault()},Y=P.current,re=N.current;return Y.addEventListener("touchstart",J),re.addEventListener("touchstart",q),function(){Y.removeEventListener("touchstart",J),re.removeEventListener("touchstart",q)}},[]);var Q=l.useRef();Q.current=z;var te=l.useRef();te.current=L,l.useEffect(function(){if(g){var J,Y=function(V){var ne=k.current,fe=ne.dragging,ye=ne.pageY,be=ne.startTop;if(ut.cancel(J),fe){var de=of(V,u)-ye,oe=be;!R&&u?oe-=de:oe+=de;var se=Q.current,$e=te.current,Ce=$e?oe/$e:0,pe=Math.ceil(Ce*se);pe=Math.max(pe,0),pe=Math.min(pe,se),J=ut(function(){c(pe,u)})}},re=function(){C(!1),s()};return window.addEventListener("mousemove",Y),window.addEventListener("touchmove",Y),window.addEventListener("mouseup",re),window.addEventListener("touchend",re),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",re),window.removeEventListener("touchend",re),ut.cancel(J)}}},[g]),l.useEffect(function(){F()},[o]),l.useImperativeHandle(t,function(){return{delayHidden:F}});var U="".concat(n,"-scrollbar"),Z={position:"absolute",visibility:j?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Z.height=8,Z.left=0,Z.right=0,Z.bottom=0,ae.height="100%",ae.width=d,R?ae.left=_:ae.right=_):(Z.width=8,Z.top=0,Z.bottom=0,R?Z.right=0:Z.left=0,ae.width="100%",ae.height=d,ae.top=_),l.createElement("div",{ref:P,className:K(U,A(A(A({},"".concat(U,"-horizontal"),u),"".concat(U,"-vertical"),!u),"".concat(U,"-visible"),j)),style:H(H({},Z),m),onMouseDown:B,onMouseMove:F},l.createElement("div",{ref:N,className:K("".concat(U,"-thumb"),A({},"".concat(U,"-thumb-moving"),g)),style:H(H({},ae),v),onMouseDown:q}))});Fs.displayName="ScrollBar";var i1=20;function af(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,i1),Math.floor(n)}var l1=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],s1=[],c1={overflowY:"auto",overflowAnchor:"none"};function u1(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,p=e.direction,h=e.scrollWidth,g=e.component,C=g===void 0?"div":g,y=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,x=e.extraRender,$=e.styles,I=We(e,l1),E=l.useCallback(function(Oe){return typeof m=="function"?m(Oe):Oe==null?void 0:Oe[m]},[m]),R=r1(E),P=G(R,4),N=P[0],T=P[1],O=P[2],j=P[3],D=!!(v!==!1&&a&&i),M=l.useMemo(function(){return Object.values(O.maps).reduce(function(Oe,Re){return Oe+Re},0)},[O.id,O.maps]),F=D&&d&&(Math.max(i*d.length,M)>a||!!h),z=p==="rtl",L=K(r,A({},"".concat(r,"-rtl"),z),o),_=d||s1,B=l.useRef(),k=l.useRef(),q=l.useRef(),Q=l.useState(0),te=G(Q,2),U=te[0],Z=te[1],ae=l.useState(0),J=G(ae,2),Y=J[0],re=J[1],ee=l.useState(!1),V=G(ee,2),ne=V[0],fe=V[1],ye=function(){fe(!0)},be=function(){fe(!1)},de={getKey:E};function oe(Oe){Z(function(Re){var _e;typeof Oe=="function"?_e=Oe(Re):_e=Oe;var $t=Me(_e);return B.current.scrollTop=$t,$t})}var se=l.useRef({start:0,end:_.length}),$e=l.useRef(),Ce=J$(_,E),pe=G(Ce,1),Se=pe[0];$e.current=Se;var me=l.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:_.length-1,offset:void 0};if(!F){var Oe;return{scrollHeight:((Oe=k.current)===null||Oe===void 0?void 0:Oe.offsetHeight)||0,start:0,end:_.length-1,offset:void 0}}for(var Re=0,_e,$t,Ut,Gn=_.length,Xt=0;Xt=U&&_e===void 0&&(_e=Xt,$t=Re),pn>U+a&&Ut===void 0&&(Ut=Xt),Re=pn}return _e===void 0&&(_e=0,$t=0,Ut=Math.ceil(a/i)),Ut===void 0&&(Ut=_.length-1),Ut=Math.min(Ut+1,_.length-1),{scrollHeight:Re,start:_e,end:Ut,offset:$t}},[F,D,U,_,j,a]),Fe=me.scrollHeight,Le=me.start,Ee=me.end,we=me.offset;se.current.start=Le,se.current.end=Ee;var Ue=l.useState({width:0,height:a}),ke=G(Ue,2),tt=ke[0],dt=ke[1],ft=function(Re){dt({width:Re.width||Re.offsetWidth,height:Re.height||Re.offsetHeight})},Ve=l.useRef(),nt=l.useRef(),et=l.useMemo(function(){return af(tt.width,h)},[tt.width,h]),pt=l.useMemo(function(){return af(tt.height,Fe)},[tt.height,Fe]),lt=Fe-a,bt=l.useRef(lt);bt.current=lt;function Me(Oe){var Re=Oe;return Number.isNaN(bt.current)||(Re=Math.min(Re,bt.current)),Re=Math.max(Re,0),Re}var xe=U<=0,Ne=U>=lt,ve=Y<=0,Be=Y>=h,Pe=Xg(xe,Ne,ve,Be),ge=function(){return{x:z?-Y:Y,y:U}},ze=l.useRef(ge()),rt=kt(function(Oe){if(b){var Re=H(H({},ge()),Oe);(ze.current.x!==Re.x||ze.current.y!==Re.y)&&(b(Re),ze.current=Re)}});function he(Oe,Re){var _e=Oe;Re?(uo.flushSync(function(){re(_e)}),rt()):oe(_e)}function Ae(Oe){var Re=Oe.currentTarget.scrollTop;Re!==U&&oe(Re),y==null||y(Oe),rt()}var Ie=function(Re){var _e=Re,$t=h?h-tt.width:0;return _e=Math.max(_e,0),_e=Math.min(_e,$t),_e},Ke=kt(function(Oe,Re){Re?(uo.flushSync(function(){re(function(_e){var $t=_e+(z?-Oe:Oe);return Ie($t)})}),rt()):oe(function(_e){var $t=_e+Oe;return $t})}),Qe=e1(D,xe,Ne,ve,Be,!!h,Ke),ot=G(Qe,2),It=ot[0],xt=ot[1];o1(D,B,function(Oe,Re,_e){return Pe(Oe,Re,_e)?!1:(It({preventDefault:function(){},deltaX:Oe?Re:0,deltaY:Oe?0:Re}),!0)}),mt(function(){function Oe(_e){D&&_e.preventDefault()}var Re=B.current;return Re.addEventListener("wheel",It),Re.addEventListener("DOMMouseScroll",xt),Re.addEventListener("MozMousePixelScroll",Oe),function(){Re.removeEventListener("wheel",It),Re.removeEventListener("DOMMouseScroll",xt),Re.removeEventListener("MozMousePixelScroll",Oe)}},[D]),mt(function(){if(h){var Oe=Ie(Y);re(Oe),rt({x:Oe})}},[tt.width,h]);var wt=function(){var Re,_e;(Re=Ve.current)===null||Re===void 0||Re.delayHidden(),(_e=nt.current)===null||_e===void 0||_e.delayHidden()},Ze=a1(B,_,O,i,E,function(){return T(!0)},oe,wt);l.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:ge,scrollTo:function(Re){function _e($t){return $t&&De($t)==="object"&&("left"in $t||"top"in $t)}_e(Re)?(Re.left!==void 0&&re(Ie(Re.left)),Ze(Re.top)):Ze(Re)}}}),mt(function(){if(S){var Oe=_.slice(Le,Ee+1);S(Oe,_)}},[Le,Ee,_]);var Pt=t1(_,E,O,i),Nt=x==null?void 0:x({start:Le,end:Ee,virtual:F,offsetX:Y,offsetY:we,rtl:z,getSize:Pt}),dn=Q$(_,Le,Ee,h,Y,N,f,de),_t=null;a&&(_t=H(A({},c?"height":"maxHeight",a),c1),D&&(_t.overflowY="hidden",h&&(_t.overflowX="hidden"),ne&&(_t.pointerEvents="none")));var qt={};return z&&(qt.dir="rtl"),l.createElement("div",ue({ref:q,style:H(H({},u),{},{position:"relative"}),className:L},qt,I),l.createElement(cr,{onResize:ft},l.createElement(C,{className:"".concat(r,"-holder"),style:_t,ref:B,onScroll:Ae,onMouseEnter:wt},l.createElement(Ug,{prefixCls:r,height:Fe,offsetX:Y,offsetY:we,scrollWidth:h,onInnerResize:T,ref:k,innerProps:w,rtl:z,extra:Nt},dn))),F&&Fe>a&&l.createElement(Fs,{ref:Ve,prefixCls:r,scrollOffset:U,scrollRange:Fe,rtl:z,onScroll:he,onStartMove:ye,onStopMove:be,spinSize:pt,containerSize:tt.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb}),F&&h>tt.width&&l.createElement(Fs,{ref:nt,prefixCls:r,scrollOffset:Y,scrollRange:h,rtl:z,onScroll:he,onStartMove:ye,onStopMove:be,spinSize:et,containerSize:tt.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb}))}var Fc=l.forwardRef(u1);Fc.displayName="List";function d1(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var f1=["disabled","title","children","style","className"];function lf(e){return typeof e=="string"||typeof e=="number"}var m1=function(t,n){var r=l$(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=l.useContext(Tc),p=v.maxCount,h=v.flattenOptions,g=v.onActiveValue,C=v.defaultActiveFirstOption,y=v.onSelect,b=v.menuItemSelectedIcon,S=v.rawValues,w=v.fieldNames,x=v.virtual,$=v.direction,I=v.listHeight,E=v.listItemHeight,R=v.optionRender,P="".concat(o,"-item"),N=ha(function(){return h},[i,h],function(J,Y){return Y[0]&&J[1]!==Y[1]}),T=l.useRef(null),O=l.useMemo(function(){return s&&As(p)&&(S==null?void 0:S.size)>=p},[s,p,S==null?void 0:S.size]),j=function(Y){Y.preventDefault()},D=function(Y){var re;(re=T.current)===null||re===void 0||re.scrollTo(typeof Y=="number"?{index:Y}:Y)},M=function(Y){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=N.length,V=0;V1&&arguments[1]!==void 0?arguments[1]:!1;_(Y);var ee={source:re?"keyboard":"mouse"},V=N[Y];if(!V){g(null,-1,ee);return}g(V.value,Y,ee)};l.useEffect(function(){B(C!==!1?M(0):-1)},[N.length,u]);var k=l.useCallback(function(J){return S.has(J)&&c!=="combobox"},[c,ce(S).toString(),S.size]);l.useEffect(function(){var J=setTimeout(function(){if(!s&&i&&S.size===1){var re=Array.from(S)[0],ee=N.findIndex(function(V){var ne=V.data;return ne.value===re});ee!==-1&&(B(ee),D(ee))}});if(i){var Y;(Y=T.current)===null||Y===void 0||Y.scrollTo(void 0)}return function(){return clearTimeout(J)}},[i,u]);var q=function(Y){Y!==void 0&&y(Y,{selected:!S.has(Y)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(Y){var re=Y.which,ee=Y.ctrlKey;switch(re){case ie.N:case ie.P:case ie.UP:case ie.DOWN:{var V=0;if(re===ie.UP?V=-1:re===ie.DOWN?V=1:d1()&&ee&&(re===ie.N?V=1:re===ie.P&&(V=-1)),V!==0){var ne=M(L+V,V);D(ne),B(ne,!0)}break}case ie.ENTER:{var fe,ye=N[L];ye&&!(ye!=null&&(fe=ye.data)!==null&&fe!==void 0&&fe.disabled)&&!O?q(ye.value):q(void 0),i&&Y.preventDefault();break}case ie.ESC:d(!1),i&&Y.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Y){D(Y)}}}),N.length===0)return l.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:j},f);var Q=Object.keys(w).map(function(J){return w[J]}),te=function(Y){return Y.label};function U(J,Y){var re=J.group;return{role:re?"presentation":"option",id:"".concat(a,"_list_").concat(Y)}}var Z=function(Y){var re=N[Y];if(!re)return null;var ee=re.data||{},V=ee.value,ne=re.group,fe=Sn(ee,!0),ye=te(re);return re?l.createElement("div",ue({"aria-label":typeof ye=="string"&&!ne?ye:null},fe,{key:Y},U(re,Y),{"aria-selected":k(V)}),V):null},ae={role:"listbox",id:"".concat(a,"_list")};return l.createElement(l.Fragment,null,x&&l.createElement("div",ue({},ae,{style:{height:0,width:0,overflow:"hidden"}}),Z(L-1),Z(L),Z(L+1)),l.createElement(Fc,{itemKey:"key",ref:T,data:N,height:I,itemHeight:E,fullHeight:!1,onMouseDown:j,onScroll:m,virtual:x,direction:$,innerProps:x?null:ae},function(J,Y){var re=J.group,ee=J.groupOption,V=J.data,ne=J.label,fe=J.value,ye=V.key;if(re){var be,de=(be=V.title)!==null&&be!==void 0?be:lf(ne)?ne.toString():void 0;return l.createElement("div",{className:K(P,"".concat(P,"-group"),V.className),title:de},ne!==void 0?ne:ye)}var oe=V.disabled,se=V.title;V.children;var $e=V.style,Ce=V.className,pe=We(V,f1),Se=Wt(pe,Q),me=k(fe),Fe=oe||!me&&O,Le="".concat(P,"-option"),Ee=K(P,Le,Ce,A(A(A(A({},"".concat(Le,"-grouped"),ee),"".concat(Le,"-active"),L===Y&&!Fe),"".concat(Le,"-disabled"),Fe),"".concat(Le,"-selected"),me)),we=te(J),Ue=!b||typeof b=="function"||me,ke=typeof we=="number"?we:we||fe,tt=lf(ke)?ke.toString():void 0;return se!==void 0&&(tt=se),l.createElement("div",ue({},Sn(Se),x?{}:U(J,Y),{"aria-selected":me,className:Ee,title:tt,onMouseMove:function(){L===Y||Fe||B(Y)},onClick:function(){Fe||q(fe)},style:$e}),l.createElement("div",{className:"".concat(Le,"-content")},typeof R=="function"?R(J,{index:Y}):ke),l.isValidElement(b)||me,Ue&&l.createElement(Zi,{className:"".concat(P,"-option-state"),customizeIcon:b,customizeIconProps:{value:fe,disabled:Fe,isSelected:me}},me?"✓":null))}))},Yg=l.forwardRef(m1);Yg.displayName="OptionList";const v1=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var a=n.current,i=a.values,s=a.options,c=e.map(function(f){if(f.label===void 0){var m;return H(H({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=l.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Dl(e,t){return Mc(e).join("").toUpperCase().includes(t)}const g1=function(e,t,n,r,o){return l.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,p){return o?Dl(p[o],d):p[a]?Dl(p[i!=="children"?i:"label"],d):Dl(p[s],d)},m=u?function(v){return Ds(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var p=f(n,m(v));if(p)c.push(v);else{var h=v[a].filter(function(g){return f(n,m(g))});h.length&&c.push(H(H({},v),{},A({},a,h)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])};var sf=0,p1=nn();function h1(){var e;return p1?(e=sf,sf+=1):e="TEST_OR_SSR",e}function b1(e){var t=l.useState(),n=G(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_select_".concat(h1()))},[]),e||r}var y1=["children","value"],C1=["children"];function S1(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=We(r,y1);return H({key:n,value:a!==void 0?a:n,children:o},i)}function _c(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return cn(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,c=s.children,u=We(s,C1);return t||!a?S1(n):H(H({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:_c(c)})}).filter(function(n){return n})}var x1=function(t,n,r,o,a){return l.useMemo(function(){var i=t,s=!t;s&&(i=_c(n));var c=new Map,u=new Map,d=function(v,p,h){h&&typeof h=="string"&&v.set(p[h],p)},f=function m(v){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h1&&arguments[1]!==void 0?arguments[1]:!1,i=0;i2&&arguments[2]!==void 0?arguments[2]:{},Ke=Ie.source,Qe=Ke===void 0?"keyboard":Ke;Me(Ae),i&&r==="combobox"&&he!==null&&Qe==="keyboard"&&et(String(he))},[i,r]),ve=function(Ae,Ie,Ke){var Qe=function(){var qt,Oe=Se(Ae);return[z?{label:Oe==null?void 0:Oe[U.label],value:Ae,key:(qt=Oe==null?void 0:Oe.key)!==null&&qt!==void 0?qt:Ae}:Ae,Ds(Oe)]};if(Ie&&v){var ot=Qe(),It=G(ot,2),xt=It[0],wt=It[1];v(xt,wt)}else if(!Ie&&p&&Ke!=="clear"){var Ze=Qe(),Pt=G(Ze,2),Nt=Pt[0],dn=Pt[1];p(Nt,dn)}},Be=cf(function(he,Ae){var Ie,Ke=q?Ae.selected:!0;Ke?Ie=q?[].concat(ce(pe),[he]):[he]:Ie=pe.filter(function(Qe){return Qe.value!==he}),dt(Ie),ve(he,Ke),r==="combobox"?et(""):(!Oi||m)&&(Y(""),et(""))}),Pe=function(Ae,Ie){dt(Ae);var Ke=Ie.type,Qe=Ie.values;(Ke==="remove"||Ke==="clear")&&Qe.forEach(function(ot){ve(ot.value,!1,Ke)})},ge=function(Ae,Ie){if(Y(Ae),et(null),Ie.source==="submit"){var Ke=(Ae||"").trim();if(Ke){var Qe=Array.from(new Set([].concat(ce(Fe),[Ke])));dt(Qe),ve(Ke,!0),Y("")}return}Ie.source!=="blur"&&(r==="combobox"&&dt(Ae),d==null||d(Ae))},ze=function(Ae){var Ie=Ae;r!=="tags"&&(Ie=Ae.map(function(Qe){var ot=V.get(Qe);return ot==null?void 0:ot.value}).filter(function(Qe){return Qe!==void 0}));var Ke=Array.from(new Set([].concat(ce(Fe),ce(Ie))));dt(Ke),Ke.forEach(function(Qe){ve(Qe,!0)})},rt=l.useMemo(function(){var he=R!==!1&&g!==!1;return H(H({},re),{},{flattenOptions:tt,onActiveValue:Ne,defaultActiveFirstOption:xe,onSelect:Be,menuItemSelectedIcon:E,rawValues:Fe,fieldNames:U,virtual:he,direction:P,listHeight:T,listItemHeight:j,childrenAsData:Q,maxCount:_,optionRender:x})},[_,re,tt,Ne,xe,Be,E,Fe,U,R,g,P,T,j,Q,x]);return w1(e),$1(ne,U),l.createElement(Tc.Provider,{value:rt},l.createElement(qg,ue({},B,{id:k,prefixCls:a,ref:t,omitDomProps:I1,mode:r,displayValues:me,onDisplayValuesChange:Pe,direction:P,searchValue:J,onSearch:ge,autoClearSearchValue:m,onSearchSplit:ze,dropdownMatchSelectWidth:g,OptionList:Yg,emptyOptions:!tt.length,activeValue:nt,activeDescendantId:"".concat(k,"_list_").concat(bt)})))});Qg.displayName="Select";var jc=Qg;jc.Option=Dc;jc.OptGroup=Ac;function ho(e,t,n){return K({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ra=(e,t)=>t||e,Zg=()=>{const[,e]=Gt(),n=new Ot(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),l.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),l.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),l.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),l.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};Zg.displayName="EmptyImage";const Jg=()=>{const[,e]=Gt(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new Ot(t).onBackground(o).toHexShortString(),shadowColor:new Ot(n).onBackground(o).toHexShortString(),contentColor:new Ot(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:a},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};Jg.displayName="SimpleImage";const R1=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},P1=Rt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=ct(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[R1(o)]});var N1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=ep,description:a,children:i,imageStyle:s,style:c}=e,u=N1(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=l.useContext(He),v=d("empty",r),[p,h,g]=P1(v),[C]=ba("Empty"),y=typeof a<"u"?a:C==null?void 0:C.description,b=typeof y=="string"?y:"empty";let S=null;return typeof o=="string"?S=l.createElement("img",{alt:b,src:o}):S=o,p(l.createElement("div",Object.assign({className:K(h,g,v,m==null?void 0:m.className,{[`${v}-normal`]:o===tp,[`${v}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),l.createElement("div",{className:`${v}-image`,style:s},S),y&&l.createElement("div",{className:`${v}-description`},y),i&&l.createElement("div",{className:`${v}-footer`},i)))};br.PRESENTED_IMAGE_DEFAULT=ep;br.PRESENTED_IMAGE_SIMPLE=tp;br.displayName="Empty";const M1=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(He),r=n("empty");switch(t){case"Table":case"List":return W.createElement(br,{image:br.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return W.createElement(br,{image:br.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return W.createElement(br,null)}},T1=["outlined","borderless","filled"],el=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=l.useContext(hg);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=T1.includes(r);return[r,o]},A1=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function D1(e,t){return e||A1(t)}const uf=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},F1=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ct(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,[`
- ${o}${s}bottomLeft,
- ${a}${s}bottomLeft
- `]:{animationName:wc},[`
- ${o}${s}topLeft,
- ${a}${s}topLeft,
- ${o}${s}topRight,
- ${a}${s}topRight
- `]:{animationName:Ec},[`${i}${s}bottomLeft`]:{animationName:$c},[`
- ${i}${s}topLeft,
- ${i}${s}topRight
- `]:{animationName:Ic},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},uf(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},yi),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},uf(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},po(e,"slide-up"),po(e,"slide-down"),Ei(e,"move-up"),Ei(e,"move-down")]},_1=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:X(t),itemLineHeight:X(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},j1=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},L1=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},So()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},z1=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=j1(e),s=t?`${n}-${t}`:"",c=_1(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},L1(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${X(r)} 0`,lineHeight:X(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:X(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:X(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Fl(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
- &${n}-show-arrow ${n}-selector,
- &${n}-allow-clear ${n}-selector
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[z1(e,t),o]}const B1=e=>{const{componentCls:t}=e,n=ct(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ct(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Fl(e),Fl(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Fl(r,"lg")]};function _l(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ct(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
- ${n}-selection-item,
- ${n}-selection-placeholder
- `]:{padding:0,lineHeight:X(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
- &${n}-show-arrow ${n}-selection-item,
- &${n}-show-arrow ${n}-selection-placeholder
- `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${X(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:X(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${X(r)}`,"&:after":{display:"none"}}}}}}}function H1(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[_l(e),_l(ct(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${X(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
- &${t}-show-arrow ${t}-selection-item,
- &${t}-show-arrow ${t}-selection-placeholder
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},_l(ct(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const k1=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:p,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:C}=e,y=s*2,b=r*2,S=Math.min(o-y,o-b),w=Math.min(a-y,a-b),x=Math.min(i-y,i-b);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:i,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:w,multipleItemHeightLG:x,multipleSelectorBgDisabled:g,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},np=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${X(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${X(o)} ${t.activeShadowColor}`,outline:0}}}},df=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},np(e,t))}),V1=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},np(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),df(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),df(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),rp=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ff=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},rp(e,t))}),K1=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},rp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),ff(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ff(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),W1=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),G1=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},V1(e)),K1(e)),W1(e))}),q1=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},U1=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},X1=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ct(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},q1(e)),U1(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},yi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},yi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},So()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Y1=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},X1(e),H1(e),B1(e),F1(e),{[`${t}-rtl`]:{direction:"rtl"}},Ui(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Q1=Rt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ct(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Y1(r),G1(r)]},k1,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Z1={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"},J1=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:Z1}))},op=l.forwardRef(J1);op.displayName="CheckOutlined";var eE={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"},tE=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:eE}))},Lc=l.forwardRef(tE);Lc.displayName="DownOutlined";var nE={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"},rE=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:nE}))},zc=l.forwardRef(rE);zc.displayName="SearchOutlined";function oE(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;vt(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const v=n??l.createElement($o,null),p=y=>t===null&&!s&&!f?null:l.createElement(l.Fragment,null,u!==!1&&y,s&&d);let h=null;if(t!==void 0)h=p(t);else if(a)h=p(l.createElement(Wr,{spin:!0}));else{const y=`${c}-suffix`;h=b=>{let{open:S,showSearch:w}=b;return p(S&&w?l.createElement(zc,{className:y}):l.createElement(Lc,{className:y}))}}let g=null;r!==void 0?g=r:i?g=l.createElement(op,null):g=null;let C=null;return o!==void 0?C=o:C=l.createElement(Eo,null),{clearIcon:v,suffixIcon:h,itemIcon:g,removeIcon:C}}function aE(e,t){return t!==void 0?t:e!==null}var iE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:v,disabled:p,notFoundContent:h,status:g,builtinPlacements:C,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:S,style:w,allowClear:x,variant:$,dropdownStyle:I,transitionName:E,tagRender:R,maxCount:P}=e,N=iE(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:T,getPrefixCls:O,renderEmpty:j,direction:D,virtual:M,popupMatchSelectWidth:F,popupOverflow:z,select:L}=l.useContext(He),[,_]=Gt(),B=m??(_==null?void 0:_.controlHeight),k=O("select",r),q=O(),Q=S??D,{compactSize:te,compactItemClassnames:U}=Io(k,Q),[Z,ae]=el($,o),J=on(k),[Y,re,ee]=Q1(k,J),V=l.useMemo(()=>{const{mode:nt}=e;if(nt!=="combobox")return nt===ap?"combobox":nt},[e.mode]),ne=V==="multiple"||V==="tags",fe=aE(e.suffixIcon,e.showArrow),ye=(n=b??y)!==null&&n!==void 0?n:F,{status:be,hasFeedback:de,isFormItemInput:oe,feedbackIcon:se}=l.useContext(rn),$e=Ra(be,g);let Ce;h!==void 0?Ce=h:V==="combobox"?Ce=null:Ce=(j==null?void 0:j("Select"))||l.createElement(M1,{componentName:"Select"});const{suffixIcon:pe,itemIcon:Se,removeIcon:me,clearIcon:Fe}=oE(Object.assign(Object.assign({},N),{multiple:ne,hasFeedback:de,feedbackIcon:se,showSuffixIcon:fe,prefixCls:k,componentName:"Select"})),Le=x===!0?{clearIcon:Fe}:x,Ee=Wt(N,["suffixIcon","itemIcon"]),we=K(c||u,{[`${k}-dropdown-${Q}`]:Q==="rtl"},i,ee,J,re),Ue=Nn(nt=>{var et;return(et=v??te)!==null&&et!==void 0?et:nt}),ke=l.useContext(Hn),tt=p??ke,dt=K({[`${k}-lg`]:Ue==="large",[`${k}-sm`]:Ue==="small",[`${k}-rtl`]:Q==="rtl",[`${k}-${Z}`]:ae,[`${k}-in-form-item`]:oe},ho(k,$e,de),U,L==null?void 0:L.className,a,i,ee,J,re),ft=l.useMemo(()=>f!==void 0?f:Q==="rtl"?"bottomRight":"bottomLeft",[f,Q]);{const nt=vt("Select");nt.deprecated(!u,"dropdownClassName","popupClassName"),nt.deprecated(y===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),nt(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),nt.deprecated(!("bordered"in e),"bordered","variant"),nt(!(typeof P<"u"&&!ne),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Ve]=Sa("SelectLike",I==null?void 0:I.zIndex);return Y(l.createElement(jc,Object.assign({ref:t,virtual:M,showSearch:L==null?void 0:L.showSearch},Ee,{style:Object.assign(Object.assign({},L==null?void 0:L.style),w),dropdownMatchSelectWidth:ye,transitionName:Br(q,"slide-up",E),builtinPlacements:D1(C,z),listHeight:d,listItemHeight:B,mode:V,prefixCls:k,placement:ft,direction:Q,suffixIcon:pe,menuItemSelectedIcon:Se,removeIcon:me,allowClear:Le,notFoundContent:Ce,className:dt,getPopupContainer:s||T,dropdownClassName:we,disabled:tt,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:Ve}),maxCount:ne?P:void 0,tagRender:ne?R:void 0})))};ip.displayName="Select";const Ro=l.forwardRef(ip),lE=Dg(Ro);Ro.SECRET_COMBOBOX_MODE_DO_NOT_USE=ap;Ro.Option=Dc;Ro.OptGroup=Ac;Ro._InternalPanelDoNotUseOrYouWillBeFired=lE;Ro.displayName="Select";const da=["xxl","xl","lg","md","sm","xs"],sE=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)`}),cE=e=>{const t=e,n=[].concat(da).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}const Ri=e=>e?typeof e=="function"?e():e:null;function Bc(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return l.createElement("div",{className:K("".concat(n,"-content"),a),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Jr={shiftX:64,adjustY:1},eo={adjustX:1,shiftY:!0},In=[0,0],dE={left:{points:["cr","cl"],overflow:eo,offset:[-4,0],targetOffset:In},right:{points:["cl","cr"],overflow:eo,offset:[4,0],targetOffset:In},top:{points:["bc","tc"],overflow:Jr,offset:[0,-4],targetOffset:In},bottom:{points:["tc","bc"],overflow:Jr,offset:[0,4],targetOffset:In},topLeft:{points:["bl","tl"],overflow:Jr,offset:[0,-4],targetOffset:In},leftTop:{points:["tr","tl"],overflow:eo,offset:[-4,0],targetOffset:In},topRight:{points:["br","tr"],overflow:Jr,offset:[0,-4],targetOffset:In},rightTop:{points:["tl","tr"],overflow:eo,offset:[4,0],targetOffset:In},bottomRight:{points:["tr","br"],overflow:Jr,offset:[0,4],targetOffset:In},rightBottom:{points:["bl","br"],overflow:eo,offset:[4,0],targetOffset:In},bottomLeft:{points:["tl","bl"],overflow:Jr,offset:[0,4],targetOffset:In},leftBottom:{points:["br","bl"],overflow:eo,offset:[-4,0],targetOffset:In}},fE=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],mE=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,p=t.onVisibleChange,h=t.afterVisibleChange,g=t.transitionName,C=t.animation,y=t.motion,b=t.placement,S=b===void 0?"right":b,w=t.align,x=w===void 0?{}:w,$=t.destroyTooltipOnHide,I=$===void 0?!1:$,E=t.defaultVisible,R=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,T=t.id,O=t.showArrow,j=O===void 0?!0:O,D=We(t,fE),M=l.useRef(null);l.useImperativeHandle(n,function(){return M.current});var F=H({},D);"visible"in t&&(F.popupVisible=t.visible);var z=function(){return l.createElement(Bc,{key:"content",prefixCls:m,id:T,overlayInnerStyle:P},N)};return l.createElement(Ji,ue({popupClassName:r,prefixCls:m,popup:z,action:a,builtinPlacements:dE,popupPlacement:S,ref:M,popupAlign:x,getPopupContainer:R,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:C,popupMotion:y,defaultPopupVisible:E,autoDestroy:I,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:j},F),v)};const vE=l.forwardRef(mE);function Hc(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,v=2*o-s,p=c,h=2*o-a,g=i,C=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${p} A ${r} ${r} 0 0 0 ${h} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:S,arrowPolygon:b}}const gE=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${X(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},lp=8;function tl(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?lp:r}}function ei(e,t){return e?t:{}}function kc(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},gE(e,t,o)),{"&:before":{background:t}})]},ei(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),ei(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),ei(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),ei(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function pE(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const mf={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"]}},hE={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"]}},bE=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function sp(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,c={};return Object.keys(mf).forEach(u=>{const d=r&&hE[u]||mf[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,bE.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const m=tl({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+s;break}f.overflow=pE(u,m,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const yE=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ct(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${X(e.calc(u).div(2).equal())} ${X(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,lp)}},[`${t}-content`]:{position:"relative"}}),Ey(e,(f,m)=>{let{darkColor:v}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},kc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},CE=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},tl({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Hc(ct(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),cp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Rt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,s=ct(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[yE(s),Ea(r,"zoom-big-fast")]},CE,{resetStyle:!1,injectStyle:t})(e)},SE=oa.map(e=>`${e}-inverse`);function xE(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ce(SE),ce(oa)).includes(e):oa.includes(e)}function up(e,t){const n=xE(t),r=K({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const wE=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(He),c=s("tooltip",t),[u,d,f]=cp(c),m=up(c,a),v=m.arrowStyle,p=Object.assign(Object.assign({},i),m.overlayStyle),h=K(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(l.createElement("div",{className:h,style:v},l.createElement("div",{className:`${c}-arrow`}),l.createElement(Bc,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:p}),o)))};var $E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:p=!0,title:h,overlay:g,builtinPlacements:C,arrowPointAtCenter:y=!1,autoAdjustOverflow:b=!0}=e,S=!!p,[,w]=Gt(),{getPopupContainer:x,getPrefixCls:$,direction:I}=l.useContext(He),E=vt("Tooltip"),R=l.useRef(null),P=()=>{var Ce;(Ce=R.current)===null||Ce===void 0||Ce.forceAlign()};l.useImperativeHandle(t,()=>{var Ce;return{forceAlign:P,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),P()},nativeElement:(Ce=R.current)===null||Ce===void 0?void 0:Ce.nativeElement}}),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(Ce=>{let[pe,Se]=Ce;E.deprecated(!(pe in e),pe,Se)}),E(!v||typeof v=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),E(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[N,T]=Vt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=!h&&!g&&h!==0,j=Ce=>{var pe,Se;T(O?!1:Ce),O||((pe=e.onOpenChange)===null||pe===void 0||pe.call(e,Ce),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,Ce))},D=l.useMemo(()=>{var Ce,pe;let Se=y;return typeof p=="object"&&(Se=(pe=(Ce=p.pointAtCenter)!==null&&Ce!==void 0?Ce:p.arrowPointAtCenter)!==null&&pe!==void 0?pe:y),C||sp({arrowPointAtCenter:Se,autoAdjustOverflow:b,arrowWidth:S?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[y,p,C,w]),M=l.useMemo(()=>h===0?h:g||h||"",[g,h]),F=l.createElement(Hr,null,typeof M=="function"?M():M),{getPopupContainer:z,placement:L="top",mouseEnterDelay:_=.1,mouseLeaveDelay:B=.1,overlayStyle:k,rootClassName:q}=e,Q=$E(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),te=$("tooltip",o),U=$(),Z=e["data-popover-inject"];let ae=N;!("open"in e)&&!("visible"in e)&&O&&(ae=!1);const J=l.isValidElement(d)&&!Fv(d)?d:l.createElement("span",null,d),Y=J.props,re=!Y.className||typeof Y.className=="string"?K(Y.className,a||`${te}-open`):Y.className,[ee,V,ne]=cp(te,!Z),fe=up(te,c),ye=fe.arrowStyle,be=Object.assign(Object.assign({},u),fe.overlayStyle),de=K(s,{[`${te}-rtl`]:I==="rtl"},fe.className,q,V,ne),[oe,se]=Sa("Tooltip",Q.zIndex),$e=l.createElement(vE,Object.assign({},Q,{zIndex:oe,showArrow:S,placement:L,mouseEnterDelay:_,mouseLeaveDelay:B,prefixCls:te,overlayClassName:de,overlayStyle:Object.assign(Object.assign({},ye),k),getTooltipContainer:z||i||x,ref:R,builtinPlacements:D,overlay:F,visible:ae,onVisibleChange:j,afterVisibleChange:f??m,overlayInnerStyle:be,arrowContent:l.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:Br(U,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),ae?Qt(J,{className:re}):J);return ee(l.createElement(Ca.Provider,{value:se},$e))}),Pa=EE;Pa.displayName="Tooltip";Pa._InternalPanelDoNotUseOrYouWillBeFired=wE;const IE=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:v,innerContentPadding:p,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Ct(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:v,padding:h},[`${t}-inner-content`]:{color:n,padding:p}})},kc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},OE=e=>{const{componentCls:t}=e;return{[t]:oa.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},RE=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,v=m/2,p=m/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Hc(e)),tl({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${v}px ${h}px ${p}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${h}px`:0})},dp=Rt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=ct(e,{popoverBg:t,popoverColor:n});return[IE(r),OE(r),Ea(r,"zoom-big")]},RE,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var PE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${e}-title`},Ri(t)),l.createElement("div",{className:`${e}-inner-content`},Ri(n))),ME=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:c}=e;return l.createElement("div",{className:K(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},l.createElement("div",{className:`${n}-arrow`}),l.createElement(Bc,Object.assign({},e,{className:t,prefixCls:n}),c||NE(n,i,s)))},TE=e=>{const{prefixCls:t,className:n}=e,r=PE(e,["prefixCls","className"]),{getPrefixCls:o}=l.useContext(He),a=o("popover",t),[i,s,c]=dp(a);return i(l.createElement(ME,Object.assign({},r,{prefixCls:a,hashId:s,className:K(n,c)})))};var AE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},Ri(t)),l.createElement("div",{className:`${r}-inner-content`},Ri(n)))},FE=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:a,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:v,overlayStyle:p={}}=e,h=AE(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=l.useContext(He),C=g("popover",o),[y,b,S]=dp(C),w=g(),x=K(s,b,S),[$,I]=Vt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),E=(N,T)=>{I(N,!0),v==null||v(N,T)},R=N=>{N.keyCode===ie.ESC&&E(!1,N)},P=N=>{E(N)};return y(l.createElement(Pa,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m,overlayStyle:p},h,{prefixCls:C,overlayClassName:x,ref:t,open:$,onOpenChange:P,overlay:a||i?l.createElement(DE,{prefixCls:C,title:a,content:i}):null,transitionName:Br(w,"zoom-big",h.transitionName),"data-popover-inject":!0}),Qt(d,{onKeyDown:N=>{var T,O;l.isValidElement(d)&&((O=d==null?void 0:(T=d.props).onKeyDown)===null||O===void 0||O.call(T,N)),R(N)}})))}),fp=FE;fp._InternalPanelDoNotUseOrYouWillBeFired=TE;fp.displayName="Popover";var _E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},jE=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:_E}))},fa=l.forwardRef(jE);fa.displayName="RightOutlined";var LE=ie.ESC,zE=ie.TAB;function BE(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case LE:s();break;case zE:{var m=!1;i.current||(m=c()),m?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&ut(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var HE=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=gn(t,a==null?void 0:a.ref);return W.createElement(W.Fragment,null,r&&W.createElement("div",{className:"".concat(o,"-arrow")}),W.cloneElement(a,{ref:sr(a)?i:void 0}))}),to={adjustX:1,adjustY:1},no=[0,0],kE={topLeft:{points:["bl","tl"],overflow:to,offset:[0,-4],targetOffset:no},top:{points:["bc","tc"],overflow:to,offset:[0,-4],targetOffset:no},topRight:{points:["br","tr"],overflow:to,offset:[0,-4],targetOffset:no},bottomLeft:{points:["tl","bl"],overflow:to,offset:[0,4],targetOffset:no},bottom:{points:["tc","bc"],overflow:to,offset:[0,4],targetOffset:no},bottomRight:{points:["tr","br"],overflow:to,offset:[0,4],targetOffset:no}},VE=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function KE(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?kE:m,p=e.getPopupContainer,h=e.showAction,g=e.hideAction,C=e.overlayClassName,y=e.overlayStyle,b=e.visible,S=e.trigger,w=S===void 0?["hover"]:S,x=e.autoFocus,$=e.overlay,I=e.children,E=e.onVisibleChange,R=We(e,VE),P=W.useState(),N=G(P,2),T=N[0],O=N[1],j="visible"in e?b:T,D=W.useRef(null),M=W.useRef(null),F=W.useRef(null);W.useImperativeHandle(t,function(){return D.current});var z=function(Z){O(Z),E==null||E(Z)};BE({visible:j,triggerRef:F,onVisibleChange:z,autoFocus:x,overlayRef:M});var L=function(Z){var ae=e.onOverlayClick;O(!1),ae&&ae(Z)},_=function(){return W.createElement(HE,{ref:M,overlay:$,prefixCls:i,arrow:o})},B=function(){return typeof $=="function"?_:_()},k=function(){var Z=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!ae},q=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(i,"-open")},Q=W.cloneElement(I,{className:K((n=I.props)===null||n===void 0?void 0:n.className,j&&q()),ref:sr(I)?gn(F,I.ref):void 0}),te=g;return!te&&w.indexOf("contextMenu")!==-1&&(te=["click"]),W.createElement(Ji,ue({builtinPlacements:v},R,{prefixCls:i,ref:D,popupClassName:K(C,A({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:w,showAction:h,hideAction:te,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:j,stretch:k()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:L,getPopupContainer:p}),Q)}const WE=W.forwardRef(KE);var mp=l.createContext(null);function vp(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function gp(e){var t=l.useContext(mp);return vp(t,e)}var GE=["children","locked"],kn=l.createContext(null);function qE(e,t){var n=H({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ma(e){var t=e.children,n=e.locked,r=We(e,GE),o=l.useContext(kn),a=ha(function(){return qE(o,r)},[o,r],function(i,s){return!n&&(i[0]!==s[0]||!Jo(i[1],s[1],!0))});return l.createElement(kn.Provider,{value:a},t)}var UE=[],pp=l.createContext(null);function nl(){return l.useContext(pp)}var hp=l.createContext(UE);function Po(e){var t=l.useContext(hp);return l.useMemo(function(){return e!==void 0?[].concat(ce(t),[e]):t},[t,e])}var bp=l.createContext(null),Vc=l.createContext({});function vf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Wi(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function XE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ce(e.querySelectorAll("*")).filter(function(r){return vf(r,t)});return vf(e,t)&&n.unshift(e),n}var _s=ie.LEFT,js=ie.RIGHT,Ls=ie.UP,fi=ie.DOWN,mi=ie.ENTER,yp=ie.ESC,_o=ie.HOME,jo=ie.END,gf=[Ls,fi,_s,js];function YE(e,t,n,r){var o,a="prev",i="next",s="children",c="parent";if(e==="inline"&&r===mi)return{inlineTrigger:!0};var u=A(A({},Ls,a),fi,i),d=A(A(A(A({},_s,n?i:a),js,n?a:i),fi,s),mi,s),f=A(A(A(A(A(A({},Ls,a),fi,i),mi,s),yp,c),_s,n?s:c),js,n?c:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},v=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(v){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function QE(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function ZE(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Kc(e,t){var n=XE(e,!0);return n.filter(function(r){return t.has(r)})}function pf(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Kc(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var zs=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(vp(n,i),"']"));s&&(r.add(s),a.set(s,i),o.set(i,s))}),{elements:r,key2element:o,element2key:a}};function JE(e,t,n,r,o,a,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var m=function(){ut.cancel(d.current)};return l.useEffect(function(){return function(){m()}},[]),function(v){var p=v.which;if([].concat(gf,[mi,yp,_o,jo]).includes(p)){var h=a(),g=zs(h,r),C=g,y=C.elements,b=C.key2element,S=C.element2key,w=b.get(t),x=ZE(w,y),$=S.get(x),I=YE(e,i($,!0).length===1,n,p);if(!I&&p!==_o&&p!==jo)return;(gf.includes(p)||[_o,jo].includes(p))&&v.preventDefault();var E=function(M){if(M){var F=M,z=M.querySelector("a");z!=null&&z.getAttribute("href")&&(F=z);var L=S.get(M);s(L),m(),d.current=ut(function(){f.current===L&&F.focus()})}};if([_o,jo].includes(p)||I.sibling||!x){var R;!x||e==="inline"?R=o.current:R=QE(x);var P,N=Kc(R,y);p===_o?P=N[0]:p===jo?P=N[N.length-1]:P=pf(R,y,x,I.offset),E(P)}else if(I.inlineTrigger)c($);else if(I.offset>0)c($,!0),m(),d.current=ut(function(){g=zs(h,r);var D=x.getAttribute("aria-controls"),M=document.getElementById(D),F=pf(M,g.elements);E(F)},5);else if(I.offset<0){var T=i($,!0),O=T[T.length-2],j=b.get(O);c(O,!1),E(j)}}u==null||u(v)}}function eI(e){Promise.resolve().then(e)}var Wc="__RC_UTIL_PATH_SPLIT__",hf=function(t){return t.join(Wc)},tI=function(t){return t.split(Wc)},Bs="rc-menu-more";function nI(){var e=l.useState({}),t=G(e,2),n=t[1],r=l.useRef(new Map),o=l.useRef(new Map),a=l.useState([]),i=G(a,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},m=l.useCallback(function(b,S){je(!r.current.has(b),"Duplicated key '".concat(b,"' used in Menu by path [").concat(S.join(" > "),"]"));var w=hf(S);o.current.set(w,b),r.current.set(b,w),u.current+=1;var x=u.current;eI(function(){x===u.current&&f()})},[]),v=l.useCallback(function(b,S){var w=hf(S);o.current.delete(w),r.current.delete(b)},[]),p=l.useCallback(function(b){c(b)},[]),h=l.useCallback(function(b,S){var w=r.current.get(b)||"",x=tI(w);return S&&s.includes(x[0])&&x.unshift(Bs),x},[s]),g=l.useCallback(function(b,S){return b.some(function(w){var x=h(w,!0);return x.includes(S)})},[h]),C=function(){var S=ce(r.current.keys());return s.length&&S.push(Bs),S},y=l.useCallback(function(b){var S="".concat(r.current.get(b)).concat(Wc),w=new Set;return ce(o.current.keys()).forEach(function(x){x.startsWith(S)&&w.add(o.current.get(x))}),w},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:h,getKeys:C,getSubPathKeys:y}}function zo(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!m.current&&!S&&g(!0),b==null?void 0:b(S)},h?null:l.createElement(ma,{mode:a,locked:!m.current},l.createElement(Vn,ue({visible:C},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var w=S.className,x=S.style;return l.createElement(Gc,{id:t,className:w,style:x},o)}))}var yI=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],CI=["active"],SI=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey,i=e.warnKey,s=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,v=e.popupOffset,p=e.popupStyle,h=e.onClick,g=e.onMouseEnter,C=e.onMouseLeave,y=e.onTitleClick,b=e.onTitleMouseEnter,S=e.onTitleMouseLeave,w=We(e,yI),x=gp(a),$=l.useContext(kn),I=$.prefixCls,E=$.mode,R=$.openKeys,P=$.disabled,N=$.overflowDisabled,T=$.activeKey,O=$.selectedKeys,j=$.itemIcon,D=$.expandIcon,M=$.onItemClick,F=$.onOpenChange,z=$.onActive,L=l.useContext(Vc),_=L._internalRenderSubMenuItem,B=l.useContext(bp),k=B.isSubPathKey,q=Po(),Q="".concat(I,"-submenu"),te=P||s,U=l.useRef(),Z=l.useRef();i&&je(!1,"SubMenu should not leave undefined `key`.");var ae=d??j,J=f??D,Y=R.includes(a),re=!N&&Y,ee=k(O,a),V=Cp(a,te,b,S),ne=V.active,fe=We(V,CI),ye=l.useState(!1),be=G(ye,2),de=be[0],oe=be[1],se=function(Ve){te||oe(Ve)},$e=function(Ve){se(!0),g==null||g({key:a,domEvent:Ve})},Ce=function(Ve){se(!1),C==null||C({key:a,domEvent:Ve})},pe=l.useMemo(function(){return ne||(E!=="inline"?de||k([T],a):!1)},[E,ne,T,de,a,k]),Se=Sp(q.length),me=function(Ve){te||(y==null||y({key:a,domEvent:Ve}),E==="inline"&&F(a,!Y))},Fe=zo(function(ft){h==null||h(Pi(ft)),M(ft)}),Le=function(Ve){E!=="inline"&&F(a,Ve)},Ee=function(){z(a)},we=x&&"".concat(x,"-popup"),Ue=l.createElement("div",ue({role:"menuitem",style:Se,className:"".concat(Q,"-title"),tabIndex:te?null:-1,ref:U,title:typeof o=="string"?o:null,"data-menu-id":N&&x?null:x,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":we,"aria-disabled":te,onClick:me,onFocus:Ee},fe),o,l.createElement(xp,{icon:E!=="horizontal"?J:void 0,props:H(H({},e),{},{isOpen:re,isSubMenu:!0})},l.createElement("i",{className:"".concat(Q,"-arrow")}))),ke=l.useRef(E);if(E!=="inline"&&q.length>1?ke.current="vertical":ke.current=E,!N){var tt=ke.current;Ue=l.createElement(hI,{mode:tt,prefixCls:Q,visible:!c&&re&&E!=="inline",popupClassName:m,popupOffset:v,popupStyle:p,popup:l.createElement(ma,{mode:tt==="horizontal"?"vertical":tt},l.createElement(Gc,{id:we,ref:Z},u)),disabled:te,onVisibleChange:Le},Ue)}var dt=l.createElement(Xn.Item,ue({ref:t,role:"none"},w,{component:"li",style:n,className:K(Q,"".concat(Q,"-").concat(E),r,A(A(A(A({},"".concat(Q,"-open"),re),"".concat(Q,"-active"),pe),"".concat(Q,"-selected"),ee),"".concat(Q,"-disabled"),te)),onMouseEnter:$e,onMouseLeave:Ce}),Ue,!N&&l.createElement(bI,{id:we,open:re,keyPath:q},u));return _&&(dt=_(dt,e,{selected:ee,active:pe,open:re,disabled:te})),l.createElement(ma,{onItemClick:Fe,mode:E==="horizontal"?"vertical":E,itemIcon:ae,expandIcon:J},dt)}),Na=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Po(n),a=qc(r,o),i=nl();l.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var s;return i?s=a:s=l.createElement(SI,ue({ref:t},e),a),l.createElement(hp.Provider,{value:o},s)});Na.displayName="SubMenu";function Uc(e){var t=e.className,n=e.style,r=l.useContext(kn),o=r.prefixCls,a=nl();return a?null:l.createElement("li",{role:"separator",className:K("".concat(o,"-item-divider"),t),style:n})}var xI=["className","title","eventKey","children"],wI=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=We(e,xI),i=l.useContext(kn),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",ue({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:K(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),ol=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Po(n),a=qc(r,o),i=nl();return i?a:l.createElement(wI,ue({ref:t},Wt(e,["warnKey"])),a)});ol.displayName="MenuItemGroup";var $I=["label","children","key","type"];function Hs(e,t){var n=t.item,r=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(i,s){if(i&&De(i)==="object"){var c=i,u=c.label,d=c.children,f=c.key,m=c.type,v=We(c,$I),p=f??"tmp-".concat(s);return d||m==="group"?m==="group"?l.createElement(r,ue({key:p},v,{title:u}),Hs(d,t)):l.createElement(o,ue({key:p},v,{title:u}),Hs(d,t)):m==="divider"?l.createElement(a,ue({key:p},v)):l.createElement(n,ue({key:p},v),u)}return null}).filter(function(i){return i})}function yf(e,t,n,r){var o=e,a=H({divider:Uc,item:rl,group:ol,submenu:Na},r);return t&&(o=Hs(t,a)),qc(o,n)}var EI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Or=[],II=l.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,v=r.direction,p=r.id,h=r.mode,g=h===void 0?"vertical":h,C=r.inlineCollapsed,y=r.disabled,b=r.disabledOverflow,S=r.subMenuOpenDelay,w=S===void 0?.1:S,x=r.subMenuCloseDelay,$=x===void 0?.1:x,I=r.forceSubMenuRender,E=r.defaultOpenKeys,R=r.openKeys,P=r.activeKey,N=r.defaultActiveFirst,T=r.selectable,O=T===void 0?!0:T,j=r.multiple,D=j===void 0?!1:j,M=r.defaultSelectedKeys,F=r.selectedKeys,z=r.onSelect,L=r.onDeselect,_=r.inlineIndent,B=_===void 0?24:_,k=r.motion,q=r.defaultMotions,Q=r.triggerSubMenuAction,te=Q===void 0?"hover":Q,U=r.builtinPlacements,Z=r.itemIcon,ae=r.expandIcon,J=r.overflowedIndicator,Y=J===void 0?"...":J,re=r.overflowedIndicatorPopupClassName,ee=r.getPopupContainer,V=r.onClick,ne=r.onOpenChange,fe=r.onKeyDown,ye=r.openAnimation,be=r.openTransitionName,de=r._internalRenderMenuItem,oe=r._internalRenderSubMenuItem,se=r._internalComponents,$e=We(r,EI),Ce=l.useMemo(function(){return[yf(m,f,Or,se),yf(m,f,Or,{})]},[m,f,se]),pe=G(Ce,2),Se=pe[0],me=pe[1],Fe=l.useState(!1),Le=G(Fe,2),Ee=Le[0],we=Le[1],Ue=l.useRef(),ke=oI(p),tt=v==="rtl";je(!ye&&!be,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var dt=Vt(E,{value:R,postState:function(qe){return qe||Or}}),ft=G(dt,2),Ve=ft[0],nt=ft[1],et=function(qe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Et(){nt(qe),ne==null||ne(qe)}at?uo.flushSync(Et):Et()},pt=l.useState(Ve),lt=G(pt,2),bt=lt[0],Me=lt[1],xe=l.useRef(!1),Ne=l.useMemo(function(){return(g==="inline"||g==="vertical")&&C?["vertical",C]:[g,!1]},[g,C]),ve=G(Ne,2),Be=ve[0],Pe=ve[1],ge=Be==="inline",ze=l.useState(Be),rt=G(ze,2),he=rt[0],Ae=rt[1],Ie=l.useState(Pe),Ke=G(Ie,2),Qe=Ke[0],ot=Ke[1];l.useEffect(function(){Ae(Be),ot(Pe),xe.current&&(ge?nt(bt):et(Or))},[Be,Pe]);var It=l.useState(0),xt=G(It,2),wt=xt[0],Ze=xt[1],Pt=wt>=Se.length-1||he!=="horizontal"||b;l.useEffect(function(){ge&&Me(Ve)},[Ve]),l.useEffect(function(){return xe.current=!0,function(){xe.current=!1}},[]);var Nt=nI(),dn=Nt.registerPath,_t=Nt.unregisterPath,qt=Nt.refreshOverflowKeys,Oe=Nt.isSubPathKey,Re=Nt.getKeyPath,_e=Nt.getKeys,$t=Nt.getSubPathKeys,Ut=l.useMemo(function(){return{registerPath:dn,unregisterPath:_t}},[dn,_t]),Gn=l.useMemo(function(){return{isSubPathKey:Oe}},[Oe]);l.useEffect(function(){qt(Pt?Or:Se.slice(wt+1).map(function(Ge){return Ge.key}))},[wt,Pt]);var Xt=Vt(P||N&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:P}),Mn=G(Xt,2),fn=Mn[0],Zt=Mn[1],pn=zo(function(Ge){Zt(Ge)}),dr=zo(function(){Zt(void 0)});l.useImperativeHandle(t,function(){return{list:Ue.current,focus:function(qe){var at,Et=_e(),yt=zs(Et,ke),ln=yt.elements,Jt=yt.key2element,Dn=yt.element2key,sn=Kc(Ue.current,ln),Ir=fn??(sn[0]?Dn.get(sn[0]):(at=Se.find(function(mr){return!mr.props.disabled}))===null||at===void 0?void 0:at.key),qn=Jt.get(Ir);if(Ir&&qn){var en;qn==null||(en=qn.focus)===null||en===void 0||en.call(qn,qe)}}}});var mn=Vt(M||[],{value:F,postState:function(qe){return Array.isArray(qe)?qe:qe==null?Or:[qe]}}),an=G(mn,2),xn=an[0],fr=an[1],wn=function(qe){if(O){var at=qe.key,Et=xn.includes(at),yt;D?Et?yt=xn.filter(function(Jt){return Jt!==at}):yt=[].concat(ce(xn),[at]):yt=[at],fr(yt);var ln=H(H({},qe),{},{selectedKeys:yt});Et?L==null||L(ln):z==null||z(ln)}!D&&Ve.length&&he!=="inline"&&et(Or)},Tn=zo(function(Ge){V==null||V(Pi(Ge)),wn(Ge)}),An=zo(function(Ge,qe){var at=Ve.filter(function(yt){return yt!==Ge});if(qe)at.push(Ge);else if(he!=="inline"){var Et=$t(Ge);at=at.filter(function(yt){return!Et.has(yt)})}Jo(Ve,at,!0)||et(at,!0)}),$n=function(qe,at){var Et=at??!Ve.includes(qe);An(qe,Et)},Je=JE(he,fn,tt,ke,Ue,_e,Re,Zt,$n,fe);l.useEffect(function(){we(!0)},[]);var Xe=l.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:oe}},[de,oe]),jt=he!=="horizontal"||b?Se:Se.map(function(Ge,qe){return l.createElement(ma,{key:Ge.key,overflowDisabled:qe>wt},Ge)}),Lt=l.createElement(Xn,ue({id:p,ref:Ue,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:rl,className:K(a,"".concat(a,"-root"),"".concat(a,"-").concat(he),c,A(A({},"".concat(a,"-inline-collapsed"),Qe),"".concat(a,"-rtl"),tt),i),dir:v,style:s,role:"menu",tabIndex:d,data:jt,renderRawItem:function(qe){return qe},renderRawRest:function(qe){var at=qe.length,Et=at?Se.slice(-at):null;return l.createElement(Na,{eventKey:Bs,title:Y,disabled:Pt,internalPopupClose:at===0,popupClassName:re},Et)},maxCount:he!=="horizontal"||b?Xn.INVALIDATE:Xn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(qe){Ze(qe)},onKeyDown:Je},$e));return l.createElement(Vc.Provider,{value:Xe},l.createElement(mp.Provider,{value:ke},l.createElement(ma,{prefixCls:a,rootClassName:i,mode:he,openKeys:Ve,rtl:tt,disabled:y,motion:Ee?k:null,defaultMotions:Ee?q:null,activeKey:fn,onActive:pn,onInactive:dr,selectedKeys:xn,inlineIndent:B,subMenuOpenDelay:w,subMenuCloseDelay:$,forceSubMenuRender:I,builtinPlacements:U,triggerSubMenuAction:te,getPopupContainer:ee,itemIcon:Z,expandIcon:ae,onItemClick:Tn,onOpenChange:An},l.createElement(bp.Provider,{value:Gn},Lt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(pp.Provider,{value:Ut},me)))))}),Ma=II;Ma.Item=rl;Ma.SubMenu=Na;Ma.ItemGroup=ol;Ma.Divider=Uc;var OI={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"},RI=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:OI}))},$p=l.forwardRef(RI);$p.displayName="BarsOutlined";var PI={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"},NI=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:PI}))},ks=l.forwardRef(NI);ks.displayName="LeftOutlined";const MI=e=>!isNaN(parseFloat(e))&&isFinite(e),TI=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var AI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),FI=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:p,onCollapse:h,onBreakpoint:g}=e,C=AI(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=l.useContext(TI),[b,S]=l.useState("collapsed"in e?e.collapsed:i),[w,x]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const $=(T,O)=>{"collapsed"in e||S(T),h==null||h(T,O)},I=l.useRef();I.current=T=>{x(T.matches),g==null||g(T.matches),b!==T.matches&&$(T.matches,"responsive")},l.useEffect(()=>{function T(j){return I.current(j)}let O;if(typeof window<"u"){const{matchMedia:j}=window;if(j&&p&&p in Cf){O=j(`screen and (max-width: ${Cf[p]})`);try{O.addEventListener("change",T)}catch{O.addListener(T)}T(O)}}return()=>{try{O==null||O.removeEventListener("change",T)}catch{O==null||O.removeListener(T)}}},[p]),l.useEffect(()=>{const T=DI("ant-sider-");return y.addSider(T),()=>y.removeSider(T)},[]);const E=()=>{$(!b,"clickTrigger")},{getPrefixCls:R}=l.useContext(He),P=()=>{const T=R("layout-sider",n),O=Wt(C,["collapsed"]),j=b?m:f,D=MI(j)?`${j}px`:String(j),M=parseFloat(String(m||0))===0?l.createElement("span",{onClick:E,className:K(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${d?"right":"left"}`),style:v},o||l.createElement($p,null)):null,L={expanded:d?l.createElement(fa,null):l.createElement(ks,null),collapsed:d?l.createElement(ks,null):l.createElement(fa,null)}[b?"collapsed":"expanded"],_=o!==null?M||l.createElement("div",{className:`${T}-trigger`,onClick:E,style:{width:D}},o||L):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),k=K(T,`${T}-${s}`,{[`${T}-collapsed`]:!!b,[`${T}-has-trigger`]:u&&o!==null&&!M,[`${T}-below`]:!!w,[`${T}-zero-width`]:parseFloat(D)===0},r);return l.createElement("aside",Object.assign({className:k},O,{style:B,ref:t}),l.createElement("div",{className:`${T}-children`},a),u||w&&M?_:null)},N=l.useMemo(()=>({siderCollapsed:b}),[b]);return l.createElement(Xc.Provider,{value:N},P())});FI.displayName="Sider";var _I={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"},jI=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:_I}))},Yc=l.forwardRef(jI);Yc.displayName="EllipsisOutlined";var LI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=LI(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=l.useContext(He),i=a("menu",t),s=K({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(Uc,Object.assign({className:s},o))},Ni=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ip=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=l.useContext(Ni),m=y=>{const b=l.createElement("span",{className:`${s}-title-content`},r);return(!o||l.isValidElement(r)&&r.type==="span")&&r&&y&&c&&typeof r=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):b},{siderCollapsed:v}=l.useContext(Xc);let p=a;typeof a>"u"?p=c?r:"":a===!1&&(p="");const h={title:p};!v&&!f&&(h.title=null,h.open=!1);const g=cn(r).length;let C=l.createElement(rl,Object.assign({},Wt(e,["title","icon","danger"]),{className:K({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?g+1:g)===1},n),title:typeof a=="string"?a:void 0}),Qt(o,{className:K(l.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(f));return d||(C=l.createElement(Pa,Object.assign({},h,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),C)),C};var zI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=zI(e,["children"]),o=l.useContext(Mi),a=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=Uh(n),s=Kr(t,i?n.ref:null);return l.createElement(Mi.Provider,{value:a},l.createElement(Hr,null,i?l.cloneElement(n,{ref:s}):n))}),HI=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${X(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
- > ${t}-item-active,
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},kI=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
- ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${X(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${X(n)})`}}}}},Sf=e=>Object.assign({},xo(e)),xf=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:v,motionEaseOut:p,itemPaddingInline:h,motionDurationMid:g,itemHoverColor:C,lineType:y,colorSplit:b,itemDisabledColor:S,dangerItemColor:w,dangerItemHoverColor:x,dangerItemSelectedColor:$,dangerItemActiveBg:I,dangerItemSelectedBg:E,popupBg:R,itemHoverBg:P,itemActiveBg:N,menuSubMenuBg:T,horizontalItemSelectedColor:O,horizontalItemSelectedBg:j,horizontalItemBorderRadius:D,horizontalItemHoverBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},Sf(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Sf(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:R},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:R},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${X(u)} solid transparent`,transition:`border-color ${m} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:u,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:u,borderBottomColor:O}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${X(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${X(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${v}`,`opacity ${g} ${v}`].join(",")}}}}}},wf=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:c}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:X(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
- > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:X(n)},[`${t}-item-group-list ${t}-submenu-title,
- ${t}-submenu-title`]:{paddingInlineEnd:u}}},VI=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:p,collapsedWidth:h,collapsedIconSize:g}=e,C={height:r,lineHeight:X(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},wf(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},wf(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${X(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${s} ${c}`,`padding-inline calc(50% - ${X(e.calc(f).div(2).equal())} - ${X(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`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
- > ${t}-item-group > ${t}-item-group-list > ${t}-item,
- > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
- > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${X(e.calc(f).div(2).equal())} - ${X(d)})`,textOverflow:"clip",[`
- ${t}-submenu-arrow,
- ${t}-submenu-expand-icon
- `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:X(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},yi),{paddingInline:v})}}]},$f=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},So()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ef=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${X(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${X(i)})`}}}}},KI=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:p,menuArrowOffset:h,lineType:g,groupTitleLineHeight:C,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Ci()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ct(e)),Ci()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${X(s)} ${X(c)}`,fontSize:y,lineHeight:C,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$f(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${X(e.calc(r).mul(2).equal())} ${X(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},$f(e)),Ef(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Ef(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
- &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${X(h)})`},"&::after":{transform:`rotate(45deg) translateX(${X(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${X(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${X(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${X(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},WI=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:p,controlItemBgActive:h,colorBgTextHover:g,controlHeightLG:C,lineHeight:y,colorBgElevated:b,marginXXS:S,padding:w,fontSize:x,controlHeightSM:$,fontSizeLG:I,colorTextLightSolid:E,colorErrorHover:R}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,T=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,O=new Ot(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:v,activeBarBorderWidth:N,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:y,collapsedWidth:C*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${C*1.15}px`,iconSize:x,iconMarginInlineEnd:$-x,collapsedIconSize:I,groupTitleFontSize:x,darkItemDisabledColor:new Ot(E).setAlpha(.25).toRgbString(),darkItemColor:O,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:O,darkItemHoverColor:E,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${N}px)`:`calc(100% - ${T*2}px)`}},GI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Rt("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:v,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:C,darkItemDisabledColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:x,darkPopupBg:$}=o,I=o.calc(s).div(7).mul(5).equal(),E=ct(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:x}),R=ct(E,{itemColor:c,itemHoverColor:C,groupTitleColor:g,itemSelectedColor:m,itemBg:d,popupBg:$,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:y,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:v});return[KI(E),HI(E),VI(E),xf(E,"light"),xf(R,"dark"),kI(E),Yi(E),po(E,"slide-up"),po(E,"slide-down"),Ea(E,"zoom-big")]},WI,{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)},Op=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=l.useContext(Ni),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=Po();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const p=l.isValidElement(o)&&o.type==="span";f=l.createElement(l.Fragment,null,Qt(r,{className:K(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p?o:l.createElement("span",{className:`${s}-title-content`},o))}const m=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[v]=Sa("Menu");return l.createElement(Ni.Provider,{value:m},l.createElement(Na,Object.assign({},Wt(e,["icon"]),{title:f,popupClassName:K(s,n,`${s}-${a||u}`),popupStyle:{zIndex:v}})))};var qI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=l.useContext(Mi),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:s,menu:c}=l.useContext(He),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:g,siderCollapsed:C,rootClassName:y,mode:b,selectable:S,onClick:w,overflowedIndicatorPopupClassName:x}=e,$=qI(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=Wt($,["collapsedWidth"]);{const B=vt("Menu");B(!("inlineCollapsed"in e&&b!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),B(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),B.deprecated("items"in e&&!e.children,"children","items")}(n=o.validator)===null||n===void 0||n.call(o,{mode:b});const E=kt(function(){var B;w==null||w.apply(void 0,arguments),(B=o.onClick)===null||B===void 0||B.call(o)}),R=o.mode||b,P=S??o.selectable,N=l.useMemo(()=>C!==void 0?C:g,[g,C]),T={horizontal:{motionName:`${u}-slide-up`},inline:ia(u),other:{motionName:`${u}-zoom-big`}},O=a("menu",d||o.prefixCls),j=on(O),[D,M,F]=GI(O,j,!r),z=K(`${O}-${v}`,c==null?void 0:c.className,f),L=l.useMemo(()=>{var B,k;if(typeof p=="function"||jl(p))return p||null;if(typeof o.expandIcon=="function"||jl(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||jl(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const q=(B=p??(o==null?void 0:o.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return Qt(q,{className:K(`${O}-submenu-expand-icon`,l.isValidElement(q)?(k=q.props)===null||k===void 0?void 0:k.className:void 0)})},[p,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,O]),_=l.useMemo(()=>({prefixCls:O,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:v,mode:R,disableMenuItemTitleTooltip:h}),[O,N,s,h,v]);return D(l.createElement(Mi.Provider,{value:null},l.createElement(Ni.Provider,{value:_},l.createElement(Ma,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(Yc,null),overflowedIndicatorPopupClassName:K(O,`${O}-${v}`,x),mode:R,selectable:P,onClick:E},I,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:z,prefixCls:O,direction:s,defaultMotions:T,expandIcon:L,ref:t,rootClassName:K(y,M,o.rootClassName,F,j),_internalComponents:UI})))))}),No=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Xc);return l.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),l.createElement(XI,Object.assign({ref:n},e,r))});No.Item=Ip;No.SubMenu=Op;No.Divider=Ep;No.ItemGroup=ol;No.displayName="Menu";const YI=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},QI=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:p,colorBgElevated:h}=e;return[{[t]:Object.assign(Object.assign({},Ct(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
- &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
- &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
- &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
- &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
- &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:wc},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
- &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
- &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
- &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
- &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
- &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ec},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
- &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
- &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:$c},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
- &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
- &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ic}})},kc(e,h,{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`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},aa(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${X(u)} ${X(p)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${X(u)} ${X(p)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},aa(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${X(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.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${X(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[po(e,"slide-up"),po(e,"slide-down"),Ei(e,"move-up"),Ei(e,"move-down"),Ea(e,"zoom-big")]]},ZI=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},tl({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Hc(e)),JI=Rt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=ct(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[QI(a),YI(a)]},ZI,{resetStyle:!1}),Ta=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:v,visible:p,onVisibleChange:h,mouseEnterDelay:g=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:y=!0,placement:b="",overlay:S,transitionName:w}=e,{getPopupContainer:x,getPrefixCls:$,direction:I,dropdown:E}=l.useContext(He),R=vt("Dropdown");[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(ee=>{let[V,ne]=ee;R.deprecated(!(V in e),V,ne)}),R.deprecated(!("overlay"in e),"overlay","menu");const P=l.useMemo(()=>{const ee=$();return w!==void 0?w:b.includes("top")?`${ee}-slide-down`:`${ee}-slide-up`},[$,b,w]),N=l.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:I==="rtl"?"bottomRight":"bottomLeft",[b,I]);{if(b.includes("Center")){const ee=b.slice(0,b.indexOf("Center"));R(!b.includes("Center"),"deprecated",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${ee}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(ee=>{let[V,ne]=ee;R.deprecated(!(V in e),V,ne)})}const T=$("dropdown",r),O=on(T),[j,D,M]=JI(T,O),[,F]=Gt(),z=l.Children.only(o),L=Qt(z,{className:K(`${T}-trigger`,{[`${T}-rtl`]:I==="rtl"},z.props.className),disabled:i}),_=i?[]:a;let B;_&&_.includes("contextMenu")&&(B=!0);const[k,q]=Vt(!1,{value:m??p}),Q=kt(ee=>{v==null||v(ee,{source:"trigger"}),h==null||h(ee),q(ee)}),te=K(u,d,D,M,O,E==null?void 0:E.className,{[`${T}-rtl`]:I==="rtl"}),U=sp({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:F.marginXXS,arrowWidth:n?F.sizePopupArrow:0,borderRadius:F.borderRadius}),Z=l.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(v==null||v(!1,{source:"menu"}),q(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ae=()=>{let ee;return t!=null&&t.items?ee=l.createElement(No,Object.assign({},t)):typeof S=="function"?ee=S():ee=S,s&&(ee=s(ee)),ee=l.Children.only(typeof ee=="string"?l.createElement("span",null,ee):ee),l.createElement(BI,{prefixCls:`${T}-menu`,rootClassName:K(M,O),expandIcon:l.createElement("span",{className:`${T}-menu-submenu-arrow`},l.createElement(fa,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Z,validator:V=>{let{mode:ne}=V;R(!ne||ne==="vertical","usage",`mode="${ne}" is not supported for Dropdown's Menu.`)}},ee)},[J,Y]=Sa("Dropdown",f==null?void 0:f.zIndex);let re=l.createElement(WE,Object.assign({alignPoint:B},Wt(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:C,visible:k,builtinPlacements:U,arrow:!!n,overlayClassName:te,prefixCls:T,getPopupContainer:c||x,transitionName:P,trigger:_,overlay:ae,placement:N,onVisibleChange:Q,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),f),{zIndex:J})}),L);return J&&(re=l.createElement(Ca.Provider,{value:Y},re)),j(re)};function eO(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const tO=Dg(Ta,"dropdown",e=>e,eO),nO=e=>l.createElement(tO,Object.assign({},e),l.createElement("span",null));Ta._InternalPanelDoNotUseOrYouWillBeFired=nO;Ta.displayName="Dropdown";const Rp=l.createContext(null),rO=Rp.Provider,Pp=l.createContext(null),oO=Pp.Provider;var aO=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],iO=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,v=e.onChange,p=We(e,aO),h=l.useRef(null),g=l.useRef(null),C=Vt(u,{value:i}),y=G(C,2),b=y[0],S=y[1];l.useImperativeHandle(t,function(){return{focus:function(I){var E;(E=h.current)===null||E===void 0||E.focus(I)},blur:function(){var I;(I=h.current)===null||I===void 0||I.blur()},input:h.current,nativeElement:g.current}});var w=K(r,o,A(A({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),x=function(I){s||("checked"in e||S(I.target.checked),v==null||v({target:H(H({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return l.createElement("span",{className:w,title:m,style:a,ref:g},l.createElement("input",ue({},p,{className:"".concat(r,"-input"),ref:h,onChange:x,disabled:s,checked:!!b,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});const lO=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ct(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},sO=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:p,lineType:h,radioColor:g,radioBgColor:C,calc:y}=e,b=`${t}-inner`,w=y(o).sub(y(4).mul(2)),x=y(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ct(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${X(d)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ct(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
- &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},xo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(o).div(-2).equal(),marginInlineStart:y(1).mul(o).div(-2).equal(),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y(w).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},cO=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:v,controlHeightSM:p,paddingXS:h,borderRadius:g,borderRadiusSM:C,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:w,colorBgContainerDisabled:x,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:I,colorPrimary:E,colorPrimaryHover:R,colorPrimaryActive:P,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:O,calc:j}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:X(j(n).sub(j(o).mul(2)).equal()),background:f,border:`${X(o)} ${a} ${i}`,borderBlockStartWidth:j(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:j(o).mul(-1).equal(),insetInlineStart:j(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${X(o)} ${a} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:v,fontSize:m,lineHeight:X(j(v).sub(j(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:j(h).sub(o).equal(),paddingBlock:0,lineHeight:X(j(p).sub(j(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},xo(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:b,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:N,borderColor:N,"&:hover":{color:S,background:T,borderColor:T},"&:active":{color:S,background:O,borderColor:O}},"&-disabled":{color:w,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:$,borderColor:i,boxShadow:"none"}}}},uO=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:p}=e,h=4,g=a,C=t?g-h*2:g-(h+o)*2;return{radioSize:g,dotSize:C,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?s:f}},Np=Rt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${X(n)} ${t}`,a=ct(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[lO(a),sO(a),cO(a)]},uO,{unitless:{radioSize:!0,dotSize:!0}});var dO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=l.useContext(Rp),a=l.useContext(Pp),{getPrefixCls:i,direction:s,radio:c}=l.useContext(He),u=l.useRef(null),d=gn(t,u),{isFormItemInput:f}=l.useContext(rn);vt("Radio")(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.");const m=O=>{var j,D;(j=e.onChange)===null||j===void 0||j.call(e,O),(D=o==null?void 0:o.onChange)===null||D===void 0||D.call(o,O)},{prefixCls:v,className:p,rootClassName:h,children:g,style:C,title:y}=e,b=dO(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",v),w=((o==null?void 0:o.optionType)||a)==="button",x=w?`${S}-button`:S,$=on(S),[I,E,R]=Np(S,$),P=Object.assign({},b),N=l.useContext(Hn);o&&(P.name=o.name,P.onChange=m,P.checked=e.value===o.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:o.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:N;const T=K(`${x}-wrapper`,{[`${x}-wrapper-checked`]:P.checked,[`${x}-wrapper-disabled`]:P.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:f},c==null?void 0:c.className,p,h,E,R,$);return I(l.createElement(Gi,{component:"Radio",disabled:P.disabled},l.createElement("label",{className:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},l.createElement(iO,Object.assign({},P,{className:K(P.className,!w&&gc),type:"radio",prefixCls:x,ref:d})),g!==void 0?l.createElement("span",null,g):null)))},va=l.forwardRef(fO);va.displayName="Radio";const mO=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(He),[o,a]=Vt(e.defaultValue,{value:e.value}),i=O=>{const j=o,D=O.target.value;"value"in e||a(D);const{onChange:M}=e;M&&D!==j&&M(O)},{prefixCls:s,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:v,size:p,style:h,id:g,onMouseEnter:C,onMouseLeave:y,onFocus:b,onBlur:S}=e,w=n("radio",s),x=`${w}-group`,$=on(w),[I,E,R]=Np(w,$);let P=v;d&&d.length>0&&(P=d.map(O=>typeof O=="string"||typeof O=="number"?l.createElement(va,{key:O.toString(),prefixCls:w,disabled:m,value:O,checked:o===O},O):l.createElement(va,{key:`radio-group-value-options-${O.value}`,prefixCls:w,disabled:O.disabled||m,value:O.value,checked:o===O.value,title:O.title,style:O.style,id:O.id,required:O.required},O.label)));const N=Nn(p),T=K(x,`${x}-${f}`,{[`${x}-${N}`]:N,[`${x}-rtl`]:r==="rtl"},c,u,E,R,$);return I(l.createElement("div",Object.assign({},Sn(e,{aria:!0,data:!0}),{className:T,style:h,onMouseEnter:C,onMouseLeave:y,onFocus:b,onBlur:S,id:g,ref:t}),l.createElement(rO,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},P)))}),vO=l.memo(mO);var gO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=l.useContext(He),{prefixCls:r}=e,o=gO(e,["prefixCls"]),a=n("radio",r);return l.createElement(oO,{value:"button"},l.createElement(va,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},hO=l.forwardRef(pO),Qc=va;Qc.Button=hO;Qc.Group=vO;Qc.__ANT_RADIO=!0;function Zc(e){return ct(e,{inputAffixPadding:e.paddingXXS})}const Jc=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:p,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:C,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:p,hoverBorderColor:v,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${C}`,warningActiveShadow:`0 0 0 ${h}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},bO=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),eu=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},bO(ct(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Mp=(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}}),If=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Mp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Tp=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},eu(e))}),If(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),If(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Of=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ap=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Of(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Of(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},eu(e))}})}),Dp=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Fp=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Rf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Fp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),_p=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},eu(e))}),Rf(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Rf(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Pf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),jp=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Pf(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Pf(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Lp=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),zp=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${X(t)} ${X(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Bp=e=>({padding:`${X(e.paddingBlockSM)} ${X(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),al=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${X(e.paddingBlock)} ${X(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Lp(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},zp(e)),"&-sm":Object.assign({},Bp(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Hp=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},zp(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Bp(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${X(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${X(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${X(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${X(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${X(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ci()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
- & > ${t}-affix-wrapper,
- & > ${t}-number-affix-wrapper,
- & > ${n}-picker-range
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
- & > ${n}-select-auto-complete ${t},
- & > ${n}-cascader-picker ${t},
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
- & > ${n}-select:first-child > ${n}-select-selector,
- & > ${n}-select-auto-complete:first-child ${t},
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
- & > ${n}-select:last-child > ${n}-select-selector,
- & > ${n}-cascader-picker:last-child ${t},
- & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},yO=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ct(e)),al(e)),Tp(e)),_p(e)),Dp(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},CO=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${X(e.inputAffixPadding)}`}}}},SO=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},al(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),CO(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},xO=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ct(e)),Hp(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Ap(e)),jp(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}}})})}},wO=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
- > ${t},
- ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},$O=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,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"}}}}}},EO=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},tu=Rt("Input",e=>{const t=ct(e,Zc(e));return[yO(t),$O(t),SO(t),xO(t),wO(t),EO(t),Ui(t)]},Jc,{resetFont:!1});function IO(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function v(){d&&clearTimeout(d)}function p(g){var C=g||{},y=C.upcomingOnly,b=y===void 0?!1:y;v(),f=!b}function h(){for(var g=arguments.length,C=new Array(g),y=0;ye?s?(m=Date.now(),a||(d=setTimeout(u?x:w,e))):w():a!==!0&&(d=setTimeout(u?x:w,u===void 0?e-S:e))}return h.cancel=p,h}function OO(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return IO(e,t,{debounceMode:a!==!1})}function vn(e,t){return e[t]}var RO=["children"];function kp(e,t){return"".concat(e,"-").concat(t)}function PO(e){return e&&e.type&&e.type.isTreeNode}function Aa(e,t){return e??t}function bo(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function NO(e,t){var n=new Map;function r(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(o||[]).forEach(function(i){var s=i[t.key],c=i[t.children];je(s!=null,"Tree node must have a certain key: [".concat(a).concat(s,"]"));var u=String(s);je(!n.has(u)||s===null||s===void 0,"Same 'key' exist in the Tree: ".concat(u)),n.set(u,!0),r(c,"".concat(a).concat(u," > "))})}r(e)}function Vp(e){function t(n){var r=cn(n);return r.map(function(o){if(!PO(o))return je(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,s=i.children,c=We(i,RO),u=H({key:a},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function Ll(e,t,n){var r=bo(n),o=r._title,a=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,v){for(var p=kp(f?f.pos:"0",v),h=Aa(m[a],p),g,C=0;C1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),MO(e,function(v){var p=v.node,h=v.index,g=v.pos,C=v.key,y=v.parentPos,b=v.level,S=v.nodes,w={node:p,nodes:S,index:h,key:C,pos:g,level:b},x=Aa(C,g);d[g]=w,f[x]=w,w.parent=d[y],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,m)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),o&&o(m),m}function qo(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=vn(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function zt(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,p=H(H({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:v});return"props"in p||Object.defineProperty(p,"props",{get:function(){return je(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function Wp(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function TO(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function AO(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var m=f.key,v=f.node,p=f.children,h=p===void 0?[]:p;o.has(m)&&!r(v)&&h.filter(function(g){return!r(g.node)}).forEach(function(g){o.add(g.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var p=!0,h=!1;(m.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var C=g.key,y=o.has(C);p&&!y&&(p=!1),!h&&(y||a.has(C))&&(h=!0)}),p&&o.add(m.key),h&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Wp(a,o))}}function DO(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var v=m.key,p=m.node,h=m.children,g=h===void 0?[]:h;!a.has(v)&&!i.has(v)&&!o(p)&&g.filter(function(C){return!o(C.node)}).forEach(function(C){a.delete(C.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var v=m.parent,p=m.node;if(!(o(p)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(v.key);return}var h=!0,g=!1;(v.children||[]).filter(function(C){return!o(C.node)}).forEach(function(C){var y=C.key,b=a.has(y);h&&!b&&(h=!1),!g&&(b||i.has(y))&&(g=!0)}),h||a.delete(v.key),g&&i.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Wp(i,a))}}function zl(e,t,n,r){var o=[],a;a=TO;var i=new Set(e.filter(function(d){var f=!!vn(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,v=s.get(m);v||(v=new Set,s.set(m,v)),v.add(f),c=Math.max(c,m)}),je(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=AO(i,s,c,a):u=DO(i,t.halfCheckedKeys,s,c,a),u}const FO=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ct(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ct(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ct(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},xo(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${X(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
- ${n}:not(${n}-disabled),
- ${t}:not(${t}-disabled)
- `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
- ${n}-checked:not(${n}-disabled),
- ${t}-checked:not(${t}-disabled)
- `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Gp(e,t){const n=ct(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[FO(n)]}Rt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Gp(n,e)]});const qp=l.createContext({}),_O=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"}}}},jO=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},LO=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Vs=(e,t)=>LO(e,t),zO=(e,t,n)=>({[`@media (min-width: ${X(t)})`]:Object.assign({},Vs(e,n))}),BO=()=>({}),HO=()=>({}),kO=Rt("Grid",_O,BO),VO=Rt("Grid",e=>{const t=ct(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[jO(t),Vs(t,""),Vs(t,"-xs"),Object.keys(n).map(r=>zO(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},HO);var KO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=l.useContext(He),{gutter:o,wrap:a}=l.useContext(qp),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:m,children:v,flex:p,style:h}=e,g=KO(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",i),[y,b,S]=VO(C),w={};let x={};WO.forEach(E=>{let R={};const P=e[E];typeof P=="number"?R.span=P:typeof P=="object"&&(R=P||{}),delete g[E],x=Object.assign(Object.assign({},x),{[`${C}-${E}-${R.span}`]:R.span!==void 0,[`${C}-${E}-order-${R.order}`]:R.order||R.order===0,[`${C}-${E}-offset-${R.offset}`]:R.offset||R.offset===0,[`${C}-${E}-push-${R.push}`]:R.push||R.push===0,[`${C}-${E}-pull-${R.pull}`]:R.pull||R.pull===0,[`${C}-rtl`]:r==="rtl"}),R.flex&&(x[`${C}-${E}-flex`]=!0,w[`--${C}-${E}-flex`]=Nf(R.flex))});const $=K(C,{[`${C}-${s}`]:s!==void 0,[`${C}-order-${c}`]:c,[`${C}-offset-${u}`]:u,[`${C}-push-${d}`]:d,[`${C}-pull-${f}`]:f},m,x,b,S),I={};if(o&&o[0]>0){const E=o[0]/2;I.paddingLeft=E,I.paddingRight=E}return p&&(I.flex=Nf(p),a===!1&&!I.minWidth&&(I.minWidth=0)),y(l.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},I),h),w),className:$,ref:t}),v))});nu.displayName="Col";var GO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{o()},[JSON.stringify(e),t]),n}const Up=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:c=0,wrap:u}=e,d=GO(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=l.useContext(He),[v,p]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[h,g]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=Mf(o,h),y=Mf(r,h),b=l.useRef(c),S=uE();l.useEffect(()=>{const M=S.subscribe(F=>{g(F);const z=b.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&p(F)});return()=>S.unsubscribe(M)},[]);const w=()=>{const M=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((z,L)=>{if(typeof z=="object")for(let _=0;_0?R[0]/-2:void 0;T&&(N.marginLeft=T,N.marginRight=T);const[O,j]=R;N.rowGap=j;const D=l.useMemo(()=>({gutter:[O,j],wrap:u}),[O,j,u]);return $(l.createElement(qp.Provider,{value:D},l.createElement("div",Object.assign({},d,{className:P,style:Object.assign(Object.assign({},N),i),ref:t}),s)))});Up.displayName="Row";var Xp=W.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,a=e.style,i=e.children,s=e.isActive,c=e.role,u=W.useState(s||r),d=G(u,2),f=d[0],m=d[1];return W.useEffect(function(){(r||s)&&m(!0)},[r,s]),f?W.createElement("div",{ref:t,className:K("".concat(n,"-content"),A(A({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:a,role:c},W.createElement("div",{className:"".concat(n,"-content-box")},i)):null});Xp.displayName="PanelContent";var qO=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Yp=W.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,a=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,m=e.panelKey,v=e.extra,p=e.header,h=e.expandIcon,g=e.openMotion,C=e.destroyInactivePanel,y=e.children,b=We(e,qO),S=d==="disabled",w=d==="header",x=d==="icon",$=v!=null&&typeof v!="boolean",I=function(){i==null||i(m)},E=function(j){(j.key==="Enter"||j.keyCode===ie.ENTER||j.which===ie.ENTER)&&I()},R=typeof h=="function"?h(e):W.createElement("i",{className:"arrow"});R&&(R=W.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?I:void 0},R));var P=K(A(A(A({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),S),c),N=K(o,A(A(A({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),w),"".concat(u,"-icon-collapsible-only"),x)),T={className:N,"aria-expanded":a,"aria-disabled":S,onKeyDown:E};return!w&&!x&&(T.onClick=I,T.role=f?"tab":"button",T.tabIndex=S?-1:0),W.createElement("div",ue({},b,{ref:t,className:P}),W.createElement("div",T,r&&R,W.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?I:void 0},p),$&&W.createElement("div",{className:"".concat(u,"-extra")},v)),W.createElement(Vn,ue({visible:a,leavedClassName:"".concat(u,"-content-hidden")},g,{forceRender:s,removeOnLeave:C}),function(O,j){var D=O.className,M=O.style;return W.createElement(Xp,{ref:j,prefixCls:u,className:D,style:M,isActive:a,forceRender:s,role:f?"tabpanel":void 0},y)}))}),UO=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],XO=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var v=f.children,p=f.label,h=f.key,g=f.collapsible,C=f.onItemClick,y=f.destroyInactivePanel,b=We(f,UO),S=String(h??m),w=g??a,x=y??i,$=function(R){w!=="disabled"&&(s(R),C==null||C(R))},I=!1;return o?I=c[0]===S:I=c.indexOf(S)>-1,W.createElement(Yp,ue({},b,{prefixCls:r,key:S,panelKey:S,isActive:I,accordion:o,openMotion:u,expandIcon:d,header:p,collapsible:w,onItemClick:$,destroyInactivePanel:x}),v)})},YO=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),v=t.props,p=v.header,h=v.headerClass,g=v.destroyInactivePanel,C=v.collapsible,y=v.onItemClick,b=!1;a?b=u[0]===m:b=u.indexOf(m)>-1;var S=C??i,w=function(I){S!=="disabled"&&(c(I),y==null||y(I))},x={key:m,panelKey:m,header:p,headerClass:h,isActive:b,prefixCls:o,destroyInactivePanel:g??s,openMotion:d,accordion:a,children:t.props.children,onItemClick:w,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(x).forEach(function($){typeof x[$]>"u"&&delete x[$]}),W.cloneElement(t,x))};function QO(e,t,n){return Array.isArray(e)?XO(e,n):cn(t).map(function(r,o){return YO(r,o,n)})}function ZO(e){var t=e;if(!Array.isArray(t)){var n=De(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var JO=W.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,v=e.activeKey,p=e.defaultActiveKey,h=e.onChange,g=e.items,C=K(r,c),y=Vt([],{value:v,onChange:function(E){return h==null?void 0:h(E)},defaultValue:p,postState:ZO}),b=G(y,2),S=b[0],w=b[1],x=function(E){return w(function(){if(s)return S[0]===E?[]:[E];var R=S.indexOf(E),P=R>-1;return P?S.filter(function(N){return N!==E}):[].concat(ce(S),[E])})};je(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var $=QO(g,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:a,onItemClick:x,activeKey:S});return W.createElement("div",ue({ref:t,className:C,style:i,role:s?"tablist":void 0},Sn(e,{aria:!0,data:!0})),$)});const ru=Object.assign(JO,{Panel:Yp});ru.Panel;const eR=l.forwardRef((e,t)=>{vt("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');const{getPrefixCls:n}=l.useContext(He),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=K({[`${i}-no-arrow`]:!a},o);return l.createElement(ru.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),tR=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:v,colorTextDisabled:p,fontSizeLG:h,lineHeight:g,lineHeightLG:C,marginSM:y,paddingSM:b,paddingLG:S,paddingXS:w,motionDurationSlow:x,fontSizeIcon:$,contentPadding:I,fontHeight:E,fontHeightLG:R}=e,P=`${X(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Ct(e)),{backgroundColor:o,border:P,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:last-child":{[`
- &,
- & > ${t}-header`]:{borderRadius:`0 0 ${X(c)} ${X(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:v,lineHeight:g,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},So()),{fontSize:$,transition:`transform ${x}`,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:I},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:C,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:R,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${X(c)} ${X(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},nR=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},rR=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
- > ${t}-item:last-child,
- > ${t}-item:last-child ${t}-header
- `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},oR=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},aR=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),iR=Rt("Collapse",e=>{const t=ct(e,{collapseHeaderPaddingSM:`${X(e.paddingXS)} ${X(e.paddingSM)}`,collapseHeaderPaddingLG:`${X(e.padding)} ${X(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[tR(t),rR(t),oR(t),nR(t),Yi(t)]},aR),Qp=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=l.useContext(He),{prefixCls:a,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:m="start",children:v,expandIcon:p}=e,h=Nn(P=>{var N;return(N=f??P)!==null&&N!==void 0?N:"middle"}),g=n("collapse",a),C=n(),[y,b,S]=iR(g);vt("Collapse")(m!=="left"&&m!=="right","deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");const w=l.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=p??(o==null?void 0:o.expandIcon),$=l.useCallback(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const N=typeof x=="function"?x(P):l.createElement(fa,{rotate:P.isActive?90:void 0});return Qt(N,()=>{var T;return{className:K((T=N==null?void 0:N.props)===null||T===void 0?void 0:T.className,`${g}-arrow`)}})},[x,g]),I=K(`${g}-icon-position-${w}`,{[`${g}-borderless`]:!u,[`${g}-rtl`]:r==="rtl",[`${g}-ghost`]:!!d,[`${g}-${h}`]:h!=="middle"},o==null?void 0:o.className,i,s,b,S),E=Object.assign(Object.assign({},ia(C)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),R=l.useMemo(()=>v?cn(v).map((P,N)=>{var T,O;if(!((T=P.props)===null||T===void 0)&&T.disabled){const j=(O=P.key)!==null&&O!==void 0?O:String(N),{disabled:D,collapsible:M}=P.props,F=Object.assign(Object.assign({},Wt(P.props,["disabled"])),{key:j,collapsible:M??(D?"disabled":void 0)});return Qt(P,F)}return P}):null,[v]);return y(l.createElement(ru,Object.assign({ref:t,openMotion:E},Wt(e,["rootClassName"]),{expandIcon:$,prefixCls:g,className:I,style:Object.assign(Object.assign({},o==null?void 0:o.style),c)}),R))});Qp.displayName="Collapse";const RN=Object.assign(Qp,{Panel:eR}),lR=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Ct(e)),{borderBlockStart:`${X(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${X(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${X(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${X(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${X(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${X(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},sR=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),cR=Rt("Divider",e=>{const t=ct(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[lR(t)]},sR,{unitless:{orientationMargin:!0}});var uR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(He),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,plain:m,style:v}=e,p=uR(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),h=t("divider",o),[g,C,y]=cR(h),b=i.length>0?`-${i}`:i,S=!!d,w=i==="left"&&s!=null,x=i==="right"&&s!=null,$=K(h,r==null?void 0:r.className,C,y,`${h}-${a}`,{[`${h}-with-text`]:S,[`${h}-with-text${b}`]:S,[`${h}-dashed`]:!!f,[`${h}-plain`]:!!m,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:w,[`${h}-no-default-orientation-margin-right`]:x},c,u),I=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),E=Object.assign(Object.assign({},w&&{marginLeft:I}),x&&{marginRight:I});return vt("Divider")(!d||a!=="vertical","usage","`children` not working in `vertical` mode."),g(l.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},p,{role:"separator"}),d&&a!=="vertical"&&l.createElement("span",{className:`${h}-inner-text`,style:E},d)))};dR.displayName="Divider";var fR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},mR=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:fR}))},Zp=l.forwardRef(mR);Zp.displayName="UpOutlined";function Ks(){return typeof BigInt=="function"}function Jp(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function jr(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function ou(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Ar(e){var t=String(e);if(ou(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&au(t)?t.length-t.indexOf(".")-1:0}function il(e){var t=String(e);if(ou(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ks()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":jr("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),gR=function(){function e(t){if(Dt(this,e),A(this,"origin",""),A(this,"number",void 0),A(this,"empty",void 0),Jp(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Ft(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":il(this.number):this.origin}}]),e}();function _n(e){return Ks()?new vR(e):new gR(e)}function vi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=jr(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(a).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=_n(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return vi(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function pR(e){return!!(e.addonBefore||e.addonAfter)}function hR(e){return!!(e.prefix||e.suffix||e.allowClear)}function Tf(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ti(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Tf(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Tf(t,e,r),n(o);return}n(o)}}function eh(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var iu=W.forwardRef(function(e,t){var n,r,o=e.inputElement,a=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,v=e.disabled,p=e.readOnly,h=e.focused,g=e.triggerFocus,C=e.allowClear,y=e.value,b=e.handleReset,S=e.hidden,w=e.classes,x=e.classNames,$=e.dataAttrs,I=e.styles,E=e.components,R=a??o,P=(E==null?void 0:E.affixWrapper)||"span",N=(E==null?void 0:E.groupWrapper)||"span",T=(E==null?void 0:E.wrapper)||"span",O=(E==null?void 0:E.groupAddon)||"span",j=l.useRef(null),D=function(ne){var fe;(fe=j.current)!==null&&fe!==void 0&&fe.contains(ne.target)&&(g==null||g())},M=hR(e),F=l.cloneElement(R,{value:y,className:K(R.props.className,!M&&(x==null?void 0:x.variant))||null}),z=l.useRef(null);if(W.useImperativeHandle(t,function(){return{nativeElement:z.current||j.current}}),M){var L,_=null;if(C){var B,k=!v&&!p&&y,q="".concat(i,"-clear-icon"),Q=De(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";_=W.createElement("span",{onClick:b,onMouseDown:function(ne){return ne.preventDefault()},className:K(q,(B={},A(B,"".concat(q,"-hidden"),!k),A(B,"".concat(q,"-has-suffix"),!!c),B)),role:"button",tabIndex:-1},Q)}var te="".concat(i,"-affix-wrapper"),U=K(te,(L={},A(L,"".concat(i,"-disabled"),v),A(L,"".concat(te,"-disabled"),v),A(L,"".concat(te,"-focused"),h),A(L,"".concat(te,"-readonly"),p),A(L,"".concat(te,"-input-with-clear-btn"),c&&C&&y),L),w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),Z=(c||C)&&W.createElement("span",{className:K("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:I==null?void 0:I.suffix},_,c);F=W.createElement(P,ue({className:U,style:I==null?void 0:I.affixWrapper,onClick:D},$==null?void 0:$.affixWrapper,{ref:j}),s&&W.createElement("span",{className:K("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:I==null?void 0:I.prefix},s),F,Z)}if(pR(e)){var ae="".concat(i,"-group"),J="".concat(ae,"-addon"),Y="".concat(ae,"-wrapper"),re=K("".concat(i,"-wrapper"),ae,w==null?void 0:w.wrapper,x==null?void 0:x.wrapper),ee=K(Y,A({},"".concat(Y,"-disabled"),v),w==null?void 0:w.group,x==null?void 0:x.groupWrapper);F=W.createElement(N,{className:ee,ref:z},W.createElement(T,{className:re},u&&W.createElement(O,{className:J},u),F,d&&W.createElement(O,{className:J},d)))}return W.cloneElement(F,{className:K((n=F.props)===null||n===void 0?void 0:n.className,f)||null,style:H(H({},(r=F.props)===null||r===void 0?void 0:r.style),m),hidden:S})}),bR=["show"];function th(e,t){return l.useMemo(function(){var n={};t&&(n.show=De(t)==="object"&&t.formatter?t.formatter:!!t),n=H(H({},n),e);var r=n,o=r.show,a=We(r,bR);return H(H({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var yR=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],CR=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,v=e.maxLength,p=e.suffix,h=e.showCount,g=e.count,C=e.type,y=C===void 0?"text":C,b=e.classes,S=e.classNames,w=e.styles,x=e.onCompositionStart,$=e.onCompositionEnd,I=We(e,yR),E=l.useState(!1),R=G(E,2),P=R[0],N=R[1],T=l.useRef(!1),O=l.useRef(null),j=l.useRef(null),D=function(se){O.current&&eh(O.current,se)},M=Vt(e.defaultValue,{value:e.value}),F=G(M,2),z=F[0],L=F[1],_=z==null?"":String(z),B=l.useState(null),k=G(B,2),q=k[0],Q=k[1],te=th(g,h),U=te.max||v,Z=te.strategy(_),ae=!!U&&Z>U;l.useImperativeHandle(t,function(){var oe;return{focus:D,blur:function(){var $e;($e=O.current)===null||$e===void 0||$e.blur()},setSelectionRange:function($e,Ce,pe){var Se;(Se=O.current)===null||Se===void 0||Se.setSelectionRange($e,Ce,pe)},select:function(){var $e;($e=O.current)===null||$e===void 0||$e.select()},input:O.current,nativeElement:((oe=j.current)===null||oe===void 0?void 0:oe.nativeElement)||O.current}}),l.useEffect(function(){N(function(oe){return oe&&d?!1:oe})},[d]);var J=function(se,$e,Ce){var pe=$e;if(!T.current&&te.exceedFormatter&&te.max&&te.strategy($e)>te.max){if(pe=te.exceedFormatter($e,{max:te.max}),$e!==pe){var Se,me;Q([((Se=O.current)===null||Se===void 0?void 0:Se.selectionStart)||0,((me=O.current)===null||me===void 0?void 0:me.selectionEnd)||0])}}else if(Ce.source==="compositionEnd")return;L(pe),O.current&&Ti(O.current,se,r,pe)};l.useEffect(function(){if(q){var oe;(oe=O.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ce(q))}},[q]);var Y=function(se){J(se,se.target.value,{source:"change"})},re=function(se){T.current=!1,J(se,se.currentTarget.value,{source:"compositionEnd"}),$==null||$(se)},ee=function(se){i&&se.key==="Enter"&&i(se),s==null||s(se)},V=function(se){N(!0),o==null||o(se)},ne=function(se){N(!1),a==null||a(se)},fe=function(se){L(""),D(),O.current&&Ti(O.current,se,r)},ye=ae&&"".concat(u,"-out-of-range"),be=function(){var se=Wt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return W.createElement("input",ue({autoComplete:n},se,{onChange:Y,onFocus:V,onBlur:ne,onKeyDown:ee,className:K(u,A({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:w==null?void 0:w.input,ref:O,size:f,type:y,onCompositionStart:function(Ce){T.current=!0,x==null||x(Ce)},onCompositionEnd:re}))},de=function(){var se=Number(U)>0;if(p||te.show){var $e=te.showFormatter?te.showFormatter({value:_,count:Z,maxLength:U}):"".concat(Z).concat(se?" / ".concat(U):"");return W.createElement(W.Fragment,null,te.show&&W.createElement("span",{className:K("".concat(u,"-show-count-suffix"),A({},"".concat(u,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:H({},w==null?void 0:w.count)},$e),p)}return null};return W.createElement(iu,ue({},I,{prefixCls:u,className:K(m,ye),handleReset:fe,value:_,focused:P,triggerFocus:D,suffix:de(),disabled:d,classes:b,classNames:S,styles:w}),be())});function SR(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var a=r[o];return typeof a=="function"?a.bind(r):a}}):e}function xR(e,t){var n=l.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,a),u=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=a.length;if(a.endsWith(c))d=a.length-n.current.afterTxt.length;else if(a.startsWith(s))d=s.length;else{var f=s[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(v){je(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var wR=function(){var t=l.useState(!1),n=G(t,2),r=n[0],o=n[1];return mt(function(){o(Pc())},[]),r},$R=200,ER=600;function IR(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(b,S){b.preventDefault(),d(),u.current(S);function w(){u.current(S),s.current=setTimeout(w,$R)}s.current=setTimeout(w,ER)};l.useEffect(function(){return function(){d(),c.current.forEach(function(y){return ut.cancel(y)})}},[]);var m=wR();if(m)return null;var v="".concat(t,"-handler"),p=K(v,"".concat(v,"-up"),A({},"".concat(v,"-up-disabled"),o)),h=K(v,"".concat(v,"-down"),A({},"".concat(v,"-down-disabled"),a)),g=function(){return c.current.push(ut(d))},C={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return l.createElement("div",{className:"".concat(v,"-wrap")},l.createElement("span",ue({},C,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",ue({},C,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:h}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Af(e){var t=typeof e=="number"?il(e):jr(e).fullStr,n=t.includes(".");return n?jr(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const OR=function(){var e=l.useRef(0),t=function(){ut.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=ut(function(){n()})}};var RR=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],PR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Df=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Ff=function(t){var n=_n(t);return n.isInvalidate()?null:n},NR=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,v=e.upHandler,p=e.downHandler,h=e.keyboard,g=e.changeOnWheel,C=g===void 0?!1:g,y=e.controls,b=y===void 0?!0:y;e.classNames;var S=e.stringMode,w=e.parser,x=e.formatter,$=e.precision,I=e.decimalSeparator,E=e.onChange,R=e.onInput,P=e.onPressEnter,N=e.onStep,T=e.changeOnBlur,O=T===void 0?!0:T,j=e.domRef,D=We(e,RR),M="".concat(n,"-input"),F=l.useRef(null),z=l.useState(!1),L=G(z,2),_=L[0],B=L[1],k=l.useRef(!1),q=l.useRef(!1),Q=l.useRef(!1),te=l.useState(function(){return _n(d??u)}),U=G(te,2),Z=U[0],ae=U[1];function J(Me){d===void 0&&ae(Me)}var Y=l.useCallback(function(Me,xe){if(!xe)return $>=0?$:Math.max(Ar(Me),Ar(c))},[$,c]),re=l.useCallback(function(Me){var xe=String(Me);if(w)return w(xe);var Ne=xe;return I&&(Ne=Ne.replace(I,".")),Ne.replace(/[^\w.-]+/g,"")},[w,I]),ee=l.useRef(""),V=l.useCallback(function(Me,xe){if(x)return x(Me,{userTyping:xe,input:String(ee.current)});var Ne=typeof Me=="number"?il(Me):Me;if(!xe){var ve=Y(Ne,xe);if(au(Ne)&&(I||ve>=0)){var Be=I||".";Ne=vi(Ne,Be,ve)}}return Ne},[x,Y,I]),ne=l.useState(function(){var Me=u??d;return Z.isInvalidate()&&["string","number"].includes(De(Me))?Number.isNaN(Me)?"":Me:V(Z.toString(),!1)}),fe=G(ne,2),ye=fe[0],be=fe[1];ee.current=ye;function de(Me,xe){be(V(Me.isInvalidate()?Me.toString(!1):Me.toString(!xe),xe))}var oe=l.useMemo(function(){return Ff(i)},[i,$]),se=l.useMemo(function(){return Ff(a)},[a,$]),$e=l.useMemo(function(){return!oe||!Z||Z.isInvalidate()?!1:oe.lessEquals(Z)},[oe,Z]),Ce=l.useMemo(function(){return!se||!Z||Z.isInvalidate()?!1:Z.lessEquals(se)},[se,Z]),pe=xR(F.current,_),Se=G(pe,2),me=Se[0],Fe=Se[1],Le=function(xe){return oe&&!xe.lessEquals(oe)?oe:se&&!se.lessEquals(xe)?se:null},Ee=function(xe){return!Le(xe)},we=function(xe,Ne){var ve=xe,Be=Ee(ve)||ve.isEmpty();if(!ve.isEmpty()&&!Ne&&(ve=Le(ve)||ve,Be=!0),!m&&!f&&Be){var Pe=ve.toString(),ge=Y(Pe,Ne);return ge>=0&&(ve=_n(vi(Pe,".",ge)),Ee(ve)||(ve=_n(vi(Pe,".",ge,!0)))),ve.equals(Z)||(J(ve),E==null||E(ve.isEmpty()?null:Df(S,ve)),d===void 0&&de(ve,Ne)),ve}return Z},Ue=OR(),ke=function Me(xe){if(me(),ee.current=xe,be(xe),!q.current){var Ne=re(xe),ve=_n(Ne);ve.isNaN()||we(ve,!0)}R==null||R(xe),Ue(function(){var Be=xe;w||(Be=xe.replace(/。/g,".")),Be!==xe&&Me(Be)})},tt=function(){q.current=!0},dt=function(){q.current=!1,ke(F.current.value)},ft=function(xe){ke(xe.target.value)},Ve=function(xe){var Ne;if(!(xe&&$e||!xe&&Ce)){k.current=!1;var ve=_n(Q.current?Af(c):c);xe||(ve=ve.negate());var Be=(Z||_n(0)).add(ve.toString()),Pe=we(Be,!1);N==null||N(Df(S,Pe),{offset:Q.current?Af(c):c,type:xe?"up":"down"}),(Ne=F.current)===null||Ne===void 0||Ne.focus()}},nt=function(xe){var Ne=_n(re(ye)),ve;Ne.isNaN()?ve=we(Z,xe):ve=we(Ne,xe),d!==void 0?de(Z,!1):ve.isNaN()||de(ve,!1)},et=function(){k.current=!0},pt=function(xe){var Ne=xe.key,ve=xe.shiftKey;k.current=!0,Q.current=ve,Ne==="Enter"&&(q.current||(k.current=!1),nt(!1),P==null||P(xe)),h!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ne)&&(Ve(Ne==="Up"||Ne==="ArrowUp"),xe.preventDefault())},lt=function(){k.current=!1,Q.current=!1};l.useEffect(function(){if(C&&_){var Me=function(ve){Ve(ve.deltaY<0),ve.preventDefault()},xe=F.current;if(xe)return xe.addEventListener("wheel",Me,{passive:!1}),function(){return xe.removeEventListener("wheel",Me)}}});var bt=function(){O&&nt(!1),B(!1),k.current=!1};return Vo(function(){Z.isInvalidate()||de(Z,!1)},[$,x]),Vo(function(){var Me=_n(d);ae(Me);var xe=_n(re(ye));(!Me.equals(xe)||!k.current||x)&&de(Me,k.current)},[d]),Vo(function(){x&&Fe()},[ye]),l.createElement("div",{ref:j,className:K(n,r,A(A(A(A(A({},"".concat(n,"-focused"),_),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Z.isNaN()),"".concat(n,"-out-of-range"),!Z.isInvalidate()&&!Ee(Z))),style:o,onFocus:function(){B(!0)},onBlur:bt,onKeyDown:pt,onKeyUp:lt,onCompositionStart:tt,onCompositionEnd:dt,onBeforeInput:et},b&&l.createElement(IR,{prefixCls:n,upNode:v,downNode:p,upDisabled:$e,downDisabled:Ce,onStep:Ve}),l.createElement("div",{className:"".concat(M,"-wrap")},l.createElement("input",ue({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":Z.isInvalidate()?null:Z.toString(),step:c},D,{ref:gn(F,t),className:M,value:ye,onChange:ft,disabled:f,readOnly:m}))))}),nh=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,v=We(e,PR),p=l.useRef(null),h=l.useRef(null),g=l.useRef(null),C=function(b){g.current&&eh(g.current,b)};return l.useImperativeHandle(t,function(){return SR(g.current,{nativeElement:p.current.nativeElement||h.current})}),l.createElement(iu,{className:f,triggerFocus:C,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},l.createElement(NR,ue({prefixCls:a,disabled:n,ref:g,domRef:h,className:m==null?void 0:m.input},v)))});nh.displayName="InputNumber";const MR=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},Jc(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ot(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},_f=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},TR=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:s,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:m,colorTextDescription:v,motionDurationMid:p,handleHoverColor:h,paddingInline:g,paddingBlock:C,handleBg:y,handleActiveBg:b,colorTextDisabled:S,borderRadiusSM:w,borderRadiusLG:x,controlWidth:$,handleOpacity:I,handleBorderColor:E,filledHandleBg:R,lineHeightLG:P,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ct(e)),al(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:o}),Tp(e,{[`${t}-handler-wrap`]:{background:y,[`${t}-handler-down`]:{borderBlockStart:`${X(n)} ${r} ${E}`}}})),_p(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${X(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:y}}})),Dp(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:P,borderRadius:x,[`input${t}-input`]:{height:N(i).sub(N(n).mul(2)).equal(),padding:`${X(f)} ${X(m)}`}},"&-sm":{padding:0,borderRadius:w,[`input${t}-input`]:{height:N(s).sub(N(n).mul(2)).equal(),padding:`${X(d)} ${X(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ct(e)),Hp(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:x,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},Ap(e)),jp(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ct(e)),{width:"100%",padding:`${X(C)} ${X(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),Lp(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:I,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
- ${t}-handler-up-inner,
- ${t}-handler-down-inner
- `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${X(n)} ${r} ${E}`,transition:`all ${p} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
- ${t}-handler-up-inner,
- ${t}-handler-down-inner
- `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},So()),{color:v,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},_f(e,"lg")),_f(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
- ${t}-handler-up-disabled,
- ${t}-handler-down-disabled
- `]:{cursor:"not-allowed"},[`
- ${t}-handler-up-disabled:hover &-handler-up-inner,
- ${t}-handler-down-disabled:hover &-handler-down-inner
- `]:{color:S}})}]},AR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${X(n)} 0`}},al(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${X(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${X(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},DR=Rt("InputNumber",e=>{const t=ct(e,Zc(e));return[TR(t),AR(t),Ui(t)]},MR,{unitless:{handleOpacity:!0}});var FR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{{const{deprecated:U}=vt("InputNumber");U(!("bordered"in e),"bordered","variant")}const{getPrefixCls:n,direction:r}=l.useContext(He),o=l.useRef(null);l.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,bordered:v,readOnly:p,status:h,controls:g,variant:C}=e,y=FR(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),b=n("input-number",u),S=on(b),[w,x,$]=DR(b,S),{compactSize:I,compactItemClassnames:E}=Io(b,r);let R=l.createElement(Zp,{className:`${b}-handler-up-inner`}),P=l.createElement(Lc,{className:`${b}-handler-down-inner`});const N=typeof g=="boolean"?g:void 0;typeof g=="object"&&(R=typeof g.upIcon>"u"?R:l.createElement("span",{className:`${b}-handler-up-inner`},g.upIcon),P=typeof g.downIcon>"u"?P:l.createElement("span",{className:`${b}-handler-down-inner`},g.downIcon));const{hasFeedback:T,status:O,isFormItemInput:j,feedbackIcon:D}=l.useContext(rn),M=Ra(O,h),F=Nn(U=>{var Z;return(Z=s??I)!==null&&Z!==void 0?Z:U}),z=l.useContext(Hn),L=c??z,[_,B]=el(C,v),k=T&&l.createElement(l.Fragment,null,D),q=K({[`${b}-lg`]:F==="large",[`${b}-sm`]:F==="small",[`${b}-rtl`]:r==="rtl",[`${b}-in-form-item`]:j},x),Q=`${b}-group`,te=l.createElement(nh,Object.assign({ref:o,disabled:L,className:K($,S,a,i,E),upHandler:R,downHandler:P,prefixCls:b,readOnly:p,controls:N,prefix:m,suffix:k,addonAfter:f&&l.createElement(Hr,null,l.createElement(ca,{override:!0,status:!0},f)),addonBefore:d&&l.createElement(Hr,null,l.createElement(ca,{override:!0,status:!0},d)),classNames:{input:q,variant:K({[`${b}-${_}`]:B},ho(b,M,T)),affixWrapper:K({[`${b}-affix-wrapper-sm`]:F==="small",[`${b}-affix-wrapper-lg`]:F==="large",[`${b}-affix-wrapper-rtl`]:r==="rtl"},x),wrapper:K({[`${Q}-rtl`]:r==="rtl"},x),groupWrapper:K({[`${b}-group-wrapper-sm`]:F==="small",[`${b}-group-wrapper-lg`]:F==="large",[`${b}-group-wrapper-rtl`]:r==="rtl",[`${b}-group-wrapper-${_}`]:B},ho(`${b}-group-wrapper`,M,T),x)}},y));return w(te)}),oh=rh,_R=e=>l.createElement(Kn,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(rh,Object.assign({},e)));oh.displayName="InputNumber";oh._InternalPanelDoNotUseOrYouWillBeFired=_R;const jR=e=>{const{getPrefixCls:t,direction:n}=l.useContext(He),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,c]=tu(i),u=K(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),d=l.useContext(rn),f=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return vt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(rn.Provider,{value:f},e.children)))},ah=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:W.createElement($o,null)}),t};function ih(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function LR(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var zR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:v,className:p,style:h,styles:g,rootClassName:C,onChange:y,classNames:b,variant:S}=e,w=zR(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);{const{deprecated:V}=vt("Input");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:$,input:I}=W.useContext(He),E=x("input",r),R=l.useRef(null),P=on(E),[N,T,O]=tu(E,P),{compactSize:j,compactItemClassnames:D}=Io(E,$),M=Nn(V=>{var ne;return(ne=i??j)!==null&&ne!==void 0?ne:V}),F=W.useContext(Hn),z=s??F,{status:L,hasFeedback:_,feedbackIcon:B}=l.useContext(rn),k=Ra(L,a),q=LR(e)||!!_,Q=l.useRef(q);{const V=vt("Input");l.useEffect(()=>{var ne;q&&!Q.current&&V(document.activeElement===((ne=R.current)===null||ne===void 0?void 0:ne.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Q.current=q},[q])}const te=ih(R,!0),U=V=>{te(),c==null||c(V)},Z=V=>{te(),u==null||u(V)},ae=V=>{te(),y==null||y(V)},J=(_||d)&&W.createElement(W.Fragment,null,d,_&&B),Y=ah(f??(I==null?void 0:I.allowClear)),[re,ee]=el(S,o);return N(W.createElement(CR,Object.assign({ref:gn(t,R),prefixCls:E,autoComplete:I==null?void 0:I.autoComplete},w,{disabled:z,onBlur:U,onFocus:Z,style:Object.assign(Object.assign({},I==null?void 0:I.style),h),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),g),suffix:J,allowClear:Y,className:K(p,C,O,P,D,I==null?void 0:I.className),onChange:ae,addonAfter:m&&W.createElement(Hr,null,W.createElement(ca,{override:!0,status:!0},m)),addonBefore:v&&W.createElement(Hr,null,W.createElement(ca,{override:!0,status:!0},v)),classNames:Object.assign(Object.assign(Object.assign({},b),I==null?void 0:I.classNames),{input:K({[`${E}-sm`]:M==="small",[`${E}-lg`]:M==="large",[`${E}-rtl`]:$==="rtl"},b==null?void 0:b.input,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.input,T),variant:K({[`${E}-${re}`]:ee},ho(E,k)),affixWrapper:K({[`${E}-affix-wrapper-sm`]:M==="small",[`${E}-affix-wrapper-lg`]:M==="large",[`${E}-affix-wrapper-rtl`]:$==="rtl"},T),wrapper:K({[`${E}-group-rtl`]:$==="rtl"},T),groupWrapper:K({[`${E}-group-wrapper-sm`]:M==="small",[`${E}-group-wrapper-lg`]:M==="large",[`${E}-group-wrapper-rtl`]:$==="rtl",[`${E}-group-wrapper-${re}`]:ee},ho(`${E}-group-wrapper`,k,_),T)})})))});Da.displayName="Input";const HR=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},kR=Rt(["Input","OTP"],e=>{const t=ct(e,Zc(e));return[HR(t)]},Jc);var VR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:a,mask:i}=e,s=VR(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=p=>{r(a,p.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const f=()=>{ut(()=>{var p;const h=(p=d.current)===null||p===void 0?void 0:p.input;document.activeElement===h&&h&&h.select()})},m=p=>{let{key:h}=p;h==="ArrowLeft"?o(a-1):h==="ArrowRight"&&o(a+1),f()},v=p=>{p.key==="Backspace"&&!n&&o(a-1),f()};return l.createElement(Da,Object.assign({},s,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:m,onKeyUp:v,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var WR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:m,mask:v}=e,p=WR(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);vt("Input.OTP")(!(typeof v=="string"&&v.length>1),"usage","`mask` prop should be a single character.");const{getPrefixCls:h,direction:g}=l.useContext(He),C=h("otp",n),y=Sn(p,{aria:!0,data:!0,attr:!0}),b=on(C),[S,w,x]=kR(C,b),$=Nn(_=>o??_),I=l.useContext(rn),E=Ra(I.status,f),R=l.useMemo(()=>Object.assign(Object.assign({},I),{status:E,hasFeedback:!1,feedbackIcon:null}),[I,E]),P=l.useRef(null),N=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var _;(_=N.current[0])===null||_===void 0||_.focus()},blur:()=>{var _;for(let B=0;Bc?c(_):_,[O,j]=l.useState(ti(T(a||"")));l.useEffect(()=>{i!==void 0&&j(ti(i))},[i]);const D=kt(_=>{j(_),s&&_.length===r&&_.every(B=>B)&&_.some((B,k)=>O[k]!==B)&&s(_.join(""))}),M=kt((_,B)=>{let k=ce(O);for(let Q=0;Q<_;Q+=1)k[Q]||(k[Q]="");B.length<=1?k[_]=B:k=k.slice(0,_).concat(ti(B)),k=k.slice(0,r);for(let Q=k.length-1;Q>=0&&!k[Q];Q-=1)k.pop();const q=T(k.map(Q=>Q||" ").join(""));return k=ti(q).map((Q,te)=>Q===" "&&!k[te]?k[te]:Q),k}),F=(_,B)=>{var k;const q=M(_,B),Q=Math.min(_+B.length,r-1);Q!==_&&((k=N.current[Q])===null||k===void 0||k.focus()),D(q)},z=_=>{var B;(B=N.current[_])===null||B===void 0||B.focus()},L={variant:u,disabled:d,status:E,mask:v};return S(l.createElement("div",Object.assign({},y,{ref:P,className:K(C,{[`${C}-sm`]:$==="small",[`${C}-lg`]:$==="large",[`${C}-rtl`]:g==="rtl"},x,w)}),l.createElement(rn.Provider,{value:R},Array.from({length:r}).map((_,B)=>{const k=`otp-${B}`,q=O[B]||"";return l.createElement(KR,Object.assign({ref:Q=>{N.current[B]=Q},key:k,index:B,size:$,htmlSize:1,className:`${C}-input`,onChange:F,value:q,onActiveChange:z,autoFocus:B===0&&m},L))}))))});var qR={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"},UR=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:qR}))},lh=l.forwardRef(UR);lh.displayName="EyeInvisibleOutlined";var XR={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"},YR=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:XR}))},sh=l.forwardRef(YR);sh.displayName="EyeOutlined";var QR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?l.createElement(sh,null):l.createElement(lh,null),JR={click:"onClick",hover:"onMouseOver"},ch=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=ZR}=e,i=typeof o=="object"&&o.visible!==void 0,[s,c]=l.useState(()=>i?o.visible:!1),u=l.useRef(null);l.useEffect(()=>{i&&c(o.visible)},[i,o]);const d=ih(u),f=()=>{n||(s&&d(),c(I=>{var E;const R=!I;return typeof o=="object"&&((E=o.onVisibleChange)===null||E===void 0||E.call(o,R)),R}))},m=I=>{const E=JR[r]||"",R=a(s),P={[E]:f,className:`${I}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return l.cloneElement(l.isValidElement(R)?R:l.createElement("span",null,R),P)},{className:v,prefixCls:p,inputPrefixCls:h,size:g}=e,C=QR(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=l.useContext(He),b=y("input",h),S=y("input-password",p),w=o&&m(S),x=K(S,v,{[`${S}-${g}`]:!!g}),$=Object.assign(Object.assign({},Wt(C,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:x,prefixCls:b,suffix:w});return g&&($.size=g),l.createElement(Da,Object.assign({ref:gn(t,u)},$))});ch.displayName="Input.Password";var eP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:p}=e,h=eP(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:C}=l.useContext(He),y=l.useRef(!1),b=g("input-search",n),S=g("input",r),{compactSize:w}=Io(b,C),x=Nn(L=>{var _;return(_=a??w)!==null&&_!==void 0?_:L}),$=l.useRef(null),I=L=>{L&&L.target&&L.type==="click"&&f&&f(L.target.value,L,{source:"clear"}),m&&m(L)},E=L=>{var _;document.activeElement===((_=$.current)===null||_===void 0?void 0:_.input)&&L.preventDefault()},R=L=>{var _,B;f&&f((B=(_=$.current)===null||_===void 0?void 0:_.input)===null||B===void 0?void 0:B.value,L,{source:"input"})},P=L=>{y.current||u||R(L)},N=typeof s=="boolean"?l.createElement(zc,null):null,T=`${b}-button`;let O;const j=s||{},D=j.type&&j.type.__ANT_BUTTON===!0;D||j.type==="button"?O=Qt(j,Object.assign({onMouseDown:E,onClick:L=>{var _,B;(B=(_=j==null?void 0:j.props)===null||_===void 0?void 0:_.onClick)===null||B===void 0||B.call(_,L),R(L)},key:"enterButton"},D?{className:T,size:x}:{})):O=l.createElement(ir,{className:T,type:s?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:E,onClick:R,loading:u,icon:N},s),c&&(O=[O,Qt(c,{key:"addonAfter"})]);const M=K(b,{[`${b}-rtl`]:C==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!s},o),F=L=>{y.current=!0,v==null||v(L)},z=L=>{y.current=!1,p==null||p(L)};return l.createElement(Da,Object.assign({ref:gn($,t),onPressEnter:P},h,{size:x,onCompositionStart:F,onCompositionEnd:z,prefixCls:S,addonAfter:O,suffix:i,onChange:I,className:M,disabled:d}))});uh.displayName="Search";var tP=`
- min-height:0 !important;
- max-height:none !important;
- height:0 !important;
- visibility:hidden !important;
- overflow:hidden !important;
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- pointer-events: none !important;
-`,nP=["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"],Bl={},On;function rP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Bl[n])return Bl[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=nP.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Bl[n]=c),c}function oP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;On||(On=document.createElement("textarea"),On.setAttribute("tab-index","-1"),On.setAttribute("aria-hidden","true"),document.body.appendChild(On)),e.getAttribute("wrap")?On.setAttribute("wrap",e.getAttribute("wrap")):On.removeAttribute("wrap");var o=rP(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,c=o.sizingStyle;On.setAttribute("style","".concat(c,";").concat(tP)),On.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=On.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){On.value=" ";var v=On.scrollHeight-a;n!==null&&(u=v*n,s==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=v*r,s==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var p={height:m,overflowY:f,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var aP=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Hl=0,kl=1,Vl=2,iP=l.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=We(n,aP),v=Vt(o,{value:a,postState:function(q){return q??""}}),p=G(v,2),h=p[0],g=p[1],C=function(q){g(q.target.value),f==null||f(q)},y=l.useRef();l.useImperativeHandle(t,function(){return{textArea:y.current}});var b=l.useMemo(function(){return i&&De(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=G(b,2),w=S[0],x=S[1],$=!!i,I=function(){try{if(document.activeElement===y.current){var q=y.current,Q=q.selectionStart,te=q.selectionEnd,U=q.scrollTop;y.current.setSelectionRange(Q,te),y.current.scrollTop=U}}catch{}},E=l.useState(Vl),R=G(E,2),P=R[0],N=R[1],T=l.useState(),O=G(T,2),j=O[0],D=O[1],M=function(){N(Hl)};mt(function(){$&&M()},[a,w,x,$]),mt(function(){if(P===Hl)N(kl);else if(P===kl){var k=oP(y.current,!1,w,x);N(Vl),D(k)}else I()},[P]);var F=l.useRef(),z=function(){ut.cancel(F.current)},L=function(q){P===Vl&&(s==null||s(q),i&&(z(),F.current=ut(function(){M()})))};l.useEffect(function(){return z},[]);var _=$?j:null,B=H(H({},u),_);return(P===Hl||P===kl)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(cr,{onResize:L,disabled:!(i||s)},l.createElement("textarea",ue({},m,{ref:y,style:B,className:K(r,c,A({},"".concat(r,"-disabled"),d)),disabled:d,value:h,onChange:C})))}),lP=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],sP=W.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,p=v===void 0?"rc-textarea":v,h=e.showCount,g=e.count,C=e.className,y=e.style,b=e.disabled,S=e.hidden,w=e.classNames,x=e.styles,$=e.onResize,I=e.readOnly,E=We(e,lP),R=Vt(r,{value:o,defaultValue:r}),P=G(R,2),N=P[0],T=P[1],O=N==null?"":String(N),j=W.useState(!1),D=G(j,2),M=D[0],F=D[1],z=W.useRef(!1),L=W.useState(null),_=G(L,2),B=_[0],k=_[1],q=l.useRef(null),Q=l.useRef(null),te=function(){var we;return(we=Q.current)===null||we===void 0?void 0:we.textArea},U=function(){te().focus()};l.useImperativeHandle(t,function(){var Ee;return{resizableTextArea:Q.current,focus:U,blur:function(){te().blur()},nativeElement:((Ee=q.current)===null||Ee===void 0?void 0:Ee.nativeElement)||te()}}),l.useEffect(function(){F(function(Ee){return!b&&Ee})},[b]);var Z=W.useState(null),ae=G(Z,2),J=ae[0],Y=ae[1];W.useEffect(function(){if(J){var Ee;(Ee=te()).setSelectionRange.apply(Ee,ce(J))}},[J]);var re=th(g,h),ee=(n=re.max)!==null&&n!==void 0?n:u,V=Number(ee)>0,ne=re.strategy(O),fe=!!ee&&ne>ee,ye=function(we,Ue){var ke=Ue;!z.current&&re.exceedFormatter&&re.max&&re.strategy(Ue)>re.max&&(ke=re.exceedFormatter(Ue,{max:re.max}),Ue!==ke&&Y([te().selectionStart||0,te().selectionEnd||0])),T(ke),Ti(we.currentTarget,we,s,ke)},be=function(we){z.current=!0,d==null||d(we)},de=function(we){z.current=!1,ye(we,we.currentTarget.value),f==null||f(we)},oe=function(we){ye(we,we.target.value)},se=function(we){var Ue=E.onPressEnter,ke=E.onKeyDown;we.key==="Enter"&&Ue&&Ue(we),ke==null||ke(we)},$e=function(we){F(!0),a==null||a(we)},Ce=function(we){F(!1),i==null||i(we)},pe=function(we){T(""),U(),Ti(te(),we,s)},Se=m,me;re.show&&(re.showFormatter?me=re.showFormatter({value:O,count:ne,maxLength:ee}):me="".concat(ne).concat(V?" / ".concat(ee):""),Se=W.createElement(W.Fragment,null,Se,W.createElement("span",{className:K("".concat(p,"-data-count"),w==null?void 0:w.count),style:x==null?void 0:x.count},me)));var Fe=function(we){var Ue;$==null||$(we),(Ue=te())!==null&&Ue!==void 0&&Ue.style.height&&k(!0)},Le=!E.autoSize&&!h&&!c;return W.createElement(iu,{ref:q,value:O,allowClear:c,handleReset:pe,suffix:Se,prefixCls:p,classNames:H(H({},w),{},{affixWrapper:K(w==null?void 0:w.affixWrapper,A(A({},"".concat(p,"-show-count"),h),"".concat(p,"-textarea-allow-clear"),c))}),disabled:b,focused:M,className:K(C,fe&&"".concat(p,"-out-of-range")),style:H(H({},y),B&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof me=="string"?me:void 0}},hidden:S,readOnly:I},W.createElement(iP,ue({},E,{maxLength:u,onKeyDown:se,onChange:oe,onFocus:$e,onBlur:Ce,onCompositionStart:be,onCompositionEnd:de,className:K(w==null?void 0:w.textarea),style:H(H({},x==null?void 0:x.textarea),{},{resize:y==null?void 0:y.resize}),disabled:b,prefixCls:p,onResize:Fe,ref:Q,readOnly:I})))}),cP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:m,style:v,styles:p,variant:h}=e,g=cP(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);{const{deprecated:L}=vt("TextArea");L(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:y,textArea:b}=l.useContext(He),S=Nn(i),w=l.useContext(Hn),x=s??w,{status:$,hasFeedback:I,feedbackIcon:E}=l.useContext(rn),R=Ra($,c),P=l.useRef(null);l.useImperativeHandle(t,()=>{var L;return{resizableTextArea:(L=P.current)===null||L===void 0?void 0:L.resizableTextArea,focus:_=>{var B,k;BR((k=(B=P.current)===null||B===void 0?void 0:B.resizableTextArea)===null||k===void 0?void 0:k.textArea,_)},blur:()=>{var _;return(_=P.current)===null||_===void 0?void 0:_.blur()}}});const N=C("input",o),T=on(N),[O,j,D]=tu(N,T),[M,F]=el(h,a),z=ah(u??(b==null?void 0:b.allowClear));return O(l.createElement(sP,Object.assign({autoComplete:b==null?void 0:b.autoComplete},g,{style:Object.assign(Object.assign({},b==null?void 0:b.style),v),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),p),disabled:x,allowClear:z,className:K(D,T,m,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},d),b==null?void 0:b.classNames),{textarea:K({[`${N}-sm`]:S==="small",[`${N}-lg`]:S==="large"},j,d==null?void 0:d.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:K({[`${N}-${M}`]:F},ho(N,R)),affixWrapper:K(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:y==="rtl",[`${N}-affix-wrapper-sm`]:S==="small",[`${N}-affix-wrapper-lg`]:S==="large",[`${N}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},j)}),prefixCls:N,suffix:I&&l.createElement("span",{className:`${N}-textarea-suffix`},E),ref:P})))}),Fa=Da;Fa.Group=jR;Fa.Search=uh;Fa.TextArea=uP;Fa.Password=ch;Fa.OTP=GR;const dP=new st("antSpinMove",{to:{opacity:1}}),fP=new st("antRotate",{to:{transform:"rotate(405deg)"}}),mP=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Ct(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:dP,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:fP,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},vP=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},gP=Rt("Spin",e=>{const t=ct(e,{spinDotDefault:e.colorTextDescription});return[mP(t)]},vP);var pP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:s,wrapperClassName:c,style:u,children:d,fullscreen:f=!1}=e,m=pP(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:v}=l.useContext(He),p=v("spin",t),[h,g,C]=gP(p),[y,b]=l.useState(()=>n&&!bP(n,r));l.useEffect(()=>{if(n){const N=OO(r,()=>{b(!0)});return N(),()=>{var T;(T=N==null?void 0:N.cancel)===null||T===void 0||T.call(N)}}b(!1)},[r,n]);const S=l.useMemo(()=>typeof d<"u"&&!f,[d,f]);vt("Spin")(!s||S||f,"usage","`tip` only work in nest or fullscreen pattern.");const{direction:w,spin:x}=l.useContext(He),$=K(p,x==null?void 0:x.className,{[`${p}-sm`]:i==="small",[`${p}-lg`]:i==="large",[`${p}-spinning`]:y,[`${p}-show-text`]:!!s,[`${p}-fullscreen`]:f,[`${p}-fullscreen-show`]:f&&y,[`${p}-rtl`]:w==="rtl"},o,a,g,C),I=K(`${p}-container`,{[`${p}-blur`]:y}),E=Wt(m,["indicator"]),R=Object.assign(Object.assign({},x==null?void 0:x.style),u),P=l.createElement("div",Object.assign({},E,{style:R,className:$,"aria-live":"polite","aria-busy":y}),hP(p,e),s&&(S||f)?l.createElement("div",{className:`${p}-text`},s):null);return h(S?l.createElement("div",Object.assign({},E,{className:K(`${p}-nested-loading`,c,g,C)}),y&&l.createElement("div",{key:"loading"},P),l.createElement("div",{className:I,key:"container"},d)):P)};dh.setDefaultIndicator=e=>{gi=e};dh.displayName="Spin";function jf(e){return["small","middle","large"].includes(e)}function Lf(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const fh=W.createContext({latestIndex:0}),yP=fh.Provider,CP=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=l.useContext(fh);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:a},r),n{var n,r;const{getPrefixCls:o,space:a,direction:i}=l.useContext(He),{size:s=(a==null?void 0:a.size)||"small",align:c,className:u,rootClassName:d,children:f,direction:m="horizontal",prefixCls:v,split:p,style:h,wrap:g=!1,classNames:C,styles:y}=e,b=SP(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,w]=Array.isArray(s)?s:[s,s],x=jf(w),$=jf(S),I=Lf(w),E=Lf(S),R=cn(f,{keepEmpty:!0}),P=c===void 0&&m==="horizontal"?"center":c,N=o("space",v),[T,O,j]=Wv(N),D=K(N,a==null?void 0:a.className,O,`${N}-${m}`,{[`${N}-rtl`]:i==="rtl",[`${N}-align-${P}`]:P,[`${N}-gap-row-${w}`]:x,[`${N}-gap-col-${S}`]:$},u,d,j),M=K(`${N}-item`,(n=C==null?void 0:C.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let F=0;const z=R.map((B,k)=>{var q,Q;B!=null&&(F=k);const te=B&&B.key||`${M}-${k}`;return l.createElement(CP,{className:M,key:te,index:k,split:p,style:(q=y==null?void 0:y.item)!==null&&q!==void 0?q:(Q=a==null?void 0:a.styles)===null||Q===void 0?void 0:Q.item},B)}),L=l.useMemo(()=>({latestIndex:F}),[F]);if(R.length===0)return null;const _={};return g&&(_.flexWrap="wrap"),!$&&E&&(_.columnGap=S),!x&&I&&(_.rowGap=w),T(l.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},_),a==null?void 0:a.style),h)},b),l.createElement(yP,{value:L},z)))}),lu=xP;lu.Compact=OS;lu.displayName="Space";var wP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(He),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:p,autoFocus:h,overlay:g,trigger:C,align:y,open:b,onOpenChange:S,placement:w,getPopupContainer:x,href:$,icon:I=l.createElement(Yc,null),title:E,buttonsRender:R=Z=>Z,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:T,overlayStyle:O,destroyPopupOnHide:j,dropdownRender:D}=e,M=wP(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",o),z=`${F}-button`,L={menu:v,arrow:p,autoFocus:h,align:y,disabled:s,trigger:s?[]:C,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:T,overlayStyle:O,destroyPopupOnHide:j,dropdownRender:D},{compactSize:_,compactItemClassnames:B}=Io(F,r),k=K(z,B,m);"overlay"in e&&(L.overlay=g),"open"in e&&(L.open=b),"placement"in e?L.placement=w:L.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=l.createElement(ir,{type:a,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:$,title:E},f),Q=l.createElement(ir,{type:a,danger:i,icon:I}),[te,U]=R([q,Q]);return l.createElement(lu.Compact,Object.assign({className:k,size:_,block:!0},M),te,l.createElement(Ta,Object.assign({},L),U))};mh.__ANT_BUTTON=!0;const $P=Ta;$P.Button=mh;function Ai(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const EP=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
- opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
- transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},IP=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${X(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zf=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},OP=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ct(e)),IP(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zf(e,e.controlHeightSM)),"&-large":Object.assign({},zf(e,e.controlHeightLG))})}},RP=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ct(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
- &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Oc,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},PP=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},NP=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
- > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ao=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),MP=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ao(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},TP=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,
- .${r}-col-24${n}-label,
- .${r}-col-xl-24${n}-label`]:ao(e),[`@media (max-width: ${X(e.screenXSMax)})`]:[MP(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:ao(e)}}],[`@media (max-width: ${X(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:ao(e)}},[`@media (max-width: ${X(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:ao(e)}},[`@media (max-width: ${X(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:ao(e)}}}},AP=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),vh=(e,t)=>ct(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),su=Rt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=vh(e,n);return[OP(r),RP(r),EP(r),PP(r),NP(r),TP(r),Yi(r),Oc]},AP,{order:-1e3}),Bf=[];function Kl(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const gh=e=>{let{help:t,helpStatus:n,errors:r=Bf,warnings:o=Bf,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(xc),u=`${c}-item-explain`,d=on(c),[f,m,v]=su(c,d),p=l.useMemo(()=>ia(c),[c]),h=Ai(r),g=Ai(o),C=l.useMemo(()=>t!=null?[Kl(t,"help",n)]:[].concat(ce(h.map((b,S)=>Kl(b,"error","error",S))),ce(g.map((b,S)=>Kl(b,"warning","warning",S)))),[t,n,h,g]),y={};return i&&(y.id=`${i}_help`),f(l.createElement(Vn,{motionDeadline:p.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:s},b=>{const{className:S,style:w}=b;return l.createElement("div",Object.assign({},y,{className:K(u,S,v,d,a,m),style:w,role:"alert"}),l.createElement(Ev,Object.assign({keys:C},ia(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:$,error:I,errorStatus:E,className:R,style:P}=x;return l.createElement("div",{key:$,className:K(R,{[`${u}-${E}`]:E}),style:P},I)}))}))},DP=["parentNode"],FP="form_item";function Uo(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ph(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:DP.includes(n)?`${FP}_${n}`:n}function hh(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function Hf(e){return Uo(e).join("_")}function _P(e,t){const n=t.getFieldInstance(e);if(n instanceof HTMLElement)return n;if((n==null?void 0:n.nativeElement)instanceof HTMLElement)return n.nativeElement;const r=ph(Uo(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function bh(e){const[t]=Sc(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Hf(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=_P(o,r);i&&AC(i,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=Hf(o);return n.current[a]}}),[e,t]);return[r]}const ni={};function jP(e){let{name:t}=e;const n=vt("Form");l.useEffect(()=>{if(t)return ni[t]=(ni[t]||0)+1,n(ni[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{ni[t]-=1}},[t])}var LP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=l.useContext(Hn),{getPrefixCls:r,direction:o,form:a}=l.useContext(He),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:m,labelAlign:v,labelWrap:p,labelCol:h,wrapperCol:g,hideRequiredMark:C,layout:y="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:w,name:x,style:$,feedbackIcons:I,variant:E}=e,R=LP(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Nn(u),N=l.useContext(qm);jP(e);const T=l.useMemo(()=>S!==void 0?S:C?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[C,S,a]),O=m??(a==null?void 0:a.colon),j=r("form",i),D=on(j),[M,F,z]=su(j,D),L=K(j,`${j}-${y}`,{[`${j}-hide-required-mark`]:T===!1,[`${j}-rtl`]:o==="rtl",[`${j}-${P}`]:P},z,D,F,a==null?void 0:a.className,s,c),[_]=bh(f),{__INTERNAL__:B}=_;B.name=x;const k=l.useMemo(()=>({name:x,labelAlign:v,labelCol:h,labelWrap:p,wrapperCol:g,vertical:y==="vertical",colon:O,requiredMark:T,itemRef:B.itemRef,form:_,feedbackIcons:I}),[x,v,h,g,y,O,T,_,I]);l.useImperativeHandle(t,()=>_);const q=(te,U)=>{if(te){let Z={block:"nearest"};typeof te=="object"&&(Z=te),_.scrollToField(U,Z)}},Q=te=>{if(w==null||w(te),te.errorFields.length){const U=te.errorFields[0].name;if(b!==void 0){q(b,U);return}a&&a.scrollToFirstError!==void 0&&q(a.scrollToFirstError,U)}};return M(l.createElement(hg.Provider,{value:E},l.createElement(ac,{disabled:d},l.createElement(zr.Provider,{value:P},l.createElement(pg,{validateMessages:N},l.createElement(lr.Provider,{value:k},l.createElement(Oo,Object.assign({id:x},R,{name:x,onFinishFailed:Q,form:_,style:Object.assign(Object.assign({},a==null?void 0:a.style),$),className:L}))))))))},yh=l.forwardRef(zP);yh.displayName="Form";function BP(e){if(typeof e=="function")return e;const t=cn(e);return t.length<=1?t[0]:t}const Ch=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(rn);return vt("Form.Item")(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus"),{status:e,errors:t,warnings:n}};Ch.Context=rn;function HP(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),a=l.useRef(!1);l.useEffect(()=>(a.current=!1,()=>{a.current=!0,ut.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=ut(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,i]}function kP(){const{itemRef:e}=l.useContext(lr),t=l.useRef({});function n(r,o){const a=o&&typeof o=="object"&&o.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=gn(e(r),a)),t.current.ref}return n}const VP=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},KP=sc(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=vh(e,n);return[VP(r)]}),WP=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,v=`${t}-item`,p=l.useContext(lr),h=r||p.wrapperCol||{},g=K(`${v}-control`,h.className),C=l.useMemo(()=>Object.assign({},p),[p]);delete C.labelCol,delete C.wrapperCol;const y=l.createElement("div",{className:`${v}-control-input`},l.createElement("div",{className:`${v}-control-input-content`},o)),b=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||a.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(xc.Provider,{value:b},l.createElement(gh,{fieldId:d,errors:a,warnings:i,help:u,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:m})),!!f&&l.createElement("div",{style:{width:0,height:f}})):null,w={};d&&(w.id=`${d}_extra`);const x=c?l.createElement("div",Object.assign({},w,{className:`${v}-extra`}),c):null,$=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:y,errorList:S,extra:x}):l.createElement(l.Fragment,null,y,S,x);return l.createElement(lr.Provider,{value:C},l.createElement(nu,Object.assign({},h,{className:g}),$),l.createElement(KP,{prefixCls:t}))};var GP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},qP=function(t,n){return l.createElement(St,ue({},t,{ref:n,icon:GP}))},Sh=l.forwardRef(qP);Sh.displayName="QuestionCircleOutlined";var UP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:s,requiredMark:c,tooltip:u}=e;var d;const[f]=ba("Form"),{vertical:m,labelAlign:v,labelCol:p,labelWrap:h,colon:g}=l.useContext(lr);if(!n)return null;const C=o||p||{},y=a||v,b=`${t}-item-label`,S=K(b,y==="left"&&`${b}-left`,C.className,{[`${b}-wrap`]:!!h});let w=n;const x=i===!0||g!==!1&&i!==!1;x&&!m&&typeof n=="string"&&n.trim()!==""&&(w=n.replace(/[:|:]\s*$/,""));const I=XP(u);if(I){const{icon:N=l.createElement(Sh,null)}=I,T=UP(I,["icon"]),O=l.createElement(Pa,Object.assign({},T),l.cloneElement(N,{className:`${t}-item-tooltip`,title:"",onClick:j=>{j.preventDefault()},tabIndex:null}));w=l.createElement(l.Fragment,null,w,O)}const E=c==="optional",R=typeof c=="function";R?w=c(w,{required:!!s}):E&&!s&&(w=l.createElement(l.Fragment,null,w,l.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=wr.Form)===null||d===void 0?void 0:d.optional))));const P=K({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:E||R,[`${t}-item-no-colon`]:!x});return l.createElement(nu,Object.assign({},C,{className:S}),l.createElement("label",{htmlFor:r,className:P,title:typeof n=="string"?n:""},w))},QP={success:ki,warning:Vi,error:$o,validating:Wr};function xh(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(lr),f=hh(n,r,s,null,!!o,a),{isFormItemInput:m,status:v,hasFeedback:p,feedbackIcon:h}=l.useContext(rn),g=l.useMemo(()=>{var C;let y;if(o){const S=o!==!0&&o.icons||d,w=f&&((C=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||C===void 0?void 0:C[f]),x=f&&QP[f];y=w!==!1&&x?l.createElement("span",{className:K(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},w||l.createElement(x,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return c&&(b.status=(f??v)||"",b.isFormItemInput=m,b.hasFeedback=!!(o??p),b.feedbackIcon=o!==void 0?b.feedbackIcon:h),b},[f,o,c,m,v]);return l.createElement(rn.Provider,{value:g},t)}var ZP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(I&&S.current){const D=getComputedStyle(S.current);P(parseInt(D.marginBottom,10))}},[I,E]);const N=D=>{D||P(null)},O=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const M=D?w:u.errors,F=D?x:u.warnings;return hh(M,F,u,"",!!d,c)}(),j=K(y,n,r,{[`${y}-with-help`]:$||w.length||x.length,[`${y}-has-feedback`]:O&&d,[`${y}-has-success`]:O==="success",[`${y}-has-warning`]:O==="warning",[`${y}-has-error`]:O==="error",[`${y}-is-validating`]:O==="validating",[`${y}-hidden`]:f});return l.createElement("div",{className:j,style:o,ref:S},l.createElement(Up,Object.assign({className:`${y}-row`},Wt(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(YP,Object.assign({htmlFor:v},e,{requiredMark:b,required:p??h,prefixCls:t})),l.createElement(WP,Object.assign({},e,u,{errors:w,warnings:x,prefixCls:t,status:O,help:a,marginBottom:R,onErrorVisibleChanged:N}),l.createElement(gg.Provider,{value:g},l.createElement(xh,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:O},m)))),!!R&&l.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-R}}))}const e2="__SPLIT__";function t2(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const n2=l.memo(e=>{let{children:t}=e;return t},(e,t)=>t2(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function kf(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function r2(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:p,help:h}=e,{getPrefixCls:g}=l.useContext(He),{name:C}=l.useContext(lr),y=BP(c),b=typeof y=="function",S=l.useContext(gg),{validateTrigger:w}=l.useContext(kr),x=v!==void 0?v:w,$=t!=null,I=g("form",a),E=on(I),[R,P,N]=su(I,E),T=vt("Form.Item");T(t!==null,"usage","`null` is passed as `name` property");const O=l.useContext(sa),j=l.useRef(),[D,M]=HP({}),[F,z]=xr(()=>kf()),L=U=>{const Z=O==null?void 0:O.getKey(U.name);if(z(U.destroy?kf():U,!0),n&&h!==!1&&S){let ae=U.name;if(U.destroy)ae=j.current||ae;else if(Z!==void 0){const[J,Y]=Z;ae=[J].concat(ce(Y)),j.current=ae}S(U,ae)}},_=(U,Z)=>{M(ae=>{const J=Object.assign({},ae),re=[].concat(ce(U.name.slice(0,-1)),ce(Z)).join(e2);return U.destroy?delete J[re]:J[re]=U,J})},[B,k]=l.useMemo(()=>{const U=ce(F.errors),Z=ce(F.warnings);return Object.values(D).forEach(ae=>{U.push.apply(U,ce(ae.errors||[])),Z.push.apply(Z,ce(ae.warnings||[]))}),[U,Z]},[D,F.errors,F.warnings]),q=kP();function Q(U,Z,ae){return n&&!p?l.createElement(xh,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:B,warnings:k,noStyle:!0},U):l.createElement(JP,Object.assign({key:"row"},e,{className:K(r,N,E,P),prefixCls:I,fieldId:Z,isRequired:ae,errors:B,warnings:k,meta:F,onSubItemMetaChange:_}),U)}if(!$&&!b&&!o)return R(Q(y));let te={};return typeof d=="string"?te.label=d:t&&(te.label=String(t)),f&&(te=Object.assign(Object.assign({},te),f)),R(l.createElement(Cc,Object.assign({},e,{messageVariables:te,trigger:m,validateTrigger:x,onMetaChange:L}),(U,Z,ae)=>{const J=Uo(t).length&&Z?Z.name:[],Y=ph(J,C),re=u!==void 0?u:!!(s&&s.some(ne=>{if(ne&&typeof ne=="object"&&ne.required&&!ne.warningOnly)return!0;if(typeof ne=="function"){const fe=ne(ae);return fe&&fe.required&&!fe.warningOnly}return!1})),ee=Object.assign({},U);let V=null;if(T(!(i&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(y)&&$)T(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),V=y;else if(b&&(!(i||o)||$))T(!!(i||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),T(!$,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!b&&!$)T(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(l.isValidElement(y)){T(y.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const ne=Object.assign(Object.assign({},y.props),ee);if(ne.id||(ne.id=Y),h||B.length>0||k.length>0||e.extra){const be=[];(h||B.length>0)&&be.push(`${Y}_help`),e.extra&&be.push(`${Y}_extra`),ne["aria-describedby"]=be.join(" ")}B.length>0&&(ne["aria-invalid"]="true"),re&&(ne["aria-required"]="true"),sr(y)&&(ne.ref=q(J,y)),new Set([].concat(ce(Uo(m)),ce(Uo(x)))).forEach(be=>{ne[be]=function(){for(var de,oe,se,$e,Ce,pe=arguments.length,Se=new Array(pe),me=0;me{var{prefixCls:t,children:n}=e,r=o2(e,["prefixCls","children"]);vt("Form.List")(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.");const{getPrefixCls:o}=l.useContext(He),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(dg,Object.assign({},r),(s,c,u)=>l.createElement(xc.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function i2(){const{form:e}=l.useContext(lr);return e}const Er=yh;Er.Item=wh;Er.List=a2;Er.ErrorList=gh;Er.useForm=bh;Er.useFormInstance=i2;Er.useWatch=vg;Er.Provider=pg;Er.create=()=>{ur(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};let Rn=null,Dr=e=>e(),ga=[],pa={};function Vf(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=pa,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const l2=W.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=l.useContext(He),a=pa.prefixCls||o("message"),i=l.useContext(a$),[s,c]=Vv(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return W.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),s2=W.forwardRef((e,t)=>{const[n,r]=W.useState(Vf),o=()=>{r(Vf)};W.useEffect(o,[]);const a=uc(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=W.createElement(l2,{ref:t,sync:o,messageConfig:n});return W.createElement(Kn,{prefixCls:i,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)});function ll(){if(!Rn){const e=document.createDocumentFragment(),t={fragment:e};Rn=t,Dr(()=>{vc(W.createElement(s2,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,ll())})}}),e)});return}Rn.instance&&(ga.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Dr(()=>{const r=Rn.instance.open(Object.assign(Object.assign({},pa),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Dr(()=>{Rn==null||Rn.instance.destroy(e.key)});break;default:Dr(()=>{var r;const o=(r=Rn.instance)[t].apply(r,ce(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ga=[])}function c2(e){pa=Object.assign(Object.assign({},pa),e),Dr(()=>{var t;(t=Rn==null?void 0:Rn.sync)===null||t===void 0||t.call(Rn)})}function u2(e){const t=mc(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return ga.push(o),()=>{r?Dr(()=>{r()}):o.skipped=!0}});return ll(),t}function d2(e,t){uc().holderRender||Ov("message");const r=mc(o=>{let a;const i={type:e,args:t,resolve:o,setCloseFn:s=>{a=s}};return ga.push(i),()=>{a?Dr(()=>{a()}):i.skipped=!0}});return ll(),r}const f2=e=>{ga.push({type:"destroy",key:e}),ll()},m2=["success","info","warning","error","loading"],v2={open:u2,destroy:f2,config:c2,useMessage:oS,_InternalPanelDoNotUseOrYouWillBeFired:YC},g2=v2;m2.forEach(e=>{g2[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:c}=e,u=p2(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(He),f=d(),m=t||d("modal"),v=on(f),[p,h,g]=xg(m,v),C=`${m}-confirm`;let y={};return a?y={closable:o??!1,title:"",footer:"",children:l.createElement($g,Object.assign({},e,{prefixCls:m,confirmPrefixCls:C,rootPrefixCls:f,content:s}))}:y={closable:o??!0,title:i,footer:c!==null&&l.createElement(yg,Object.assign({},e)),children:s},p(l.createElement(bc,Object.assign({prefixCls:m,className:K(h,`${m}-pure-panel`,a&&C,a&&`${C}-${a}`,n,g,v)},u,{closeIcon:bg(m,r),closable:o},y)))},b2=Ag(h2);function $h(e){return Ia(Rg(e))}const Wn=wg;Wn.useModal=o$;Wn.info=function(t){return Ia(Pg(t))};Wn.success=function(t){return Ia(Ng(t))};Wn.error=function(t){return Ia(Mg(t))};Wn.warning=$h;Wn.warn=$h;Wn.confirm=function(t){return Ia(Tg(t))};Wn.destroyAll=function(){for(;Tr.length;){const t=Tr.pop();t&&t()}};Wn.config=Jw;Wn._InternalPanelDoNotUseOrYouWillBeFired=b2;Wn.displayName="Modal";var y2=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Eh=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,v=e.onChange,p=e.onKeyDown,h=We(e,y2),g=Vt(!1,{value:i,defaultValue:s}),C=G(g,2),y=C[0],b=C[1];function S(I,E){var R=y;return c||(R=I,b(R),v==null||v(R,E)),R}function w(I){I.which===ie.LEFT?S(!1,I):I.which===ie.RIGHT&&S(!0,I),p==null||p(I)}function x(I){var E=S(!y,I);m==null||m(E,I)}var $=K(o,a,(n={},A(n,"".concat(o,"-checked"),y),A(n,"".concat(o,"-disabled"),c),n));return l.createElement("button",ue({},h,{type:"button",role:"switch","aria-checked":y,disabled:c,className:$,ref:t,onKeyDown:w,onClick:x}),u,l.createElement("span",{className:"".concat(o,"-inner")},l.createElement("span",{className:"".concat(o,"-inner-checked")},d),l.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Eh.displayName="Switch";const C2=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=X(c(s).add(c(r).mul(2)).equal()),f=X(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:X(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${X(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},S2=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},x2=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${X(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},w2=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,c=`${t}-inner`,u=X(s(i).add(s(r).mul(2)).equal()),d=X(s(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},$2=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ct(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${X(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),aa(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},E2=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,c=a-s*2,u=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Ot("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},I2=Rt("Switch",e=>{const t=ct(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$2(t),w2(t),x2(t),S2(t),C2(t)]},E2);var O2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:v}=e,p=O2(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,g]=Vt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:C,direction:y,switch:b}=l.useContext(He),S=l.useContext(Hn),w=(o??S)||a,x=C("switch",n),$=l.createElement("div",{className:`${x}-handle`},a&&l.createElement(Wr,{className:`${x}-loading-icon`})),[I,E,R]=I2(x),P=Nn(r),N=K(b==null?void 0:b.className,{[`${x}-small`]:P==="small",[`${x}-loading`]:a,[`${x}-rtl`]:y==="rtl"},i,s,E,R),T=Object.assign(Object.assign({},b==null?void 0:b.style),c),O=function(){g(arguments.length<=0?void 0:arguments[0]),v==null||v.apply(void 0,arguments)};return I(l.createElement(Gi,{component:"Switch"},l.createElement(Eh,Object.assign({},p,{checked:h,onChange:O,prefixCls:x,className:N,style:T,disabled:w,ref:t,loadingIcon:$}))))}),Ih=R2;Ih.__ANT_SWITCH=!0;Ih.displayName="Switch";var cu=l.createContext(null),P2=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function pr(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function uu(e){return e.split("-")}function D2(e,t){var n=[],r=vn(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var s=i.key,c=i.children;n.push(s),o(c)})}return o(r.children),n}function F2(e){if(e.parent){var t=uu(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function _2(e){var t=uu(e.pos);return Number(t[t.length-1])===0}function Gf(e,t,n,r,o,a,i,s,c,u){var d,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),p=v.top,h=v.height,g=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),C=(g-12)/r,y=c.filter(function(D){var M;return(M=s[D])===null||M===void 0||(M=M.children)===null||M===void 0?void 0:M.length}),b=vn(s,n.props.eventKey);if(m-1.5?a({dragNode:T,dropNode:O,dropPosition:1})?R=1:j=!1:a({dragNode:T,dropNode:O,dropPosition:0})?R=0:a({dragNode:T,dropNode:O,dropPosition:1})?R=1:j=!1:a({dragNode:T,dropNode:O,dropPosition:1})?R=1:j=!1,{dropPosition:R,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:E,dropContainerKey:R===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:j}}function qf(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Wl(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(De(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return je(!1,"`checkedKeys` is not an array or an object"),null;return t}function Ws(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=vn(t,o);if(a){n.add(o);var i=a.parent,s=a.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),ce(n)}function j2(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return l.createElement("div",{style:o})}function Oh(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function L2(e,t){var n=l.useState(!1),r=G(n,2),o=r[0],a=r[1];mt(function(){if(o)return e(),function(){t()}},[o]),mt(function(){return a(!0),function(){a(!1)}},[])}var z2=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Rh=function(t,n){var r=t.className,o=t.style,a=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=We(t,z2),v=l.useState(!0),p=G(v,2),h=p[0],g=p[1],C=l.useContext(cu),y=C.prefixCls,b=i&&s!=="hide";mt(function(){i&&b!==h&&g(b)},[i]);var S=function(){i&&c()},w=l.useRef(!1),x=function(){i&&!w.current&&(w.current=!0,u())};L2(S,x);var $=function(E){b===E&&x()};return i?l.createElement(Vn,ue({ref:n,visible:h},a,{motionAppear:s==="show",onVisibleChanged:$}),function(I,E){var R=I.className,P=I.style;return l.createElement("div",{ref:E,className:K("".concat(y,"-treenode-motion"),R),style:P},i.map(function(N){var T=Object.assign({},(Oh(N.data),N.data)),O=N.title,j=N.key,D=N.isStart,M=N.isEnd;delete T.children;var F=qo(j,f);return l.createElement(yo,ue({},T,F,{title:O,active:d,data:N.data,key:j,isStart:D,isEnd:M}))}))}):l.createElement(yo,ue({domRef:n,className:r,style:o},m,{active:d}))};Rh.displayName="MotionTreeNode";var B2=l.forwardRef(Rh);function H2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var s=new Map;a.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var Nh=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,p=e.dropPosition,h=e.motion,g=e.height,C=e.itemHeight,y=e.virtual,b=e.focusable,S=e.activeItem,w=e.focused,x=e.tabIndex,$=e.onKeyDown,I=e.onFocus,E=e.onBlur,R=e.onActiveChange,P=e.onListChangeStart,N=e.onListChangeEnd,T=We(e,k2),O=l.useRef(null),j=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(se){O.current.scrollTo(se)},getIndentWidth:function(){return j.current.offsetWidth}}});var D=l.useState(o),M=G(D,2),F=M[0],z=M[1],L=l.useState(r),_=G(L,2),B=_[0],k=_[1],q=l.useState(r),Q=G(q,2),te=Q[0],U=Q[1],Z=l.useState([]),ae=G(Z,2),J=ae[0],Y=ae[1],re=l.useState(null),ee=G(re,2),V=ee[0],ne=ee[1],fe=l.useRef(r);fe.current=r;function ye(){var oe=fe.current;k(oe),U(oe),Y([]),ne(null),N()}mt(function(){z(o);var oe=H2(F,o);if(oe.key!==null)if(oe.add){var se=B.findIndex(function(Fe){var Le=Fe.key;return Le===oe.key}),$e=Qf(Uf(B,r,oe.key),y,g,C),Ce=B.slice();Ce.splice(se+1,0,Yf),U(Ce),Y($e),ne("show")}else{var pe=r.findIndex(function(Fe){var Le=Fe.key;return Le===oe.key}),Se=Qf(Uf(r,B,oe.key),y,g,C),me=r.slice();me.splice(pe+1,0,Yf),U(me),Y(Se),ne("hide")}else B!==r&&(k(r),U(r))},[o,r]),l.useEffect(function(){m||ye()},[m]);var be=h?te:r,de={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:p,keyEntities:d};return l.createElement(l.Fragment,null,w&&S&&l.createElement("span",{style:Xf,"aria-live":"assertive"},K2(S)),l.createElement("div",null,l.createElement("input",{style:Xf,disabled:b===!1||f,tabIndex:b!==!1?x:null,onKeyDown:$,onFocus:I,onBlur:E,value:"",onChange:V2,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),l.createElement(Fc,ue({},T,{data:be,itemKey:Zf,height:g,fullHeight:!1,virtual:y,itemHeight:C,prefixCls:"".concat(n,"-list"),ref:O,onVisibleChange:function(se,$e){var Ce=new Set(se),pe=$e.filter(function(Se){return!Ce.has(Se)});pe.some(function(Se){return Zf(Se)===Vr})&&ye()}}),function(oe){var se=oe.pos,$e=Object.assign({},(Oh(oe.data),oe.data)),Ce=oe.title,pe=oe.key,Se=oe.isStart,me=oe.isEnd,Fe=Aa(pe,se);delete $e.key,delete $e.children;var Le=qo(Fe,de);return l.createElement(B2,ue({},$e,Le,{title:Ce,active:!!S&&pe===S.key,pos:se,data:oe.data,isStart:Se,isEnd:me,motion:h,motionNodes:pe===Vr?J:null,motionType:V,onMotionStart:P,onMotionEnd:ye,treeNodeRequiredProps:de,onMouseMove:function(){R(null)}}))}))});Nh.displayName="NodeList";var W2=10,du=function(e){Yn(n,e);var t=$r(n);function n(){var r;Dt(this,n);for(var o=arguments.length,a=new Array(o),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,p=f.dropTargetKey,h=f.dropTargetPos,g=f.dropAllowed;if(g){var C=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var y=H(H({},qo(p,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===p,data:vn(r.state.keyEntities,p).node}),b=m.indexOf(p)!==-1;je(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=uu(h),w={event:s,node:zt(y),dragNode:r.dragNode?zt(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number(S[S.length-1])};d||C==null||C(w),r.dragNode=null}}}),A(le(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),A(le(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,v=c.key,p=c.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var h=f.filter(function(C){return C.key===v})[0],g=zt(H(H({},qo(v,r.getTreeNodeRequiredProps())),{},{data:h.data}));r.setExpandedKeys(m?Jn(d,v):pr(d,v)),r.onNodeExpand(s,g)}}),A(le(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),A(le(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),A(le(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,v=r.props,p=v.onSelect,h=v.multiple,g=c.selected,C=c[m.key],y=!g;y?h?u=pr(u,C):u=[C]:u=Jn(u,C);var b=u.map(function(S){var w=vn(f,S);return w?w.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:u}),p==null||p(u,{event:"select",selected:y,node:c,selectedNodes:b,nativeEvent:s.nativeEvent})}),A(le(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,v=d.halfCheckedKeys,p=r.props,h=p.checkStrictly,g=p.onCheck,C=c.key,y,b={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(h){var S=u?pr(m,C):Jn(m,C),w=Jn(v,C);y={checked:S,halfChecked:w},b.checkedNodes=S.map(function(P){return vn(f,P)}).filter(function(P){return P}).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=zl([].concat(ce(m),[C]),!0,f),$=x.checkedKeys,I=x.halfCheckedKeys;if(!u){var E=new Set($);E.delete(C);var R=zl(Array.from(E),{checked:!1,halfCheckedKeys:I},f);$=R.checkedKeys,I=R.halfCheckedKeys}y=$,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=I,$.forEach(function(P){var N=vn(f,P);if(N){var T=N.node,O=N.pos;b.checkedNodes.push(T),b.checkedNodesPositions.push({node:T,pos:O})}}),r.setUncontrolledState({checkedKeys:$},!1,{halfCheckedKeys:I})}g==null||g(y,b)}),A(le(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=vn(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(v,p){r.setState(function(h){var g=h.loadedKeys,C=g===void 0?[]:g,y=h.loadingKeys,b=y===void 0?[]:y,S=r.props,w=S.loadData,x=S.onLoad;if(!w||C.indexOf(u)!==-1||b.indexOf(u)!==-1)return null;var $=w(s);return $.then(function(){var I=r.state.loadedKeys,E=pr(I,u);x==null||x(E,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:E}),r.setState(function(R){return{loadingKeys:Jn(R.loadingKeys,u)}}),v()}).catch(function(I){if(r.setState(function(R){return{loadingKeys:Jn(R.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=W2){var E=r.state.loadedKeys;je(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:pr(E,u)}),v()}p(I)}),{loadingKeys:pr(b,u)}})});return m.catch(function(){}),m}}),A(le(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),A(le(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),A(le(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),A(le(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d