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(i.current),o.current=!1):(!f||o.current)&&l(),!o.current&&f}};function jE(e,t,r,n,o,i,l){var s=a.useRef(0),c=a.useRef(null),u=a.useRef(null),d=a.useRef(!1),f=E3(t,r,n,o);function m(b,y){if(kt.cancel(c.current),!f(!1,y)){var S=b;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=y,u.current=y,lv||S.preventDefault(),c.current=kt(function(){var x=d.current?10:1;l(s.current*x,!1),s.current=0})}}function g(b,y){l(y,!0),lv||b.preventDefault()}var p=a.useRef(null),h=a.useRef(null);function v(b){if(e){kt.cancel(h.current),h.current=kt(function(){p.current=null},2);var y=b.deltaX,S=b.deltaY,x=b.shiftKey,$=y,w=S;(p.current==="sx"||!p.current&&x&&S&&!y)&&($=S,w=0,p.current="sx");var I=Math.abs($),E=Math.abs(w);p.current===null&&(p.current=i&&I>E?"x":"y"),p.current==="y"?m(b,w):g(b,$)}}function C(b){e&&(d.current=b.detail===u.current)}return[v,C]}function BE(e,t,r,n){var o=a.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=ie(o,2),l=i[0],s=i[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=l.get(d),g=l.get(f);if(m===void 0||g===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(v,C){if(v&&v.offsetParent){var b=Ps(v),y=b.offsetHeight;c.current.get(C)!==y&&c.current.set(C,b.offsetHeight)}}),l(function(v){return v+1})};g?p():u.current=kt(p)}function m(g,p){var h=e(g),v=s.current.get(h);p?(s.current.set(h,p),f()):s.current.delete(h),!v!=!p&&(p?t==null||t(g):r==null||r(g))}return a.useEffect(function(){return d},[]),[m,f,c.current,i]}var sv=14/15;function AE(e,t,r){var n=a.useRef(!1),o=a.useRef(0),i=a.useRef(0),l=a.useRef(null),s=a.useRef(null),c,u=function(g){if(n.current){var p=Math.ceil(g.touches[0].pageX),h=Math.ceil(g.touches[0].pageY),v=o.current-p,C=i.current-h,b=Math.abs(v)>Math.abs(C);b?o.current=p:i.current=h;var y=r(b,b?v:C,!1,g);y&&g.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){b?v*=sv:C*=sv;var S=Math.floor(b?v:C);(!r(b,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},d=function(){n.current=!1,c()},f=function(g){c(),g.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(g.touches[0].pageX),i.current=Math.ceil(g.touches[0].pageY),l.current=g.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};c=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},Dt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}var VE=10;function WE(e,t,r,n,o,i,l,s){var c=a.useRef(),u=a.useState(null),d=ie(u,2),f=d[0],m=d[1];return Dt(function(){if(f&&f.times=0;P-=1){var T=o(t[P]),_=r.get(T);if(_===void 0){b=!0;break}if(L-=_,L<=0)break}switch(x){case"top":S=w-v;break;case"bottom":S=I-C+v;break;default:{var R=e.current.scrollTop,D=R+C;wD&&(y="bottom")}}S!==null&&l(S),S!==f.lastTop&&(b=!0)}b&&m(q(q({},f),{},{times:f.times+1,targetAlign:y,lastTop:S}))}},[f,e.current]),function(g){if(g==null){s();return}if(kt.cancel(c.current),typeof g=="number")l(g);else if(g&&yt(g)==="object"){var p,h=g.align;"index"in g?p=g.index:p=t.findIndex(function(b){return o(b)===g.key});var v=g.offset,C=v===void 0?0:v;m({times:0,index:p,offset:C,originAlign:h})}}}function cv(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]}var uv=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,o=e.scrollOffset,i=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,g=e.thumbStyle,p=a.useState(!1),h=ie(p,2),v=h[0],C=h[1],b=a.useState(null),y=ie(b,2),S=y[0],x=y[1],$=a.useState(null),w=ie($,2),I=w[0],E=w[1],O=!n,M=a.useRef(),N=a.useRef(),L=a.useState(!1),P=ie(L,2),T=P[0],_=P[1],R=a.useRef(),D=function(){clearTimeout(R.current),_(!0),R.current=setTimeout(function(){_(!1)},3e3)},k=i-f||0,H=f-d||0,j=a.useMemo(function(){if(o===0||k===0)return 0;var te=o/k;return te*H},[o,k,H]),V=function(U){U.stopPropagation(),U.preventDefault()},A=a.useRef({top:j,dragging:v,pageY:S,startTop:I});A.current={top:j,dragging:v,pageY:S,startTop:I};var K=function(U){C(!0),x(cv(U,u)),E(A.current.top),l(),U.stopPropagation(),U.preventDefault()};a.useEffect(function(){var te=function(Y){Y.preventDefault()},U=M.current,ne=N.current;return U.addEventListener("touchstart",te,{passive:!1}),ne.addEventListener("touchstart",K,{passive:!1}),function(){U.removeEventListener("touchstart",te),ne.removeEventListener("touchstart",K)}},[]);var W=a.useRef();W.current=k;var J=a.useRef();J.current=H,a.useEffect(function(){if(v){var te,U=function(Y){var oe=A.current,se=oe.dragging,ae=oe.pageY,re=oe.startTop;kt.cancel(te);var ce=M.current.getBoundingClientRect(),ue=f/(u?ce.width:ce.height);if(se){var fe=(cv(Y,u)-ae)*ue,be=re;!O&&u?be-=fe:be+=fe;var de=W.current,he=J.current,Se=he?be/he:0,$e=Math.ceil(Se*de);$e=Math.max($e,0),$e=Math.min($e,de),te=kt(function(){c($e,u)})}},ne=function(){C(!1),s()};return window.addEventListener("mousemove",U,{passive:!0}),window.addEventListener("touchmove",U,{passive:!0}),window.addEventListener("mouseup",ne,{passive:!0}),window.addEventListener("touchend",ne,{passive:!0}),function(){window.removeEventListener("mousemove",U),window.removeEventListener("touchmove",U),window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),kt.cancel(te)}}},[v]),a.useEffect(function(){return D(),function(){clearTimeout(R.current)}},[o]),a.useImperativeHandle(t,function(){return{delayHidden:D}});var X="".concat(r,"-scrollbar"),Q={position:"absolute",visibility:T?null:"hidden"},ee={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,ee.height="100%",ee.width=d,O?ee.left=j:ee.right=j):(Q.width=8,Q.top=0,Q.bottom=0,O?Q.right=0:Q.left=0,ee.width="100%",ee.height=d,ee.top=j),a.createElement("div",{ref:M,className:G(X,F(F(F({},"".concat(X,"-horizontal"),u),"".concat(X,"-vertical"),!u),"".concat(X,"-visible"),T)),style:q(q({},Q),m),onMouseDown:V,onMouseMove:D},a.createElement("div",{ref:N,className:G("".concat(X,"-thumb"),F({},"".concat(X,"-thumb-moving"),v)),style:q(q({},ee),g),onMouseDown:K}))}),KE=20;function dv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,KE),Math.floor(r)}var qE=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],GE=[],XE={overflowY:"auto",overflowAnchor:"none"};function UE(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,l=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,g=e.virtual,p=e.direction,h=e.scrollWidth,v=e.component,C=v===void 0?"div":v,b=e.onScroll,y=e.onVirtualScroll,S=e.onVisibleChange,x=e.innerProps,$=e.extraRender,w=e.styles,I=ut(e,qE),E=a.useCallback(function(et){return typeof m=="function"?m(et):et==null?void 0:et[m]},[m]),O=FE(E,null,null),M=ie(O,4),N=M[0],L=M[1],P=M[2],T=M[3],_=!!(g!==!1&&i&&l),R=a.useMemo(function(){return Object.values(P.maps).reduce(function(et,rt){return et+rt},0)},[P.id,P.maps]),D=_&&d&&(Math.max(l*d.length,R)>i||!!h),k=p==="rtl",H=G(n,F({},"".concat(n,"-rtl"),k),o),j=d||GE,V=a.useRef(),A=a.useRef(),K=a.useRef(),W=a.useState(0),J=ie(W,2),X=J[0],Q=J[1],ee=a.useState(0),te=ie(ee,2),U=te[0],ne=te[1],Z=a.useState(!1),Y=ie(Z,2),oe=Y[0],se=Y[1],ae=function(){se(!0)},re=function(){se(!1)},ce={getKey:E};function ue(et){Q(function(rt){var Ae;typeof et=="function"?Ae=et(rt):Ae=et;var He=Le(Ae);return V.current.scrollTop=He,He})}var fe=a.useRef({start:0,end:j.length}),be=a.useRef(),de=HE(j,E),he=ie(de,1),Se=he[0];be.current=Se;var $e=a.useMemo(function(){if(!_)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!D){var et;return{scrollHeight:((et=A.current)===null||et===void 0?void 0:et.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var rt=0,Ae,He,st,bt=j.length,Nt=0;Nt=X&&Ae===void 0&&(Ae=Nt,He=rt),Gt>X+i&&st===void 0&&(st=Nt),rt=Gt}return Ae===void 0&&(Ae=0,He=0,st=Math.ceil(i/l)),st===void 0&&(st=j.length-1),st=Math.min(st+1,j.length-1),{scrollHeight:rt,start:Ae,end:st,offset:He}},[D,_,X,j,T,i]),Ne=$e.scrollHeight,xe=$e.start,Pe=$e.end,Ie=$e.offset;fe.current.start=xe,fe.current.end=Pe;var _e=a.useState({width:0,height:i}),Re=ie(_e,2),Me=Re[0],me=Re[1],Ce=function(rt){me({width:rt.offsetWidth,height:rt.offsetHeight})},pe=a.useRef(),ge=a.useRef(),Oe=a.useMemo(function(){return dv(Me.width,h)},[Me.width,h]),nt=a.useMemo(function(){return dv(Me.height,Ne)},[Me.height,Ne]),Ve=Ne-i,Ze=a.useRef(Ve);Ze.current=Ve;function Le(et){var rt=et;return Number.isNaN(Ze.current)||(rt=Math.min(rt,Ze.current)),rt=Math.max(rt,0),rt}var Ke=X<=0,Qe=X>=Ve,ot=U<=0,Xe=U>=h,We=E3(Ke,Qe,ot,Xe),je=function(){return{x:k?-U:U,y:X}},at=a.useRef(je()),Te=$t(function(et){if(y){var rt=q(q({},je()),et);(at.current.x!==rt.x||at.current.y!==rt.y)&&(y(rt),at.current=rt)}});function Ue(et,rt){var Ae=et;rt?(ao.flushSync(function(){ne(Ae)}),Te()):ue(Ae)}function De(et){var rt=et.currentTarget.scrollTop;rt!==X&&ue(rt),b==null||b(et),Te()}var ze=function(rt){var Ae=rt,He=h?h-Me.width:0;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,He),Ae},Je=$t(function(et,rt){rt?(ao.flushSync(function(){ne(function(Ae){var He=Ae+(k?-et:et);return ze(He)})}),Te()):ue(function(Ae){var He=Ae+et;return He})}),dt=jE(_,Ke,Qe,ot,Xe,!!h,Je),it=ie(dt,2),qe=it[0],Fe=it[1];AE(_,V,function(et,rt,Ae,He){var st=He;return We(et,rt,Ae)?!1:!st||!st._virtualHandled?(st&&(st._virtualHandled=!0),qe({preventDefault:function(){},deltaX:et?rt:0,deltaY:et?0:rt}),!0):!1}),Dt(function(){function et(Ae){var He=Ke&&Ae.detail<0,st=Qe&&Ae.detail>0;_&&!He&&!st&&Ae.preventDefault()}var rt=V.current;return rt.addEventListener("wheel",qe,{passive:!1}),rt.addEventListener("DOMMouseScroll",Fe,{passive:!0}),rt.addEventListener("MozMousePixelScroll",et,{passive:!1}),function(){rt.removeEventListener("wheel",qe),rt.removeEventListener("DOMMouseScroll",Fe),rt.removeEventListener("MozMousePixelScroll",et)}},[_,Ke,Qe]),Dt(function(){if(h){var et=ze(U);ne(et),Te({x:et})}},[Me.width,h]);var Ge=function(){var rt,Ae;(rt=pe.current)===null||rt===void 0||rt.delayHidden(),(Ae=ge.current)===null||Ae===void 0||Ae.delayHidden()},Ye=WE(V,j,P,l,E,function(){return L(!0)},ue,Ge);a.useImperativeHandle(t,function(){return{nativeElement:K.current,getScrollInfo:je,scrollTo:function(rt){function Ae(He){return He&&yt(He)==="object"&&("left"in He||"top"in He)}Ae(rt)?(rt.left!==void 0&&ne(ze(rt.left)),Ye(rt.top)):Ye(rt)}}}),Dt(function(){if(S){var et=j.slice(xe,Pe+1);S(et,j)}},[xe,Pe,j]);var tt=BE(j,E,P,l),mt=$==null?void 0:$({start:xe,end:Pe,virtual:D,offsetX:U,offsetY:Ie,rtl:k,getSize:tt}),lt=DE(j,xe,Pe,h,U,N,f,ce),ft=null;i&&(ft=q(F({},c?"height":"maxHeight",i),XE),_&&(ft.overflowY="hidden",h&&(ft.overflowX="hidden"),oe&&(ft.pointerEvents="none")));var gt={};return k&&(gt.dir="rtl"),a.createElement("div",ve({ref:K,style:q(q({},u),{},{position:"relative"}),className:H},gt,I),a.createElement(Nn,{onResize:Ce},a.createElement(C,{className:"".concat(n,"-holder"),style:ft,ref:V,onScroll:De,onMouseEnter:Ge},a.createElement(w3,{prefixCls:n,height:Ne,offsetX:U,offsetY:Ie,scrollWidth:h,onInnerResize:L,ref:A,innerProps:x,rtl:k,extra:mt},lt))),D&&Ne>i&&a.createElement(uv,{ref:pe,prefixCls:n,scrollOffset:X,scrollRange:Ne,rtl:k,onScroll:Ue,onStartMove:ae,onStopMove:re,spinSize:nt,containerSize:Me.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb}),D&&h>Me.width&&a.createElement(uv,{ref:ge,prefixCls:n,scrollOffset:U,scrollRange:h,rtl:k,onScroll:Ue,onStartMove:ae,onStopMove:re,spinSize:Oe,containerSize:Me.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb}))}var Hl=a.forwardRef(UE);Hl.displayName="List";function YE(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ZE=["disabled","title","children","style","className"];function fv(e){return typeof e=="string"||typeof e=="number"}var QE=function(t,r){var n=hm(),o=n.prefixCls,i=n.id,l=n.open,s=n.multiple,c=n.mode,u=n.searchValue,d=n.toggleOpen,f=n.notFoundContent,m=n.onPopupScroll,g=a.useContext(Cm),p=g.maxCount,h=g.flattenOptions,v=g.onActiveValue,C=g.defaultActiveFirstOption,b=g.onSelect,y=g.menuItemSelectedIcon,S=g.rawValues,x=g.fieldNames,$=g.virtual,w=g.direction,I=g.listHeight,E=g.listItemHeight,O=g.optionRender,M="".concat(o,"-item"),N=Ml(function(){return h},[l,h],function(te,U){return U[0]&&te[1]!==U[1]}),L=a.useRef(null),P=a.useMemo(function(){return s&&p1(p)&&(S==null?void 0:S.size)>=p},[s,p,S==null?void 0:S.size]),T=function(U){U.preventDefault()},_=function(U){var ne;(ne=L.current)===null||ne===void 0||ne.scrollTo(typeof U=="number"?{index:U}:U)},R=function(U){for(var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Z=N.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;j(U);var Z={source:ne?"keyboard":"mouse"},Y=N[U];if(!Y){v(null,-1,Z);return}v(Y.value,U,Z)};a.useEffect(function(){V(C!==!1?R(0):-1)},[N.length,u]);var A=a.useCallback(function(te){return S.has(te)&&c!=="combobox"},[c,ye(S).toString(),S.size]);a.useEffect(function(){var te=setTimeout(function(){if(!s&&l&&S.size===1){var ne=Array.from(S)[0],Z=N.findIndex(function(Y){var oe=Y.data;return oe.value===ne});Z!==-1&&(V(Z),_(Z))}});if(l){var U;(U=L.current)===null||U===void 0||U.scrollTo(void 0)}return function(){return clearTimeout(te)}},[l,u]);var K=function(U){U!==void 0&&b(U,{selected:!S.has(U)}),s||d(!1)};if(a.useImperativeHandle(r,function(){return{onKeyDown:function(U){var ne=U.which,Z=U.ctrlKey;switch(ne){case we.N:case we.P:case we.UP:case we.DOWN:{var Y=0;if(ne===we.UP?Y=-1:ne===we.DOWN?Y=1:YE()&&Z&&(ne===we.N?Y=1:ne===we.P&&(Y=-1)),Y!==0){var oe=R(H+Y,Y);_(oe),V(oe,!0)}break}case we.ENTER:{var se,ae=N[H];ae&&!(ae!=null&&(se=ae.data)!==null&&se!==void 0&&se.disabled)&&!P?K(ae.value):K(void 0),l&&U.preventDefault();break}case we.ESC:d(!1),l&&U.stopPropagation()}},onKeyUp:function(){},scrollTo:function(U){_(U)}}}),N.length===0)return a.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:T},f);var W=Object.keys(x).map(function(te){return x[te]}),J=function(U){return U.label};function X(te,U){var ne=te.group;return{role:ne?"presentation":"option",id:"".concat(i,"_list_").concat(U)}}var Q=function(U){var ne=N[U];if(!ne)return null;var Z=ne.data||{},Y=Z.value,oe=ne.group,se=en(Z,!0),ae=J(ne);return ne?a.createElement("div",ve({"aria-label":typeof ae=="string"&&!oe?ae:null},se,{key:U},X(ne,U),{"aria-selected":A(Y)}),Y):null},ee={role:"listbox",id:"".concat(i,"_list")};return a.createElement(a.Fragment,null,$&&a.createElement("div",ve({},ee,{style:{height:0,width:0,overflow:"hidden"}}),Q(H-1),Q(H),Q(H+1)),a.createElement(Hl,{itemKey:"key",ref:L,data:N,height:I,itemHeight:E,fullHeight:!1,onMouseDown:T,onScroll:m,virtual:$,direction:w,innerProps:$?null:ee},function(te,U){var ne=te.group,Z=te.groupOption,Y=te.data,oe=te.label,se=te.value,ae=Y.key;if(ne){var re,ce=(re=Y.title)!==null&&re!==void 0?re:fv(oe)?oe.toString():void 0;return a.createElement("div",{className:G(M,"".concat(M,"-group"),Y.className),title:ce},oe!==void 0?oe:ae)}var ue=Y.disabled,fe=Y.title;Y.children;var be=Y.style,de=Y.className,he=ut(Y,ZE),Se=Xt(he,W),$e=A(se),Ne=ue||!$e&&P,xe="".concat(M,"-option"),Pe=G(M,xe,de,F(F(F(F({},"".concat(xe,"-grouped"),Z),"".concat(xe,"-active"),H===U&&!Ne),"".concat(xe,"-disabled"),Ne),"".concat(xe,"-selected"),$e)),Ie=J(te),_e=!y||typeof y=="function"||$e,Re=typeof Ie=="number"?Ie:Ie||se,Me=fv(Re)?Re.toString():void 0;return fe!==void 0&&(Me=fe),a.createElement("div",ve({},en(Se),$?{}:X(te,U),{"aria-selected":$e,className:Pe,title:Me,onMouseMove:function(){H===U||Ne||V(U)},onClick:function(){Ne||K(se)},style:be}),a.createElement("div",{className:"".concat(xe,"-content")},typeof O=="function"?O(te,{index:U}):Re),a.isValidElement(y)||$e,_e&&a.createElement(Hc,{className:"".concat(M,"-option-state"),customizeIcon:y,customizeIconProps:{value:se,disabled:Ne,isSelected:$e}},$e?"✓":null))}))},JE=a.forwardRef(QE);const eI=function(e,t){var r=a.useRef({values:new Map,options:new Map}),n=a.useMemo(function(){var i=r.current,l=i.values,s=i.options,c=e.map(function(f){if(f.label===void 0){var m;return q(q({},f),{},{label:(m=l.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))}),r.current.values=u,r.current.options=d,c},[e,t]),o=a.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,o]};function Qu(e,t){return S3(e).join("").toUpperCase().includes(t)}const tI=function(e,t,r,n,o){return a.useMemo(function(){if(!r||n===!1)return e;var i=t.options,l=t.label,s=t.value,c=[],u=typeof n=="function",d=r.toUpperCase(),f=u?n:function(g,p){return o?Qu(p[o],d):p[i]?Qu(p[l!=="children"?l:"label"],d):Qu(p[s],d)},m=u?function(g){return h1(g)}:function(g){return g};return e.forEach(function(g){if(g[i]){var p=f(r,m(g));if(p)c.push(g);else{var h=g[i].filter(function(v){return f(r,m(v))});h.length&&c.push(q(q({},g),{},F({},i,h)))}return}f(r,m(g))&&c.push(g)}),c},[e,n,o,r,t])};var mv=0,nI=oo();function rI(){var e;return nI?(e=mv,mv+=1):e="TEST_OR_SSR",e}function xm(e){var t=a.useState(),r=ie(t,2),n=r[0],o=r[1];return a.useEffect(function(){o("rc_select_".concat(rI()))},[]),e||n}var oI=["children","value"],aI=["children"];function iI(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value,l=ut(n,oI);return q({key:r,value:i!==void 0?i:r,children:o},l)}function I3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return sn(e).map(function(r,n){if(!a.isValidElement(r)||!r.type)return null;var o=r,i=o.type.isSelectOptGroup,l=o.key,s=o.props,c=s.children,u=ut(s,aI);return t||!i?iI(r):q(q({key:"__RC_SELECT_GRP__".concat(l===null?n:l,"__"),label:l},u),{},{options:I3(c)})}).filter(function(r){return r})}var lI=function(t,r,n,o,i){return a.useMemo(function(){var l=t,s=!t;s&&(l=I3(r));var c=new Map,u=new Map,d=function(g,p,h){h&&typeof h=="string"&&g.set(p[h],p)},f=function m(g){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h0?De(dt.options):dt.options}):dt})},Me=a.useMemo(function(){return b?Re(_e):_e},[_e,b,te]),me=a.useMemo(function(){return NE(Me,{fieldNames:X,childrenAsData:W})},[Me,X,W]),Ce=function(ze){var Je=se(ze);if(ue(Je),H&&(Je.length!==he.length||Je.some(function(qe,Fe){var Ge;return((Ge=he[Fe])===null||Ge===void 0?void 0:Ge.value)!==(qe==null?void 0:qe.value)}))){var dt=k?Je:Je.map(function(qe){return qe.value}),it=Je.map(function(qe){return h1(Se(qe.value))});H(K?dt:dt[0],K?it:it[0])}},pe=a.useState(null),ge=ie(pe,2),Oe=ge[0],nt=ge[1],Ve=a.useState(0),Ze=ie(Ve,2),Le=Ze[0],Ke=Ze[1],Qe=I!==void 0?I:n!=="combobox",ot=a.useCallback(function(De,ze){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dt=Je.source,it=dt===void 0?"keyboard":dt;Ke(ze),l&&n==="combobox"&&De!==null&&it==="keyboard"&&nt(String(De))},[l,n]),Xe=function(ze,Je,dt){var it=function(){var et,rt=Se(ze);return[k?{label:rt==null?void 0:rt[X.label],value:ze,key:(et=rt==null?void 0:rt.key)!==null&&et!==void 0?et:ze}:ze,h1(rt)]};if(Je&&g){var qe=it(),Fe=ie(qe,2),Ge=Fe[0],Ye=Fe[1];g(Ge,Ye)}else if(!Je&&p&&dt!=="clear"){var tt=it(),mt=ie(tt,2),lt=mt[0],ft=mt[1];p(lt,ft)}},We=gv(function(De,ze){var Je,dt=K?ze.selected:!0;dt?Je=K?[].concat(ye(he),[De]):[De]:Je=he.filter(function(it){return it.value!==De}),Ce(Je),Xe(De,dt),n==="combobox"?nt(""):(!C1||m)&&(U(""),nt(""))}),je=function(ze,Je){Ce(ze);var dt=Je.type,it=Je.values;(dt==="remove"||dt==="clear")&&it.forEach(function(qe){Xe(qe.value,!1,dt)})},at=function(ze,Je){if(U(ze),nt(null),Je.source==="submit"){var dt=(ze||"").trim();if(dt){var it=Array.from(new Set([].concat(ye(Ne),[dt])));Ce(it),Xe(dt,!0),U("")}return}Je.source!=="blur"&&(n==="combobox"&&Ce(ze),d==null||d(ze))},Te=function(ze){var Je=ze;n!=="tags"&&(Je=ze.map(function(it){var qe=Y.get(it);return qe==null?void 0:qe.value}).filter(function(it){return it!==void 0}));var dt=Array.from(new Set([].concat(ye(Ne),ye(Je))));Ce(dt),dt.forEach(function(it){Xe(it,!0)})},Ue=a.useMemo(function(){var De=O!==!1&&v!==!1;return q(q({},ne),{},{flattenOptions:me,onActiveValue:ot,defaultActiveFirstOption:Qe,onSelect:We,menuItemSelectedIcon:E,rawValues:Ne,fieldNames:X,virtual:De,direction:M,listHeight:L,listItemHeight:T,childrenAsData:W,maxCount:j,optionRender:$})},[j,ne,me,ot,Qe,We,E,Ne,X,O,v,M,L,T,W,$]);return a.createElement(Cm.Provider,{value:Ue},a.createElement(bm,ve({},V,{id:A,prefixCls:i,ref:t,omitDomProps:cI,mode:n,displayValues:$e,onDisplayValuesChange:je,direction:M,searchValue:te,onSearch:at,autoClearSearchValue:m,onSearchSplit:Te,dropdownMatchSelectWidth:v,OptionList:JE,emptyOptions:!me.length,activeValue:Oe,activeDescendantId:"".concat(A,"_list_").concat(Le)})))}),$m=dI;$m.Option=Sm;$m.OptGroup=ym;function vr(e,t,r){return G({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const qr=(e,t)=>t||e,fI=()=>{const[,e]=An(),r=new Qt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,"empty image"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.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"}),a.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)"}),a.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"}),a.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"})),a.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"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},mI=fI,gI=()=>{const[,e]=An(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:s}=a.useMemo(()=>({borderColor:new Qt(t).onBackground(o).toHexShortString(),shadowColor:new Qt(r).onBackground(o).toHexShortString(),contentColor:new Qt(n).onBackground(o).toHexShortString()}),[t,r,n,o]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,"Simple Empty"),a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:i},a.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"}),a.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}))))},vI=gI,pI=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hI=Ot("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,o=xt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[pI(o)]});var CI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:r,prefixCls:n,image:o=O3,description:i,children:l,imageStyle:s,style:c}=e,u=CI(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=a.useContext(ke),g=d("empty",n),[p,h,v]=hI(g),[C]=Dn("Empty"),b=typeof i!="undefined"?i:C==null?void 0:C.description,y=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=a.createElement("img",{alt:y,src:o}):S=o,p(a.createElement("div",Object.assign({className:G(h,v,g,m==null?void 0:m.className,{[`${g}-normal`]:o===M3,[`${g}-rtl`]:f==="rtl"},t,r),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),a.createElement("div",{className:`${g}-image`,style:s},S),b&&a.createElement("div",{className:`${g}-description`},b),l&&a.createElement("div",{className:`${g}-footer`},l)))};wr.PRESENTED_IMAGE_DEFAULT=O3;wr.PRESENTED_IMAGE_SIMPLE=M3;const bI=e=>{const{componentName:t}=e,{getPrefixCls:r}=a.useContext(ke),n=r("empty");switch(t){case"Table":case"List":return B.createElement(wr,{image:wr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return B.createElement(wr,{image:wr.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return B.createElement(wr,null)}},Qo=bI,ho=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,o;const{variant:i,[e]:l}=a.useContext(ke),s=a.useContext(A5),c=l==null?void 0:l.variant;let u;typeof t!="undefined"?u=t:r===!1?u="borderless":u=(o=(n=s!=null?s:c)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";const d=l8.includes(u);return[u,d]},yI=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function wm(e,t){return e||yI(t)}const vv=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},SI=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},Mt(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,
+ ${i}${s}bottomLeft
+ `]:{animationName:_c},[`
+ ${o}${s}topLeft,
+ ${i}${s}topLeft,
+ ${o}${s}topRight,
+ ${i}${s}topRight
+ `]:{animationName:Lc},[`${l}${s}bottomLeft`]:{animationName:Tc},[`
+ ${l}${s}topLeft,
+ ${l}${s}topRight
+ `]:{animationName:Dc},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},vv(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"},Rn),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${n}-option-selected:not(${n}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${n}-option-selected:not(${n}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${n}-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({},vv(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},io(e,"slide-up"),io(e,"slide-down"),ti(e,"move-up"),ti(e,"move-down")]},N3=e=>{const{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(r).sub(n).equal(),0),l=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:l,itemHeight:z(t),itemLineHeight:z(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},xI=e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},P3=e=>{const{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:l,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:n,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},gi()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},$I=(e,t)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,l=xI(e),s=t?`${r}-${t}`:"",c=N3(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},P3(e)),{[`${r}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${z(n)} 0`,lineHeight:z(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:c.itemHeight,lineHeight:z(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${r}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:z(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ju(e,t){const{componentCls:r}=e,n=t?`${r}-${t}`:"",o={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`
+ &${r}-show-arrow ${r}-selector,
+ &${r}-allow-clear ${r}-selector
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[$I(e,t),o]}const wI=e=>{const{componentCls:t}=e,r=xt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=xt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ju(e),Ju(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ju(n,"lg")]};function ed(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${r}-${t}`:"";return{[`${r}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},Mt(e,!0)),{display:"flex",borderRadius:o,[`${r}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
+ ${r}-selection-item,
+ ${r}-selection-placeholder
+ `]:{padding:0,lineHeight:z(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
+ &${r}-show-arrow ${r}-selection-item,
+ &${r}-show-arrow ${r}-selection-placeholder
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",padding:`0 ${z(n)}`,[`${r}-selection-search-input`]:{height:i},"&:after":{lineHeight:z(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${z(n)}`,"&:after":{display:"none"}}}}}}}function EI(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ed(e),ed(xt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:r,insetInlineEnd:r},[`${t}-selector`]:{padding:`0 ${z(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).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()}}}},ed(xt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const II=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:i,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:g,colorBgContainer:p,colorFillSecondary:h,colorBgContainerDisabled:v,colorTextDisabled:C}=e,b=s*2,y=n*2,S=Math.min(o-b,o-y),x=Math.min(i-b,i-y),$=Math.min(l-b,l-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:g,optionPadding:`${(o-t*r)/2}px ${c}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:l,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:x,multipleItemHeightLG:$,multipleSelectorBgDisabled:v,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},R3=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${z(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${z(o)} ${t.activeShadowColor}`,outline:0}}}},pv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},R3(e,t))}),OI=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},R3(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),pv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),pv(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:`${z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),_3=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${z(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},hv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},_3(e,t))}),MI=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},_3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),hv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),hv(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:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),NI=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:`${z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),PI=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},OI(e)),MI(e)),NI(e))}),RI=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"}}}},_I=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"}}}},TI=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[r]:Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},RI(e)),_I(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Rn),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Rn),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},gi()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,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(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,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 ${r}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}},LI=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},TI(e),EI(e),wI(e),SI(e),{[`${t}-rtl`]:{direction:"rtl"}},Sa(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Em=Ot("Select",(e,t)=>{let{rootPrefixCls:r}=t;const n=xt(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[LI(n),PI(n)]},II,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var DI={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"};const kI=DI;var HI=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:kI}))},jI=a.forwardRef(HI);const jc=jI;var BI={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"};const zI=BI;var FI=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:zI}))},AI=a.forwardRef(FI);const jl=AI;var VI={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"};const WI=VI;var KI=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:WI}))},qI=a.forwardRef(KI);const Bc=qI;function zc(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:n,removeIcon:o,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const g=r!=null?r:a.createElement(Mo,null),p=b=>t===null&&!s&&!f?null:a.createElement(a.Fragment,null,u!==!1&&b,s&&d);let h=null;if(t!==void 0)h=p(t);else if(i)h=p(a.createElement(Fr,{spin:!0}));else{const b=`${c}-suffix`;h=y=>{let{open:S,showSearch:x}=y;return p(S&&x?a.createElement(Bc,{className:b}):a.createElement(jl,{className:b}))}}let v=null;n!==void 0?v=n:l?v=a.createElement(jc,null):v=null;let C=null;return o!==void 0?C=o:C=a.createElement(Cr,null),{clearIcon:g,suffixIcon:h,itemIcon:v,removeIcon:C}}function Im(e,t){return t!==void 0?t:e!==null}var GI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,bordered:o,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:g,disabled:p,notFoundContent:h,status:v,builtinPlacements:C,dropdownMatchSelectWidth:b,popupMatchSelectWidth:y,direction:S,style:x,allowClear:$,variant:w,dropdownStyle:I,transitionName:E,tagRender:O,maxCount:M}=e,N=GI(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:L,getPrefixCls:P,renderEmpty:T,direction:_,virtual:R,popupMatchSelectWidth:D,popupOverflow:k,select:H}=a.useContext(ke),[,j]=An(),V=m!=null?m:j==null?void 0:j.controlHeight,A=P("select",n),K=P(),W=S!=null?S:_,{compactSize:J,compactItemClassnames:X}=Kr(A,W),[Q,ee]=ho("select",w,o),te=Ut(A),[U,ne,Z]=Em(A,te),Y=a.useMemo(()=>{const{mode:ge}=e;if(ge!=="combobox")return ge===T3?"combobox":ge},[e.mode]),oe=Y==="multiple"||Y==="tags",se=Im(e.suffixIcon,e.showArrow),ae=(r=y!=null?y:b)!==null&&r!==void 0?r:D,{status:re,hasFeedback:ce,isFormItemInput:ue,feedbackIcon:fe}=a.useContext(dn),be=qr(re,v);let de;h!==void 0?de=h:Y==="combobox"?de=null:de=(T==null?void 0:T("Select"))||a.createElement(Qo,{componentName:"Select"});const{suffixIcon:he,itemIcon:Se,removeIcon:$e,clearIcon:Ne}=zc(Object.assign(Object.assign({},N),{multiple:oe,hasFeedback:ce,feedbackIcon:fe,showSuffixIcon:se,prefixCls:A,componentName:"Select"})),xe=$===!0?{clearIcon:Ne}:$,Pe=Xt(N,["suffixIcon","itemIcon"]),Ie=G(c||u,{[`${A}-dropdown-${W}`]:W==="rtl"},l,Z,te,ne),_e=un(ge=>{var Oe;return(Oe=g!=null?g:J)!==null&&Oe!==void 0?Oe:ge}),Re=a.useContext(Fn),Me=p!=null?p:Re,me=G({[`${A}-lg`]:_e==="large",[`${A}-sm`]:_e==="small",[`${A}-rtl`]:W==="rtl",[`${A}-${Q}`]:ee,[`${A}-in-form-item`]:ue},vr(A,be,ce),X,H==null?void 0:H.className,i,l,Z,te,ne),Ce=a.useMemo(()=>f!==void 0?f:W==="rtl"?"bottomRight":"bottomLeft",[f,W]),[pe]=lr("SelectLike",I==null?void 0:I.zIndex);return U(a.createElement($m,Object.assign({ref:t,virtual:R,showSearch:H==null?void 0:H.showSearch},Pe,{style:Object.assign(Object.assign({},H==null?void 0:H.style),x),dropdownMatchSelectWidth:ae,transitionName:jn(K,"slide-up",E),builtinPlacements:wm(C,k),listHeight:d,listItemHeight:V,mode:Y,prefixCls:A,placement:Ce,direction:W,suffixIcon:he,menuItemSelectedIcon:Se,removeIcon:$e,allowClear:xe,notFoundContent:de,className:me,getPopupContainer:s||L,dropdownClassName:Ie,disabled:Me,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:pe}),maxCount:oe?M:void 0,tagRender:oe?O:void 0})))},Bn=a.forwardRef(XI),UI=po(Bn);Bn.SECRET_COMBOBOX_MODE_DO_NOT_USE=T3;Bn.Option=Sm;Bn.OptGroup=ym;Bn._InternalPanelDoNotUseOrYouWillBeFired=UI;const{Option:b1}=Bn;function Cv(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const YI=(e,t)=>{var r;const{prefixCls:n,className:o,popupClassName:i,dropdownClassName:l,children:s,dataSource:c}=e,u=sn(s);let d;u.length===1&&a.isValidElement(u[0])&&!Cv(u[0])&&([d]=u);const f=d?()=>d:void 0;let m;u.length&&Cv(u[0])?m=s:m=c?c.map(v=>{if(a.isValidElement(v))return v;switch(typeof v){case"string":return a.createElement(b1,{key:v,value:v},v);case"object":{const{value:C}=v;return a.createElement(b1,{key:C,value:C},v.text)}default:return}}):[];const{getPrefixCls:g}=a.useContext(ke),p=g("select",n),[h]=lr("SelectLike",(r=e.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return a.createElement(Bn,Object.assign({ref:t,suffixIcon:null},Xt(e,["dataSource","dropdownClassName"]),{prefixCls:p,popupClassName:i||l,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:h}),className:G(`${p}-auto-complete`,o),mode:Bn.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:f}),m)},Fc=a.forwardRef(YI),ZI=po(Fc);Fc.Option=b1;Fc._InternalPanelDoNotUseOrYouWillBeFired=ZI;const QI=Fc;function Ac(){const[,e]=a.useReducer(t=>t+1,0);return e}function Si(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=a.useRef({}),r=Ac(),n=s8();return Dt(()=>{const o=n.subscribe(i=>{t.current=i,e&&r()});return()=>n.unsubscribe(o)},[]),t.current}const JI=a.createContext({}),y1=JI,eO=e=>{const{antCls:t,componentCls:r,iconCls:n,avatarBg:o,avatarColor:i,containerSize:l,containerSizeLG:s,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:g,borderRadiusSM:p,lineWidth:h,lineType:v}=e,C=(b,y,S)=>({width:b,height:b,borderRadius:"50%",[`&${r}-square`]:{borderRadius:S},[`&${r}-icon`]:{fontSize:y,[`> ${n}`]:{margin:0}}});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${z(h)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(l,u,m)),{"&-lg":Object.assign({},C(s,d,g)),"&-sm":Object.assign({},C(c,f,p)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},tO=e=>{const{componentCls:t,groupBorderColor:r,groupOverlapping:n,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:n}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},nO=e=>{const{controlHeight:t,controlHeightLG:r,controlHeightSM:n,fontSize:o,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:s,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:r,containerSizeSM:n,textFontSize:Math.round((i+l)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},L3=Ot("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:r}=e,n=xt(e,{avatarBg:r,avatarColor:t});return[eO(n),tO(n)]},nO);var rO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const[r,n]=a.useState(1),[o,i]=a.useState(!1),[l,s]=a.useState(!0),c=a.useRef(null),u=a.useRef(null),d=yn(t,c),{getPrefixCls:f,avatar:m}=a.useContext(ke),g=a.useContext(y1),p=()=>{if(!u.current||!c.current)return;const Q=u.current.offsetWidth,ee=c.current.offsetWidth;if(Q!==0&&ee!==0){const{gap:te=4}=e;te*2{i(!0)},[]),a.useEffect(()=>{s(!0),n(1)},[e.src]),a.useEffect(p,[e.gap]);const h=()=>{const{onError:Q}=e;(Q==null?void 0:Q())!==!1&&s(!1)},{prefixCls:v,shape:C,size:b,src:y,srcSet:S,icon:x,className:$,rootClassName:w,alt:I,draggable:E,children:O,crossOrigin:M}=e,N=rO(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),L=un(Q=>{var ee,te;return(te=(ee=b!=null?b:g==null?void 0:g.size)!==null&&ee!==void 0?ee:Q)!==null&&te!==void 0?te:"default"}),P=Object.keys(typeof L=="object"?L||{}:{}).some(Q=>["xs","sm","md","lg","xl","xxl"].includes(Q)),T=Si(P),_=a.useMemo(()=>{if(typeof L!="object")return{};const Q=Wd.find(te=>T[te]),ee=L[Q];return ee?{width:ee,height:ee,fontSize:ee&&(x||O)?ee/2:18}:{}},[T,L]),R=f("avatar",v),D=Ut(R),[k,H,j]=L3(R,D),V=G({[`${R}-lg`]:L==="large",[`${R}-sm`]:L==="small"}),A=a.isValidElement(y),K=C||(g==null?void 0:g.shape)||"circle",W=G(R,V,m==null?void 0:m.className,`${R}-${K}`,{[`${R}-image`]:A||y&&l,[`${R}-icon`]:!!x},j,D,$,w,H),J=typeof L=="number"?{width:L,height:L,fontSize:x?L/2:18}:{};let X;if(typeof y=="string"&&l)X=a.createElement("img",{src:y,draggable:E,srcSet:S,onError:h,alt:I,crossOrigin:M});else if(A)X=y;else if(x)X=x;else if(o||r!==1){const Q=`scale(${r})`,ee={msTransform:Q,WebkitTransform:Q,transform:Q};X=a.createElement(Nn,{onResize:p},a.createElement("span",{className:`${R}-string`,ref:u,style:Object.assign({},ee)},O))}else X=a.createElement("span",{className:`${R}-string`,style:{opacity:0},ref:u},O);return delete N.onError,delete N.gap,k(a.createElement("span",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J),_),m==null?void 0:m.style),N.style),className:W,ref:d}),X))},D3=a.forwardRef(oO),ni=e=>e?typeof e=="function"?e():e:null;function Om(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.className,l=e.style;return a.createElement("div",{className:G("".concat(r,"-content"),i),style:l},a.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var ka={shiftX:64,adjustY:1},Ha={adjustX:1,shiftY:!0},xr=[0,0],aO={left:{points:["cr","cl"],overflow:Ha,offset:[-4,0],targetOffset:xr},right:{points:["cl","cr"],overflow:Ha,offset:[4,0],targetOffset:xr},top:{points:["bc","tc"],overflow:ka,offset:[0,-4],targetOffset:xr},bottom:{points:["tc","bc"],overflow:ka,offset:[0,4],targetOffset:xr},topLeft:{points:["bl","tl"],overflow:ka,offset:[0,-4],targetOffset:xr},leftTop:{points:["tr","tl"],overflow:Ha,offset:[-4,0],targetOffset:xr},topRight:{points:["br","tr"],overflow:ka,offset:[0,-4],targetOffset:xr},rightTop:{points:["tl","tr"],overflow:Ha,offset:[4,0],targetOffset:xr},bottomRight:{points:["tr","br"],overflow:ka,offset:[0,4],targetOffset:xr},rightBottom:{points:["bl","br"],overflow:Ha,offset:[4,0],targetOffset:xr},bottomLeft:{points:["tl","bl"],overflow:ka,offset:[0,4],targetOffset:xr},leftBottom:{points:["br","bl"],overflow:Ha,offset:[-4,0],targetOffset:xr}},iO=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],lO=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,l=t.mouseEnterDelay,s=l===void 0?0:l,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,p=t.onVisibleChange,h=t.afterVisibleChange,v=t.transitionName,C=t.animation,b=t.motion,y=t.placement,S=y===void 0?"right":y,x=t.align,$=x===void 0?{}:x,w=t.destroyTooltipOnHide,I=w===void 0?!1:w,E=t.defaultVisible,O=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,L=t.id,P=t.showArrow,T=P===void 0?!0:P,_=ut(t,iO),R=a.useRef(null);a.useImperativeHandle(r,function(){return R.current});var D=q({},_);"visible"in t&&(D.popupVisible=t.visible);var k=function(){return a.createElement(Om,{key:"content",prefixCls:m,id:L,overlayInnerStyle:M},N)};return a.createElement($a,ve({popupClassName:n,prefixCls:m,popup:k,action:i,builtinPlacements:aO,popupPlacement:S,ref:R,popupAlign:$,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:C,popupMotion:b,defaultPopupVisible:E,autoDestroy:I,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:T},D),g)};const sO=a.forwardRef(lO);function Bl(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,l=o,s=n*1/Math.sqrt(2),c=o-n*(1-1/Math.sqrt(2)),u=o-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-u,m=d,g=2*o-s,p=c,h=2*o-i,v=l,C=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1),y=`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,S=`path('M ${i} ${l} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${m} L ${g} ${p} A ${n} ${n} 0 0 0 ${h} ${v} Z')`;return{arrowShadowWidth:C,arrowPath:S,arrowPolygon:y}}const k3=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${z(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Mm=8;function zl(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Mm:n}}function fs(e,t){return e?t:{}}function Vc(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:l}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},k3(e,t,o)),{"&:before":{background:t}})]},fs(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":l,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${z(l)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),fs(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${z(l)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),fs(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),fs(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function cO(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const l=Object.assign(Object.assign({},i),o);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const bv={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"]}},uO={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"]}},dO=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Nm(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:l}=e,s=t/2,c={};return Object.keys(bv).forEach(u=>{const d=n&&uO[u]||bv[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,dO.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=zl({contentRadius:i,limitVerticalRadius:!0});if(n)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*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal*2-s;break}f.overflow=cO(u,m,t,r),l&&(f.htmlRegion="visibleFirst")}),c}const fO=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${z(e.calc(u).div(2).equal())} ${z(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Mm)}},[`${t}-content`]:{position:"relative"}}),yc(e,(f,m)=>{let{darkColor:g}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Vc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},mO=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},zl({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Bl(xt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),H3=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ot("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:l}=n,s=xt(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:l});return[fO(s),yi(n,"zoom-big-fast")]},mO,{resetStyle:!1,injectStyle:t})(e)},gO=il.map(e=>`${e}-inverse`),vO=["success","processing","error","default","warning"];function Wc(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ye(gO),ye(il)).includes(e):il.includes(e)}function pO(e){return vO.includes(e)}function j3(e,t){const r=Wc(t),n=G({[`${e}-${t}`]:t&&r}),o={},i={};return t&&!r&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const hO=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:l}=e,{getPrefixCls:s}=a.useContext(ke),c=s("tooltip",t),[u,d,f]=H3(c),m=j3(c,i),g=m.arrowStyle,p=Object.assign(Object.assign({},l),m.overlayStyle),h=G(d,f,c,`${c}-pure`,`${c}-placement-${n}`,r,m.className);return u(a.createElement("div",{className:h,style:g},a.createElement("div",{className:`${c}-arrow`}),a.createElement(Om,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:p}),o)))},CO=hO;var bO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:l,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:p=!0,title:h,overlay:v,builtinPlacements:C,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0}=e,S=!!p,[,x]=An(),{getPopupContainer:$,getPrefixCls:w,direction:I}=a.useContext(ke),E=Yo(),O=a.useRef(null),M=()=>{var de;(de=O.current)===null||de===void 0||de.forceAlign()};a.useImperativeHandle(t,()=>{var de;return{forceAlign:M,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:(de=O.current)===null||de===void 0?void 0:de.nativeElement}});const[N,L]=It(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),P=!h&&!v&&h!==0,T=de=>{var he,Se;L(P?!1:de),P||((he=e.onOpenChange)===null||he===void 0||he.call(e,de),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,de))},_=a.useMemo(()=>{var de,he;let Se=b;return typeof p=="object"&&(Se=(he=(de=p.pointAtCenter)!==null&&de!==void 0?de:p.arrowPointAtCenter)!==null&&he!==void 0?he:b),C||Nm({arrowPointAtCenter:Se,autoAdjustOverflow:y,arrowWidth:S?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[b,p,C,x]),R=a.useMemo(()=>h===0?h:v||h||"",[v,h]),D=a.createElement(Ar,{space:!0},typeof R=="function"?R():R),{getPopupContainer:k,placement:H="top",mouseEnterDelay:j=.1,mouseLeaveDelay:V=.1,overlayStyle:A,rootClassName:K}=e,W=bO(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=w("tooltip",o),X=w(),Q=e["data-popover-inject"];let ee=N;!("open"in e)&&!("visible"in e)&&P&&(ee=!1);const te=a.isValidElement(d)&&!i5(d)?d:a.createElement("span",null,d),U=te.props,ne=!U.className||typeof U.className=="string"?G(U.className,i||`${J}-open`):U.className,[Z,Y,oe]=H3(J,!Q),se=j3(J,c),ae=se.arrowStyle,re=Object.assign(Object.assign({},u),se.overlayStyle),ce=G(s,{[`${J}-rtl`]:I==="rtl"},se.className,K,Y,oe),[ue,fe]=lr("Tooltip",W.zIndex),be=a.createElement(sO,Object.assign({},W,{zIndex:ue,showArrow:S,placement:H,mouseEnterDelay:j,mouseLeaveDelay:V,prefixCls:J,overlayClassName:ce,overlayStyle:Object.assign(Object.assign({},ae),A),getTooltipContainer:k||l||$,ref:O,builtinPlacements:_,overlay:D,visible:ee,onVisibleChange:T,afterVisibleChange:f!=null?f:m,overlayInnerStyle:re,arrowContent:a.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:jn(X,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ee?cn(te,{className:ne}):te);return Z(a.createElement(pi.Provider,{value:fe},be))}),B3=yO;B3._InternalPanelDoNotUseOrYouWillBeFired=CO;const er=B3,SO=e=>{const{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:g,innerContentPadding:p,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Mt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:l,padding:i},[`${t}-title`]:{minWidth:n,marginBottom:d,color:s,fontWeight:o,borderBottom:g,padding:h},[`${t}-inner-content`]:{color:r,padding:p}})},Vc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},xO=e=>{const{componentCls:t}=e;return{[t]:il.map(r=>{const n=e[`${r}6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}},$O=e=>{const{lineWidth:t,controlHeight:r,fontHeight:n,padding:o,wireframe:i,zIndexPopupBase:l,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=r-n,g=m/2,p=m/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},Bl(e)),zl({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${g}px ${h}px ${p}px`:0,titleBorderBottom:i?`${t}px ${u} ${d}`:"none",innerContentPadding:i?`${f}px ${h}px`:0})},z3=Ot("Popover",e=>{const{colorBgElevated:t,colorText:r}=e,n=xt(e,{popoverBg:t,popoverColor:r});return[SO(n),xO(n),yi(n,"zoom-big")]},$O,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var wO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{title:t,content:r,prefixCls:n}=e;return!t&&!r?null:a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${n}-title`},t),r&&a.createElement("div",{className:`${n}-inner-content`},r))},A3=e=>{const{hashId:t,prefixCls:r,className:n,style:o,placement:i="top",title:l,content:s,children:c}=e,u=ni(l),d=ni(s),f=G(t,r,`${r}-pure`,`${r}-placement-${i}`,n);return a.createElement("div",{className:f,style:o},a.createElement("div",{className:`${r}-arrow`}),a.createElement(Om,Object.assign({},e,{className:t,prefixCls:r}),c||a.createElement(F3,{prefixCls:r,title:u,content:d})))},EO=e=>{const{prefixCls:t,className:r}=e,n=wO(e,["prefixCls","className"]),{getPrefixCls:o}=a.useContext(ke),i=o("popover",t),[l,s,c]=z3(i);return l(a.createElement(A3,Object.assign({},n,{prefixCls:i,hashId:s,className:G(r,c)})))},V3=EO;var IO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{prefixCls:o,title:i,content:l,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:p={}}=e,h=IO(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=a.useContext(ke),C=v("popover",o),[b,y,S]=z3(C),x=v(),$=G(s,y,S),[w,I]=It(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),E=(P,T)=>{I(P,!0),g==null||g(P,T)},O=P=>{P.keyCode===we.ESC&&E(!1,P)},M=P=>{E(P)},N=ni(i),L=ni(l);return b(a.createElement(er,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m,overlayStyle:p},h,{prefixCls:C,overlayClassName:$,ref:t,open:w,onOpenChange:M,overlay:N||L?a.createElement(F3,{prefixCls:C,title:N,content:L}):null,transitionName:jn(x,"zoom-big",h.transitionName),"data-popover-inject":!0}),cn(d,{onKeyDown:P=>{var T,_;a.isValidElement(d)&&((_=d==null?void 0:(T=d.props).onKeyDown)===null||_===void 0||_.call(T,P)),O(P)}})))}),W3=OO;W3._InternalPanelDoNotUseOrYouWillBeFired=V3;const Kc=W3,yv=e=>{const{size:t,shape:r}=a.useContext(y1),n=a.useMemo(()=>({size:e.size||t,shape:e.shape||r}),[e.size,e.shape,t,r]);return a.createElement(y1.Provider,{value:n},e.children)},MO=e=>{var t,r,n;const{getPrefixCls:o,direction:i}=a.useContext(ke),{prefixCls:l,className:s,rootClassName:c,style:u,maxCount:d,maxStyle:f,size:m,shape:g,maxPopoverPlacement:p,maxPopoverTrigger:h,children:v,max:C}=e,b=o("avatar",l),y=`${b}-group`,S=Ut(b),[x,$,w]=L3(b,S),I=G(y,{[`${y}-rtl`]:i==="rtl"},w,S,s,c,$),E=sn(v).map((N,L)=>cn(N,{key:`avatar-key-${L}`})),O=(C==null?void 0:C.count)||d,M=E.length;if(O&&O{const{componentCls:t,iconCls:r,antCls:n,badgeShadowSize:o,textFontSize:i,textFontSizeSM:l,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:g}=e,p=`${n}-scroll-number`,h=yc(e,(v,C)=>{let{darkColor:b}=C;return{[`&${t} ${t}-color-${v}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:z(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(d).div(2).equal(),boxShadow:`0 0 0 ${z(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:l,lineHeight:z(f),borderRadius:g(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${z(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${z(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${p}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${r}-spin`]:{animationName:zO,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:DO,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),h),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:kO,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:HO,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:jO,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:BO,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${p}-custom-component, ${t}-count`]:{transform:"none"},[`${p}-custom-component, ${p}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[p]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${p}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${p}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${p}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${p}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},K3=e=>{const{fontHeight:t,lineWidth:r,marginXS:n,colorBorderBg:o}=e,i=t,l=r,s=e.colorBgContainer,c=e.colorError,u=e.colorErrorHover;return xt(e,{badgeFontHeight:i,badgeShadowSize:l,badgeTextColor:s,badgeColor:c,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},q3=e=>{const{fontSize:t,lineHeight:r,fontSizeSM:n,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*r)-2*o,indicatorHeightSM:t,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}},AO=Ot("Badge",e=>{const t=K3(e);return FO(t)},q3),VO=e=>{const{antCls:t,badgeFontHeight:r,marginXS:n,badgeRibbonOffset:o,calc:i}=e,l=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=yc(e,(u,d)=>{let{darkColor:f}=d;return{[`&${l}-color-${u}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{position:"absolute",top:n,padding:`0 ${z(e.paddingXS)}`,color:e.colorPrimary,lineHeight:z(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${l}-text`]:{color:e.colorTextLightSolid},[`${l}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${z(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${l}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${l}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${l}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},WO=Ot(["Badge","Ribbon"],e=>{const t=K3(e);return VO(t)},q3),KO=e=>{const{className:t,prefixCls:r,style:n,color:o,children:i,text:l,placement:s="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=a.useContext(ke),f=u("ribbon",r),m=`${f}-wrapper`,[g,p,h]=WO(f,m),v=Wc(o,!1),C=G(f,`${f}-placement-${s}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:v},t),b={},y={};return o&&!v&&(b.background=o,y.color=o),g(a.createElement("div",{className:G(m,c,p,h)},i,a.createElement("div",{className:G(C,p),style:Object.assign(Object.assign({},b),n)},a.createElement("span",{className:`${f}-text`},l),a.createElement("div",{className:`${f}-corner`,style:y}))))},qO=KO,Sv=e=>{const{prefixCls:t,value:r,current:n,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),a.createElement("span",{style:i,className:G(`${t}-only-unit`,{current:n})},r)};function GO(e,t,r){let n=e,o=0;for(;(n+10)%10!==t;)n+=r,o+=r;return o}const XO=e=>{const{prefixCls:t,count:r,value:n}=e,o=Number(n),i=Math.abs(r),[l,s]=a.useState(o),[c,u]=a.useState(i),d=()=>{s(o),u(i)};a.useEffect(()=>{const g=setTimeout(d,1e3);return()=>clearTimeout(g)},[o]);let f,m;if(l===o||Number.isNaN(o)||Number.isNaN(l))f=[a.createElement(Sv,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else{f=[];const g=o+10,p=[];for(let C=o;C<=g;C+=1)p.push(C);const h=p.findIndex(C=>C%10===l);f=p.map((C,b)=>{const y=C%10;return a.createElement(Sv,Object.assign({},e,{key:C,value:y,offset:b-h,current:b===h}))});const v=c{const{prefixCls:r,count:n,className:o,motionClassName:i,style:l,title:s,show:c,component:u="sup",children:d}=e,f=YO(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=a.useContext(ke),g=m("scroll-number",r),p=Object.assign(Object.assign({},f),{"data-show":c,style:l,className:G(g,o,i),title:s});let h=n;if(n&&Number(n)%1===0){const v=String(n).split("");h=a.createElement("bdi",null,v.map((C,b)=>a.createElement(UO,{prefixCls:g,count:Number(n),value:C,key:v.length-b})))}return l!=null&&l.borderColor&&(p.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),d?cn(d,v=>({className:G(`${g}-custom-component`,v==null?void 0:v.className,i)})):a.createElement(u,Object.assign({},p,{ref:t}),h)}),QO=ZO;var JO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n,o,i,l;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:m,count:g=null,overflowCount:p=99,dot:h=!1,size:v="default",title:C,offset:b,style:y,className:S,rootClassName:x,classNames:$,styles:w,showZero:I=!1}=e,E=JO(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:M,badge:N}=a.useContext(ke),L=O("badge",s),[P,T,_]=AO(L),R=g>p?`${p}+`:g,D=R==="0"||R===0,k=g===null||D&&!I,H=(d!=null||m!=null)&&k,j=h&&!D,V=j?"":R,A=a.useMemo(()=>(V==null||V===""||D&&!I)&&!j,[V,D,I,j]),K=a.useRef(g);A||(K.current=g);const W=K.current,J=a.useRef(V);A||(J.current=V);const X=J.current,Q=a.useRef(j);A||(Q.current=j);const ee=a.useMemo(()=>{if(!b)return Object.assign(Object.assign({},N==null?void 0:N.style),y);const ae={marginTop:b[1]};return M==="rtl"?ae.left=parseInt(b[0],10):ae.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},ae),N==null?void 0:N.style),y)},[M,b,y,N==null?void 0:N.style]),te=C!=null?C:typeof W=="string"||typeof W=="number"?W:void 0,U=A||!f?null:a.createElement("span",{className:`${L}-status-text`},f),ne=!W||typeof W!="object"?void 0:cn(W,ae=>({style:Object.assign(Object.assign({},ee),ae.style)})),Z=Wc(m,!1),Y=G($==null?void 0:$.indicator,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.indicator,{[`${L}-status-dot`]:H,[`${L}-status-${d}`]:!!d,[`${L}-color-${m}`]:Z}),oe={};m&&!Z&&(oe.color=m,oe.background=m);const se=G(L,{[`${L}-status`]:H,[`${L}-not-a-wrapper`]:!u,[`${L}-rtl`]:M==="rtl"},S,x,N==null?void 0:N.className,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.root,$==null?void 0:$.root,T,_);if(!u&&H){const ae=ee.color;return P(a.createElement("span",Object.assign({},E,{className:se,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.root),(o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.root),ee)}),a.createElement("span",{className:Y,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(i=N==null?void 0:N.styles)===null||i===void 0?void 0:i.indicator),oe)}),f&&a.createElement("span",{style:{color:ae},className:`${L}-status-text`},f)))}return P(a.createElement("span",Object.assign({ref:t},E,{className:se,style:Object.assign(Object.assign({},(l=N==null?void 0:N.styles)===null||l===void 0?void 0:l.root),w==null?void 0:w.root)}),u,a.createElement(In,{visible:!A,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},ae=>{let{className:re}=ae;var ce,ue;const fe=O("scroll-number",c),be=Q.current,de=G($==null?void 0:$.indicator,(ce=N==null?void 0:N.classNames)===null||ce===void 0?void 0:ce.indicator,{[`${L}-dot`]:be,[`${L}-count`]:!be,[`${L}-count-sm`]:v==="small",[`${L}-multiple-words`]:!be&&X&&X.toString().length>1,[`${L}-status-${d}`]:!!d,[`${L}-color-${m}`]:Z});let he=Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(ue=N==null?void 0:N.styles)===null||ue===void 0?void 0:ue.indicator),ee);return m&&!Z&&(he=he||{},he.background=m),a.createElement(QO,{prefixCls:fe,show:!A,motionClassName:re,className:de,count:X,title:te,style:he,key:"scrollNumber"},ne)}),U))}),qc=eM;qc.Ribbon=qO;var tM={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"};const nM=tM;var rM=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:nM}))},oM=a.forwardRef(rM);const lo=oM;var aM=we.ESC,iM=we.TAB;function lM(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,l=a.useRef(!1),s=function(){if(t){var f,m;(f=r.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),n==null||n(!1)}},c=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),l.current=!0,!0):!1},u=function(f){switch(f.keyCode){case aM:s();break;case iM:{var m=!1;l.current||(m=c()),m?f.preventDefault():s();break}}};a.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&kt(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[t])}var sM=a.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,o=e.prefixCls,i=a.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),l=yn(t,i==null?void 0:i.ref);return B.createElement(B.Fragment,null,n&&B.createElement("div",{className:"".concat(o,"-arrow")}),B.cloneElement(i,{ref:xo(i)?l:void 0}))}),ja={adjustX:1,adjustY:1},Ba=[0,0],cM={topLeft:{points:["bl","tl"],overflow:ja,offset:[0,-4],targetOffset:Ba},top:{points:["bc","tc"],overflow:ja,offset:[0,-4],targetOffset:Ba},topRight:{points:["br","tr"],overflow:ja,offset:[0,-4],targetOffset:Ba},bottomLeft:{points:["tl","bl"],overflow:ja,offset:[0,4],targetOffset:Ba},bottom:{points:["tc","bc"],overflow:ja,offset:[0,4],targetOffset:Ba},bottomRight:{points:["tr","br"],overflow:ja,offset:[0,4],targetOffset:Ba}},uM=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function dM(e,t){var r,n=e.arrow,o=n===void 0?!1:n,i=e.prefixCls,l=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?cM:m,p=e.getPopupContainer,h=e.showAction,v=e.hideAction,C=e.overlayClassName,b=e.overlayStyle,y=e.visible,S=e.trigger,x=S===void 0?["hover"]:S,$=e.autoFocus,w=e.overlay,I=e.children,E=e.onVisibleChange,O=ut(e,uM),M=B.useState(),N=ie(M,2),L=N[0],P=N[1],T="visible"in e?y:L,_=B.useRef(null),R=B.useRef(null),D=B.useRef(null);B.useImperativeHandle(t,function(){return _.current});var k=function(Q){P(Q),E==null||E(Q)};lM({visible:T,triggerRef:D,onVisibleChange:k,autoFocus:$,overlayRef:R});var H=function(Q){var ee=e.onOverlayClick;P(!1),ee&&ee(Q)},j=function(){return B.createElement(sM,{ref:R,overlay:w,prefixCls:l,arrow:o})},V=function(){return typeof w=="function"?j:j()},A=function(){var Q=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!ee},K=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(l,"-open")},W=B.cloneElement(I,{className:G((r=I.props)===null||r===void 0?void 0:r.className,T&&K()),ref:xo(I)?yn(D,I.ref):void 0}),J=v;return!J&&x.indexOf("contextMenu")!==-1&&(J=["click"]),B.createElement($a,ve({builtinPlacements:g},O,{prefixCls:l,ref:_,popupClassName:G(C,F({},"".concat(l,"-show-arrow"),o)),popupStyle:b,action:x,showAction:h,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:T,stretch:A()?"minWidth":"",popup:V(),onPopupVisibleChange:k,onPopupClick:H,getPopupContainer:p}),W)}const G3=B.forwardRef(dM);var X3=a.createContext(null);function U3(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Y3(e){var t=a.useContext(X3);return U3(t,e)}var fM=["children","locked"],Vr=a.createContext(null);function mM(e,t){var r=q({},e);return Object.keys(t).forEach(function(n){var o=t[n];o!==void 0&&(r[n]=o)}),r}function ul(e){var t=e.children,r=e.locked,n=ut(e,fM),o=a.useContext(Vr),i=Ml(function(){return mM(o,n)},[o,n],function(l,s){return!r&&(l[0]!==s[0]||!Br(l[1],s[1],!0))});return a.createElement(Vr.Provider,{value:i},t)}var gM=[],Z3=a.createContext(null);function Gc(){return a.useContext(Z3)}var Q3=a.createContext(gM);function xi(e){var t=a.useContext(Q3);return a.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var J3=a.createContext(null),Rm=a.createContext({});function xv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(hi(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),l=null;return o&&!Number.isNaN(i)?l=i:n&&l===null&&(l=0),n&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function vM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ye(e.querySelectorAll("*")).filter(function(n){return xv(n,t)});return xv(e,t)&&r.unshift(e),r}var S1=we.LEFT,x1=we.RIGHT,$1=we.UP,Rs=we.DOWN,_s=we.ENTER,eC=we.ESC,Hi=we.HOME,ji=we.END,$v=[$1,Rs,S1,x1];function pM(e,t,r,n){var o,i,l,s,c="prev",u="next",d="children",f="parent";if(e==="inline"&&n===_s)return{inlineTrigger:!0};var m=(o={},F(o,$1,c),F(o,Rs,u),o),g=(i={},F(i,S1,r?u:c),F(i,x1,r?c:u),F(i,Rs,d),F(i,_s,d),i),p=(l={},F(l,$1,c),F(l,Rs,u),F(l,_s,d),F(l,eC,f),F(l,S1,r?d:f),F(l,x1,r?f:d),l),h={inline:m,horizontal:g,vertical:p,inlineSub:m,horizontalSub:p,verticalSub:p},v=(s=h["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(v){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function hM(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function CM(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function _m(e,t){var r=vM(e,!0);return r.filter(function(n){return t.has(n)})}function wv(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=_m(e,t),i=o.length,l=o.findIndex(function(s){return r===s});return n<0?l===-1?l=i-1:l-=1:n>0&&(l+=1),l=(l+i)%i,o[l]}var w1=function(t,r){var n=new Set,o=new Map,i=new Map;return t.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(U3(r,l),"']"));s&&(n.add(s),i.set(s,l),o.set(l,s))}),{elements:n,key2element:o,element2key:i}};function bM(e,t,r,n,o,i,l,s,c,u){var d=a.useRef(),f=a.useRef();f.current=t;var m=function(){kt.cancel(d.current)};return a.useEffect(function(){return function(){m()}},[]),function(g){var p=g.which;if([].concat($v,[_s,eC,Hi,ji]).includes(p)){var h=i(),v=w1(h,n),C=v,b=C.elements,y=C.key2element,S=C.element2key,x=y.get(t),$=CM(x,b),w=S.get($),I=pM(e,l(w,!0).length===1,r,p);if(!I&&p!==Hi&&p!==ji)return;($v.includes(p)||[Hi,ji].includes(p))&&g.preventDefault();var E=function(R){if(R){var D=R,k=R.querySelector("a");k!=null&&k.getAttribute("href")&&(D=k);var H=S.get(R);s(H),m(),d.current=kt(function(){f.current===H&&D.focus()})}};if([Hi,ji].includes(p)||I.sibling||!$){var O;!$||e==="inline"?O=o.current:O=hM($);var M,N=_m(O,b);p===Hi?M=N[0]:p===ji?M=N[N.length-1]:M=wv(O,b,$,I.offset),E(M)}else if(I.inlineTrigger)c(w);else if(I.offset>0)c(w,!0),m(),d.current=kt(function(){v=w1(h,n);var _=$.getAttribute("aria-controls"),R=document.getElementById(_),D=wv(R,v.elements);E(D)},5);else if(I.offset<0){var L=l(w,!0),P=L[L.length-2],T=y.get(P);c(P,!1),E(T)}}u==null||u(g)}}function yM(e){Promise.resolve().then(e)}var Tm="__RC_UTIL_PATH_SPLIT__",Ev=function(t){return t.join(Tm)},SM=function(t){return t.split(Tm)},E1="rc-menu-more";function xM(){var e=a.useState({}),t=ie(e,2),r=t[1],n=a.useRef(new Map),o=a.useRef(new Map),i=a.useState([]),l=ie(i,2),s=l[0],c=l[1],u=a.useRef(0),d=a.useRef(!1),f=function(){d.current||r({})},m=a.useCallback(function(y,S){var x=Ev(S);o.current.set(x,y),n.current.set(y,x),u.current+=1;var $=u.current;yM(function(){$===u.current&&f()})},[]),g=a.useCallback(function(y,S){var x=Ev(S);o.current.delete(x),n.current.delete(y)},[]),p=a.useCallback(function(y){c(y)},[]),h=a.useCallback(function(y,S){var x=n.current.get(y)||"",$=SM(x);return S&&s.includes($[0])&&$.unshift(E1),$},[s]),v=a.useCallback(function(y,S){return y.filter(function(x){return x!==void 0}).some(function(x){var $=h(x,!0);return $.includes(S)})},[h]),C=function(){var S=ye(n.current.keys());return s.length&&S.push(E1),S},b=a.useCallback(function(y){var S="".concat(n.current.get(y)).concat(Tm),x=new Set;return ye(o.current.keys()).forEach(function($){$.startsWith(S)&&x.add(o.current.get($))}),x},[]);return a.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:h,getKeys:C,getSubPathKeys:b}}function qi(e){var t=a.useRef(e);t.current=e;var r=a.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),l=0;l1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(S){return!m.current&&!S&&v(!0),y==null?void 0:y(S)},h?null:a.createElement(ul,{mode:i,locked:!m.current},a.createElement(In,ve({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var x=S.className,$=S.style;return a.createElement(Lm,{id:t,className:x,style:$},o)}))}var BM=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],zM=["active"],FM=a.forwardRef(function(e,t){var r,n=e.style,o=e.className,i=e.title,l=e.eventKey;e.warnKey;var s=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,g=e.popupOffset,p=e.popupStyle,h=e.onClick,v=e.onMouseEnter,C=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,S=e.onTitleMouseLeave,x=ut(e,BM),$=Y3(l),w=a.useContext(Vr),I=w.prefixCls,E=w.mode,O=w.openKeys,M=w.disabled,N=w.overflowDisabled,L=w.activeKey,P=w.selectedKeys,T=w.itemIcon,_=w.expandIcon,R=w.onItemClick,D=w.onOpenChange,k=w.onActive,H=a.useContext(Rm),j=H._internalRenderSubMenuItem,V=a.useContext(J3),A=V.isSubPathKey,K=xi(),W="".concat(I,"-submenu"),J=M||s,X=a.useRef(),Q=a.useRef(),ee=d!=null?d:T,te=f!=null?f:_,U=O.includes(l),ne=!N&&U,Z=A(P,l),Y=tC(l,J,y,S),oe=Y.active,se=ut(Y,zM),ae=a.useState(!1),re=ie(ae,2),ce=re[0],ue=re[1],fe=function(pe){J||ue(pe)},be=function(pe){fe(!0),v==null||v({key:l,domEvent:pe})},de=function(pe){fe(!1),C==null||C({key:l,domEvent:pe})},he=a.useMemo(function(){return oe||(E!=="inline"?ce||A([L],l):!1)},[E,oe,L,ce,l,A]),Se=nC(K.length),$e=function(pe){J||(b==null||b({key:l,domEvent:pe}),E==="inline"&&D(l,!U))},Ne=qi(function(Ce){h==null||h(Xs(Ce)),R(Ce)}),xe=function(pe){E!=="inline"&&D(l,pe)},Pe=function(){k(l)},Ie=$&&"".concat($,"-popup"),_e=a.createElement("div",ve({role:"menuitem",style:Se,className:"".concat(W,"-title"),tabIndex:J?null:-1,ref:X,title:typeof i=="string"?i:null,"data-menu-id":N&&$?null:$,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":Ie,"aria-disabled":J,onClick:$e,onFocus:Pe},se),i,a.createElement(rC,{icon:E!=="horizontal"?te:void 0,props:q(q({},e),{},{isOpen:ne,isSubMenu:!0})},a.createElement("i",{className:"".concat(W,"-arrow")}))),Re=a.useRef(E);if(E!=="inline"&&K.length>1?Re.current="vertical":Re.current=E,!N){var Me=Re.current;_e=a.createElement(HM,{mode:Me,prefixCls:W,visible:!c&&ne&&E!=="inline",popupClassName:m,popupOffset:g,popupStyle:p,popup:a.createElement(ul,{mode:Me==="horizontal"?"vertical":Me},a.createElement(Lm,{id:Ie,ref:Q},u)),disabled:J,onVisibleChange:xe},_e)}var me=a.createElement(Hr.Item,ve({ref:t,role:"none"},x,{component:"li",style:n,className:G(W,"".concat(W,"-").concat(E),o,(r={},F(r,"".concat(W,"-open"),ne),F(r,"".concat(W,"-active"),he),F(r,"".concat(W,"-selected"),Z),F(r,"".concat(W,"-disabled"),J),r)),onMouseEnter:be,onMouseLeave:de}),_e,!N&&a.createElement(jM,{id:Ie,open:ne,keyPath:K},u));return j&&(me=j(me,e,{selected:Z,active:he,open:ne,disabled:J})),a.createElement(ul,{onItemClick:Ne,mode:E==="horizontal"?"vertical":E,itemIcon:ee,expandIcon:te},me)}),Xc=a.forwardRef(function(e,t){var r=e.eventKey,n=e.children,o=xi(r),i=Dm(n,o),l=Gc();a.useEffect(function(){if(l)return l.registerPath(r,o),function(){l.unregisterPath(r,o)}},[o]);var s;return l?s=i:s=a.createElement(FM,ve({ref:t},e),i),a.createElement(Q3.Provider,{value:o},s)});function km(e){var t=e.className,r=e.style,n=a.useContext(Vr),o=n.prefixCls,i=Gc();return i?null:a.createElement("li",{role:"separator",className:G("".concat(o,"-item-divider"),t),style:r})}var AM=["className","title","eventKey","children"],VM=a.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var o=e.children,i=ut(e,AM),l=a.useContext(Vr),s=l.prefixCls,c="".concat(s,"-item-group");return a.createElement("li",ve({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:G(c,r)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof n=="string"?n:void 0},n),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Hm=a.forwardRef(function(e,t){var r=e.eventKey,n=e.children,o=xi(r),i=Dm(n,o),l=Gc();return l?i:a.createElement(VM,ve({ref:t},Xt(e,["warnKey"])),i)}),WM=["label","children","key","type"];function I1(e,t){var r=t.item,n=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(l,s){if(l&&yt(l)==="object"){var c=l,u=c.label,d=c.children,f=c.key,m=c.type,g=ut(c,WM),p=f!=null?f:"tmp-".concat(s);return d||m==="group"?m==="group"?a.createElement(n,ve({key:p},g,{title:u}),I1(d,t)):a.createElement(o,ve({key:p},g,{title:u}),I1(d,t)):m==="divider"?a.createElement(i,ve({key:p},g)):a.createElement(r,ve({key:p},g),u)}return null}).filter(function(l){return l})}function Ov(e,t,r,n){var o=e,i=q({divider:km,item:ga,group:Hm,submenu:Xc},n);return t&&(o=I1(t,i)),Dm(o,r)}var KM=["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"],ta=[],qM=a.forwardRef(function(e,t){var r,n,o=e,i=o.prefixCls,l=i===void 0?"rc-menu":i,s=o.rootClassName,c=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,g=o.children,p=o.direction,h=o.id,v=o.mode,C=v===void 0?"vertical":v,b=o.inlineCollapsed,y=o.disabled,S=o.disabledOverflow,x=o.subMenuOpenDelay,$=x===void 0?.1:x,w=o.subMenuCloseDelay,I=w===void 0?.1:w,E=o.forceSubMenuRender,O=o.defaultOpenKeys,M=o.openKeys,N=o.activeKey,L=o.defaultActiveFirst,P=o.selectable,T=P===void 0?!0:P,_=o.multiple,R=_===void 0?!1:_,D=o.defaultSelectedKeys,k=o.selectedKeys,H=o.onSelect,j=o.onDeselect,V=o.inlineIndent,A=V===void 0?24:V,K=o.motion,W=o.defaultMotions,J=o.triggerSubMenuAction,X=J===void 0?"hover":J,Q=o.builtinPlacements,ee=o.itemIcon,te=o.expandIcon,U=o.overflowedIndicator,ne=U===void 0?"...":U,Z=o.overflowedIndicatorPopupClassName,Y=o.getPopupContainer,oe=o.onClick,se=o.onOpenChange,ae=o.onKeyDown;o.openAnimation,o.openTransitionName;var re=o._internalRenderMenuItem,ce=o._internalRenderSubMenuItem,ue=o._internalComponents,fe=ut(o,KM),be=a.useMemo(function(){return[Ov(g,m,ta,ue),Ov(g,m,ta,{})]},[g,m,ue]),de=ie(be,2),he=de[0],Se=de[1],$e=a.useState(!1),Ne=ie($e,2),xe=Ne[0],Pe=Ne[1],Ie=a.useRef(),_e=wM(h),Re=p==="rtl",Me=It(O,{value:M,postState:function(Tt){return Tt||ta}}),me=ie(Me,2),Ce=me[0],pe=me[1],ge=function(Tt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vt(){pe(Tt),se==null||se(Tt)}Lt?ao.flushSync(vt):vt()},Oe=a.useState(Ce),nt=ie(Oe,2),Ve=nt[0],Ze=nt[1],Le=a.useRef(!1),Ke=a.useMemo(function(){return(C==="inline"||C==="vertical")&&b?["vertical",b]:[C,!1]},[C,b]),Qe=ie(Ke,2),ot=Qe[0],Xe=Qe[1],We=ot==="inline",je=a.useState(ot),at=ie(je,2),Te=at[0],Ue=at[1],De=a.useState(Xe),ze=ie(De,2),Je=ze[0],dt=ze[1];a.useEffect(function(){Ue(ot),dt(Xe),Le.current&&(We?pe(Ve):ge(ta))},[ot,Xe]);var it=a.useState(0),qe=ie(it,2),Fe=qe[0],Ge=qe[1],Ye=Fe>=he.length-1||Te!=="horizontal"||S;a.useEffect(function(){We&&Ze(Ce)},[Ce]),a.useEffect(function(){return Le.current=!0,function(){Le.current=!1}},[]);var tt=xM(),mt=tt.registerPath,lt=tt.unregisterPath,ft=tt.refreshOverflowKeys,gt=tt.isSubPathKey,et=tt.getKeyPath,rt=tt.getKeys,Ae=tt.getSubPathKeys,He=a.useMemo(function(){return{registerPath:mt,unregisterPath:lt}},[mt,lt]),st=a.useMemo(function(){return{isSubPathKey:gt}},[gt]);a.useEffect(function(){ft(Ye?ta:he.slice(Fe+1).map(function(zt){return zt.key}))},[Fe,Ye]);var bt=It(N||L&&((r=he[0])===null||r===void 0?void 0:r.key),{value:N}),Nt=ie(bt,2),Vt=Nt[0],Kt=Nt[1],qt=qi(function(zt){Kt(zt)}),Gt=qi(function(){Kt(void 0)});a.useImperativeHandle(t,function(){return{list:Ie.current,focus:function(Tt){var Lt,vt=rt(),ht=w1(vt,_e),Yt=ht.elements,on=ht.key2element,xn=ht.element2key,On=_m(Ie.current,Yt),Wn=Vt!=null?Vt:On[0]?xn.get(On[0]):(Lt=he.find(function(ct){return!ct.props.disabled}))===null||Lt===void 0?void 0:Lt.key,Ht=on.get(Wn);if(Wn&&Ht){var Rt;Ht==null||(Rt=Ht.focus)===null||Rt===void 0||Rt.call(Ht,Tt)}}}});var pt=It(D||[],{value:k,postState:function(Tt){return Array.isArray(Tt)?Tt:Tt==null?ta:[Tt]}}),St=ie(pt,2),Et=St[0],rn=St[1],mn=function(Tt){if(T){var Lt=Tt.key,vt=Et.includes(Lt),ht;R?vt?ht=Et.filter(function(on){return on!==Lt}):ht=[].concat(ye(Et),[Lt]):ht=[Lt],rn(ht);var Yt=q(q({},Tt),{},{selectedKeys:ht});vt?j==null||j(Yt):H==null||H(Yt)}!R&&Ce.length&&Te!=="inline"&&ge(ta)},Sn=qi(function(zt){oe==null||oe(Xs(zt)),mn(zt)}),Cn=qi(function(zt,Tt){var Lt=Ce.filter(function(ht){return ht!==zt});if(Tt)Lt.push(zt);else if(Te!=="inline"){var vt=Ae(zt);Lt=Lt.filter(function(ht){return!vt.has(ht)})}Br(Ce,Lt,!0)||ge(Lt,!0)}),Gn=function(Tt,Lt){var vt=Lt!=null?Lt:!Ce.includes(Tt);Cn(Tt,vt)},Vn=bM(Te,Vt,Re,_e,Ie,rt,et,Kt,Gn,ae);a.useEffect(function(){Pe(!0)},[]);var gn=a.useMemo(function(){return{_internalRenderMenuItem:re,_internalRenderSubMenuItem:ce}},[re,ce]),Ft=Te!=="horizontal"||S?he:he.map(function(zt,Tt){return a.createElement(ul,{key:zt.key,overflowDisabled:Tt>Fe},zt)}),_t=a.createElement(Hr,ve({id:h,ref:Ie,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:ga,className:G(l,"".concat(l,"-root"),"".concat(l,"-").concat(Te),u,(n={},F(n,"".concat(l,"-inline-collapsed"),Je),F(n,"".concat(l,"-rtl"),Re),n),s),dir:p,style:c,role:"menu",tabIndex:f,data:Ft,renderRawItem:function(Tt){return Tt},renderRawRest:function(Tt){var Lt=Tt.length,vt=Lt?he.slice(-Lt):null;return a.createElement(Xc,{eventKey:E1,title:ne,disabled:Ye,internalPopupClose:Lt===0,popupClassName:Z},vt)},maxCount:Te!=="horizontal"||S?Hr.INVALIDATE:Hr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Tt){Ge(Tt)},onKeyDown:Vn},fe));return a.createElement(Rm.Provider,{value:gn},a.createElement(X3.Provider,{value:_e},a.createElement(ul,{prefixCls:l,rootClassName:s,mode:Te,openKeys:Ce,rtl:Re,disabled:y,motion:xe?K:null,defaultMotions:xe?W:null,activeKey:Vt,onActive:qt,onInactive:Gt,selectedKeys:Et,inlineIndent:A,subMenuOpenDelay:$,subMenuCloseDelay:I,forceSubMenuRender:E,builtinPlacements:Q,triggerSubMenuAction:X,getPopupContainer:Y,itemIcon:ee,expandIcon:te,onItemClick:Sn,onOpenChange:Cn},a.createElement(J3.Provider,{value:st},_t),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(Z3.Provider,{value:He},Se)))))}),wa=qM;wa.Item=ga;wa.SubMenu=Xc;wa.ItemGroup=Hm;wa.Divider=km;var GM={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"};const XM=GM;var UM=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:XM}))},YM=a.forwardRef(UM);const ZM=YM;var QM={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"};const JM=QM;var eN=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:JM}))},tN=a.forwardRef(eN);const Vo=tN,nN=e=>!isNaN(parseFloat(e))&&isFinite(e),aC=a.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var rN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=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}`}})(),aN=a.forwardRef((e,t)=>{const{prefixCls:r,className:n,trigger:o,children:i,defaultCollapsed:l=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:p,onCollapse:h,onBreakpoint:v}=e,C=rN(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=a.useContext(aC),[y,S]=a.useState("collapsed"in e?e.collapsed:l),[x,$]=a.useState(!1);a.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(L,P)=>{"collapsed"in e||S(L),h==null||h(L,P)},I=a.useRef();I.current=L=>{$(L.matches),v==null||v(L.matches),y!==L.matches&&w(L.matches,"responsive")},a.useEffect(()=>{function L(T){return I.current(T)}let P;if(typeof window!="undefined"){const{matchMedia:T}=window;if(T&&p&&p in Mv){P=T(`screen and (max-width: ${Mv[p]})`);try{P.addEventListener("change",L)}catch(_){P.addListener(L)}L(P)}}return()=>{try{P==null||P.removeEventListener("change",L)}catch(T){P==null||P.removeListener(L)}}},[p]),a.useEffect(()=>{const L=oN("ant-sider-");return b.addSider(L),()=>b.removeSider(L)},[]);const E=()=>{w(!y,"clickTrigger")},{getPrefixCls:O}=a.useContext(ke),M=()=>{const L=O("layout-sider",r),P=Xt(C,["collapsed"]),T=y?m:f,_=nN(T)?`${T}px`:String(T),R=parseFloat(String(m||0))===0?a.createElement("span",{onClick:E,className:G(`${L}-zero-width-trigger`,`${L}-zero-width-trigger-${d?"right":"left"}`),style:g},o||a.createElement(ZM,null)):null,H={expanded:d?a.createElement(lo,null):a.createElement(Vo,null),collapsed:d?a.createElement(Vo,null):a.createElement(lo,null)}[y?"collapsed":"expanded"],j=o!==null?R||a.createElement("div",{className:`${L}-trigger`,onClick:E,style:{width:_}},o||H):null,V=Object.assign(Object.assign({},c),{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}),A=G(L,`${L}-${s}`,{[`${L}-collapsed`]:!!y,[`${L}-has-trigger`]:u&&o!==null&&!R,[`${L}-below`]:!!x,[`${L}-zero-width`]:parseFloat(_)===0},n);return a.createElement("aside",Object.assign({className:A},P,{style:V,ref:t}),a.createElement("div",{className:`${L}-children`},i),u||x&&R?j:null)},N=a.useMemo(()=>({siderCollapsed:y}),[y]);return a.createElement(Uc.Provider,{value:N},M())}),iC=aN;var iN={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"};const lN=iN;var sN=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:lN}))},cN=a.forwardRef(sN);const jm=cN,uN=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Us=uN;var dN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:r,dashed:n}=e,o=dN(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=a.useContext(ke),l=i("menu",t),s=G({[`${l}-item-divider-dashed`]:!!n},r);return a.createElement(km,Object.assign({className:s},o))},lC=fN,mN=e=>{var t;const{className:r,children:n,icon:o,title:i,danger:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=a.useContext(Us),m=b=>{const y=a.createElement("span",{className:`${s}-title-content`},n);return(!o||a.isValidElement(n)&&n.type==="span")&&n&&b&&c&&typeof n=="string"?a.createElement("div",{className:`${s}-inline-collapsed-noicon`},n.charAt(0)):y},{siderCollapsed:g}=a.useContext(Uc);let p=i;typeof i=="undefined"?p=c?n:"":i===!1&&(p="");const h={title:p};!g&&!f&&(h.title=null,h.open=!1);const v=sn(n).length;let C=a.createElement(ga,Object.assign({},Xt(e,["title","icon","danger"]),{className:G({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:(o?v+1:v)===1},r),title:typeof i=="string"?i:void 0}),cn(o,{className:G(a.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(f));return d||(C=a.createElement(er,Object.assign({},h,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),C)),C},sC=mN;var gN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{children:r}=e,n=gN(e,["children"]),o=a.useContext(O1),i=a.useMemo(()=>Object.assign(Object.assign({},o),n),[o,n.prefixCls,n.mode,n.selectable,n.rootClassName]),l=v8(r),s=Oo(t,l?r.ref:null);return a.createElement(O1.Provider,{value:i},a.createElement(Ar,{space:!0},l?a.cloneElement(r,{ref:s}):r))}),Nv=O1,vN=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:o,lineWidth:i,lineType:l,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${z(i)} ${l} ${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 ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},pN=e=>{let{componentCls:t,menuArrowOffset:r,calc:n}=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(${z(n(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${z(r)})`}}}}},Pv=e=>Object.assign({},Ao(e)),Rv=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:o,groupTitleColor:i,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:p,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:C,lineType:b,colorSplit:y,itemDisabledColor:S,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:w,dangerItemActiveBg:I,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:M,itemActiveBg:N,menuSubMenuBg:L,horizontalItemSelectedColor:P,horizontalItemSelectedBg:T,horizontalItemBorderRadius:_,horizontalItemHoverBg:R}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:l,[`&${r}-root:focus-visible`]:Object.assign({},Pv(e)),[`${r}-item-group-title`]:{color:i},[`${r}-submenu-selected`]:{[`> ${r}-submenu-title`]:{color:o}},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},Pv(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${S} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:C}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:N}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:N}}},[`${r}-item-danger`]:{color:x,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:$}},[`&${r}-item:active`]:{background:I}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:o,[`&${r}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:E}},[`&${r}-submenu > ${r}`]:{backgroundColor:L},[`&${r}-popup > ${r}`]:{backgroundColor:O},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:O},[`&${r}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${z(u)} solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:u,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:u,borderBottomColor:P}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${z(f)} ${b} ${y}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:s},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${z(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(",")}}}}}},_v=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:o,menuArrowSize:i,marginXS:l,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(i).add(o).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:z(r),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:c},[`> ${t}-item,
+ > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:z(r)},[`${t}-item-group-list ${t}-submenu-title,
+ ${t}-submenu-title`]:{paddingInlineEnd:d}}},hN=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:p,collapsedWidth:h,collapsedIconSize:v}=e,C={height:n,lineHeight:z(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},_v(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},_v(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${z(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,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% - ${z(e.calc(d).div(2).equal())} - ${z(u)})`,textOverflow:"clip",[`
+ ${t}-submenu-arrow,
+ ${t}-submenu-expand-icon
+ `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:v,lineHeight:z(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Rn),{paddingInline:g})}}]},Tv=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:o,motionEaseOut:i,iconCls:l,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding calc(${r} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:s,fontSize:s,transition:[`font-size ${n} ${i}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},gi()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"}}}},Lv=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:o,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${z(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${z(l)})`}}}}},CN=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:l,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:p,menuArrowOffset:h,lineType:v,groupTitleLineHeight:C,groupTitleFontSize:b}=e;return[{"":{[r]:Object.assign(Object.assign({},zr()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),zr()),{marginBottom:0,paddingInlineStart:0,fontSize:n,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",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${z(s)} ${z(c)}`,fontSize:b,lineHeight:C,transition:`all ${o}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`,`padding ${i} ${l}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${o} ${l}`,`padding ${o} ${l}`].join(",")},[`${r}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Tv(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${z(e.calc(n).mul(2).equal())} ${z(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Tv(e)),Lv(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:g},[`${r}-submenu-title::after`]:{transition:`transform ${o} ${l}`}})},"\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}}}),Lv(e)),{[`&-inline-collapsed ${r}-submenu-arrow,
+ &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${z(h)})`},"&::after":{transform:`rotate(45deg) translateX(${z(e.calc(h).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${z(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${z(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${z(h)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},bN=e=>{var t,r,n;const{colorPrimary:o,colorError:i,colorTextDisabled:l,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:p,controlItemBgActive:h,colorBgTextHover:v,controlHeightLG:C,lineHeight:b,colorBgElevated:y,marginXXS:S,padding:x,fontSize:$,controlHeightSM:w,fontSizeLG:I,colorTextLightSolid:E,colorErrorHover:O}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(r=e.activeBarBorderWidth)!==null&&r!==void 0?r:g,L=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,P=new Qt(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:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:g,activeBarBorderWidth:N,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:b,collapsedWidth:C*2,popupBg:y,itemMarginBlock:S,itemPaddingInline:x,horizontalLineHeight:`${C*1.15}px`,iconSize:$,iconMarginInlineEnd:w-$,collapsedIconSize:I,groupTitleFontSize:$,darkItemDisabledColor:new Qt(E).setAlpha(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:M?`calc(100% + ${N}px)`:`calc(100% - ${L*2}px)`}},yN=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Ot("Menu",o=>{const{colorBgElevated:i,controlHeightLG:l,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:v,darkItemHoverColor:C,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:x,popupBg:$,darkPopupBg:w}=o,I=o.calc(s).div(7).mul(5).equal(),E=xt(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(l).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:$}),O=xt(E,{itemColor:c,itemHoverColor:C,groupTitleColor:v,itemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:y,dangerItemSelectedColor:S,dangerItemActiveBg:x,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[CN(E),vN(E),hN(E),Rv(E,"light"),Rv(O,"dark"),pN(E),Tl(E),io(E,"slide-up"),io(E,"slide-down"),yi(E,"zoom-big")]},bN,{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:r,unitless:{groupTitleLineHeight:!0}})(e,t)},SN=e=>{var t;const{popupClassName:r,icon:n,title:o,theme:i}=e,l=a.useContext(Us),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=xi();let f;if(!n)f=c&&!d.length&&o&&typeof o=="string"?a.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):a.createElement("span",{className:`${s}-title-content`},o);else{const p=a.isValidElement(o)&&o.type==="span";f=a.createElement(a.Fragment,null,cn(n,{className:G(a.isValidElement(n)?(t=n.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p?o:a.createElement("span",{className:`${s}-title-content`},o))}const m=a.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[g]=lr("Menu");return a.createElement(Us.Provider,{value:m},a.createElement(Xc,Object.assign({},Xt(e,["icon"]),{title:f,popupClassName:G(s,r,`${s}-${i||u}`),popupStyle:{zIndex:g}})))},uC=SN;var xN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;const n=a.useContext(Nv),o=n||{},{getPrefixCls:i,getPopupContainer:l,direction:s,menu:c}=a.useContext(ke),u=i(),{prefixCls:d,className:f,style:m,theme:g="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:C,rootClassName:b,mode:y,selectable:S,onClick:x,overflowedIndicatorPopupClassName:$}=e,w=xN(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=Xt(w,["collapsedWidth"]);(r=o.validator)===null||r===void 0||r.call(o,{mode:y});const E=$t(function(){var V;x==null||x.apply(void 0,arguments),(V=o.onClick)===null||V===void 0||V.call(o)}),O=o.mode||y,M=S!=null?S:o.selectable,N=a.useMemo(()=>C!==void 0?C:v,[v,C]),L={horizontal:{motionName:`${u}-slide-up`},inline:Ja(u),other:{motionName:`${u}-zoom-big`}},P=i("menu",d||o.prefixCls),T=Ut(P),[_,R,D]=yN(P,T,!n),k=G(`${P}-${g}`,c==null?void 0:c.className,f),H=a.useMemo(()=>{var V,A;if(typeof p=="function"||td(p))return p||null;if(typeof o.expandIcon=="function"||td(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||td(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const K=(V=p!=null?p:o==null?void 0:o.expandIcon)!==null&&V!==void 0?V:c==null?void 0:c.expandIcon;return cn(K,{className:G(`${P}-submenu-expand-icon`,a.isValidElement(K)?(A=K.props)===null||A===void 0?void 0:A.className:void 0)})},[p,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,P]),j=a.useMemo(()=>({prefixCls:P,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:g,mode:O,disableMenuItemTitleTooltip:h}),[P,N,s,h,g]);return _(a.createElement(Nv.Provider,{value:null},a.createElement(Us.Provider,{value:j},a.createElement(wa,Object.assign({getPopupContainer:l,overflowedIndicator:a.createElement(jm,null),overflowedIndicatorPopupClassName:G(P,`${P}-${g}`,$),mode:O,selectable:M,onClick:E},I,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:k,prefixCls:P,direction:s,defaultMotions:L,expandIcon:H,ref:t,rootClassName:G(b,R,o.rootClassName,D,T),_internalComponents:$N})))))}),EN=wN,Gr=a.forwardRef((e,t)=>{const r=a.useRef(null),n=a.useContext(Uc);return a.useImperativeHandle(t,()=>({menu:r.current,focus:o=>{var i;(i=r.current)===null||i===void 0||i.focus(o)}})),a.createElement(EN,Object.assign({ref:r},e,n))});Gr.Item=sC;Gr.SubMenu=uC;Gr.Divider=lC;Gr.ItemGroup=Hm;const IN=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:o}=e,i=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:n,"&:hover":{color:o,backgroundColor:n}}}}}},ON=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:o,sizePopupArrow:i,antCls:l,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:p,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${l}-btn`]:{[`& > ${s}-down, & > ${l}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:g},[`${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"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
+ &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
+ &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
+ &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
+ &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
+ &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:_c},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
+ &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
+ &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
+ &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
+ &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
+ &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Lc},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
+ &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
+ &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Tc},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
+ &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
+ &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Dc}}},Vc(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Mt(e)),{[r]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Nr(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${z(u)} ${z(p)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${z(u)} ${z(p)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Nr(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:`${z(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:g,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${z(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[io(e,"slide-up"),io(e,"slide-down"),ti(e,"move-up"),ti(e,"move-down"),yi(e,"zoom-big")]]},MN=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},zl({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Bl(e)),NN=Ot("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:o}=e,i=xt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[ON(i),IN(i)]},MN,{resetStyle:!1}),Fl=e=>{var t;const{menu:r,arrow:n,prefixCls:o,children:i,trigger:l,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:m,open:g,onOpenChange:p,visible:h,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:S="",overlay:x,transitionName:$}=e,{getPopupContainer:w,getPrefixCls:I,direction:E,dropdown:O}=a.useContext(ke);Yo();const M=a.useMemo(()=>{const Z=I();return $!==void 0?$:S.includes("top")?`${Z}-slide-down`:`${Z}-slide-up`},[I,S,$]),N=a.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:E==="rtl"?"bottomRight":"bottomLeft",[S,E]),L=I("dropdown",o),P=Ut(L),[T,_,R]=NN(L,P),[,D]=An(),k=a.Children.only(i),H=cn(k,{className:G(`${L}-trigger`,{[`${L}-rtl`]:E==="rtl"},k.props.className),disabled:(t=k.props.disabled)!==null&&t!==void 0?t:s}),j=s?[]:l,V=!!(j!=null&&j.includes("contextMenu")),[A,K]=It(!1,{value:g!=null?g:h}),W=$t(Z=>{p==null||p(Z,{source:"trigger"}),v==null||v(Z),K(Z)}),J=G(d,f,_,R,P,O==null?void 0:O.className,{[`${L}-rtl`]:E==="rtl"}),X=Nm({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:D.marginXXS,arrowWidth:n?D.sizePopupArrow:0,borderRadius:D.borderRadius}),Q=a.useCallback(()=>{r!=null&&r.selectable&&(r!=null&&r.multiple)||(p==null||p(!1,{source:"menu"}),K(!1))},[r==null?void 0:r.selectable,r==null?void 0:r.multiple]),ee=()=>{let Z;return r!=null&&r.items?Z=a.createElement(Gr,Object.assign({},r)):typeof x=="function"?Z=x():Z=x,c&&(Z=c(Z)),Z=a.Children.only(typeof Z=="string"?a.createElement("span",null,Z):Z),a.createElement(cC,{prefixCls:`${L}-menu`,rootClassName:G(R,P),expandIcon:a.createElement("span",{className:`${L}-menu-submenu-arrow`},a.createElement(lo,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:Y=>{}},Z)},[te,U]=lr("Dropdown",m==null?void 0:m.zIndex);let ne=a.createElement(G3,Object.assign({alignPoint:V},Xt(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:b,visible:A,builtinPlacements:X,arrow:!!n,overlayClassName:J,prefixCls:L,getPopupContainer:u||w,transitionName:M,trigger:j,overlay:ee,placement:N,onVisibleChange:W,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),m),{zIndex:te})}),H);return te&&(ne=a.createElement(pi.Provider,{value:U},ne)),T(ne)};function PN(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const RN=po(Fl,"dropdown",e=>e,PN),_N=e=>a.createElement(RN,Object.assign({},e),a.createElement("span",null));Fl._InternalPanelDoNotUseOrYouWillBeFired=_N;const dC=e=>{let{children:t}=e;const{getPrefixCls:r}=a.useContext(ke),n=r("breadcrumb");return a.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};dC.__ANT_BREADCRUMB_SEPARATOR=!0;const Bm=dC;var TN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);ot[o]||n)}function fC(e,t,r,n){if(r==null)return null;const{className:o,onClick:i}=t,l=TN(t,["className","onClick"]),s=Object.assign(Object.assign({},en(l,{data:!0,aria:!0})),{onClick:i});return n!==void 0?a.createElement("a",Object.assign({},s,{className:G(`${e}-link`,o),href:n}),r):a.createElement("span",Object.assign({},s,{className:G(`${e}-link`,o)}),r)}function DN(e,t){return(n,o,i,l,s)=>{if(t)return t(n,o,i,l);const c=LN(n,o);return fC(e,n,c,s)}}var M1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:r="/",children:n,menu:o,overlay:i,dropdownProps:l,href:s}=e,u=(d=>{if(o||i){const f=Object.assign({},l);if(o){const m=o||{},{items:g}=m,p=M1(m,["items"]);f.menu=Object.assign(Object.assign({},p),{items:g==null?void 0:g.map((h,v)=>{var{key:C,title:b,label:y,path:S}=h,x=M1(h,["key","title","label","path"]);let $=y!=null?y:b;return S&&($=a.createElement("a",{href:`${s}${S}`},$)),Object.assign(Object.assign({},x),{key:C!=null?C:v,label:$})})})}else i&&(f.overlay=i);return a.createElement(Fl,Object.assign({placement:"bottom"},f),a.createElement("span",{className:`${t}-overlay-link`},d,a.createElement(jl,null)))}return d})(n);return u!=null?a.createElement(a.Fragment,null,a.createElement("li",null,u),r&&a.createElement(Bm,null,r)):null},gC=e=>{const{prefixCls:t,children:r,href:n}=e,o=M1(e,["prefixCls","children","href"]),{getPrefixCls:i}=a.useContext(ke),l=i("breadcrumb",t);return a.createElement(mC,Object.assign({},o,{prefixCls:l}),fC(l,o,r,n))};gC.__ANT_BREADCRUMB_ITEM=!0;const kN=gC,HN=e=>{const{componentCls:t,iconCls:r,calc:n}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${z(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:n(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Nr(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
+ > ${r} + span,
+ > ${r} + a
+ `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${z(e.paddingXXS)}`,marginInline:n(e.marginXXS).mul(-1).equal(),[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},jN=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),BN=Ot("Breadcrumb",e=>{const t=xt(e,{});return HN(t)},jN);var Dv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:l}=i,s=Dv(i,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:l})})}),o}function FN(e,t){return a.useMemo(()=>e||(t?t.map(zN):null),[e,t])}var AN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{if(t===void 0)return t;let r=(t||"").replace(/^\//,"");return Object.keys(e).forEach(n=>{r=r.replace(`:${n}`,e[n])}),r},Yc=e=>{const{prefixCls:t,separator:r="/",style:n,className:o,rootClassName:i,routes:l,items:s,children:c,itemRender:u,params:d={}}=e,f=AN(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:g,breadcrumb:p}=a.useContext(ke);let h;const v=m("breadcrumb",t),[C,b,y]=BN(v),S=FN(s,l),x=DN(v,u);if(S&&S.length>0){const I=[],E=s||l;h=S.map((O,M)=>{const{path:N,key:L,type:P,menu:T,overlay:_,onClick:R,className:D,separator:k,dropdownProps:H}=O,j=VN(d,N);j!==void 0&&I.push(j);const V=L!=null?L:M;if(P==="separator")return a.createElement(Bm,{key:V},k);const A={},K=M===S.length-1;T?A.menu=T:_&&(A.overlay=_);let{href:W}=O;return I.length&&j!==void 0&&(W=`#/${I.join("/")}`),a.createElement(mC,Object.assign({key:V},A,en(O,{data:!0,aria:!0}),{className:D,dropdownProps:H,href:W,separator:K?"":r,onClick:R,prefixCls:v}),x(O,d,E,I,W))})}else if(c){const I=sn(c).length;h=sn(c).map((E,O)=>{if(!E)return E;const M=O===I-1;return cn(E,{separator:M?"":r,key:O})})}const $=G(v,p==null?void 0:p.className,{[`${v}-rtl`]:g==="rtl"},o,i,b,y),w=Object.assign(Object.assign({},p==null?void 0:p.style),n);return C(a.createElement("nav",Object.assign({className:$,style:w},f),a.createElement("ol",null,h)))};Yc.Item=kN;Yc.Separator=Bm;var vC={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ca,function(){return function(r,n){n.prototype.weekday=function(o){var i=this.$locale().weekStart||0,l=this.$W,s=(l25){var d=l(this).startOf(n).add(1,n).date(u),f=l(this).endOf(r);if(d.isBefore(f))return 1}var m=l(this).startOf(n).date(u).startOf(r).subtract(1,"millisecond"),g=this.diff(m,r,!0);return g<0?l(this).startOf("week").week():Math.ceil(g)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(hC);var XN=hC.exports;const UN=Io(XN);var CC={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ca,function(){return function(r,n){n.prototype.weekYear=function(){var o=this.month(),i=this.week(),l=this.year();return i===1&&o===11?l+1:o===0&&i>=52?l-1:l}}})})(CC);var YN=CC.exports;const ZN=Io(YN);var bC={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ca,function(){return function(r,n){var o=n.prototype,i=o.format;o.format=function(l){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(l);var u=this.$utils(),d=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(d)}}})})(bC);var QN=bC.exports;const JN=Io(QN);var yC={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ca,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,l=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(C){this[v]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var b=C.match(/([+-]|\d\d)/g),y=60*b[1]+(+b[2]||0);return y===0?0:b[0]==="+"?-y:y}(v)}],m=function(v){var C=c[v];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(v,C){var b,y=c.meridiem;if(y){for(var S=1;S<=24;S+=1)if(v.indexOf(y(S,0,C))>-1){b=S>12;break}}else b=v===(C?"pm":"PM");return b},p={A:[s,function(v){this.afternoon=g(v,!1)}],a:[s,function(v){this.afternoon=g(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[i,d("day")],Do:[s,function(v){var C=c.ordinal,b=v.match(/\d+/);if(this.day=b[0],C)for(var y=1;y<=31;y+=1)C(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],w:[l,d("week")],ww:[i,d("week")],M:[l,d("month")],MM:[i,d("month")],MMM:[s,function(v){var C=m("months"),b=(m("monthsShort")||C.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(v){var C=m("months").indexOf(v)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function h(v){var C,b;C=v,b=c&&c.formats;for(var y=(v=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,M,N){var L=N&&N.toUpperCase();return M||b[N]||r[N]||b[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,T,_){return T||_.slice(1)})})).match(n),S=y.length,x=0;x-1)return new Date((D==="X"?1e3:1)*R);var j=h(D)(R),V=j.year,A=j.month,K=j.day,W=j.hours,J=j.minutes,X=j.seconds,Q=j.milliseconds,ee=j.zone,te=j.week,U=new Date,ne=K||(V||A?1:U.getDate()),Z=V||U.getFullYear(),Y=0;V&&!A||(Y=A>0?A-1:U.getMonth());var oe,se=W||0,ae=J||0,re=X||0,ce=Q||0;return ee?new Date(Date.UTC(Z,Y,ne,se,ae,re,ce+60*ee.offset*1e3)):k?new Date(Date.UTC(Z,Y,ne,se,ae,re,ce)):(oe=new Date(Z,Y,ne,se,ae,re,ce),te&&(oe=H(oe).week(te).toDate()),oe)}catch(ue){return new Date("")}}($,E,w,b),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),N&&$!=this.format(E)&&(this.$d=new Date("")),c={}}else if(E instanceof Array)for(var P=E.length,T=1;T<=P;T+=1){I[1]=E[T-1];var _=b.apply(this,I);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}T===P&&(this.$d=new Date(""))}else S.call(this,x)}}})})(yC);var eP=yC.exports;const tP=Io(eP);ar.extend(tP);ar.extend(JN);ar.extend(KN);ar.extend(GN);ar.extend(UN);ar.extend(ZN);ar.extend(function(e,t){var r=t.prototype,n=r.format;r.format=function(i){var l=(i||"").replace("Wo","wo");return n.bind(this)(l)}});var nP={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},na=function(t){var r=nP[t];return r||t.split("_")[0]},kv=function(){p8(!1,"Not match any format. Please help to fire a issue about this.")},SC={getNow:function(){var t=ar();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return ar(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var r=t.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,r){return t.add(r,"year")},addMonth:function(t,r){return t.add(r,"month")},addDate:function(t,r){return t.add(r,"day")},setYear:function(t,r){return t.year(r)},setMonth:function(t,r){return t.month(r)},setDate:function(t,r){return t.date(r)},setHour:function(t,r){return t.hour(r)},setMinute:function(t,r){return t.minute(r)},setSecond:function(t,r){return t.second(r)},setMillisecond:function(t,r){return t.millisecond(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return ar().locale(na(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){return r.locale(na(t)).weekday(0)},getWeek:function(t,r){return r.locale(na(t)).week()},getShortWeekDays:function(t){return ar().locale(na(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ar().locale(na(t)).localeData().monthsShort()},format:function(t,r,n){return r.locale(na(t)).format(n)},parse:function(t,r,n){for(var o=na(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length2&&arguments[2]!==void 0?arguments[2]:[],n=a.useState([!1,!1]),o=ie(n,2),i=o[0],l=o[1],s=function(d,f){l(function(m){return nl(m,f,d)})},c=a.useMemo(function(){return i.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!r[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,i,t,r]);return[c,s]}function MC(e,t,r,n,o){var i="",l=[];return e&&l.push(o?"hh":"HH"),t&&l.push("mm"),r&&l.push("ss"),i=l.join(":"),n&&(i+=".SSS"),o&&(i+=" A"),i}function oP(e,t,r,n,o,i){var l=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,g=e.yearFormat,p=e.cellYearFormat,h=e.cellQuarterFormat,v=e.dayFormat,C=e.cellDateFormat,b=MC(t,r,n,o,i);return q(q({},e),{},{fieldDateTimeFormat:l||"YYYY-MM-DD ".concat(b),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:C||v||"D"})}function NC(e,t){var r=t.showHour,n=t.showMinute,o=t.showSecond,i=t.showMillisecond,l=t.use12Hours;return B.useMemo(function(){return oP(e,r,n,o,i,l)},[e,r,n,o,i,l])}function Bi(e,t,r){return r!=null?r:t.some(function(n){return e.includes(n)})}var aP=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function iP(e){var t=Qc(e,aP),r=e.format,n=e.picker,o=null;return r&&(o=r,Array.isArray(o)&&(o=o[0]),o=yt(o)==="object"?o.format:o),n==="time"&&(t.format=o),[t,o]}function lP(e){return e&&typeof e=="string"}function PC(e,t,r,n){return[e,t,r,n].some(function(o){return o!==void 0})}function RC(e,t,r,n,o){var i=t,l=r,s=n;if(!e&&!i&&!l&&!s&&!o)i=!0,l=!0,s=!0;else if(e){var c,u,d,f=[i,l,s].some(function(p){return p===!1}),m=[i,l,s].some(function(p){return p===!0}),g=f?!0:!m;i=(c=i)!==null&&c!==void 0?c:g,l=(u=l)!==null&&u!==void 0?u:g,s=(d=s)!==null&&d!==void 0?d:g}return[i,l,s,o]}function _C(e){var t=e.showTime,r=iP(e),n=ie(r,2),o=n[0],i=n[1],l=t&&yt(t)==="object"?t:{},s=q(q({defaultOpenValue:l.defaultOpenValue||l.defaultValue},o),l),c=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,m=PC(u,d,f,c),g=RC(m,u,d,f,c),p=ie(g,3);return u=p[0],d=p[1],f=p[2],[s,q(q({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),s.format,i]}function TC(e,t,r,n,o){var i=e==="time";if(e==="datetime"||i){for(var l=n,s=wC(e,o,null),c=s,u=[t,r],d=0;d1&&(l=t.addDate(l,-7)),l}function _n(e,t){var r=t.generateConfig,n=t.locale,o=t.format;return e?typeof o=="function"?o(e):r.locale.format(n.locale,e,o):""}function Ys(e,t,r){var n=t,o=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(l,s){r?n=e[l](n,e[o[s]](r)):n=e[l](n,0)}),n}function dP(e,t,r,n,o){var i=$t(function(l,s){return!!(r&&r(l,s)||n&&e.isAfter(n,l)&&!Yn(e,t,n,l,s.type)||o&&e.isAfter(l,o)&&!Yn(e,t,o,l,s.type))});return i}function fP(e,t,r){return a.useMemo(function(){var n=wC(e,t,r),o=Ea(n),i=o[0],l=yt(i)==="object"&&i.type==="mask"?i.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),l]},[e,t,r])}function mP(e,t,r){return typeof e[0]=="function"||r?!0:t}function gP(e,t,r,n){var o=$t(function(i,l){var s=q({type:t},l);if(delete s.activeIndex,!e.isValidate(i)||r&&r(i,s))return!0;if((t==="date"||t==="time")&&n){var c,u=l&&l.activeIndex===1?"end":"start",d=((c=n.disabledTime)===null||c===void 0?void 0:c.call(n,i,u,{from:s.from}))||{},f=d.disabledHours,m=d.disabledMinutes,g=d.disabledSeconds,p=d.disabledMilliseconds,h=n.disabledHours,v=n.disabledMinutes,C=n.disabledSeconds,b=f||h,y=m||v,S=g||C,x=e.getHour(i),$=e.getMinute(i),w=e.getSecond(i),I=e.getMillisecond(i);if(b&&b().includes(x)||y&&y(x).includes($)||S&&S(x,$).includes(w)||p&&p(x,$,w).includes(I))return!0}return!1});return o}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=a.useMemo(function(){var n=e&&Ea(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return r}function kC(e,t){var r=e.generateConfig,n=e.locale,o=e.picker,i=o===void 0?"date":o,l=e.prefixCls,s=l===void 0?"rc-picker":l,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,m=e.order,g=m===void 0?!0:m,p=e.components,h=p===void 0?{}:p,v=e.inputRender,C=e.allowClear,b=e.clearIcon,y=e.needConfirm,S=e.multiple,x=e.format,$=e.inputReadOnly,w=e.disabledDate,I=e.minDate,E=e.maxDate,O=e.showTime,M=e.value,N=e.defaultValue,L=e.pickerValue,P=e.defaultPickerValue,T=gs(M),_=gs(N),R=gs(L),D=gs(P),k=i==="date"&&O?"datetime":i,H=k==="time"||k==="datetime",j=H||S,V=y!=null?y:H,A=_C(e),K=ie(A,4),W=K[0],J=K[1],X=K[2],Q=K[3],ee=NC(n,J),te=a.useMemo(function(){return TC(k,X,Q,W,ee)},[k,X,Q,W,ee]),U=a.useMemo(function(){return q(q({},e),{},{prefixCls:s,locale:ee,picker:i,styles:u,classNames:f,order:g,components:q({input:v},h),clearIcon:sP(s,C,b),showTime:te,value:T,defaultValue:_,pickerValue:R,defaultPickerValue:D},t==null?void 0:t())},[e]),ne=fP(k,ee,x),Z=ie(ne,2),Y=Z[0],oe=Z[1],se=mP(Y,$,S),ae=dP(r,n,w,I,E),re=gP(r,i,ae,te),ce=a.useMemo(function(){return q(q({},U),{},{needConfirm:V,inputReadOnly:se,disabledDate:ae})},[U,V,se,ae]);return[ce,k,j,Y,oe,re]}function vP(e,t,r){var n=It(t,{value:e}),o=ie(n,2),i=o[0],l=o[1],s=B.useRef(e),c=B.useRef(),u=function(){kt.cancel(c.current)},d=$t(function(){l(s.current),r&&i!==s.current&&r(s.current)}),f=$t(function(m,g){u(),s.current=m,m||g?d():c.current=kt(d)});return B.useEffect(function(){return u},[]),[i,f]}function HC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,o=r.every(function(d){return d})?!1:e,i=vP(o,t||!1,n),l=ie(i,2),s=l[0],c=l[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&c(d,f.force)}return[s,u]}function jC(e){var t=a.useRef();return a.useImperativeHandle(e,function(){var r;return{nativeElement:(r=t.current)===null||r===void 0?void 0:r.nativeElement,focus:function(o){var i;(i=t.current)===null||i===void 0||i.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function BC(e,t){return a.useMemo(function(){return e||(t?(Jt(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(r){var n=ie(r,2),o=n[0],i=n[1];return{label:o,value:i}})):[])},[e,t])}function Wm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=a.useRef(t);n.current=t,ca(function(){if(e)n.current(e);else{var o=kt(function(){n.current(e)},r);return function(){kt.cancel(o)}}},[e])}function zC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=a.useState(0),o=ie(n,2),i=o[0],l=o[1],s=a.useState(!1),c=ie(s,2),u=c[0],d=c[1],f=a.useRef([]),m=a.useRef(null),g=function(C){d(C)},p=function(C){return C&&(m.current=C),m.current},h=function(C){var b=f.current,y=new Set(b.filter(function(x){return C[x]||t[x]})),S=b[b.length-1]===0?1:0;return y.size>=2||e[S]?null:S};return Wm(u||r,function(){u||(f.current=[])}),a.useEffect(function(){u&&f.current.push(i)},[u,i]),[u,g,p,i,l,h,f.current]}function pP(e,t,r,n,o,i){var l=r[r.length-1],s=function(u,d){var f=ie(e,2),m=f[0],g=f[1],p=q(q({},d),{},{from:EC(e,r)});return l===1&&t[0]&&m&&!Yn(n,o,m,u,p.type)&&n.isAfter(m,u)||l===0&&t[1]&&g&&!Yn(n,o,g,u,p.type)&&n.isAfter(u,g)?!0:i==null?void 0:i(u,p)};return s}function Xi(e,t,r,n){switch(t){case"date":case"week":return e.addMonth(r,n);case"month":case"quarter":return e.addYear(r,n);case"year":return e.addYear(r,n*10);case"decade":return e.addYear(r,n*100);default:return r}}var rd=[];function FC(e,t,r,n,o,i,l,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:rd,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:rd,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:rd,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,p=l==="time",h=i||0,v=function(R){var D=e.getNow();return p&&(D=Ys(e,D)),c[R]||r[R]||D},C=ie(u,2),b=C[0],y=C[1],S=It(function(){return v(0)},{value:b}),x=ie(S,2),$=x[0],w=x[1],I=It(function(){return v(1)},{value:y}),E=ie(I,2),O=E[0],M=E[1],N=a.useMemo(function(){var _=[$,O][h];return p?_:Ys(e,_,d[h])},[p,$,O,h,e,d]),L=function(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",k=[w,M][h];k(R);var H=[$,O];H[h]=R,f&&(!Yn(e,t,$,H[0],l)||!Yn(e,t,O,H[1],l))&&f(H,{source:D,range:h===1?"end":"start",mode:n})},P=function(R,D){if(s){var k={date:"month",week:"month",month:"year",quarter:"year"},H=k[l];if(H&&!Yn(e,t,R,D,H))return Xi(e,l,D,-1);if(l==="year"&&R){var j=Math.floor(e.getYear(R)/10),V=Math.floor(e.getYear(D)/10);if(j!==V)return Xi(e,l,D,-1)}}return D},T=a.useRef(null);return Dt(function(){if(o&&!c[h]){var _=p?null:e.getNow();if(T.current!==null&&T.current!==h?_=[$,O][h^1]:r[h]?_=h===0?r[0]:P(r[0],r[1]):r[h^1]&&(_=r[h^1]),_){m&&e.isAfter(m,_)&&(_=m);var R=s?Xi(e,l,_,1):_;g&&e.isAfter(R,g)&&(_=s?Xi(e,l,g,-1):g),L(_,"reset")}}},[o,h,r[h]]),a.useEffect(function(){o?T.current=h:T.current=null},[o,h]),Dt(function(){o&&c&&c[h]&&L(c[h],"reset")},[o,h]),[N,L]}function AC(e,t){var r=a.useRef(e),n=a.useState({}),o=ie(n,2),i=o[1],l=function(u){return u&&t!==void 0?t:r.current},s=function(u){r.current=u,i({})};return[l,s,l(!0)]}var hP=[];function VC(e,t,r){var n=function(l){return l.map(function(s){return _n(s,{generateConfig:e,locale:t,format:r[0]})})},o=function(l,s){for(var c=Math.max(l.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,l=[],s=r>=1?r|0:1,c=e;c<=t;c+=s){var u=o.includes(c);(!u||!n)&&l.push({label:zm(c,i),value:c,disabled:u})}return l}function Km(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t||{},o=n.use12Hours,i=n.hourStep,l=i===void 0?1:i,s=n.minuteStep,c=s===void 0?1:s,u=n.secondStep,d=u===void 0?1:u,f=n.millisecondStep,m=f===void 0?100:f,g=n.hideDisabledOptions,p=n.disabledTime,h=n.disabledHours,v=n.disabledMinutes,C=n.disabledSeconds,b=a.useMemo(function(){return r||e.getNow()},[r,e]),y=a.useCallback(function(D){var k=(p==null?void 0:p(D))||{};return[k.disabledHours||h||vs,k.disabledMinutes||v||vs,k.disabledSeconds||C||vs,k.disabledMilliseconds||vs]},[p,h,v,C]),S=a.useMemo(function(){return y(b)},[b,y]),x=ie(S,4),$=x[0],w=x[1],I=x[2],E=x[3],O=a.useCallback(function(D,k,H,j){var V=ps(0,23,l,g,D()),A=o?V.map(function(X){return q(q({},X),{},{label:zm(X.value%12||12,2)})}):V,K=function(Q){return ps(0,59,c,g,k(Q))},W=function(Q,ee){return ps(0,59,d,g,H(Q,ee))},J=function(Q,ee,te){return ps(0,999,m,g,j(Q,ee,te),3)};return[A,K,W,J]},[g,l,o,m,c,d]),M=a.useMemo(function(){return O($,w,I,E)},[O,$,w,I,E]),N=ie(M,4),L=N[0],P=N[1],T=N[2],_=N[3],R=function(k,H){var j=function(){return L},V=P,A=T,K=_;if(H){var W=y(H),J=ie(W,4),X=J[0],Q=J[1],ee=J[2],te=J[3],U=O(X,Q,ee,te),ne=ie(U,4),Z=ne[0],Y=ne[1],oe=ne[2],se=ne[3];j=function(){return Z},V=Y,A=oe,K=se}var ae=bP(k,j,V,A,K,e);return ae};return[R,L,P,T,_]}function yP(e){var t=e.mode,r=e.internalMode,n=e.renderExtraFooter,o=e.showNow,i=e.showTime,l=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=a.useContext(Xr),g=m.prefixCls,p=m.locale,h=m.button,v=h===void 0?"button":h,C=d.getNow(),b=Km(d,i,C),y=ie(b,1),S=y[0],x=n==null?void 0:n(t),$=f(C,{type:t}),w=function(){if(!$){var P=S(C);s(P)}},I="".concat(g,"-now"),E="".concat(I,"-btn"),O=o&&a.createElement("li",{className:I},a.createElement("a",{className:G(E,$&&"".concat(E,"-disabled")),"aria-disabled":$,onClick:w},r==="date"?p.today:p.now)),M=u&&a.createElement("li",{className:"".concat(g,"-ok")},a.createElement(v,{disabled:c,onClick:l},p.ok)),N=(O||M)&&a.createElement("ul",{className:"".concat(g,"-ranges")},O,M);return!x&&!N?null:a.createElement("div",{className:"".concat(g,"-footer")},x&&a.createElement("div",{className:"".concat(g,"-footer-extra")},x),N)}function XC(e,t,r){function n(o,i){var l=o.findIndex(function(c){return Yn(e,t,c,i,r)});if(l===-1)return[].concat(ye(o),[i]);var s=ye(o);return s.splice(l,1),s}return n}var Ia=a.createContext(null);function eu(){return a.useContext(Ia)}function $i(e,t){var r=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.disabledDate,l=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,g=e.pickerValue,p=e.onSelect,h=e.prevIcon,v=e.nextIcon,C=e.superPrevIcon,b=e.superNextIcon,y=n.getNow(),S={now:y,values:m,pickerValue:g,prefixCls:r,disabledDate:i,minDate:l,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:n,onSelect:p,panelType:t,prevIcon:h,nextIcon:v,superPrevIcon:C,superNextIcon:b};return[S,y]}var Bo=a.createContext({});function Al(e){for(var t=e.rowNum,r=e.colNum,n=e.baseDate,o=e.getCellDate,i=e.prefixColumn,l=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,g=e.disabledDate,p=eu(),h=p.prefixCls,v=p.panelType,C=p.now,b=p.disabledDate,y=p.cellRender,S=p.onHover,x=p.hoverValue,$=p.hoverRangeValue,w=p.generateConfig,I=p.values,E=p.locale,O=p.onSelect,M=g||b,N="".concat(h,"-cell"),L=a.useContext(Bo),P=L.onCellDblClick,T=function(A){return I.some(function(K){return K&&Yn(w,E,A,K,v)})},_=[],R=0;R1&&arguments[1]!==void 0?arguments[1]:!1;be(Ce),v==null||v(Ce),pe&&de(Ce)},Se=function(Ce,pe){ee(Ce),pe&&he(pe),de(pe,Ce)},$e=function(Ce){if(re(Ce),he(Ce),Q!==S){var pe=["decade","year"],ge=[].concat(pe,["month"]),Oe={quarter:[].concat(pe,["quarter"]),week:[].concat(ye(ge),["week"]),date:[].concat(ye(ge),["date"])},nt=Oe[S]||ge,Ve=nt.indexOf(Q),Ze=nt[Ve+1];Ze&&Se(Ze,Ce)}},Ne=a.useMemo(function(){var me,Ce;if(Array.isArray(w)){var pe=ie(w,2);me=pe[0],Ce=pe[1]}else me=w;return!me&&!Ce?null:(me=me||Ce,Ce=Ce||me,o.isAfter(me,Ce)?[Ce,me]:[me,Ce])},[w,o]),xe=Fm(I,E,O),Pe=N[te]||RP[te]||tu,Ie=a.useContext(Bo),_e=a.useMemo(function(){return q(q({},Ie),{},{hideHeader:L})},[Ie,L]),Re="".concat(P,"-panel"),Me=Qc(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return a.createElement(Bo.Provider,{value:_e},a.createElement("div",{ref:T,tabIndex:c,className:G(Re,F({},"".concat(Re,"-rtl"),i==="rtl"))},a.createElement(Pe,ve({},Me,{showTime:K,prefixCls:P,locale:V,generateConfig:o,onModeChange:Se,pickerValue:fe,onPickerValueChange:function(Ce){he(Ce,!0)},value:se[0],onSelect:$e,values:se,cellRender:xe,hoverRangeValue:Ne,hoverValue:$}))))}var Ts=a.memo(a.forwardRef(_P));function TP(e){var t=e.picker,r=e.multiplePanel,n=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,l=e.onSubmit,s=e.range,c=e.hoverValue,u=a.useContext(Xr),d=u.prefixCls,f=u.generateConfig,m=a.useCallback(function(b,y){return Xi(f,t,b,y)},[f,t]),g=a.useMemo(function(){return m(n,1)},[n,m]),p=function(y){o(m(y,-1))},h={onCellDblClick:function(){i&&l()}},v=t==="time",C=q(q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?C.hoverRangeValue=c:C.hoverValue=c,r?a.createElement("div",{className:"".concat(d,"-panels")},a.createElement(Bo.Provider,{value:q(q({},h),{},{hideNext:!0})},a.createElement(Ts,C)),a.createElement(Bo.Provider,{value:q(q({},h),{},{hidePrev:!0})},a.createElement(Ts,ve({},C,{pickerValue:g,onPickerValueChange:p})))):a.createElement(Bo.Provider,{value:q({},h)},a.createElement(Ts,C))}function jv(e){return typeof e=="function"?e():e}function LP(e){var t=e.prefixCls,r=e.presets,n=e.onClick,o=e.onHover;return r.length?a.createElement("div",{className:"".concat(t,"-presets")},a.createElement("ul",null,r.map(function(i,l){var s=i.label,c=i.value;return a.createElement("li",{key:l,onClick:function(){n(jv(c))},onMouseEnter:function(){o(jv(c))},onMouseLeave:function(){o(null)}},s)}))):null}function YC(e){var t=e.panelRender,r=e.internalMode,n=e.picker,o=e.showNow,i=e.range,l=e.multiple,s=e.activeOffset,c=s===void 0?0:s,u=e.placement,d=e.presets,f=e.onPresetHover,m=e.onPresetSubmit,g=e.onFocus,p=e.onBlur,h=e.onPanelMouseDown,v=e.direction,C=e.value,b=e.onSelect,y=e.isInvalid,S=e.defaultOpenValue,x=e.onOk,$=e.onSubmit,w=a.useContext(Xr),I=w.prefixCls,E="".concat(I,"-panel"),O=v==="rtl",M=a.useRef(null),N=a.useRef(null),L=a.useState(0),P=ie(L,2),T=P[0],_=P[1],R=a.useState(0),D=ie(R,2),k=D[0],H=D[1],j=function(ae){ae.offsetWidth&&_(ae.offsetWidth)};a.useEffect(function(){if(i){var se,ae=((se=M.current)===null||se===void 0?void 0:se.offsetWidth)||0,re=T-ae;c<=re?H(0):H(c+ae-T)}},[T,c,i]);function V(se){return se.filter(function(ae){return ae})}var A=a.useMemo(function(){return V(Ea(C))},[C]),K=n==="time"&&!A.length,W=a.useMemo(function(){return K?V([S]):A},[K,A,S]),J=K?S:A,X=a.useMemo(function(){return W.length?W.some(function(se){return y(se)}):!0},[W,y]),Q=function(){K&&b(S),x(),$()},ee=a.createElement("div",{className:"".concat(I,"-panel-layout")},a.createElement(LP,{prefixCls:I,presets:d,onClick:m,onHover:f}),a.createElement("div",null,a.createElement(TP,ve({},e,{value:J})),a.createElement(yP,ve({},e,{showNow:l?!1:o,invalid:X,onSubmit:Q}))));t&&(ee=t(ee));var te="".concat(E,"-container"),U="marginLeft",ne="marginRight",Z=a.createElement("div",{onMouseDown:h,tabIndex:-1,className:G(te,"".concat(I,"-").concat(r,"-panel-container")),style:F(F({},O?ne:U,k),O?U:ne,"auto"),onFocus:g,onBlur:p},ee);if(i){var Y=Zc(u,O),oe=xC(Y,O);Z=a.createElement("div",{onMouseDown:h,ref:N,className:G("".concat(I,"-range-wrapper"),"".concat(I,"-").concat(n,"-range-wrapper"))},a.createElement("div",{ref:M,className:"".concat(I,"-range-arrow"),style:F({},oe,c)}),a.createElement(Nn,{onResize:j},Z))}return Z}function ZC(e,t){var r=e.format,n=e.maskFormat,o=e.generateConfig,i=e.locale,l=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,g=e.onInputChange,p=e.onInvalid,h=e.open,v=e.onOpenChange,C=e.onKeyDown,b=e.onChange,y=e.activeHelp,S=e.name,x=e.autoComplete,$=e.id,w=e.value,I=e.invalid,E=e.placeholder,O=e.disabled,M=e.activeIndex,N=e.allHelp,L=e.picker,P=function(V,A){var K=o.locale.parse(i.locale,V,[A]);return K&&o.isValidate(K)?K:null},T=r[0],_=a.useCallback(function(j){return _n(j,{locale:i,format:T,generateConfig:o})},[i,o,T]),R=a.useMemo(function(){return w.map(_)},[w,_]),D=a.useMemo(function(){var j=L==="time"?8:10,V=typeof T=="function"?T(o.getNow()).length:T.length;return Math.max(j,V)+2},[T,L,o]),k=function(V){for(var A=0;A=s&&r<=c)return i;var u=Math.min(Math.abs(r-s),Math.abs(r-c));u0?We:je));var De=Ue+Qe,ze=je-We+1;return String(We+(ze+De-We)%ze)};switch(Ce){case"Backspace":case"Delete":pe="",ge=nt;break;case"ArrowLeft":pe="",Ve(-1);break;case"ArrowRight":pe="",Ve(1);break;case"ArrowUp":pe="",ge=Ze(1);break;case"ArrowDown":pe="",ge=Ze(-1);break;default:isNaN(Number(Ce))||(pe=j+Ce,ge=pe);break}if(pe!==null&&(V(pe),pe.length>=Oe&&(Ve(1),V(""))),ge!==null){var Le=U.slice(0,ae)+zm(ge,Oe)+U.slice(re);ue(Le.slice(0,l.length))}te({})},_e=a.useRef();Dt(function(){if(!(!L||!l||de.current)){if(!Y.match(U)){ue(l);return}return Z.current.setSelectionRange(ae,re),_e.current=kt(function(){Z.current.setSelectionRange(ae,re)}),function(){kt.cancel(_e.current)}}},[Y,l,L,U,W,ae,re,ee,ue]);var Re=l?{onFocus:$e,onBlur:xe,onKeyDown:Ie,onMouseDown:he,onMouseUp:Se,onPaste:be}:{};return a.createElement("div",{ref:ne,className:G(O,F(F({},"".concat(O,"-active"),r&&o),"".concat(O,"-placeholder"),u))},a.createElement(E,ve({ref:Z,"aria-invalid":h,autoComplete:"off"},C,{onKeyDown:Pe,onBlur:Ne},Re,{value:U,onChange:fe})),a.createElement(nu,{type:"suffix",icon:i}),v)}),FP=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],AP=["index"];function VP(e,t){var r=e.id,n=e.clearIcon,o=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,s=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,m=e.onClick,g=e.onClear,p=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var h=e.disabled,v=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var b=e.onActiveOffset,y=e.placement,S=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,$=ut(e,FP),w=C==="rtl",I=a.useContext(Xr),E=I.prefixCls,O=a.useMemo(function(){if(typeof r=="string")return[r];var U=r||{};return[U.start,U.end]},[r]),M=a.useRef(),N=a.useRef(),L=a.useRef(),P=function(ne){var Z;return(Z=[N,L][ne])===null||Z===void 0?void 0:Z.current};a.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(ne){if(yt(ne)==="object"){var Z,Y=ne||{},oe=Y.index,se=oe===void 0?0:oe,ae=ut(Y,AP);(Z=P(se))===null||Z===void 0||Z.focus(ae)}else{var re;(re=P(ne!=null?ne:0))===null||re===void 0||re.focus()}},blur:function(){var ne,Z;(ne=P(0))===null||ne===void 0||ne.blur(),(Z=P(1))===null||Z===void 0||Z.blur()}}});var T=QC($),_=a.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),R=ZC(q(q({},e),{},{id:O,placeholder:_})),D=ie(R,1),k=D[0],H=Zc(y,w),j=xC(H,w),V=H==null?void 0:H.toLowerCase().endsWith("right"),A=a.useState({position:"absolute",width:0}),K=ie(A,2),W=K[0],J=K[1],X=$t(function(){var U=P(s);if(U){var ne=U.nativeElement,Z=ne.offsetWidth,Y=ne.offsetLeft,oe=ne.offsetParent,se=(oe==null?void 0:oe.offsetWidth)||0,ae=V?se-Z-Y:Y;J(function(re){return q(q({},re),{},F({width:Z},j,ae))}),b(ae)}});a.useEffect(function(){X()},[s]);var Q=n&&(p[0]&&!h[0]||p[1]&&!h[1]),ee=x&&!h[0],te=x&&!ee&&!h[1];return a.createElement(Nn,{onResize:X},a.createElement("div",ve({},T,{className:G(E,"".concat(E,"-range"),F(F(F(F({},"".concat(E,"-focused"),c),"".concat(E,"-disabled"),h.every(function(U){return U})),"".concat(E,"-invalid"),v.some(function(U){return U})),"".concat(E,"-rtl"),w),d),style:f,ref:M,onClick:m,onMouseDown:function(ne){var Z=ne.target;Z!==N.current.inputElement&&Z!==L.current.inputElement&&ne.preventDefault(),S==null||S(ne)}}),a.createElement(R1,ve({ref:N},k(0),{autoFocus:ee,"date-range":"start"})),a.createElement("div",{className:"".concat(E,"-range-separator")},l),a.createElement(R1,ve({ref:L},k(1),{autoFocus:te,"date-range":"end"})),a.createElement("div",{className:"".concat(E,"-active-bar"),style:W}),a.createElement(nu,{type:"suffix",icon:o}),Q&&a.createElement(P1,{icon:n,onClear:g})))}var WP=a.forwardRef(VP);function zv(e,t){var r=e!=null?e:t;return Array.isArray(r)?r:[r,r]}function Cs(e){return e===1?"end":"start"}function KP(e,t){var r=kC(e,function(){var Ht=e.disabled,Rt=e.allowEmpty,ct=zv(Ht,!1),Pt=zv(Rt,!1);return{disabled:ct,allowEmpty:Pt}}),n=ie(r,6),o=n[0],i=n[1],l=n[2],s=n[3],c=n[4],u=n[5],d=o.prefixCls,f=o.styles,m=o.classNames,g=o.placement,p=o.defaultValue,h=o.value,v=o.needConfirm,C=o.onKeyDown,b=o.disabled,y=o.allowEmpty,S=o.disabledDate,x=o.minDate,$=o.maxDate,w=o.defaultOpen,I=o.open,E=o.onOpenChange,O=o.locale,M=o.generateConfig,N=o.picker,L=o.showNow,P=o.showToday,T=o.showTime,_=o.mode,R=o.onPanelChange,D=o.onCalendarChange,k=o.onOk,H=o.defaultPickerValue,j=o.pickerValue,V=o.onPickerValueChange,A=o.inputReadOnly,K=o.suffixIcon,W=o.onFocus,J=o.onBlur,X=o.presets,Q=o.ranges,ee=o.components,te=o.cellRender,U=o.dateRender,ne=o.monthCellRender,Z=o.onClick,Y=jC(t),oe=HC(I,w,b,E),se=ie(oe,2),ae=se[0],re=se[1],ce=function(Rt,ct){(b.some(function(Pt){return!Pt})||!Rt)&&re(Rt,ct)},ue=KC(M,O,s,!0,!1,p,h,D,k),fe=ie(ue,5),be=fe[0],de=fe[1],he=fe[2],Se=fe[3],$e=fe[4],Ne=he(),xe=zC(b,y,ae),Pe=ie(xe,7),Ie=Pe[0],_e=Pe[1],Re=Pe[2],Me=Pe[3],me=Pe[4],Ce=Pe[5],pe=Pe[6],ge=function(Rt,ct){_e(!0),W==null||W(Rt,{range:Cs(ct!=null?ct:Me)})},Oe=function(Rt,ct){_e(!1),J==null||J(Rt,{range:Cs(ct!=null?ct:Me)})},nt=a.useMemo(function(){if(!T)return null;var Ht=T.disabledTime,Rt=Ht?function(ct){var Pt=Cs(Me),Wt=EC(Ne,pe,Me);return Ht(ct,Pt,{from:Wt})}:void 0;return q(q({},T),{},{disabledTime:Rt})},[T,Me,Ne,pe]),Ve=It([N,N],{value:_}),Ze=ie(Ve,2),Le=Ze[0],Ke=Ze[1],Qe=Le[Me]||N,ot=Qe==="date"&&nt?"datetime":Qe,Xe=ot===N&&ot!=="time",We=GC(N,Qe,L,P,!0),je=qC(o,be,de,he,Se,b,s,Ie,ae,u),at=ie(je,2),Te=at[0],Ue=at[1],De=pP(Ne,b,pe,M,O,S),ze=OC(Ne,u,y),Je=ie(ze,2),dt=Je[0],it=Je[1],qe=FC(M,O,Ne,Le,ae,Me,i,Xe,H,j,nt==null?void 0:nt.defaultOpenValue,V,x,$),Fe=ie(qe,2),Ge=Fe[0],Ye=Fe[1],tt=$t(function(Ht,Rt,ct){var Pt=nl(Le,Me,Rt);if((Pt[0]!==Le[0]||Pt[1]!==Le[1])&&Ke(Pt),R&&ct!==!1){var Wt=ye(Ne);Ht&&(Wt[Me]=Ht),R(Wt,Pt)}}),mt=function(Rt,ct){return nl(Ne,ct,Rt)},lt=function(Rt,ct){var Pt=Ne;Rt&&(Pt=mt(Rt,Me));var Wt=Ce(Pt);Se(Pt),Te(Me,Wt===null),Wt===null?ce(!1,{force:!0}):ct||Y.current.focus({index:Wt})},ft=function(Rt){var ct,Pt=Rt.target.getRootNode();if(!Y.current.nativeElement.contains((ct=Pt.activeElement)!==null&&ct!==void 0?ct:document.activeElement)){var Wt=b.findIndex(function($n){return!$n});Wt>=0&&Y.current.focus({index:Wt})}ce(!0),Z==null||Z(Rt)},gt=function(){Ue(null),ce(!1,{force:!0})},et=a.useState(null),rt=ie(et,2),Ae=rt[0],He=rt[1],st=a.useState(null),bt=ie(st,2),Nt=bt[0],Vt=bt[1],Kt=a.useMemo(function(){return Nt||Ne},[Ne,Nt]);a.useEffect(function(){ae||Vt(null)},[ae]);var qt=a.useState(0),Gt=ie(qt,2),pt=Gt[0],St=Gt[1],Et=BC(X,Q),rn=function(Rt){Vt(Rt),He("preset")},mn=function(Rt){var ct=Ue(Rt);ct&&ce(!1,{force:!0})},Sn=function(Rt){lt(Rt)},Cn=function(Rt){Vt(Rt?mt(Rt,Me):null),He("cell")},Gn=function(Rt){ce(!0),ge(Rt)},Vn=function(){Re("panel")},gn=function(Rt){var ct=nl(Ne,Me,Rt);Se(ct),!v&&!l&&i===ot&<(Rt)},Ft=function(){ce(!1)},_t=Fm(te,U,ne,Cs(Me)),zt=Ne[Me]||null,Tt=$t(function(Ht){return u(Ht,{activeIndex:Me})}),Lt=a.useMemo(function(){var Ht=en(o,!1),Rt=Xt(o,[].concat(ye(Object.keys(Ht)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Rt},[o]),vt=a.createElement(YC,ve({},Lt,{showNow:We,showTime:nt,range:!0,multiplePanel:Xe,activeOffset:pt,placement:g,disabledDate:De,onFocus:Gn,onBlur:Oe,onPanelMouseDown:Vn,picker:N,mode:Qe,internalMode:ot,onPanelChange:tt,format:c,value:zt,isInvalid:Tt,onChange:null,onSelect:gn,pickerValue:Ge,defaultOpenValue:Ea(T==null?void 0:T.defaultOpenValue)[Me],onPickerValueChange:Ye,hoverValue:Kt,onHover:Cn,needConfirm:v,onSubmit:lt,onOk:$e,presets:Et,onPresetHover:rn,onPresetSubmit:mn,onNow:Sn,cellRender:_t})),ht=function(Rt,ct){var Pt=mt(Rt,ct);Se(Pt)},Yt=function(){Re("input")},on=function(Rt,ct){Re("input"),ce(!0,{inherit:!0}),Me!==ct&&ae&&!v&&l&<(null,!0),me(ct),ge(Rt,ct)},xn=function(Rt,ct){if(ce(!1),!v&&Re()==="input"){var Pt=Ce(Ne);Te(Me,Pt===null)}Oe(Rt,ct)},On=function(Rt,ct){Rt.key==="Tab"&<(null,!0),C==null||C(Rt,ct)},Wn=a.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:M,button:ee.button,input:ee.input}},[d,O,M,ee.button,ee.input]);return Dt(function(){ae&&Me!==void 0&&tt(null,N,!1)},[ae,Me,N]),Dt(function(){var Ht=Re();!ae&&Ht==="input"&&(ce(!1),lt(null,!0)),!ae&&l&&!v&&Ht==="panel"&&(ce(!0),lt())},[ae]),a.createElement(Xr.Provider,{value:Wn},a.createElement($C,ve({},IC(o),{popupElement:vt,popupStyle:f.popup,popupClassName:m.popup,visible:ae,onClose:Ft,range:!0}),a.createElement(WP,ve({},o,{ref:Y,suffixIcon:K,activeIndex:Ie||ae?Me:null,activeHelp:!!Nt,allHelp:!!Nt&&Ae==="preset",focused:Ie,onFocus:on,onBlur:xn,onKeyDown:On,onSubmit:lt,value:Kt,maskFormat:c,onChange:ht,onInputChange:Yt,format:s,inputReadOnly:A,disabled:b,open:ae,onOpenChange:ce,onClick:ft,onClear:gt,invalid:dt,onInvalid:it,onActiveOffset:St}))))}var qP=a.forwardRef(KP);function GP(e){var t=e.prefixCls,r=e.value,n=e.onRemove,o=e.removeIcon,i=o===void 0?"×":o,l=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function g(v,C){return a.createElement("span",{className:G("".concat(f,"-item")),title:typeof v=="string"?v:null},a.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&C&&a.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:C,className:"".concat(f,"-item-remove")},i))}function p(v){var C=l(v),b=function(S){S&&S.stopPropagation(),n(v)};return g(C,b)}function h(v){var C="+ ".concat(v.length," ...");return g(C)}return a.createElement("div",{className:d},a.createElement(Hr,{prefixCls:m,data:r,renderItem:p,renderRest:h,itemKey:function(C){return l(C)},maxCount:c}),!r.length&&a.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var XP=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function UP(e,t){e.id;var r=e.open,n=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,m=e.onClear,g=e.internalPicker,p=e.value,h=e.onChange,v=e.onSubmit;e.onInputChange;var C=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,S=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var $=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,I=e.removeIcon,E=ut(e,XP),O=x==="rtl",M=a.useContext(Xr),N=M.prefixCls,L=a.useRef(),P=a.useRef();a.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(W){var J;(J=P.current)===null||J===void 0||J.focus(W)},blur:function(){var W;(W=P.current)===null||W===void 0||W.blur()}}});var T=QC(E),_=function(W){h([W])},R=function(W){var J=p.filter(function(X){return X&&!Yn(s,l,X,W,g)});h(J),r||v()},D=ZC(q(q({},e),{},{onChange:_}),function(K){var W=K.valueTexts;return{value:W[0]||"",active:i}}),k=ie(D,2),H=k[0],j=k[1],V=!!(n&&p.length&&!y),A=C?a.createElement(a.Fragment,null,a.createElement(GP,{prefixCls:N,value:p,onRemove:R,formatDate:j,maxTagCount:b,disabled:y,removeIcon:I,placeholder:c}),a.createElement("input",{className:"".concat(N,"-multiple-input"),value:p.map(j).join(","),ref:P,readOnly:!0,autoFocus:w}),a.createElement(nu,{type:"suffix",icon:o}),V&&a.createElement(P1,{icon:n,onClear:m})):a.createElement(R1,ve({ref:P},H(),{autoFocus:w,suffixIcon:o,clearIcon:V&&a.createElement(P1,{icon:n,onClear:m}),showActiveCls:!1}));return a.createElement("div",ve({},T,{className:G(N,F(F(F(F(F({},"".concat(N,"-multiple"),C),"".concat(N,"-focused"),i),"".concat(N,"-disabled"),y),"".concat(N,"-invalid"),S),"".concat(N,"-rtl"),O),u),style:d,ref:L,onClick:f,onMouseDown:function(W){var J,X=W.target;X!==((J=P.current)===null||J===void 0?void 0:J.inputElement)&&W.preventDefault(),$==null||$(W)}}),A)}var YP=a.forwardRef(UP);function ZP(e,t){var r=kC(e),n=ie(r,6),o=n[0],i=n[1],l=n[2],s=n[3],c=n[4],u=n[5],d=o,f=d.prefixCls,m=d.styles,g=d.classNames,p=d.order,h=d.defaultValue,v=d.value,C=d.needConfirm,b=d.onChange,y=d.onKeyDown,S=d.disabled,x=d.disabledDate,$=d.minDate,w=d.maxDate,I=d.defaultOpen,E=d.open,O=d.onOpenChange,M=d.locale,N=d.generateConfig,L=d.picker,P=d.showNow,T=d.showToday,_=d.showTime,R=d.mode,D=d.onPanelChange,k=d.onCalendarChange,H=d.onOk,j=d.multiple,V=d.defaultPickerValue,A=d.pickerValue,K=d.onPickerValueChange,W=d.inputReadOnly,J=d.suffixIcon,X=d.removeIcon,Q=d.onFocus,ee=d.onBlur,te=d.presets,U=d.components,ne=d.cellRender,Z=d.dateRender,Y=d.monthCellRender,oe=d.onClick,se=jC(t);function ae(vt){return vt===null?null:j?vt:vt[0]}var re=XC(N,M,i),ce=HC(E,I,[S],O),ue=ie(ce,2),fe=ue[0],be=ue[1],de=function(ht,Yt,on){if(k){var xn=q({},on);delete xn.range,k(ae(ht),ae(Yt),xn)}},he=function(ht){H==null||H(ae(ht))},Se=KC(N,M,s,!1,p,h,v,de,he),$e=ie(Se,5),Ne=$e[0],xe=$e[1],Pe=$e[2],Ie=$e[3],_e=$e[4],Re=Pe(),Me=zC([S]),me=ie(Me,4),Ce=me[0],pe=me[1],ge=me[2],Oe=me[3],nt=function(ht){pe(!0),Q==null||Q(ht,{})},Ve=function(ht){pe(!1),ee==null||ee(ht,{})},Ze=It(L,{value:R}),Le=ie(Ze,2),Ke=Le[0],Qe=Le[1],ot=Ke==="date"&&_?"datetime":Ke,Xe=GC(L,Ke,P,T),We=b&&function(vt,ht){b(ae(vt),ae(ht))},je=qC(q(q({},o),{},{onChange:We}),Ne,xe,Pe,Ie,[],s,Ce,fe,u),at=ie(je,2),Te=at[1],Ue=OC(Re,u),De=ie(Ue,2),ze=De[0],Je=De[1],dt=a.useMemo(function(){return ze.some(function(vt){return vt})},[ze]),it=function(ht,Yt){if(K){var on=q(q({},Yt),{},{mode:Yt.mode[0]});delete on.range,K(ht[0],on)}},qe=FC(N,M,Re,[Ke],fe,Oe,i,!1,V,A,Ea(_==null?void 0:_.defaultOpenValue),it,$,w),Fe=ie(qe,2),Ge=Fe[0],Ye=Fe[1],tt=$t(function(vt,ht,Yt){if(Qe(ht),D&&Yt!==!1){var on=vt||Re[Re.length-1];D(on,ht)}}),mt=function(){Te(Pe()),be(!1,{force:!0})},lt=function(ht){!S&&!se.current.nativeElement.contains(document.activeElement)&&se.current.focus(),be(!0),oe==null||oe(ht)},ft=function(){Te(null),be(!1,{force:!0})},gt=a.useState(null),et=ie(gt,2),rt=et[0],Ae=et[1],He=a.useState(null),st=ie(He,2),bt=st[0],Nt=st[1],Vt=a.useMemo(function(){var vt=[bt].concat(ye(Re)).filter(function(ht){return ht});return j?vt:vt.slice(0,1)},[Re,bt,j]),Kt=a.useMemo(function(){return!j&&bt?[bt]:Re.filter(function(vt){return vt})},[Re,bt,j]);a.useEffect(function(){fe||Nt(null)},[fe]);var qt=BC(te),Gt=function(ht){Nt(ht),Ae("preset")},pt=function(ht){var Yt=j?re(Pe(),ht):[ht],on=Te(Yt);on&&!j&&be(!1,{force:!0})},St=function(ht){pt(ht)},Et=function(ht){Nt(ht),Ae("cell")},rn=function(ht){be(!0),nt(ht)},mn=function(ht){ge("panel");var Yt=j?re(Pe(),ht):[ht];Ie(Yt),!C&&!l&&i===ot&&mt()},Sn=function(){be(!1)},Cn=Fm(ne,Z,Y),Gn=a.useMemo(function(){var vt=en(o,!1),ht=Xt(o,[].concat(ye(Object.keys(vt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return q(q({},ht),{},{multiple:o.multiple})},[o]),Vn=a.createElement(YC,ve({},Gn,{showNow:Xe,showTime:_,disabledDate:x,onFocus:rn,onBlur:Ve,picker:L,mode:Ke,internalMode:ot,onPanelChange:tt,format:c,value:Re,isInvalid:u,onChange:null,onSelect:mn,pickerValue:Ge,defaultOpenValue:_==null?void 0:_.defaultOpenValue,onPickerValueChange:Ye,hoverValue:Vt,onHover:Et,needConfirm:C,onSubmit:mt,onOk:_e,presets:qt,onPresetHover:Gt,onPresetSubmit:pt,onNow:St,cellRender:Cn})),gn=function(ht){Ie(ht)},Ft=function(){ge("input")},_t=function(ht){ge("input"),be(!0,{inherit:!0}),nt(ht)},zt=function(ht){be(!1),Ve(ht)},Tt=function(ht,Yt){ht.key==="Tab"&&mt(),y==null||y(ht,Yt)},Lt=a.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:N,button:U.button,input:U.input}},[f,M,N,U.button,U.input]);return Dt(function(){fe&&Oe!==void 0&&tt(null,L,!1)},[fe,Oe,L]),Dt(function(){var vt=ge();!fe&&vt==="input"&&(be(!1),mt()),!fe&&l&&!C&&vt==="panel"&&(be(!0),mt())},[fe]),a.createElement(Xr.Provider,{value:Lt},a.createElement($C,ve({},IC(o),{popupElement:Vn,popupStyle:m.popup,popupClassName:g.popup,visible:fe,onClose:Sn}),a.createElement(YP,ve({},o,{ref:se,suffixIcon:J,removeIcon:X,activeHelp:!!bt,allHelp:!!bt&&rt==="preset",focused:Ce,onFocus:_t,onBlur:zt,onKeyDown:Tt,onSubmit:mt,value:Kt,maskFormat:c,onChange:gn,onInputChange:Ft,internalPicker:i,format:s,inputReadOnly:W,disabled:S,open:fe,onOpenChange:be,onClick:lt,onClear:ft,invalid:dt,onInvalid:function(ht){Je(ht,0)}}))))}var QP=a.forwardRef(ZP);const JC=a.createContext(null),JP=JC.Provider,e4=a.createContext(null),eR=e4.Provider;var tR=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],t4=a.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,l=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,g=e.onChange,p=ut(e,tR),h=a.useRef(null),v=a.useRef(null),C=It(u,{value:l}),b=ie(C,2),y=b[0],S=b[1];a.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:v.current}});var x=G(n,o,F(F({},"".concat(n,"-checked"),y),"".concat(n,"-disabled"),s)),$=function(I){s||("checked"in e||S(I.target.checked),g==null||g({target:q(q({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return a.createElement("span",{className:x,title:m,style:i,ref:v},a.createElement("input",ve({},p,{className:"".concat(n,"-input"),ref:h,onChange:$,disabled:s,checked:!!y,type:f})),a.createElement("span",{className:"".concat(n,"-inner")}))});const nR=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},Mt(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},rR=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:o,motionDurationSlow:i,motionDurationMid:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:g,dotColorDisabled:p,lineType:h,radioColor:v,radioBgColor:C,calc:b}=e,y=`${t}-inner`,x=b(o).sub(b(4).mul(2)),$=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Mt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,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:`${z(d)} ${h} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
+ &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Ao(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:$,height:$,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{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`]:{[y]:{"&::after":{transform:`scale(${b(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},oR=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:o,lineType:i,colorBorder:l,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:g,controlHeightSM:p,paddingXS:h,borderRadius:v,borderRadiusSM:C,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:S,colorTextDisabled:x,colorBgContainerDisabled:$,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:I,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:M,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:P,calc:T}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:z(T(r).sub(T(o).mul(2)).equal()),background:f,border:`${z(o)} ${i} ${l}`,borderBlockStartWidth:T(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:T(o).mul(-1).equal(),insetInlineStart:T(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:l,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${z(o)} ${i} ${l}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${n}-group-large &`]:{height:g,fontSize:m,lineHeight:z(T(g).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${n}-group-small &`]:{height:p,paddingInline:T(h).sub(o).equal(),paddingBlock:0,lineHeight:z(T(p).sub(T(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({},Ao(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:S,background:N,borderColor:N,"&:hover":{color:S,background:L,borderColor:L},"&:active":{color:S,background:P,borderColor:P}},"&-disabled":{color:x,backgroundColor:$,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:$,borderColor:l}},[`&-disabled${n}-button-wrapper-checked`]:{color:I,backgroundColor:w,borderColor:l,boxShadow:"none"}}}},aR=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:o,fontSizeLG:i,colorText:l,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:p}=e,h=4,v=i,C=t?v-h*2:v-(h+o)*2;return{radioSize:v,dotSize:C,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:l,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:r-o,wrapperMarginInlineEnd:n,radioColor:t?f:p,radioBgColor:t?s:f}},n4=Ot("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${z(r)} ${t}`,i=xt(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[nR(i),rR(i),oR(i)]},aR,{unitless:{radioSize:!0,dotSize:!0}});var iR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const o=a.useContext(JC),i=a.useContext(e4),{getPrefixCls:l,direction:s,radio:c}=a.useContext(ke),u=a.useRef(null),d=yn(t,u),{isFormItemInput:f}=a.useContext(dn),m=P=>{var T,_;(T=e.onChange)===null||T===void 0||T.call(e,P),(_=o==null?void 0:o.onChange)===null||_===void 0||_.call(o,P)},{prefixCls:g,className:p,rootClassName:h,children:v,style:C,title:b}=e,y=iR(e,["prefixCls","className","rootClassName","children","style","title"]),S=l("radio",g),x=((o==null?void 0:o.optionType)||i)==="button",$=x?`${S}-button`:S,w=Ut(S),[I,E,O]=n4(S,w),M=Object.assign({},y),N=a.useContext(Fn);o&&(M.name=o.name,M.onChange=m,M.checked=e.value===o.value,M.disabled=(r=M.disabled)!==null&&r!==void 0?r:o.disabled),M.disabled=(n=M.disabled)!==null&&n!==void 0?n:N;const L=G(`${$}-wrapper`,{[`${$}-wrapper-checked`]:M.checked,[`${$}-wrapper-disabled`]:M.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:f},c==null?void 0:c.className,p,h,E,O,w);return I(a.createElement(Pl,{component:"Radio",disabled:M.disabled},a.createElement("label",{className:L,style:Object.assign(Object.assign({},c==null?void 0:c.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},a.createElement(t4,Object.assign({},M,{className:G(M.className,{[Ic]:!x}),type:"radio",prefixCls:$,ref:d})),v!==void 0?a.createElement("span",null,v):null)))},sR=a.forwardRef(lR),Zs=sR,cR=a.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=a.useContext(ke),{prefixCls:o,className:i,rootClassName:l,options:s,buttonStyle:c="outline",disabled:u,children:d,size:f,style:m,id:g,optionType:p,name:h,defaultValue:v,value:C,onChange:b,onMouseEnter:y,onMouseLeave:S,onFocus:x,onBlur:$}=e,[w,I]=It(v,{value:C}),E=a.useCallback(H=>{const j=w,V=H.target.value;"value"in e||I(V),V!==j&&(b==null||b(H))},[w,I,b]),O=r("radio",o),M=`${O}-group`,N=Ut(O),[L,P,T]=n4(O,N);let _=d;s&&s.length>0&&(_=s.map(H=>typeof H=="string"||typeof H=="number"?a.createElement(Zs,{key:H.toString(),prefixCls:O,disabled:u,value:H,checked:w===H},H):a.createElement(Zs,{key:`radio-group-value-options-${H.value}`,prefixCls:O,disabled:H.disabled||u,value:H.value,checked:w===H.value,title:H.title,style:H.style,id:H.id,required:H.required},H.label)));const R=un(f),D=G(M,`${M}-${c}`,{[`${M}-${R}`]:R,[`${M}-rtl`]:n==="rtl"},i,l,P,T,N),k=a.useMemo(()=>({onChange:E,value:w,disabled:u,name:h,optionType:p}),[E,w,u,h,p]);return L(a.createElement("div",Object.assign({},en(e,{aria:!0,data:!0}),{className:D,style:m,onMouseEnter:y,onMouseLeave:S,onFocus:x,onBlur:$,id:g,ref:t}),a.createElement(JP,{value:k},_)))}),r4=a.memo(cR);var uR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r}=a.useContext(ke),{prefixCls:n}=e,o=uR(e,["prefixCls"]),i=r("radio",n);return a.createElement(eR,{value:"button"},a.createElement(Zs,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},_1=a.forwardRef(dR),ru=Zs;ru.Button=_1;ru.Group=r4;ru.__ANT_RADIO=!0;const Vl=ru,fR=10,mR=20;function gR(e){const{fullscreen:t,validRange:r,generateConfig:n,locale:o,prefixCls:i,value:l,onChange:s,divRef:c}=e,u=n.getYear(l||n.getNow());let d=u-fR,f=d+mR;r&&(d=n.getYear(r[0]),f=n.getYear(r[1])+1);const m=o&&o.year==="年"?"年":"",g=[];for(let p=d;p{let h=n.setYear(l,p);if(r){const[v,C]=r,b=n.getYear(h),y=n.getMonth(h);b===n.getYear(C)&&y>n.getMonth(C)&&(h=n.setMonth(h,n.getMonth(C))),b===n.getYear(v)&&yc.current})}function vR(e){const{prefixCls:t,fullscreen:r,validRange:n,value:o,generateConfig:i,locale:l,onChange:s,divRef:c}=e,u=i.getMonth(o||i.getNow());let d=0,f=11;if(n){const[p,h]=n,v=i.getYear(o);i.getYear(h)===v&&(f=i.getMonth(h)),i.getYear(p)===v&&(d=i.getMonth(p))}const m=l.shortMonths||i.locale.getShortMonths(l.locale),g=[];for(let p=d;p<=f;p+=1)g.push({label:m[p],value:p});return a.createElement(Bn,{size:r?void 0:"small",className:`${t}-month-select`,value:u,options:g,onChange:p=>{s(i.setMonth(o,p))},getPopupContainer:()=>c.current})}function pR(e){const{prefixCls:t,locale:r,mode:n,fullscreen:o,onModeChange:i}=e;return a.createElement(r4,{onChange:l=>{let{target:{value:s}}=l;i(s)},value:n,size:o?void 0:"small",className:`${t}-mode-switch`},a.createElement(_1,{value:"month"},r.month),a.createElement(_1,{value:"year"},r.year))}function hR(e){const{prefixCls:t,fullscreen:r,mode:n,onChange:o,onModeChange:i}=e,l=a.useRef(null),s=a.useContext(dn),c=a.useMemo(()=>Object.assign(Object.assign({},s),{isFormItemInput:!1}),[s]),u=Object.assign(Object.assign({},e),{fullscreen:r,divRef:l});return a.createElement("div",{className:`${t}-header`,ref:l},a.createElement(dn.Provider,{value:c},a.createElement(gR,Object.assign({},u,{onChange:d=>{o(d,"year")}})),n==="month"&&a.createElement(vR,Object.assign({},u,{onChange:d=>{o(d,"month")}}))),a.createElement(pR,Object.assign({},u,{onModeChange:i})))}function Ei(e){return xt(e,{inputAffixPadding:e.paddingXXS})}const Ii=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:l,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:p,controlOutlineWidth:h,controlOutline:v,colorErrorOutline:C,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-r*n)/2*10)/10-o,0),paddingBlockLG:Math.ceil((l-s*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:p,hoverBorderColor:g,activeShadow:`0 0 0 ${h}px ${v}`,errorActiveShadow:`0 0 0 ${h}px ${C}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},CR=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Wl=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({},CR(xt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qm=(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}}),Fv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ou=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Wl(e))}),Fv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Fv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Av=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),o4=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Av(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Av(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Wl(e))}})}),au=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},a4=(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}}),Vv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},a4(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),iu=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a4(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Wl(e))}),Vv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Vv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Wv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),i4=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:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Wv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Wv(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:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),lu=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),l4=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${z(t)} ${z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Gm=e=>({padding:`${z(e.paddingBlockSM)} ${z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),pa=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${z(e.paddingBlock)} ${z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},lu(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({},l4(e)),"&-sm":Object.assign({},Gm(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),s4=e=>{const{componentCls:t,antCls:r}=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({},l4(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Gm(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},zr()),{[`${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,
+ & > ${r}-picker-range
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
+ & > ${r}-select-auto-complete ${t},
+ & > ${r}-cascader-picker ${t},
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
+ & > ${r}-select:first-child > ${r}-select-selector,
+ & > ${r}-select-auto-complete:first-child ${t},
+ & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
+ & > ${r}-select:last-child > ${r}-select-selector,
+ & > ${r}-cascader-picker:last-child ${t},
+ & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},bR=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,l=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),pa(e)),ou(e)),iu(e)),au(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},yR=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 ${z(e.inputAffixPadding)}`}}}},SR=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:l,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},pa(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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),yR(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:l}}}),[u]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},xR=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Mt(e)),s4(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},o4(e)),i4(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}}})})}},$R=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-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,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-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}}}}},wR=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{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${n}-has-feedback ${t}
+ `]:{paddingInlineEnd:r},[`&-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.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ER=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Xm=Ot("Input",e=>{const t=xt(e,Ei(e));return[bR(t),wR(t),SR(t),xR(t),$R(t),ER(t),Sa(t)]},Ii,{resetFont:!1}),ad=(e,t)=>{const{componentCls:r,controlHeight:n}=e,o=t?`${r}-${t}`:"",i=N3(e);return[{[`${r}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:n,[`${r}-selection-item`]:{height:i.itemHeight,lineHeight:z(i.itemLineHeight)}}}]},IR=e=>{const{componentCls:t,calc:r,lineWidth:n}=e,o=xt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=xt(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[ad(o,"small"),ad(e),ad(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},P3(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},OR=e=>{const{pickerCellCls:t,pickerCellInnerCls:r,cellHeight:n,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:l,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:g,colorFillSecondary:p}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:z(n),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view),
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[r]:{background:l}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${z(s)} ${c} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
+ &-in-view${t}-range-start,
+ &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
+ &-in-view${t}-range-start,
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${r}`]:{color:f,background:u},[`&${t}-disabled ${r}`]:{background:p}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${r}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:m,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${r}::before`]:{borderColor:m}}},c4=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:l,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:g,colorPrimary:p,colorTextHeading:h,colorSplit:v,pickerControlIconBorderWidth:C,colorIcon:b,textHeight:y,motionDurationMid:S,colorIconHover:x,fontWeightStrong:$,cellHeight:w,pickerCellPaddingVertical:I,colorTextDisabled:E,colorText:O,fontSize:M,motionDurationSlow:N,withoutTimeCellHeight:L,pickerQuarterPanelContentHeight:P,borderRadiusSM:T,colorTextLightSolid:_,cellHoverBg:R,timeColumnHeight:D,timeColumnWidth:k,timeCellHeight:H,controlItemBgActive:j,marginXXS:V,pickerDatePanelPaddingHorizontal:A,pickerControlIconMargin:K}=e,W=e.calc(l).mul(7).add(e.calc(A).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:g,outline:"none","&-focused":{borderColor:p},"&-rtl":{[`${t}-prev-icon,
+ ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
+ ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${z(c)}`,color:h,borderBottom:`${z(f)} ${m} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:z(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:$,lineHeight:z(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:p}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${z(C)} 0`,borderInlineWidth:`${z(C)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:K,insetInlineStart:K,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${z(C)} 0`,borderInlineWidth:`${z(C)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(I).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${z(I)} 0`,color:E,cursor:"pointer","&-in-view":{color:O}},OR(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(L).mul(4).equal()},[n]:{padding:`0 ${z(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:P}},"&-decade-panel":{[n]:{padding:`0 ${z(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${z(c)}`},[n]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${z(c)} ${z(A)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${n},
+ &-selected ${n},
+ ${n}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:T,borderEndStartRadius:T},"&:last-child:before":{borderStartEndRadius:T,borderEndEndRadius:T}},"&:hover td":{"&:before":{background:R}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${r}`]:{"&:before":{background:p},[`&${t}-cell-week`]:{color:new Qt(_).setAlpha(.5).toHexString()},[n]:{color:_}}},"&-range-hover td:before":{background:j}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${z(c)} ${z(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${z(f)} ${m} ${v}`},[`${t}-date-panel,
+ ${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel,
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:k,margin:`${z(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(H).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${z(f)} ${m} ${v}`},"&-active":{background:new Qt(j).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(k).sub(e.calc(V).mul(2)).equal(),height:H,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(k).sub(H).div(2).equal(),color:O,lineHeight:z(H),borderRadius:T,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:R}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:j}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}},MR=e=>{const{componentCls:t,textHeight:r,lineWidth:n,paddingSM:o,antCls:i,colorPrimary:l,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${z(n)} ${u} ${d}`,"&-extra":{padding:`0 ${z(o)}`,lineHeight:z(e.calc(r).sub(e.calc(n).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${z(n)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:z(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:z(e.calc(r).sub(e.calc(n).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:l,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(n).mul(2).equal(),marginInlineStart:"auto"}}}}},u4=e=>{const{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(n).div(2)).equal()}},d4=e=>{const{colorBgContainerDisabled:t,controlHeight:r,controlHeightSM:n,controlHeightLG:o,paddingXXS:i,lineWidth:l}=e,s=i*2,c=l*2,u=Math.min(r-s,r-c),d=Math.min(n-s,n-c),f=Math.min(o-s,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Qt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Qt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:n*1.5,cellHeight:n,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},NR=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ii(e)),d4(e)),Bl(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),PR=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},ou(e)),iu(e)),au(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},id=(e,t,r,n)=>{const o=e.calc(r).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),l=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${z(i)} ${z(n)} ${z(l)}`}},RR=e=>{const{componentCls:t,colorError:r,colorWarning:n}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:n}}}}},_R=e=>{const{componentCls:t,antCls:r,controlHeight:n,paddingInline:o,lineWidth:i,lineType:l,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:m,fontSizeLG:g,controlHeightSM:p,paddingInlineSM:h,paddingXS:v,marginXS:C,colorTextDescription:b,lineWidthBold:y,colorPrimary:S,motionDurationSlow:x,zIndexPopup:$,paddingXXS:w,sizePopupArrow:I,colorBgElevated:E,borderRadiusLG:O,boxShadowSecondary:M,borderRadiusSM:N,colorSplit:L,cellHoverBg:P,presetsWidth:T,presetsMaxWidth:_,boxShadowPopoverArrow:R,fontHeight:D,fontHeightLG:k,lineHeightLG:H}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Mt(e)),id(e,n,D,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},lu(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},id(e,m,k,o)),{[`${t}-input > input`]:{fontSize:g,lineHeight:H}}),"&-small":Object.assign({},id(e,p,D,h)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:d,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:S,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${z(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:h}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Mt(e)),c4(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
+ &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
+ &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topLeft,
+ &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topRight,
+ &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topLeft,
+ &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Lc},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
+ &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
+ &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
+ &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:_c},[`&${r}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topLeft,
+ &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Dc},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
+ &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Tc},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},k3(e,E,R)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:E,borderRadius:O,boxShadow:M,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:T,maxWidth:_,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${z(i)} ${l} ${L}`,li:Object.assign(Object.assign({},Rn),{borderRadius:N,paddingInline:v,paddingBlock:e.calc(p).sub(D).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:C},"&:hover":{background:P}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${z(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},io(e,"slide-up"),io(e,"slide-down"),ti(e,"move-up"),ti(e,"move-down")]},f4=Ot("DatePicker",e=>{const t=xt(Ei(e),u4(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[MR(t),_R(t),PR(t),RR(t),IR(t),Sa(e,{focusElCls:`${e.componentCls}-focused`})]},NR),TR=e=>{const{calendarCls:t,componentCls:r,fullBg:n,fullPanelBg:o,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},c4(e)),Mt(e)),{background:n,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${z(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${r}-panel`]:{background:o,border:0,borderTop:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${r}-month-panel, ${r}-date-panel`]:{width:"auto"},[`${r}-body`]:{padding:`${z(e.paddingXS)} 0`},[`${r}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${r}-panel`]:{borderRadius:`0 0 ${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)}`},[`${r}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:z(e.weekHeight)}},[`${r}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${r}-panel`]:{display:"block",width:"100%",textAlign:"end",background:n,border:0,[`${r}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:z(e.weekHeight)}}},[`${r}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${r}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${z(e.calc(e.marginXS).div(2).equal())}`,padding:`${z(e.calc(e.paddingXS).div(2).equal())} ${z(e.paddingXS)} 0`,border:0,borderTop:`${z(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:z(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${z(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${z(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},LR=e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},d4(e)),DR=Ot("Calendar",e=>{const t=`${e.componentCls}-calendar`,r=xt(e,u4(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[TR(r)]},LR),m4=(e,t,r)=>{const{getYear:n}=r;return e&&t&&n(e)===n(t)},T1=(e,t,r)=>{const{getMonth:n}=r;return m4(e,t,r)&&n(e)===n(t)},Kv=(e,t,r)=>{const{getDate:n}=r;return T1(e,t,r)&&n(e)===n(t)},g4=e=>r=>{const{prefixCls:n,className:o,rootClassName:i,style:l,dateFullCellRender:s,dateCellRender:c,monthFullCellRender:u,monthCellRender:d,cellRender:f,fullCellRender:m,headerRender:g,value:p,defaultValue:h,disabledDate:v,mode:C,validRange:b,fullscreen:y=!0,onChange:S,onPanelChange:x,onSelect:$}=r,{getPrefixCls:w,direction:I,calendar:E}=a.useContext(ke),O=w("picker",n),M=`${O}-calendar`,[N,L,P]=DR(O,M),T=e.getNow(),[_,R]=It(()=>p||e.getNow(),{defaultValue:h,value:p}),[D,k]=It("month",{value:C}),H=a.useMemo(()=>D==="year"?"month":"date",[D]),j=a.useCallback(U=>(b?e.isAfter(b[0],U)||e.isAfter(U,b[1]):!1)||!!(v!=null&&v(U)),[v,b]),V=(U,ne)=>{x==null||x(U,ne)},A=U=>{R(U),Kv(U,_,e)||((H==="date"&&!T1(U,_,e)||H==="month"&&!m4(U,_,e))&&V(U,D),S==null||S(U))},K=U=>{k(U),V(_,U)},W=(U,ne)=>{A(U),$==null||$(U,{source:ne})},J=a.useCallback((U,ne)=>m?m(U,ne):s?s(U):a.createElement("div",{className:G(`${O}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:Kv(T,U,e)})},a.createElement("div",{className:`${M}-date-value`},String(e.getDate(U)).padStart(2,"0")),a.createElement("div",{className:`${M}-date-content`},f?f(U,ne):c==null?void 0:c(U))),[s,c,f,m]),X=a.useCallback((U,ne)=>{if(m)return m(U,ne);if(u)return u(U);const Z=ne.locale.shortMonths||e.locale.getShortMonths(ne.locale.locale);return a.createElement("div",{className:G(`${O}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:T1(T,U,e)})},a.createElement("div",{className:`${M}-date-value`},Z[e.getMonth(U)]),a.createElement("div",{className:`${M}-date-content`},f?f(U,ne):d==null?void 0:d(U)))},[u,d,f,m]),[Q]=Dn("Calendar",Kf),ee=Object.assign(Object.assign({},Q),r.locale),te=(U,ne)=>{if(ne.type==="date")return J(U,ne);if(ne.type==="month")return X(U,Object.assign(Object.assign({},ne),{locale:ee==null?void 0:ee.lang}))};return N(a.createElement("div",{className:G(M,{[`${M}-full`]:y,[`${M}-mini`]:!y,[`${M}-rtl`]:I==="rtl"},E==null?void 0:E.className,o,i,L,P),style:Object.assign(Object.assign({},E==null?void 0:E.style),l)},g?g({value:_,type:D,onChange:U=>{W(U,"customize")},onTypeChange:K}):a.createElement(hR,{prefixCls:M,value:_,generateConfig:e,mode:D,fullscreen:y,locale:ee==null?void 0:ee.lang,validRange:b,onChange:W,onModeChange:K}),a.createElement(Ts,{value:_,prefixCls:O,locale:ee==null?void 0:ee.lang,generateConfig:e,cellRender:te,onSelect:U=>{W(U,H)},mode:H,picker:H,disabledDate:j,hideHeader:!0})))},Um=g4(SC);Um.generateCalendar=g4;var kR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const HR=kR;var jR=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:HR}))},BR=a.forwardRef(jR);const zR=BR,su=a.createContext(null);var FR=function(t){var r=t.activeTabOffset,n=t.horizontal,o=t.rtl,i=t.indicator,l=i===void 0?{}:i,s=l.size,c=l.align,u=c===void 0?"center":c,d=a.useState(),f=ie(d,2),m=f[0],g=f[1],p=a.useRef(),h=B.useCallback(function(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function v(){kt.cancel(p.current)}return a.useEffect(function(){var C={};if(r)if(n){C.width=h(r.width);var b=o?"right":"left";u==="start"&&(C[b]=r[b]),u==="center"&&(C[b]=r[b]+r.width/2,C.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[b]=r[b]+r.width,C.transform="translateX(-100%)")}else C.height=h(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return v(),p.current=kt(function(){g(C)}),v},[r,n,o,u,h]),{style:m}},qv={width:0,height:0,left:0,top:0};function AR(e,t,r){return a.useMemo(function(){for(var n,o=new Map,i=t.get((n=e[0])===null||n===void 0?void 0:n.key)||qv,l=i.left+i.width,s=0;sP?(N=O,$.current="x"):(N=M,$.current="y"),t(-N,-N)&&E.preventDefault()}var I=a.useRef(null);I.current={onTouchStart:y,onTouchMove:S,onTouchEnd:x,onWheel:w},a.useEffect(function(){function E(L){I.current.onTouchStart(L)}function O(L){I.current.onTouchMove(L)}function M(L){I.current.onTouchEnd(L)}function N(L){I.current.onWheel(L)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",E,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",M)}},[])}function v4(e){var t=a.useState(0),r=ie(t,2),n=r[0],o=r[1],i=a.useRef(0),l=a.useRef();return l.current=e,ca(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){i.current===n&&(i.current+=1,o(i.current))}}function KR(e){var t=a.useRef([]),r=a.useState({}),n=ie(r,2),o=n[1],i=a.useRef(typeof e=="function"?e():e),l=v4(function(){var c=i.current;t.current.forEach(function(u){c=u(c)}),t.current=[],i.current=c,o({})});function s(c){t.current.push(c),l()}return[i.current,s]}var Yv={width:0,height:0,left:0,top:0,right:0};function qR(e,t,r,n,o,i,l){var s=l.tabs,c=l.tabPosition,u=l.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(r)):(d="height",f="top",m=-r),a.useMemo(function(){if(!s.length)return[0,0];for(var g=s.length,p=g,h=0;hm+t){p=h-1;break}}for(var C=0,b=g-1;b>=0;b-=1){var y=e.get(s[b].key)||Yv;if(y[f]=p?[0,0]:[C,p]},[e,t,n,o,i,m,c,s.map(function(g){return g.key}).join("_"),u])}function Zv(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var GR="TABS_DQ";function p4(e){return String(e).replace(/"/g,GR)}function h4(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var C4=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,o=e.locale,i=e.style;return!n||n.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Qv=a.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,o=e.extra;if(!o)return null;var i,l={};return yt(o)==="object"&&!a.isValidElement(o)?l=o:l.right=o,r==="right"&&(i=l.right),r==="left"&&(i=l.left),i?a.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},i):null}),XR=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,o=e.tabs,i=e.locale,l=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,g=e.rtl,p=e.removeAriaLabel,h=e.onTabClick,v=e.getPopupContainer,C=e.popupClassName,b=a.useState(!1),y=ie(b,2),S=y[0],x=y[1],$=a.useState(null),w=ie($,2),I=w[0],E=w[1],O=c.icon,M=O===void 0?"More":O,N="".concat(n,"-more-popup"),L="".concat(r,"-dropdown"),P=I!==null?"".concat(N,"-").concat(I):null,T=i==null?void 0:i.dropdownAriaLabel;function _(A,K){A.preventDefault(),A.stopPropagation(),f.onEdit("remove",{key:K,event:A})}var R=a.createElement(wa,{onClick:function(K){var W=K.key,J=K.domEvent;h(W,J),x(!1)},prefixCls:"".concat(L,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[I],"aria-label":T!==void 0?T:"expanded dropdown"},o.map(function(A){var K=A.closable,W=A.disabled,J=A.closeIcon,X=A.key,Q=A.label,ee=h4(K,J,f,W);return a.createElement(ga,{key:X,id:"".concat(N,"-").concat(X),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(X),disabled:W},a.createElement("span",null,Q),ee&&a.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(U){U.stopPropagation(),_(U,X)}},J||f.removeIcon||"×"))}));function D(A){for(var K=o.filter(function(ee){return!ee.disabled}),W=K.findIndex(function(ee){return ee.key===I})||0,J=K.length,X=0;XYe?"left":"right"})}),L=ie(N,2),P=L[0],T=L[1],_=Gv(0,function(Ge,Ye){!M&&h&&h({direction:Ge>Ye?"top":"bottom"})}),R=ie(_,2),D=R[0],k=R[1],H=a.useState([0,0]),j=ie(H,2),V=j[0],A=j[1],K=a.useState([0,0]),W=ie(K,2),J=W[0],X=W[1],Q=a.useState([0,0]),ee=ie(Q,2),te=ee[0],U=ee[1],ne=a.useState([0,0]),Z=ie(ne,2),Y=Z[0],oe=Z[1],se=KR(new Map),ae=ie(se,2),re=ae[0],ce=ae[1],ue=AR(y,re,J[0]),fe=bs(V,M),be=bs(J,M),de=bs(te,M),he=bs(Y,M),Se=fePe?Pe:Ge}var _e=a.useRef(null),Re=a.useState(),Me=ie(Re,2),me=Me[0],Ce=Me[1];function pe(){Ce(Date.now())}function ge(){_e.current&&clearTimeout(_e.current)}WR(w,function(Ge,Ye){function tt(mt,lt){mt(function(ft){var gt=Ie(ft+lt);return gt})}return Se?(M?tt(T,Ge):tt(k,Ye),ge(),pe(),!0):!1}),a.useEffect(function(){return ge(),me&&(_e.current=setTimeout(function(){Ce(0)},100)),ge},[me]);var Oe=qR(ue,$e,M?P:D,be,de,he,q(q({},e),{},{tabs:y})),nt=ie(Oe,2),Ve=nt[0],Ze=nt[1],Le=$t(function(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,Ye=ue.get(Ge)||{width:0,height:0,left:0,right:0,top:0};if(M){var tt=P;s?Ye.rightP+$e&&(tt=Ye.right+Ye.width-$e):Ye.left<-P?tt=-Ye.left:Ye.left+Ye.width>-P+$e&&(tt=-(Ye.left+Ye.width-$e)),k(0),T(Ie(tt))}else{var mt=D;Ye.top<-D?mt=-Ye.top:Ye.top+Ye.height>-D+$e&&(mt=-(Ye.top+Ye.height-$e)),T(0),k(Ie(mt))}}),Ke={};f==="top"||f==="bottom"?Ke[s?"marginRight":"marginLeft"]=m:Ke.marginTop=m;var Qe=y.map(function(Ge,Ye){var tt=Ge.key;return a.createElement(YR,{id:o,prefixCls:b,key:tt,tab:Ge,style:Ye===0?void 0:Ke,closable:Ge.closable,editable:u,active:tt===l,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(lt){p(tt,lt)},onFocus:function(){Le(tt),pe(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),ot=function(){return ce(function(){var Ye,tt=new Map,mt=(Ye=I.current)===null||Ye===void 0?void 0:Ye.getBoundingClientRect();return y.forEach(function(lt){var ft,gt=lt.key,et=(ft=I.current)===null||ft===void 0?void 0:ft.querySelector('[data-node-key="'.concat(p4(gt),'"]'));if(et){var rt=ZR(et,mt),Ae=ie(rt,4),He=Ae[0],st=Ae[1],bt=Ae[2],Nt=Ae[3];tt.set(gt,{width:He,height:st,left:bt,top:Nt})}}),tt})};a.useEffect(function(){ot()},[y.map(function(Ge){return Ge.key}).join("_")]);var Xe=v4(function(){var Ge=za(S),Ye=za(x),tt=za($);A([Ge[0]-Ye[0]-tt[0],Ge[1]-Ye[1]-tt[1]]);var mt=za(O);U(mt);var lt=za(E);oe(lt);var ft=za(I);X([ft[0]-mt[0],ft[1]-mt[1]]),ot()}),We=y.slice(0,Ve),je=y.slice(Ze+1),at=[].concat(ye(We),ye(je)),Te=ue.get(l),Ue=FR({activeTabOffset:Te,horizontal:M,indicator:v,rtl:s}),De=Ue.style;a.useEffect(function(){Le()},[l,xe,Pe,Zv(Te),Zv(ue),M]),a.useEffect(function(){Xe()},[s]);var ze=!!at.length,Je="".concat(b,"-nav-wrap"),dt,it,qe,Fe;return M?s?(it=P>0,dt=P!==Pe):(dt=P<0,it=P!==xe):(qe=D<0,Fe=D!==xe),a.createElement(Nn,{onResize:Xe},a.createElement("div",{ref:Oo(t,S),role:"tablist",className:G("".concat(b,"-nav"),r),style:n,onKeyDown:function(){pe()}},a.createElement(Qv,{ref:x,position:"left",extra:c,prefixCls:b}),a.createElement(Nn,{onResize:Xe},a.createElement("div",{className:G(Je,F(F(F(F({},"".concat(Je,"-ping-left"),dt),"".concat(Je,"-ping-right"),it),"".concat(Je,"-ping-top"),qe),"".concat(Je,"-ping-bottom"),Fe)),ref:w},a.createElement(Nn,{onResize:Xe},a.createElement("div",{ref:I,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(D,"px)"),transition:me?"none":void 0}},Qe,a.createElement(C4,{ref:O,prefixCls:b,locale:d,editable:u,style:q(q({},Qe.length===0?void 0:Ke),{},{visibility:ze?"hidden":null})}),a.createElement("div",{className:G("".concat(b,"-ink-bar"),F({},"".concat(b,"-ink-bar-animated"),i.inkBar)),style:De}))))),a.createElement(UR,ve({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:E,prefixCls:b,tabs:at,className:!ze&&Ne,tabMoving:!!me})),a.createElement(Qv,{ref:$,position:"right",extra:c,prefixCls:b})))}),b4=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.id,l=e.active,s=e.tabKey,c=e.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:o,className:G(r,l&&"".concat(r,"-active"),n),ref:t},c)}),QR=["renderTabBar"],JR=["label","key"],e_=function(t){var r=t.renderTabBar,n=ut(t,QR),o=a.useContext(su),i=o.tabs;if(r){var l=q(q({},n),{},{panes:i.map(function(s){var c=s.label,u=s.key,d=ut(s,JR);return a.createElement(b4,ve({tab:c,key:u,tabKey:u},d))})});return r(l,Jv)}return a.createElement(Jv,n)},t_=["key","forceRender","style","className","destroyInactiveTabPane"],n_=function(t){var r=t.id,n=t.activeKey,o=t.animated,i=t.tabPosition,l=t.destroyInactiveTabPane,s=a.useContext(su),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return a.createElement("div",{className:G("".concat(c,"-content-holder"))},a.createElement("div",{className:G("".concat(c,"-content"),"".concat(c,"-content-").concat(i),F({},"".concat(c,"-content-animated"),d))},u.map(function(m){var g=m.key,p=m.forceRender,h=m.style,v=m.className,C=m.destroyInactiveTabPane,b=ut(m,t_),y=g===n;return a.createElement(In,ve({key:g,visible:y,forceRender:p,removeOnLeave:!!(l||C),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,x){var $=S.style,w=S.className;return a.createElement(b4,ve({},b,{prefixCls:f,id:r,tabKey:g,animated:d,active:y,style:q(q({},h),$),className:G(v,w),ref:x}))})})))};function r_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=q({inkBar:!0},yt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var o_=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],ep=0,a_=a.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,o=n===void 0?"rc-tabs":n,i=e.className,l=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,p=e.tabBarGutter,h=e.tabBarStyle,v=e.tabBarExtraContent,C=e.locale,b=e.more,y=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,$=e.onTabClick,w=e.onTabScroll,I=e.getPopupContainer,E=e.popupClassName,O=e.indicator,M=ut(e,o_),N=a.useMemo(function(){return(l||[]).filter(function(Y){return Y&&yt(Y)==="object"&&"key"in Y})},[l]),L=s==="rtl",P=r_(f),T=a.useState(!1),_=ie(T,2),R=_[0],D=_[1];a.useEffect(function(){D(kc())},[]);var k=It(function(){var Y;return(Y=N[0])===null||Y===void 0?void 0:Y.key},{value:c,defaultValue:u}),H=ie(k,2),j=H[0],V=H[1],A=a.useState(function(){return N.findIndex(function(Y){return Y.key===j})}),K=ie(A,2),W=K[0],J=K[1];a.useEffect(function(){var Y=N.findIndex(function(se){return se.key===j});if(Y===-1){var oe;Y=Math.max(0,Math.min(W,N.length-1)),V((oe=N[Y])===null||oe===void 0?void 0:oe.key)}J(Y)},[N.map(function(Y){return Y.key}).join("_"),j,W]);var X=It(null,{value:r}),Q=ie(X,2),ee=Q[0],te=Q[1];a.useEffect(function(){r||(te("rc-tabs-".concat(ep)),ep+=1)},[]);function U(Y,oe){$==null||$(Y,oe);var se=Y!==j;V(Y),se&&(x==null||x(Y))}var ne={id:ee,activeKey:j,animated:P,tabPosition:g,rtl:L,mobile:R},Z=q(q({},ne),{},{editable:d,locale:C,more:b,tabBarGutter:p,onTabClick:U,onTabScroll:w,extra:v,style:h,panes:null,getPopupContainer:I,popupClassName:E,indicator:O});return a.createElement(su.Provider,{value:{tabs:N,prefixCls:o}},a.createElement("div",ve({ref:t,id:r,className:G(o,"".concat(o,"-").concat(g),F(F(F({},"".concat(o,"-mobile"),R),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),L),i)},M),a.createElement(e_,ve({},Z,{renderTabBar:S})),a.createElement(n_,ve({destroyInactiveTabPane:y},ne,{animated:P}))))});const i_={motionAppear:!1,motionEnter:!0,motionLeave:!0};function l_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},i_),{motionName:jn(e,"switch")})),r}var s_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);ot)}function u_(e,t){if(e)return e;const r=sn(t).map(n=>{if(a.isValidElement(n)){const{key:o,props:i}=n,l=i||{},{tab:s}=l,c=s_(l,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return c_(r)}const d_=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[io(e,"slide-up"),io(e,"slide-down")]]},f_=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${z(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:z(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:z(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${z(e.borderRadiusLG)} 0 0 ${z(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},m_=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Mt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${z(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Rn),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${z(e.paddingXXS)} ${z(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},g_=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${z(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
+ right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:z(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},v_=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${z(e.borderRadius)} ${z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${z(e.borderRadius)} ${z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${z(e.borderRadius)} ${z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${z(e.borderRadius)} 0 0 ${z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},p_=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:l,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},Nr(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:i}}}},h_=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:z(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:z(e.marginXS)},marginLeft:{_skip_check_:!0,value:z(i(e.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},C_=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:o,itemHoverColor:i,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${z(e.paddingXS)}`,background:"transparent",border:`${z(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:l}},Nr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),p_(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},b_=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},y_=Ot("Tabs",e=>{const t=xt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${z(e.horizontalItemGutter)}`});return[v_(t),h_(t),g_(t),m_(t),f_(t),C_(t),d_(t)]},b_),S_=()=>null,x_=S_;var $_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t,r,n,o,i,l,s,c,u,d,f;const{type:m,className:g,rootClassName:p,size:h,onEdit:v,hideAdd:C,centered:b,addIcon:y,removeIcon:S,moreIcon:x,more:$,popupClassName:w,children:I,items:E,animated:O,style:M,indicatorSize:N,indicator:L}=e,P=$_(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:T}=P,{direction:_,tabs:R,getPrefixCls:D,getPopupContainer:k}=a.useContext(ke),H=D("tabs",T),j=Ut(H),[V,A,K]=y_(H,j);let W;m==="editable-card"&&(W={onEdit:(ne,Z)=>{let{key:Y,event:oe}=Z;v==null||v(ne==="add"?oe:Y,ne)},removeIcon:(t=S!=null?S:R==null?void 0:R.removeIcon)!==null&&t!==void 0?t:a.createElement(Cr,null),addIcon:(y!=null?y:R==null?void 0:R.addIcon)||a.createElement(zR,null),showAdd:C!==!0});const J=D(),X=un(h),Q=u_(E,I),ee=l_(H,O),te=Object.assign(Object.assign({},R==null?void 0:R.style),M),U={align:(r=L==null?void 0:L.align)!==null&&r!==void 0?r:(n=R==null?void 0:R.indicator)===null||n===void 0?void 0:n.align,size:(s=(i=(o=L==null?void 0:L.size)!==null&&o!==void 0?o:N)!==null&&i!==void 0?i:(l=R==null?void 0:R.indicator)===null||l===void 0?void 0:l.size)!==null&&s!==void 0?s:R==null?void 0:R.indicatorSize};return V(a.createElement(a_,Object.assign({direction:_,getPopupContainer:k},P,{items:Q,className:G({[`${H}-${X}`]:X,[`${H}-card`]:["card","editable-card"].includes(m),[`${H}-editable-card`]:m==="editable-card",[`${H}-centered`]:b},R==null?void 0:R.className,g,p,A,K,j),popupClassName:G(w,A,K,j),style:te,editable:W,more:Object.assign({icon:(f=(d=(u=(c=R==null?void 0:R.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:R==null?void 0:R.moreIcon)!==null&&d!==void 0?d:x)!==null&&f!==void 0?f:a.createElement(jm,null),transitionName:`${J}-slide-up`},$),prefixCls:H,animated:ee,indicator:U})))};cu.TabPane=x_;var w_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:r,hoverable:n=!0}=e,o=w_(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=a.useContext(ke),l=i("card",t),s=G(`${l}-grid`,r,{[`${l}-grid-hoverable`]:n});return a.createElement("div",Object.assign({},o,{className:s}))},y4=E_,I_=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${z(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)} 0 0`},zr()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Rn),{[`
+ > ${r}-typography,
+ > ${r}-typography-edit-content
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},O_=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
+ ${z(o)} 0 0 0 ${r},
+ 0 ${z(o)} 0 0 ${r},
+ ${z(o)} ${z(o)} 0 0 ${r},
+ ${z(o)} 0 0 0 ${r} inset,
+ 0 ${z(o)} 0 0 ${r} inset;
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},M_=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${z(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)}`},zr()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:z(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:o,lineHeight:z(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${z(e.lineWidth)} ${e.lineType} ${i}`}}})},N_=e=>Object.assign(Object.assign({margin:`${z(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},zr()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Rn),"&-description":{color:e.colorTextDescription}}),P_=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${z(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${z(e.padding)} ${z(r)}`}}},R_=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},__=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:l,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:I_(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)}`},zr()),[`${t}-grid`]:O_(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:M_(e),[`${t}-meta`]:N_(e)}),[`${t}-bordered`]:{border:`${z(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${z(e.borderRadiusLG)} ${z(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:P_(e),[`${t}-loading`]:R_(e),[`${t}-rtl`]:{direction:"rtl"}}},T_=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${z(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},L_=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),D_=Ot("Card",e=>{const t=xt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[__(t),T_(t)]},L_);var tp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return a.createElement("ul",{className:t,style:n},r.map((o,i)=>{const l=`action-${i}`;return a.createElement("li",{style:{width:`${100/r.length}%`},key:l},a.createElement("span",null,o))}))},H_=a.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:o,style:i,extra:l,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:m,type:g,cover:p,actions:h,tabList:v,children:C,activeTabKey:b,defaultActiveTabKey:y,tabBarExtraContent:S,hoverable:x,tabProps:$={},classNames:w,styles:I}=e,E=tp(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:O,direction:M,card:N}=a.useContext(ke),L=re=>{var ce;(ce=e.onTabChange)===null||ce===void 0||ce.call(e,re)},P=re=>{var ce;return G((ce=N==null?void 0:N.classNames)===null||ce===void 0?void 0:ce[re],w==null?void 0:w[re])},T=re=>{var ce;return Object.assign(Object.assign({},(ce=N==null?void 0:N.styles)===null||ce===void 0?void 0:ce[re]),I==null?void 0:I[re])},_=a.useMemo(()=>{let re=!1;return a.Children.forEach(C,ce=>{(ce==null?void 0:ce.type)===y4&&(re=!0)}),re},[C]),R=O("card",r),[D,k,H]=D_(R),j=a.createElement(rr,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),V=b!==void 0,A=Object.assign(Object.assign({},$),{[V?"activeKey":"defaultActiveKey"]:V?b:y,tabBarExtraContent:S});let K;const W=un(m),J=!W||W==="default"?"large":W,X=v?a.createElement(cu,Object.assign({size:J},A,{className:`${R}-head-tabs`,onChange:L,items:v.map(re=>{var{tab:ce}=re,ue=tp(re,["tab"]);return Object.assign({label:ce},ue)})})):null;if(u||l||X){const re=G(`${R}-head`,P("header")),ce=G(`${R}-head-title`,P("title")),ue=G(`${R}-extra`,P("extra")),fe=Object.assign(Object.assign({},s),T("header"));K=a.createElement("div",{className:re,style:fe},a.createElement("div",{className:`${R}-head-wrapper`},u&&a.createElement("div",{className:ce,style:T("title")},u),l&&a.createElement("div",{className:ue,style:T("extra")},l)),X)}const Q=G(`${R}-cover`,P("cover")),ee=p?a.createElement("div",{className:Q,style:T("cover")},p):null,te=G(`${R}-body`,P("body")),U=Object.assign(Object.assign({},c),T("body")),ne=a.createElement("div",{className:te,style:U},d?j:C),Z=G(`${R}-actions`,P("actions")),Y=h!=null&&h.length?a.createElement(k_,{actionClasses:Z,actionStyle:T("actions"),actions:h}):null,oe=Xt(E,["onTabChange"]),se=G(R,N==null?void 0:N.className,{[`${R}-loading`]:d,[`${R}-bordered`]:f,[`${R}-hoverable`]:x,[`${R}-contain-grid`]:_,[`${R}-contain-tabs`]:v==null?void 0:v.length,[`${R}-${W}`]:W,[`${R}-type-${g}`]:!!g,[`${R}-rtl`]:M==="rtl"},n,o,k,H),ae=Object.assign(Object.assign({},N==null?void 0:N.style),i);return D(a.createElement("div",Object.assign({ref:t},oe,{className:se,style:ae}),K,ee,ne,Y))});var j_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:r,avatar:n,title:o,description:i}=e,l=j_(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=a.useContext(ke),c=s("card",t),u=G(`${c}-meta`,r),d=n?a.createElement("div",{className:`${c}-meta-avatar`},n):null,f=o?a.createElement("div",{className:`${c}-meta-title`},o):null,m=i?a.createElement("div",{className:`${c}-meta-description`},i):null,g=f||m?a.createElement("div",{className:`${c}-meta-detail`},f,m):null;return a.createElement("div",Object.assign({},l,{className:u}),d,g)},z_=B_,Kl=H_;Kl.Grid=y4;Kl.Meta=z_;var F_={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function A_(e,t,r){var n=r||{},o=n.noTrailing,i=o===void 0?!1:o,l=n.noLeading,s=l===void 0?!1:l,c=n.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function p(v){var C=v||{},b=C.upcomingOnly,y=b===void 0?!1:b;g(),f=!y}function h(){for(var v=arguments.length,C=new Array(v),b=0;be?s?(m=Date.now(),i||(d=setTimeout(u?$:x,e))):x():i!==!0&&(d=setTimeout(u?$:x,u===void 0?e-S:e))}return h.cancel=p,h}function S4(e,t,r){var n=r||{},o=n.atBegin,i=o===void 0?!1:o;return A_(e,t,{debounceMode:i!==!1})}var L1={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return B.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return B.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function D1(e,t,r){return Math.max(t,Math.min(e,r))}var Xa=function(t){var r=["onTouchStart","onTouchMove","onWheel"];r.includes(t._reactName)||t.preventDefault()},Qs=function(t){for(var r=[],n=x4(t),o=$4(t),i=n;i0?1:0):0},W_=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},k1=function(t){return t&&t.offsetWidth||0},Ym=function(t){return t&&t.offsetHeight||0},w4=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,o,i,l;return n=t.startX-t.curX,o=t.startY-t.curY,i=Math.atan2(o,n),l=Math.round(i*180/Math.PI),l<0&&(l=360-Math.abs(l)),l<=45&&l>=0||l<=360&&l>=315?"left":l>=135&&l<=225?"right":r===!0?l>=35&&l<=135?"up":"down":"vertical"},uu=function(t){var r=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(r=!1),r},ld=function(t,r){var n={};return r.forEach(function(o){return n[o]=t[o]}),n},K_=function(t){var r=B.Children.count(t.children),n=t.listRef,o=Math.ceil(k1(n)),i=t.trackRef&&t.trackRef.node,l=Math.ceil(k1(i)),s;if(t.vertical)s=o;else{var c=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(c*=o/100),s=Math.ceil((o-c)/t.slidesToShow)}var u=n&&Ym(n.querySelector('[data-index="0"]')),d=u*t.slidesToShow,f=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(f=r-1-t.initialSlide);var m=t.lazyLoadedList||[],g=Qs(q(q({},t),{},{currentSlide:f,lazyLoadedList:m}));m=m.concat(g);var p={slideCount:r,slideWidth:s,listWidth:o,trackWidth:l,currentSlide:f,slideHeight:u,listHeight:d,lazyLoadedList:m};return t.autoplaying===null&&t.autoplay&&(p.autoplaying="playing"),p},q_=function(t){var r=t.waitForAnimate,n=t.animating,o=t.fade,i=t.infinite,l=t.index,s=t.slideCount,c=t.lazyLoad,u=t.currentSlide,d=t.centerMode,f=t.slidesToScroll,m=t.slidesToShow,g=t.useCSS,p=t.lazyLoadedList;if(r&&n)return{};var h=l,v,C,b,y={},S={},x=i?l:D1(l,0,s-1);if(o){if(!i&&(l<0||l>=s))return{};l<0?h=l+s:l>=s&&(h=l-s),c&&p.indexOf(h)<0&&(p=p.concat(h)),y={animating:!0,currentSlide:h,lazyLoadedList:p,targetSlide:h},S={animating:!1,targetSlide:h}}else v=h,h<0?(v=h+s,i?s%f!==0&&(v=s-s%f):v=0):!uu(t)&&h>u?h=v=u:d&&h>=s?(h=i?s:s-1,v=i?0:s-1):h>=s&&(v=h-s,i?s%f!==0&&(v=0):v=s-m),!i&&h+m>=s&&(v=s-m),C=fl(q(q({},t),{},{slideIndex:h})),b=fl(q(q({},t),{},{slideIndex:v})),i||(C===b&&(h=v),C=b),c&&(p=p.concat(Qs(q(q({},t),{},{currentSlide:h})))),g?(y={animating:!0,currentSlide:v,trackStyle:E4(q(q({},t),{},{left:C})),lazyLoadedList:p,targetSlide:x},S={animating:!1,currentSlide:v,trackStyle:dl(q(q({},t),{},{left:b})),swipeLeft:null,targetSlide:x}):y={currentSlide:v,trackStyle:dl(q(q({},t),{},{left:b})),lazyLoadedList:p,targetSlide:x};return{state:y,nextState:S}},G_=function(t,r){var n,o,i,l,s,c=t.slidesToScroll,u=t.slidesToShow,d=t.slideCount,f=t.currentSlide,m=t.targetSlide,g=t.lazyLoad,p=t.infinite;if(l=d%c!==0,n=l?0:(d-f)%c,r.message==="previous")i=n===0?c:u-n,s=f-i,g&&!p&&(o=f-i,s=o===-1?d-1:o),p||(s=m-c);else if(r.message==="next")i=n===0?c:n,s=f+i,g&&!p&&(s=(f+c)%d+n),p||(s=m+c);else if(r.message==="dots")s=r.index*r.slidesToScroll;else if(r.message==="children"){if(s=r.index,p){var h=eT(q(q({},t),{},{targetSlide:s}));s>r.currentSlide&&h==="left"?s=s-d:s10)return{scrolling:!0};s&&(b.swipeLength=E);var O=(c?-1:1)*(b.curX>b.startX?1:-1);s&&(O=b.curY>b.startY?1:-1);var M=Math.ceil(h/v),N=w4(r.touchObject,s),L=b.swipeLength;return C||(u===0&&(N==="right"||N==="down")||u+1>=M&&(N==="left"||N==="up")||!uu(r)&&(N==="left"||N==="up"))&&(L=b.swipeLength*d,f===!1&&m&&(m(N),w.edgeDragged=!0)),!g&&y&&(y(N),w.swiped=!0),i?$=I+L*(S/x)*O:c?$=I-L*O:$=I+L*O,s&&($=I+L*O),w=q(q({},w),{},{touchObject:b,swipeLeft:$,trackStyle:dl(q(q({},r),{},{left:$}))}),Math.abs(b.curX-b.startX)10&&(w.swiping=!0,Xa(t)),w}},Z_=function(t,r){var n=r.dragging,o=r.swipe,i=r.touchObject,l=r.listWidth,s=r.touchThreshold,c=r.verticalSwiping,u=r.listHeight,d=r.swipeToSlide,f=r.scrolling,m=r.onSwipe,g=r.targetSlide,p=r.currentSlide,h=r.infinite;if(!n)return o&&Xa(t),{};var v=c?u/s:l/s,C=w4(i,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f||!i.swipeLength)return b;if(i.swipeLength>v){Xa(t),m&&m(C);var y,S,x=h?p:g;switch(C){case"left":case"up":S=x+rp(r),y=d?np(r,S):S,b.currentDirection=0;break;case"right":case"down":S=x-rp(r),y=d?np(r,S):S,b.currentDirection=1;break;default:y=x}b.triggerSlideHandler=y}else{var $=fl(r);b.trackStyle=E4(q(q({},r),{},{left:$}))}return b},Q_=function(t){for(var r=t.infinite?t.slideCount*2:t.slideCount,n=t.infinite?t.slidesToShow*-1:0,o=t.infinite?t.slidesToShow*-1:0,i=[];nn[n.length-1])r=n[n.length-1];else for(var i in n){if(rt.swipeLeft*-1)return n=c,!1}else if(c.offsetLeft-r+k1(c)/2>t.swipeLeft*-1)return n=c,!1;return!0}),!n)return 0;var l=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(n.dataset.index-l)||1;return s}else return t.slidesToScroll},Zm=function(t,r){return r.reduce(function(n,o){return n&&t.hasOwnProperty(o)},!0)?null:console.error("Keys Missing:",t)},dl=function(t){Zm(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r,n;if(!t.vertical)r=J_(t)*t.slideWidth;else{var o=t.unslick?t.slideCount:t.slideCount+2*t.slidesToShow;n=o*t.slideHeight}var i={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var l=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",c=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";i=q(q({},i),{},{WebkitTransform:l,transform:s,msTransform:c})}else t.vertical?i.top=t.left:i.left=t.left;return t.fade&&(i={opacity:1}),r&&(i.width=r),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?i.marginTop=t.left+"px":i.marginLeft=t.left+"px"),i},E4=function(t){Zm(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var r=dl(t);return t.useTransform?(r.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,r.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?r.transition="top "+t.speed+"ms "+t.cssEase:r.transition="left "+t.speed+"ms "+t.cssEase,r},fl=function(t){if(t.unslick)return 0;Zm(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var r=t.slideIndex,n=t.trackRef,o=t.infinite,i=t.centerMode,l=t.slideCount,s=t.slidesToShow,c=t.slidesToScroll,u=t.slideWidth,d=t.listWidth,f=t.variableWidth,m=t.slideHeight,g=t.fade,p=t.vertical,h=0,v,C,b=0;if(g||t.slideCount===1)return 0;var y=0;if(o?(y=-So(t),l%c!==0&&r+c>l&&(y=-(r>l?s-(r-l):l%c)),i&&(y+=parseInt(s/2))):(l%c!==0&&r+c>l&&(y=s-l%c),i&&(y=parseInt(s/2))),h=y*u,b=y*m,p?v=r*m*-1+b:v=r*u*-1+h,f===!0){var S,x=n&&n.node;if(S=r+So(t),C=x&&x.childNodes[S],v=C?C.offsetLeft*-1:0,i===!0){S=o?r+So(t):r,C=x&&x.children[S],v=0;for(var $=0;$t.currentSlide?t.targetSlide>t.currentSlide+tT(t)?"left":"right":t.targetSlide0&&(l+=1),o&&r%2===0&&(l+=1),l}return o?0:r-1},nT=function(t){var r=t.slidesToShow,n=t.centerMode,o=t.rtl,i=t.centerPadding;if(n){var l=(r-1)/2+1;return parseInt(i)>0&&(l+=1),!o&&r%2===0&&(l+=1),l}return o?r-1:0},op=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},rT=Object.keys(L1);function oT(e){return rT.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})}function aT(e,t,r){return t=Pr(t),mi(e,vi()?Reflect.construct(t,r||[],Pr(e).constructor):t.apply(e,r))}var sd=function(t){var r,n,o,i,l;t.rtl?l=t.slideCount-1-t.index:l=t.index,o=l<0||l>=t.slideCount,t.centerMode?(i=Math.floor(t.slidesToShow/2),n=(l-t.currentSlide)%t.slideCount===0,l>t.currentSlide-i-1&&l<=t.currentSlide+i&&(r=!0)):r=t.currentSlide<=l&&l=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var c=l===s;return{"slick-slide":!0,"slick-active":r,"slick-center":n,"slick-cloned":o,"slick-current":c}},iT=function(t){var r={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(r.width=t.slideWidth),t.fade&&(r.position="relative",t.vertical&&t.slideHeight?r.top=-t.index*parseInt(t.slideHeight):r.left=-t.index*parseInt(t.slideWidth),r.opacity=t.currentSlide===t.index?1:0,r.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(r.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),r},cd=function(t,r){return t.key+"-"+r},lT=function(t){var r,n=[],o=[],i=[],l=B.Children.count(t.children),s=x4(t),c=$4(t);return B.Children.forEach(t.children,function(u,d){var f,m={message:"children",index:d,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(d)>=0?f=u:f=B.createElement("div",null);var g=iT(q(q({},t),{},{index:d})),p=f.props.className||"",h=sd(q(q({},t),{},{index:d}));if(n.push(B.cloneElement(f,{key:"original"+cd(f,d),"data-index":d,className:G(h,p),tabIndex:"-1","aria-hidden":!h["slick-active"],style:q(q({outline:"none"},f.props.style||{}),g),onClick:function(b){f.props&&f.props.onClick&&f.props.onClick(b),t.focusOnSelect&&t.focusOnSelect(m)}})),t.infinite&&l>1&&t.fade===!1&&!t.unslick){var v=l-d;v<=So(t)&&(r=-v,r>=s&&(f=u),h=sd(q(q({},t),{},{index:r})),o.push(B.cloneElement(f,{key:"precloned"+cd(f,r),"data-index":r,tabIndex:"-1",className:G(h,p),"aria-hidden":!h["slick-active"],style:q(q({},f.props.style||{}),g),onClick:function(b){f.props&&f.props.onClick&&f.props.onClick(b),t.focusOnSelect&&t.focusOnSelect(m)}}))),r=l+d,r=y&&f<=C:f===y}),x={message:"dots",index:h,slidesToScroll:c,currentSlide:f},$=this.clickHandler.bind(this,x);p=p.concat(B.createElement("li",{key:h,className:S},B.cloneElement(this.props.customPaging(h),{onClick:$})))}return B.cloneElement(this.props.appendDots(p),q({className:this.props.dotsClass},g))}}])}(B.PureComponent);function I4(e,t,r){return t=Pr(t),mi(e,vi()?Reflect.construct(t,r||[],Pr(e).constructor):t.apply(e,r))}var fT=function(e){function t(){return tn(this,t),I4(this,t,arguments)}return Kn(t,e),nn(t,[{key:"clickHandler",value:function(n,o){o&&o.preventDefault(),this.props.clickHandler(n,o)}},{key:"render",value:function(){var n={"slick-arrow":!0,"slick-prev":!0},o=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(n["slick-disabled"]=!0,o=null);var i={key:"0","data-role":"none",className:G(n),style:{display:"block"},onClick:o},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},s;return this.props.prevArrow?s=B.cloneElement(this.props.prevArrow,q(q({},i),l)):s=B.createElement("button",ve({key:"0",type:"button"},i)," ","Previous"),s}}])}(B.PureComponent),mT=function(e){function t(){return tn(this,t),I4(this,t,arguments)}return Kn(t,e),nn(t,[{key:"clickHandler",value:function(n,o){o&&o.preventDefault(),this.props.clickHandler(n,o)}},{key:"render",value:function(){var n={"slick-arrow":!0,"slick-next":!0},o=this.clickHandler.bind(this,{message:"next"});uu(this.props)||(n["slick-disabled"]=!0,o=null);var i={key:"1","data-role":"none",className:G(n),style:{display:"block"},onClick:o},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},s;return this.props.nextArrow?s=B.cloneElement(this.props.nextArrow,q(q({},i),l)):s=B.createElement("button",ve({key:"1",type:"button"},i)," ","Next"),s}}])}(B.PureComponent),gT=["animating"];function vT(e,t,r){return t=Pr(t),mi(e,vi()?Reflect.construct(t,r||[],Pr(e).constructor):t.apply(e,r))}var pT=function(e){function t(r){var n;tn(this,t),n=vT(this,t,[r]),F(n,"listRefHandler",function(i){return n.list=i}),F(n,"trackRefHandler",function(i){return n.track=i}),F(n,"adaptHeight",function(){if(n.props.adaptiveHeight&&n.list){var i=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=Ym(i)+"px"}}),F(n,"componentDidMount",function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var i=Qs(q(q({},n.props),n.state));i.length>0&&(n.setState(function(s){return{lazyLoadedList:s.lazyLoadedList.concat(i)}}),n.props.onLazyLoad&&n.props.onLazyLoad(i))}var l=q({listRef:n.list,trackRef:n.track},n.props);n.updateState(l,!0,function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")}),n.props.lazyLoad==="progressive"&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new J2(function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout(function(){return n.onWindowResized()},n.props.speed))):n.onWindowResized()}),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(s){s.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,s.onblur=n.props.pauseOnFocus?n.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)}),F(n,"componentWillUnmount",function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach(function(i){return clearTimeout(i)}),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()}),F(n,"componentDidUpdate",function(i){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var l=Qs(q(q({},n.props),n.state));l.length>0&&(n.setState(function(u){return{lazyLoadedList:u.lazyLoadedList.concat(l)}}),n.props.onLazyLoad&&n.props.onLazyLoad(l))}n.adaptHeight();var s=q(q({listRef:n.list,trackRef:n.track},n.props),n.state),c=n.didPropsChange(i);c&&n.updateState(s,c,function(){n.state.currentSlide>=B.Children.count(n.props.children)&&n.changeSlide({message:"index",index:B.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),(i.autoplay!==n.props.autoplay||i.autoplaySpeed!==n.props.autoplaySpeed)&&(!i.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))})}),F(n,"onWindowResized",function(i){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=S4(50,function(){return n.resizeWindow(i)}),n.debouncedResize()}),F(n,"resizeWindow",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,l=!!(n.track&&n.track.node);if(l){var s=q(q({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(s,i,function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")}),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}}),F(n,"updateState",function(i,l,s){var c=K_(i);i=q(q(q({},i),c),{},{slideIndex:c.currentSlide});var u=fl(i);i=q(q({},i),{},{left:u});var d=dl(i);(l||B.Children.count(n.props.children)!==B.Children.count(i.children))&&(c.trackStyle=d),n.setState(c,s)}),F(n,"ssrInit",function(){if(n.props.variableWidth){var i=0,l=0,s=[],c=So(q(q(q({},n.props),n.state),{},{slideCount:n.props.children.length})),u=Ds(q(q(q({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach(function($){s.push($.props.style.width),i+=$.props.style.width});for(var d=0;d=l&&n.onWindowResized()};if(!c.onclick)c.onclick=function(){return c.parentNode.focus()};else{var d=c.onclick;c.onclick=function(f){d(f),c.parentNode.focus()}}c.onload||(n.props.lazyLoad?c.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(c.onload=u,c.onerror=function(){u(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))})}),F(n,"progressiveLazyLoad",function(){for(var i=[],l=q(q({},n.props),n.state),s=n.state.currentSlide;s=-So(l);c--)if(n.state.lazyLoadedList.indexOf(c)<0){i.push(c);break}i.length>0?(n.setState(function(u){return{lazyLoadedList:u.lazyLoadedList.concat(i)}}),n.props.onLazyLoad&&n.props.onLazyLoad(i)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)}),F(n,"slideHandler",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=n.props,c=s.asNavFor,u=s.beforeChange,d=s.onLazyLoad,f=s.speed,m=s.afterChange,g=n.state.currentSlide,p=q_(q(q(q({index:i},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!l})),h=p.state,v=p.nextState;if(h){u&&u(g,h.currentSlide);var C=h.lazyLoadedList.filter(function(b){return n.state.lazyLoadedList.indexOf(b)<0});d&&C.length>0&&d(C),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),m&&m(g),delete n.animationEndCallback),n.setState(h,function(){c&&n.asNavForIndex!==i&&(n.asNavForIndex=i,c.innerSlider.slideHandler(i)),v&&(n.animationEndCallback=setTimeout(function(){var b=v.animating,y=ut(v,gT);n.setState(y,function(){n.callbackTimers.push(setTimeout(function(){return n.setState({animating:b})},10)),m&&m(h.currentSlide),delete n.animationEndCallback})},f))})}}),F(n,"changeSlide",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=q(q({},n.props),n.state),c=G_(s,i);if(!(c!==0&&!c)&&(l===!0?n.slideHandler(c,l):n.slideHandler(c),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var u=n.list.querySelectorAll(".slick-current");u[0]&&u[0].focus()}}),F(n,"clickHandler",function(i){n.clickable===!1&&(i.stopPropagation(),i.preventDefault()),n.clickable=!0}),F(n,"keyHandler",function(i){var l=X_(i,n.props.accessibility,n.props.rtl);l!==""&&n.changeSlide({message:l})}),F(n,"selectHandler",function(i){n.changeSlide(i)}),F(n,"disableBodyScroll",function(){var i=function(s){s=s||window.event,s.preventDefault&&s.preventDefault(),s.returnValue=!1};window.ontouchmove=i}),F(n,"enableBodyScroll",function(){window.ontouchmove=null}),F(n,"swipeStart",function(i){n.props.verticalSwiping&&n.disableBodyScroll();var l=U_(i,n.props.swipe,n.props.draggable);l!==""&&n.setState(l)}),F(n,"swipeMove",function(i){var l=Y_(i,q(q(q({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));l&&(l.swiping&&(n.clickable=!1),n.setState(l))}),F(n,"swipeEnd",function(i){var l=Z_(i,q(q(q({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(l){var s=l.triggerSlideHandler;delete l.triggerSlideHandler,n.setState(l),s!==void 0&&(n.slideHandler(s),n.props.verticalSwiping&&n.enableBodyScroll())}}),F(n,"touchEnd",function(i){n.swipeEnd(i),n.clickable=!0}),F(n,"slickPrev",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"previous"})},0))}),F(n,"slickNext",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"next"})},0))}),F(n,"slickGoTo",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i=Number(i),isNaN(i))return"";n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"index",index:i,currentSlide:n.state.currentSlide},l)},0))}),F(n,"play",function(){var i;if(n.props.rtl)i=n.state.currentSlide-n.props.slidesToScroll;else if(uu(q(q({},n.props),n.state)))i=n.state.currentSlide+n.props.slidesToScroll;else return!1;n.slideHandler(i)}),F(n,"autoPlay",function(i){n.autoplayTimer&&clearInterval(n.autoplayTimer);var l=n.state.autoplaying;if(i==="update"){if(l==="hovered"||l==="focused"||l==="paused")return}else if(i==="leave"){if(l==="paused"||l==="focused")return}else if(i==="blur"&&(l==="paused"||l==="hovered"))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})}),F(n,"pause",function(i){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var l=n.state.autoplaying;i==="paused"?n.setState({autoplaying:"paused"}):i==="focused"?(l==="hovered"||l==="playing")&&n.setState({autoplaying:"focused"}):l==="playing"&&n.setState({autoplaying:"hovered"})}),F(n,"onDotsOver",function(){return n.props.autoplay&&n.pause("hovered")}),F(n,"onDotsLeave",function(){return n.props.autoplay&&n.state.autoplaying==="hovered"&&n.autoPlay("leave")}),F(n,"onTrackOver",function(){return n.props.autoplay&&n.pause("hovered")}),F(n,"onTrackLeave",function(){return n.props.autoplay&&n.state.autoplaying==="hovered"&&n.autoPlay("leave")}),F(n,"onSlideFocus",function(){return n.props.autoplay&&n.pause("focused")}),F(n,"onSlideBlur",function(){return n.props.autoplay&&n.state.autoplaying==="focused"&&n.autoPlay("blur")}),F(n,"render",function(){var i=G("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),l=q(q({},n.props),n.state),s=ld(l,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=n.props.pauseOnHover;s=q(q({},s),{},{onMouseEnter:c?n.onTrackOver:null,onMouseLeave:c?n.onTrackLeave:null,onMouseOver:c?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null});var u;if(n.props.dots===!0&&n.state.slideCount>=n.props.slidesToShow){var d=ld(l,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;d=q(q({},d),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),u=B.createElement(dT,d)}var m,g,p=ld(l,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=n.changeSlide,n.props.arrows&&(m=B.createElement(fT,p),g=B.createElement(mT,p));var h=null;n.props.vertical&&(h={height:n.state.listHeight});var v=null;n.props.vertical===!1?n.props.centerMode===!0&&(v={padding:"0px "+n.props.centerPadding}):n.props.centerMode===!0&&(v={padding:n.props.centerPadding+" 0px"});var C=q(q({},h),v),b=n.props.touchMove,y={className:"slick-list",style:C,onClick:n.clickHandler,onMouseDown:b?n.swipeStart:null,onMouseMove:n.state.dragging&&b?n.swipeMove:null,onMouseUp:b?n.swipeEnd:null,onMouseLeave:n.state.dragging&&b?n.swipeEnd:null,onTouchStart:b?n.swipeStart:null,onTouchMove:n.state.dragging&&b?n.swipeMove:null,onTouchEnd:b?n.touchEnd:null,onTouchCancel:n.state.dragging&&b?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},S={className:i,dir:"ltr",style:n.props.style};return n.props.unslick&&(y={className:"slick-list"},S={className:i,style:n.props.style}),B.createElement("div",S,n.props.unslick?"":m,B.createElement("div",ve({ref:n.listRefHandler},y),B.createElement(sT,ve({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":g,n.props.unslick?"":u)}),n.list=null,n.track=null,n.state=q(q({},F_),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:B.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var o=n.ssrInit();return n.state=q(q({},n.state),o),n}return Kn(t,e),nn(t,[{key:"didPropsChange",value:function(n){for(var o=!1,i=0,l=Object.keys(this.props);i1&&arguments[1]!==void 0?arguments[1]:!1;return n.innerSlider.slickGoTo(o,i)}),F(n,"slickPause",function(){return n.innerSlider.pause("paused")}),F(n,"slickPlay",function(){return n.innerSlider.autoPlay("play")}),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return Kn(t,e),nn(t,[{key:"media",value:function(n,o){var i=window.matchMedia(n),l=function(c){var u=c.matches;u&&o()};i.addListener(l),l(i),this._responsiveMediaHandlers.push({mql:i,query:n,listener:l})}},{key:"componentDidMount",value:function(){var n=this;if(this.props.responsive){var o=this.props.responsive.map(function(l){return l.breakpoint});o.sort(function(l,s){return l-s}),o.forEach(function(l,s){var c;s===0?c=ud({minWidth:0,maxWidth:l}):c=ud({minWidth:o[s-1]+1,maxWidth:l}),op()&&n.media(c,function(){n.setState({breakpoint:l})})});var i=ud({minWidth:o.slice(-1)[0]});op()&&this.media(i,function(){n.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(n){n.mql.removeListener(n.listener)})}},{key:"render",value:function(){var n=this,o,i;this.state.breakpoint?(i=this.props.responsive.filter(function(h){return h.breakpoint===n.state.breakpoint}),o=i[0].settings==="unslick"?"unslick":q(q(q({},L1),this.props),i[0].settings)):o=q(q({},L1),this.props),o.centerMode&&(o.slidesToScroll>1,o.slidesToScroll=1),o.fade&&(o.slidesToShow>1,o.slidesToScroll>1,o.slidesToShow=1,o.slidesToScroll=1);var l=B.Children.toArray(this.props.children);l=l.filter(function(h){return typeof h=="string"?!!h.trim():!!h}),o.variableWidth&&(o.rows>1||o.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),o.variableWidth=!1);for(var s=[],c=null,u=0;u=l.length));g+=1)m.push(B.cloneElement(l[g],{key:100*u+10*f+g,tabIndex:-1,style:{width:"".concat(100/o.slidesPerRow,"%"),display:"inline-block"}}));d.push(B.createElement("div",{key:10*u+f},m))}o.variableWidth?s.push(B.createElement("div",{key:u,style:{width:c}},d)):s.push(B.createElement("div",{key:u},d))}if(o==="unslick"){var p="regular slider "+(this.props.className||"");return B.createElement("div",{className:p},l)}else s.length<=o.slidesToShow&&!o.infinite&&(o.unslick=!0);return B.createElement(pT,ve({style:this.props.style,ref:this.innerSliderRefHandler},oT(o)),s)}}])}(B.Component);const ET=e=>{const{componentCls:t,antCls:r}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${r}-radio-input, input${r}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${r}-radio-input, input${r}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},IT=e=>{const{componentCls:t,motionDurationSlow:r,arrowSize:n,arrowOffset:o}=e,i=e.calc(n).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:n,height:n,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${r}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(n).sub(i).div(2).equal(),insetInlineStart:e.calc(n).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:o,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:o,"&::after":{transform:"rotate(135deg)"}}}}]},OT=e=>{const{componentCls:t,dotOffset:r,dotWidth:n,dotHeight:o,dotGap:i,colorBgContainer:l,motionDurationSlow:s}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:n,height:o,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${s}`,button:{position:"relative",display:"block",width:"100%",height:o,padding:0,color:"transparent",fontSize:0,background:l,border:0,borderRadius:o,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${s}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:l,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},MT=e=>{const{componentCls:t,dotOffset:r,arrowOffset:n,marginXXS:o}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:n,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:n,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:r},"&-right":{insetInlineEnd:r,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${z(o)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":Object.assign(Object.assign({},i),{button:i})})}}}},NT=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},PT=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),RT=Ot("Carousel",e=>[ET(e),IT(e),OT(e),MT(e),NT(e)],PT,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var O4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t=O4(e,["currentSlide","slideCount"]);return a.createElement("button",Object.assign({type:"button"},t))},_T=a.forwardRef((e,t)=>{const{dots:r=!0,arrows:n=!1,prevArrow:o=a.createElement(lp,{"aria-label":"prev"}),nextArrow:i=a.createElement(lp,{"aria-label":"next"}),draggable:l=!1,waitForAnimate:s=!1,dotPosition:c="bottom",vertical:u=c==="left"||c==="right",rootClassName:d,className:f,style:m,id:g}=e,p=O4(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:h,direction:v,carousel:C}=a.useContext(ke),b=a.useRef(),y=function(L){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;b.current.slickGoTo(L,P)};a.useImperativeHandle(t,()=>({goTo:y,autoPlay:b.current.innerSlider.autoPlay,innerSlider:b.current.innerSlider,prev:b.current.slickPrev,next:b.current.slickNext}),[b.current]);const S=a.useRef(a.Children.count(e.children));a.useEffect(()=>{S.current!==a.Children.count(e.children)&&(y(e.initialSlide||0,!1),S.current=a.Children.count(e.children))},[e.children]);const x=Object.assign({vertical:u,className:G(f,C==null?void 0:C.className),style:Object.assign(Object.assign({},C==null?void 0:C.style),m)},p);x.effect==="fade"&&(x.fade=!0);const $=h("carousel",x.prefixCls),w=!!r,I=G(ip,`${ip}-${c}`,typeof r=="boolean"?!1:r==null?void 0:r.className),[E,O,M]=RT($),N=G($,{[`${$}-rtl`]:v==="rtl",[`${$}-vertical`]:x.vertical},O,M,d);return E(a.createElement("div",{className:N,id:g},a.createElement(wT,Object.assign({ref:b},x,{dots:w,dotsClass:I,arrows:n,prevArrow:o,nextArrow:i,draggable:l,verticalSwiping:u,waitForAnimate:s}))))}),TT=_T;var Oi=a.createContext({}),Ua="__rc_cascader_search_mark__",LT=function(t,r,n){var o=n.label,i=o===void 0?"":o;return r.some(function(l){return String(l[i]).toLowerCase().includes(t.toLowerCase())})},DT=function(t,r,n,o){return r.map(function(i){return i[o.label]}).join(" / ")},kT=function(t,r,n,o,i,l){var s=i.filter,c=s===void 0?LT:s,u=i.render,d=u===void 0?DT:u,f=i.limit,m=f===void 0?50:f,g=i.sort;return a.useMemo(function(){var p=[];if(!t)return[];function h(v,C){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(y){if(!(!g&&m!==!1&&m>0&&p.length>=m)){var S=[].concat(ye(C),[y]),x=y[n.children],$=b||y.disabled;if((!x||x.length===0||l)&&c(t,S,{label:n.label})){var w;p.push(q(q({},y),{},(w={disabled:$},F(w,n.label,d(t,S,o,n)),F(w,Ua,S),F(w,n.children,void 0),w)))}x&&h(y[n.children],S,$)}})}return h(r,[]),g&&p.sort(function(v,C){return g(v[Ua],C[Ua],t,n)}),m!==!1&&m>0?p.slice(0,m):p},[t,r,n,o,d,l,c,g,m])},Qm="__RC_CASCADER_SPLIT__",M4="SHOW_PARENT",N4="SHOW_CHILD";function jr(e){return e.join(Qm)}function ri(e){return e.map(jr)}function HT(e){return e.split(Qm)}function P4(e){var t=e||{},r=t.label,n=t.value,o=t.children,i=n||"value";return{label:r||"label",value:i,key:i,children:o||"children"}}function Ui(e,t){var r,n;return(r=e.isLeaf)!==null&&r!==void 0?r:!((n=e[t.children])!==null&&n!==void 0&&n.length)}function jT(e){var t=e.parentElement;if(t){var r=e.offsetTop-t.offsetTop;r-t.scrollTop<0?t.scrollTo({top:r}):r+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:r+e.offsetHeight-t.offsetHeight})}}function R4(e,t){return e.map(function(r){var n;return(n=r[Ua])===null||n===void 0?void 0:n.map(function(o){return o[t.value]})})}function BT(e){return Array.isArray(e)&&Array.isArray(e[0])}function Js(e){return e?BT(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function _4(e,t,r){var n=new Set(e),o=t();return e.filter(function(i){var l=o[i],s=l?l.parent:null,c=l?l.children:null;return l&&l.node.disabled?!0:r===N4?!(c&&c.some(function(u){return u.key&&n.has(u.key)})):!(s&&!s.node.disabled&&n.has(s.key))})}function oi(e,t,r){for(var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,i=[],l=function(){var u,d,f,m=e[s],g=(u=o)===null||u===void 0?void 0:u.findIndex(function(h){var v=h[r.value];return n?String(v)===String(m):v===m}),p=g!==-1?(d=o)===null||d===void 0?void 0:d[g]:null;i.push({value:(f=p==null?void 0:p[r.value])!==null&&f!==void 0?f:m,index:g,option:p}),o=p==null?void 0:p[r.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,g){for(var p=L4(f?f.pos:"0",g),h=ql(m[i],p),v,C=0;C1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,l=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=i||c,d={},f={},m={posEntities:d,keyEntities:f};return r&&(m=r(m)||m),VT(e,function(g){var p=g.node,h=g.index,v=g.pos,C=g.key,b=g.parentPos,y=g.level,S=g.nodes,x={node:p,nodes:S,index:h,key:C,pos:v,level:y},$=ql(C,v);d[v]=x,f[$]=x,x.parent=d[b],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,m)},{externalGetKey:u,childrenPropName:l,fieldNames:s}),o&&o(m),m}function rl(e,t){var r=t.expandedKeys,n=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,l=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=ir(d,e),m={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:l.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 Mn(e){var t=e.data,r=e.expanded,n=e.selected,o=e.checked,i=e.loaded,l=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,p=q(q({},t),{},{expanded:r,selected:n,checked:o,loaded:i,loading:l,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:g});return"props"in p||Object.defineProperty(p,"props",{get:function(){return Jt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}const WT=function(e,t){var r=a.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),n=a.useCallback(function(){return r.current.options!==e&&(r.current.options=e,r.current.info=Gl(e,{fieldNames:t,initWrapper:function(i){return q(q({},i),{},{pathKeyEntities:{}})},processEntity:function(i,l){var s=i.nodes.map(function(c){return c[t.value]}).join(Qm);l.pathKeyEntities[s]=i,i.key=s}})),r.current.info.pathKeyEntities},[t,e]);return n};function k4(e,t){var r=a.useMemo(function(){return t||[]},[t]),n=WT(r,e),o=a.useCallback(function(i){var l=n();return i.map(function(s){var c=l[s].nodes;return c.map(function(u){return u[e.value]})})},[n,e]);return[r,n,o]}function KT(e){return a.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&yt(e)==="object"&&(t=q(q({},t),e)),t.limit<=0&&delete t.limit,[!0,t]},[e])}function H4(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function qT(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,o=t.checkable;return!!(r||n)||o===!1}function GT(e,t,r,n){for(var o=new Set(e),i=new Set,l=0;l<=r;l+=1){var s=t.get(l)||new Set;s.forEach(function(f){var m=f.key,g=f.node,p=f.children,h=p===void 0?[]:p;o.has(m)&&!n(g)&&h.filter(function(v){return!n(v.node)}).forEach(function(v){o.add(v.key)})})}for(var c=new Set,u=r;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,g=f.node;if(!(n(g)||!f.parent||c.has(f.parent.key))){if(n(f.parent.node)){c.add(m.key);return}var p=!0,h=!1;(m.children||[]).filter(function(v){return!n(v.node)}).forEach(function(v){var C=v.key,b=o.has(C);p&&!b&&(p=!1),!h&&(b||i.has(C))&&(h=!0)}),p&&o.add(m.key),h&&i.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(H4(i,o))}}function XT(e,t,r,n,o){for(var i=new Set(e),l=new Set(t),s=0;s<=n;s+=1){var c=r.get(s)||new Set;c.forEach(function(m){var g=m.key,p=m.node,h=m.children,v=h===void 0?[]:h;!i.has(g)&&!l.has(g)&&!o(p)&&v.filter(function(C){return!o(C.node)}).forEach(function(C){i.delete(C.key)})})}l=new Set;for(var u=new Set,d=n;d>=0;d-=1){var f=r.get(d)||new Set;f.forEach(function(m){var g=m.parent,p=m.node;if(!(o(p)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(g.key);return}var h=!0,v=!1;(g.children||[]).filter(function(C){return!o(C.node)}).forEach(function(C){var b=C.key,y=i.has(b);h&&!y&&(h=!1),!v&&(y||l.has(b))&&(v=!0)}),h||i.delete(g.key),v&&l.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(H4(l,i))}}function Or(e,t,r,n){var o=[],i;n?i=n:i=qT;var l=new Set(e.filter(function(d){var f=!!ir(r,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(r).forEach(function(d){var f=r[d],m=f.level,g=s.get(m);g||(g=new Set,s.set(m,g)),g.add(f),c=Math.max(c,m)}),Jt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=GT(l,s,c,i):u=XT(l,t.halfCheckedKeys,s,c,i),u}function j4(e,t,r,n,o,i,l,s){return function(c){if(!e)t(c);else{var u=jr(c),d=ri(r),f=ri(n),m=d.includes(u),g=o.some(function($){return jr($)===u}),p=r,h=o;if(g&&!m)h=o.filter(function($){return jr($)!==u});else{var v=m?d.filter(function($){return $!==u}):[].concat(ye(d),[u]),C=i(),b;if(m){var y=Or(v,{checked:!1,halfCheckedKeys:f},C);b=y.checkedKeys}else{var S=Or(v,!0,C);b=S.checkedKeys}var x=_4(b,i,s);p=l(x)}t([].concat(ye(h),ye(p)))}}}function B4(e,t,r,n,o){return a.useMemo(function(){var i=o(t),l=ie(i,2),s=l[0],c=l[1];if(!e||!t.length)return[s,[],c];var u=ri(s),d=r(),f=Or(u,!0,d),m=f.checkedKeys,g=f.halfCheckedKeys;return[n(m),n(g),c]},[e,t,r,n,o])}var UT=a.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function YT(e){var t,r=e.prefixCls,n=e.checked,o=e.halfChecked,i=e.disabled,l=e.onClick,s=e.disableCheckbox,c=a.useContext(Oi),u=c.checkable,d=typeof u!="boolean"?u:null;return a.createElement("span",{className:G("".concat(r),(t={},F(t,"".concat(r,"-checked"),n),F(t,"".concat(r,"-indeterminate"),!n&&o),F(t,"".concat(r,"-disabled"),i||s),t)),onClick:l},d)}var z4="__cascader_fix_label__";function ZT(e){var t=e.prefixCls,r=e.multiple,n=e.options,o=e.activeValue,i=e.prevValuePath,l=e.onToggleOpen,s=e.onSelect,c=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,g="".concat(t,"-menu"),p="".concat(t,"-menu-item"),h=a.useContext(Oi),v=h.fieldNames,C=h.changeOnSelect,b=h.expandTrigger,y=h.expandIcon,S=h.loadingIcon,x=h.dropdownMenuColumnStyle,$=h.optionRender,w=b==="hover",I=a.useMemo(function(){return n.map(function(E){var O,M=E.disabled,N=E.disableCheckbox,L=E[Ua],P=(O=E[z4])!==null&&O!==void 0?O:E[v.label],T=E[v.value],_=Ui(E,v),R=L?L.map(function(V){return V[v.value]}):[].concat(ye(i),[T]),D=jr(R),k=f.includes(D),H=u.has(D),j=d.has(D);return{disabled:M,label:P,value:T,isLeaf:_,isLoading:k,checked:H,halfChecked:j,option:E,disableCheckbox:N,fullPath:R,fullPathKey:D}})},[n,u,v,d,f,i]);return a.createElement("ul",{className:g,role:"menu"},I.map(function(E){var O,M=E.disabled,N=E.label,L=E.value,P=E.isLeaf,T=E.isLoading,_=E.checked,R=E.halfChecked,D=E.option,k=E.fullPath,H=E.fullPathKey,j=E.disableCheckbox,V=function(){if(!M){var J=ye(k);w&&P&&J.pop(),c(J)}},A=function(){m(D)&&s(k,P)},K;return typeof D.title=="string"?K=D.title:typeof N=="string"&&(K=N),a.createElement("li",{key:H,className:G(p,(O={},F(O,"".concat(p,"-expand"),!P),F(O,"".concat(p,"-active"),o===L||o===H),F(O,"".concat(p,"-disabled"),M),F(O,"".concat(p,"-loading"),T),O)),style:x,role:"menuitemcheckbox",title:K,"aria-checked":_,"data-path-key":H,onClick:function(){V(),!j&&(!r||P)&&A()},onDoubleClick:function(){C&&l(!1)},onMouseEnter:function(){w&&V()},onMouseDown:function(J){J.preventDefault()}},r&&a.createElement(YT,{prefixCls:"".concat(t,"-checkbox"),checked:_,halfChecked:R,disabled:M||j,disableCheckbox:j,onClick:function(J){j||(J.stopPropagation(),A())}}),a.createElement("div",{className:"".concat(p,"-content")},$?$(D):N),!T&&y&&!P&&a.createElement("div",{className:"".concat(p,"-expand-icon")},y),T&&S&&a.createElement("div",{className:"".concat(p,"-loading-icon")},S))}))}var QT=function(t,r){var n=a.useContext(Oi),o=n.values,i=o[0],l=a.useState([]),s=ie(l,2),c=s[0],u=s[1];return a.useEffect(function(){t||u(i||[])},[r,i]),[c,u]};const JT=function(e,t,r,n,o,i,l){var s=l.direction,c=l.searchValue,u=l.toggleOpen,d=l.open,f=s==="rtl",m=a.useMemo(function(){for(var $=-1,w=t,I=[],E=[],O=n.length,M=R4(t,r),N=function(D){var k=w.findIndex(function(H,j){return(M[j]?jr(M[j]):H[r.value])===n[D]});if(k===-1)return"break";$=k,I.push($),E.push(n[D]),w=w[$][r.children]},L=0;L1){var w=p.slice(0,-1);b(w)}else u(!1)},x=function(){var w,I=((w=v[h])===null||w===void 0?void 0:w[r.children])||[],E=I.find(function(M){return!M.disabled});if(E){var O=[].concat(ye(p),[E[r.value]]);b(O)}};a.useImperativeHandle(e,function(){return{onKeyDown:function(w){var I=w.which;switch(I){case we.UP:case we.DOWN:{var E=0;I===we.UP?E=-1:I===we.DOWN&&(E=1),E!==0&&y(E);break}case we.LEFT:{if(c)break;f?x():S();break}case we.RIGHT:{if(c)break;f?S():x();break}case we.BACKSPACE:{c||S();break}case we.ENTER:{if(p.length){var O=v[h],M=(O==null?void 0:O[Ua])||[];M.length?i(M.map(function(N){return N[r.value]}),M[M.length-1]):i(p,v[h])}break}case we.ESC:u(!1),d&&w.stopPropagation()}},onKeyUp:function(){}}})};var F4=a.forwardRef(function(e,t){var r,n,o,i,l=e.prefixCls,s=e.multiple,c=e.searchValue,u=e.toggleOpen,d=e.notFoundContent,f=e.direction,m=e.open,g=a.useRef(null),p=f==="rtl",h=a.useContext(Oi),v=h.options,C=h.values,b=h.halfValues,y=h.fieldNames,S=h.changeOnSelect,x=h.onSelect,$=h.searchOptions,w=h.dropdownPrefixCls,I=h.loadData,E=h.expandTrigger,O=w||l,M=a.useState([]),N=ie(M,2),L=N[0],P=N[1],T=function(Y){if(!(!I||c)){var oe=oi(Y,v,y),se=oe.map(function(ce){var ue=ce.option;return ue}),ae=se[se.length-1];if(ae&&!Ui(ae,y)){var re=jr(Y);P(function(ce){return[].concat(ye(ce),[re])}),I(se)}}};a.useEffect(function(){L.length&&L.forEach(function(Z){var Y=HT(Z),oe=oi(Y,v,y,!0).map(function(ae){var re=ae.option;return re}),se=oe[oe.length-1];(!se||se[y.children]||Ui(se,y))&&P(function(ae){return ae.filter(function(re){return re!==Z})})})},[v,L,y]);var _=a.useMemo(function(){return new Set(ri(C))},[C]),R=a.useMemo(function(){return new Set(ri(b))},[b]),D=QT(s,m),k=ie(D,2),H=k[0],j=k[1],V=function(Y){j(Y),T(Y)},A=function(Y){var oe=Y.disabled,se=Ui(Y,y);return!oe&&(se||S||s)},K=function(Y,oe){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;x(Y),!s&&(oe||S&&(E==="hover"||se))&&u(!1)},W=a.useMemo(function(){return c?$:v},[c,$,v]),J=a.useMemo(function(){for(var Z=[{options:W}],Y=W,oe=R4(Y,y),se=function(){var ue=H[ae],fe=Y.find(function(de,he){return(oe[he]?jr(oe[he]):de[y.value])===ue}),be=fe==null?void 0:fe[y.children];if(!(be!=null&&be.length))return"break";Y=be,Z.push({options:be})},ae=0;ae":C,y=r.loadingIcon,S=r.direction,x=r.notFoundContent,$=x===void 0?"Not Found":x,w=!!c,I=It(u,{value:d,postState:Js}),E=ie(I,2),O=E[0],M=E[1],N=a.useMemo(function(){return P4(f)},[JSON.stringify(f)]),L=k4(N,s),P=ie(L,3),T=P[0],_=P[1],R=P[2],D=T4(T,N),k=B4(w,O,_,R,D),H=ie(k,3),j=H[0],V=H[1],A=H[2],K=$t(function(te){if(M(te),g){var U=Js(te),ne=U.map(function(oe){return oi(oe,T,N).map(function(se){return se.option})}),Z=w?U:U[0],Y=w?ne:ne[0];g(Z,Y)}}),W=j4(w,K,j,V,A,_,R,p),J=$t(function(te){W(te)}),X=a.useMemo(function(){return{options:T,fieldNames:N,values:j,halfValues:V,changeOnSelect:m,onSelect:J,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:h,expandTrigger:v,expandIcon:b,loadingIcon:y,dropdownMenuColumnStyle:void 0}},[T,N,j,V,m,J,c,h,v,b,y]),Q="".concat(o,"-panel"),ee=!T.length;return a.createElement(Oi.Provider,{value:X},a.createElement("div",{className:G(Q,(t={},F(t,"".concat(Q,"-rtl"),S==="rtl"),F(t,"".concat(Q,"-empty"),ee),t),l),style:i},ee?$:a.createElement(F4,{prefixCls:o,searchValue:"",multiple:w,toggleOpen:tL,open:!0,direction:S})))}var nL=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Xl=a.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,o=n===void 0?"rc-cascader":n,i=e.fieldNames,l=e.defaultValue,s=e.value,c=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,g=m===void 0?!0:m,p=e.searchValue,h=e.onSearch,v=e.showSearch,C=e.expandTrigger,b=e.options,y=e.dropdownPrefixCls,S=e.loadData,x=e.popupVisible,$=e.open,w=e.popupClassName,I=e.dropdownClassName,E=e.dropdownMenuColumnStyle,O=e.dropdownStyle,M=e.popupPlacement,N=e.placement,L=e.onDropdownVisibleChange,P=e.onPopupVisibleChange,T=e.expandIcon,_=T===void 0?">":T,R=e.loadingIcon,D=e.children,k=e.dropdownMatchSelectWidth,H=k===void 0?!1:k,j=e.showCheckedStrategy,V=j===void 0?M4:j,A=e.optionRender,K=ut(e,nL),W=xm(r),J=!!f,X=It(l,{value:s,postState:Js}),Q=ie(X,2),ee=Q[0],te=Q[1],U=a.useMemo(function(){return P4(i)},[JSON.stringify(i)]),ne=k4(U,b),Z=ie(ne,3),Y=Z[0],oe=Z[1],se=Z[2],ae=It("",{value:p,postState:function(We){return We||""}}),re=ie(ae,2),ce=re[0],ue=re[1],fe=function(We,je){ue(We),je.source!=="blur"&&h&&h(We)},be=KT(v),de=ie(be,2),he=de[0],Se=de[1],$e=kT(ce,Y,U,y||o,Se,c||J),Ne=T4(Y,U),xe=B4(J,ee,oe,se,Ne),Pe=ie(xe,3),Ie=Pe[0],_e=Pe[1],Re=Pe[2],Me=a.useMemo(function(){var Xe=ri(Ie),We=_4(Xe,oe,V);return[].concat(ye(Re),ye(se(We)))},[Ie,oe,se,Re,V]),me=zT(Me,Y,U,J,d),Ce=$t(function(Xe){if(te(Xe),u){var We=Js(Xe),je=We.map(function(Ue){return oi(Ue,Y,U).map(function(De){return De.option})}),at=J?We:We[0],Te=J?je:je[0];u(at,Te)}}),pe=j4(J,Ce,Ie,_e,Re,oe,se,V),ge=$t(function(Xe){(!J||g)&&ue(""),pe(Xe)}),Oe=function(We,je){if(je.type==="clear"){Ce([]);return}var at=je.values[0],Te=at.valueCells;ge(Te)},nt=$!==void 0?$:x,Ve=I||w,Ze=N||M,Le=function(We){L==null||L(We),P==null||P(We)},Ke=a.useMemo(function(){return{options:Y,fieldNames:U,values:Ie,halfValues:_e,changeOnSelect:c,onSelect:ge,checkable:f,searchOptions:$e,dropdownPrefixCls:y,loadData:S,expandTrigger:C,expandIcon:_,loadingIcon:R,dropdownMenuColumnStyle:E,optionRender:A}},[Y,U,Ie,_e,c,ge,f,$e,y,S,C,_,R,E,A]),Qe=!(ce?$e:Y).length,ot=ce&&Se.matchInputWidth||Qe?{}:{minWidth:"auto"};return a.createElement(Oi.Provider,{value:Ke},a.createElement(bm,ve({},K,{ref:t,id:W,prefixCls:o,autoClearSearchValue:g,dropdownMatchSelectWidth:H,dropdownStyle:q(q({},ot),O),displayValues:me,onDisplayValuesChange:Oe,mode:J?"multiple":void 0,searchValue:ce,onSearch:fe,showSearch:he,OptionList:eL,emptyOptions:Qe,open:nt,dropdownClassName:Ve,placement:Ze,onDropdownVisibleChange:Le,getRawInputElement:function(){return D}})))});Xl.SHOW_PARENT=M4;Xl.SHOW_CHILD=N4;Xl.Panel=A4;function V4(e,t){const{getPrefixCls:r,direction:n,renderEmpty:o}=a.useContext(ke),i=t||n,l=r("select",e),s=r("cascader",e);return[l,s,i,o]}function W4(e,t){return a.useMemo(()=>t?a.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const K4=(e,t,r)=>{let n=r;r||(n=t?a.createElement(Vo,null):a.createElement(lo,null));const o=a.createElement("span",{className:`${e}-menu-item-loading-icon`},a.createElement(Fr,{spin:!0}));return a.useMemo(()=>[n,o],[n])},rL=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Mt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Mt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Mt(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({},Ao(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${z(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:`${z(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}})},{[`
+ ${r}:not(${r}-disabled),
+ ${t}:not(${t}-disabled)
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-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}`}}},[`
+ ${r}-checked:not(${r}-disabled),
+ ${t}-checked:not(${t}-disabled)
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-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 du(e,t){const r=xt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[rL(r)]}const q4=Ot("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[du(r,e)]}),oL=e=>{const{prefixCls:t,componentCls:r}=e,n=`${r}-menu-item`,o=`
+ &${n}-expand ${n}-expand-icon,
+ ${n}-loading-icon
+`;return[du(`${t}-checkbox`,e),{[r]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${r}-menu-empty`]:{[`${r}-menu`]:{width:"100%",height:"auto",[n]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Rn),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${n}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},G4=oL,aL=e=>{const{componentCls:t,antCls:r}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${r}-select-dropdown`]:{padding:0}},G4(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Sa(e)]},X4=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},U4=Ot("Cascader",e=>[aL(e)],X4),iL=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[G4(e),{display:"inline-flex",border:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},lL=A2(["Cascader","Panel"],e=>iL(e),X4);function sL(e){const{prefixCls:t,className:r,multiple:n,rootClassName:o,notFoundContent:i,direction:l,expandIcon:s}=e,[c,u,d,f]=V4(t,l),m=Ut(u),[g,p,h]=U4(u,m);lL(u);const v=d==="rtl",[C,b]=K4(c,v,s),y=i||(f==null?void 0:f("Cascader"))||a.createElement(Qo,{componentName:"Cascader"}),S=W4(u,n);return g(a.createElement(A4,Object.assign({},e,{checkable:S,prefixCls:u,className:G(r,p,o,h,m),notFoundContent:y,direction:d,expandIcon:C,loadingIcon:b})))}var cL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);oc===0?[s]:[].concat(ye(l),[t,s]),[]),o=[];let i=0;return n.forEach((l,s)=>{const c=i+l.length;let u=e.slice(i,c);i=c,s%2===1&&(u=a.createElement("span",{className:`${r}-menu-item-keyword`,key:`separator-${s}`},u)),o.push(u)}),o}const mL=(e,t,r,n)=>{const o=[],i=e.toLowerCase();return t.forEach((l,s)=>{s!==0&&o.push(" / ");let c=l[n.label];const u=typeof c;(u==="string"||u==="number")&&(c=fL(String(c),i,r)),o.push(c)}),o},No=a.forwardRef((e,t)=>{var r;const{prefixCls:n,size:o,disabled:i,className:l,rootClassName:s,multiple:c,bordered:u=!0,transitionName:d,choiceTransitionName:f="",popupClassName:m,dropdownClassName:g,expandIcon:p,placement:h,showSearch:v,allowClear:C=!0,notFoundContent:b,direction:y,getPopupContainer:S,status:x,showArrow:$,builtinPlacements:w,style:I,variant:E}=e,O=cL(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),M=Xt(O,["suffixIcon"]),{getPopupContainer:N,getPrefixCls:L,popupOverflow:P,cascader:T}=a.useContext(ke),{status:_,hasFeedback:R,isFormItemInput:D,feedbackIcon:k}=a.useContext(dn),H=qr(_,x),[j,V,A,K]=V4(n,y),W=A==="rtl",J=L(),X=Ut(j),[Q,ee,te]=Em(j,X),U=Ut(V),[ne]=U4(V,U),{compactSize:Z,compactItemClassnames:Y}=Kr(j,y),[oe,se]=ho("cascader",E,u),ae=b||(K==null?void 0:K("Cascader"))||a.createElement(Qo,{componentName:"Cascader"}),re=G(m||g,`${V}-dropdown`,{[`${V}-dropdown-rtl`]:A==="rtl"},s,X,U,ee,te),ce=a.useMemo(()=>{if(!v)return v;let me={render:mL};return typeof v=="object"&&(me=Object.assign(Object.assign({},me),v)),me},[v]),ue=un(me=>{var Ce;return(Ce=o!=null?o:Z)!==null&&Ce!==void 0?Ce:me}),fe=a.useContext(Fn),be=i!=null?i:fe,[de,he]=K4(j,W,p),Se=W4(V,c),$e=Im(e.suffixIcon,$),{suffixIcon:Ne,removeIcon:xe,clearIcon:Pe}=zc(Object.assign(Object.assign({},e),{hasFeedback:R,feedbackIcon:k,showSuffixIcon:$e,multiple:c,prefixCls:j,componentName:"Cascader"})),Ie=a.useMemo(()=>h!==void 0?h:W?"bottomRight":"bottomLeft",[h,W]),_e=C===!0?{clearIcon:Pe}:C,[Re]=lr("SelectLike",(r=M.dropdownStyle)===null||r===void 0?void 0:r.zIndex),Me=a.createElement(Xl,Object.assign({prefixCls:j,className:G(!n&&V,{[`${j}-lg`]:ue==="large",[`${j}-sm`]:ue==="small",[`${j}-rtl`]:W,[`${j}-${oe}`]:se,[`${j}-in-form-item`]:D},vr(j,H,R),Y,T==null?void 0:T.className,l,s,X,U,ee,te),disabled:be,style:Object.assign(Object.assign({},T==null?void 0:T.style),I)},M,{builtinPlacements:wm(w,P),direction:A,placement:Ie,notFoundContent:ae,allowClear:_e,showSearch:ce,expandIcon:de,suffixIcon:Ne,removeIcon:xe,loadingIcon:he,checkable:Se,dropdownClassName:re,dropdownPrefixCls:n||V,dropdownStyle:Object.assign(Object.assign({},M.dropdownStyle),{zIndex:Re}),choiceTransitionName:jn(J,"",f),transitionName:jn(J,"slide-up",d),getPopupContainer:S||N,ref:t}));return ne(Q(Me))}),gL=po(No);No.SHOW_PARENT=dL;No.SHOW_CHILD=uL;No.Panel=sL;No._InternalPanelDoNotUseOrYouWillBeFired=gL;const vL=B.createContext(null),Y4=vL;var pL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,className:o,rootClassName:i,children:l,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,g=pL(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:h,checkbox:v}=a.useContext(ke),C=a.useContext(Y4),{isFormItemInput:b}=a.useContext(dn),y=a.useContext(Fn),S=(r=(C==null?void 0:C.disabled)||m)!==null&&r!==void 0?r:y,x=a.useRef(g.value);a.useEffect(()=>{C==null||C.registerValue(g.value)},[]),a.useEffect(()=>{if(!f)return g.value!==x.current&&(C==null||C.cancelValue(x.current),C==null||C.registerValue(g.value),x.current=g.value),()=>C==null?void 0:C.cancelValue(g.value)},[g.value]);const $=p("checkbox",n),w=Ut($),[I,E,O]=q4($,w),M=Object.assign({},g);C&&!f&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),C.toggleOption&&C.toggleOption({label:l,value:g.value})},M.name=C.name,M.checked=C.value.includes(g.value));const N=G(`${$}-wrapper`,{[`${$}-rtl`]:h==="rtl",[`${$}-wrapper-checked`]:M.checked,[`${$}-wrapper-disabled`]:S,[`${$}-wrapper-in-form-item`]:b},v==null?void 0:v.className,o,i,O,w,E),L=G({[`${$}-indeterminate`]:s},Ic,E),P=s?"mixed":void 0;return I(a.createElement(Pl,{component:"Checkbox",disabled:S},a.createElement("label",{className:N,style:Object.assign(Object.assign({},v==null?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d},a.createElement(t4,Object.assign({"aria-checked":P},M,{prefixCls:$,className:L,disabled:S,ref:t})),l!==void 0&&a.createElement("span",null,l))))},Z4=a.forwardRef(hL);var CL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{defaultValue:r,children:n,options:o=[],prefixCls:i,className:l,rootClassName:s,style:c,onChange:u}=e,d=CL(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=a.useContext(ke),[g,p]=a.useState(d.value||r||[]),[h,v]=a.useState([]);a.useEffect(()=>{"value"in d&&p(d.value||[])},[d.value]);const C=a.useMemo(()=>o.map(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),[o]),b=T=>{v(_=>_.filter(R=>R!==T))},y=T=>{v(_=>[].concat(ye(_),[T]))},S=T=>{const _=g.indexOf(T.value),R=ye(g);_===-1?R.push(T.value):R.splice(_,1),"value"in d||p(R),u==null||u(R.filter(D=>h.includes(D)).sort((D,k)=>{const H=C.findIndex(V=>V.value===D),j=C.findIndex(V=>V.value===k);return H-j}))},x=f("checkbox",i),$=`${x}-group`,w=Ut(x),[I,E,O]=q4(x,w),M=Xt(d,["value","disabled"]),N=o.length?C.map(T=>a.createElement(Z4,{prefixCls:x,key:T.value.toString(),disabled:"disabled"in T?T.disabled:d.disabled,value:T.value,checked:g.includes(T.value),onChange:T.onChange,className:`${$}-item`,style:T.style,title:T.title,id:T.id,required:T.required},T.label)):n,L={toggleOption:S,value:g,disabled:d.disabled,name:d.name,registerValue:y,cancelValue:b},P=G($,{[`${$}-rtl`]:m==="rtl"},l,s,O,w,E);return I(a.createElement("div",Object.assign({className:P,style:c},M,{ref:t}),a.createElement(Y4.Provider,{value:L},N)))}),yL=bL,so=Z4;so.Group=yL;so.__ANT_CHECKBOX=!0;var Q4=B.forwardRef(function(e,t){var r=e.prefixCls,n=e.forceRender,o=e.className,i=e.style,l=e.children,s=e.isActive,c=e.role,u=B.useState(s||n),d=ie(u,2),f=d[0],m=d[1];return B.useEffect(function(){(n||s)&&m(!0)},[n,s]),f?B.createElement("div",{ref:t,className:G("".concat(r,"-content"),F(F({},"".concat(r,"-content-active"),s),"".concat(r,"-content-inactive"),!s),o),style:i,role:c},B.createElement("div",{className:"".concat(r,"-content-box")},l)):null});Q4.displayName="PanelContent";var SL=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],J4=B.forwardRef(function(e,t){var r=e.showArrow,n=r===void 0?!0:r,o=e.headerClass,i=e.isActive,l=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,m=e.panelKey,g=e.extra,p=e.header,h=e.expandIcon,v=e.openMotion,C=e.destroyInactivePanel,b=e.children,y=ut(e,SL),S=d==="disabled",x=d==="header",$=d==="icon",w=g!=null&&typeof g!="boolean",I=function(){l==null||l(m)},E=function(T){(T.key==="Enter"||T.keyCode===we.ENTER||T.which===we.ENTER)&&I()},O=typeof h=="function"?h(e):B.createElement("i",{className:"arrow"});O&&(O=B.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?I:void 0},O));var M=G(F(F(F({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),i),"".concat(u,"-item-disabled"),S),c),N=G(o,F(F(F({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),x),"".concat(u,"-icon-collapsible-only"),$)),L={className:N,"aria-expanded":i,"aria-disabled":S,onKeyDown:E};return!x&&!$&&(L.onClick=I,L.role=f?"tab":"button",L.tabIndex=S?-1:0),B.createElement("div",ve({},y,{ref:t,className:M}),B.createElement("div",L,n&&O,B.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?I:void 0},p),w&&B.createElement("div",{className:"".concat(u,"-extra")},g)),B.createElement(In,ve({visible:i,leavedClassName:"".concat(u,"-content-hidden")},v,{forceRender:s,removeOnLeave:C}),function(P,T){var _=P.className,R=P.style;return B.createElement(Q4,{ref:T,prefixCls:u,className:_,style:R,isActive:i,forceRender:s,role:f?"tabpanel":void 0},b)}))}),xL=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],$L=function(t,r){var n=r.prefixCls,o=r.accordion,i=r.collapsible,l=r.destroyInactivePanel,s=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon;return t.map(function(f,m){var g=f.children,p=f.label,h=f.key,v=f.collapsible,C=f.onItemClick,b=f.destroyInactivePanel,y=ut(f,xL),S=String(h!=null?h:m),x=v!=null?v:i,$=b!=null?b:l,w=function(O){x!=="disabled"&&(s(O),C==null||C(O))},I=!1;return o?I=c[0]===S:I=c.indexOf(S)>-1,B.createElement(J4,ve({},y,{prefixCls:n,key:S,panelKey:S,isActive:I,accordion:o,openMotion:u,expandIcon:d,header:p,collapsible:x,onItemClick:w,destroyInactivePanel:$}),g)})},wL=function(t,r,n){if(!t)return null;var o=n.prefixCls,i=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,c=n.onItemClick,u=n.activeKey,d=n.openMotion,f=n.expandIcon,m=t.key||String(r),g=t.props,p=g.header,h=g.headerClass,v=g.destroyInactivePanel,C=g.collapsible,b=g.onItemClick,y=!1;i?y=u[0]===m:y=u.indexOf(m)>-1;var S=C!=null?C:l,x=function(I){S!=="disabled"&&(c(I),b==null||b(I))},$={key:m,panelKey:m,header:p,headerClass:h,isActive:y,prefixCls:o,destroyInactivePanel:v!=null?v:s,openMotion:d,accordion:i,children:t.props.children,onItemClick:x,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys($).forEach(function(w){typeof $[w]=="undefined"&&delete $[w]}),B.cloneElement(t,$))};function EL(e,t,r){return Array.isArray(e)?$L(e,r):sn(t).map(function(n,o){return wL(n,o,r)})}function IL(e){var t=e;if(!Array.isArray(t)){var r=yt(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var OL=B.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-collapse":r,o=e.destroyInactivePanel,i=o===void 0?!1:o,l=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,g=e.activeKey,p=e.defaultActiveKey,h=e.onChange,v=e.items,C=G(n,c),b=It([],{value:g,onChange:function(E){return h==null?void 0:h(E)},defaultValue:p,postState:IL}),y=ie(b,2),S=y[0],x=y[1],$=function(E){return x(function(){if(s)return S[0]===E?[]:[E];var O=S.indexOf(E),M=O>-1;return M?S.filter(function(N){return N!==E}):[].concat(ye(S),[E])})};Jt(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=EL(v,u,{prefixCls:n,accordion:s,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:i,onItemClick:$,activeKey:S});return B.createElement("div",ve({ref:t,className:C,style:l,role:s?"tablist":void 0},en(e,{aria:!0,data:!0})),w)});const Jm=Object.assign(OL,{Panel:J4});Jm.Panel;const ML=a.forwardRef((e,t)=>{const{getPrefixCls:r}=a.useContext(ke),{prefixCls:n,className:o,showArrow:i=!0}=e,l=r("collapse",n),s=G({[`${l}-no-arrow`]:!i},o);return a.createElement(Jm.Panel,Object.assign({ref:t},e,{prefixCls:l,className:s}))}),NL=ML,PL=e=>{const{componentCls:t,contentBg:r,padding:n,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:g,colorTextDisabled:p,fontSizeLG:h,lineHeight:v,lineHeightLG:C,marginSM:b,paddingSM:y,paddingLG:S,paddingXS:x,motionDurationSlow:$,fontSizeIcon:w,contentPadding:I,fontHeight:E,fontHeightLG:O}=e,M=`${z(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Mt(e)),{backgroundColor:o,border:M,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:last-child":{[`
+ &,
+ & > ${t}-header`]:{borderRadius:`0 0 ${z(c)} ${z(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:g,lineHeight:v,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},gi()),{fontSize:w,transition:`transform ${$}`,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:r,borderTop:M,[`& > ${t}-content-box`]:{padding:I},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:C,[`> ${t}-header`]:{padding:s,paddingInlineStart:n,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(S).sub(n).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${z(c)} ${z(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:b}}}}})}},RL=e=>{const{componentCls:t}=e,r=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},_L=e=>{const{componentCls:t,headerBg:r,paddingXXS:n,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:r,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:n}}}},TL=e=>{const{componentCls:t,paddingSM:r}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:r}}}}}},LL=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),DL=Ot("Collapse",e=>{const t=xt(e,{collapseHeaderPaddingSM:`${z(e.paddingXS)} ${z(e.paddingSM)}`,collapseHeaderPaddingLG:`${z(e.padding)} ${z(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[PL(t),_L(t),TL(t),RL(t),Tl(t)]},LL),kL=a.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n,collapse:o}=a.useContext(ke),{prefixCls:i,className:l,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:m="start",children:g,expandIcon:p}=e,h=un(M=>{var N;return(N=f!=null?f:M)!==null&&N!==void 0?N:"middle"}),v=r("collapse",i),C=r(),[b,y,S]=DL(v),x=a.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),$=p!=null?p:o==null?void 0:o.expandIcon,w=a.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const N=typeof $=="function"?$(M):a.createElement(lo,{rotate:M.isActive?90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return cn(N,()=>{var L;return{className:G((L=N==null?void 0:N.props)===null||L===void 0?void 0:L.className,`${v}-arrow`)}})},[$,v]),I=G(`${v}-icon-position-${x}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:n==="rtl",[`${v}-ghost`]:!!d,[`${v}-${h}`]:h!=="middle"},o==null?void 0:o.className,l,s,y,S),E=Object.assign(Object.assign({},Ja(C)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=a.useMemo(()=>g?sn(g).map((M,N)=>{var L,P;if(!((L=M.props)===null||L===void 0)&&L.disabled){const T=(P=M.key)!==null&&P!==void 0?P:String(N),{disabled:_,collapsible:R}=M.props,D=Object.assign(Object.assign({},Xt(M.props,["disabled"])),{key:T,collapsible:R!=null?R:_?"disabled":void 0});return cn(M,D)}return M}):null,[g]);return b(a.createElement(Jm,Object.assign({ref:t,openMotion:E},Xt(e,["rootClassName"]),{expandIcon:w,prefixCls:v,className:I,style:Object.assign(Object.assign({},o==null?void 0:o.style),c)}),O))}),e0=Object.assign(kL,{Panel:NL}),Hn=Math.round;function fd(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const sp=(e,t,r)=>r===0?e:e/100;function Fi(e,t){const r=t||255;return e>r?r:e<0?0:e}class fu{constructor(t){F(this,"isValid",!0),F(this,"r",0),F(this,"g",0),F(this,"b",0),F(this,"a",1),F(this,"_h",void 0),F(this,"_s",void 0),F(this,"_l",void 0),F(this,"_v",void 0),F(this,"_max",void 0),F(this,"_min",void 0),F(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof fu)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Fi(t.r),this.g=Fi(t.g),this.b=Fi(t.b),this.a=typeof t.a=="number"?Fi(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Hn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],l={r:Hn(i("r")),g:Hn(i("g")),b:Hn(i("b")),a:Hn(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>Hn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Hn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Hn(this.getSaturation()*100),n=Hn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Fi(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const m=Hn(n*255);this.r=m,this.g=m,this.b=m}let i=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*n-1))*r,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,l=d):c>=1&&c<2?(i=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(i=d,s=u):c>=5&&c<6&&(i=u,s=d);const f=n-u/2;this.r=Hn((i+f)*255),this.g=Hn((l+f)*255),this.b=Hn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=Hn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=Hn(n*(1-r)*255),d=Hn(n*(1-r*c)*255),f=Hn(n*(1-r*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const r=fd(t,sp);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=fd(t,sp);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=fd(t,(n,o)=>o.includes("%")?Hn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var HL=["b"],jL=["v"],md=function(t){return Math.round(Number(t||0))},BL=function(t){if(t instanceof fu)return t;if(t&&yt(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=ut(r,HL);return q(q({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Wr=function(e){Kn(r,e);var t=go(r);function r(n){return tn(this,r),t.call(this,BL(n))}return nn(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=md(o.s*100),l=md(o.b*100),s=md(o.h),c=o.a,u="hsb(".concat(s,", ").concat(i,"%, ").concat(l,"%)"),d="hsba(".concat(s,", ").concat(i,"%, ").concat(l,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,l=ut(o,jL);return q(q({},l),{},{b:i,a:this.a})}}]),r}(fu),zL="rc-color-picker",Ya=function(t){return t instanceof Wr?t:new Wr(t)},FL=Ya("#1677ff"),eb=function(t){var r=t.offset,n=t.targetRef,o=t.containerRef,i=t.color,l=t.type,s=o.current.getBoundingClientRect(),c=s.width,u=s.height,d=n.current.getBoundingClientRect(),f=d.width,m=d.height,g=f/2,p=m/2,h=(r.x+g)/c,v=1-(r.y+p)/u,C=i.toHsb(),b=h,y=(r.x+g)/c*360;if(l)switch(l){case"hue":return Ya(q(q({},C),{},{h:y<=0?0:y}));case"alpha":return Ya(q(q({},C),{},{a:b<=0?0:b}))}return Ya({h:C.h,s:h<=0?0:h,b:v>=1?1:v,a:C.a})},tb=function(t,r){var n=t.toHsb();switch(r){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},t0=function(t){var r=t.color,n=t.prefixCls,o=t.className,i=t.style,l=t.onClick,s="".concat(n,"-color-block");return B.createElement("div",{className:G(s,o),style:i,onClick:l},B.createElement("div",{className:"".concat(s,"-inner"),style:{background:r}}))};function AL(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function nb(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,l=e.calculate,s=e.color,c=e.disabledDrag,u=a.useState({x:0,y:0}),d=ie(u,2),f=d[0],m=d[1],g=a.useRef(null),p=a.useRef(null);a.useEffect(function(){m(l())},[s]),a.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",p.current),g.current=null,p.current=null}},[]);var h=function(S){var x=AL(S),$=x.pageX,w=x.pageY,I=r.current.getBoundingClientRect(),E=I.x,O=I.y,M=I.width,N=I.height,L=t.current.getBoundingClientRect(),P=L.width,T=L.height,_=P/2,R=T/2,D=Math.max(0,Math.min($-E,M))-_,k=Math.max(0,Math.min(w-O,N))-R,H={x:D,y:n==="x"?f.y:k};if(P===0&&T===0||P!==T)return!1;o==null||o(H)},v=function(S){S.preventDefault(),h(S)},C=function(S){S.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",p.current),g.current=null,p.current=null,i==null||i()},b=function(S){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),!c&&(h(S),document.addEventListener("mousemove",v),document.addEventListener("mouseup",C),document.addEventListener("touchmove",v),document.addEventListener("touchend",C),g.current=v,p.current=C)};return[f,b]}var rb=function(t){var r=t.size,n=r===void 0?"default":r,o=t.color,i=t.prefixCls;return B.createElement("div",{className:G("".concat(i,"-handler"),F({},"".concat(i,"-handler-sm"),n==="small")),style:{backgroundColor:o}})},ob=function(t){var r=t.children,n=t.style,o=t.prefixCls;return B.createElement("div",{className:"".concat(o,"-palette"),style:q({position:"relative"},n)},r)},ab=a.forwardRef(function(e,t){var r=e.children,n=e.x,o=e.y;return B.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),VL=function(t){var r=t.color,n=t.onChange,o=t.prefixCls,i=t.onChangeComplete,l=t.disabled,s=a.useRef(),c=a.useRef(),u=a.useRef(r),d=$t(function(h){var v=eb({offset:h,targetRef:c,containerRef:s,color:r});u.current=v,n(v)}),f=nb({color:r,containerRef:s,targetRef:c,calculate:function(){return tb(r)},onDragChange:d,onDragChangeComplete:function(){return i==null?void 0:i(u.current)},disabledDrag:l}),m=ie(f,2),g=m[0],p=m[1];return B.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},B.createElement(ob,{prefixCls:o},B.createElement(ab,{x:g.x,y:g.y,ref:c},B.createElement(rb,{color:r.toRgbString(),prefixCls:o})),B.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},WL=function(t,r){var n=It(t,{value:r}),o=ie(n,2),i=o[0],l=o[1],s=a.useMemo(function(){return Ya(i)},[i]);return[s,l]},KL=function(t){var r=t.colors,n=t.children,o=t.direction,i=o===void 0?"to right":o,l=t.type,s=t.prefixCls,c=a.useMemo(function(){return r.map(function(u,d){var f=Ya(u);return l==="alpha"&&d===r.length-1&&(f=new Wr(f.setA(1))),f.toRgbString()}).join(",")},[r,l]);return B.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},n)},qL=function(t){var r=t.prefixCls,n=t.colors,o=t.disabled,i=t.onChange,l=t.onChangeComplete,s=t.color,c=t.type,u=a.useRef(),d=a.useRef(),f=a.useRef(s),m=function(x){return c==="hue"?x.getHue():x.a*100},g=$t(function(S){var x=eb({offset:S,targetRef:d,containerRef:u,color:s,type:c});f.current=x,i(m(x))}),p=nb({color:s,targetRef:d,containerRef:u,calculate:function(){return tb(s,c)},onDragChange:g,onDragChangeComplete:function(){l(m(f.current))},direction:"x",disabledDrag:o}),h=ie(p,2),v=h[0],C=h[1],b=B.useMemo(function(){if(c==="hue"){var S=s.toHsb();S.s=1,S.b=1,S.a=1;var x=new Wr(S);return x}return s},[s,c]),y=B.useMemo(function(){return n.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[n]);return B.createElement("div",{ref:u,className:G("".concat(r,"-slider"),"".concat(r,"-slider-").concat(c)),onMouseDown:C,onTouchStart:C},B.createElement(ob,{prefixCls:r},B.createElement(ab,{x:v.x,y:v.y,ref:d},B.createElement(rb,{size:"small",color:b.toHexString(),prefixCls:r})),B.createElement(KL,{colors:y,type:c,prefixCls:r})))};function GL(e){return a.useMemo(function(){var t=e||{},r=t.slider;return[r||qL]},[e])}var XL=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],UL=a.forwardRef(function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,i=o===void 0?zL:o,l=e.onChange,s=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,g=e.disabled,p=g===void 0?!1:g,h=e.components,v=GL(h),C=ie(v,1),b=C[0],y=WL(n||FL,r),S=ie(y,2),x=S[0],$=S[1],w=a.useMemo(function(){return x.setA(1).toRgbString()},[x]),I=function(k,H){r||$(k),l==null||l(k,H)},E=function(k){return new Wr(x.setHue(k))},O=function(k){return new Wr(x.setA(k/100))},M=function(k){I(E(k),{type:"hue",value:k})},N=function(k){I(O(k),{type:"alpha",value:k})},L=function(k){s&&s(E(k))},P=function(k){s&&s(O(k))},T=G("".concat(i,"-panel"),c,F({},"".concat(i,"-panel-disabled"),p)),_={prefixCls:i,disabled:p,color:x},R=B.createElement(B.Fragment,null,B.createElement(VL,ve({onChange:I},_,{onChangeComplete:s})),B.createElement("div",{className:"".concat(i,"-slider-container")},B.createElement("div",{className:G("".concat(i,"-slider-group"),F({},"".concat(i,"-slider-group-disabled-alpha"),m))},B.createElement(b,ve({},_,{type:"hue",colors:XL,min:0,max:359,value:x.getHue(),onChange:M,onChangeComplete:L})),!m&&B.createElement(b,ve({},_,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:x.a*100,onChange:N,onChangeComplete:P}))),B.createElement(t0,{color:x.toRgbString(),prefixCls:i})));return B.createElement("div",{className:T,style:u,ref:t},typeof d=="function"?d(R):R)});const Yi=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",YL=(e,t)=>e?Yi(e,t):"";let Er=function(){function e(t){tn(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(o=>{let{color:i,percent:l}=o;return{color:new e(i),percent:l}}),this.metaColor=new Wr(this.colors[0].color.metaColor)):this.metaColor=new Wr(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return nn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return YL(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();const ZL=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:o,textPaddingInline:i,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{borderBlockStart:`${z(o)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${z(o)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${z(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${z(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${z(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${z(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${z(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}},QL=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),JL=Ot("Divider",e=>{const t=xt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[ZL(t)]},QL,{unitless:{orientationMargin:!0}});var eD=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:r,divider:n}=a.useContext(ke),{prefixCls:o,type:i="horizontal",orientation:l="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,variant:m="solid",plain:g,style:p}=e,h=eD(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",o),[C,b,y]=JL(v),S=!!d,x=l==="left"&&s!=null,$=l==="right"&&s!=null,w=G(v,n==null?void 0:n.className,b,y,`${v}-${i}`,{[`${v}-with-text`]:S,[`${v}-with-text-${l}`]:S,[`${v}-dashed`]:!!f,[`${v}-${m}`]:m!=="solid",[`${v}-plain`]:!!g,[`${v}-rtl`]:r==="rtl",[`${v}-no-default-orientation-margin-left`]:x,[`${v}-no-default-orientation-margin-right`]:$},c,u),I=a.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),E=Object.assign(Object.assign({},x&&{marginLeft:I}),$&&{marginRight:I});return C(a.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},n==null?void 0:n.style),p)},h,{role:"separator"}),d&&i!=="vertical"&&a.createElement("span",{className:`${v}-inner-text`,style:E},d)))},ib=tD;var cp=function(t){return t?{left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth}:null},Fa=function(t){return t!==void 0?"".concat(t,"px"):void 0};function nD(e){var t=e.prefixCls,r=e.containerRef,n=e.value,o=e.getValueIndex,i=e.motionName,l=e.onMotionStart,s=e.onMotionEnd,c=e.direction,u=a.useRef(null),d=a.useState(n),f=ie(d,2),m=f[0],g=f[1],p=function(L){var P,T=o(L),_=(P=r.current)===null||P===void 0?void 0:P.querySelectorAll(".".concat(t,"-item"))[T];return(_==null?void 0:_.offsetParent)&&_},h=a.useState(null),v=ie(h,2),C=v[0],b=v[1],y=a.useState(null),S=ie(y,2),x=S[0],$=S[1];Dt(function(){if(m!==n){var N=p(m),L=p(n),P=cp(N),T=cp(L);g(n),b(P),$(T),N&&L?l():s()}},[n]);var w=a.useMemo(function(){return Fa(c==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[c,C]),I=a.useMemo(function(){return Fa(c==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[c,x]),E=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},O=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},M=function(){b(null),$(null),s()};return!C||!x?null:a.createElement(In,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:E,onAppearActive:O,onVisibleChanged:M},function(N,L){var P=N.className,T=N.style,_=q(q({},T),{},{"--thumb-start-left":w,"--thumb-start-width":Fa(C==null?void 0:C.width),"--thumb-active-left":I,"--thumb-active-width":Fa(x==null?void 0:x.width)}),R={ref:yn(u,L),style:_,className:G("".concat(t,"-thumb"),P)};return a.createElement("div",R)})}var rD=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function oD(e){if(typeof e.title!="undefined")return e.title;if(yt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function aD(e){return e.map(function(t){if(yt(t)==="object"&&t!==null){var r=oD(t);return q(q({},t),{},{title:r})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var iD=function(t){var r=t.prefixCls,n=t.className,o=t.disabled,i=t.checked,l=t.label,s=t.title,c=t.value,u=t.onChange,d=function(m){o||u(m,c)};return a.createElement("label",{className:G(n,F({},"".concat(r,"-item-disabled"),o))},a.createElement("input",{className:"".concat(r,"-item-input"),type:"radio",disabled:o,checked:i,onChange:d}),a.createElement("div",{className:"".concat(r,"-item-label"),title:s},l))},lD=a.forwardRef(function(e,t){var r,n,o=e.prefixCls,i=o===void 0?"rc-segmented":o,l=e.direction,s=e.options,c=s===void 0?[]:s,u=e.disabled,d=e.defaultValue,f=e.value,m=e.onChange,g=e.className,p=g===void 0?"":g,h=e.motionName,v=h===void 0?"thumb-motion":h,C=ut(e,rD),b=a.useRef(null),y=a.useMemo(function(){return yn(b,t)},[b,t]),S=a.useMemo(function(){return aD(c)},[c]),x=It((r=S[0])===null||r===void 0?void 0:r.value,{value:f,defaultValue:d}),$=ie(x,2),w=$[0],I=$[1],E=a.useState(!1),O=ie(E,2),M=O[0],N=O[1],L=function(_,R){u||(I(R),m==null||m(R))},P=Xt(C,["children"]);return a.createElement("div",ve({},P,{className:G(i,(n={},F(n,"".concat(i,"-rtl"),l==="rtl"),F(n,"".concat(i,"-disabled"),u),n),p),ref:y}),a.createElement("div",{className:"".concat(i,"-group")},a.createElement(nD,{prefixCls:i,value:w,containerRef:b,motionName:"".concat(i,"-").concat(v),direction:l,getValueIndex:function(_){return S.findIndex(function(R){return R.value===_})},onMotionStart:function(){N(!0)},onMotionEnd:function(){N(!1)}}),S.map(function(T){return a.createElement(iD,ve({},T,{key:T.value,prefixCls:i,className:G(T.className,"".concat(i,"-item"),F({},"".concat(i,"-item-selected"),T.value===w&&!M)),checked:T.value===w,onChange:L,disabled:!!u||!!T.disabled}))})))}),sD=lD;function up(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function dp(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const cD=Object.assign({overflow:"hidden"},Rn),uD=e=>{const{componentCls:t}=e,r=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},dp(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:r,lineHeight:z(r),padding:`0 ${z(e.segmentedPaddingHorizontal)}`},cD),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},dp(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${z(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:n,lineHeight:z(n),padding:`0 ${z(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:z(o),padding:`0 ${z(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),up(`&-disabled ${t}-item`,e)),up(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},dD=e=>{const{colorTextLabel:t,colorText:r,colorFillSecondary:n,colorBgElevated:o,colorFill:i,lineWidthBold:l,colorBgLayout:s}=e;return{trackPadding:l,trackBg:s,itemColor:t,itemHoverColor:r,itemHoverBg:n,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:r}},fD=Ot("Segmented",e=>{const{lineWidth:t,calc:r}=e,n=xt(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()});return[uD(n)]},dD);var fp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,className:n,rootClassName:o,block:i,options:l=[],size:s="middle",style:c}=e,u=fp(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:d,direction:f,segmented:m}=a.useContext(ke),g=d("segmented",r),[p,h,v]=fD(g),C=un(s),b=a.useMemo(()=>l.map(x=>{if(mD(x)){const{icon:$,label:w}=x,I=fp(x,["icon","label"]);return Object.assign(Object.assign({},I),{label:a.createElement(a.Fragment,null,a.createElement("span",{className:`${g}-item-icon`},$),w&&a.createElement("span",null,w))})}return x}),[l,g]),y=G(n,o,m==null?void 0:m.className,{[`${g}-block`]:i,[`${g}-sm`]:C==="small",[`${g}-lg`]:C==="large"},h,v),S=Object.assign(Object.assign({},m==null?void 0:m.style),c);return p(a.createElement(sD,Object.assign({},u,{className:y,style:S,options:b,ref:t,prefixCls:g,direction:f})))}),vD=gD,lb=vD,sb=B.createContext({}),cb=B.createContext({}),tr=e=>e instanceof Er?e:new Er(e),ks=e=>Math.round(Number(e||0)),n0=e=>ks(e.toHsb().a*100),Hs=(e,t)=>{const r=e.toHsb();return r.a=t||1,tr(r)},ub=(e,t)=>{const r=[{percent:0,color:e[0].color}].concat(ye(e),[{percent:100,color:e[e.length-1].color}]);for(let n=0;n{let{prefixCls:t,value:r,onChange:n}=e;const o=()=>{if(n&&r&&!r.cleared){const i=r.toHsb();i.a=0;const l=tr(i);l.cleared=!0,n(l)}};return B.createElement("div",{className:`${t}-clear`,onClick:o})},db=pD;var zo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(zo||(zo={}));var hD={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"};const CD=hD;var bD=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:CD}))},yD=a.forwardRef(bD);const SD=yD;function H1(){return typeof BigInt=="function"}function fb(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ua(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),i=o[0]||"0",l=o[1]||"0";i==="0"&&l==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:l,fullStr:"".concat(s).concat(n)}}function r0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function la(e){var t=String(e);if(r0(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&o0(t)?t.length-t.indexOf(".")-1:0}function mu(e){var t=String(e);if(r0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(H1()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":ua("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),$D=function(){function e(t){if(tn(this,e),F(this,"origin",""),F(this,"number",void 0),F(this,"empty",void 0),fb(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return nn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var o=this.number+n;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 r?this.isInvalidate()?"":mu(this.number):this.origin}}]),e}();function Lr(e){return H1()?new xD(e):new $D(e)}function js(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ua(e),i=o.negativeStr,l=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(i).concat(l);if(r>=0){var d=Number(s[r]);if(d>=5&&!n){var f=Lr(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-d));return js(f.toString(),t,r,n)}return r===0?u:"".concat(u).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return c===".0"?u:"".concat(u).concat(c)}function wD(e){return!!(e.addonBefore||e.addonAfter)}function ED(e){return!!(e.prefix||e.suffix||e.allowClear)}function mp(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function ec(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=mp(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=mp(t,e,n),r(o);return}r(o)}}function mb(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var gu=B.forwardRef(function(e,t){var r,n,o=e.inputElement,i=e.children,l=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,g=e.disabled,p=e.readOnly,h=e.focused,v=e.triggerFocus,C=e.allowClear,b=e.value,y=e.handleReset,S=e.hidden,x=e.classes,$=e.classNames,w=e.dataAttrs,I=e.styles,E=e.components,O=e.onClear,M=i!=null?i:o,N=(E==null?void 0:E.affixWrapper)||"span",L=(E==null?void 0:E.groupWrapper)||"span",P=(E==null?void 0:E.wrapper)||"span",T=(E==null?void 0:E.groupAddon)||"span",_=a.useRef(null),R=function(Y){var oe;(oe=_.current)!==null&&oe!==void 0&&oe.contains(Y.target)&&(v==null||v())},D=ED(e),k=a.cloneElement(M,{value:b,className:G(M.props.className,!D&&($==null?void 0:$.variant))||null}),H=a.useRef(null);if(B.useImperativeHandle(t,function(){return{nativeElement:H.current||_.current}}),D){var j=null;if(C){var V=!g&&!p&&b,A="".concat(l,"-clear-icon"),K=yt(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";j=B.createElement("span",{onClick:function(Y){y==null||y(Y),O==null||O()},onMouseDown:function(Y){return Y.preventDefault()},className:G(A,F(F({},"".concat(A,"-hidden"),!V),"".concat(A,"-has-suffix"),!!c)),role:"button",tabIndex:-1},K)}var W="".concat(l,"-affix-wrapper"),J=G(W,F(F(F(F(F({},"".concat(l,"-disabled"),g),"".concat(W,"-disabled"),g),"".concat(W,"-focused"),h),"".concat(W,"-readonly"),p),"".concat(W,"-input-with-clear-btn"),c&&C&&b),x==null?void 0:x.affixWrapper,$==null?void 0:$.affixWrapper,$==null?void 0:$.variant),X=(c||C)&&B.createElement("span",{className:G("".concat(l,"-suffix"),$==null?void 0:$.suffix),style:I==null?void 0:I.suffix},j,c);k=B.createElement(N,ve({className:J,style:I==null?void 0:I.affixWrapper,onClick:R},w==null?void 0:w.affixWrapper,{ref:_}),s&&B.createElement("span",{className:G("".concat(l,"-prefix"),$==null?void 0:$.prefix),style:I==null?void 0:I.prefix},s),k,X)}if(wD(e)){var Q="".concat(l,"-group"),ee="".concat(Q,"-addon"),te="".concat(Q,"-wrapper"),U=G("".concat(l,"-wrapper"),Q,x==null?void 0:x.wrapper,$==null?void 0:$.wrapper),ne=G(te,F({},"".concat(te,"-disabled"),g),x==null?void 0:x.group,$==null?void 0:$.groupWrapper);k=B.createElement(L,{className:ne,ref:H},B.createElement(P,{className:U},u&&B.createElement(T,{className:ee},u),k,d&&B.createElement(T,{className:ee},d)))}return B.cloneElement(k,{className:G((r=k.props)===null||r===void 0?void 0:r.className,f)||null,style:q(q({},(n=k.props)===null||n===void 0?void 0:n.style),m),hidden:S})}),ID=["show"];function gb(e,t){return a.useMemo(function(){var r={};t&&(r.show=yt(t)==="object"&&t.formatter?t.formatter:!!t),r=q(q({},r),e);var n=r,o=n.show,i=ut(n,ID);return q(q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(l){return l.length}})},[e,t])}var OD=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],MD=a.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,g=e.className,p=e.maxLength,h=e.suffix,v=e.showCount,C=e.count,b=e.type,y=b===void 0?"text":b,S=e.classes,x=e.classNames,$=e.styles,w=e.onCompositionStart,I=e.onCompositionEnd,E=ut(e,OD),O=a.useState(!1),M=ie(O,2),N=M[0],L=M[1],P=a.useRef(!1),T=a.useRef(!1),_=a.useRef(null),R=a.useRef(null),D=function(he){_.current&&mb(_.current,he)},k=It(e.defaultValue,{value:e.value}),H=ie(k,2),j=H[0],V=H[1],A=j==null?"":String(j),K=a.useState(null),W=ie(K,2),J=W[0],X=W[1],Q=gb(C,v),ee=Q.max||p,te=Q.strategy(A),U=!!ee&&te>ee;a.useImperativeHandle(t,function(){var de;return{focus:D,blur:function(){var Se;(Se=_.current)===null||Se===void 0||Se.blur()},setSelectionRange:function(Se,$e,Ne){var xe;(xe=_.current)===null||xe===void 0||xe.setSelectionRange(Se,$e,Ne)},select:function(){var Se;(Se=_.current)===null||Se===void 0||Se.select()},input:_.current,nativeElement:((de=R.current)===null||de===void 0?void 0:de.nativeElement)||_.current}}),a.useEffect(function(){L(function(de){return de&&f?!1:de})},[f]);var ne=function(he,Se,$e){var Ne=Se;if(!P.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Se)>Q.max){if(Ne=Q.exceedFormatter(Se,{max:Q.max}),Se!==Ne){var xe,Pe;X([((xe=_.current)===null||xe===void 0?void 0:xe.selectionStart)||0,((Pe=_.current)===null||Pe===void 0?void 0:Pe.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;V(Ne),_.current&&ec(_.current,he,n,Ne)};a.useEffect(function(){if(J){var de;(de=_.current)===null||de===void 0||de.setSelectionRange.apply(de,ye(J))}},[J]);var Z=function(he){ne(he,he.target.value,{source:"change"})},Y=function(he){P.current=!1,ne(he,he.currentTarget.value,{source:"compositionEnd"}),I==null||I(he)},oe=function(he){l&&he.key==="Enter"&&!T.current&&(T.current=!0,l(he)),s==null||s(he)},se=function(he){he.key==="Enter"&&(T.current=!1),c==null||c(he)},ae=function(he){L(!0),o==null||o(he)},re=function(he){L(!1),i==null||i(he)},ce=function(he){V(""),D(),_.current&&ec(_.current,he,n)},ue=U&&"".concat(d,"-out-of-range"),fe=function(){var he=Xt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return B.createElement("input",ve({autoComplete:r},he,{onChange:Z,onFocus:ae,onBlur:re,onKeyDown:oe,onKeyUp:se,className:G(d,F({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:$==null?void 0:$.input,ref:_,size:m,type:y,onCompositionStart:function($e){P.current=!0,w==null||w($e)},onCompositionEnd:Y}))},be=function(){var he=Number(ee)>0;if(h||Q.show){var Se=Q.showFormatter?Q.showFormatter({value:A,count:te,maxLength:ee}):"".concat(te).concat(he?" / ".concat(ee):"");return B.createElement(B.Fragment,null,Q.show&&B.createElement("span",{className:G("".concat(d,"-show-count-suffix"),F({},"".concat(d,"-show-count-has-suffix"),!!h),x==null?void 0:x.count),style:q({},$==null?void 0:$.count)},Se),h)}return null};return B.createElement(gu,ve({},E,{prefixCls:d,className:G(g,ue),handleReset:ce,value:A,focused:N,triggerFocus:D,suffix:be(),disabled:f,classes:S,classNames:x,styles:$}),fe())});function ND(e,t){return typeof Proxy!="undefined"&&e?new Proxy(e,{get:function(n,o){if(t[o])return t[o];var i=n[o];return typeof i=="function"?i.bind(n):i}}):e}function PD(e,t){var r=a.useRef(null);function n(){try{var i=e.selectionStart,l=e.selectionEnd,s=e.value,c=s.substring(0,i),u=s.substring(l);r.current={start:i,end:l,value:s,beforeTxt:c,afterTxt:u}}catch(d){}}function o(){if(e&&r.current&&t)try{var i=e.value,l=r.current,s=l.beforeTxt,c=l.afterTxt,u=l.start,d=i.length;if(i.startsWith(s))d=s.length;else if(i.endsWith(c))d=i.length-r.current.afterTxt.length;else{var f=s[u-1],m=i.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(g){Jt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[n,o]}var RD=function(){var t=a.useState(!1),r=ie(t,2),n=r[0],o=r[1];return Dt(function(){o(kc())},[]),n},_D=200,TD=600;function LD(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,i=e.downDisabled,l=e.onStep,s=a.useRef(),c=a.useRef([]),u=a.useRef();u.current=l;var d=function(){clearTimeout(s.current)},f=function(y,S){y.preventDefault(),d(),u.current(S);function x(){u.current(S),s.current=setTimeout(x,_D)}s.current=setTimeout(x,TD)};a.useEffect(function(){return function(){d(),c.current.forEach(function(b){return kt.cancel(b)})}},[]);var m=RD();if(m)return null;var g="".concat(t,"-handler"),p=G(g,"".concat(g,"-up"),F({},"".concat(g,"-up-disabled"),o)),h=G(g,"".concat(g,"-down"),F({},"".concat(g,"-down-disabled"),i)),v=function(){return c.current.push(kt(d))},C={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return a.createElement("div",{className:"".concat(g,"-wrap")},a.createElement("span",ve({},C,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p}),r||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),a.createElement("span",ve({},C,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:h}),n||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function gp(e){var t=typeof e=="number"?mu(e):ua(e).fullStr,r=t.includes(".");return r?ua(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const DD=function(){var e=a.useRef(0),t=function(){kt.cancel(e.current)};return a.useEffect(function(){return t},[]),function(r){t(),e.current=kt(function(){r()})}};var kD=["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"],HD=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],vp=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},pp=function(t){var r=Lr(t);return r.isInvalidate()?null:r},jD=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.min,l=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,g=e.upHandler,p=e.downHandler,h=e.keyboard,v=e.changeOnWheel,C=v===void 0?!1:v,b=e.controls,y=b===void 0?!0:b;e.classNames;var S=e.stringMode,x=e.parser,$=e.formatter,w=e.precision,I=e.decimalSeparator,E=e.onChange,O=e.onInput,M=e.onPressEnter,N=e.onStep,L=e.changeOnBlur,P=L===void 0?!0:L,T=e.domRef,_=ut(e,kD),R="".concat(r,"-input"),D=a.useRef(null),k=a.useState(!1),H=ie(k,2),j=H[0],V=H[1],A=a.useRef(!1),K=a.useRef(!1),W=a.useRef(!1),J=a.useState(function(){return Lr(d!=null?d:u)}),X=ie(J,2),Q=X[0],ee=X[1];function te(Le){d===void 0&&ee(Le)}var U=a.useCallback(function(Le,Ke){if(!Ke)return w>=0?w:Math.max(la(Le),la(c))},[w,c]),ne=a.useCallback(function(Le){var Ke=String(Le);if(x)return x(Ke);var Qe=Ke;return I&&(Qe=Qe.replace(I,".")),Qe.replace(/[^\w.-]+/g,"")},[x,I]),Z=a.useRef(""),Y=a.useCallback(function(Le,Ke){if($)return $(Le,{userTyping:Ke,input:String(Z.current)});var Qe=typeof Le=="number"?mu(Le):Le;if(!Ke){var ot=U(Qe,Ke);if(o0(Qe)&&(I||ot>=0)){var Xe=I||".";Qe=js(Qe,Xe,ot)}}return Qe},[$,U,I]),oe=a.useState(function(){var Le=u!=null?u:d;return Q.isInvalidate()&&["string","number"].includes(yt(Le))?Number.isNaN(Le)?"":Le:Y(Q.toString(),!1)}),se=ie(oe,2),ae=se[0],re=se[1];Z.current=ae;function ce(Le,Ke){re(Y(Le.isInvalidate()?Le.toString(!1):Le.toString(!Ke),Ke))}var ue=a.useMemo(function(){return pp(l)},[l,w]),fe=a.useMemo(function(){return pp(i)},[i,w]),be=a.useMemo(function(){return!ue||!Q||Q.isInvalidate()?!1:ue.lessEquals(Q)},[ue,Q]),de=a.useMemo(function(){return!fe||!Q||Q.isInvalidate()?!1:Q.lessEquals(fe)},[fe,Q]),he=PD(D.current,j),Se=ie(he,2),$e=Se[0],Ne=Se[1],xe=function(Ke){return ue&&!Ke.lessEquals(ue)?ue:fe&&!fe.lessEquals(Ke)?fe:null},Pe=function(Ke){return!xe(Ke)},Ie=function(Ke,Qe){var ot=Ke,Xe=Pe(ot)||ot.isEmpty();if(!ot.isEmpty()&&!Qe&&(ot=xe(ot)||ot,Xe=!0),!m&&!f&&Xe){var We=ot.toString(),je=U(We,Qe);return je>=0&&(ot=Lr(js(We,".",je)),Pe(ot)||(ot=Lr(js(We,".",je,!0)))),ot.equals(Q)||(te(ot),E==null||E(ot.isEmpty()?null:vp(S,ot)),d===void 0&&ce(ot,Qe)),ot}return Q},_e=DD(),Re=function Le(Ke){if($e(),Z.current=Ke,re(Ke),!K.current){var Qe=ne(Ke),ot=Lr(Qe);ot.isNaN()||Ie(ot,!0)}O==null||O(Ke),_e(function(){var Xe=Ke;x||(Xe=Ke.replace(/。/g,".")),Xe!==Ke&&Le(Xe)})},Me=function(){K.current=!0},me=function(){K.current=!1,Re(D.current.value)},Ce=function(Ke){Re(Ke.target.value)},pe=function(Ke){var Qe;if(!(Ke&&be||!Ke&&de)){A.current=!1;var ot=Lr(W.current?gp(c):c);Ke||(ot=ot.negate());var Xe=(Q||Lr(0)).add(ot.toString()),We=Ie(Xe,!1);N==null||N(vp(S,We),{offset:W.current?gp(c):c,type:Ke?"up":"down"}),(Qe=D.current)===null||Qe===void 0||Qe.focus()}},ge=function(Ke){var Qe=Lr(ne(ae)),ot;Qe.isNaN()?ot=Ie(Q,Ke):ot=Ie(Qe,Ke),d!==void 0?ce(Q,!1):ot.isNaN()||ce(ot,!1)},Oe=function(){A.current=!0},nt=function(Ke){var Qe=Ke.key,ot=Ke.shiftKey;A.current=!0,W.current=ot,Qe==="Enter"&&(K.current||(A.current=!1),ge(!1),M==null||M(Ke)),h!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qe)&&(pe(Qe==="Up"||Qe==="ArrowUp"),Ke.preventDefault())},Ve=function(){A.current=!1,W.current=!1};a.useEffect(function(){if(C&&j){var Le=function(ot){pe(ot.deltaY<0),ot.preventDefault()},Ke=D.current;if(Ke)return Ke.addEventListener("wheel",Le,{passive:!1}),function(){return Ke.removeEventListener("wheel",Le)}}});var Ze=function(){P&&ge(!1),V(!1),A.current=!1};return ca(function(){Q.isInvalidate()||ce(Q,!1)},[w,$]),ca(function(){var Le=Lr(d);ee(Le);var Ke=Lr(ne(ae));(!Le.equals(Ke)||!A.current||$)&&ce(Le,A.current)},[d]),ca(function(){$&&Ne()},[ae]),a.createElement("div",{ref:T,className:G(r,n,F(F(F(F(F({},"".concat(r,"-focused"),j),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),m),"".concat(r,"-not-a-number"),Q.isNaN()),"".concat(r,"-out-of-range"),!Q.isInvalidate()&&!Pe(Q))),style:o,onFocus:function(){V(!0)},onBlur:Ze,onKeyDown:nt,onKeyUp:Ve,onCompositionStart:Me,onCompositionEnd:me,onBeforeInput:Oe},y&&a.createElement(LD,{prefixCls:r,upNode:g,downNode:p,upDisabled:be,downDisabled:de,onStep:pe}),a.createElement("div",{className:"".concat(R,"-wrap")},a.createElement("input",ve({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:c},_,{ref:yn(D,t),className:R,value:ae,onChange:Ce,disabled:f,readOnly:m}))))}),BD=a.forwardRef(function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,l=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,g=ut(e,HD),p=a.useRef(null),h=a.useRef(null),v=a.useRef(null),C=function(y){v.current&&mb(v.current,y)};return a.useImperativeHandle(t,function(){return ND(v.current,{nativeElement:p.current.nativeElement||h.current})}),a.createElement(gu,{className:f,triggerFocus:C,prefixCls:i,value:l,disabled:r,style:n,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},a.createElement(jD,ve({prefixCls:i,disabled:r,ref:v,domRef:h,className:m==null?void 0:m.input},g)))});const zD=e=>{var t;const r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},Ii(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Qt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0})},hp=(e,t)=>{let{componentCls:r,borderRadiusSM:n,borderRadiusLG:o}=e;const i=t==="lg"?o:n;return{[`&-${t}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${r}-handler-up`]:{borderStartEndRadius:i},[`${r}-handler-down`]:{borderEndEndRadius:i}}}},FD=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:l,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:g,colorTextDescription:p,motionDurationMid:h,handleHoverColor:v,handleOpacity:C,paddingInline:b,paddingBlock:y,handleBg:S,handleActiveBg:x,colorTextDisabled:$,borderRadiusSM:w,borderRadiusLG:I,controlWidth:E,handleBorderColor:O,filledHandleBg:M,lineHeightLG:N,calc:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),pa(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),ou(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${z(r)} ${n} ${O}`}}})),iu(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${z(r)} ${n} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),au(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,lineHeight:N,borderRadius:I,[`input${t}-input`]:{height:L(s).sub(L(r).mul(2)).equal(),padding:`${z(m)} ${z(g)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:L(c).sub(L(r).mul(2)).equal(),padding:`${z(f)} ${z(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},Mt(e)),s4(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:I,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},o4(e)),i4(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({},Mt(e)),{width:"100%",padding:`${z(y)} ${z(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),lu(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:C,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${h}`,overflow:"hidden",[`${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:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${z(r)} ${n} ${O}`,transition:`all ${h} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
+ ${t}-handler-up-inner,
+ ${t}-handler-down-inner
+ `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},gi()),{color:p,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},hp(e,"lg")),hp(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:$}})}]},AD=e=>{const{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:i,borderRadiusLG:l,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${z(r)} 0`}},pa(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${z(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${z(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:o,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}})}},VD=Ot("InputNumber",e=>{const t=xt(e,Ei(e));return[FD(t),AD(t),Sa(t)]},zD,{unitless:{handleOpacity:!0}});var WD=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r,direction:n}=a.useContext(ke),o=a.useRef(null);a.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:l,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:g,bordered:p,readOnly:h,status:v,controls:C,variant:b}=e,y=WD(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",u),x=Ut(S),[$,w,I]=VD(S,x),{compactSize:E,compactItemClassnames:O}=Kr(S,n);let M=a.createElement(SD,{className:`${S}-handler-up-inner`}),N=a.createElement(jl,{className:`${S}-handler-down-inner`});const L=typeof C=="boolean"?C:void 0;typeof C=="object"&&(M=typeof C.upIcon=="undefined"?M:a.createElement("span",{className:`${S}-handler-up-inner`},C.upIcon),N=typeof C.downIcon=="undefined"?N:a.createElement("span",{className:`${S}-handler-down-inner`},C.downIcon));const{hasFeedback:P,status:T,isFormItemInput:_,feedbackIcon:R}=a.useContext(dn),D=qr(T,v),k=un(Q=>{var ee;return(ee=s!=null?s:E)!==null&&ee!==void 0?ee:Q}),H=a.useContext(Fn),j=c!=null?c:H,[V,A]=ho("inputNumber",b,p),K=P&&a.createElement(a.Fragment,null,R),W=G({[`${S}-lg`]:k==="large",[`${S}-sm`]:k==="small",[`${S}-rtl`]:n==="rtl",[`${S}-in-form-item`]:_},w),J=`${S}-group`,X=a.createElement(BD,Object.assign({ref:o,disabled:j,className:G(I,x,i,l,O),upHandler:M,downHandler:N,prefixCls:S,readOnly:h,controls:L,prefix:m,suffix:K||g,addonBefore:d&&a.createElement(Ar,{form:!0,space:!0},d),addonAfter:f&&a.createElement(Ar,{form:!0,space:!0},f),classNames:{input:W,variant:G({[`${S}-${V}`]:A},vr(S,D,P)),affixWrapper:G({[`${S}-affix-wrapper-sm`]:k==="small",[`${S}-affix-wrapper-lg`]:k==="large",[`${S}-affix-wrapper-rtl`]:n==="rtl",[`${S}-affix-wrapper-without-controls`]:C===!1},w),wrapper:G({[`${J}-rtl`]:n==="rtl"},w),groupWrapper:G({[`${S}-group-wrapper-sm`]:k==="small",[`${S}-group-wrapper-lg`]:k==="large",[`${S}-group-wrapper-rtl`]:n==="rtl",[`${S}-group-wrapper-${V}`]:A},vr(`${S}-group-wrapper`,D,P),w)}},y));return $(X)}),pb=vb,KD=e=>a.createElement(vo,{theme:{components:{InputNumber:{handleVisible:!0}}}},a.createElement(vb,Object.assign({},e)));pb._InternalPanelDoNotUseOrYouWillBeFired=KD;const hb=pb,qD=e=>{let{prefixCls:t,min:r=0,max:n=100,value:o,onChange:i,className:l,formatter:s}=e;const c=`${t}-steppers`,[u,d]=a.useState(o);return a.useEffect(()=>{Number.isNaN(o)||d(o)},[o]),B.createElement(hb,{className:G(c,l),min:r,max:n,value:u,formatter:s,size:"small",onChange:f=>{o||d(f||0),i==null||i(f)}})},da=qD,GD=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-alpha-input`,[i,l]=a.useState(tr(r||"#000"));a.useEffect(()=>{r&&l(r)},[r]);const s=c=>{const u=i.toHsb();u.a=(c||0)/100;const d=tr(u);r||l(d),n==null||n(d)};return B.createElement(da,{value:n0(i),prefixCls:t,formatter:c=>`${c}%`,className:o,onChange:s})},XD=GD,UD=e=>{const{getPrefixCls:t,direction:r}=a.useContext(ke),{prefixCls:n,className:o}=e,i=t("input-group",n),l=t("input"),[s,c]=Xm(l),u=G(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},c,o),d=a.useContext(dn),f=a.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(a.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},a.createElement(dn.Provider,{value:f},e.children)))},YD=UD,ZD=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:B.createElement(Mo,null)}),t},a0=ZD;function Cb(e,t){const r=a.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,l,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return a.useEffect(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function QD(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var JD=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,bordered:o=!0,status:i,size:l,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:g,className:p,style:h,styles:v,rootClassName:C,onChange:b,classNames:y,variant:S}=e,x=JD(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$,direction:w,input:I}=B.useContext(ke),E=$("input",n),O=a.useRef(null),M=Ut(E),[N,L,P]=Xm(E,M),{compactSize:T,compactItemClassnames:_}=Kr(E,w),R=un(Z=>{var Y;return(Y=l!=null?l:T)!==null&&Y!==void 0?Y:Z}),D=B.useContext(Fn),k=s!=null?s:D,{status:H,hasFeedback:j,feedbackIcon:V}=a.useContext(dn),A=qr(H,i),K=QD(e)||!!j;a.useRef(K);const W=Cb(O,!0),J=Z=>{W(),c==null||c(Z)},X=Z=>{W(),u==null||u(Z)},Q=Z=>{W(),b==null||b(Z)},ee=(j||d)&&B.createElement(B.Fragment,null,d,j&&V),te=a0(f!=null?f:I==null?void 0:I.allowClear),[U,ne]=ho("input",S,o);return N(B.createElement(MD,Object.assign({ref:yn(t,O),prefixCls:E,autoComplete:I==null?void 0:I.autoComplete},x,{disabled:k,onBlur:J,onFocus:X,style:Object.assign(Object.assign({},I==null?void 0:I.style),h),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),v),suffix:ee,allowClear:te,className:G(p,C,P,M,_,I==null?void 0:I.className),onChange:Q,addonBefore:g&&B.createElement(Ar,{form:!0,space:!0},g),addonAfter:m&&B.createElement(Ar,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},y),I==null?void 0:I.classNames),{input:G({[`${E}-sm`]:R==="small",[`${E}-lg`]:R==="large",[`${E}-rtl`]:w==="rtl"},y==null?void 0:y.input,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.input,L),variant:G({[`${E}-${U}`]:ne},vr(E,A)),affixWrapper:G({[`${E}-affix-wrapper-sm`]:R==="small",[`${E}-affix-wrapper-lg`]:R==="large",[`${E}-affix-wrapper-rtl`]:w==="rtl"},L),wrapper:G({[`${E}-group-rtl`]:w==="rtl"},L),groupWrapper:G({[`${E}-group-wrapper-sm`]:R==="small",[`${E}-group-wrapper-lg`]:R==="large",[`${E}-group-wrapper-rtl`]:w==="rtl",[`${E}-group-wrapper-${U}`]:ne},vr(`${E}-group-wrapper`,A,j),L)})})))}),tk=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,"&-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}}}},nk=Ot(["Input","OTP"],e=>{const t=xt(e,Ei(e));return[tk(t)]},Ii);var rk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{value:r,onChange:n,onActiveChange:o,index:i,mask:l}=e,s=rk(e,["value","onChange","onActiveChange","index","mask"]),c=r&&typeof l=="string"?l:r,u=p=>{n(i,p.target.value)},d=a.useRef(null);a.useImperativeHandle(t,()=>d.current);const f=()=>{kt(()=>{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(i-1):h==="ArrowRight"&&o(i+1),f()},g=p=>{p.key==="Backspace"&&!r&&o(i-1),f()};return a.createElement(vu,Object.assign({},s,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:m,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:l===!0?"password":"text"}))}),ak=ok;var ik=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,length:n=6,size:o,defaultValue:i,value:l,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:m,mask:g}=e,p=ik(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:h,direction:v}=a.useContext(ke),C=h("otp",r),b=en(p,{aria:!0,data:!0,attr:!0}),y=Ut(C),[S,x,$]=nk(C,y),w=un(j=>o!=null?o:j),I=a.useContext(dn),E=qr(I.status,f),O=a.useMemo(()=>Object.assign(Object.assign({},I),{status:E,hasFeedback:!1,feedbackIcon:null}),[I,E]),M=a.useRef(null),N=a.useRef({});a.useImperativeHandle(t,()=>({focus:()=>{var j;(j=N.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let V=0;Vc?c(j):j,[P,T]=a.useState(ys(L(i||"")));a.useEffect(()=>{l!==void 0&&T(ys(l))},[l]);const _=$t(j=>{T(j),s&&j.length===n&&j.every(V=>V)&&j.some((V,A)=>P[A]!==V)&&s(j.join(""))}),R=$t((j,V)=>{let A=ye(P);for(let W=0;W=0&&!A[W];W-=1)A.pop();const K=L(A.map(W=>W||" ").join(""));return A=ys(K).map((W,J)=>W===" "&&!A[J]?A[J]:W),A}),D=(j,V)=>{var A;const K=R(j,V),W=Math.min(j+V.length,n-1);W!==j&&((A=N.current[W])===null||A===void 0||A.focus()),_(K)},k=j=>{var V;(V=N.current[j])===null||V===void 0||V.focus()},H={variant:u,disabled:d,status:E,mask:g};return S(a.createElement("div",Object.assign({},b,{ref:M,className:G(C,{[`${C}-sm`]:w==="small",[`${C}-lg`]:w==="large",[`${C}-rtl`]:v==="rtl"},$,x)}),a.createElement(dn.Provider,{value:O},Array.from({length:n}).map((j,V)=>{const A=`otp-${V}`,K=P[V]||"";return a.createElement(ak,Object.assign({ref:W=>{N.current[V]=W},key:A,index:V,size:w,htmlSize:1,className:`${C}-input`,onChange:D,value:K,onActiveChange:k,autoFocus:V===0&&m},H))}))))}),sk=lk;var ck={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"};const uk=ck;var dk=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:uk}))},fk=a.forwardRef(dk);const mk=fk;var gk={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"};const vk=gk;var pk=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:vk}))},hk=a.forwardRef(pk);const i0=hk;var Ck=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);oe?a.createElement(i0,null):a.createElement(mk,null),yk={click:"onClick",hover:"onMouseOver"},Sk=a.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=bk}=e,l=a.useContext(Fn),s=r!=null?r:l,c=typeof o=="object"&&o.visible!==void 0,[u,d]=a.useState(()=>c?o.visible:!1),f=a.useRef(null);a.useEffect(()=>{c&&d(o.visible)},[c,o]);const m=Cb(f),g=()=>{s||(u&&m(),d(O=>{var M;const N=!O;return typeof o=="object"&&((M=o.onVisibleChange)===null||M===void 0||M.call(o,N)),N}))},p=O=>{const M=yk[n]||"",N=i(u),L={[M]:g,className:`${O}-icon`,key:"passwordIcon",onMouseDown:P=>{P.preventDefault()},onMouseUp:P=>{P.preventDefault()}};return a.cloneElement(a.isValidElement(N)?N:a.createElement("span",null,N),L)},{className:h,prefixCls:v,inputPrefixCls:C,size:b}=e,y=Ck(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=a.useContext(ke),x=S("input",C),$=S("input-password",v),w=o&&p($),I=G($,h,{[`${$}-${b}`]:!!b}),E=Object.assign(Object.assign({},Xt(y,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:I,prefixCls:x,suffix:w});return b&&(E.size=b),a.createElement(vu,Object.assign({ref:yn(t,f)},E))}),xk=Sk;var $k=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:p}=e,h=$k(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:C}=a.useContext(ke),b=a.useRef(!1),y=v("input-search",r),S=v("input",n),{compactSize:x}=Kr(y,C),$=un(H=>{var j;return(j=i!=null?i:x)!==null&&j!==void 0?j:H}),w=a.useRef(null),I=H=>{H!=null&&H.target&&H.type==="click"&&f&&f(H.target.value,H,{source:"clear"}),m==null||m(H)},E=H=>{var j;document.activeElement===((j=w.current)===null||j===void 0?void 0:j.input)&&H.preventDefault()},O=H=>{var j,V;f&&f((V=(j=w.current)===null||j===void 0?void 0:j.input)===null||V===void 0?void 0:V.value,H,{source:"input"})},M=H=>{b.current||u||O(H)},N=typeof s=="boolean"?a.createElement(Bc,null):null,L=`${y}-button`;let P;const T=s||{},_=T.type&&T.type.__ANT_BUTTON===!0;_||T.type==="button"?P=cn(T,Object.assign({onMouseDown:E,onClick:H=>{var j,V;(V=(j=T==null?void 0:T.props)===null||j===void 0?void 0:j.onClick)===null||V===void 0||V.call(j,H),O(H)},key:"enterButton"},_?{className:L,size:$}:{})):P=a.createElement(hn,{className:L,type:s?"primary":void 0,size:$,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:N},s),c&&(P=[P,cn(c,{key:"addonAfter"})]);const R=G(y,{[`${y}-rtl`]:C==="rtl",[`${y}-${$}`]:!!$,[`${y}-with-button`]:!!s},o),D=H=>{b.current=!0,g==null||g(H)},k=H=>{b.current=!1,p==null||p(H)};return a.createElement(vu,Object.assign({ref:yn(w,t),onPressEnter:M},h,{size:$,onCompositionStart:D,onCompositionEnd:k,prefixCls:S,addonAfter:P,suffix:l,onChange:I,className:R,disabled:d}))}),Ek=wk;var Ik=`
+ 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;
+`,Ok=["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"],gd={},dr;function Mk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&gd[r])return gd[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),l=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=Ok.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:i,borderSize:l,boxSizing:o};return t&&r&&(gd[r]=c),c}function Nk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dr||(dr=document.createElement("textarea"),dr.setAttribute("tab-index","-1"),dr.setAttribute("aria-hidden","true"),dr.setAttribute("name","hiddenTextarea"),document.body.appendChild(dr)),e.getAttribute("wrap")?dr.setAttribute("wrap",e.getAttribute("wrap")):dr.removeAttribute("wrap");var o=Mk(e,t),i=o.paddingSize,l=o.borderSize,s=o.boxSizing,c=o.sizingStyle;dr.setAttribute("style","".concat(c,";").concat(Ik)),dr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=dr.scrollHeight;if(s==="border-box"?m+=l:s==="content-box"&&(m-=i),r!==null||n!==null){dr.value=" ";var g=dr.scrollHeight-i;r!==null&&(u=g*r,s==="border-box"&&(u=u+i+l),m=Math.max(u,m)),n!==null&&(d=g*n,s==="border-box"&&(d=d+i+l),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 Pk=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vd=0,pd=1,hd=2,Rk=a.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,l=r.autoSize,s=r.onResize,c=r.className,u=r.style,d=r.disabled,f=r.onChange;r.onInternalAutoSize;var m=ut(r,Pk),g=It(o,{value:i,postState:function(K){return K!=null?K:""}}),p=ie(g,2),h=p[0],v=p[1],C=function(K){v(K.target.value),f==null||f(K)},b=a.useRef();a.useImperativeHandle(t,function(){return{textArea:b.current}});var y=a.useMemo(function(){return l&&yt(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),S=ie(y,2),x=S[0],$=S[1],w=!!l,I=function(){try{if(document.activeElement===b.current){var K=b.current,W=K.selectionStart,J=K.selectionEnd,X=K.scrollTop;b.current.setSelectionRange(W,J),b.current.scrollTop=X}}catch(Q){}},E=a.useState(hd),O=ie(E,2),M=O[0],N=O[1],L=a.useState(),P=ie(L,2),T=P[0],_=P[1],R=function(){N(vd)};Dt(function(){w&&R()},[i,x,$,w]),Dt(function(){if(M===vd)N(pd);else if(M===pd){var A=Nk(b.current,!1,x,$);N(hd),_(A)}else I()},[M]);var D=a.useRef(),k=function(){kt.cancel(D.current)},H=function(K){M===hd&&(s==null||s(K),l&&(k(),D.current=kt(function(){R()})))};a.useEffect(function(){return k},[]);var j=w?T:null,V=q(q({},u),j);return(M===vd||M===pd)&&(V.overflowY="hidden",V.overflowX="hidden"),a.createElement(Nn,{onResize:H,disabled:!(l||s)},a.createElement("textarea",ve({},m,{ref:b,style:V,className:G(n,c,F({},"".concat(n,"-disabled"),d)),disabled:d,value:h,onChange:C})))}),_k=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],bb=B.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,p=g===void 0?"rc-textarea":g,h=e.showCount,v=e.count,C=e.className,b=e.style,y=e.disabled,S=e.hidden,x=e.classNames,$=e.styles,w=e.onResize,I=e.onClear,E=e.onPressEnter,O=e.readOnly,M=e.autoSize,N=e.onKeyDown,L=ut(e,_k),P=It(n,{value:o,defaultValue:n}),T=ie(P,2),_=T[0],R=T[1],D=_==null?"":String(_),k=B.useState(!1),H=ie(k,2),j=H[0],V=H[1],A=B.useRef(!1),K=B.useState(null),W=ie(K,2),J=W[0],X=W[1],Q=a.useRef(null),ee=a.useRef(null),te=function(){var me;return(me=ee.current)===null||me===void 0?void 0:me.textArea},U=function(){te().focus()};a.useImperativeHandle(t,function(){var Me;return{resizableTextArea:ee.current,focus:U,blur:function(){te().blur()},nativeElement:((Me=Q.current)===null||Me===void 0?void 0:Me.nativeElement)||te()}}),a.useEffect(function(){V(function(Me){return!y&&Me})},[y]);var ne=B.useState(null),Z=ie(ne,2),Y=Z[0],oe=Z[1];B.useEffect(function(){if(Y){var Me;(Me=te()).setSelectionRange.apply(Me,ye(Y))}},[Y]);var se=gb(v,h),ae=(r=se.max)!==null&&r!==void 0?r:u,re=Number(ae)>0,ce=se.strategy(D),ue=!!ae&&ce>ae,fe=function(me,Ce){var pe=Ce;!A.current&&se.exceedFormatter&&se.max&&se.strategy(Ce)>se.max&&(pe=se.exceedFormatter(Ce,{max:se.max}),Ce!==pe&&oe([te().selectionStart||0,te().selectionEnd||0])),R(pe),ec(me.currentTarget,me,s,pe)},be=function(me){A.current=!0,d==null||d(me)},de=function(me){A.current=!1,fe(me,me.currentTarget.value),f==null||f(me)},he=function(me){fe(me,me.target.value)},Se=function(me){me.key==="Enter"&&E&&E(me),N==null||N(me)},$e=function(me){V(!0),i==null||i(me)},Ne=function(me){V(!1),l==null||l(me)},xe=function(me){R(""),U(),ec(te(),me,s)},Pe=m,Ie;se.show&&(se.showFormatter?Ie=se.showFormatter({value:D,count:ce,maxLength:ae}):Ie="".concat(ce).concat(re?" / ".concat(ae):""),Pe=B.createElement(B.Fragment,null,Pe,B.createElement("span",{className:G("".concat(p,"-data-count"),x==null?void 0:x.count),style:$==null?void 0:$.count},Ie)));var _e=function(me){var Ce;w==null||w(me),(Ce=te())!==null&&Ce!==void 0&&Ce.style.height&&X(!0)},Re=!M&&!h&&!c;return B.createElement(gu,{ref:Q,value:D,allowClear:c,handleReset:xe,suffix:Pe,prefixCls:p,classNames:q(q({},x),{},{affixWrapper:G(x==null?void 0:x.affixWrapper,F(F({},"".concat(p,"-show-count"),h),"".concat(p,"-textarea-allow-clear"),c))}),disabled:y,focused:j,className:G(C,ue&&"".concat(p,"-out-of-range")),style:q(q({},b),J&&!Re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ie=="string"?Ie:void 0}},hidden:S,readOnly:O,onClear:I},B.createElement(Rk,ve({},L,{autoSize:M,maxLength:u,onKeyDown:Se,onChange:he,onFocus:$e,onBlur:Ne,onCompositionStart:be,onCompositionEnd:de,className:G(x==null?void 0:x.textarea),style:q(q({},$==null?void 0:$.textarea),{},{resize:b==null?void 0:b.resize}),disabled:y,prefixCls:p,onResize:_e,ref:ee,readOnly:O})))}),Tk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{prefixCls:o,bordered:i=!0,size:l,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:m,style:g,styles:p,variant:h}=e,v=Tk(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:C,direction:b,textArea:y}=a.useContext(ke),S=un(l),x=a.useContext(Fn),$=s!=null?s:x,{status:w,hasFeedback:I,feedbackIcon:E}=a.useContext(dn),O=qr(w,c),M=a.useRef(null);a.useImperativeHandle(t,()=>{var H;return{resizableTextArea:(H=M.current)===null||H===void 0?void 0:H.resizableTextArea,focus:j=>{var V,A;ek((A=(V=M.current)===null||V===void 0?void 0:V.resizableTextArea)===null||A===void 0?void 0:A.textArea,j)},blur:()=>{var j;return(j=M.current)===null||j===void 0?void 0:j.blur()}}});const N=C("input",o),L=Ut(N),[P,T,_]=Xm(N,L),[R,D]=ho("textArea",h,i),k=a0(u!=null?u:y==null?void 0:y.allowClear);return P(a.createElement(bb,Object.assign({autoComplete:y==null?void 0:y.autoComplete},v,{style:Object.assign(Object.assign({},y==null?void 0:y.style),g),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),p),disabled:$,allowClear:k,className:G(_,L,m,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:G({[`${N}-sm`]:S==="small",[`${N}-lg`]:S==="large"},T,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:G({[`${N}-${R}`]:D},vr(N,O)),affixWrapper:G(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:b==="rtl",[`${N}-affix-wrapper-sm`]:S==="small",[`${N}-affix-wrapper-lg`]:S==="large",[`${N}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},T)}),prefixCls:N,suffix:I&&a.createElement("span",{className:`${N}-textarea-suffix`},E),ref:M})))}),yb=Lk,br=vu;br.Group=YD;br.Search=Ek;br.TextArea=yb;br.Password=xk;br.OTP=sk;const Dk=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,kk=e=>Dk.test(`#${e}`),Hk=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-hex-input`,[i,l]=a.useState(()=>r?Yi(r.toHexString()):void 0);a.useEffect(()=>{r&&l(Yi(r.toHexString()))},[r]);const s=c=>{const u=c.target.value;l(Yi(u)),kk(Yi(u,!0))&&(n==null||n(tr(u)))};return B.createElement(br,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},jk=Hk,Bk=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-hsb-input`,[i,l]=a.useState(tr(r||"#000"));a.useEffect(()=>{r&&l(r)},[r]);const s=(c,u)=>{const d=i.toHsb();d[u]=u==="h"?c:(c||0)/100;const f=tr(d);r||l(f),n==null||n(f)};return B.createElement("div",{className:o},B.createElement(da,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:c=>ks(c||0).toString(),onChange:c=>s(Number(c),"h")}),B.createElement(da,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:c=>`${ks(c||0)}%`,onChange:c=>s(Number(c),"s")}),B.createElement(da,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:c=>`${ks(c||0)}%`,onChange:c=>s(Number(c),"b")}))},zk=Bk,Fk=e=>{let{prefixCls:t,value:r,onChange:n}=e;const o=`${t}-rgb-input`,[i,l]=a.useState(tr(r||"#000"));a.useEffect(()=>{r&&l(r)},[r]);const s=(c,u)=>{const d=i.toRgb();d[u]=c||0;const f=tr(d);r||l(f),n==null||n(f)};return B.createElement("div",{className:o},B.createElement(da,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:c=>s(Number(c),"r")}),B.createElement(da,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:c=>s(Number(c),"g")}),B.createElement(da,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:c=>s(Number(c),"b")}))},Ak=Fk,Vk=[zo.hex,zo.hsb,zo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Wk=e=>{const{prefixCls:t,format:r,value:n,disabledAlpha:o,onFormatChange:i,onChange:l}=e,[s,c]=It(zo.hex,{value:r,onChange:i}),u=`${t}-input`,d=m=>{c(m)},f=a.useMemo(()=>{const m={value:n,prefixCls:t,onChange:l};switch(s){case zo.hsb:return B.createElement(zk,Object.assign({},m));case zo.rgb:return B.createElement(Ak,Object.assign({},m));default:return B.createElement(jk,Object.assign({},m))}},[s,t,n,l]);return B.createElement("div",{className:`${u}-container`},B.createElement(Bn,{value:s,variant:"borderless",getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:Vk}),B.createElement("div",{className:u},f),!o&&B.createElement(XD,{prefixCls:t,value:n,onChange:l}))},Kk=Wk;function j1(e,t,r){return(e-t)/(r-t)}function l0(e,t,r,n){var o=j1(t,r,n),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function Va(e,t){return Array.isArray(e)?e[t]:e}var Oa=a.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Sb=a.createContext({}),qk=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Cp=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.value,o=e.valueIndex,i=e.onStartMove,l=e.onDelete,s=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,m=e.onChangeComplete,g=e.onFocus,p=e.onMouseEnter,h=ut(e,qk),v=a.useContext(Oa),C=v.min,b=v.max,y=v.direction,S=v.disabled,x=v.keyboard,$=v.range,w=v.tabIndex,I=v.ariaLabelForHandle,E=v.ariaLabelledByForHandle,O=v.ariaValueTextFormatterForHandle,M=v.styles,N=v.classNames,L="".concat(r,"-handle"),P=function(K){S||i(K,o)},T=function(K){g==null||g(K,o)},_=function(K){p(K,o)},R=function(K){if(!S&&x){var W=null;switch(K.which||K.keyCode){case we.LEFT:W=y==="ltr"||y==="btt"?-1:1;break;case we.RIGHT:W=y==="ltr"||y==="btt"?1:-1;break;case we.UP:W=y!=="ttb"?1:-1;break;case we.DOWN:W=y!=="ttb"?-1:1;break;case we.HOME:W="min";break;case we.END:W="max";break;case we.PAGE_UP:W=2;break;case we.PAGE_DOWN:W=-2;break;case we.BACKSPACE:case we.DELETE:l(o);break}W!==null&&(K.preventDefault(),f(W,o))}},D=function(K){switch(K.which||K.keyCode){case we.LEFT:case we.RIGHT:case we.UP:case we.DOWN:case we.HOME:case we.END:case we.PAGE_UP:case we.PAGE_DOWN:m==null||m();break}},k=l0(y,n,C,b),H={};if(o!==null){var j;H={tabIndex:S?null:Va(w,o),role:"slider","aria-valuemin":C,"aria-valuemax":b,"aria-valuenow":n,"aria-disabled":S,"aria-label":Va(I,o),"aria-labelledby":Va(E,o),"aria-valuetext":(j=Va(O,o))===null||j===void 0?void 0:j(n),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical",onMouseDown:P,onTouchStart:P,onFocus:T,onMouseEnter:_,onKeyDown:R,onKeyUp:D}}var V=a.createElement("div",ve({ref:t,className:G(L,F(F(F({},"".concat(L,"-").concat(o+1),o!==null&&$),"".concat(L,"-dragging"),u),"".concat(L,"-dragging-delete"),d),N.handle),style:q(q(q({},k),s),M.handle)},H,h));return c&&(V=c(V,{index:o,prefixCls:r,value:n,dragging:u,draggingDelete:d})),V}),Gk=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Xk=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,i=e.onOffsetChange,l=e.values,s=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,m=ut(e,Gk),g=a.useRef({}),p=a.useState(!1),h=ie(p,2),v=h[0],C=h[1],b=a.useState(-1),y=ie(b,2),S=y[0],x=y[1],$=function(M){x(M),C(!0)},w=function(M,N){$(N),f==null||f(M)},I=function(M,N){$(N)};a.useImperativeHandle(t,function(){return{focus:function(M){var N;(N=g.current[M])===null||N===void 0||N.focus()},hideHelp:function(){ao.flushSync(function(){C(!1)})}}});var E=q({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:w,onMouseEnter:I},m);return a.createElement(a.Fragment,null,l.map(function(O,M){var N=u===M;return a.createElement(Cp,ve({ref:function(P){P?g.current[M]=P:delete g.current[M]},dragging:N,draggingDelete:N&&d,style:Va(n,M),key:M,value:O,valueIndex:M},E))}),c&&v&&a.createElement(Cp,ve({key:"a11y"},E,{value:l[S],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Uk=function(t){var r=t.prefixCls,n=t.style,o=t.children,i=t.value,l=t.onClick,s=a.useContext(Oa),c=s.min,u=s.max,d=s.direction,f=s.includedStart,m=s.includedEnd,g=s.included,p="".concat(r,"-text"),h=l0(d,i,c,u);return a.createElement("span",{className:G(p,F({},"".concat(p,"-active"),g&&f<=i&&i<=m)),style:q(q({},h),n),onMouseDown:function(C){C.stopPropagation()},onClick:function(){l(i)}},o)},Yk=function(t){var r=t.prefixCls,n=t.marks,o=t.onClick,i="".concat(r,"-mark");return n.length?a.createElement("div",{className:i},n.map(function(l){var s=l.value,c=l.style,u=l.label;return a.createElement(Uk,{key:s,prefixCls:i,style:c,value:s,onClick:o},u)})):null},Zk=function(t){var r=t.prefixCls,n=t.value,o=t.style,i=t.activeStyle,l=a.useContext(Oa),s=l.min,c=l.max,u=l.direction,d=l.included,f=l.includedStart,m=l.includedEnd,g="".concat(r,"-dot"),p=d&&f<=n&&n<=m,h=q(q({},l0(u,n,s,c)),typeof o=="function"?o(n):o);return p&&(h=q(q({},h),typeof i=="function"?i(n):i)),a.createElement("span",{className:G(g,F({},"".concat(g,"-active"),p)),style:h})},Qk=function(t){var r=t.prefixCls,n=t.marks,o=t.dots,i=t.style,l=t.activeStyle,s=a.useContext(Oa),c=s.min,u=s.max,d=s.step,f=a.useMemo(function(){var m=new Set;if(n.forEach(function(p){m.add(p.value)}),o&&d!==null)for(var g=c;g<=u;)m.add(g),g+=d;return Array.from(m)},[c,u,d,o,n]);return a.createElement("div",{className:"".concat(r,"-step")},f.map(function(m){return a.createElement(Zk,{prefixCls:r,key:m,value:m,style:i,activeStyle:l})}))},bp=function(t){var r=t.prefixCls,n=t.style,o=t.start,i=t.end,l=t.index,s=t.onStartMove,c=t.replaceCls,u=a.useContext(Oa),d=u.direction,f=u.min,m=u.max,g=u.disabled,p=u.range,h=u.classNames,v="".concat(r,"-track"),C=j1(o,f,m),b=j1(i,f,m),y=function(w){!g&&s&&s(w,-1)},S={};switch(d){case"rtl":S.right="".concat(C*100,"%"),S.width="".concat(b*100-C*100,"%");break;case"btt":S.bottom="".concat(C*100,"%"),S.height="".concat(b*100-C*100,"%");break;case"ttb":S.top="".concat(C*100,"%"),S.height="".concat(b*100-C*100,"%");break;default:S.left="".concat(C*100,"%"),S.width="".concat(b*100-C*100,"%")}var x=c||G(v,F(F({},"".concat(v,"-").concat(l+1),l!==null&&p),"".concat(r,"-track-draggable"),s),h.track);return a.createElement("div",{className:x,style:q(q({},S),n),onMouseDown:y,onTouchStart:y})},Jk=function(t){var r=t.prefixCls,n=t.style,o=t.values,i=t.startPoint,l=t.onStartMove,s=a.useContext(Oa),c=s.included,u=s.range,d=s.min,f=s.styles,m=s.classNames,g=a.useMemo(function(){if(!u){if(o.length===0)return[];var h=i!=null?i:d,v=o[0];return[{start:Math.min(h,v),end:Math.max(h,v)}]}for(var C=[],b=0;beH&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof h=="number"){var b,y=p[v],S=y+h,x=[];n.forEach(function(O){x.push(O.value)}),x.push(e,t),x.push(s(y));var $=h>0?1:-1;C==="unit"?x.push(s(y+$*r)):x.push(s(S)),x=x.filter(function(O){return O!==null}).filter(function(O){return h<0?O<=y:O>=y}),C==="unit"&&(x=x.filter(function(O){return O!==y}));var w=C==="unit"?y:S;b=x[0];var I=Math.abs(b-w);if(x.forEach(function(O){var M=Math.abs(O-w);M1){var E=ye(p);return E[v]=b,g(E,h-$,v,C)}return b}else{if(h==="min")return e;if(h==="max")return t}},d=function(p,h,v){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=p[v],y=u(p,h,v,C);return{value:y,changed:y!==b}},f=function(p){return i===null&&p===0||typeof i=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",b=p.map(c),y=b[v],S=u(b,h,v,C);if(b[v]=S,o===!1){var x=i||0;v>0&&b[v-1]!==y&&(b[v]=Math.max(b[v],b[v-1]+x)),v0;E-=1)for(var O=!0;f(b[E]-b[E-1])&&O;){var M=d(b,-1,E-1);b[E-1]=M.value,O=M.changed}for(var N=b.length-1;N>0;N-=1)for(var L=!0;f(b[N]-b[N-1])&&L;){var P=d(b,-1,N-1);b[N-1]=P.value,L=P.changed}for(var T=0;T=0?_:!1},[_,Pe]),_e=a.useMemo(function(){return Object.keys(X||{}).map(function(Ae){var He=X[Ae],st={value:Number(Ae)};return He&&yt(He)==="object"&&!a.isValidElement(He)&&("label"in He||"style"in He)?(st.style=He.style,st.label=He.label):st.label=He,st}).filter(function(Ae){var He=Ae.label;return He||typeof He=="number"}).sort(function(Ae,He){return Ae.value-He.value})},[X]),Re=nH(Ne,xe,Pe,_e,P,Ie),Me=ie(Re,2),me=Me[0],Ce=Me[1],pe=It($,{value:x}),ge=ie(pe,2),Oe=ge[0],nt=ge[1],Ve=a.useMemo(function(){var Ae=Oe==null?[]:Array.isArray(Oe)?Oe:[Oe],He=ie(Ae,1),st=He[0],bt=st===void 0?Ne:st,Nt=Oe===null?[]:[bt];if(be){if(Nt=ye(Ae),I||Oe===void 0){var Vt=I>=0?I+1:2;for(Nt=Nt.slice(0,Vt);Nt.length=0&&ae.current.focus(Ae)}qe(null)},[it]);var Ge=a.useMemo(function(){return he&&Pe===null?!1:he},[he,Pe]),Ye=$t(function(Ae,He){Ue(Ae,He),O==null||O(Ze(Ve))}),tt=We!==-1;a.useEffect(function(){if(!tt){var Ae=Ve.lastIndexOf(je);ae.current.focus(Ae)}},[tt]);var mt=a.useMemo(function(){return ye(Te).sort(function(Ae,He){return Ae-He})},[Te]),lt=a.useMemo(function(){return be?[mt[0],mt[mt.length-1]]:[Ne,mt[0]]},[mt,be,Ne]),ft=ie(lt,2),gt=ft[0],et=ft[1];a.useImperativeHandle(t,function(){return{focus:function(){ae.current.focus(0)},blur:function(){var He,st=document,bt=st.activeElement;(He=re.current)!==null&&He!==void 0&&He.contains(bt)&&(bt==null||bt.blur())}}}),a.useEffect(function(){m&&ae.current.focus(0)},[]);var rt=a.useMemo(function(){return{min:Ne,max:xe,direction:ce,disabled:u,keyboard:f,step:Pe,included:H,includedStart:gt,includedEnd:et,range:be,tabIndex:Z,ariaLabelForHandle:Y,ariaLabelledByForHandle:oe,ariaValueTextFormatterForHandle:se,styles:s||{},classNames:l||{}}},[Ne,xe,ce,u,f,Pe,H,gt,et,be,Z,Y,oe,se,s,l]);return a.createElement(Oa.Provider,{value:rt},a.createElement("div",{ref:re,className:G(n,o,F(F(F(F({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),D),"".concat(n,"-horizontal"),!D),"".concat(n,"-with-marks"),_e.length)),style:i,onMouseDown:ze},a.createElement("div",{className:G("".concat(n,"-rail"),l==null?void 0:l.rail),style:q(q({},K),s==null?void 0:s.rail)}),U!==!1&&a.createElement(Jk,{prefixCls:n,style:V,values:Ve,startPoint:j,onStartMove:Ge?Ye:void 0}),a.createElement(Qk,{prefixCls:n,marks:_e,dots:Q,style:W,activeStyle:J}),a.createElement(Xk,{ref:ae,prefixCls:n,style:A,values:Te,draggingIndex:We,draggingDelete:at,onStartMove:Ye,onOffsetChange:Fe,onFocus:g,onBlur:p,handleRender:ee,activeHandleRender:te,onChangeComplete:Ke,onDelete:de?Qe:void 0}),a.createElement(Yk,{prefixCls:n,marks:_e,onClick:De})))});const aH=a.forwardRef((e,t)=>{const{open:r,draggingDelete:n}=e,o=a.useRef(null),i=r&&!n,l=a.useRef(null);function s(){kt.cancel(l.current),l.current=null}function c(){l.current=kt(()=>{var u;(u=o.current)===null||u===void 0||u.forceAlign(),l.current=null})}return a.useEffect(()=>(i?c():s(),s),[i,e.title]),a.createElement(er,Object.assign({ref:yn(o,t)},e,{open:i}))}),Sp=aH,iH=e=>{const{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:i,marginPart:l,colorFillContentHover:s,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:g,handleLineWidth:p,handleLineWidthHover:h,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{position:"relative",height:n,margin:`${z(l)} ${z(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${z(i)} ${z(l)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${z(p)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(p).mul(-1).equal(),insetBlockStart:u(p).mul(-1).equal(),width:u(d).add(u(p).mul(2)).equal(),height:u(d).add(u(p).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${z(p)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
+ inset-inline-start ${v},
+ inset-block-start ${v},
+ width ${v},
+ height ${v},
+ box-shadow ${v},
+ outline ${v}
+ `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(d).div(2).add(h).mul(-1).equal(),insetBlockStart:u(f).sub(d).div(2).add(h).mul(-1).equal(),width:u(f).add(u(h).mul(2)).equal(),height:u(f).add(u(h).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${z(h)} ${m}`,outline:`6px solid ${g}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${z(p)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
+ ${t}-dot
+ `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${z(p)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`
+ ${t}-mark-text,
+ ${t}-dot
+ `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},xb=(e,t)=>{const{componentCls:r,railSize:n,handleSize:o,dotSize:i,marginFull:l,calc:s}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",g=s(n).mul(3).sub(o).div(2).equal(),p=s(o).sub(n).div(2).equal(),h=t?{borderWidth:`${z(p)} 0`,transform:`translateY(${z(s(p).mul(-1).equal())})`}:{borderWidth:`0 ${z(p)}`,transform:`translateX(${z(e.calc(p).mul(-1).equal())})`};return{[c]:n,[d]:s(n).mul(3).equal(),[`${r}-rail`]:{[u]:"100%",[d]:n},[`${r}-track,${r}-tracks`]:{[d]:n},[`${r}-track-draggable`]:Object.assign({},h),[`${r}-handle`]:{[f]:g},[`${r}-mark`]:{insetInlineStart:0,top:0,[m]:s(n).mul(3).add(t?0:l).equal(),[u]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[m]:n,[u]:"100%",[d]:n},[`${r}-dot`]:{position:"absolute",[f]:s(n).sub(i).div(2).equal()}}},lH=e=>{const{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},xb(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},sH=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},xb(e,!1)),{height:"100%"})}},cH=e=>{const r=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,l=e.colorPrimary,s=new Qt(l).setAlpha(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:l,handleActiveOutlineColor:s,handleColorDisabled:new Qt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},uH=Ot("Slider",e=>{const t=xt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[iH(t),lH(t),sH(t)]},cH),dH=a.createContext({}),$b=dH;function Cd(){const[e,t]=a.useState(!1),r=a.useRef(),n=()=>{kt.cancel(r.current)},o=i=>{n(),i?t(i):r.current=kt(()=>{t(i)})};return a.useEffect(()=>n,[]),[e,o]}var fH=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);otypeof r=="number"?r.toString():""}const gH=B.forwardRef((e,t)=>{const{prefixCls:r,range:n,className:o,rootClassName:i,style:l,disabled:s,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m,tooltip:g={},onChangeComplete:p}=e,h=fH(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:v}=e,{direction:C,slider:b,getPrefixCls:y,getPopupContainer:S}=B.useContext(ke),x=B.useContext(Fn),$=s!=null?s:x,{handleRender:w,direction:I}=B.useContext($b),O=(I||C)==="rtl",[M,N]=Cd(),[L,P]=Cd(),T=Object.assign({},g),{open:_,placement:R,getPopupContainer:D,prefixCls:k,formatter:H}=T,j=_!=null?_:d,V=(M||L)&&j!==!1,A=mH(H,u),[K,W]=Cd(),J=ae=>{p==null||p(ae),W(!1)},X=(ae,re)=>ae||(re?O?"left":"right":"top"),Q=y("slider",r),[ee,te,U]=uH(Q),ne=G(o,b==null?void 0:b.className,i,{[`${Q}-rtl`]:O,[`${Q}-lock`]:K},te,U);O&&!h.vertical&&(h.reverse=!h.reverse),B.useEffect(()=>{const ae=()=>{kt(()=>{P(!1)},1)};return document.addEventListener("mouseup",ae),()=>{document.removeEventListener("mouseup",ae)}},[]);const Z=n&&!j,Y=w||((ae,re)=>{const{index:ce}=re,ue=ae.props;function fe(Se,$e,Ne){var xe,Pe,Ie,_e;Ne&&((Pe=(xe=h)[Se])===null||Pe===void 0||Pe.call(xe,$e)),(_e=(Ie=ue)[Se])===null||_e===void 0||_e.call(Ie,$e)}const be=Object.assign(Object.assign({},ue),{onMouseEnter:Se=>{N(!0),fe("onMouseEnter",Se)},onMouseLeave:Se=>{N(!1),fe("onMouseLeave",Se)},onMouseDown:Se=>{P(!0),W(!0),fe("onMouseDown",Se)},onFocus:Se=>{var $e;P(!0),($e=h.onFocus)===null||$e===void 0||$e.call(h,Se),fe("onFocus",Se,!0)},onBlur:Se=>{var $e;P(!1),($e=h.onBlur)===null||$e===void 0||$e.call(h,Se),fe("onBlur",Se,!0)}}),de=B.cloneElement(ae,be),he=(!!j||V)&&A!==null;return Z?de:B.createElement(Sp,Object.assign({},T,{prefixCls:y("tooltip",k!=null?k:c),title:A?A(re.value):"",open:he,placement:X(R!=null?R:m,v),key:ce,overlayClassName:`${Q}-tooltip`,getPopupContainer:D||f||S}),de)}),oe=Z?(ae,re)=>{const ce=B.cloneElement(ae,{style:Object.assign(Object.assign({},ae.props.style),{visibility:"hidden"})});return B.createElement(Sp,Object.assign({},T,{prefixCls:y("tooltip",k!=null?k:c),title:A?A(re.value):"",open:A!==null&&V,placement:X(R!=null?R:m,v),key:"tooltip",overlayClassName:`${Q}-tooltip`,getPopupContainer:D||f||S,draggingDelete:re.draggingDelete}),ce)}:void 0,se=Object.assign(Object.assign({},b==null?void 0:b.style),l);return ee(B.createElement(oH,Object.assign({},h,{step:h.step,range:n,className:ne,style:se,disabled:$,ref:t,prefixCls:Q,handleRender:Y,activeHandleRender:oe,onChangeComplete:J})))}),wb=gH;var vH=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,colors:r,type:n,color:o,range:i=!1,className:l,activeIndex:s,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,m=vH(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},m),{track:!1}),p=a.useMemo(()=>`linear-gradient(90deg, ${r.map($=>`${$.color} ${$.percent}%`).join(", ")})`,[r]),h=a.useMemo(()=>!o||!n?null:n==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,n]),v=$t(u),C=$t(d),b=a.useMemo(()=>({onDragStart:v,onDragChange:C}),[]),y=$t((x,$)=>{const{onFocus:w,style:I,className:E,onKeyDown:O}=x.props,M=Object.assign({},I);return n==="gradient"&&(M.background=ub(r,$.value)),a.cloneElement(x,{onFocus:N=>{c==null||c($.index),w==null||w(N)},style:M,className:G(E,{[`${t}-slider-handle-active`]:s===$.index}),onKeyDown:N=>{(N.key==="Delete"||N.key==="Backspace")&&f&&f($.index),O==null||O(N)}})}),S=a.useMemo(()=>({direction:"ltr",handleRender:y}),[]);return a.createElement($b.Provider,{value:S},a.createElement(Sb.Provider,{value:b},a.createElement(wb,Object.assign({},g,{className:G(l,`${t}-slider`),tooltip:{open:!1},range:{editable:i,minCount:2},styles:{rail:{background:p},handle:h?{background:h}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},pH=e=>{const{value:t,onChange:r,onChangeComplete:n}=e,o=l=>r(l[0]),i=l=>n(l[0]);return a.createElement(Eb,Object.assign({},e,{value:[t],onChange:o,onChangeComplete:i}))},hH=pH;function xp(e){return ye(e).sort((t,r)=>t.percent-r.percent)}const CH=e=>{const{prefixCls:t,mode:r,onChange:n,onChangeComplete:o,onActive:i,activeIndex:l,onGradientDragging:s,colors:c}=e,u=r==="gradient",d=a.useMemo(()=>c.map(C=>({percent:C.percent,color:C.color.toRgbString()})),[c]),f=a.useMemo(()=>d.map(C=>C.percent),[d]),m=a.useRef(d),g=C=>{let{rawValues:b,draggingIndex:y,draggingValue:S}=C;if(b.length>d.length){const x=ub(d,S),$=ye(d);$.splice(y,0,{percent:S,color:x}),m.current=$}else m.current=d;s(!0),n(new Er(xp(m.current)),!0)},p=C=>{let{deleteIndex:b,draggingIndex:y,draggingValue:S}=C,x=ye(m.current);b!==-1?x.splice(b,1):(x[y]=Object.assign(Object.assign({},x[y]),{percent:S}),x=xp(x)),n(new Er(x),!0)},h=C=>{const b=ye(d);b.splice(C,1);const y=new Er(b);n(y),o(y)},v=C=>{o(new Er(d)),l>=C.length&&i(C.length-1),s(!1)};return u?a.createElement(Eb,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:l,onActive:i,onDragStart:g,onDragChange:p,onKeyDelete:h}):null},bH=a.memo(CH);var yH=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const e=a.useContext(sb),{mode:t,onModeChange:r,modeOptions:n,prefixCls:o,allowClear:i,value:l,disabledAlpha:s,onChange:c,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:m}=e,g=yH(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),p=B.useMemo(()=>l.cleared?[{percent:0,color:new Er("")},{percent:100,color:new Er("")}]:l.getColors(),[l]),h=!l.isGradient(),[v,C]=B.useState(l);Dt(()=>{var I;h||C((I=p[f])===null||I===void 0?void 0:I.color)},[m,f]);const b=B.useMemo(()=>{var I;return h?l:m?v:(I=p[f])===null||I===void 0?void 0:I.color},[l,f,h,v,m]),y=(I,E)=>{let O=tr(I);if(l.cleared){const N=O.toRgb();if(!N.r&&!N.g&&!N.b&&E){const{type:L,value:P=0}=E;O=new Er({h:L==="hue"?P:0,s:1,b:1,a:L==="alpha"?P/100:1})}else O=Hs(O)}if(t==="single")return O;const M=ye(p);return M[f]=Object.assign(Object.assign({},M[f]),{color:O}),new Er(M)},S=(I,E,O)=>{c(y(I,O),E)},x=(I,E)=>{d(y(I,E))};let $=null;const w=n.length>1;return(i||w)&&($=B.createElement("div",{className:`${o}-operation`},w&&B.createElement(lb,{size:"small",options:n,value:t,onChange:r}),B.createElement(db,Object.assign({prefixCls:o,value:l,onChange:I=>{c(I),u==null||u()}},g)))),B.createElement(B.Fragment,null,$,B.createElement(bH,Object.assign({},e,{colors:p})),B.createElement(UL,{prefixCls:o,value:b==null?void 0:b.toHsb(),disabledAlpha:s,onChange:(I,E)=>{S(I,!0,E)},onChangeComplete:(I,E)=>{x(I,E)},components:SH}),B.createElement(Kk,Object.assign({value:b,onChange:S,prefixCls:o,disabledAlpha:s},g)))},$p=xH,bd=e=>e.map(t=>(t.colors=t.colors.map(tr),t)),$H=(e,t)=>{const{r,g:n,b:o,a:i}=e.toRgb(),l=new Wr(e.toRgbString()).onBackground(t).toHsv();return i<=.5?l.v>.5:r*.299+n*.587+o*.114>192},wp=e=>{let{label:t}=e;return`panel-${t}`},wH=e=>{let{prefixCls:t,presets:r,value:n,onChange:o}=e;const[i]=Dn("ColorPicker"),[,l]=An(),[s]=It(bd(r),{value:bd(r),postState:bd}),c=`${t}-presets`,u=a.useMemo(()=>s.reduce((m,g)=>{const{defaultOpen:p=!0}=g;return p&&m.push(wp(g)),m},[]),[s]),d=m=>{o==null||o(m)},f=s.map(m=>{var g;return{key:wp(m),label:B.createElement("div",{className:`${c}-label`},m==null?void 0:m.label),children:B.createElement("div",{className:`${c}-items`},Array.isArray(m==null?void 0:m.colors)&&((g=m.colors)===null||g===void 0?void 0:g.length)>0?m.colors.map((p,h)=>B.createElement(t0,{key:`preset-${h}-${p.toHexString()}`,color:tr(p).toRgbString(),prefixCls:t,className:G(`${c}-color`,{[`${c}-color-checked`]:p.toHexString()===(n==null?void 0:n.toHexString()),[`${c}-color-bright`]:$H(p,l.colorBgElevated)}),onClick:()=>d(p)})):B.createElement("span",{className:`${c}-empty`},i.presetEmpty))}});return B.createElement("div",{className:c},B.createElement(e0,{defaultActiveKey:u,ghost:!0,items:f}))},EH=wH,IH=()=>{const{prefixCls:e,value:t,presets:r,onChange:n}=a.useContext(cb);return Array.isArray(r)?B.createElement(EH,{value:t,presets:r,prefixCls:e,onChange:n}):null},Ep=IH,OH=e=>{const{prefixCls:t,presets:r,panelRender:n,value:o,onChange:i,onClear:l,allowClear:s,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:p,format:h,onFormatChange:v,gradientDragging:C,onGradientDragging:b}=e,y=`${t}-inner`,S=B.useMemo(()=>({prefixCls:t,value:o,onChange:i,onClear:l,allowClear:s,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:p,format:h,onFormatChange:v,gradientDragging:C,onGradientDragging:b}),[t,o,i,l,s,c,u,d,f,m,g,p,h,v,C,b]),x=B.useMemo(()=>({prefixCls:t,value:o,presets:r,onChange:i}),[t,o,r,i]),$=B.createElement("div",{className:`${y}-content`},B.createElement($p,null),Array.isArray(r)&&B.createElement(ib,null),B.createElement(Ep,null));return B.createElement(sb.Provider,{value:S},B.createElement(cb.Provider,{value:x},B.createElement("div",{className:y},typeof n=="function"?n($,{components:{Picker:$p,Presets:Ep}}):$)))},MH=OH;var NH=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{color:r,prefixCls:n,open:o,disabled:i,format:l,className:s,showText:c,activeIndex:u}=e,d=NH(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${n}-trigger`,m=`${f}-text`,g=`${m}-cell`,[p]=Dn("ColorPicker"),h=B.useMemo(()=>{if(!c)return"";if(typeof c=="function")return c(r);if(r.cleared)return p.transparent;if(r.isGradient())return r.getColors().map((y,S)=>{const x=u!==-1&&u!==S;return B.createElement("span",{key:S,className:G(g,x&&`${g}-inactive`)},y.color.toRgbString()," ",y.percent,"%")});const C=r.toHexString().toUpperCase(),b=n0(r);switch(l){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return b<100?`${C.slice(0,7)},${b}%`:C}},[r,l,c,u]),v=a.useMemo(()=>r.cleared?B.createElement(db,{prefixCls:n}):B.createElement(t0,{prefixCls:n,color:r.toCssString()}),[r,n]);return B.createElement("div",Object.assign({ref:t,className:G(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:i})},en(d)),v,c&&B.createElement("div",{className:m},h))}),RH=PH;function _H(e,t,r){const[n]=Dn("ColorPicker"),[o,i]=It(e,{value:t}),[l,s]=a.useState("single"),[c,u]=a.useMemo(()=>{const h=(Array.isArray(r)?r:[r]).filter(y=>y);h.length||h.push("single");const v=new Set(h),C=[],b=(y,S)=>{v.has(y)&&C.push({label:S,value:y})};return b("single",n.singleColor),b("gradient",n.gradientColor),[C,v]},[r]),[d,f]=a.useState(null),m=$t(h=>{f(h),i(h)}),g=a.useMemo(()=>{const h=tr(o||"");return h.equals(d)?d:h},[o,d]),p=a.useMemo(()=>{var h;return u.has(l)?l:(h=c[0])===null||h===void 0?void 0:h.value},[u,l,c]);return a.useEffect(()=>{s(g.isGradient()?"gradient":"single")},[g]),[g,m,p,s,c]}const Ib=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Ip=(e,t)=>{const{componentCls:r,borderRadiusSM:n,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:l}=e;return{[`${r}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:n,width:t,height:t,boxShadow:o,flex:"none"},Ib("50%",e.colorFillSecondary)),{[`${r}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${z(i)} ${l}`,borderRadius:"inherit"}})}},TH=e=>{const{componentCls:t,antCls:r,fontSizeSM:n,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:l,paddingXXS:s,controlHeightSM:c,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,lineWidth:p}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${r}-input-number`]:{fontSize:n,lineHeight:o,[`${r}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${r}-input-number-handler-wrap`]:{width:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${z(i)}`,marginInlineStart:l},[`${t}-format-select${r}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${r}-select-selector`]:{padding:0,border:0},[`${r}-select-arrow`]:{insetInlineEnd:0},[`${r}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(l).equal(),fontSize:n,lineHeight:z(c)},[`${r}-select-item-option-content`]:{fontSize:n,lineHeight:o},[`${r}-select-dropdown`]:{[`${r}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:l,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:l,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${r}-input-affix-wrapper`]:{flex:1,padding:`0 ${z(f)}`,[`${r}-input`]:{fontSize:n,textTransform:"uppercase",lineHeight:z(e.calc(c).sub(e.calc(p).mul(2)).equal())},[`${r}-input-prefix`]:{color:m}}}}}},LH=e=>{const{componentCls:t,controlHeightLG:r,borderRadiusSM:n,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:l,colorFillSecondary:s,lineWidthBold:c,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(r).mul(4).equal(),overflow:"hidden",borderRadius:n},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:u,height:u,border:`${z(c)} solid ${l}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`}}},DH=e=>{const{componentCls:t,antCls:r,colorTextQuaternary:n,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:l,colorText:s,lineHeightSM:c,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:g,paddingXS:p,fontHeightSM:h}=e;return{[`${t}-presets`]:{[`${r}-collapse-item > ${r}-collapse-header`]:{padding:0,[`${r}-collapse-expand-icon`]:{height:h,color:n,paddingInlineEnd:o}},[`${r}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${r}-collapse-item > ${r}-collapse-content > ${r}-collapse-content-box`]:{padding:`${z(p)} 0`},"&-label":{fontSize:l,color:s,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(g).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(u).mul(4)).equal(),height:e.calc(i).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${z(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${z(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:l,color:n}}}},kH=e=>{const{componentCls:t,colorPickerInsetShadow:r,colorBgElevated:n,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:l,colorPickerSliderHeight:s,marginSM:c,marginXS:u}=e,d=e.calc(l).sub(e.calc(i).mul(2).equal()).equal(),f=e.calc(l).add(e.calc(i).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${r}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[Ib(z(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:r},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:l,height:l,border:`${z(i)} solid ${n}`,boxShadow:`${r}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:u,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},B1=(e,t,r)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${z(e.controlOutlineWidth)} ${r}`,outline:0}),HH=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Op=(e,t,r)=>{const{componentCls:n,borderRadiusSM:o,lineWidth:i,colorSplit:l,colorBorder:s,red6:c}=e;return{[`${n}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${z(i)} solid ${l}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},r),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:s}})}},jH=e=>{const{componentCls:t,colorError:r,colorWarning:n,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:l,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},B1(e,r,l))},[`&${t}-status-warning`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},B1(e,n,s))}}},BH=e=>{const{componentCls:t,controlHeightLG:r,controlHeightSM:n,controlHeight:o,controlHeightXS:i,borderRadius:l,borderRadiusSM:s,borderRadiusXS:c,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:r,minHeight:r,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:l},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:z(i)}}}},zH=e=>{const{antCls:t,componentCls:r,colorPickerWidth:n,colorPrimary:o,motionDurationMid:i,colorBgElevated:l,colorTextDisabled:s,colorText:c,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:g,controlHeightSM:p,colorBgTextActive:h,colorPickerPresetColorSize:v,colorPickerPreviewSize:C,lineWidth:b,colorBorder:y,paddingXXS:S,fontSize:x,colorPrimaryHover:$,controlOutline:w}=e;return[{[r]:Object.assign({[`${r}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:n,[`& > ${t}-divider`]:{margin:`${z(m)} 0 ${z(f)}`}},[`${r}-panel`]:Object.assign({},LH(e))},kH(e)),Ip(e,C)),TH(e)),DH(e)),Op(e,v,{marginInlineStart:"auto"})),{[`${r}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:g,minHeight:g,borderRadius:d,border:`${z(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:l,padding:e.calc(S).sub(b).equal(),[`${r}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(S).sub(b)).equal(),fontSize:x,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:$},[`&${r}-trigger-active`]:Object.assign({},B1(e,o,w)),"&-disabled":{color:s,background:u,cursor:"not-allowed","&:hover":{borderColor:h},[`${r}-trigger-text`]:{color:s}}},Op(e,p)),Ip(e,p)),jH(e)),BH(e))},HH(e))},Sa(e,{focusElCls:`${r}-trigger-active`})]},FH=Ot("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:r}=e,n=8,o=xt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:n,colorPickerPreviewSize:e.calc(n).mul(2).add(r).equal()});return[zH(o)]});var AH=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{mode:t,value:r,defaultValue:n,format:o,defaultFormat:i,allowClear:l=!1,presets:s,children:c,trigger:u="click",open:d,disabled:f,placement:m="bottomLeft",arrow:g=!0,panelRender:p,showText:h,style:v,className:C,size:b,rootClassName:y,prefixCls:S,styles:x,disabledAlpha:$=!1,onFormatChange:w,onChange:I,onClear:E,onOpenChange:O,onChangeComplete:M,getPopupContainer:N,autoAdjustOverflow:L=!0,destroyTooltipOnHide:P}=e,T=AH(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:_,direction:R,colorPicker:D}=a.useContext(ke),k=a.useContext(Fn),H=f!=null?f:k,[j,V]=It(!1,{value:d,postState:Ce=>!H&&Ce,onChange:O}),[A,K]=It(o,{value:o,defaultValue:i,onChange:w}),W=_("color-picker",S),[J,X,Q,ee,te]=_H(n,r,t),U=a.useMemo(()=>n0(J)<100,[J]),[ne,Z]=B.useState(null),Y=Ce=>{if(M){let pe=tr(Ce);$&&U&&(pe=Hs(Ce)),M(pe)}},oe=(Ce,pe)=>{let ge=tr(Ce);$&&U&&(ge=Hs(ge)),X(ge),Z(null),I&&I(ge,ge.toCssString()),pe||Y(ge)},[se,ae]=B.useState(0),[re,ce]=B.useState(!1),ue=Ce=>{if(ee(Ce),Ce==="single"&&J.isGradient())ae(0),oe(new Er(J.getColors()[0].color)),Z(J);else if(Ce==="gradient"&&!J.isGradient()){const pe=U?Hs(J):J;oe(new Er(ne||[{percent:0,color:pe},{percent:100,color:pe}]))}},{status:fe}=B.useContext(dn),{compactSize:be,compactItemClassnames:de}=Kr(W,R),he=un(Ce=>{var pe;return(pe=b!=null?b:be)!==null&&pe!==void 0?pe:Ce}),Se=Ut(W),[$e,Ne,xe]=FH(W,Se),Pe={[`${W}-rtl`]:R},Ie=G(y,xe,Se,Pe),_e=G(vr(W,fe),{[`${W}-sm`]:he==="small",[`${W}-lg`]:he==="large"},de,D==null?void 0:D.className,Ie,C,Ne),Re=G(W,Ie),Me={open:j,trigger:u,placement:m,arrow:g,rootClassName:y,getPopupContainer:N,autoAdjustOverflow:L,destroyTooltipOnHide:P},me=Object.assign(Object.assign({},D==null?void 0:D.style),v);return $e(B.createElement(Kc,Object.assign({style:x==null?void 0:x.popup,overlayInnerStyle:x==null?void 0:x.popupOverlayInner,onOpenChange:Ce=>{(!Ce||!H)&&V(Ce)},content:B.createElement(Ar,{form:!0},B.createElement(MH,{mode:Q,onModeChange:ue,modeOptions:te,prefixCls:W,value:J,allowClear:l,disabled:H,disabledAlpha:$,presets:s,panelRender:p,format:A,onFormatChange:K,onChange:oe,onChangeComplete:Y,onClear:E,activeIndex:se,onActive:ae,gradientDragging:re,onGradientDragging:ce})),overlayClassName:Re},Me),c||B.createElement(RH,Object.assign({activeIndex:j?se:-1,open:j,className:_e,style:me,prefixCls:W,disabled:H,showText:h,format:A},T,{color:J}))))},VH=po(s0,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));s0._InternalPanelDoNotUseOrYouWillBeFired=VH;const WH=s0;var KH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const qH=KH;var GH=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:qH}))},XH=a.forwardRef(GH);const Ob=XH;var UH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const YH=UH;var ZH=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:YH}))},QH=a.forwardRef(ZH);const Mb=QH;var JH={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const ej=JH;var tj=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:ej}))},nj=a.forwardRef(tj);const rj=nj;function oj(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function aj(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function c0(e,t){const r={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:r};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:r};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:r};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:r};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:r}}}function Nb(e,t){const{allowClear:r=!0}=e,{clearIcon:n,removeIcon:o}=zc(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[a.useMemo(()=>r===!1?!1:Object.assign({clearIcon:n},r===!0?{}:r),[r,n]),o]}const[ij,lj]=["week","WeekPicker"],[sj,cj]=["month","MonthPicker"],[uj,dj]=["year","YearPicker"],[fj,mj]=["quarter","QuarterPicker"],[Pb,Mp]=["time","TimePicker"],gj=e=>a.createElement(hn,Object.assign({size:"small",type:"primary"},e)),vj=gj;function Rb(e){return a.useMemo(()=>Object.assign({button:vj},e),[e])}var pj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);oa.forwardRef((r,n)=>{var o;const{prefixCls:i,getPopupContainer:l,components:s,className:c,style:u,placement:d,size:f,disabled:m,bordered:g=!0,placeholder:p,popupClassName:h,dropdownClassName:v,status:C,rootClassName:b,variant:y,picker:S}=r,x=pj(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),$=a.useRef(null),{getPrefixCls:w,direction:I,getPopupContainer:E,rangePicker:O}=a.useContext(ke),M=w("picker",i),{compactSize:N,compactItemClassnames:L}=Kr(M,I),P=w(),[T,_]=ho("rangePicker",y,g),R=Ut(M),[D,k,H]=f4(M,R),[j]=Nb(r,M),V=Rb(s),A=un(Y=>{var oe;return(oe=f!=null?f:N)!==null&&oe!==void 0?oe:Y}),K=a.useContext(Fn),W=m!=null?m:K,J=a.useContext(dn),{hasFeedback:X,status:Q,feedbackIcon:ee}=J,te=a.createElement(a.Fragment,null,S===Pb?a.createElement(Mb,null):a.createElement(Ob,null),X&&ee);a.useImperativeHandle(n,()=>$.current);const[U]=Dn("Calendar",Kf),ne=Object.assign(Object.assign({},U),r.locale),[Z]=lr("DatePicker",(o=r.popupStyle)===null||o===void 0?void 0:o.zIndex);return D(a.createElement(Ar,{space:!0},a.createElement(qP,Object.assign({separator:a.createElement("span",{"aria-label":"to",className:`${M}-separator`},a.createElement(rj,null)),disabled:W,ref:$,popupAlign:c0(I,d),placement:d,placeholder:aj(ne,S,p),suffixIcon:te,prevIcon:a.createElement("span",{className:`${M}-prev-icon`}),nextIcon:a.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:a.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:a.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${P}-slide-up`,picker:S},x,{className:G({[`${M}-${A}`]:A,[`${M}-${T}`]:_},vr(M,qr(Q,C),X),k,L,c,O==null?void 0:O.className,H,R,b),style:Object.assign(Object.assign({},O==null?void 0:O.style),u),locale:ne.lang,prefixCls:M,getPopupContainer:l||E,generateConfig:e,components:V,direction:I,classNames:{popup:G(k,h||v,H,R,b)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:Z})},allowClear:j}))))});var Cj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const t=(c,u)=>{const d=u===Mp?"timePicker":"datePicker";return a.forwardRef((m,g)=>{var p;const{prefixCls:h,getPopupContainer:v,components:C,style:b,className:y,rootClassName:S,size:x,bordered:$,placement:w,placeholder:I,popupClassName:E,dropdownClassName:O,disabled:M,status:N,variant:L,onCalendarChange:P}=m,T=Cj(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:_,direction:R,getPopupContainer:D,[d]:k}=a.useContext(ke),H=_("picker",h),{compactSize:j,compactItemClassnames:V}=Kr(H,R),A=a.useRef(null),[K,W]=ho("datePicker",L,$),J=Ut(H),[X,Q,ee]=f4(H,J);a.useImperativeHandle(g,()=>A.current);const te={showToday:!0},U=c||m.picker,ne=_(),{onSelect:Z,multiple:Y}=T,oe=Z&&c==="time"&&!Y,se=(_e,Re,Me)=>{P==null||P(_e,Re,Me),oe&&Z(_e)},[ae,re]=Nb(m,H),ce=Rb(C),ue=un(_e=>{var Re;return(Re=x!=null?x:j)!==null&&Re!==void 0?Re:_e}),fe=a.useContext(Fn),be=M!=null?M:fe,de=a.useContext(dn),{hasFeedback:he,status:Se,feedbackIcon:$e}=de,Ne=a.createElement(a.Fragment,null,U==="time"?a.createElement(Mb,null):a.createElement(Ob,null),he&&$e),[xe]=Dn("DatePicker",Kf),Pe=Object.assign(Object.assign({},xe),m.locale),[Ie]=lr("DatePicker",(p=m.popupStyle)===null||p===void 0?void 0:p.zIndex);return X(a.createElement(Ar,{space:!0},a.createElement(QP,Object.assign({ref:A,placeholder:oj(Pe,U,I),suffixIcon:Ne,dropdownAlign:c0(R,w),placement:w,prevIcon:a.createElement("span",{className:`${H}-prev-icon`}),nextIcon:a.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:a.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:a.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${ne}-slide-up`,picker:c,onCalendarChange:se},te,T,{locale:Pe.lang,className:G({[`${H}-${ue}`]:ue,[`${H}-${K}`]:W},vr(H,qr(Se,N),he),Q,V,k==null?void 0:k.className,y,ee,J,S),style:Object.assign(Object.assign({},k==null?void 0:k.style),b),prefixCls:H,getPopupContainer:v||D,generateConfig:e,components:ce,direction:R,disabled:be,classNames:{popup:G(Q,ee,J,S,E||O)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:Ie})},allowClear:ae,removeIcon:re}))))})},r=t(),n=t(ij,lj),o=t(sj,cj),i=t(uj,dj),l=t(fj,mj),s=t(Pb,Mp);return{DatePicker:r,WeekPicker:n,MonthPicker:o,YearPicker:i,TimePicker:s,QuarterPicker:l}},_b=e=>{const{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:o,TimePicker:i,QuarterPicker:l}=bj(e),s=hj(e),c=t;return c.WeekPicker=r,c.MonthPicker=n,c.YearPicker=o,c.RangePicker=s,c.TimePicker=i,c.QuarterPicker=l,c},sr=_b(SC);function Tb(e){const t=c0(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const yj=po(sr,"picker",null,Tb);sr._InternalPanelDoNotUseOrYouWillBeFired=yj;const Sj=po(sr.RangePicker,"picker",null,Tb);sr._InternalRangePanelDoNotUseOrYouWillBeFired=Sj;sr.generatePicker=_b;const xj={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},$j=xj,wj=B.createContext({}),Lb=wj;var Ej=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);osn(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function Oj(e,t,r){const n=a.useMemo(()=>t||Ij(r),[t,r]);return a.useMemo(()=>n.map(i=>{var{span:l}=i,s=Ej(i,["span"]);return Object.assign(Object.assign({},s),{span:typeof l=="number"?l:q2(e,l)})}),[n,e])}function Np(e,t,r){let n=e,o=!1;return(r===void 0||r>t)&&(n=Object.assign(Object.assign({},e),{span:t}),o=r!==void 0),[n,o]}function Mj(e,t){const r=[];let n=[],o=t,i=!1;return e.filter(l=>l).forEach((l,s)=>{const c=l==null?void 0:l.span,u=c||1;if(s===e.length-1){const[d,f]=Np(l,o,c);i=i||f,n.push(d),r.push(n);return}if(u{const[r,n]=a.useMemo(()=>Mj(t,e),[t,e]);return r},Pj=e=>{let{children:t}=e;return t},Rj=Pj;function Pp(e){return e!=null}const _j=e=>{const{itemPrefixCls:t,component:r,span:n,className:o,style:i,labelStyle:l,contentStyle:s,bordered:c,label:u,content:d,colon:f,type:m}=e,g=r;return c?a.createElement(g,{className:G({[`${t}-item-label`]:m==="label",[`${t}-item-content`]:m==="content"},o),style:i,colSpan:n},Pp(u)&&a.createElement("span",{style:l},u),Pp(d)&&a.createElement("span",{style:s},d)):a.createElement(g,{className:G(`${t}-item`,o),style:i,colSpan:n},a.createElement("div",{className:`${t}-item-container`},(u||u===0)&&a.createElement("span",{className:G(`${t}-item-label`,{[`${t}-item-no-colon`]:!f}),style:l},u),(d||d===0)&&a.createElement("span",{className:G(`${t}-item-content`),style:s},d)))},yd=_j;function Sd(e,t,r){let{colon:n,prefixCls:o,bordered:i}=t,{component:l,type:s,showLabel:c,showContent:u,labelStyle:d,contentStyle:f}=r;return e.map((m,g)=>{let{label:p,children:h,prefixCls:v=o,className:C,style:b,labelStyle:y,contentStyle:S,span:x=1,key:$}=m;return typeof l=="string"?a.createElement(yd,{key:`${s}-${$||g}`,className:C,style:b,labelStyle:Object.assign(Object.assign({},d),y),contentStyle:Object.assign(Object.assign({},f),S),span:x,colon:n,component:l,itemPrefixCls:v,bordered:i,label:c?p:null,content:u?h:null,type:s}):[a.createElement(yd,{key:`label-${$||g}`,className:C,style:Object.assign(Object.assign(Object.assign({},d),b),y),span:1,colon:n,component:l[0],itemPrefixCls:v,bordered:i,label:p,type:"label"}),a.createElement(yd,{key:`content-${$||g}`,className:C,style:Object.assign(Object.assign(Object.assign({},f),b),S),span:x*2-1,component:l[1],itemPrefixCls:v,bordered:i,content:h,type:"content"})]})}const Tj=e=>{const t=a.useContext(Lb),{prefixCls:r,vertical:n,row:o,index:i,bordered:l}=e;return n?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${i}`,className:`${r}-row`},Sd(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),a.createElement("tr",{key:`content-${i}`,className:`${r}-row`},Sd(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):a.createElement("tr",{key:i,className:`${r}-row`},Sd(o,e,Object.assign({component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},Lj=Tj,Dj=e=>{const{componentCls:t,labelBg:r}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{overflow:"hidden",border:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${z(e.padding)} ${z(e.paddingLG)}`,borderInlineEnd:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:r,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${z(e.paddingSM)} ${z(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${z(e.paddingXS)} ${z(e.padding)}`}}}}}},kj=e=>{const{componentCls:t,extraColor:r,itemPaddingBottom:n,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:l,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Mt(e)),Dj(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Rn),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:r,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${z(l)} ${z(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:0}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Hj=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),jj=Ot("Descriptions",e=>{const t=xt(e,{});return kj(t)},Hj);var Bj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,title:r,extra:n,column:o,colon:i=!0,bordered:l,layout:s,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:g,contentStyle:p,items:h}=e,v=Bj(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:C,direction:b,descriptions:y}=a.useContext(ke),S=C("descriptions",t),x=Si(),$=a.useMemo(()=>{var P;return typeof o=="number"?o:(P=q2(x,Object.assign(Object.assign({},$j),o)))!==null&&P!==void 0?P:3},[x,o]),w=Oj(x,h,c),I=un(m),E=Nj($,w),[O,M,N]=jj(S),L=a.useMemo(()=>({labelStyle:g,contentStyle:p}),[g,p]);return O(a.createElement(Lb.Provider,{value:L},a.createElement("div",Object.assign({className:G(S,y==null?void 0:y.className,{[`${S}-${I}`]:I&&I!=="default",[`${S}-bordered`]:!!l,[`${S}-rtl`]:b==="rtl"},u,d,M,N),style:Object.assign(Object.assign({},y==null?void 0:y.style),f)},v),(r||n)&&a.createElement("div",{className:`${S}-header`},r&&a.createElement("div",{className:`${S}-title`},r),n&&a.createElement("div",{className:`${S}-extra`},n)),a.createElement("div",{className:`${S}-view`},a.createElement("table",null,a.createElement("tbody",null,E.map((P,T)=>a.createElement(Lj,{key:T,index:T,colon:i,prefixCls:S,vertical:s==="vertical",bordered:l,row:P}))))))))};u0.Item=Rj;var Rp=a.createContext(null),Db=a.createContext({}),zj=["prefixCls","className","containerRef"],Fj=function(t){var r=t.prefixCls,n=t.className,o=t.containerRef,i=ut(t,zj),l=a.useContext(Db),s=l.panel,c=Oo(s,o);return a.createElement("div",ve({className:G("".concat(r,"-content"),n),role:"dialog",ref:c},en(t,{aria:!0}),{"aria-modal":"true"},i))};function _p(e){return typeof e=="string"&&String(Number(e))===e?(Jt(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var Tp={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Aj(e,t){var r,n,o,i=e.prefixCls,l=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,g=e.classNames,p=e.rootClassName,h=e.rootStyle,v=e.zIndex,C=e.className,b=e.id,y=e.style,S=e.motion,x=e.width,$=e.height,w=e.children,I=e.mask,E=e.maskClosable,O=e.maskMotion,M=e.maskClassName,N=e.maskStyle,L=e.afterOpenChange,P=e.onClose,T=e.onMouseEnter,_=e.onMouseOver,R=e.onMouseLeave,D=e.onClick,k=e.onKeyDown,H=e.onKeyUp,j=e.styles,V=e.drawerRender,A=a.useRef(),K=a.useRef(),W=a.useRef();a.useImperativeHandle(t,function(){return A.current});var J=function(be){var de=be.keyCode,he=be.shiftKey;switch(de){case we.TAB:{if(de===we.TAB){if(!he&&document.activeElement===W.current){var Se;(Se=K.current)===null||Se===void 0||Se.focus({preventScroll:!0})}else if(he&&document.activeElement===K.current){var $e;($e=W.current)===null||$e===void 0||$e.focus({preventScroll:!0})}}break}case we.ESC:{P&&m&&(be.stopPropagation(),P(be));break}}};a.useEffect(function(){if(l&&f){var fe;(fe=A.current)===null||fe===void 0||fe.focus({preventScroll:!0})}},[l]);var X=a.useState(!1),Q=ie(X,2),ee=Q[0],te=Q[1],U=a.useContext(Rp),ne;typeof u=="boolean"?ne=u?{}:{distance:0}:ne=u||{};var Z=(r=(n=(o=ne)===null||o===void 0?void 0:o.distance)!==null&&n!==void 0?n:U==null?void 0:U.pushDistance)!==null&&r!==void 0?r:180,Y=a.useMemo(function(){return{pushDistance:Z,push:function(){te(!0)},pull:function(){te(!1)}}},[Z]);a.useEffect(function(){if(l){var fe;U==null||(fe=U.push)===null||fe===void 0||fe.call(U)}else{var be;U==null||(be=U.pull)===null||be===void 0||be.call(U)}},[l]),a.useEffect(function(){return function(){var fe;U==null||(fe=U.pull)===null||fe===void 0||fe.call(U)}},[]);var oe=I&&a.createElement(In,ve({key:"mask"},O,{visible:l}),function(fe,be){var de=fe.className,he=fe.style;return a.createElement("div",{className:G("".concat(i,"-mask"),de,g==null?void 0:g.mask,M),style:q(q(q({},he),N),j==null?void 0:j.mask),onClick:E&&l?P:void 0,ref:be})}),se=typeof S=="function"?S(s):S,ae={};if(ee&&Z)switch(s){case"top":ae.transform="translateY(".concat(Z,"px)");break;case"bottom":ae.transform="translateY(".concat(-Z,"px)");break;case"left":ae.transform="translateX(".concat(Z,"px)");break;default:ae.transform="translateX(".concat(-Z,"px)");break}s==="left"||s==="right"?ae.width=_p(x):ae.height=_p($);var re={onMouseEnter:T,onMouseOver:_,onMouseLeave:R,onClick:D,onKeyDown:k,onKeyUp:H},ce=a.createElement(In,ve({key:"panel"},se,{visible:l,forceRender:d,onVisibleChanged:function(be){L==null||L(be)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(fe,be){var de=fe.className,he=fe.style,Se=a.createElement(Fj,ve({id:b,containerRef:be,prefixCls:i,className:G(C,g==null?void 0:g.content),style:q(q({},y),j==null?void 0:j.content)},en(e,{aria:!0}),re),w);return a.createElement("div",ve({className:G("".concat(i,"-content-wrapper"),g==null?void 0:g.wrapper,de),style:q(q(q({},ae),he),j==null?void 0:j.wrapper)},en(e,{data:!0})),V?V(Se):Se)}),ue=q({},h);return v&&(ue.zIndex=v),a.createElement(Rp.Provider,{value:Y},a.createElement("div",{className:G(i,"".concat(i,"-").concat(s),p,F(F({},"".concat(i,"-open"),l),"".concat(i,"-inline"),c)),style:ue,tabIndex:-1,ref:A,onKeyDown:J},oe,a.createElement("div",{tabIndex:0,ref:K,style:Tp,"aria-hidden":"true","data-sentinel":"start"}),ce,a.createElement("div",{tabIndex:0,ref:W,style:Tp,"aria-hidden":"true","data-sentinel":"end"})))}var Vj=a.forwardRef(Aj),Wj=function(t){var r=t.open,n=r===void 0?!1:r,o=t.prefixCls,i=o===void 0?"rc-drawer":o,l=t.placement,s=l===void 0?"right":l,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,m=t.width,g=m===void 0?378:m,p=t.mask,h=p===void 0?!0:p,v=t.maskClosable,C=v===void 0?!0:v,b=t.getContainer,y=t.forceRender,S=t.afterOpenChange,x=t.destroyOnClose,$=t.onMouseEnter,w=t.onMouseOver,I=t.onMouseLeave,E=t.onClick,O=t.onKeyDown,M=t.onKeyUp,N=t.panelRef,L=a.useState(!1),P=ie(L,2),T=P[0],_=P[1],R=a.useState(!1),D=ie(R,2),k=D[0],H=D[1];Dt(function(){H(!0)},[]);var j=k?n:!1,V=a.useRef(),A=a.useRef();Dt(function(){j&&(A.current=document.activeElement)},[j]);var K=function(ee){var te;if(_(ee),S==null||S(ee),!ee&&A.current&&!((te=V.current)!==null&&te!==void 0&&te.contains(A.current))){var U;(U=A.current)===null||U===void 0||U.focus({preventScroll:!0})}},W=a.useMemo(function(){return{panel:N}},[N]);if(!y&&!T&&!j&&x)return null;var J={onMouseEnter:$,onMouseOver:w,onMouseLeave:I,onClick:E,onKeyDown:O,onKeyUp:M},X=q(q({},t),{},{open:j,prefixCls:i,placement:s,autoFocus:u,keyboard:f,width:g,mask:h,maskClosable:C,inline:b===!1,afterOpenChange:K,ref:V},J);return a.createElement(Db.Provider,{value:W},a.createElement(xa,{open:j||y||T,autoDestroy:!1,getContainer:b,autoLock:h&&(j||T)},a.createElement(Vj,X)))};const Kj=e=>{var t,r;const{prefixCls:n,title:o,footer:i,extra:l,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:m,classNames:g,styles:p}=e,{drawer:h}=a.useContext(ke),v=a.useCallback(x=>a.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${n}-close`},x),[c]),[C,b]=Mc(ei(e),ei(h),{closable:!0,closeIconRender:v}),y=a.useMemo(()=>{var x,$;return!o&&!C?null:a.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(x=h==null?void 0:h.styles)===null||x===void 0?void 0:x.header),u),p==null?void 0:p.header),className:G(`${n}-header`,{[`${n}-header-close-only`]:C&&!o&&!l},($=h==null?void 0:h.classNames)===null||$===void 0?void 0:$.header,g==null?void 0:g.header)},a.createElement("div",{className:`${n}-header-title`},b,o&&a.createElement("div",{className:`${n}-title`},o)),l&&a.createElement("div",{className:`${n}-extra`},l))},[C,b,l,u,n,o]),S=a.useMemo(()=>{var x,$;if(!i)return null;const w=`${n}-footer`;return a.createElement("div",{className:G(w,(x=h==null?void 0:h.classNames)===null||x===void 0?void 0:x.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},($=h==null?void 0:h.styles)===null||$===void 0?void 0:$.footer),f),p==null?void 0:p.footer)},i)},[i,f,n]);return a.createElement(a.Fragment,null,y,a.createElement("div",{className:G(`${n}-body`,g==null?void 0:g.body,(t=h==null?void 0:h.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(r=h==null?void 0:h.styles)===null||r===void 0?void 0:r.body),d),p==null?void 0:p.body)},s?a.createElement(rr,{active:!0,title:!1,paragraph:{rows:5},className:`${n}-body-skeleton`}):m),S)},kb=Kj,qj=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Hb=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),jb=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Hb({opacity:e},{opacity:1})),Gj=(e,t)=>[jb(.7,t),Hb({transform:qj(e)},{transform:"none"})],Xj=e=>{const{componentCls:t,motionDurationSlow:r}=e;return{[t]:{[`${t}-mask-motion`]:jb(0,r),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((n,o)=>Object.assign(Object.assign({},n),{[`&-${o}`]:Gj(o,r)}),{})}}},Uj=e=>{const{borderRadiusSM:t,componentCls:r,zIndexPopup:n,colorBgMask:o,colorBgElevated:i,motionDurationSlow:l,motionDurationMid:s,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:g,lineType:p,colorSplit:h,marginXS:v,colorIcon:C,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:S,colorText:x,fontWeightStrong:$,footerPaddingBlock:w,footerPaddingInline:I,calc:E}=e,O=`${r}-content-wrapper`;return{[r]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${r}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${r}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${r}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${r}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${r}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${l}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${r}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${r}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${z(u)} ${z(d)}`,fontSize:f,lineHeight:m,borderBottom:`${z(g)} ${p} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${r}-extra`]:{flex:"none"},[`${r}-close`]:Object.assign({display:"inline-flex",width:E(f).add(c).equal(),height:E(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:C,fontWeight:$,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:S}},Nr(e)),[`${r}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${r}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${r}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${r}-footer`]:{flexShrink:0,padding:`${z(w)} ${z(I)}`,borderTop:`${z(g)} ${p} ${h}`},"&-rtl":{direction:"rtl"}}}},Yj=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Bb=Ot("Drawer",e=>{const t=xt(e,{});return[Uj(t),Xj(t)]},Yj);var zb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:r,height:n,size:o="default",mask:i=!0,push:l=Zj,open:s,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,style:m,className:g,visible:p,afterVisibleChange:h,maskStyle:v,drawerStyle:C,contentWrapperStyle:b}=e,y=zb(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:x,direction:$,drawer:w}=a.useContext(ke),I=x("drawer",d),[E,O,M]=Bb(I),N=f===void 0&&S?()=>S(document.body):f,L=G({"no-mask":!i,[`${I}-rtl`]:$==="rtl"},t,O,M),P=a.useMemo(()=>r!=null?r:o==="large"?736:378,[r,o]),T=a.useMemo(()=>n!=null?n:o==="large"?736:378,[n,o]),_={motionName:jn(I,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},R=W=>({motionName:jn(I,`panel-motion-${W}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),D=K5(),[k,H]=lr("Drawer",y.zIndex),{classNames:j={},styles:V={}}=y,{classNames:A={},styles:K={}}=w||{};return E(a.createElement(Ar,{form:!0,space:!0},a.createElement(pi.Provider,{value:H},a.createElement(Wj,Object.assign({prefixCls:I,onClose:u,maskMotion:_,motion:R},y,{classNames:{mask:G(j.mask,A.mask),content:G(j.content,A.content),wrapper:G(j.wrapper,A.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},V.mask),v),K.mask),content:Object.assign(Object.assign(Object.assign({},V.content),C),K.content),wrapper:Object.assign(Object.assign(Object.assign({},V.wrapper),b),K.wrapper)},open:s!=null?s:p,mask:i,push:l,width:P,height:T,style:Object.assign(Object.assign({},w==null?void 0:w.style),m),className:G(w==null?void 0:w.className,g),rootClassName:L,getContainer:N,afterOpenChange:c!=null?c:h,panelRef:D,zIndex:k}),a.createElement(kb,Object.assign({prefixCls:I},y,{onClose:u}))))))},Qj=e=>{const{prefixCls:t,style:r,className:n,placement:o="right"}=e,i=zb(e,["prefixCls","style","className","placement"]),{getPrefixCls:l}=a.useContext(ke),s=l("drawer",t),[c,u,d]=Bb(s),f=G(s,`${s}-pure`,`${s}-${o}`,u,d,n);return c(a.createElement("div",{className:f,style:r},a.createElement(kb,Object.assign({prefixCls:s},i))))};Fb._InternalPanelDoNotUseOrYouWillBeFired=Qj;const Jj=Fb;function tc(e){return["small","middle","large"].includes(e)}function Lp(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Ab=B.createContext({latestIndex:0}),eB=Ab.Provider,tB=e=>{let{className:t,index:r,children:n,split:o,style:i}=e;const{latestIndex:l}=a.useContext(Ab);return n==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:t,style:i},n),r{var r,n,o;const{getPrefixCls:i,space:l,direction:s}=a.useContext(ke),{size:c=(r=l==null?void 0:l.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:m,direction:g="horizontal",prefixCls:p,split:h,style:v,wrap:C=!1,classNames:b,styles:y}=e,S=rB(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,$]=Array.isArray(c)?c:[c,c],w=tc($),I=tc(x),E=Lp($),O=Lp(x),M=sn(m,{keepEmpty:!0}),N=u===void 0&&g==="horizontal"?"center":u,L=i("space",p),[P,T,_]=b5(L),R=G(L,l==null?void 0:l.className,T,`${L}-${g}`,{[`${L}-rtl`]:s==="rtl",[`${L}-align-${N}`]:N,[`${L}-gap-row-${$}`]:w,[`${L}-gap-col-${x}`]:I},d,f,_),D=G(`${L}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(o=l==null?void 0:l.classNames)===null||o===void 0?void 0:o.item);let k=0;const H=M.map((A,K)=>{var W,J;A!=null&&(k=K);const X=(A==null?void 0:A.key)||`${D}-${K}`;return a.createElement(nB,{className:D,key:X,index:K,split:h,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(J=l==null?void 0:l.styles)===null||J===void 0?void 0:J.item},A)}),j=a.useMemo(()=>({latestIndex:k}),[k]);if(M.length===0)return null;const V={};return C&&(V.flexWrap="wrap"),!I&&O&&(V.columnGap=x),!w&&E&&(V.rowGap=$),P(a.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},V),l==null?void 0:l.style),v)},S),a.createElement(eB,{value:j},H)))}),Ul=oB;Ul.Compact=oS;var aB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:r,direction:n}=a.useContext(ke),{prefixCls:o,type:i="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:g,arrow:p,autoFocus:h,overlay:v,trigger:C,align:b,open:y,onOpenChange:S,placement:x,getPopupContainer:$,href:w,icon:I=a.createElement(jm,null),title:E,buttonsRender:O=Q=>Q,mouseEnterDelay:M,mouseLeaveDelay:N,overlayClassName:L,overlayStyle:P,destroyPopupOnHide:T,dropdownRender:_}=e,R=aB(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=r("dropdown",o),k=`${D}-button`,H={menu:g,arrow:p,autoFocus:h,align:b,disabled:s,trigger:s?[]:C,onOpenChange:S,getPopupContainer:$||t,mouseEnterDelay:M,mouseLeaveDelay:N,overlayClassName:L,overlayStyle:P,destroyPopupOnHide:T,dropdownRender:_},{compactSize:j,compactItemClassnames:V}=Kr(D,n),A=G(k,V,m);"overlay"in e&&(H.overlay=v),"open"in e&&(H.open=y),"placement"in e?H.placement=x:H.placement=n==="rtl"?"bottomLeft":"bottomRight";const K=a.createElement(hn,{type:i,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:w,title:E},f),W=a.createElement(hn,{type:i,danger:l,icon:I}),[J,X]=O([K,W]);return a.createElement(Ul.Compact,Object.assign({className:A,size:j,block:!0},R),J,a.createElement(Fl,Object.assign({},H),X))};Vb.__ANT_BUTTON=!0;const iB=Vb,Mi=Fl;Mi.Button=iB;const Wb=["wrap","nowrap","wrap-reverse"],Kb=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],qb=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],lB=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&Wb.includes(r)}},sB=(e,t)=>{const r={};return qb.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},cB=(e,t)=>{const r={};return Kb.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function uB(e,t){return G(Object.assign(Object.assign(Object.assign({},lB(e,t)),sB(e,t)),cB(e,t)))}const dB=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},fB=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},mB=e=>{const{componentCls:t}=e,r={};return Wb.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},gB=e=>{const{componentCls:t}=e,r={};return qb.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},vB=e=>{const{componentCls:t}=e,r={};return Kb.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},pB=()=>({}),hB=Ot("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,o=xt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[dB(o),fB(o),mB(o),gB(o),vB(o)]},pB,{resetStyle:!1});var CB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,rootClassName:n,className:o,style:i,flex:l,gap:s,children:c,vertical:u=!1,component:d="div"}=e,f=CB(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:g,getPrefixCls:p}=B.useContext(ke),h=p("flex",r),[v,C,b]=hB(h),y=u!=null?u:m==null?void 0:m.vertical,S=G(o,n,m==null?void 0:m.className,h,C,b,uB(h,e),{[`${h}-rtl`]:g==="rtl",[`${h}-gap-${s}`]:tc(s),[`${h}-vertical`]:y}),x=Object.assign(Object.assign({},m==null?void 0:m.style),i);return l&&(x.flex=l),s&&!tc(s)&&(x.gap=s),v(B.createElement(d,Object.assign({ref:t,className:S,style:x},Xt(f,["justify","wrap","align"])),c))}),Gb=bB,Xb=B.createContext(void 0),{Provider:yB}=Xb,Ub=Xb;var SB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const xB=SB;var $B=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:xB}))},wB=a.forwardRef($B);const Yb=wB,EB=e=>{const{icon:t,description:r,prefixCls:n,className:o}=e,i=B.createElement("div",{className:`${n}-icon`},B.createElement(Yb,null));return B.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:G(o,`${n}-content`)},t||r?B.createElement(B.Fragment,null,t&&B.createElement("div",{className:`${n}-icon`},t),r&&B.createElement("div",{className:`${n}-description`},r)):i)},IB=a.memo(EB),Dp=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),OB=e=>{const{componentCls:t,floatButtonSize:r,motionDurationSlow:n,motionEaseInOutCirc:o}=e,i=`${t}-group`,l=new jt("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${z(r)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new jt("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${z(r)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:Object.assign({},Ll(`${i}-wrap`,l,s,n,!0))},{[`${i}-wrap`]:{[`
+ &${i}-wrap-enter,
+ &${i}-wrap-appear
+ `]:{opacity:0,animationTimingFunction:o},[`&${i}-wrap-leave`]:{animationTimingFunction:o}}}]},MB=e=>{const{antCls:t,componentCls:r,floatButtonSize:n,margin:o,borderRadiusLG:i,borderRadiusSM:l,badgeOffset:s,floatButtonBodyPadding:c,calc:u}=e,d=`${r}-group`;return{[d]:Object.assign(Object.assign({},Mt(e)),{zIndex:e.zIndexPopupBase,display:"block",border:"none",position:"fixed",width:n,height:"auto",boxShadow:"none",minHeight:n,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${d}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${d}-rtl`]:{direction:"rtl"},[r]:{position:"static"}}),[`${d}-circle`]:{[`${r}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${r}-body`]:{width:n,height:n,borderRadius:"50%"}}},[`${d}-square`]:{[`${r}-square`]:{padding:0,borderRadius:0,[`&${d}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:u(u(c).add(s)).mul(-1).equal(),insetInlineEnd:u(u(c).add(s)).mul(-1).equal()}}},[`${d}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${r}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:c,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${r}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${d}-circle-shadow`]:{boxShadow:"none"},[`${d}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${r}-square`]:{boxShadow:"none",padding:c,[`${r}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:l}}}}},NB=e=>{const{antCls:t,componentCls:r,floatButtonBodyPadding:n,floatButtonIconSize:o,floatButtonSize:i,borderRadiusLG:l,badgeOffset:s,dotOffsetInSquare:c,dotOffsetInCircle:u,calc:d}=e;return{[r]:Object.assign(Object.assign({},Mt(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:d(s).mul(-1).equal(),insetInlineEnd:d(s).mul(-1).equal()}},[`${r}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${r}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${z(d(n).div(2).equal())} ${z(n)}`,[`${r}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${r}-rtl`]:{direction:"rtl"},[`${r}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:u,insetInlineEnd:u}},[`${r}-body`]:{borderRadius:"50%"}},[`${r}-square`]:{height:"auto",minHeight:i,borderRadius:l,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${r}-body`]:{height:"auto",borderRadius:l}},[`${r}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${r}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${r}-content`]:{[`${r}-icon`]:{color:e.colorText},[`${r}-description`]:{display:"flex",alignItems:"center",lineHeight:z(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${r}-primary`]:{backgroundColor:e.colorPrimary,[`${r}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${r}-content`]:{[`${r}-icon`]:{color:e.colorTextLightSolid},[`${r}-description`]:{display:"flex",alignItems:"center",lineHeight:z(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},PB=e=>({dotOffsetInCircle:Dp(e.controlHeightLG/2),dotOffsetInSquare:Dp(e.borderRadiusLG)}),Zb=Ot("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:r,controlHeightLG:n,marginXXL:o,marginLG:i,fontSize:l,fontSizeIcon:s,controlItemBgHover:c,paddingXXS:u,calc:d}=e,f=xt(e,{floatButtonBackgroundColor:r,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:l,floatButtonIconSize:d(s).mul(1.5).equal(),floatButtonSize:n,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:i,floatButtonBodySize:d(n).sub(d(u).mul(2)).equal(),floatButtonBodyPadding:u,badgeOffset:d(u).mul(1.5).equal()});return[MB(f),NB(f),Rc(e),OB(f)]},PB);var RB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,className:n,rootClassName:o,type:i="default",shape:l="circle",icon:s,description:c,tooltip:u,badge:d={}}=e,f=RB(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:m,direction:g}=a.useContext(ke),p=a.useContext(Ub),h=m(pu,r),v=Ut(h),[C,b,y]=Zb(h,v),S=p||l,x=G(b,y,v,h,n,o,`${h}-${i}`,`${h}-${S}`,{[`${h}-rtl`]:g==="rtl"}),$=a.useMemo(()=>Xt(d,["title","children","status","text"]),[d]),w=a.useMemo(()=>({prefixCls:h,description:c,icon:s,type:i}),[h,c,s,i]);let I=B.createElement("div",{className:`${h}-body`},B.createElement(IB,Object.assign({},w)));return"badge"in e&&(I=B.createElement(qc,Object.assign({},$),I)),"tooltip"in e&&(I=B.createElement(er,{title:u,placement:g==="rtl"?"right":"left"},I)),C(e.href?B.createElement("a",Object.assign({ref:t},f,{className:x}),I):B.createElement("button",Object.assign({ref:t},f,{className:x,type:"button"}),I))}),Po=_B;var TB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,className:n,type:o="default",shape:i="circle",visibilityHeight:l=400,icon:s=B.createElement(LO,null),target:c,onClick:u,duration:d=450}=e,f=TB(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[m,g]=a.useState(l===0),p=B.useRef(null);B.useImperativeHandle(t,()=>({nativeElement:p.current}));const h=()=>{var I;return((I=p.current)===null||I===void 0?void 0:I.ownerDocument)||window},v=Zd(I=>{const E=Qf(I.target);g(E>=l)});a.useEffect(()=>{const E=(c||h)();return v({target:E}),E==null||E.addEventListener("scroll",v),()=>{v.cancel(),E==null||E.removeEventListener("scroll",v)}},[c]);const C=I=>{Jf(0,{getContainer:c||h,duration:d}),u==null||u(I)},{getPrefixCls:b}=a.useContext(ke),y=b(pu,r),S=b(),$=a.useContext(Ub)||i,w=Object.assign({prefixCls:y,icon:s,type:o,shape:$},f);return B.createElement(In,{visible:m,motionName:`${S}-fade`},(I,E)=>{let{className:O}=I;return B.createElement(Po,Object.assign({ref:yn(p,E)},w,{onClick:C,className:G(n,O)}))})}),Qb=LB;var DB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:r,className:n,style:o,shape:i="circle",type:l="default",icon:s=B.createElement(Yb,null),closeIcon:c,description:u,trigger:d,children:f,onOpenChange:m,open:g,onClick:p}=e,h=DB(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:v,getPrefixCls:C,floatButtonGroup:b}=a.useContext(ke),y=(t=c!=null?c:b==null?void 0:b.closeIcon)!==null&&t!==void 0?t:B.createElement(Cr,null),S=C(pu,r),x=Ut(S),[$,w,I]=Zb(S,x),E=`${S}-group`,O=G(E,w,I,x,n,{[`${E}-rtl`]:v==="rtl",[`${E}-${i}`]:i,[`${E}-${i}-shadow`]:!d}),M=G(w,`${E}-wrap`),[N,L]=It(!1,{value:g}),P=B.useRef(null),T=d==="hover",_=d==="click",R=$t(j=>{N!==j&&(L(j),m==null||m(j))}),D=()=>{T&&R(!0)},k=()=>{T&&R(!1)},H=j=>{_&&R(!N),p==null||p(j)};return B.useEffect(()=>{if(_){const j=V=>{var A;!((A=P.current)===null||A===void 0)&&A.contains(V.target)||R(!1)};return document.addEventListener("click",j,{capture:!0}),()=>{document.removeEventListener("click",j,{capture:!0})}}},[_]),$(B.createElement(yB,{value:i},B.createElement("div",{ref:P,className:O,style:o,onMouseEnter:D,onMouseLeave:k},d&&["click","hover"].includes(d)?B.createElement(B.Fragment,null,B.createElement(In,{visible:N,motionName:`${E}-wrap`},j=>{let{className:V}=j;return B.createElement("div",{className:G(V,M)},f)}),B.createElement(Po,Object.assign({type:l,icon:N?y:s,description:u,"aria-label":e["aria-label"],className:`${E}-trigger`,onClick:H},h))):f)))},Jb=a.memo(kB);var e6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{backTop:t}=e,r=e6(e,["backTop"]);return t?a.createElement(Qb,Object.assign({},r,{visibilityHeight:0})):a.createElement(Po,Object.assign({},r))},HB=e=>{var{className:t,items:r}=e,n=e6(e,["className","items"]);const{prefixCls:o}=n,{getPrefixCls:i}=a.useContext(ke),s=`${i(pu,o)}-pure`;return r?a.createElement(Jb,Object.assign({className:G(t,s)},n),r.map((c,u)=>a.createElement(kp,Object.assign({key:u},c)))):a.createElement(kp,Object.assign({className:G(t,s)},n))},jB=HB;Po.BackTop=Qb;Po.Group=Jb;Po._InternalPanelDoNotUseOrYouWillBeFired=jB;function nc(e){const[t,r]=a.useState(e);return a.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const BB=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
+ opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
+ transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},zB=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${z(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 ${z(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Hp=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},FB=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Mt(e)),zB(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Hp(e,e.controlHeightSM)),"&-large":Object.assign({},Hp(e,e.controlHeightLG))})}},AB=e=>{const{formItemCls:t,iconCls:r,componentCls:n,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:l,labelColor:s,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
+ &-hidden${i}-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,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:l,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${n}-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:gm,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},jp=(e,t)=>{const{formItemCls:r}=e;return{[`${t}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}}}}},VB=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
+ > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},kr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),t6=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:kr(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},WB=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${t}-vertical`]:{[`${r}:not(${r}-horizontal)`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
+ ${n}-col-24${r}-label,
+ ${n}-col-xl-24${r}-label`]:kr(e)}},[`@media (max-width: ${z(e.screenXSMax)})`]:[t6(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:kr(e)}}}],[`@media (max-width: ${z(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:kr(e)}}},[`@media (max-width: ${z(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:kr(e)}}},[`@media (max-width: ${z(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:kr(e)}}}}},KB=e=>{const{formItemCls:t,antCls:r}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
+ ${r}-col-24${t}-label,
+ ${r}-col-xl-24${t}-label`]:kr(e),[`@media (max-width: ${z(e.screenXSMax)})`]:[t6(e),{[t]:{[`${r}-col-xs-24${t}-label`]:kr(e)}}],[`@media (max-width: ${z(e.screenSMMax)})`]:{[t]:{[`${r}-col-sm-24${t}-label`]:kr(e)}},[`@media (max-width: ${z(e.screenMDMax)})`]:{[t]:{[`${r}-col-md-24${t}-label`]:kr(e)}},[`@media (max-width: ${z(e.screenLGMax)})`]:{[t]:{[`${r}-col-lg-24${t}-label`]:kr(e)}}}},qB=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}),n6=(e,t)=>xt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),d0=Ot("Form",(e,t)=>{let{rootPrefixCls:r}=t;const n=n6(e,r);return[FB(n),AB(n),BB(n),jp(n,n.componentCls),jp(n,n.formItemCls),VB(n),WB(n),KB(n),Tl(n),gm]},qB,{order:-1e3}),Bp=[];function xd(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const GB=e=>{let{help:t,helpStatus:r,errors:n=Bp,warnings:o=Bp,className:i,fieldId:l,onVisibleChanged:s}=e;const{prefixCls:c}=a.useContext(mm),u=`${c}-item-explain`,d=Ut(c),[f,m,g]=d0(c,d),p=a.useMemo(()=>Ja(c),[c]),h=nc(n),v=nc(o),C=a.useMemo(()=>t!=null?[xd(t,"help",r)]:[].concat(ye(h.map((y,S)=>xd(y,"error","error",S))),ye(v.map((y,S)=>xd(y,"warning","warning",S)))),[t,r,h,v]),b={};return l&&(b.id=`${l}_help`),f(a.createElement(In,{motionDeadline:p.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:s},y=>{const{className:S,style:x}=y;return a.createElement("div",Object.assign({},b,{className:G(u,S,g,d,i,m),style:x,role:"alert"}),a.createElement(Wf,Object.assign({keys:C},Ja(c),{motionName:`${c}-show-help-item`,component:!1}),$=>{const{key:w,error:I,errorStatus:E,className:O,style:M}=$;return a.createElement("div",{key:w,className:G(O,{[`${u}-${E}`]:E}),style:M},I)}))}))},r6=GB,XB=["parentNode"],UB="form_item";function ol(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function o6(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:XB.includes(r)?`${UB}_${r}`:r}function a6(e,t,r,n,o,i){let l=n;return i!==void 0?l=i:r.validating?l="validating":e.length?l="error":t.length?l="warning":(r.touched||o&&r.validated)&&(l="success"),l}function zp(e){return ol(e).join("_")}function YB(e,t){const r=t.getFieldInstance(e),n=c8(r);if(n)return n;const o=o6(ol(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function i6(e){const[t]=fm(),r=a.useRef({}),n=a.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const l=zp(o);i?r.current[l]=i:delete r.current[l]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const l=YB(o,n);l&&s5(l,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=zp(o);return r.current[i]}}),[e,t]);return[n]}var ZB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const r=a.useContext(Fn),{getPrefixCls:n,direction:o,form:i}=a.useContext(ke),{prefixCls:l,className:s,rootClassName:c,size:u,disabled:d=r,form:f,colon:m,labelAlign:g,labelWrap:p,labelCol:h,wrapperCol:v,hideRequiredMark:C,layout:b="horizontal",scrollToFirstError:y,requiredMark:S,onFinishFailed:x,name:$,style:w,feedbackIcons:I,variant:E}=e,O=ZB(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=un(u),N=a.useContext(u8),L=a.useMemo(()=>S!==void 0?S:C?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[C,S,i]),P=m!=null?m:i==null?void 0:i.colon,T=n("form",l),_=Ut(T),[R,D,k]=d0(T,_),H=G(T,`${T}-${b}`,{[`${T}-hide-required-mark`]:L===!1,[`${T}-rtl`]:o==="rtl",[`${T}-${M}`]:M},k,_,D,i==null?void 0:i.className,s,c),[j]=i6(f),{__INTERNAL__:V}=j;V.name=$;const A=a.useMemo(()=>({name:$,labelAlign:g,labelCol:h,labelWrap:p,wrapperCol:v,vertical:b==="vertical",colon:P,requiredMark:L,itemRef:V.itemRef,form:j,feedbackIcons:I}),[$,g,h,v,b,P,L,j,I]),K=a.useRef(null);a.useImperativeHandle(t,()=>{var X;return Object.assign(Object.assign({},j),{nativeElement:(X=K.current)===null||X===void 0?void 0:X.nativeElement})});const W=(X,Q)=>{if(X){let ee={block:"nearest"};typeof X=="object"&&(ee=X),j.scrollToField(Q,ee)}},J=X=>{if(x==null||x(X),X.errorFields.length){const Q=X.errorFields[0].name;if(y!==void 0){W(y,Q);return}i&&i.scrollToFirstError!==void 0&&W(i.scrollToFirstError,Q)}};return R(a.createElement(A5.Provider,{value:E},a.createElement(K2,{disabled:d},a.createElement(V2.Provider,{value:M},a.createElement(F5,{validateMessages:N},a.createElement(wo.Provider,{value:A},a.createElement(Ci,Object.assign({id:$},O,{name:$,onFinishFailed:J,form:j,ref:K,style:Object.assign(Object.assign({},i==null?void 0:i.style),w),className:H}))))))))},JB=a.forwardRef(QB);function ez(e){if(typeof e=="function")return e;const t=sn(e);return t.length<=1?t[0]:t}const l6=()=>{const{status:e,errors:t=[],warnings:r=[]}=a.useContext(dn);return{status:e,errors:t,warnings:r}};l6.Context=dn;const tz=l6;function nz(e){const[t,r]=a.useState(e),n=a.useRef(null),o=a.useRef([]),i=a.useRef(!1);a.useEffect(()=>(i.current=!1,()=>{i.current=!0,kt.cancel(n.current),n.current=null}),[]);function l(s){i.current||(n.current===null&&(o.current=[],n.current=kt(()=>{n.current=null,r(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,l]}function rz(){const{itemRef:e}=a.useContext(wo),t=a.useRef({});function r(n,o){const i=o&&typeof o=="object"&&o.ref,l=n.join("_");return(t.current.name!==l||t.current.originRef!==i)&&(t.current.name=l,t.current.originRef=i,t.current.ref=yn(e(n),i)),t.current.ref}return r}const oz=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},az=ba(["Form","item-item"],(e,t)=>{let{rootPrefixCls:r}=t;const n=n6(e,r);return[oz(n)]}),iz=e=>{const{prefixCls:t,status:r,wrapperCol:n,children:o,errors:i,warnings:l,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,g=`${t}-item`,p=a.useContext(wo),h=n||p.wrapperCol||{},v=G(`${g}-control`,h.className),C=a.useMemo(()=>Object.assign({},p),[p]);delete C.labelCol,delete C.wrapperCol;const b=a.createElement("div",{className:`${g}-control-input`},a.createElement("div",{className:`${g}-control-input-content`},o)),y=a.useMemo(()=>({prefixCls:t,status:r}),[t,r]),S=f!==null||i.length||l.length?a.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},a.createElement(mm.Provider,{value:y},a.createElement(r6,{fieldId:d,errors:i,warnings:l,help:u,helpStatus:r,className:`${g}-explain-connected`,onVisibleChanged:m})),!!f&&a.createElement("div",{style:{width:0,height:f}})):null,x={};d&&(x.id=`${d}_extra`);const $=c?a.createElement("div",Object.assign({},x,{className:`${g}-extra`}),c):null,w=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:b,errorList:S,extra:$}):a.createElement(a.Fragment,null,b,S,$);return a.createElement(wo.Provider,{value:C},a.createElement(Cc,Object.assign({},h,{className:v}),w),a.createElement(az,{prefixCls:t}))},lz=iz;var sz={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"};const cz=sz;var uz=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:cz}))},dz=a.forwardRef(uz);const fz=dz;var mz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:r,htmlFor:n,labelCol:o,labelAlign:i,colon:l,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[m]=Dn("Form"),{labelAlign:g,labelCol:p,labelWrap:h,colon:v}=a.useContext(wo);if(!r)return null;const C=o||p||{},b=i||g,y=`${t}-item-label`,S=G(y,b==="left"&&`${y}-left`,C.className,{[`${y}-wrap`]:!!h});let x=r;const $=l===!0||v!==!1&&l!==!1;$&&!d&&typeof r=="string"&&r.trim()&&(x=r.replace(/[:|:]\s*$/,""));const I=gz(u);if(I){const{icon:N=a.createElement(fz,null)}=I,L=mz(I,["icon"]),P=a.createElement(er,Object.assign({},L),a.cloneElement(N,{className:`${t}-item-tooltip`,title:"",onClick:T=>{T.preventDefault()},tabIndex:null}));x=a.createElement(a.Fragment,null,x,P)}const E=c==="optional",O=typeof c=="function";O?x=c(x,{required:!!s}):E&&!s&&(x=a.createElement(a.Fragment,null,x,a.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=Mr.Form)===null||f===void 0?void 0:f.optional))));const M=G({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:E||O,[`${t}-item-no-colon`]:!$});return a.createElement(Cc,Object.assign({},C,{className:S}),a.createElement("label",{htmlFor:n,className:M,title:typeof r=="string"?r:""},x))},pz=vz,hz={success:ya,warning:Zo,error:Mo,validating:Fr};function s6(e){let{children:t,errors:r,warnings:n,hasFeedback:o,validateStatus:i,prefixCls:l,meta:s,noStyle:c}=e;const u=`${l}-item`,{feedbackIcons:d}=a.useContext(wo),f=a6(r,n,s,null,!!o,i),{isFormItemInput:m,status:g,hasFeedback:p,feedbackIcon:h}=a.useContext(dn),v=a.useMemo(()=>{var C;let b;if(o){const S=o!==!0&&o.icons||d,x=f&&((C=S==null?void 0:S({status:f,errors:r,warnings:n}))===null||C===void 0?void 0:C[f]),$=f&&hz[f];b=x!==!1&&$?a.createElement("span",{className:G(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},x||a.createElement($,null)):null}const y={status:f||"",errors:r,warnings:n,hasFeedback:!!o,feedbackIcon:b,isFormItemInput:!0};return c&&(y.status=(f!=null?f:g)||"",y.isFormItemInput=m,y.hasFeedback=!!(o!=null?o:p),y.feedbackIcon=o!==void 0?y.feedbackIcon:h),y},[f,o,c,m,g]);return a.createElement(dn.Provider,{value:v},t)}var Cz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{if(M&&w.current){const k=getComputedStyle(w.current);P(parseInt(k.marginBottom,10))}},[M,N]);const T=k=>{k||P(null)},R=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const H=k?I:u.errors,j=k?E:u.warnings;return a6(H,j,u,"",!!d,c)}(),D=G(y,r,n,{[`${y}-with-help`]:O||I.length||E.length,[`${y}-has-feedback`]:R&&d,[`${y}-has-success`]:R==="success",[`${y}-has-warning`]:R==="warning",[`${y}-has-error`]:R==="error",[`${y}-is-validating`]:R==="validating",[`${y}-hidden`]:f,[`${y}-${C}`]:C});return a.createElement("div",{className:D,style:o,ref:w},a.createElement(qf,Object.assign({className:`${y}-row`},Xt(b,["_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"])),a.createElement(pz,Object.assign({htmlFor:g},e,{requiredMark:S,required:p!=null?p:h,prefixCls:t,vertical:$})),a.createElement(lz,Object.assign({},e,u,{errors:I,warnings:E,prefixCls:t,status:R,help:i,marginBottom:L,onErrorVisibleChanged:T}),a.createElement(z5.Provider,{value:v},a.createElement(s6,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:R},m)))),!!L&&a.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-L}}))}const yz="__SPLIT__";function Sz(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>{const i=e[o],l=t[o];return i===l||typeof i=="function"||typeof l=="function"})}const xz=a.memo(e=>{let{children:t}=e;return t},(e,t)=>Sz(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function Fp(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $z(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:i,shouldUpdate:l,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:g,hidden:p,help:h,layout:v}=e,{getPrefixCls:C}=a.useContext(ke),{name:b}=a.useContext(wo),y=ez(c),S=typeof y=="function",x=a.useContext(z5),{validateTrigger:$}=a.useContext(ma),w=g!==void 0?g:$,I=t!=null,E=C("form",i),O=Ut(E),[M,N,L]=d0(E,O);Yo();const P=a.useContext(sl),T=a.useRef(),[_,R]=nz({}),[D,k]=Fs(()=>Fp()),H=X=>{const Q=P==null?void 0:P.getKey(X.name);if(k(X.destroy?Fp():X,!0),r&&h!==!1&&x){let ee=X.name;if(X.destroy)ee=T.current||ee;else if(Q!==void 0){const[te,U]=Q;ee=[te].concat(ye(U)),T.current=ee}x(X,ee)}},j=(X,Q)=>{R(ee=>{const te=Object.assign({},ee),ne=[].concat(ye(X.name.slice(0,-1)),ye(Q)).join(yz);return X.destroy?delete te[ne]:te[ne]=X,te})},[V,A]=a.useMemo(()=>{const X=ye(D.errors),Q=ye(D.warnings);return Object.values(_).forEach(ee=>{X.push.apply(X,ye(ee.errors||[])),Q.push.apply(Q,ye(ee.warnings||[]))}),[X,Q]},[_,D.errors,D.warnings]),K=rz();function W(X,Q,ee){return r&&!p?a.createElement(s6,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:V,warnings:A,noStyle:!0},X):a.createElement(bz,Object.assign({key:"row"},e,{className:G(n,L,O,N),prefixCls:E,fieldId:Q,isRequired:ee,errors:V,warnings:A,meta:D,onSubItemMetaChange:j,layout:v}),X)}if(!I&&!S&&!o)return M(W(y));let J={};return typeof d=="string"?J.label=d:t&&(J.label=String(t)),f&&(J=Object.assign(Object.assign({},J),f)),M(a.createElement(dm,Object.assign({},e,{messageVariables:J,trigger:m,validateTrigger:w,onMetaChange:H}),(X,Q,ee)=>{const te=ol(t).length&&Q?Q.name:[],U=o6(te,b),ne=u!==void 0?u:!!(s!=null&&s.some(oe=>{if(oe&&typeof oe=="object"&&oe.required&&!oe.warningOnly)return!0;if(typeof oe=="function"){const se=oe(ee);return(se==null?void 0:se.required)&&!(se!=null&&se.warningOnly)}return!1})),Z=Object.assign({},X);let Y=null;if(Array.isArray(y)&&I)Y=y;else if(!(S&&(!(l||o)||I))){if(!(o&&!S&&!I))if(a.isValidElement(y)){const oe=Object.assign(Object.assign({},y.props),Z);if(oe.id||(oe.id=U),h||V.length>0||A.length>0||e.extra){const re=[];(h||V.length>0)&&re.push(`${U}_help`),e.extra&&re.push(`${U}_extra`),oe["aria-describedby"]=re.join(" ")}V.length>0&&(oe["aria-invalid"]="true"),ne&&(oe["aria-required"]="true"),xo(y)&&(oe.ref=K(te,y)),new Set([].concat(ye(ol(m)),ye(ol(w)))).forEach(re=>{oe[re]=function(){for(var ce,ue,fe,be,de,he=arguments.length,Se=new Array(he),$e=0;$e{var{prefixCls:t,children:r}=e,n=Ez(e,["prefixCls","children"]);const{getPrefixCls:o}=a.useContext(ke),i=o("form",t),l=a.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return a.createElement(k5,Object.assign({},n),(s,c,u)=>a.createElement(mm.Provider,{value:l},r(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))},Oz=Iz;function Mz(){const{form:e}=a.useContext(wo);return e}const Qn=JB;Qn.Item=wz;Qn.List=Oz;Qn.ErrorList=r6;Qn.useForm=i6;Qn.useFormInstance=Mz;Qn.useWatch=B5;Qn.Provider=F5;Qn.create=()=>{};function u6(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function z1(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function no(e,t,r,n){var o=W0.unstable_batchedUpdates?function(l){W0.unstable_batchedUpdates(r,l)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,o,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,n)}}}var Yl=a.createContext(null),Nz=function(t){var r=t.visible,n=t.maskTransitionName,o=t.getContainer,i=t.prefixCls,l=t.rootClassName,s=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,g=t.count,p=t.scale,h=t.minScale,v=t.maxScale,C=t.closeIcon,b=t.onSwitchLeft,y=t.onSwitchRight,S=t.onClose,x=t.onZoomIn,$=t.onZoomOut,w=t.onRotateRight,I=t.onRotateLeft,E=t.onFlipX,O=t.onFlipY,M=t.onReset,N=t.toolbarRender,L=t.zIndex,P=t.image,T=a.useContext(Yl),_=s.rotateLeft,R=s.rotateRight,D=s.zoomIn,k=s.zoomOut,H=s.close,j=s.left,V=s.right,A=s.flipX,K=s.flipY,W="".concat(i,"-operations-operation");a.useEffect(function(){var ee=function(U){U.keyCode===we.ESC&&S()};return r&&window.addEventListener("keydown",ee),function(){window.removeEventListener("keydown",ee)}},[r]);var J=[{icon:K,onClick:O,type:"flipY"},{icon:A,onClick:E,type:"flipX"},{icon:_,onClick:I,type:"rotateLeft"},{icon:R,onClick:w,type:"rotateRight"},{icon:k,onClick:$,type:"zoomOut",disabled:p<=h},{icon:D,onClick:x,type:"zoomIn",disabled:p===v}],X=J.map(function(ee){var te,U=ee.icon,ne=ee.onClick,Z=ee.type,Y=ee.disabled;return a.createElement("div",{className:G(W,(te={},F(te,"".concat(i,"-operations-operation-").concat(Z),!0),F(te,"".concat(i,"-operations-operation-disabled"),!!Y),te)),onClick:ne,key:Z},U)}),Q=a.createElement("div",{className:"".concat(i,"-operations")},X);return a.createElement(In,{visible:r,motionName:n},function(ee){var te=ee.className,U=ee.style;return a.createElement(xa,{open:!0,getContainer:o!=null?o:document.body},a.createElement("div",{className:G("".concat(i,"-operations-wrapper"),te,l),style:q(q({},U),{},{zIndex:L})},C===null?null:a.createElement("button",{className:"".concat(i,"-close"),onClick:S},C||H),u&&a.createElement(a.Fragment,null,a.createElement("div",{className:G("".concat(i,"-switch-left"),F({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:b},j),a.createElement("div",{className:G("".concat(i,"-switch-right"),F({},"".concat(i,"-switch-right-disabled"),f===g-1)),onClick:y},V)),a.createElement("div",{className:"".concat(i,"-footer")},d&&a.createElement("div",{className:"".concat(i,"-progress")},c?c(f+1,g):"".concat(f+1," / ").concat(g)),N?N(Q,q(q({icons:{flipYIcon:X[0],flipXIcon:X[1],rotateLeftIcon:X[2],rotateRightIcon:X[3],zoomOutIcon:X[4],zoomInIcon:X[5]},actions:{onFlipY:O,onFlipX:E,onRotateLeft:I,onRotateRight:w,onZoomOut:$,onZoomIn:x,onReset:M,onClose:S},transform:m},T?{current:f,total:g}:{}),{},{image:P})):Q)))})},Ss={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Pz(e,t,r,n){var o=a.useRef(null),i=a.useRef([]),l=a.useState(Ss),s=ie(l,2),c=s[0],u=s[1],d=function(p){u(Ss),Br(Ss,c)||n==null||n({transform:Ss,action:p})},f=function(p,h){o.current===null&&(i.current=[],o.current=kt(function(){u(function(v){var C=v;return i.current.forEach(function(b){C=q(q({},C),b)}),o.current=null,n==null||n({transform:C,action:h}),C})})),i.current.push(q(q({},c),p))},m=function(p,h,v,C,b){var y=e.current,S=y.width,x=y.height,$=y.offsetWidth,w=y.offsetHeight,I=y.offsetLeft,E=y.offsetTop,O=p,M=c.scale*p;M>r?(M=r,O=r/c.scale):Mn){if(t>0)return F({},e,i);if(t<0&&on)return F({},e,t<0?i:-i);return{}}function d6(e,t,r,n){var o=u6(),i=o.width,l=o.height,s=null;return e<=i&&t<=l?s={x:0,y:0}:(e>i||t>l)&&(s=q(q({},Ap("x",r,e,i)),Ap("y",n,t,l))),s}var Wa=1,Rz=1;function _z(e,t,r,n,o,i,l){var s=o.rotate,c=o.scale,u=o.x,d=o.y,f=a.useState(!1),m=ie(f,2),g=m[0],p=m[1],h=a.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(x){!t||x.button!==0||(x.preventDefault(),x.stopPropagation(),h.current={diffX:x.pageX-u,diffY:x.pageY-d,transformX:u,transformY:d},p(!0))},C=function(x){r&&g&&i({x:x.pageX-h.current.diffX,y:x.pageY-h.current.diffY},"move")},b=function(){if(r&&g){p(!1);var x=h.current,$=x.transformX,w=x.transformY,I=u!==$&&d!==w;if(!I)return;var E=e.current.offsetWidth*c,O=e.current.offsetHeight*c,M=e.current.getBoundingClientRect(),N=M.left,L=M.top,P=s%180!==0,T=d6(P?O:E,P?E:O,N,L);T&&i(q({},T),"dragRebound")}},y=function(x){if(!(!r||x.deltaY==0)){var $=Math.abs(x.deltaY/100),w=Math.min($,Rz),I=Wa+w*n;x.deltaY>0&&(I=Wa/I),l(I,"wheel",x.clientX,x.clientY)}};return a.useEffect(function(){var S,x,$,w;if(t){$=no(window,"mouseup",b,!1),w=no(window,"mousemove",C,!1);try{window.top!==window.self&&(S=no(window.top,"mouseup",b,!1),x=no(window.top,"mousemove",C,!1))}catch(I){}}return function(){var I,E,O,M;(I=$)===null||I===void 0||I.remove(),(E=w)===null||E===void 0||E.remove(),(O=S)===null||O===void 0||O.remove(),(M=x)===null||M===void 0||M.remove()}},[r,g,u,d,s,t]),{isMoving:g,onMouseDown:v,onMouseMove:C,onMouseUp:b,onWheel:y}}function Tz(e){return new Promise(function(t){var r=document.createElement("img");r.onerror=function(){return t(!1)},r.onload=function(){return t(!0)},r.src=e})}function f6(e){var t=e.src,r=e.isCustomPlaceholder,n=e.fallback,o=a.useState(r?"loading":"normal"),i=ie(o,2),l=i[0],s=i[1],c=a.useRef(!1),u=l==="error";a.useEffect(function(){var g=!0;return Tz(t).then(function(p){!p&&g&&s("error")}),function(){g=!1}},[t]),a.useEffect(function(){r&&!c.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},f=function(p){c.current=!1,l==="loading"&&p!==null&&p!==void 0&&p.complete&&(p.naturalWidth||p.naturalHeight)&&(c.current=!0,d())},m=u&&n?{src:n}:{onLoad:d,src:t};return[f,m,l]}function rc(e,t){var r=e.x-t.x,n=e.y-t.y;return Math.hypot(r,n)}function Lz(e,t,r,n){var o=rc(e,r),i=rc(t,n);if(o===0&&i===0)return[e.x,e.y];var l=o/(o+i),s=e.x+l*(t.x-e.x),c=e.y+l*(t.y-e.y);return[s,c]}function Dz(e,t,r,n,o,i,l){var s=o.rotate,c=o.scale,u=o.x,d=o.y,f=a.useState(!1),m=ie(f,2),g=m[0],p=m[1],h=a.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(x){h.current=q(q({},h.current),x)},C=function(x){if(t){x.stopPropagation(),p(!0);var $=x.touches,w=$===void 0?[]:$;w.length>1?v({point1:{x:w[0].clientX,y:w[0].clientY},point2:{x:w[1].clientX,y:w[1].clientY},eventType:"touchZoom"}):v({point1:{x:w[0].clientX-u,y:w[0].clientY-d},eventType:"move"})}},b=function(x){var $=x.touches,w=$===void 0?[]:$,I=h.current,E=I.point1,O=I.point2,M=I.eventType;if(w.length>1&&M==="touchZoom"){var N={x:w[0].clientX,y:w[0].clientY},L={x:w[1].clientX,y:w[1].clientY},P=Lz(E,O,N,L),T=ie(P,2),_=T[0],R=T[1],D=rc(N,L)/rc(E,O);l(D,"touchZoom",_,R,!0),v({point1:N,point2:L,eventType:"touchZoom"})}else M==="move"&&(i({x:w[0].clientX-E.x,y:w[0].clientY-E.y},"move"),v({eventType:"move"}))},y=function(){if(r){if(g&&p(!1),v({eventType:"none"}),n>c)return i({x:0,y:0,scale:n},"touchZoom");var x=e.current.offsetWidth*c,$=e.current.offsetHeight*c,w=e.current.getBoundingClientRect(),I=w.left,E=w.top,O=s%180!==0,M=d6(O?$:x,O?x:$,I,E);M&&i(q({},M),"dragRebound")}};return a.useEffect(function(){var S;return r&&t&&(S=no(window,"touchmove",function(x){return x.preventDefault()},{passive:!1})),function(){var x;(x=S)===null||x===void 0||x.remove()}},[r,t]),{isTouching:g,onTouchStart:C,onTouchMove:b,onTouchEnd:y}}var kz=["fallback","src","imgRef"],Hz=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],jz=function(t){var r=t.fallback,n=t.src,o=t.imgRef,i=ut(t,kz),l=f6({src:n,fallback:r}),s=ie(l,2),c=s[0],u=s[1];return B.createElement("img",ve({ref:function(f){o.current=f,c(f)}},i,u))},m6=function(t){var r=t.prefixCls,n=t.src,o=t.alt,i=t.imageInfo,l=t.fallback,s=t.movable,c=s===void 0?!0:s,u=t.onClose,d=t.visible,f=t.icons,m=f===void 0?{}:f,g=t.rootClassName,p=t.closeIcon,h=t.getContainer,v=t.current,C=v===void 0?0:v,b=t.count,y=b===void 0?1:b,S=t.countRender,x=t.scaleStep,$=x===void 0?.5:x,w=t.minScale,I=w===void 0?1:w,E=t.maxScale,O=E===void 0?50:E,M=t.transitionName,N=M===void 0?"zoom":M,L=t.maskTransitionName,P=L===void 0?"fade":L,T=t.imageRender,_=t.imgCommonProps,R=t.toolbarRender,D=t.onTransform,k=t.onChange,H=ut(t,Hz),j=a.useRef(),V=a.useContext(Yl),A=V&&y>1,K=V&&y>=1,W=a.useState(!0),J=ie(W,2),X=J[0],Q=J[1],ee=Pz(j,I,O,D),te=ee.transform,U=ee.resetTransform,ne=ee.updateTransform,Z=ee.dispatchZoomChange,Y=_z(j,c,d,$,te,ne,Z),oe=Y.isMoving,se=Y.onMouseDown,ae=Y.onWheel,re=Dz(j,c,d,I,te,ne,Z),ce=re.isTouching,ue=re.onTouchStart,fe=re.onTouchMove,be=re.onTouchEnd,de=te.rotate,he=te.scale,Se=G(F({},"".concat(r,"-moving"),oe));a.useEffect(function(){X||Q(!0)},[X]);var $e=function(){U("close")},Ne=function(){Z(Wa+$,"zoomIn")},xe=function(){Z(Wa/(Wa+$),"zoomOut")},Pe=function(){ne({rotate:de+90},"rotateRight")},Ie=function(){ne({rotate:de-90},"rotateLeft")},_e=function(){ne({flipX:!te.flipX},"flipX")},Re=function(){ne({flipY:!te.flipY},"flipY")},Me=function(){U("reset")},me=function(Ze){Ze==null||Ze.preventDefault(),Ze==null||Ze.stopPropagation(),C>0&&(Q(!1),U("prev"),k==null||k(C-1,C))},Ce=function(Ze){Ze==null||Ze.preventDefault(),Ze==null||Ze.stopPropagation(),C({position:e||"absolute",inset:0}),pF=e=>{const{iconCls:t,motionDurationSlow:r,paddingXXS:n,marginXXS:o,prefixCls:i,colorTextLightSolid:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:l,background:new Qt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Rn),{padding:`0 ${z(n)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},hF=e=>{const{previewCls:t,modalMaskBg:r,paddingSM:n,marginXL:o,margin:i,paddingLG:l,previewOperationColorDisabled:s,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new Qt(r).setAlpha(.1),g=m.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:n,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${z(l)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:n,padding:n,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},CF=e=>{const{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:n,previewCls:o,zIndexPopup:i,motionDurationSlow:l}=e,s=new Qt(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:n,background:"transparent",cursor:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},bF=e=>{const{motionEaseOut:t,previewCls:r,motionDurationSlow:n,componentCls:o}=e;return[{[`${o}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:Object.assign(Object.assign({},A1()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${n} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},A1()),{transition:`transform ${n} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[hF(e),CF(e)]}]},yF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},pF(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},A1())}}},SF=e=>{const{previewCls:t}=e;return{[`${t}-root`]:yi(e,"zoom"),"&":Rc(e,!0)}},xF=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Qt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Qt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Qt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),g6=Ot("Image",e=>{const t=`${e.componentCls}-preview`,r=xt(e,{previewCls:t,modalMaskBg:new Qt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[yF(r),bF(r),X5(xt(r,{componentCls:t})),SF(r)]},xF);var $F=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{previewPrefixCls:t,preview:r}=e,n=$F(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=a.useContext(ke),i=o("image",t),l=`${i}-preview`,s=o(),c=Ut(i),[u,d,f]=g6(i,c),[m]=lr("ImagePreview",typeof r=="object"?r.zIndex:void 0),g=a.useMemo(()=>{var p;if(r===!1)return r;const h=typeof r=="object"?r:{},v=G(d,f,c,(p=h.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},h),{transitionName:jn(s,"zoom",h.transitionName),maskTransitionName:jn(s,"fade",h.maskTransitionName),rootClassName:v,zIndex:m})},[r]);return u(a.createElement(f0.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:v6},n)))},EF=wF;var Kp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:r,preview:n,className:o,rootClassName:i,style:l}=e,s=Kp(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Mr,getPopupContainer:d,image:f}=a.useContext(ke),m=c("image",r),g=c(),p=u.Image||Mr.Image,h=Ut(m),[v,C,b]=g6(m,h),y=G(i,C,b,h),S=G(o,C,f==null?void 0:f.className),[x]=lr("ImagePreview",typeof n=="object"?n.zIndex:void 0),$=a.useMemo(()=>{var I;if(n===!1)return n;const E=typeof n=="object"?n:{},{getContainer:O,closeIcon:M}=E,N=Kp(E,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:a.createElement("div",{className:`${m}-mask-info`},a.createElement(i0,null),p==null?void 0:p.preview),icons:v6},N),{getContainer:O!=null?O:d,transitionName:jn(g,"zoom",E.transitionName),maskTransitionName:jn(g,"fade",E.maskTransitionName),zIndex:x,closeIcon:M!=null?M:(I=f==null?void 0:f.preview)===null||I===void 0?void 0:I.closeIcon})},[n,p,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),w=Object.assign(Object.assign({},f==null?void 0:f.style),l);return v(a.createElement(f0,Object.assign({prefixCls:m,preview:$,rootClassName:y,className:S,style:w},s)))};m0.PreviewGroup=EF;function IF(e,t,r){return typeof r=="boolean"?r:e.length?!0:sn(t).some(o=>o.type===iC)}const OF=e=>{const{componentCls:t,bodyBg:r,lightSiderBg:n,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${r}`,borderInlineStart:0}}}},MF=e=>{const{antCls:t,componentCls:r,colorText:n,triggerColor:o,footerBg:i,triggerBg:l,headerHeight:s,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:m,zeroTriggerWidth:g,motionDurationMid:p,motionDurationSlow:h,fontSize:v,borderRadius:C,bodyBg:b,headerBg:y,siderBg:S}=e;return{[r]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},[`${r}-sider`]:{position:"relative",minWidth:0,background:S,transition:`all ${p}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:z(f),textAlign:"center",background:l,cursor:"pointer",transition:`all ${p}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:m,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:S,borderStartStartRadius:0,borderStartEndRadius:C,borderEndEndRadius:C,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:C,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:C}}}}},OF(e)),{"&-rtl":{direction:"rtl"}}),[`${r}-header`]:{height:s,padding:c,color:u,lineHeight:z(s),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:d,color:n,fontSize:v,background:i},[`${r}-content`]:{flex:"auto",color:n,minHeight:0}}},NF=e=>{const{colorBgLayout:t,controlHeight:r,controlHeightLG:n,colorText:o,controlHeightSM:i,marginXXS:l,colorTextLightSolid:s,colorBgContainer:c}=e,u=n*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+l*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},p6=Ot("Layout",e=>[MF(e)],NF,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var h6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);oa.forwardRef((l,s)=>a.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:r},l)))}const g0=a.forwardRef((e,t)=>{const{prefixCls:r,suffixCls:n,className:o,tagName:i}=e,l=h6(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=a.useContext(ke),c=s("layout",r),[u,d,f]=p6(c),m=n?`${c}-${n}`:c;return u(a.createElement(i,Object.assign({className:G(r||m,o,d,f),ref:t},l)))}),PF=a.forwardRef((e,t)=>{const{direction:r}=a.useContext(ke),[n,o]=a.useState([]),{prefixCls:i,className:l,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,m=h6(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=Xt(m,["suffixCls"]),{getPrefixCls:p,layout:h}=a.useContext(ke),v=p("layout",i),C=IF(n,c,u),[b,y,S]=p6(v),x=G(v,{[`${v}-has-sider`]:C,[`${v}-rtl`]:r==="rtl"},h==null?void 0:h.className,l,s,y,S),$=a.useMemo(()=>({siderHook:{addSider:w=>{o(I=>[].concat(ye(I),[w]))},removeSider:w=>{o(I=>I.filter(E=>E!==w))}}}),[]);return b(a.createElement(aC.Provider,{value:$},a.createElement(d,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},h==null?void 0:h.style),f)},g),c)))}),RF=hu({tagName:"div",displayName:"Layout"})(PF),_F=hu({suffixCls:"header",tagName:"header",displayName:"Header"})(g0),TF=hu({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(g0),LF=hu({suffixCls:"content",tagName:"main",displayName:"Content"})(g0),Co=RF;Co.Header=_F;Co.Footer=TF;Co.Content=LF;Co.Sider=iC;Co._InternalSiderContext=Uc;const DF=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=r[n];o!==void 0&&(e[n]=o)})}return e},C6=DF;var kF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const HF=kF;var jF=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:HF}))},BF=a.forwardRef(jF);const qp=BF;var zF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const FF=zF;var AF=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:FF}))},VF=a.forwardRef(AF);const Gp=VF;var WF={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},KF=["10","20","50","100"],qF=function(t){var r=t.pageSizeOptions,n=r===void 0?KF:r,o=t.locale,i=t.changeSize,l=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,m=t.disabled,g=t.buildOptionText,p=B.useState(""),h=ie(p,2),v=h[0],C=h[1],b=function(){return!v||Number.isNaN(v)?void 0:Number(v)},y=typeof g=="function"?g:function(P){return"".concat(P," ").concat(o.items_per_page)},S=function(T){i==null||i(Number(T))},x=function(T){C(T.target.value)},$=function(T){s||v===""||(C(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(b())))},w=function(T){v!==""&&(T.keyCode===we.ENTER||T.type==="click")&&(C(""),c==null||c(b()))},I=function(){return n.some(function(T){return T.toString()===l.toString()})?n:n.concat([l.toString()]).sort(function(T,_){var R=Number.isNaN(Number(T))?0:Number(T),D=Number.isNaN(Number(_))?0:Number(_);return R-D})},E="".concat(u,"-options");if(!i&&!c)return null;var O=null,M=null,N=null;if(i&&d){var L=I().map(function(P,T){return B.createElement(d.Option,{key:T,value:P.toString()},y(P))});O=B.createElement(d,{disabled:m,prefixCls:f,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(l||n[0]).toString(),onChange:S,getPopupContainer:function(T){return T.parentNode},"aria-label":o.page_size,defaultOpen:!1},L)}return c&&(s&&(N=typeof s=="boolean"?B.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:m,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):B.createElement("span",{onClick:w,onKeyUp:w},s)),M=B.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,B.createElement("input",{disabled:m,type:"text",value:v,onChange:x,onKeyUp:w,onBlur:$,"aria-label":o.page}),o.page,N)),B.createElement("li",{className:E},O,M)},Ai=function(t){var r,n=t.rootPrefixCls,o=t.page,i=t.active,l=t.className,s=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(n,"-item"),m=G(f,"".concat(f,"-").concat(o),(r={},F(r,"".concat(f,"-active"),i),F(r,"".concat(f,"-disabled"),!o),r),l),g=function(){c(o)},p=function(C){u(C,c,o)},h=d(o,"page",B.createElement("a",{rel:"nofollow"},o));return h?B.createElement("li",{title:s?String(o):null,className:m,onClick:g,onKeyDown:p,tabIndex:0},h):null},GF=function(t,r,n){return n};function Xp(){}function Up(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ra(e,t,r){var n=typeof e=="undefined"?t:e;return Math.floor((r-1)/n)+1}var XF=function(t){var r,n=t.prefixCls,o=n===void 0?"rc-pagination":n,i=t.selectPrefixCls,l=i===void 0?"rc-select":i,s=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,g=m===void 0?0:m,p=t.pageSize,h=t.defaultPageSize,v=h===void 0?10:h,C=t.onChange,b=C===void 0?Xp:C,y=t.hideOnSinglePage,S=t.align,x=t.showPrevNextJumpers,$=x===void 0?!0:x,w=t.showQuickJumper,I=t.showLessItems,E=t.showTitle,O=E===void 0?!0:E,M=t.onShowSizeChange,N=M===void 0?Xp:M,L=t.locale,P=L===void 0?WF:L,T=t.style,_=t.totalBoundaryShowSizeChanger,R=_===void 0?50:_,D=t.disabled,k=t.simple,H=t.showTotal,j=t.showSizeChanger,V=t.pageSizeOptions,A=t.itemRender,K=A===void 0?GF:A,W=t.jumpPrevIcon,J=t.jumpNextIcon,X=t.prevIcon,Q=t.nextIcon,ee=B.useRef(null),te=It(10,{value:p,defaultValue:v}),U=ie(te,2),ne=U[0],Z=U[1],Y=It(1,{value:u,defaultValue:f,postState:function(St){return Math.max(1,Math.min(St,ra(void 0,ne,g)))}}),oe=ie(Y,2),se=oe[0],ae=oe[1],re=B.useState(se),ce=ie(re,2),ue=ce[0],fe=ce[1];a.useEffect(function(){fe(se)},[se]);var be=Math.max(1,se-(I?3:5)),de=Math.min(ra(void 0,ne,g),se+(I?3:5));function he(pt,St){var Et=pt||B.createElement("button",{type:"button","aria-label":St,className:"".concat(o,"-item-link")});return typeof pt=="function"&&(Et=B.createElement(pt,q({},t))),Et}function Se(pt){var St=pt.target.value,Et=ra(void 0,ne,g),rn;return St===""?rn=St:Number.isNaN(Number(St))?rn=ue:St>=Et?rn=Et:rn=Number(St),rn}function $e(pt){return Up(pt)&&pt!==se&&Up(g)&&g>0}var Ne=g>ne?w:!1;function xe(pt){(pt.keyCode===we.UP||pt.keyCode===we.DOWN)&&pt.preventDefault()}function Pe(pt){var St=Se(pt);switch(St!==ue&&fe(St),pt.keyCode){case we.ENTER:Re(St);break;case we.UP:Re(St-1);break;case we.DOWN:Re(St+1);break}}function Ie(pt){Re(Se(pt))}function _e(pt){var St=ra(pt,ne,g),Et=se>St&&St!==0?St:se;Z(pt),fe(Et),N==null||N(se,pt),ae(Et),b==null||b(Et,pt)}function Re(pt){if($e(pt)&&!D){var St=ra(void 0,ne,g),Et=pt;return pt>St?Et=St:pt<1&&(Et=1),Et!==ue&&fe(Et),ae(Et),b==null||b(Et,ne),Et}return se}var Me=se>1,me=seR;function pe(){Me&&Re(se-1)}function ge(){me&&Re(se+1)}function Oe(){Re(be)}function nt(){Re(de)}function Ve(pt,St){if(pt.key==="Enter"||pt.charCode===we.ENTER||pt.keyCode===we.ENTER){for(var Et=arguments.length,rn=new Array(Et>2?Et-2:0),mn=2;mng?g:se*ne])),Ue=null,De=ra(void 0,ne,g);if(y&&g<=ne)return null;var ze=[],Je={rootPrefixCls:o,onClick:Re,onKeyPress:Ve,showTitle:O,itemRender:K,page:-1},dt=se-1>0?se-1:0,it=se+1=tt*2&&se!==3&&(ze[0]=B.cloneElement(ze[0],{className:G("".concat(o,"-item-after-jump-prev"),ze[0].props.className)}),ze.unshift(je)),De-se>=tt*2&&se!==De-2){var st=ze[ze.length-1];ze[ze.length-1]=B.cloneElement(st,{className:G("".concat(o,"-item-before-jump-next"),st.props.className)}),ze.push(Ue)}rt!==1&&ze.unshift(B.createElement(Ai,ve({},Je,{key:1,page:1}))),Ae!==De&&ze.push(B.createElement(Ai,ve({},Je,{key:De,page:De})))}var bt=ot(dt);if(bt){var Nt=!Me||!De;bt=B.createElement("li",{title:O?P.prev_page:null,onClick:pe,tabIndex:Nt?null:0,onKeyDown:Ze,className:G("".concat(o,"-prev"),F({},"".concat(o,"-disabled"),Nt)),"aria-disabled":Nt},bt)}var Vt=Xe(it);if(Vt){var Kt,qt;k?(Kt=!me,qt=Me?0:null):(Kt=!me||!De,qt=Kt?null:0),Vt=B.createElement("li",{title:O?P.next_page:null,onClick:ge,tabIndex:qt,onKeyDown:Le,className:G("".concat(o,"-next"),F({},"".concat(o,"-disabled"),Kt)),"aria-disabled":Kt},Vt)}var Gt=G(o,s,(r={},F(r,"".concat(o,"-start"),S==="start"),F(r,"".concat(o,"-center"),S==="center"),F(r,"".concat(o,"-end"),S==="end"),F(r,"".concat(o,"-simple"),k),F(r,"".concat(o,"-disabled"),D),r));return B.createElement("ul",ve({className:Gt,style:T,ref:ee},at),Te,bt,k?Ye:ze,Vt,B.createElement(qF,{locale:P,rootPrefixCls:o,disabled:D,selectComponentClass:c,selectPrefixCls:l,changeSize:Ce?_e:null,pageSize:ne,pageSizeOptions:V,quickGo:Ne?Re:null,goButton:Ge}))};const b6=e=>a.createElement(Bn,Object.assign({},e,{showSearch:!0,size:"small"})),y6=e=>a.createElement(Bn,Object.assign({},e,{showSearch:!0,size:"middle"}));b6.Option=Bn.Option;y6.Option=Bn.Option;const UF=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},YF=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:z(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:z(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:z(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
+ &${t}-mini ${t}-prev ${t}-item-link,
+ &${t}-mini ${t}-next ${t}-item-link
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:z(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:z(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:z(e.itemSizeSM),input:Object.assign(Object.assign({},Gm(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ZF=e=>{const{componentCls:t}=e;return{[`
+ &${t}-simple ${t}-prev,
+ &${t}-simple ${t}-next
+ `]:{height:e.itemSizeSM,lineHeight:z(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:z(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${z(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${z(e.inputOutlineOffset)} 0 ${z(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},QF=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
+ ${t}-prev,
+ ${t}-jump-prev,
+ ${t}-jump-next
+ `]:{marginInlineEnd:e.marginXS},[`
+ ${t}-prev,
+ ${t}-next,
+ ${t}-jump-prev,
+ ${t}-jump-next
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:z(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:z(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},pa(e)),qm(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Wl(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},JF=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:z(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${z(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},eA=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:z(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),JF(e)),QF(e)),ZF(e)),YF(e)),UF(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},tA=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Nr(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ao(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ao(e))}}}},S6=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ii(e)),x6=e=>xt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ei(e)),nA=Ot("Pagination",e=>{const t=x6(e);return[eA(t),tA(t)]},S6),rA=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},oA=ba(["Pagination","bordered"],e=>{const t=x6(e);return[rA(t)]},S6);var aA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{align:t,prefixCls:r,selectPrefixCls:n,className:o,rootClassName:i,style:l,size:s,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,m=aA(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=Si(d),[,p]=An(),{getPrefixCls:h,direction:v,pagination:C={}}=a.useContext(ke),b=h("pagination",r),[y,S,x]=nA(b),$=f!=null?f:C.showSizeChanger,w=a.useMemo(()=>{const T=a.createElement("span",{className:`${b}-item-ellipsis`},"•••"),_=a.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},v==="rtl"?a.createElement(lo,null):a.createElement(Vo,null)),R=a.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},v==="rtl"?a.createElement(Vo,null):a.createElement(lo,null)),D=a.createElement("a",{className:`${b}-item-link`},a.createElement("div",{className:`${b}-item-container`},v==="rtl"?a.createElement(Gp,{className:`${b}-item-link-icon`}):a.createElement(qp,{className:`${b}-item-link-icon`}),T)),k=a.createElement("a",{className:`${b}-item-link`},a.createElement("div",{className:`${b}-item-container`},v==="rtl"?a.createElement(qp,{className:`${b}-item-link-icon`}):a.createElement(Gp,{className:`${b}-item-link-icon`}),T));return{prevIcon:_,nextIcon:R,jumpPrevIcon:D,jumpNextIcon:k}},[v,b]),[I]=Dn("Pagination",d8),E=Object.assign(Object.assign({},I),c),O=un(s),M=O==="small"||!!(g&&!O&&d),N=h("select",n),L=G({[`${b}-${t}`]:!!t,[`${b}-mini`]:M,[`${b}-rtl`]:v==="rtl",[`${b}-bordered`]:p.wireframe},C==null?void 0:C.className,o,i,S,x),P=Object.assign(Object.assign({},C==null?void 0:C.style),l);return y(a.createElement(a.Fragment,null,p.wireframe&&a.createElement(oA,{prefixCls:b}),a.createElement(XF,Object.assign({},w,m,{style:P,prefixCls:b,selectPrefixCls:N,className:L,selectComponentClass:u||(M?b6:y6),locale:E,showSizeChanger:$}))))},Cu=iA,oc=100,$6=oc/5,w6=oc/2-$6/2,$d=w6*2*Math.PI,Yp=50,Zp=e=>{const{dotClassName:t,style:r,hasCircleCls:n}=e;return a.createElement("circle",{className:G(`${t}-circle`,{[`${t}-circle-bg`]:n}),r:w6,cx:Yp,cy:Yp,strokeWidth:$6,style:r})},lA=e=>{let{percent:t,prefixCls:r}=e;const n=`${r}-dot`,o=`${n}-holder`,i=`${o}-hidden`,[l,s]=a.useState(!1);Dt(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!l)return null;const u={strokeDashoffset:`${$d/4}`,strokeDasharray:`${$d*c/100} ${$d*(100-c)/100}`};return a.createElement("span",{className:G(o,`${n}-progress`,c<=0&&i)},a.createElement("svg",{viewBox:`0 0 ${oc} ${oc}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},a.createElement(Zp,{dotClassName:n,hasCircleCls:!0}),a.createElement(Zp,{dotClassName:n,style:u})))},sA=lA;function cA(e){const{prefixCls:t,percent:r=0}=e,n=`${t}-dot`,o=`${n}-holder`,i=`${o}-hidden`;return a.createElement(a.Fragment,null,a.createElement("span",{className:G(o,r>0&&i)},a.createElement("span",{className:G(n,`${t}-dot-spin`)},[1,2,3,4].map(l=>a.createElement("i",{className:`${t}-dot-item`,key:l})))),a.createElement(sA,{prefixCls:t,percent:r}))}function uA(e){const{prefixCls:t,indicator:r,percent:n}=e,o=`${t}-dot`;return r&&a.isValidElement(r)?cn(r,{className:G(r.props.className,o),percent:n}):a.createElement(cA,{prefixCls:t,percent:n})}const dA=new jt("antSpinMove",{to:{opacity:1}}),fA=new jt("antRotate",{to:{transform:"rotate(405deg)"}}),mA=e=>{const{componentCls:t,calc:r}=e;return{[t]:Object.assign(Object.assign({},Mt(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:r(r(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:r(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:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:dA,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:fA,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(n=>`${n} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},gA=e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},vA=Ot("Spin",e=>{const t=xt(e,{spinDotDefault:e.colorTextDescription});return[mA(t)]},gA),pA=200,Qp=[[30,.05],[70,.03],[96,.01]];function hA(e,t){const[r,n]=a.useState(0),o=a.useRef(),i=t==="auto";return a.useEffect(()=>(i&&e&&(n(0),o.current=setInterval(()=>{n(l=>{const s=100-l;for(let c=0;c{clearInterval(o.current)}),[i,e]),i?r:t}var CA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:r,spinning:n=!0,delay:o=0,className:i,rootClassName:l,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:g,percent:p}=e,h=CA(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:C,spin:b}=a.useContext(ke),y=v("spin",r),[S,x,$]=vA(y),[w,I]=a.useState(()=>n&&!bA(n,o)),E=hA(w,p);a.useEffect(()=>{if(n){const _=S4(o,()=>{I(!0)});return _(),()=>{var R;(R=_==null?void 0:_.cancel)===null||R===void 0||R.call(_)}}I(!1)},[o,n]);const O=a.useMemo(()=>typeof f!="undefined"&&!m,[f,m]),M=G(y,b==null?void 0:b.className,{[`${y}-sm`]:s==="small",[`${y}-lg`]:s==="large",[`${y}-spinning`]:w,[`${y}-show-text`]:!!c,[`${y}-rtl`]:C==="rtl"},i,!m&&l,x,$),N=G(`${y}-container`,{[`${y}-blur`]:w}),L=(t=g!=null?g:b==null?void 0:b.indicator)!==null&&t!==void 0?t:E6,P=Object.assign(Object.assign({},b==null?void 0:b.style),d),T=a.createElement("div",Object.assign({},h,{style:P,className:M,"aria-live":"polite","aria-busy":w}),a.createElement(uA,{prefixCls:y,indicator:L,percent:E}),c&&(O||m)?a.createElement("div",{className:`${y}-text`},c):null);return S(O?a.createElement("div",Object.assign({},h,{className:G(`${y}-nested-loading`,u,x,$)}),w&&a.createElement("div",{key:"loading"},T),a.createElement("div",{className:N,key:"container"},f)):m?a.createElement("div",{className:G(`${y}-fullscreen`,{[`${y}-fullscreen-show`]:w},l,x,$)},T):T)};Wo.setDefaultIndicator=e=>{E6=e};const v0=B.createContext({});v0.Consumer;var I6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:r,avatar:n,title:o,description:i}=e,l=I6(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=a.useContext(ke),c=s("list",t),u=G(`${c}-item-meta`,r),d=B.createElement("div",{className:`${c}-item-meta-content`},o&&B.createElement("h4",{className:`${c}-item-meta-title`},o),i&&B.createElement("div",{className:`${c}-item-meta-description`},i));return B.createElement("div",Object.assign({},l,{className:u}),n&&B.createElement("div",{className:`${c}-item-meta-avatar`},n),(o||i)&&d)},SA=B.forwardRef((e,t)=>{const{prefixCls:r,children:n,actions:o,extra:i,styles:l,className:s,classNames:c,colStyle:u}=e,d=I6(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:m}=a.useContext(v0),{getPrefixCls:g,list:p}=a.useContext(ke),h=w=>{var I,E;return G((E=(I=p==null?void 0:p.item)===null||I===void 0?void 0:I.classNames)===null||E===void 0?void 0:E[w],c==null?void 0:c[w])},v=w=>{var I,E;return Object.assign(Object.assign({},(E=(I=p==null?void 0:p.item)===null||I===void 0?void 0:I.styles)===null||E===void 0?void 0:E[w]),l==null?void 0:l[w])},C=()=>{let w=!1;return a.Children.forEach(n,I=>{typeof I=="string"&&(w=!0)}),w&&a.Children.count(n)>1},b=()=>m==="vertical"?!!i:!C(),y=g("list",r),S=o&&o.length>0&&B.createElement("ul",{className:G(`${y}-item-action`,h("actions")),key:"actions",style:v("actions")},o.map((w,I)=>B.createElement("li",{key:`${y}-item-action-${I}`},w,I!==o.length-1&&B.createElement("em",{className:`${y}-item-action-split`})))),x=f?"div":"li",$=B.createElement(x,Object.assign({},d,f?{}:{ref:t},{className:G(`${y}-item`,{[`${y}-item-no-flex`]:!b()},s)}),m==="vertical"&&i?[B.createElement("div",{className:`${y}-item-main`,key:"content"},n,S),B.createElement("div",{className:G(`${y}-item-extra`,h("extra")),key:"extra",style:v("extra")},i)]:[n,S,cn(i,{key:"extra"})]);return f?B.createElement(Cc,{ref:t,flex:1,style:u},$):$}),O6=SA;O6.Meta=yA;const xA=O6,$A=e=>{const{listBorderedCls:t,componentCls:r,paddingLG:n,margin:o,itemPaddingSM:i,itemPaddingLG:l,marginLG:s,borderRadiusLG:c}=e;return{[t]:{border:`${z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${r}-header,${r}-footer,${r}-item`]:{paddingInline:n},[`${r}-pagination`]:{margin:`${z(o)} ${z(s)}`}},[`${t}${r}-sm`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:i}},[`${t}${r}-lg`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:l}}}},wA=e=>{const{componentCls:t,screenSM:r,screenMD:n,marginLG:o,marginSM:i,margin:l}=e;return{[`@media screen and (max-width:${n}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${r}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${z(l)}`}}}}}},EA=e=>{const{componentCls:t,antCls:r,controlHeight:n,minHeight:o,paddingSM:i,marginLG:l,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:m,margin:g,colorText:p,colorTextDescription:h,motionDurationSlow:v,lineWidth:C,headerBg:b,footerBg:y,emptyTextPadding:S,metaMarginBottom:x,avatarMarginRight:$,titleMarginBottom:w,descriptionFontSize:I}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:l,[`${r}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:p,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:$},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:p},[`${t}-item-meta-title`]:{margin:`0 0 ${z(e.marginXXS)} 0`,color:p,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:p,transition:`all ${v}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:h,fontSize:I,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${z(m)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:C,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${z(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${r}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:w,color:p,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${z(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${r}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},IA=e=>({contentWidth:220,itemPadding:`${z(e.paddingContentVertical)} 0`,itemPaddingSM:`${z(e.paddingContentVerticalSM)} ${z(e.paddingContentHorizontal)}`,itemPaddingLG:`${z(e.paddingContentVerticalLG)} ${z(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),OA=Ot("List",e=>{const t=xt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[EA(t),$A(t),wA(t)]},IA);var MA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o(fe,be)=>{var de;w(fe),E(be),t&&((de=t==null?void 0:t[ue])===null||de===void 0||de.call(t,fe,be))},_=T("onChange"),R=T("onShowSizeChange"),D=(ue,fe)=>{if(!b)return null;let be;return typeof C=="function"?be=C(ue):C?be=ue[C]:be=ue.key,be||(be=`list-item-${fe}`),a.createElement(a.Fragment,{key:be},b(ue,fe))},k=()=>!!(d||t||h),H=O("list",r),[j,V,A]=OA(H);let K=v;typeof K=="boolean"&&(K={spinning:K});const W=!!(K!=null&&K.spinning),J=un(g);let X="";switch(J){case"large":X="lg";break;case"small":X="sm";break}const Q=G(H,{[`${H}-vertical`]:u==="vertical",[`${H}-${X}`]:X,[`${H}-split`]:o,[`${H}-bordered`]:n,[`${H}-loading`]:W,[`${H}-grid`]:!!f,[`${H}-something-after-last-item`]:k(),[`${H}-rtl`]:N==="rtl"},L==null?void 0:L.className,i,l,V,A),ee=C6(P,{total:m.length,current:$,pageSize:I},t||{}),te=Math.ceil(ee.total/ee.pageSize);ee.current>te&&(ee.current=te);const U=t&&a.createElement("div",{className:G(`${H}-pagination`)},a.createElement(Cu,Object.assign({align:"end"},ee,{onChange:_,onShowSizeChange:R})));let ne=ye(m);t&&m.length>(ee.current-1)*ee.pageSize&&(ne=ye(m).splice((ee.current-1)*ee.pageSize,ee.pageSize));const Z=Object.keys(f||{}).some(ue=>["xs","sm","md","lg","xl","xxl"].includes(ue)),Y=Si(Z),oe=a.useMemo(()=>{for(let ue=0;ue{if(!f)return;const ue=oe&&f[oe]?f[oe]:f.column;if(ue)return{width:`${100/ue}%`,maxWidth:`${100/ue}%`}},[JSON.stringify(f),oe]);let ae=W&&a.createElement("div",{style:{minHeight:53}});if(ne.length>0){const ue=ne.map((fe,be)=>D(fe,be));ae=f?a.createElement(qf,{gutter:f.gutter},a.Children.map(ue,fe=>a.createElement("div",{key:fe==null?void 0:fe.key,style:se},fe))):a.createElement("ul",{className:`${H}-items`},ue)}else!c&&!W&&(ae=a.createElement("div",{className:`${H}-empty-text`},(y==null?void 0:y.emptyText)||(M==null?void 0:M("List"))||a.createElement(Qo,{componentName:"List"})));const re=ee.position||"bottom",ce=a.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return j(a.createElement(v0.Provider,{value:ce},a.createElement("div",Object.assign({style:Object.assign(Object.assign({},L==null?void 0:L.style),s),className:Q},S),(re==="top"||re==="both")&&U,p&&a.createElement("div",{className:`${H}-header`},p),a.createElement(Wo,Object.assign({},K),ae,c),h&&a.createElement("div",{className:`${H}-footer`},h),d||(re==="bottom"||re==="both")&&U)))}p0.Item=xA;function NA(){var e=a.useState({id:0,callback:null}),t=ie(e,2),r=t[0],n=t[1],o=a.useCallback(function(i){n(function(l){var s=l.id;return{id:s+1,callback:i}})},[]);return a.useEffect(function(){var i;(i=r.callback)===null||i===void 0||i.call(r)},[r]),o}var M6=a.createContext(null);function PA(e){var t=a.useContext(M6),r=t.notFoundContent,n=t.activeIndex,o=t.setActiveIndex,i=t.selectOption,l=t.onFocus,s=t.onBlur,c=e.prefixCls,u=e.options,d=u[n]||{};return a.createElement(wa,{prefixCls:"".concat(c,"-menu"),activeKey:d.key,onSelect:function(m){var g=m.key,p=u.find(function(h){var v=h.key;return v===g});i(p)},onFocus:l,onBlur:s},u.map(function(f,m){var g=f.key,p=f.disabled,h=f.className,v=f.style,C=f.label;return a.createElement(ga,{key:g,disabled:p,className:h,style:v,onMouseEnter:function(){o(m)}},C)}),!u.length&&a.createElement(ga,{disabled:!0},r))}var RA={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},_A=function(t){var r=t.prefixCls,n=t.options,o=t.children,i=t.visible,l=t.transitionName,s=t.getPopupContainer,c=t.dropdownClassName,u=t.direction,d=t.placement,f="".concat(r,"-dropdown"),m=a.createElement(PA,{prefixCls:f,options:n}),g=a.useMemo(function(){var p;return u==="rtl"?p=d==="top"?"topLeft":"bottomLeft":p=d==="top"?"topRight":"bottomRight",p},[u,d]);return a.createElement($a,{prefixCls:f,popupVisible:i,popup:m,popupPlacement:g,popupTransitionName:l,builtinPlacements:RA,getPopupContainer:s,popupClassName:c},o)},TA=function(){return null};function LA(e){var t=e.selectionStart;return e.value.slice(0,t)}function DA(e,t){return t.reduce(function(r,n){var o=e.lastIndexOf(n);return o>r.location?{location:o,prefix:n}:r},{location:-1,prefix:""})}function Jp(e){return(e||"").toLowerCase()}function kA(e,t,r){var n=e[0];if(!n||n===r)return e;for(var o=e,i=t.length,l=0;l=0)return[!0,"",qe,Fe]}return[Q,ne,se,ue]},[h,Q,j,Re,ne,se,ue]),Ce=ie(me,4),pe=Ce[0],ge=Ce[1],Oe=Ce[2],nt=Ce[3],Ve=B.useCallback(function(it){var qe;return p&&p.length>0?qe=p.map(function(Fe){var Ge;return q(q({},Fe),{},{key:(Ge=Fe==null?void 0:Fe.key)!==null&&Ge!==void 0?Ge:Fe.value})}):qe=sn(g).map(function(Fe){var Ge=Fe.props,Ye=Fe.key;return q(q({},Ge),{},{label:Ge.children,key:Ye||Ge.value})}),qe.filter(function(Fe){return S===!1?!0:S(it,Fe)})},[g,p,S]),Ze=B.useMemo(function(){return Ve(ge)},[Ve,ge]),Le=NA(),Ke=function(qe,Fe,Ge){ee(!0),Z(qe),ae(Fe),fe(Ge),Se(0)},Qe=function(qe){ee(!1),fe(0),Z(""),Le(qe)},ot=function(qe){Me(qe),x==null||x(qe)},Xe=function(qe){var Fe=qe.target.value;ot(Fe)},We=function(qe){var Fe,Ge=qe.value,Ye=Ge===void 0?"":Ge,tt=HA(Re,{measureLocation:nt,targetText:Ye,prefix:Oe,selectionStart:(Fe=W())===null||Fe===void 0?void 0:Fe.selectionStart,split:c}),mt=tt.text,lt=tt.selectionLocation;ot(mt),Qe(function(){jA(W(),lt)}),O==null||O(qe,Oe)},je=function(qe){var Fe=qe.which;if($==null||$(qe),!!pe){if(Fe===we.UP||Fe===we.DOWN){var Ge=Ze.length,Ye=Fe===we.UP?-1:1,tt=(he+Ye+Ge)%Ge;Se(tt),qe.preventDefault()}else if(Fe===we.ESC)Qe();else if(Fe===we.ENTER){if(qe.preventDefault(),v)return;if(!Ze.length){Qe();return}var mt=Ze[he];We(mt)}}},at=function(qe){var Fe=qe.key,Ge=qe.which,Ye=qe.target,tt=LA(Ye),mt=DA(tt,j),lt=mt.location,ft=mt.prefix;if(w==null||w(qe),[we.ESC,we.UP,we.DOWN,we.ENTER].indexOf(Ge)===-1)if(lt!==-1){var gt=tt.slice(lt+ft.length),et=b(gt,c),rt=!!Ve(gt).length;et?(Fe===ft||Fe==="Shift"||pe||gt!==ge&&rt)&&Ke(gt,ft,lt):pe&&Qe(),E&&et&&E(gt,ft)}else pe&&Qe()},Te=function(qe){!pe&&I&&I(qe)},Ue=a.useRef(),De=function(qe){window.clearTimeout(Ue.current),!xe&&qe&&M&&M(qe),Pe(!0)},ze=function(qe){Ue.current=window.setTimeout(function(){Pe(!1),Qe(),N==null||N(qe)},0)},Je=function(){De()},dt=function(){ze()};return B.createElement("div",{className:G(r,n),style:o,ref:V},B.createElement(bb,ve({ref:A,value:Re},H,{rows:k,onChange:Xe,onKeyDown:je,onKeyUp:at,onPressEnter:Te,onFocus:De,onBlur:ze})),pe&&B.createElement("div",{ref:K,className:"".concat(r,"-measure")},Re.slice(0,nt),B.createElement(M6.Provider,{value:{notFoundContent:d,activeIndex:he,setActiveIndex:Se,selectOption:We,onFocus:Je,onBlur:dt}},B.createElement(_A,{prefixCls:r,transitionName:L,placement:P,direction:T,options:Ze,visible:!0,getPopupContainer:_,dropdownClassName:R},B.createElement("span",null,Oe))),Re.slice(nt+Oe.length)))}),h0=a.forwardRef(function(e,t){var r=e.suffix,n=e.prefixCls,o=n===void 0?"rc-mentions":n,i=e.defaultValue,l=e.value,s=e.allowClear,c=e.onChange,u=e.classNames,d=e.className,f=e.disabled,m=e.onClear,g=ut(e,AA),p=a.useRef(null),h=a.useRef(null);a.useImperativeHandle(t,function(){var $,w;return q(q({},h.current),{},{nativeElement:(($=p.current)===null||$===void 0?void 0:$.nativeElement)||((w=h.current)===null||w===void 0?void 0:w.nativeElement)})});var v=It("",{defaultValue:i,value:l}),C=ie(v,2),b=C[0],y=C[1],S=function(w){y(w),c==null||c(w)},x=function(){S("")};return B.createElement(gu,{suffix:r,prefixCls:o,value:b,allowClear:s,handleReset:x,className:d,classNames:u,disabled:f,ref:p,onClear:m},B.createElement(VA,ve({className:u==null?void 0:u.mentions,prefixCls:o,ref:h,onChange:S,disabled:f},g)))});h0.Option=TA;const WA=e=>{const{componentCls:t,colorTextDisabled:r,controlItemBgHover:n,controlPaddingHorizontal:o,colorText:i,motionDurationSlow:l,lineHeight:s,controlHeight:c,paddingInline:u,paddingBlock:d,fontSize:f,fontSizeIcon:m,colorTextTertiary:g,colorTextQuaternary:p,colorBgElevated:h,paddingXXS:v,paddingLG:C,borderRadius:b,borderRadiusLG:y,boxShadowSecondary:S,itemPaddingVertical:x,calc:$}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),pa(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:s,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),ou(e)),iu(e)),au(e)),{"&-affix-wrapper":Object.assign(Object.assign({},pa(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:u,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:C},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:$(f).mul(s).mul(.5).add(d).equal(),transform:"translateY(-50%)",margin:0,color:p,fontSize:m,verticalAlign:-1,cursor:"pointer",transition:`color ${l}`,"&:hover":{color:g},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},Wl(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(c).sub(2),margin:0,padding:`${z(d)} ${z(u)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},lu(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},Mt(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:f,fontVariant:"initial",padding:v,backgroundColor:h,borderRadius:y,outline:"none",boxShadow:S,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},Rn),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${z(x)} ${z(o)}`,color:i,borderRadius:b,fontWeight:"normal",lineHeight:s,cursor:"pointer",transition:`background ${l} ease`,"&:hover":{backgroundColor:n},"&-disabled":{color:r,cursor:"not-allowed","&:hover":{color:r,backgroundColor:n,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:n},"&-active":{backgroundColor:n}})}})})}},KA=e=>Object.assign(Object.assign({},Ii(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),qA=Ot("Mentions",e=>{const t=xt(e,Ei(e));return[WA(t)]},KA);var GA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,className:n,rootClassName:o,disabled:i,loading:l,filterOption:s,children:c,notFoundContent:u,options:d,status:f,allowClear:m=!1,popupClassName:g,style:p,variant:h}=e,v=GA(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[C,b]=a.useState(!1),y=a.useRef(null),S=yn(t,y),{getPrefixCls:x,renderEmpty:$,direction:w,mentions:I}=a.useContext(ke),{status:E,hasFeedback:O,feedbackIcon:M}=a.useContext(dn),N=qr(E,f),L=function(){v.onFocus&&v.onFocus.apply(v,arguments),b(!0)},P=function(){v.onBlur&&v.onBlur.apply(v,arguments),b(!1)},T=a.useMemo(()=>u!==void 0?u:($==null?void 0:$("Select"))||a.createElement(Qo,{componentName:"Select"}),[u,$]),_=a.useMemo(()=>l?a.createElement(N6,{value:"ANTD_SEARCHING",disabled:!0},a.createElement(Wo,{size:"small"})):c,[l,c]),R=l?[{value:"ANTD_SEARCHING",disabled:!0,label:a.createElement(Wo,{size:"small"})}]:d,D=l?XA:s,k=x("mentions",r),H=a0(m),j=Ut(k),[V,A,K]=qA(k,j),[W,J]=ho("mentions",h),X=O&&a.createElement(a.Fragment,null,M),Q=G(I==null?void 0:I.className,n,o,K,j),ee=a.createElement(h0,Object.assign({silent:l,prefixCls:k,notFoundContent:T,className:Q,disabled:i,allowClear:H,direction:w,style:Object.assign(Object.assign({},I==null?void 0:I.style),p)},v,{filterOption:D,onFocus:L,onBlur:P,dropdownClassName:G(g,o,A,K,j),ref:S,options:R,suffix:X,classNames:{mentions:G({[`${k}-disabled`]:i,[`${k}-focused`]:C,[`${k}-rtl`]:w==="rtl"},A),variant:G({[`${k}-${W}`]:J},vr(k,N)),affixWrapper:A}}),_);return V(ee)}),Ma=UA;Ma.Option=N6;const YA=po(Ma,"mentions");Ma._InternalPanelDoNotUseOrYouWillBeFired=YA;Ma.getMentions=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:r="@",split:n=" "}=t,o=Array.isArray(r)?r:[r];return e.split(n).map(function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=null;return o.some(s=>i.slice(0,s.length)===s?(l=s,!0):!1),l!==null?{prefix:l,value:i.slice(l.length)}:null}).filter(i=>!!i&&!!i.value)};let $r=null,sa=e=>e(),ml=[],gl={};function eh(){const{getContainer:e,duration:t,rtl:r,maxCount:n,top:o}=gl,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:r,maxCount:n,top:o}}const ZA=B.forwardRef((e,t)=>{const{messageConfig:r,sync:n}=e,{getPrefixCls:o}=a.useContext(ke),i=gl.prefixCls||o("message"),l=a.useContext(g3),[s,c]=h5(Object.assign(Object.assign(Object.assign({},r),{prefixCls:i}),l.message));return B.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return n(),s[d].apply(s,arguments)}}),{instance:u,sync:n}}),c}),QA=B.forwardRef((e,t)=>{const[r,n]=B.useState(eh),o=()=>{n(eh)};B.useEffect(o,[]);const i=Ol(),l=i.getRootPrefixCls(),s=i.getIconPrefixCls(),c=i.getTheme(),u=B.createElement(ZA,{ref:t,sync:o,messageConfig:r});return B.createElement(vo,{prefixCls:l,iconPrefixCls:s,theme:c},i.holderRender?i.holderRender(u):u)});function bu(){if(!$r){const e=document.createDocumentFragment(),t={fragment:e};$r=t,sa(()=>{Ec(B.createElement(QA,{ref:r=>{const{instance:n,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,bu())})}}),e)});return}$r.instance&&(ml.forEach(e=>{const{type:t,skipped:r}=e;if(!r)switch(t){case"open":{sa(()=>{const n=$r.instance.open(Object.assign(Object.assign({},gl),e.config));n==null||n.then(e.resolve),e.setCloseFn(n)});break}case"destroy":sa(()=>{$r==null||$r.instance.destroy(e.key)});break;default:sa(()=>{var n;const o=(n=$r.instance)[t].apply(n,ye(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ml=[])}function JA(e){gl=Object.assign(Object.assign({},gl),e),sa(()=>{var t;(t=$r==null?void 0:$r.sync)===null||t===void 0||t.call($r)})}function eV(e){const t=rm(r=>{let n;const o={type:"open",config:e,resolve:r,setCloseFn:i=>{n=i}};return ml.push(o),()=>{n?sa(()=>{n()}):o.skipped=!0}});return bu(),t}function tV(e,t){Ol();const r=rm(n=>{let o;const i={type:e,args:t,resolve:n,setCloseFn:l=>{o=l}};return ml.push(i),()=>{o?sa(()=>{o()}):i.skipped=!0}});return bu(),r}const nV=e=>{ml.push({type:"destroy",key:e}),bu()},rV=["success","info","warning","error","loading"],oV={open:eV,destroy:nV,config:JA,useMessage:P9,_InternalPanelDoNotUseOrYouWillBeFired:x9},Ur=oV;rV.forEach(e=>{Ur[e]=function(){for(var t=arguments.length,r=new Array(t),n=0;n{const{prefixCls:t,className:r,closeIcon:n,closable:o,type:i,title:l,children:s,footer:c}=e,u=aV(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=a.useContext(ke),f=d(),m=t||d("modal"),g=Ut(f),[p,h,v]=Z5(m,g),C=`${m}-confirm`;let b={};return i?b={closable:o!=null?o:!1,title:"",footer:"",children:a.createElement(J5,Object.assign({},e,{prefixCls:m,confirmPrefixCls:C,rootPrefixCls:f,content:s}))}:b={closable:o!=null?o:!0,title:l,footer:c!==null&&a.createElement(G5,Object.assign({},e)),children:s},p(a.createElement(R5,Object.assign({prefixCls:m,className:G(h,`${m}-pure-panel`,i&&C,i&&`${C}-${i}`,r,v,g)},u,{closeIcon:q5(m,n),closable:o},b)))},lV=pm(iV);function P6(e){return Dl(r3(e))}const kn=Q5;kn.useModal=hw;kn.info=function(t){return Dl(o3(t))};kn.success=function(t){return Dl(a3(t))};kn.error=function(t){return Dl(i3(t))};kn.warning=P6;kn.warn=P6;kn.confirm=function(t){return Dl(l3(t))};kn.destroyAll=function(){for(;ia.length;){const t=ia.pop();t&&t()}};kn.config=fw;kn._InternalPanelDoNotUseOrYouWillBeFired=lV;let Dr=null,Bs=e=>e(),ac=[],vl={};function th(){const{getContainer:e,rtl:t,maxCount:r,top:n,bottom:o,showProgress:i,pauseOnHover:l}=vl,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:r,top:n,bottom:o,showProgress:i,pauseOnHover:l}}const sV=B.forwardRef((e,t)=>{const{notificationConfig:r,sync:n}=e,{getPrefixCls:o}=a.useContext(ke),i=vl.prefixCls||o("notification"),l=a.useContext(g3),[s,c]=m3(Object.assign(Object.assign(Object.assign({},r),{prefixCls:i}),l.notification));return B.useEffect(n,[]),B.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return n(),s[d].apply(s,arguments)}}),{instance:u,sync:n}}),c}),cV=B.forwardRef((e,t)=>{const[r,n]=B.useState(th),o=()=>{n(th)};B.useEffect(o,[]);const i=Ol(),l=i.getRootPrefixCls(),s=i.getIconPrefixCls(),c=i.getTheme(),u=B.createElement(sV,{ref:t,sync:o,notificationConfig:r});return B.createElement(vo,{prefixCls:l,iconPrefixCls:s,theme:c},i.holderRender?i.holderRender(u):u)});function C0(){if(!Dr){const e=document.createDocumentFragment(),t={fragment:e};Dr=t,Bs(()=>{Ec(B.createElement(cV,{ref:r=>{const{instance:n,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,C0())})}}),e)});return}Dr.instance&&(ac.forEach(e=>{switch(e.type){case"open":{Bs(()=>{Dr.instance.open(Object.assign(Object.assign({},vl),e.config))});break}case"destroy":Bs(()=>{Dr==null||Dr.instance.destroy(e.key)});break}}),ac=[])}function uV(e){vl=Object.assign(Object.assign({},vl),e),Bs(()=>{var t;(t=Dr==null?void 0:Dr.sync)===null||t===void 0||t.call(Dr)})}function R6(e){Ol(),ac.push({type:"open",config:e}),C0()}const dV=e=>{ac.push({type:"destroy",key:e}),C0()},fV=["success","info","warning","error"],mV={open:R6,destroy:dV,config:uV,useNotification:Bw,_InternalPanelDoNotUseOrYouWillBeFired:Pw},Yr=mV;fV.forEach(e=>{Yr[e]=t=>R6(Object.assign(Object.assign({},t),{type:e}))});const gV=e=>{const{componentCls:t,iconCls:r,antCls:n,zIndexPopup:o,colorText:i,colorWarning:l,marginXXS:s,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${n}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${r}`]:{color:l,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},vV=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},_6=Ot("Popconfirm",e=>gV(e),vV,{resetStyle:!1});var pV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:r,cancelButtonProps:n,title:o,description:i,cancelText:l,okText:s,okType:c="primary",icon:u=a.createElement(Zo,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:g,onPopupClick:p}=e,{getPrefixCls:h}=a.useContext(ke),[v]=Dn("Popconfirm",Mr.Popconfirm),C=ni(o),b=ni(i);return a.createElement("div",{className:`${t}-inner-content`,onClick:p},a.createElement("div",{className:`${t}-message`},u&&a.createElement("span",{className:`${t}-message-icon`},u),a.createElement("div",{className:`${t}-message-text`},C&&a.createElement("div",{className:`${t}-title`},C),b&&a.createElement("div",{className:`${t}-description`},b))),a.createElement("div",{className:`${t}-buttons`},d&&a.createElement(hn,Object.assign({onClick:g,size:"small"},n),l||(v==null?void 0:v.cancelText)),a.createElement(lm,{buttonProps:Object.assign(Object.assign({size:"small"},om(c)),r),actionFn:m,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},hV=e=>{const{prefixCls:t,placement:r,className:n,style:o}=e,i=pV(e,["prefixCls","placement","className","style"]),{getPrefixCls:l}=a.useContext(ke),s=l("popconfirm",t),[c]=_6(s);return c(a.createElement(V3,{placement:r,className:G(s,n),style:o,content:a.createElement(T6,Object.assign({prefixCls:s},i))}))},CV=hV;var bV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{prefixCls:o,placement:i="top",trigger:l="click",okType:s="primary",icon:c=a.createElement(Zo,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m}=e,g=bV(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:p}=a.useContext(ke),[h,v]=It(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),C=(E,O)=>{v(E,!0),m==null||m(E),f==null||f(E,O)},b=E=>{C(!1,E)},y=E=>{var O;return(O=e.onConfirm)===null||O===void 0?void 0:O.call(void 0,E)},S=E=>{var O;C(!1,E),(O=e.onCancel)===null||O===void 0||O.call(void 0,E)},x=(E,O)=>{const{disabled:M=!1}=e;M||C(E,O)},$=p("popconfirm",o),w=G($,d),[I]=_6($);return I(a.createElement(Kc,Object.assign({},Xt(g,["title"]),{trigger:l,placement:i,onOpenChange:x,open:h,ref:t,overlayClassName:w,content:a.createElement(T6,Object.assign({okType:s,icon:c},e,{prefixCls:$,close:b,onConfirm:y,onCancel:S})),"data-popover-inject":!0}),u))}),L6=yV;L6._InternalPanelDoNotUseOrYouWillBeFired=CV;const SV=L6;var xV={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$V=function(){var t=a.useRef([]),r=a.useRef(null);return a.useEffect(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var l=i.style;l.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(l.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current},nh=0,wV=oo();function EV(){var e;return wV?(e=nh,nh+=1):e="TEST_OR_SSR",e}const IV=function(e){var t=a.useState(),r=ie(t,2),n=r[0],o=r[1];return a.useEffect(function(){o("rc_progress_".concat(EV()))},[]),e||n};var rh=function(t){var r=t.bg,n=t.children;return a.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function oh(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var OV=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,l=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=n&&yt(n)==="object",g=m?"#FFF":void 0,p=d/2,h=a.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:p,cy:p,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:l,ref:t});if(!m)return h;var v="".concat(o,"-conic"),C=f?"".concat(180+f/2,"deg"):"0deg",b=oh(n,(360-f)/360),y=oh(n,1),S="conic-gradient(from ".concat(C,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(y.join(", "),")");return a.createElement(a.Fragment,null,a.createElement("mask",{id:v},h),a.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},a.createElement(rh,{bg:x},a.createElement(rh,{bg:S}))))}),Zi=100,wd=function(t,r,n,o,i,l,s,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=n/100*360*((360-l)/360),g=l===0?0:{bottom:0,top:180,left:90,right:-90}[s],p=(100-o)/100*r;u==="round"&&o!==100&&(p+=d/2,p>=r&&(p=r-.01));var h=Zi/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:p+f,transform:"rotate(".concat(i+m+g,"deg)"),transformOrigin:"".concat(h,"px ").concat(h,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},MV=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ah(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var NV=function(t){var r=q(q({},xV),t),n=r.id,o=r.prefixCls,i=r.steps,l=r.strokeWidth,s=r.trailWidth,c=r.gapDegree,u=c===void 0?0:c,d=r.gapPosition,f=r.trailColor,m=r.strokeLinecap,g=r.style,p=r.className,h=r.strokeColor,v=r.percent,C=ut(r,MV),b=Zi/2,y=IV(n),S="".concat(y,"-gradient"),x=b-l/2,$=Math.PI*2*x,w=u>0?90+u/2:-90,I=$*((360-u)/360),E=yt(i)==="object"?i:{count:i,gap:2},O=E.count,M=E.gap,N=ah(v),L=ah(h),P=L.find(function(j){return j&&yt(j)==="object"}),T=P&&yt(P)==="object",_=T?"butt":m,R=wd($,I,0,100,w,u,d,f,_,l),D=$V(),k=function(){var V=0;return N.map(function(A,K){var W=L[K]||L[L.length-1],J=wd($,I,V,A,w,u,d,W,_,l);return V+=A,a.createElement(OV,{key:K,color:W,ptg:A,radius:x,prefixCls:o,gradientId:S,style:J,strokeLinecap:_,strokeWidth:l,gapDegree:u,ref:function(Q){D[K]=Q},size:Zi})}).reverse()},H=function(){var V=Math.round(O*(N[0]/100)),A=100/O,K=0;return new Array(O).fill(null).map(function(W,J){var X=J<=V-1?L[0]:f,Q=X&&yt(X)==="object"?"url(#".concat(S,")"):void 0,ee=wd($,I,K,A,w,u,d,X,"butt",l,M);return K+=(I-ee.strokeDashoffset+M)*100/I,a.createElement("circle",{key:J,className:"".concat(o,"-circle-path"),r:x,cx:b,cy:b,stroke:Q,strokeWidth:l,opacity:1,style:ee,ref:function(U){D[J]=U}})})};return a.createElement("svg",ve({className:G("".concat(o,"-circle"),p),viewBox:"0 0 ".concat(Zi," ").concat(Zi),style:g,id:n,role:"presentation"},C),!O&&a.createElement("circle",{className:"".concat(o,"-circle-trail"),r:x,cx:b,cy:b,stroke:f,strokeLinecap:_,strokeWidth:s||l,style:R}),O?H():k())};function Fo(e){return!e||e<0?0:e>100?100:e}function ic(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}const PV=e=>{let{percent:t,success:r,successPercent:n}=e;const o=Fo(ic({success:r,successPercent:n}));return[o,Fo(Fo(t)-o)]},RV=e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:n}=t;return[n||Xd.green,r||null]},yu=(e,t,r)=>{var n,o,i,l;let s=-1,c=-1;if(t==="step"){const u=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e=="undefined"?(s=e==="small"?2:14,c=d!=null?d:8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e=="undefined"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,c=(l=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&l!==void 0?l:120));return[s,c]},_V=3,TV=e=>_V/e*100,LV=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:l=120,type:s,children:c,success:u,size:d=l,steps:f}=e,[m,g]=yu(d,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(TV(m),6));const h={width:m,height:g,fontSize:m*.15+6},v=a.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),C=PV(e),b=o||s==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=RV({success:u,strokeColor:e.strokeColor}),x=G(`${t}-inner`,{[`${t}-circle-gradient`]:y}),$=a.createElement(NV,{steps:f,percent:f?C[1]:C,strokeWidth:p,trailWidth:p,strokeColor:f?S[1]:S,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:v,gapPosition:b}),w=m<=20,I=a.createElement("div",{className:x,style:h},$,!w&&c);return w?a.createElement(er,{title:c},I):I},DV=LV,lc="--progress-line-stroke-color",D6="--progress-percent",ih=e=>{const t=e?"100%":"-100%";return new jt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},kV=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${lc})`]},height:"100%",width:`calc(1 / var(${D6}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${z(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:ih(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:ih(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},HV=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},jV=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},BV=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},zV=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),FV=Ot("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=xt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[kV(r),HV(r),jV(r),BV(r)]},zV);var AV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(r=>{let{key:n,value:o}=r;return`${o} ${n}%`}).join(", ")},WV=(e,t)=>{const{from:r=Xd.blue,to:n=Xd.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=AV(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=VV(i),c=`linear-gradient(${o}, ${s})`;return{background:c,[lc]:c}}const l=`linear-gradient(${o}, ${r}, ${n})`;return{background:l,[lc]:l}},KV=e=>{const{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:l,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:g}=d,p=l&&typeof l!="string"?WV(l,r):{[lc]:l,background:l},h=s==="square"||s==="butt"?0:void 0,v=o!=null?o:[-1,i||(o==="small"?6:8)],[C,b]=yu(v,"line",{strokeWidth:i}),y={backgroundColor:u||void 0,borderRadius:h},S=Object.assign(Object.assign({width:`${Fo(n)}%`,height:b,borderRadius:h},p),{[D6]:Fo(n)/100}),x=ic(e),$={width:`${Fo(x)}%`,height:b,borderRadius:h,backgroundColor:f==null?void 0:f.strokeColor},w={width:C<0?"100%":C},I=a.createElement("div",{className:`${t}-inner`,style:y},a.createElement("div",{className:G(`${t}-bg`,`${t}-bg-${g}`),style:S},g==="inner"&&c),x!==void 0&&a.createElement("div",{className:`${t}-success-bg`,style:$})),E=g==="outer"&&m==="start",O=g==="outer"&&m==="end";return g==="outer"&&m==="center"?a.createElement("div",{className:`${t}-layout-bottom`},I,c):a.createElement("div",{className:`${t}-outer`,style:w},E&&c,I,O&&c)},qV=KV,GV=e=>{const{size:t,steps:r,percent:n=0,strokeWidth:o=8,strokeColor:i,trailColor:l=null,prefixCls:s,children:c}=e,u=Math.round(r*(n/100)),d=t==="small"?2:14,f=t!=null?t:[d,o],[m,g]=yu(f,"step",{steps:r,strokeWidth:o}),p=m/r,h=new Array(r);for(let v=0;v{const{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:l,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:m,style:g,percentPosition:p={}}=e,h=UV(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:C="outer"}=p,b=Array.isArray(l)?l[0]:l,y=typeof l=="string"||Array.isArray(l)?l:void 0,S=a.useMemo(()=>{if(b){const k=typeof b=="string"?b:Object.values(b)[0];return new Qt(k).isLight()}return!1},[l]),x=a.useMemo(()=>{var k,H;const j=ic(e);return parseInt(j!==void 0?(k=j!=null?j:0)===null||k===void 0?void 0:k.toString():(H=s!=null?s:0)===null||H===void 0?void 0:H.toString(),10)},[s,e.success,e.successPercent]),$=a.useMemo(()=>!YV.includes(f)&&x>=100?"success":f||"normal",[f,x]),{getPrefixCls:w,direction:I,progress:E}=a.useContext(ke),O=w("progress",r),[M,N,L]=FV(O),P=d==="line",T=P&&!i,_=a.useMemo(()=>{if(!u)return null;const k=ic(e);let H;const j=m||(A=>`${A}%`),V=P&&S&&C==="inner";return C==="inner"||m||$!=="exception"&&$!=="success"?H=j(Fo(s),Fo(k)):$==="exception"?H=P?a.createElement(Mo,null):a.createElement(Cr,null):$==="success"&&(H=P?a.createElement(ya,null):a.createElement(jc,null)),a.createElement("span",{className:G(`${O}-text`,{[`${O}-text-bright`]:V,[`${O}-text-${v}`]:T,[`${O}-text-${C}`]:T}),title:typeof H=="string"?H:void 0},H)},[u,s,x,$,d,O,m]);let R;d==="line"?R=i?a.createElement(XV,Object.assign({},e,{strokeColor:y,prefixCls:O,steps:typeof i=="object"?i.count:i}),_):a.createElement(qV,Object.assign({},e,{strokeColor:b,prefixCls:O,direction:I,percentPosition:{align:v,type:C}}),_):(d==="circle"||d==="dashboard")&&(R=a.createElement(DV,Object.assign({},e,{strokeColor:b,prefixCls:O,progressStatus:$}),_));const D=G(O,`${O}-status-${$}`,{[`${O}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${O}-inline-circle`]:d==="circle"&&yu(c,"circle")[0]<=20,[`${O}-line`]:T,[`${O}-line-align-${v}`]:T,[`${O}-line-position-${C}`]:T,[`${O}-steps`]:i,[`${O}-show-info`]:u,[`${O}-${c}`]:typeof c=="string",[`${O}-rtl`]:I==="rtl"},E==null?void 0:E.className,n,o,N,L);return M(a.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},E==null?void 0:E.style),g),className:D,role:"progressbar","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100},Xt(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))}),b0=ZV;function Ka(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h8(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return l=u.done,u},e:function(u){s=!0,i=u},f:function(){try{l||r.return==null||r.return()}finally{if(s)throw i}}}}var Ni,Zl;function or(e,t,r){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var n=t-1;n>=0;n--)r.push(e>>>n&1)}function bo(e,t){return(e>>>t&1)!=0}function fr(e){if(!e)throw new Error("Assertion error")}var ro=function(){function e(t,r){tn(this,e),F(this,"modeBits",void 0),F(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=r}return nn(e,[{key:"numCharCountBits",value:function(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}}]),e}();Ni=ro;F(ro,"NUMERIC",new Ni(1,[10,12,14]));F(ro,"ALPHANUMERIC",new Ni(2,[9,11,13]));F(ro,"BYTE",new Ni(4,[8,16,16]));F(ro,"KANJI",new Ni(8,[8,10,12]));F(ro,"ECI",new Ni(7,[0,0,0]));var Ir=nn(function e(t,r){tn(this,e),F(this,"ordinal",void 0),F(this,"formatBits",void 0),this.ordinal=t,this.formatBits=r});Zl=Ir;F(Ir,"LOW",new Zl(0,1));F(Ir,"MEDIUM",new Zl(1,0));F(Ir,"QUARTILE",new Zl(2,3));F(Ir,"HIGH",new Zl(3,2));var fa=function(){function e(t,r,n){if(tn(this,e),F(this,"mode",void 0),F(this,"numChars",void 0),F(this,"bitData",void 0),this.mode=t,this.numChars=r,this.bitData=n,r<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}return nn(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(r){var n=[],o=Ka(r),i;try{for(o.s();!(i=o.n()).done;){var l=i.value;or(l,8,n)}}catch(s){o.e(s)}finally{o.f()}return new e(ro.BYTE,r.length,n)}},{key:"makeNumeric",value:function(r){if(!e.isNumeric(r))throw new RangeError("String contains non-numeric characters");for(var n=[],o=0;o=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var l=[],s=0;s>>9)*1335;var l=(n<<10|o)^21522;fr(l>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,bo(l,s));this.setFunctionModule(8,7,bo(l,6)),this.setFunctionModule(8,8,bo(l,7)),this.setFunctionModule(7,8,bo(l,8));for(var c=9;c<15;c++)this.setFunctionModule(14-c,8,bo(l,c));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,bo(l,u));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,bo(l,d));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var r=this.version,n=0;n<12;n++)r=r<<1^(r>>>11)*7973;var o=this.version<<12|r;fr(o>>>18==0);for(var i=0;i<18;i++){var l=bo(o,i),s=this.size-11+i%3,c=Math.floor(i/3);this.setFunctionModule(s,c,l),this.setFunctionModule(c,s,l)}}}},{key:"drawFinderPattern",value:function(r,n){for(var o=-4;o<=4;o++)for(var i=-4;i<=4;i++){var l=Math.max(Math.abs(i),Math.abs(o)),s=r+i,c=n+o;0<=s&&s=c)&&v.push(x[S])})},b=0;b=1;o-=2){o==6&&(o=5);for(var i=0;i>>3],7-(n&7)),n++)}}fr(n==r.length*8)}},{key:"applyMask",value:function(r){if(r<0||r>7)throw new RangeError("Mask value out of range");for(var n=0;n5&&r++):(this.finderPenaltyAddHistory(i,l),o||(r+=this.finderPenaltyCountPatterns(l)*e.PENALTY_N3),o=this.modules[n][s],i=1);r+=this.finderPenaltyTerminateAndCount(o,i,l)*e.PENALTY_N3}for(var c=0;c5&&r++):(this.finderPenaltyAddHistory(d,f),u||(r+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),u=this.modules[m][c],d=1);r+=this.finderPenaltyTerminateAndCount(u,d,f)*e.PENALTY_N3}for(var g=0;g0&&r[2]==n&&r[3]==n*3&&r[4]==n&&r[5]==n;return(o&&r[0]>=n*4&&r[6]>=n?1:0)+(o&&r[6]>=n*4&&r[0]>=n?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(r,n,o){var i=n;return r&&(this.finderPenaltyAddHistory(i,o),i=0),i+=this.size,this.finderPenaltyAddHistory(i,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(r,n){var o=r;n[0]==0&&(o+=this.size),n.pop(),n.unshift(o)}}],[{key:"encodeText",value:function(r,n){var o=fa.makeSegments(r);return e.encodeSegments(o,n)}},{key:"encodeBinary",value:function(r,n){var o=fa.makeBytes(r);return e.encodeSegments([o],n)}},{key:"encodeSegments",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=o&&o<=i&&i<=e.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");var c,u;for(c=o;;c++){var d=e.getNumDataCodewords(c,n)*8,f=fa.getTotalBits(r,c);if(f<=d){u=f;break}if(c>=i)throw new RangeError("Data too long")}for(var m=n,g=0,p=[Ir.MEDIUM,Ir.QUARTILE,Ir.HIGH];g>>3]|=O<<7-(M&7)}),new e(c,m,E,l)}},{key:"getNumRawDataModules",value:function(r){if(re.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*r+128)*r+64;if(r>=2){var o=Math.floor(r/7)+2;n-=(25*o-10)*o-55,r>=7&&(n-=36)}return fr(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(r,n){return Math.floor(e.getNumRawDataModules(r)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r]}},{key:"reedSolomonComputeDivisor",value:function(r){if(r<1||r>255)throw new RangeError("Degree out of range");for(var n=[],o=0;o>>8||n>>>8)throw new RangeError("Byte out of range");for(var o=0,i=7;i>=0;i--)o=o<<1^(o>>>7)*285,o^=(n>>>i&1)*r;return fr(o>>>8==0),o}}]),e}();F(Ro,"MIN_VERSION",1);F(Ro,"MAX_VERSION",40);F(Ro,"PENALTY_N1",3);F(Ro,"PENALTY_N2",3);F(Ro,"PENALTY_N3",40);F(Ro,"PENALTY_N4",10);F(Ro,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);F(Ro,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var QV={L:Ir.LOW,M:Ir.MEDIUM,Q:Ir.QUARTILE,H:Ir.HIGH},k6=128,H6="L",j6="#FFFFFF",B6="#000000",z6=!1,F6=1,JV=4,eW=0,tW=.1;function A6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[];return e.forEach(function(n,o){var i=null;n.forEach(function(l,s){if(!l&&i!==null){r.push("M".concat(i+t," ").concat(o+t,"h").concat(s-i,"v1H").concat(i+t,"z")),i=null;return}if(s===n.length-1){if(!l)return;i===null?r.push("M".concat(s+t,",").concat(o+t," h1v1H").concat(s+t,"z")):r.push("M".concat(i+t,",").concat(o+t," h").concat(s+1-i,"v1H").concat(i+t,"z"));return}l&&i===null&&(i=s)})}),r.join("")}function V6(e,t){return e.slice().map(function(r,n){return n=t.y+t.h?r:r.map(function(o,i){return i=t.x+t.w?o:!1})})}function nW(e,t,r,n){if(n==null)return null;var o=e.length+r*2,i=Math.floor(t*tW),l=o/t,s=(n.width||i)*l,c=(n.height||i)*l,u=n.x==null?e.length/2-s/2:n.x*l,d=n.y==null?e.length/2-c/2:n.y*l,f=n.opacity==null?1:n.opacity,m=null;if(n.excavate){var g=Math.floor(u),p=Math.floor(d),h=Math.ceil(s+u-g),v=Math.ceil(c+d-p);m={x:g,y:p,w:h,h:v}}var C=n.crossOrigin;return{x:u,y:d,h:c,w:s,excavation:m,opacity:f,crossOrigin:C}}function rW(e,t){return t!=null?Math.floor(t):e?JV:eW}var oW=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();function W6(e){var t=e.value,r=e.level,n=e.minVersion,o=e.includeMargin,i=e.marginSize,l=e.imageSettings,s=e.size,c=a.useMemo(function(){var p=fa.makeSegments(t);return Ro.encodeSegments(p,QV[r],n)},[t,r,n]),u=a.useMemo(function(){var p=c.getModules(),h=rW(o,i),v=p.length+h*2,C=nW(p,s,h,l);return{cells:p,margin:h,numCells:v,calculatedImageSettings:C}},[c,s,l,o,i]),d=u.cells,f=u.margin,m=u.numCells,g=u.calculatedImageSettings;return{qrcode:c,margin:f,cells:d,numCells:m,calculatedImageSettings:g}}var aW=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],K6=B.forwardRef(function(t,r){var n=t.value,o=t.size,i=o===void 0?k6:o,l=t.level,s=l===void 0?H6:l,c=t.bgColor,u=c===void 0?j6:c,d=t.fgColor,f=d===void 0?B6:d,m=t.includeMargin,g=m===void 0?z6:m,p=t.minVersion,h=p===void 0?F6:p,v=t.marginSize,C=t.style,b=t.imageSettings,y=ut(t,aW),S=b==null?void 0:b.src,x=a.useRef(null),$=a.useRef(null),w=a.useCallback(function(D){x.current=D,typeof r=="function"?r(D):r&&(r.current=D)},[r]),I=a.useState(!1),E=ie(I,2),O=E[1],M=W6({value:n,level:s,minVersion:h,includeMargin:g,marginSize:v,imageSettings:b,size:i}),N=M.margin,L=M.cells,P=M.numCells,T=M.calculatedImageSettings;a.useEffect(function(){if(x.current!=null){var D=x.current,k=D.getContext("2d");if(!k)return;var H=L,j=$.current,V=T!=null&&j!==null&&j.complete&&j.naturalHeight!==0&&j.naturalWidth!==0;V&&T.excavation!=null&&(H=V6(L,T.excavation));var A=window.devicePixelRatio||1;D.height=D.width=i*A;var K=i/P*A;k.scale(K,K),k.fillStyle=u,k.fillRect(0,0,P,P),k.fillStyle=f,oW?k.fill(new Path2D(A6(H,N))):L.forEach(function(W,J){W.forEach(function(X,Q){X&&k.fillRect(Q+N,J+N,1,1)})}),T&&(k.globalAlpha=T.opacity),V&&k.drawImage(j,T.x+N,T.y+N,T.w,T.h)}}),a.useEffect(function(){O(!1)},[S]);var _=q({height:i,width:i},C),R=null;return S!=null&&(R=B.createElement("img",{src:S,key:S,style:{display:"none"},onLoad:function(){O(!0)},ref:$,crossOrigin:T==null?void 0:T.crossOrigin})),B.createElement(B.Fragment,null,B.createElement("canvas",ve({style:_,height:i,width:i,ref:w,role:"img"},y)),R)});K6.displayName="QRCodeCanvas";var iW=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],q6=B.forwardRef(function(t,r){var n=t.value,o=t.size,i=o===void 0?k6:o,l=t.level,s=l===void 0?H6:l,c=t.bgColor,u=c===void 0?j6:c,d=t.fgColor,f=d===void 0?B6:d,m=t.includeMargin,g=m===void 0?z6:m,p=t.minVersion,h=p===void 0?F6:p,v=t.title,C=t.marginSize,b=t.imageSettings,y=ut(t,iW),S=W6({value:n,level:s,minVersion:h,includeMargin:g,marginSize:C,imageSettings:b,size:i}),x=S.margin,$=S.cells,w=S.numCells,I=S.calculatedImageSettings,E=$,O=null;b!=null&&I!=null&&(I.excavation!=null&&(E=V6($,I.excavation)),O=B.createElement("image",{href:b.src,height:I.h,width:I.w,x:I.x+x,y:I.y+x,preserveAspectRatio:"none",opacity:I.opacity,crossOrigin:I.crossOrigin}));var M=A6(E,x);return B.createElement("svg",ve({height:i,width:i,viewBox:"0 0 ".concat(w," ").concat(w),ref:r,role:"img"},y),!!v&&B.createElement("title",null,v),B.createElement("path",{fill:u,d:"M0,0 h".concat(w,"v").concat(w,"H0z"),shapeRendering:"crispEdges"}),B.createElement("path",{fill:f,d:M,shapeRendering:"crispEdges"}),O)});q6.displayName="QRCodeSVG";const lW=e=>{const{componentCls:t,lineWidth:r,lineType:n,colorSplit:o}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${z(r)} ${n} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},sW=e=>({QRCodeMaskBackgroundColor:new Qt(e.colorBgContainer).setAlpha(.96).toRgbString()}),cW=Ot("QRCode",e=>{const t=xt(e,{QRCodeTextColor:e.colorText});return lW(t)},sW);var uW={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"};const dW=uW;var fW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:dW}))},mW=a.forwardRef(fW);const gW=mW;var vW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const pW=vW;var hW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:pW}))},CW=a.forwardRef(hW);const bW=CW;var yW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const SW=yW;var xW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:SW}))},$W=a.forwardRef(xW);const wW=$W;var EW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const IW=EW;var OW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:IW}))},MW=a.forwardRef(OW);const NW=MW;var PW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const RW=PW;var _W=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:RW}))},TW=a.forwardRef(_W);const G6=TW;var LW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const DW=LW;var kW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:DW}))},HW=a.forwardRef(kW);const jW=HW;var BW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const zW=BW;var FW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:zW}))},AW=a.forwardRef(FW);const VW=AW;var WW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const KW=WW;var qW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:KW}))},GW=a.forwardRef(qW);const XW=GW;var UW={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"};const YW=UW;var ZW=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:YW}))},QW=a.forwardRef(ZW);const X6=QW;var JW={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const eK=JW;var tK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:eK}))},nK=a.forwardRef(tK);const rK=nK;var oK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const aK=oK;var iK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:aK}))},lK=a.forwardRef(iK);const sK=lK;var cK={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"};const uK=cK;var dK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:uK}))},fK=a.forwardRef(dK);const mK=fK;var gK={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"};const vK=gK;var pK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:vK}))},hK=a.forwardRef(pK);const CK=hK;var bK={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"};const yK=bK;var SK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:yK}))},xK=a.forwardRef(SK);const $K=xK;var wK={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"};const EK=wK;var IK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:EK}))},OK=a.forwardRef(IK);const MK=OK;var NK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const PK=NK;var RK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:PK}))},_K=a.forwardRef(RK);const TK=_K;var LK={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const DK=LK;var kK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:DK}))},HK=a.forwardRef(kK);const jK=HK;var BK={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"};const zK=BK;var FK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:zK}))},AK=a.forwardRef(FK);const VK=AK;var WK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const KK=WK;var qK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:KK}))},GK=a.forwardRef(qK);const XK=GK;var UK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const YK=UK;var ZK=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:YK}))},QK=a.forwardRef(ZK);const JK=QK;var eq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const tq=eq;var nq=function(t,r){return a.createElement(Bt,ve({},t,{ref:r,icon:tq}))},rq=a.forwardRef(nq);const oq=rq,aq=B.createElement(Wo,null);function iq(e){let{prefixCls:t,locale:r,onRefresh:n,statusRender:o,status:i}=e;const l=B.createElement(B.Fragment,null,B.createElement("p",{className:`${t}-expired`},r==null?void 0:r.expired),n&&B.createElement(hn,{type:"link",icon:B.createElement(XK,null),onClick:n},r==null?void 0:r.refresh)),s=B.createElement("p",{className:`${t}-scanned`},r==null?void 0:r.scanned),c={expired:l,loading:aq,scanned:s},u=f=>c[f.status];return(o!=null?o:u)({status:i,locale:r})}var lq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t,r,n,o;const[,i]=An(),{value:l,type:s="canvas",icon:c="",size:u=160,iconSize:d,color:f=i.colorText,errorLevel:m="M",status:g="active",bordered:p=!0,onRefresh:h,style:v,className:C,rootClassName:b,prefixCls:y,bgColor:S="transparent",statusRender:x}=e,$=lq(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:w}=a.useContext(ke),I=w("qrcode",y),[E,O,M]=cW(I),N={src:c,x:void 0,y:void 0,height:typeof d=="number"?d:(t=d==null?void 0:d.height)!==null&&t!==void 0?t:40,width:typeof d=="number"?d:(r=d==null?void 0:d.width)!==null&&r!==void 0?r:40,excavate:!0,crossOrigin:"anonymous"},L={value:l,size:u,level:m,bgColor:S,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:c?N:void 0},[P]=Dn("QRCode");if(!l)return null;const T=G(I,C,b,O,M,{[`${I}-borderless`]:!p}),_=Object.assign(Object.assign({backgroundColor:S},v),{width:(n=v==null?void 0:v.width)!==null&&n!==void 0?n:u,height:(o=v==null?void 0:v.height)!==null&&o!==void 0?o:u});return E(B.createElement("div",Object.assign({},$,{className:T,style:_}),g!=="active"&&B.createElement("div",{className:`${I}-mask`},B.createElement(iq,{prefixCls:I,locale:P,status:g,onRefresh:h,statusRender:x})),s==="canvas"?B.createElement(K6,Object.assign({},L)):B.createElement(q6,Object.assign({},L))))},cq=sq;function uq(e,t){var r=e.disabled,n=e.prefixCls,o=e.character,i=e.characterRender,l=e.index,s=e.count,c=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,g=function(x){f(x,l)},p=function(x){m(x,l)},h=function(x){x.keyCode===we.ENTER&&m(x,l)},v=l+1,C=new Set([n]);c===0&&l===0&&d?C.add("".concat(n,"-focused")):u&&c+.5>=v&&cl?"true":"false","aria-posinset":l+1,"aria-setsize":s,tabIndex:r?-1:0},B.createElement("div",{className:"".concat(n,"-first")},b),B.createElement("div",{className:"".concat(n,"-second")},b)));return i&&(y=i(y,e)),y}const dq=B.forwardRef(uq);function fq(){var e=a.useRef({});function t(n){return e.current[n]}function r(n){return function(o){e.current[n]=o}}return[t,r]}function mq(e){var t=e.pageXOffset,r="scrollLeft";if(typeof t!="number"){var n=e.document;t=n.documentElement[r],typeof t!="number"&&(t=n.body[r])}return t}function gq(e){var t,r,n=e.ownerDocument,o=n.body,i=n&&n.documentElement,l=e.getBoundingClientRect();return t=l.left,r=l.top,t-=i.clientLeft||o.clientLeft||0,r-=i.clientTop||o.clientTop||0,{left:t,top:r}}function vq(e){var t=gq(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=mq(n),t.left}var pq=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function hq(e,t){var r=e.prefixCls,n=r===void 0?"rc-rate":r,o=e.className,i=e.defaultValue,l=e.value,s=e.count,c=s===void 0?5:s,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,m=f===void 0?!0:f,g=e.keyboard,p=g===void 0?!0:g,h=e.character,v=h===void 0?"★":h,C=e.characterRender,b=e.disabled,y=e.direction,S=y===void 0?"ltr":y,x=e.tabIndex,$=x===void 0?0:x,w=e.autoFocus,I=e.onHoverChange,E=e.onChange,O=e.onFocus,M=e.onBlur,N=e.onKeyDown,L=e.onMouseLeave,P=ut(e,pq),T=fq(),_=ie(T,2),R=_[0],D=_[1],k=B.useRef(null),H=function(){if(!b){var xe;(xe=k.current)===null||xe===void 0||xe.focus()}};B.useImperativeHandle(t,function(){return{focus:H,blur:function(){if(!b){var xe;(xe=k.current)===null||xe===void 0||xe.blur()}}}});var j=It(i||0,{value:l}),V=ie(j,2),A=V[0],K=V[1],W=It(null),J=ie(W,2),X=J[0],Q=J[1],ee=function(xe,Pe){var Ie=S==="rtl",_e=xe+1;if(d){var Re=R(xe),Me=vq(Re),me=Re.clientWidth;(Ie&&Pe-Me>me/2||!Ie&&Pe-Me0&&!Ie||Pe===we.RIGHT&&A>0&&Ie?(te(A-_e),xe.preventDefault()):Pe===we.LEFT&&A{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${z(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},yq=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Sq=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),bq(e)),yq(e))}},xq=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),$q=Ot("Rate",e=>{const t=xt(e,{});return[Sq(t)]},xq);var wq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,className:n,rootClassName:o,style:i,tooltips:l,character:s=a.createElement(JK,null),disabled:c}=e,u=wq(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=(x,$)=>{let{index:w}=$;return l?a.createElement(er,{title:l[w]},x):x},{getPrefixCls:f,direction:m,rate:g}=a.useContext(ke),p=f("rate",r),[h,v,C]=$q(p),b=Object.assign(Object.assign({},g==null?void 0:g.style),i),y=a.useContext(Fn),S=c!=null?c:y;return h(a.createElement(Cq,Object.assign({ref:t,character:s,characterRender:d,disabled:S},u,{className:G(n,o,v,C,g==null?void 0:g.className),style:b,prefixCls:p,direction:m})))}),Iq=Eq,Oq=()=>a.createElement("svg",{width:"252",height:"294"},a.createElement("title",null,"No Found"),a.createElement("defs",null,a.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(0 .012)"},a.createElement("mask",{fill:"#fff"}),a.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),a.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),a.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),a.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),a.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),a.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),a.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),a.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),a.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),a.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),a.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),a.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),a.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),a.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),a.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),a.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),a.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),a.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),a.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),a.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),a.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),a.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),a.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),a.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),a.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),a.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),a.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),a.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),a.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),a.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),a.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),a.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),a.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),a.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),a.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),a.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),a.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),a.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),a.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),a.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),a.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),a.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Mq=Oq,Nq=()=>a.createElement("svg",{width:"254",height:"294"},a.createElement("title",null,"Server Error"),a.createElement("defs",null,a.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),a.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(0 .067)"},a.createElement("mask",{fill:"#fff"}),a.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),a.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),a.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),a.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),a.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),a.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),a.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),a.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),a.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),a.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),a.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),a.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),a.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),a.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),a.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),a.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),a.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),a.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),a.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),a.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),a.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),a.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),a.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),a.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),a.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),a.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),a.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),a.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),a.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),a.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),a.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),a.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),a.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),a.createElement("mask",{fill:"#fff"}),a.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),a.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),a.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),a.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),a.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),a.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),a.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),a.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),a.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),a.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),a.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Pq=Nq,Rq=e=>{const{componentCls:t,lineHeightHeading3:r,iconCls:n,padding:o,paddingXL:i,paddingXS:l,paddingLG:s,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${z(e.calc(s).mul(2).equal())} ${z(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${n}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:r,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${z(s)} ${z(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},_q=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-success ${t}-icon > ${r}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${r}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${r}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${r}`]:{color:e.resultWarningIconColor}}},Tq=e=>[Rq(e),_q(e)],Lq=e=>Tq(e),Dq=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),kq=Ot("Result",e=>{const t=e.colorInfo,r=e.colorError,n=e.colorSuccess,o=e.colorWarning,i=xt(e,{resultInfoIconColor:t,resultErrorIconColor:r,resultSuccessIconColor:n,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[Lq(i)]},Dq),Hq=()=>a.createElement("svg",{width:"251",height:"294"},a.createElement("title",null,"Unauthorized"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),a.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),a.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),a.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),a.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),a.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),a.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),a.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),a.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),a.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),a.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),a.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),a.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),a.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),a.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),a.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),a.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),a.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),a.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),a.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),a.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),a.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),a.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),a.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),a.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),a.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),a.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),a.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),a.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),a.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),a.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),a.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),a.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),a.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),a.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),a.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),a.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),a.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),a.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),jq=Hq,Bq={success:ya,error:Mo,info:Zo,warning:oq},Ql={404:Mq,500:Pq,403:jq},zq=Object.keys(Ql),Fq=e=>{let{prefixCls:t,icon:r,status:n}=e;const o=G(`${t}-icon`);if(zq.includes(`${n}`)){const l=Ql[n];return a.createElement("div",{className:`${o} ${t}-image`},a.createElement(l,null))}const i=a.createElement(Bq[n]);return r===null||r===!1?null:a.createElement("div",{className:o},r||i)},Aq=e=>{let{prefixCls:t,extra:r}=e;return r?a.createElement("div",{className:`${t}-extra`},r):null},Na=e=>{let{prefixCls:t,className:r,rootClassName:n,subTitle:o,title:i,style:l,children:s,status:c="info",icon:u,extra:d}=e;const{getPrefixCls:f,direction:m,result:g}=a.useContext(ke),p=f("result",t),[h,v,C]=kq(p),b=G(p,`${p}-${c}`,r,g==null?void 0:g.className,n,{[`${p}-rtl`]:m==="rtl"},v,C),y=Object.assign(Object.assign({},g==null?void 0:g.style),l);return h(a.createElement("div",{className:b,style:y},a.createElement(Fq,{prefixCls:p,status:c,icon:u}),a.createElement("div",{className:`${p}-title`},i),o&&a.createElement("div",{className:`${p}-subtitle`},o),a.createElement(Aq,{prefixCls:p,extra:d}),s&&a.createElement("div",{className:`${p}-content`},s)))};Na.PRESENTED_IMAGE_403=Ql[403];Na.PRESENTED_IMAGE_404=Ql[404];Na.PRESENTED_IMAGE_500=Ql[500];const Vq=e=>{const{value:t,formatter:r,precision:n,decimalSeparator:o,groupSeparator:i="",prefixCls:l}=e;let s;if(typeof r=="function")s=r(t);else{const c=String(t),u=c.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u||c==="-")s=c;else{const d=u[1];let f=u[2]||"0",m=u[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof n=="number"&&(m=m.padEnd(n,"0").slice(0,n>0?n:0)),m&&(m=`${o}${m}`),s=[a.createElement("span",{key:"int",className:`${l}-content-value-int`},d,f),m&&a.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},m)]}}return a.createElement("span",{className:`${l}-content-value`},s)},Wq=Vq,Kq=e=>{const{componentCls:t,marginXXS:r,padding:n,colorTextDescription:o,titleFontSize:i,colorTextHeading:l,contentFontSize:s,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},Mt(e)),{[`${t}-title`]:{marginBottom:r,color:o,fontSize:i},[`${t}-skeleton`]:{paddingTop:n},[`${t}-content`]:{color:l,fontSize:s,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:r},[`${t}-content-suffix`]:{marginInlineStart:r}}})}},qq=e=>{const{fontSizeHeading3:t,fontSize:r}=e;return{titleFontSize:r,contentFontSize:t}},Gq=Ot("Statistic",e=>{const t=xt(e,{});return[Kq(t)]},qq);var Xq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:r,rootClassName:n,style:o,valueStyle:i,value:l=0,title:s,valueRender:c,prefix:u,suffix:d,loading:f=!1,formatter:m,precision:g,decimalSeparator:p=".",groupSeparator:h=",",onMouseEnter:v,onMouseLeave:C}=e,b=Xq(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:y,direction:S,statistic:x}=a.useContext(ke),$=y("statistic",t),[w,I,E]=Gq($),O=a.createElement(Wq,{decimalSeparator:p,groupSeparator:h,prefixCls:$,formatter:m,precision:g,value:l}),M=G($,{[`${$}-rtl`]:S==="rtl"},x==null?void 0:x.className,r,n,I,E),N=en(b,{aria:!0,data:!0});return w(a.createElement("div",Object.assign({},N,{className:M,style:Object.assign(Object.assign({},x==null?void 0:x.style),o),onMouseEnter:v,onMouseLeave:C}),s&&a.createElement("div",{className:`${$}-title`},s),a.createElement(rr,{paragraph:!1,loading:f,className:`${$}-skeleton`},a.createElement("div",{style:i,className:`${$}-content`},u&&a.createElement("span",{className:`${$}-content-prefix`},u),c?c(O):O,d&&a.createElement("span",{className:`${$}-content-suffix`},d)))))},Uq=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Yq(e,t){let r=e;const n=/\[[^\]]*]/g,o=(t.match(n)||[]).map(c=>c.slice(1,-1)),i=t.replace(n,"[]"),l=Uq.reduce((c,u)=>{let[d,f]=u;if(c.includes(d)){const m=Math.floor(r/f);return r-=m*f,c.replace(new RegExp(`${d}+`,"g"),g=>{const p=g.length;return m.toString().padStart(p,"0")})}return c},i);let s=0;return l.replace(n,()=>{const c=o[s];return s+=1,c})}function Zq(e,t){const{format:r=""}=t,n=new Date(e).getTime(),o=Date.now(),i=Math.max(n-o,0);return Yq(i,r)}var Qq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{value:t,format:r="HH:mm:ss",onChange:n,onFinish:o}=e,i=Qq(e,["value","format","onChange","onFinish"]),l=Ac(),s=a.useRef(null),c=()=>{o==null||o(),s.current&&(clearInterval(s.current),s.current=null)},u=()=>{const m=eG(t);m>=Date.now()&&(s.current=setInterval(()=>{l(),n==null||n(m-Date.now()),m(u(),()=>{s.current&&(clearInterval(s.current),s.current=null)}),[t]);const d=(m,g)=>Zq(m,Object.assign(Object.assign({},g),{format:r})),f=m=>cn(m,{title:void 0});return a.createElement(Su,Object.assign({},i,{value:t,valueRender:f,formatter:d}))},nG=a.memo(tG);Su.Countdown=nG;var rG=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function lh(e){return typeof e=="string"}function U6(e){var t,r=e.className,n=e.prefixCls,o=e.style,i=e.active,l=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,m=e.title,g=e.subTitle,p=e.progressDot,h=e.stepIcon,v=e.tailContent,C=e.icons,b=e.stepIndex,y=e.onStepClick,S=e.onClick,x=e.render,$=ut(e,rG),w=!!y&&!d,I={};w&&(I.role="button",I.tabIndex=0,I.onClick=function(P){S==null||S(P),y(b)},I.onKeyDown=function(P){var T=P.which;(T===we.ENTER||T===we.SPACE)&&y(b)});var E=function(){var T,_,R=G("".concat(n,"-icon"),"".concat(s,"icon"),(T={},F(T,"".concat(s,"icon-").concat(c),c&&lh(c)),F(T,"".concat(s,"icon-check"),!c&&l==="finish"&&(C&&!C.finish||!C)),F(T,"".concat(s,"icon-cross"),!c&&l==="error"&&(C&&!C.error||!C)),T)),D=a.createElement("span",{className:"".concat(n,"-icon-dot")});return p?typeof p=="function"?_=a.createElement("span",{className:"".concat(n,"-icon")},p(D,{index:u-1,status:l,title:m,description:f})):_=a.createElement("span",{className:"".concat(n,"-icon")},D):c&&!lh(c)?_=a.createElement("span",{className:"".concat(n,"-icon")},c):C&&C.finish&&l==="finish"?_=a.createElement("span",{className:"".concat(n,"-icon")},C.finish):C&&C.error&&l==="error"?_=a.createElement("span",{className:"".concat(n,"-icon")},C.error):c||l==="finish"||l==="error"?_=a.createElement("span",{className:R}):_=a.createElement("span",{className:"".concat(n,"-icon")},u),h&&(_=h({index:u-1,status:l,title:m,description:f,node:_})),_},O=l||"wait",M=G("".concat(n,"-item"),"".concat(n,"-item-").concat(O),r,(t={},F(t,"".concat(n,"-item-custom"),c),F(t,"".concat(n,"-item-active"),i),F(t,"".concat(n,"-item-disabled"),d===!0),t)),N=q({},o),L=a.createElement("div",ve({},$,{className:M,style:N}),a.createElement("div",ve({onClick:S},I,{className:"".concat(n,"-item-container")}),a.createElement("div",{className:"".concat(n,"-item-tail")},v),a.createElement("div",{className:"".concat(n,"-item-icon")},E()),a.createElement("div",{className:"".concat(n,"-item-content")},a.createElement("div",{className:"".concat(n,"-item-title")},m,g&&a.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(n,"-item-subtitle")},g)),f&&a.createElement("div",{className:"".concat(n,"-item-description")},f))));return x&&(L=x(L)||null),L}var oG=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function y0(e){var t,r=e.prefixCls,n=r===void 0?"rc-steps":r,o=e.style,i=o===void 0?{}:o,l=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,m=f===void 0?"horizontal":f,g=e.iconPrefix,p=g===void 0?"rc":g,h=e.status,v=h===void 0?"process":h,C=e.size,b=e.current,y=b===void 0?0:b,S=e.progressDot,x=S===void 0?!1:S,$=e.stepIcon,w=e.initial,I=w===void 0?0:w,E=e.icons,O=e.onChange,M=e.itemRender,N=e.items,L=N===void 0?[]:N,P=ut(e,oG),T=d==="navigation",_=d==="inline",R=_||x,D=_?"horizontal":c,k=_?void 0:C,H=R?"vertical":m,j=G(n,"".concat(n,"-").concat(D),l,(t={},F(t,"".concat(n,"-").concat(k),k),F(t,"".concat(n,"-label-").concat(H),D==="horizontal"),F(t,"".concat(n,"-dot"),!!R),F(t,"".concat(n,"-navigation"),T),F(t,"".concat(n,"-inline"),_),t)),V=function(W){O&&y!==W&&O(W)},A=function(W,J){var X=q({},W),Q=I+J;return v==="error"&&J===y-1&&(X.className="".concat(n,"-next-error")),X.status||(Q===y?X.status=v:Q{const{componentCls:t,customIconTop:r,customIconSize:n,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:r,width:n,height:n,fontSize:o,lineHeight:z(n)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},iG=e=>{const{componentCls:t}=e,r=`${t}-item`;return{[`${t}-horizontal`]:{[`${r}-tail`]:{transform:"translateY(-50%)"}}}},lG=e=>{const{componentCls:t,inlineDotSize:r,inlineTitleColor:n,inlineTailColor:o}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),l={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:n}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${z(i)} ${z(e.paddingXXS)} 0`,margin:`0 ${z(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:r,height:r,marginInlineStart:`calc(50% - ${z(e.calc(r).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:n,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(r).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${z(e.lineWidth)} ${e.lineType} ${o}`}},l),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${z(e.lineWidth)} ${e.lineType} ${o}`}},l),"&-error":l,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:r,height:r,marginInlineStart:`calc(50% - ${z(e.calc(r).div(2).equal())})`,top:0}},l),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:n}}}}}},sG=e=>{const{componentCls:t,iconSize:r,lineHeight:n,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(r).div(2).add(e.controlHeightLG).equal(),padding:`0 ${z(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(r).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(r).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},cG=e=>{const{componentCls:t,navContentMaxWidth:r,navArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:r},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Rn),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${z(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${z(e.lineWidth)} ${e.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${z(e.lineWidth)} ${e.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${z(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},uG=e=>{const{antCls:t,componentCls:r,iconSize:n,iconSizeSM:o,processIconColor:i,marginXXS:l,lineWidthBold:s,lineWidth:c,paddingXXS:u}=e,d=e.calc(n).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${r}-with-progress`]:{[`${r}-item`]:{paddingTop:u,[`&-process ${r}-item-container ${r}-item-icon ${r}-icon`]:{color:i}},[`&${r}-vertical > ${r}-item `]:{paddingInlineStart:u,[`> ${r}-item-container > ${r}-item-tail`]:{top:l,insetInlineStart:e.calc(n).div(2).sub(c).add(u).equal()}},[`&, &${r}-small`]:{[`&${r}-horizontal ${r}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${r}-small${r}-vertical > ${r}-item > ${r}-item-container > ${r}-item-tail`]:{insetInlineStart:e.calc(o).div(2).sub(c).add(u).equal()},[`&${r}-label-vertical ${r}-item ${r}-item-tail`]:{top:e.calc(n).div(2).add(u).equal()},[`${r}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${z(d)} !important`,height:`${z(d)} !important`}}},[`&${r}-small`]:{[`&${r}-label-vertical ${r}-item ${r}-item-tail`]:{top:e.calc(o).div(2).add(u).equal()},[`${r}-item-icon ${t}-progress-inner`]:{width:`${z(f)} !important`,height:`${z(f)} !important`}}}}},dG=e=>{const{componentCls:t,descriptionMaxWidth:r,lineHeight:n,dotCurrentSize:o,dotSize:i,motionDurationSlow:l}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${z(e.calc(r).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${z(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:z(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${l}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:r},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(o).div(2).equal(),width:o,height:o,lineHeight:z(o),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${z(e.calc(i).add(e.paddingXS).equal())} 0 ${z(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},fG=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},mG=e=>{const{componentCls:t,iconSizeSM:r,fontSizeSM:n,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:r,height:r,marginTop:0,marginBottom:0,marginInline:`0 ${z(e.marginXS)}`,fontSize:n,lineHeight:z(r),textAlign:"center",borderRadius:r},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:z(r),"&::after":{top:e.calc(r).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:e.calc(r).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:r,lineHeight:z(r),transform:"none"}}}}},gG=e=>{const{componentCls:t,iconSizeSM:r,iconSize:n}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:z(n)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${z(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${z(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),padding:`${z(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${z(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:z(r)}}}}},vG="wait",pG="process",hG="finish",CG="error",xs=(e,t)=>{const r=`${t.componentCls}-item`,n=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,l=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${r}-${e} ${r}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[n],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${r}-${e}${r}-custom ${r}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${r}-${e} > ${r}-container > ${r}-content > ${r}-title`]:{color:t[o],"&::after":{backgroundColor:t[l]}},[`${r}-${e} > ${r}-container > ${r}-content > ${r}-description`]:{color:t[i]},[`${r}-${e} > ${r}-container > ${r}-tail::after`]:{backgroundColor:t[l]}}},bG=e=>{const{componentCls:t,motionDurationSlow:r}=e,n=`${t}-item`,o=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},Ao(e))}},[`${o}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:z(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${z(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${r}, border-color ${r}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${r}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:z(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${n}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},xs(vG,e)),xs(pG,e)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:e.fontWeightStrong}}),xs(hG,e)),xs(CG,e)),{[`${n}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},yG=e=>{const{componentCls:t,motionDurationSlow:r}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${r}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},SG=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),bG(e)),yG(e)),aG(e)),mG(e)),gG(e)),iG(e)),sG(e)),dG(e)),cG(e)),fG(e)),uG(e)),lG(e))}},xG=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),$G=Ot("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:r,colorTextLightSolid:n,colorText:o,colorPrimary:i,colorTextDescription:l,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=xt(e,{processIconColor:n,processTitleColor:o,processDescriptionColor:o,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:d,waitTitleColor:l,waitDescriptionColor:l,waitTailColor:d,waitDotColor:t,finishIconColor:i,finishTitleColor:o,finishDescriptionColor:l,finishTailColor:i,finishDotColor:i,errorIconColor:n,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:r,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[SG(f)]},xG);function wG(e){return e.filter(t=>t)}function EG(e,t){if(e)return e;const r=sn(t).map(n=>{if(a.isValidElement(n)){const{props:o}=n;return Object.assign({},o)}return null});return wG(r)}var IG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{percent:t,size:r,className:n,rootClassName:o,direction:i,items:l,responsive:s=!0,current:c=0,children:u,style:d}=e,f=IG(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:m}=Si(s),{getPrefixCls:g,direction:p,steps:h}=a.useContext(ke),v=a.useMemo(()=>s&&m?"vertical":i,[m,i]),C=un(r),b=g("steps",e.prefixCls),[y,S,x]=$G(b),$=e.type==="inline",w=g("",e.iconPrefix),I=EG(l,u),E=$?void 0:t,O=Object.assign(Object.assign({},h==null?void 0:h.style),d),M=G(h==null?void 0:h.className,{[`${b}-rtl`]:p==="rtl",[`${b}-with-progress`]:E!==void 0},n,o,S,x),N={finish:a.createElement(jc,{className:`${b}-finish-icon`}),error:a.createElement(Cr,{className:`${b}-error-icon`})},L=T=>{let{node:_,status:R}=T;if(R==="process"&&E!==void 0){const D=C==="small"?32:40;return a.createElement("div",{className:`${b}-progress-icon`},a.createElement(b0,{type:"circle",percent:E,size:D,strokeWidth:4,format:()=>null}),_)}return _},P=(T,_)=>T.description?a.createElement(er,{title:T.description},_):_;return y(a.createElement(y0,Object.assign({icons:N},f,{style:O,current:c,size:C,items:I,itemRender:$?P:void 0,stepIcon:L,direction:v,prefixCls:b,iconPrefix:w,className:M})))};Y6.Step=y0.Step;const OG=Y6;var MG=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Z6=a.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-switch":n,i=e.className,l=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,g=e.onChange,p=e.onKeyDown,h=ut(e,MG),v=It(!1,{value:l,defaultValue:s}),C=ie(v,2),b=C[0],y=C[1];function S(I,E){var O=b;return c||(O=I,y(O),g==null||g(O,E)),O}function x(I){I.which===we.LEFT?S(!1,I):I.which===we.RIGHT&&S(!0,I),p==null||p(I)}function $(I){var E=S(!b,I);m==null||m(E,I)}var w=G(o,i,(r={},F(r,"".concat(o,"-checked"),b),F(r,"".concat(o,"-disabled"),c),r));return a.createElement("button",ve({},h,{type:"button",role:"switch","aria-checked":b,disabled:c,className:w,ref:t,onKeyDown:x,onClick:$}),u,a.createElement("span",{className:"".concat(o,"-inner")},a.createElement("span",{className:"".concat(o,"-inner-checked")},d),a.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Z6.displayName="Switch";const NG=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:l,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=z(c(s).add(c(n).mul(2)).equal()),f=z(c(l).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:z(r),[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:i,[`${u}-checked, ${u}-unchecked`]:{minHeight:r},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(r).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:i,paddingInlineEnd:l,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${z(c(s).add(n).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()}}}}}}},PG=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},RG=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:i,calc:l}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:l(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${z(l(i).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},_G=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:i,handleSize:l,calc:s}=e,c=`${t}-inner`,u=z(s(l).add(s(n).mul(2)).equal()),d=z(s(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,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:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${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(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},TG=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:z(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Nr(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"}})}},LG=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,i=t*r,l=n/2,s=2,c=i-s*2,u=l-s*2;return{trackHeight:i,trackHeightSM:l,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Qt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},DG=Ot("Switch",e=>{const t=xt(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[TG(t),_G(t),RG(t),PG(t),NG(t)]},LG);var kG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,size:n,disabled:o,loading:i,className:l,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:g}=e,p=kG(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,v]=It(!1,{value:u!=null?u:d,defaultValue:f!=null?f:m}),{getPrefixCls:C,direction:b,switch:y}=a.useContext(ke),S=a.useContext(Fn),x=(o!=null?o:S)||i,$=C("switch",r),w=a.createElement("div",{className:`${$}-handle`},i&&a.createElement(Fr,{className:`${$}-loading-icon`})),[I,E,O]=DG($),M=un(n),N=G(y==null?void 0:y.className,{[`${$}-small`]:M==="small",[`${$}-loading`]:i,[`${$}-rtl`]:b==="rtl"},l,s,E,O),L=Object.assign(Object.assign({},y==null?void 0:y.style),c),P=function(){v(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return I(a.createElement(Pl,{component:"Switch"},a.createElement(Z6,Object.assign({},p,{checked:h,onChange:P,prefixCls:$,className:N,style:L,disabled:x,ref:t,loadingIcon:w}))))}),Q6=HG;Q6.__ANT_SWITCH=!0;const jG=Q6;var Ho={},Jl="rc-table-internal-hook";function S0(e){var t=a.createContext(void 0),r=function(o){var i=o.value,l=o.children,s=a.useRef(i);s.current=i;var c=a.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=ie(c,1),d=u[0];return Dt(function(){ao.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),a.createElement(t.Provider,{value:d},l)};return{Context:t,Provider:r,defaultValue:e}}function Zn(e,t){var r=$t(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(g){m[g]=f[g]}),m}),n=a.useContext(e==null?void 0:e.Context),o=n||{},i=o.listeners,l=o.getValue,s=a.useRef();s.current=r(n?l():e==null?void 0:e.defaultValue);var c=a.useState({}),u=ie(c,2),d=u[1];return Dt(function(){if(!n)return;function f(m){var g=r(m);Br(s.current,g,!0)||d({})}return i.add(f),function(){i.delete(f)}},[n]),s.current}function BG(){var e=a.createContext(null);function t(){return a.useContext(e)}function r(o,i){var l=xo(o),s=function(u,d){var f=l?{ref:d}:{},m=a.useRef(0),g=a.useRef(u),p=t();return p!==null?a.createElement(o,ve({},u,f)):((!i||i(g.current,u))&&(m.current+=1),g.current=u,a.createElement(e.Provider,{value:m.current},a.createElement(o,ve({},u,f))))};return l?a.forwardRef(s):s}function n(o,i){var l=xo(o),s=function(u,d){var f=l?{ref:d}:{};return t(),a.createElement(o,ve({},u,f))};return l?a.memo(a.forwardRef(s),i):a.memo(s,i)}return{makeImmutable:r,responseImmutable:n,useImmutableMark:t}}var x0=BG(),J6=x0.makeImmutable,Pi=x0.responseImmutable,zG=x0.useImmutableMark,cr=S0(),e7=a.createContext({renderWithProps:!1}),FG="RC_TABLE_KEY";function AG(e){return e==null?[]:Array.isArray(e)?e:[e]}function xu(e){var t=[],r={};return e.forEach(function(n){for(var o=n||{},i=o.key,l=o.dataIndex,s=i||AG(l).join("-")||FG;r[s];)s="".concat(s,"_next");r[s]=!0,t.push(s)}),t}function V1(e){return e!=null}function VG(e){return e&&yt(e)==="object"&&!Array.isArray(e)&&!a.isValidElement(e)}function WG(e,t,r,n,o,i){var l=a.useContext(e7),s=zG(),c=Ml(function(){if(V1(n))return[n];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=to(e,u),f=d,m=void 0;if(o){var g=o(d,e,r);VG(g)?(f=g.children,m=g.props,l.renderWithProps=!0):f=g}return[f,m]},[s,e,n,t,o,r],function(u,d){if(i){var f=ie(u,2),m=f[1],g=ie(d,2),p=g[1];return i(p,m)}return l.renderWithProps?!0:!Br(u,d,!0)});return c}function KG(e,t,r,n){var o=e+t-1;return e<=n&&o>=r}function qG(e,t){return Zn(cr,function(r){var n=KG(e,t||1,r.hoverStartRow,r.hoverEndRow);return[n,r.onHover]})}var GG=function(t){var r=t.ellipsis,n=t.rowType,o=t.children,i,l=r===!0?{showTitle:!0}:r;return l&&(l.showTitle||n==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():a.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function XG(e){var t,r,n,o,i,l,s,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,g=e.prefixCls,p=e.className,h=e.align,v=e.record,C=e.render,b=e.dataIndex,y=e.renderIndex,S=e.shouldCellUpdate,x=e.index,$=e.rowType,w=e.colSpan,I=e.rowSpan,E=e.fixLeft,O=e.fixRight,M=e.firstFixLeft,N=e.lastFixLeft,L=e.firstFixRight,P=e.lastFixRight,T=e.appendNode,_=e.additionalProps,R=_===void 0?{}:_,D=e.isSticky,k="".concat(g,"-cell"),H=Zn(cr,["supportSticky","allColumnsFixedLeft","rowHoverable"]),j=H.supportSticky,V=H.allColumnsFixedLeft,A=H.rowHoverable,K=WG(v,b,y,d,C,S),W=ie(K,2),J=W[0],X=W[1],Q={},ee=typeof E=="number"&&j,te=typeof O=="number"&&j;ee&&(Q.position="sticky",Q.left=E),te&&(Q.position="sticky",Q.right=O);var U=(t=(r=(n=X==null?void 0:X.colSpan)!==null&&n!==void 0?n:R.colSpan)!==null&&r!==void 0?r:w)!==null&&t!==void 0?t:1,ne=(o=(i=(l=X==null?void 0:X.rowSpan)!==null&&l!==void 0?l:R.rowSpan)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:1,Z=qG(x,ne),Y=ie(Z,2),oe=Y[0],se=Y[1],ae=$t(function(he){var Se;v&&se(x,x+ne-1),R==null||(Se=R.onMouseEnter)===null||Se===void 0||Se.call(R,he)}),re=$t(function(he){var Se;v&&se(-1,-1),R==null||(Se=R.onMouseLeave)===null||Se===void 0||Se.call(R,he)});if(U===0||ne===0)return null;var ce=(s=R.title)!==null&&s!==void 0?s:GG({rowType:$,ellipsis:f,children:J}),ue=G(k,p,(c={},F(c,"".concat(k,"-fix-left"),ee&&j),F(c,"".concat(k,"-fix-left-first"),M&&j),F(c,"".concat(k,"-fix-left-last"),N&&j),F(c,"".concat(k,"-fix-left-all"),N&&V&&j),F(c,"".concat(k,"-fix-right"),te&&j),F(c,"".concat(k,"-fix-right-first"),L&&j),F(c,"".concat(k,"-fix-right-last"),P&&j),F(c,"".concat(k,"-ellipsis"),f),F(c,"".concat(k,"-with-append"),T),F(c,"".concat(k,"-fix-sticky"),(ee||te)&&D&&j),F(c,"".concat(k,"-row-hover"),!X&&oe),c),R.className,X==null?void 0:X.className),fe={};h&&(fe.textAlign=h);var be=q(q(q(q({},Q),R.style),fe),X==null?void 0:X.style),de=J;return yt(de)==="object"&&!Array.isArray(de)&&!a.isValidElement(de)&&(de=null),f&&(N||L)&&(de=a.createElement("span",{className:"".concat(k,"-content")},de)),a.createElement(u,ve({},X,R,{className:ue,style:be,title:ce,scope:m,onMouseEnter:A?ae:void 0,onMouseLeave:A?re:void 0,colSpan:U!==1?U:null,rowSpan:ne!==1?ne:null}),T,de)}const Pa=a.memo(XG);function $0(e,t,r,n,o){var i=r[e]||{},l=r[t]||{},s,c;i.fixed==="left"?s=n.left[o==="rtl"?t:e]:l.fixed==="right"&&(c=n.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,g=r[t+1],p=r[e-1],h=g&&!g.fixed||p&&!p.fixed||r.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(s!==void 0){var v=p&&p.fixed==="left";m=!v&&h}else if(c!==void 0){var C=g&&g.fixed==="right";f=!C&&h}}else if(s!==void 0){var b=g&&g.fixed==="left";u=!b&&h}else if(c!==void 0){var y=p&&p.fixed==="right";d=!y&&h}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:n.isSticky}}var t7=a.createContext({});function UG(e){var t=e.className,r=e.index,n=e.children,o=e.colSpan,i=o===void 0?1:o,l=e.rowSpan,s=e.align,c=Zn(cr,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=a.useContext(t7),m=f.scrollColumnIndex,g=f.stickyOffsets,p=f.flattenColumns,h=r+i-1,v=h+1===m?i+1:i,C=$0(r,r+v-1,p,g,d);return a.createElement(Pa,ve({className:t,index:r,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:l,render:function(){return n}},C))}var YG=["children"];function ZG(e){var t=e.children,r=ut(e,YG);return a.createElement("tr",r,t)}function $u(e){var t=e.children;return t}$u.Row=ZG;$u.Cell=UG;function QG(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,o=Zn(cr,"prefixCls"),i=n.length-1,l=n[i],s=a.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:l!=null&&l.scrollbar?i:null}},[l,n,i,r]);return a.createElement(t7.Provider,{value:s},a.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const $s=Pi(QG);var n7=$u;function JG(e){return null}function eX(e){return null}function r7(e,t,r,n,o,i,l){e.push({record:t,indent:r,index:l});var s=i(t),c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[n])&&c)for(var u=0;u1?M-1:0),L=1;L=1?x:""),style:q(q({},r),C==null?void 0:C.style)}),p.map(function(E,O){var M=E.render,N=E.dataIndex,L=E.className,P=l7(m,E,O,c,o),T=P.key,_=P.fixedInfo,R=P.appendCellNode,D=P.additionalCellProps;return a.createElement(Pa,ve({className:L,ellipsis:E.ellipsis,align:E.align,scope:E.rowScope,component:E.rowScope?f:d,prefixCls:g,key:T,record:n,index:o,renderIndex:i,dataIndex:N,render:M,shouldCellUpdate:E.shouldCellUpdate},_,{appendNode:R,additionalProps:D}))})),w;if(y&&(S.current||b)){var I=v(n,o,c+1,b);w=a.createElement(i7,{expanded:b,className:G("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),x),prefixCls:g,component:u,cellComponent:d,colSpan:p.length,isEmpty:!1},I)}return a.createElement(a.Fragment,null,$,w)}const nX=Pi(tX);function rX(e){var t=e.columnKey,r=e.onColumnResize,n=a.useRef();return a.useEffect(function(){n.current&&r(t,n.current.offsetWidth)},[]),a.createElement(Nn,{data:t},a.createElement("td",{ref:n,style:{padding:0,border:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function oX(e){var t=e.prefixCls,r=e.columnsKey,n=e.onColumnResize;return a.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},a.createElement(Nn.Collection,{onBatchResize:function(i){i.forEach(function(l){var s=l.data,c=l.size;n(s,c.offsetWidth)})}},r.map(function(o){return a.createElement(rX,{key:o,columnKey:o,onColumnResize:n})})))}function aX(e){var t=e.data,r=e.measureColumnWidth,n=Zn(cr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=n.prefixCls,i=n.getComponent,l=n.onColumnResize,s=n.flattenColumns,c=n.getRowKey,u=n.expandedKeys,d=n.childrenColumnName,f=n.emptyNode,m=o7(t,d,u,c),g=a.useRef({renderWithProps:!1}),p=i(["body","wrapper"],"tbody"),h=i(["body","row"],"tr"),v=i(["body","cell"],"td"),C=i(["body","cell"],"th"),b;t.length?b=m.map(function(S,x){var $=S.record,w=S.indent,I=S.index,E=c($,x);return a.createElement(nX,{key:E,rowKey:E,record:$,index:x,renderIndex:I,rowComponent:h,cellComponent:v,scopeCellComponent:C,getRowKey:c,indent:w})}):b=a.createElement(i7,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:h,cellComponent:v,colSpan:s.length,isEmpty:!0},f);var y=xu(s);return a.createElement(e7.Provider,{value:g.current},a.createElement(p,{className:"".concat(o,"-tbody")},r&&a.createElement(oX,{prefixCls:o,columnsKey:y,onColumnResize:l}),b))}const iX=Pi(aX);var lX=["expandable"],al="RC_TABLE_INTERNAL_COL_DEFINE";function sX(e){var t=e.expandable,r=ut(e,lX),n;return"expandable"in e?n=q(q({},r),t):n=r,n.showExpandColumn===!1&&(n.expandIconColumnIndex=-1),n}var cX=["columnType"];function s7(e){for(var t=e.colWidths,r=e.columns,n=e.columCount,o=[],i=n||r.length,l=!1,s=i-1;s>=0;s-=1){var c=t[s],u=r&&r[s],d=u&&u[al];if(c||d||l){var f=d||{};f.columnType;var m=ut(f,cX);o.unshift(a.createElement("col",ve({key:s,style:{width:c}},m))),l=!0}}return a.createElement("colgroup",null,o)}var uX=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function dX(e,t){return a.useMemo(function(){for(var r=[],n=0;n1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:l,prefixCls:d,key:g[h]},C,{additionalProps:b,rowType:"header"}))}))};function gX(e){var t=[];function r(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=l.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,p=f.children;return p&&p.length>0&&(g=r(p,u,c+1).reduce(function(h,v){return h+v},0),m.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return d}r(e,0);for(var n=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=n-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function pX(e,t,r){return a.useMemo(function(){if(t&&t>0){var n=0,o=0;e.forEach(function(m){var g=uh(t,m.width);g?n+=g:o+=1});var i=Math.max(t,r),l=Math.max(i-n,o),s=o,c=l/o,u=0,d=e.map(function(m){var g=q({},m),p=uh(t,g.width);if(p)g.width=p;else{var h=Math.floor(c);g.width=s===1?l:h,l-=h,s-=1}return u+=g.width,g});if(u0?q(q({},t),{},{children:c7(r)}):t})}function W1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&&yt(r)==="object"}).reduce(function(r,n,o){var i=n.fixed,l=i===!0?"left":i,s="".concat(t,"-").concat(o),c=n.children;return c&&c.length>0?[].concat(ye(r),ye(W1(c,s).map(function(u){return q({fixed:l},u)}))):[].concat(ye(r),[q(q({key:s},n),{},{fixed:l})])},[])}function bX(e){return e.map(function(t){var r=t.fixed,n=ut(t,CX),o=r;return r==="left"?o="right":r==="right"&&(o="left"),q({fixed:o},n)})}function yX(e,t){var r=e.prefixCls,n=e.columns,o=e.children,i=e.expandable,l=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,p=e.expandRowByClick,h=e.columnWidth,v=e.fixed,C=e.scrollWidth,b=e.clientWidth,y=a.useMemo(function(){var N=n||w0(o)||[];return c7(N.slice())},[n,o]),S=a.useMemo(function(){if(i){var N,L=y.slice();if(!L.includes(Ho)){var P=m||0;P>=0&&L.splice(P,0,Ho)}var T=L.indexOf(Ho);L=L.filter(function(k,H){return k!==Ho||H===T});var _=y[T],R;(v==="left"||v)&&!m?R="left":(v==="right"||v)&&m===y.length?R="right":R=_?_.fixed:null;var D=(N={},F(N,al,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),F(N,"title",s),F(N,"fixed",R),F(N,"className","".concat(r,"-row-expand-icon-cell")),F(N,"width",h),F(N,"render",function(H,j,V){var A=c(j,V),K=l.has(A),W=f?f(j):!0,J=d({prefixCls:r,expanded:K,expandable:W,record:j,onExpand:u});return p?a.createElement("span",{onClick:function(Q){return Q.stopPropagation()}},J):J}),N);return L.map(function(k){return k===Ho?D:k})}return y.filter(function(k){return k!==Ho})},[i,y,c,l,d,g]),x=a.useMemo(function(){var N=S;return t&&(N=t(N)),N.length||(N=[{render:function(){return null}}]),N},[t,S,g]),$=a.useMemo(function(){return g==="rtl"?bX(W1(x)):W1(x)},[x,g,C]),w=a.useMemo(function(){for(var N=-1,L=$.length-1;L>=0;L-=1){var P=$[L].fixed;if(P==="left"||P===!0){N=L;break}}if(N>=0)for(var T=0;T<=N;T+=1){var _=$[T].fixed;if(_!=="left"&&_!==!0)return!0}var R=$.findIndex(function(H){var j=H.fixed;return j==="right"});if(R>=0)for(var D=R;D<$.length;D+=1){var k=$[D].fixed;if(k!=="right")return!0}return!1},[$]),I=pX($,C,b),E=ie(I,2),O=E[0],M=E[1];return[x,O,M,w]}function SX(e){var t,r=e.prefixCls,n=e.record,o=e.onExpand,i=e.expanded,l=e.expandable,s="".concat(r,"-row-expand-icon");if(!l)return a.createElement("span",{className:G(s,"".concat(r,"-row-spaced"))});var c=function(d){o(n,d),d.stopPropagation()};return a.createElement("span",{className:G(s,(t={},F(t,"".concat(r,"-row-expanded"),i),F(t,"".concat(r,"-row-collapsed"),!i),t)),onClick:c})}function xX(e,t,r){var n=[];function o(i){(i||[]).forEach(function(l,s){n.push(t(l,s)),o(l[r])})}return o(e),n}function $X(e,t,r){var n=sX(e),o=n.expandIcon,i=n.expandedRowKeys,l=n.defaultExpandedRowKeys,s=n.defaultExpandAllRows,c=n.expandedRowRender,u=n.onExpand,d=n.onExpandedRowsChange,f=n.childrenColumnName,m=o||SX,g=f||"children",p=a.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Jl&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(x){return x&&yt(x)==="object"&&x[g]})?"nest":!1},[!!c,t]),h=a.useState(function(){return l||(s?xX(t,r,g):[])}),v=ie(h,2),C=v[0],b=v[1],y=a.useMemo(function(){return new Set(i||C||[])},[i,C]),S=a.useCallback(function(x){var $=r(x,t.indexOf(x)),w,I=y.has($);I?(y.delete($),w=ye(y)):w=[].concat(ye(y),[$]),b(w),u&&u(!I,x),d&&d(w)},[r,y,t,u,d]);return[n,p,y,m,g,S]}function wX(e,t,r){var n=e.map(function(o,i){return $0(i,i,e,t,r)});return Ml(function(){return n},[n],function(o,i){return!Br(o,i)})}function u7(e){var t=a.useRef(e),r=a.useState({}),n=ie(r,2),o=n[1],i=a.useRef(null),l=a.useRef([]);function s(c){l.current.push(c);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=l.current,f=t.current;l.current=[],d.forEach(function(m){t.current=m(t.current)}),i.current=null,f!==t.current&&o({})}})}return a.useEffect(function(){return function(){i.current=null}},[]),[t.current,s]}function EX(e){var t=a.useRef(e||null),r=a.useRef();function n(){window.clearTimeout(r.current)}function o(l){t.current=l,n(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function i(){return t.current}return a.useEffect(function(){return n},[]),[o,i]}function IX(){var e=a.useState(-1),t=ie(e,2),r=t[0],n=t[1],o=a.useState(-1),i=ie(o,2),l=i[0],s=i[1],c=a.useCallback(function(u,d){n(u),s(d)},[]);return[r,l,c]}var dh=oo()?window:null;function OX(e,t){var r=yt(e)==="object"?e:{},n=r.offsetHeader,o=n===void 0?0:n,i=r.offsetSummary,l=i===void 0?0:i,s=r.offsetScroll,c=s===void 0?0:s,u=r.getContainer,d=u===void 0?function(){return dh}:u,f=d()||dh;return a.useMemo(function(){var m=!!e;return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:l,offsetScroll:c,container:f}},[c,o,l,t,f])}function MX(e,t,r){var n=a.useMemo(function(){var o=t.length,i=function(u,d,f){for(var m=[],g=0,p=u;p!==d;p+=f)m.push(g),t[p].fixed&&(g+=e[p]||0);return m},l=i(0,o,1),s=i(o-1,-1,-1).reverse();return r==="rtl"?{left:s,right:l}:{left:l,right:s}},[e,t,r]);return n}function fh(e){var t=e.className,r=e.children;return a.createElement("div",{className:t},r)}var NX=function(t,r){var n,o,i=t.scrollBodyRef,l=t.onScroll,s=t.offsetScroll,c=t.container,u=Zn(cr,"prefixCls"),d=((n=i.current)===null||n===void 0?void 0:n.scrollWidth)||0,f=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,m=d&&f*(f/d),g=a.useRef(),p=u7({scrollLeft:0,isHiddenScrollBar:!1}),h=ie(p,2),v=h[0],C=h[1],b=a.useRef({delta:0,x:0}),y=a.useState(!1),S=ie(y,2),x=S[0],$=S[1],w=a.useRef(null);a.useEffect(function(){return function(){kt.cancel(w.current)}},[]);var I=function(){$(!1)},E=function(P){P.persist(),b.current.delta=P.pageX-v.scrollLeft,b.current.x=0,$(!0),P.preventDefault()},O=function(P){var T,_=P||((T=window)===null||T===void 0?void 0:T.event),R=_.buttons;if(!x||R===0){x&&$(!1);return}var D=b.current.x+P.pageX-b.current.x-b.current.delta;D<=0&&(D=0),D+m>=f&&(D=f-m),l({scrollLeft:D/f*(d+2)}),b.current.x=P.pageX},M=function(){w.current=kt(function(){if(i.current){var P=z1(i.current).top,T=P+i.current.offsetHeight,_=c===window?document.documentElement.scrollTop+window.innerHeight:z1(c).top+c.clientHeight;T-Sg()<=_||P>=_-s?C(function(R){return q(q({},R),{},{isHiddenScrollBar:!0})}):C(function(R){return q(q({},R),{},{isHiddenScrollBar:!1})})}})},N=function(P){C(function(T){return q(q({},T),{},{scrollLeft:P/d*f||0})})};return a.useImperativeHandle(r,function(){return{setScrollLeft:N,checkScrollBarVisible:M}}),a.useEffect(function(){var L=no(document.body,"mouseup",I,!1),P=no(document.body,"mousemove",O,!1);return M(),function(){L.remove(),P.remove()}},[m,x]),a.useEffect(function(){var L=no(c,"scroll",M,!1),P=no(window,"resize",M,!1);return function(){L.remove(),P.remove()}},[c]),a.useEffect(function(){v.isHiddenScrollBar||C(function(L){var P=i.current;return P?q(q({},L),{},{scrollLeft:P.scrollLeft/P.scrollWidth*P.clientWidth}):L})},[v.isHiddenScrollBar]),d<=f||!m||v.isHiddenScrollBar?null:a.createElement("div",{style:{height:Sg(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},a.createElement("div",{onMouseDown:E,ref:g,className:G("".concat(u,"-sticky-scroll-bar"),F({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const PX=a.forwardRef(NX);var d7="rc-table",RX=[],_X={};function TX(){return"No Data"}function LX(e,t){var r,n=q({rowKey:"key",prefixCls:d7,emptyText:TX},e),o=n.prefixCls,i=n.className,l=n.rowClassName,s=n.style,c=n.data,u=n.rowKey,d=n.scroll,f=n.tableLayout,m=n.direction,g=n.title,p=n.footer,h=n.summary,v=n.caption,C=n.id,b=n.showHeader,y=n.components,S=n.emptyText,x=n.onRow,$=n.onHeaderRow,w=n.onScroll,I=n.internalHooks,E=n.transformColumns,O=n.internalRefs,M=n.tailor,N=n.getContainerWidth,L=n.sticky,P=n.rowHoverable,T=P===void 0?!0:P,_=c||RX,R=!!_.length,D=I===Jl,k=a.useCallback(function(ct,Pt){return to(y,ct)||Pt},[y]),H=a.useMemo(function(){return typeof u=="function"?u:function(ct){var Pt=ct&&ct[u];return Pt}},[u]),j=k(["body"]),V=IX(),A=ie(V,3),K=A[0],W=A[1],J=A[2],X=$X(n,_,H),Q=ie(X,6),ee=Q[0],te=Q[1],U=Q[2],ne=Q[3],Z=Q[4],Y=Q[5],oe=d==null?void 0:d.x,se=a.useState(0),ae=ie(se,2),re=ae[0],ce=ae[1],ue=yX(q(q(q({},n),ee),{},{expandable:!!ee.expandedRowRender,columnTitle:ee.columnTitle,expandedKeys:U,getRowKey:H,onTriggerExpand:Y,expandIcon:ne,expandIconColumnIndex:ee.expandIconColumnIndex,direction:m,scrollWidth:D&&M&&typeof oe=="number"?oe:null,clientWidth:re}),D?E:null),fe=ie(ue,4),be=fe[0],de=fe[1],he=fe[2],Se=fe[3],$e=he!=null?he:oe,Ne=a.useMemo(function(){return{columns:be,flattenColumns:de}},[be,de]),xe=a.useRef(),Pe=a.useRef(),Ie=a.useRef(),_e=a.useRef();a.useImperativeHandle(t,function(){return{nativeElement:xe.current,scrollTo:function(Pt){var Wt;if(Ie.current instanceof HTMLElement){var $n=Pt.index,vn=Pt.top,Xn=Pt.key;if(vn){var Jn;(Jn=Ie.current)===null||Jn===void 0||Jn.scrollTo({top:vn})}else{var yr,Qr=Xn!=null?Xn:H(_[$n]);(yr=Ie.current.querySelector('[data-row-key="'.concat(Qr,'"]')))===null||yr===void 0||yr.scrollIntoView()}}else(Wt=Ie.current)!==null&&Wt!==void 0&&Wt.scrollTo&&Ie.current.scrollTo(Pt)}}});var Re=a.useRef(),Me=a.useState(!1),me=ie(Me,2),Ce=me[0],pe=me[1],ge=a.useState(!1),Oe=ie(ge,2),nt=Oe[0],Ve=Oe[1],Ze=u7(new Map),Le=ie(Ze,2),Ke=Le[0],Qe=Le[1],ot=xu(de),Xe=ot.map(function(ct){return Ke.get(ct)}),We=a.useMemo(function(){return Xe},[Xe.join("_")]),je=MX(We,de,m),at=d&&V1(d.y),Te=d&&V1($e)||!!ee.fixed,Ue=Te&&de.some(function(ct){var Pt=ct.fixed;return Pt}),De=a.useRef(),ze=OX(L,o),Je=ze.isSticky,dt=ze.offsetHeader,it=ze.offsetSummary,qe=ze.offsetScroll,Fe=ze.stickyClassName,Ge=ze.container,Ye=a.useMemo(function(){return h==null?void 0:h(_)},[h,_]),tt=(at||Je)&&a.isValidElement(Ye)&&Ye.type===$u&&Ye.props.fixed,mt,lt,ft;at&&(lt={overflowY:"scroll",maxHeight:d.y}),Te&&(mt={overflowX:"auto"},at||(lt={overflowY:"hidden"}),ft={width:$e===!0?"auto":$e,minWidth:"100%"});var gt=a.useCallback(function(ct,Pt){hi(xe.current)&&Qe(function(Wt){if(Wt.get(ct)!==Pt){var $n=new Map(Wt);return $n.set(ct,Pt),$n}return Wt})},[]),et=EX(null),rt=ie(et,2),Ae=rt[0],He=rt[1];function st(ct,Pt){Pt&&(typeof Pt=="function"?Pt(ct):Pt.scrollLeft!==ct&&(Pt.scrollLeft=ct,Pt.scrollLeft!==ct&&setTimeout(function(){Pt.scrollLeft=ct},0)))}var bt=$t(function(ct){var Pt=ct.currentTarget,Wt=ct.scrollLeft,$n=m==="rtl",vn=typeof Wt=="number"?Wt:Pt.scrollLeft,Xn=Pt||_X;if(!He()||He()===Xn){var Jn;Ae(Xn),st(vn,Pe.current),st(vn,Ie.current),st(vn,Re.current),st(vn,(Jn=De.current)===null||Jn===void 0?void 0:Jn.setScrollLeft)}var yr=Pt||Pe.current;if(yr){var Qr=yr.scrollWidth,ea=yr.clientWidth;if(Qr===ea){pe(!1),Ve(!1);return}$n?(pe(-vn0)):(pe(vn>0),Ve(vn1?v-P:0,_=q(q(q({},I),u),{},{flex:"0 0 ".concat(P,"px"),width:"".concat(P,"px"),marginRight:T,pointerEvents:"auto"}),R=a.useMemo(function(){return f?N<=1:O===0||N===0||N>1},[N,O,f]);R?_.visibility="hidden":f&&(_.height=m==null?void 0:m(N));var D=R?function(){return null}:g,k={};return(N===0||O===0)&&(k.rowSpan=1,k.colSpan=1),a.createElement(Pa,ve({className:G(h,d),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:l,prefixCls:t.prefixCls,key:S,record:c,index:i,renderIndex:s,dataIndex:p,render:D,shouldCellUpdate:r.shouldCellUpdate},x,{appendNode:$,additionalProps:q(q({},w),{},{style:_},k)}))}var jX=["data","index","className","rowKey","style","extra","getHeight"],BX=a.forwardRef(function(e,t){var r=e.data,n=e.index,o=e.className,i=e.rowKey,l=e.style,s=e.extra,c=e.getHeight,u=ut(e,jX),d=r.record,f=r.indent,m=r.index,g=Zn(cr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=g.scrollX,h=g.flattenColumns,v=g.prefixCls,C=g.fixColumn,b=g.componentWidth,y=Zn(E0,["getComponent"]),S=y.getComponent,x=a7(d,i,n,f),$=S(["body","row"],"div"),w=S(["body","cell"],"div"),I=x.rowSupportExpand,E=x.expanded,O=x.rowProps,M=x.expandedRowRender,N=x.expandedRowClassName,L;if(I&&E){var P=M(d,n,f+1,E),T=N==null?void 0:N(d,n,f),_={};C&&(_={style:F({},"--virtual-width","".concat(b,"px"))});var R="".concat(v,"-expanded-row-cell");L=a.createElement($,{className:G("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),T)},a.createElement(Pa,{component:w,prefixCls:v,className:G(R,F({},"".concat(R,"-fixed"),C)),additionalProps:_},P))}var D=q(q({},l),{},{width:p});s&&(D.position="absolute",D.pointerEvents="none");var k=a.createElement($,ve({},O,u,{"data-row-key":i,ref:I?null:t,className:G(o,"".concat(v,"-row"),O==null?void 0:O.className,F({},"".concat(v,"-row-extra"),s)),style:q(q({},D),O==null?void 0:O.style)}),h.map(function(H,j){return a.createElement(HX,{key:j,component:w,rowInfo:x,column:H,colIndex:j,indent:f,index:n,renderIndex:m,record:d,inverse:s,getHeight:c})}));return I?a.createElement("div",{ref:t},k,L):k}),mh=Pi(BX),zX=a.forwardRef(function(e,t){var r=e.data,n=e.onScroll,o=Zn(cr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=o.flattenColumns,l=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.emptyNode,m=o.scrollX,g=Zn(E0),p=g.sticky,h=g.scrollY,v=g.listItemHeight,C=g.getComponent,b=g.onScroll,y=a.useRef(),S=o7(r,d,c,s),x=a.useMemo(function(){var _=0;return i.map(function(R){var D=R.width,k=R.key;return _+=D,[k,D,_]})},[i]),$=a.useMemo(function(){return x.map(function(_){return _[2]})},[x]);a.useEffect(function(){x.forEach(function(_){var R=ie(_,2),D=R[0],k=R[1];l(D,k)})},[x]),a.useImperativeHandle(t,function(){var _={scrollTo:function(D){var k;(k=y.current)===null||k===void 0||k.scrollTo(D)}};return Object.defineProperty(_,"scrollLeft",{get:function(){var D;return((D=y.current)===null||D===void 0?void 0:D.getScrollInfo().x)||0},set:function(D){var k;(k=y.current)===null||k===void 0||k.scrollTo({left:D})}}),_});var w=function(R,D){var k,H=(k=S[D])===null||k===void 0?void 0:k.record,j=R.onCell;if(j){var V,A=j(H,D);return(V=A==null?void 0:A.rowSpan)!==null&&V!==void 0?V:1}return 1},I=function(R){var D=R.start,k=R.end,H=R.getSize,j=R.offsetY;if(k<0)return null;for(var V=i.filter(function(Y){return w(Y,D)===0}),A=D,K=function(oe){if(V=V.filter(function(se){return w(se,oe)===0}),!V.length)return A=oe,1},W=D;W>=0&&!K(W);W-=1);for(var J=i.filter(function(Y){return w(Y,k)!==1}),X=k,Q=function(oe){if(J=J.filter(function(se){return w(se,oe)!==1}),!J.length)return X=Math.max(oe-1,k),1},ee=k;ee1})&&te.push(oe)},ne=A;ne<=X;ne+=1)U(ne);var Z=te.map(function(Y){var oe=S[Y],se=s(oe.record,Y),ae=function(ue){var fe=Y+ue-1,be=s(S[fe].record,fe),de=H(se,be);return de.bottom-de.top},re=H(se);return a.createElement(mh,{key:Y,data:oe,rowKey:se,index:Y,style:{top:-j+re.top},extra:!0,getHeight:ae})});return Z},E=a.useMemo(function(){return{columnsOffset:$}},[$]),O="".concat(u,"-tbody"),M=C(["body","wrapper"]),N=C(["body","row"],"div"),L=C(["body","cell"],"div"),P;if(S.length){var T={};p&&(T.position="sticky",T.bottom=0,yt(p)==="object"&&p.offsetScroll&&(T.bottom=p.offsetScroll)),P=a.createElement(Hl,{fullHeight:!1,ref:y,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:T},className:O,height:h,itemHeight:v||24,data:S,itemKey:function(R){return s(R.record)},component:M,scrollWidth:m,onVirtualScroll:function(R){var D=R.x;n({scrollLeft:D})},onScroll:b,extraRender:I},function(_,R,D){var k=s(_.record,R);return a.createElement(mh,{data:_,rowKey:k,index:R,style:D.style})})}else P=a.createElement(N,{className:G("".concat(u,"-placeholder"))},a.createElement(Pa,{component:L,prefixCls:u},f));return a.createElement(m7.Provider,{value:E},P)}),FX=Pi(zX),AX=function(t,r){var n=r.ref,o=r.onScroll;return a.createElement(FX,{ref:n,data:t,onScroll:o})};function VX(e,t){var r=e.columns,n=e.scroll,o=e.sticky,i=e.prefixCls,l=i===void 0?d7:i,s=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=n||{},m=f.x,g=f.y;typeof m!="number"&&(m=1),typeof g!="number"&&(g=500);var p=$t(function(C,b){return to(u,C)||b}),h=$t(d),v=a.useMemo(function(){return{sticky:o,scrollY:g,listItemHeight:c,getComponent:p,onScroll:h}},[o,g,c,p,h]);return a.createElement(E0.Provider,{value:v},a.createElement(Ri,ve({},e,{className:G(s,"".concat(l,"-virtual")),scroll:q(q({},n),{},{x:m}),components:q(q({},u),{},{body:AX}),columns:r,internalHooks:Jl,tailor:!0,ref:t})))}var WX=a.forwardRef(VX);function g7(e){return J6(WX,e)}g7();const KX=e=>null,qX=KX,GX=e=>null,XX=GX;var I0=a.createContext(null),UX=function(t){for(var r=t.prefixCls,n=t.level,o=t.isStart,i=t.isEnd,l="".concat(r,"-indent-unit"),s=[],c=0;c=0&&r.splice(n,1),r}function yo(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function O0(e){return e.split("-")}function eU(e,t){var r=[],n=ir(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(l){var s=l.key,c=l.children;r.push(s),o(c)})}return o(n.children),r}function tU(e){if(e.parent){var t=O0(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function nU(e){var t=O0(e.pos);return Number(t[t.length-1])===0}function ph(e,t,r,n,o,i,l,s,c,u){var d,f=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),p=g.top,h=g.height,v=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),C=(v-12)/n,b=c.filter(function(_){var R;return(R=s[_])===null||R===void 0||(R=R.children)===null||R===void 0?void 0:R.length}),y=ir(s,r.props.eventKey);if(m-1.5?i({dragNode:L,dropNode:P,dropPosition:1})?O=1:T=!1:i({dragNode:L,dropNode:P,dropPosition:0})?O=0:i({dragNode:L,dropNode:P,dropPosition:1})?O=1:T=!1:i({dragNode:L,dropNode:P,dropPosition:1})?O=1:T=!1,{dropPosition:O,dropLevelOffset:M,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:E,dropContainerKey:O===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:T}}function hh(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function Ed(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(yt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Jt(!1,"`checkedKeys` is not an array or an object"),null;return t}function K1(e,t){var r=new Set;function n(o){if(!r.has(o)){var i=ir(t,o);if(i){r.add(o);var l=i.parent,s=i.node;s.disabled||l&&n(l.key)}}}return(e||[]).forEach(function(o){n(o)}),ye(r)}function q1(e){const[t,r]=a.useState(null);return[a.useCallback((i,l,s)=>{const c=t!=null?t:i,u=Math.min(c||0,i),d=Math.max(c||0,i),f=l.slice(u,d+1).map(p=>e(p)),m=f.some(p=>!s.has(p)),g=[];return f.forEach(p=>{m?(s.has(p)||g.push(p),s.add(p)):(s.delete(p),g.push(p))}),r(m?d:null),g},[t]),i=>{r(i)}]}const ko={},G1="SELECT_ALL",X1="SELECT_INVERT",U1="SELECT_NONE",Ch=[],v7=(e,t)=>{let r=[];return(t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&(r=[].concat(ye(r),ye(v7(e,n[e]))))}),r},rU=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:n,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:l,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:g,selections:p,fixed:h,renderCell:v,hideSelectAll:C,checkStrictly:b=!0}=t||{},{prefixCls:y,data:S,pageData:x,getRecordByKey:$,getRowKey:w,expandType:I,childrenColumnName:E,locale:O,getPopupContainer:M}=e,N=Yo(),[L,P]=q1(U=>U),[T,_]=It(n||o||Ch,{value:n}),R=a.useRef(new Map),D=a.useCallback(U=>{if(r){const ne=new Map;U.forEach(Z=>{let Y=$(Z);!Y&&R.current.has(Z)&&(Y=R.current.get(Z)),ne.set(Z,Y)}),R.current=ne}},[$,r]);a.useEffect(()=>{D(T)},[T]);const{keyEntities:k}=a.useMemo(()=>{if(b)return{keyEntities:null};let U=S;if(r){const ne=new Set(S.map((Y,oe)=>w(Y,oe))),Z=Array.from(R.current).reduce((Y,oe)=>{let[se,ae]=oe;return ne.has(se)?Y:Y.concat(ae)},[]);U=[].concat(ye(U),ye(Z))}return Gl(U,{externalGetKey:w,childrenPropName:E})},[S,w,b,E,r]),H=a.useMemo(()=>v7(E,x),[E,x]),j=a.useMemo(()=>{const U=new Map;return H.forEach((ne,Z)=>{const Y=w(ne,Z),oe=(i?i(ne):null)||{};U.set(Y,oe)}),U},[H,w,i]),V=a.useCallback(U=>{var ne;return!!(!((ne=j.get(w(U)))===null||ne===void 0)&&ne.disabled)},[j,w]),[A,K]=a.useMemo(()=>{if(b)return[T||[],[]];const{checkedKeys:U,halfCheckedKeys:ne}=Or(T,!0,k,V);return[U||[],ne]},[T,b,k,V]),W=a.useMemo(()=>{const U=g==="radio"?A.slice(0,1):A;return new Set(U)},[A,g]),J=a.useMemo(()=>g==="radio"?new Set:new Set(K),[K,g]);a.useEffect(()=>{t||_(Ch)},[!!t]);const X=a.useCallback((U,ne)=>{let Z,Y;D(U),r?(Z=U,Y=U.map(oe=>R.current.get(oe))):(Z=[],Y=[],U.forEach(oe=>{const se=$(oe);se!==void 0&&(Z.push(oe),Y.push(se))})),_(Z),l==null||l(Z,Y,{type:ne})},[_,$,l,r]),Q=a.useCallback((U,ne,Z,Y)=>{if(s){const oe=Z.map(se=>$(se));s($(U),ne,oe,Y)}X(Z,"single")},[s,$,X]),ee=a.useMemo(()=>!p||C?null:(p===!0?[G1,X1,U1]:p).map(ne=>ne===G1?{key:"all",text:O.selectionAll,onSelect(){X(S.map((Z,Y)=>w(Z,Y)).filter(Z=>{const Y=j.get(Z);return!(Y!=null&&Y.disabled)||W.has(Z)}),"all")}}:ne===X1?{key:"invert",text:O.selectInvert,onSelect(){const Z=new Set(W);x.forEach((oe,se)=>{const ae=w(oe,se),re=j.get(ae);re!=null&&re.disabled||(Z.has(ae)?Z.delete(ae):Z.add(ae))});const Y=Array.from(Z);u&&(N.deprecated(!1,"onSelectInvert","onChange"),u(Y)),X(Y,"invert")}}:ne===U1?{key:"none",text:O.selectNone,onSelect(){d==null||d(),X(Array.from(W).filter(Z=>{const Y=j.get(Z);return Y==null?void 0:Y.disabled}),"none")}}:ne).map(ne=>Object.assign(Object.assign({},ne),{onSelect:function(){for(var Z,Y,oe=arguments.length,se=new Array(oe),ae=0;ae{var ne;if(!t)return U.filter(Ie=>Ie!==ko);let Z=ye(U);const Y=new Set(W),oe=H.map(w).filter(Ie=>!j.get(Ie).disabled),se=oe.every(Ie=>Y.has(Ie)),ae=oe.some(Ie=>Y.has(Ie)),re=()=>{const Ie=[];se?oe.forEach(Re=>{Y.delete(Re),Ie.push(Re)}):oe.forEach(Re=>{Y.has(Re)||(Y.add(Re),Ie.push(Re))});const _e=Array.from(Y);c==null||c(!se,_e.map(Re=>$(Re)),Ie.map(Re=>$(Re))),X(_e,"all"),P(null)};let ce,ue;if(g!=="radio"){let Ie;if(ee){const Ce={getPopupContainer:M,items:ee.map((pe,ge)=>{const{key:Oe,text:nt,onSelect:Ve}=pe;return{key:Oe!=null?Oe:ge,onClick:()=>{Ve==null||Ve(oe)},label:nt}})};Ie=a.createElement("div",{className:`${y}-selection-extra`},a.createElement(Mi,{menu:Ce,getPopupContainer:M},a.createElement("span",null,a.createElement(jl,null))))}const _e=H.map((Ce,pe)=>{const ge=w(Ce,pe),Oe=j.get(ge)||{};return Object.assign({checked:Y.has(ge)},Oe)}).filter(Ce=>{let{disabled:pe}=Ce;return pe}),Re=!!_e.length&&_e.length===H.length,Me=Re&&_e.every(Ce=>{let{checked:pe}=Ce;return pe}),me=Re&&_e.some(Ce=>{let{checked:pe}=Ce;return pe});ue=a.createElement(so,{checked:Re?Me:!!H.length&&se,indeterminate:Re?!Me&&me:!se&&ae,onChange:re,disabled:H.length===0||Re,"aria-label":Ie?"Custom selection":"Select all",skipGroup:!0}),ce=!C&&a.createElement("div",{className:`${y}-selection`},ue,Ie)}let fe;g==="radio"?fe=(Ie,_e,Re)=>{const Me=w(_e,Re),me=Y.has(Me);return{node:a.createElement(Vl,Object.assign({},j.get(Me),{checked:me,onClick:Ce=>Ce.stopPropagation(),onChange:Ce=>{Y.has(Me)||Q(Me,!0,[Me],Ce.nativeEvent)}})),checked:me}}:fe=(Ie,_e,Re)=>{var Me;const me=w(_e,Re),Ce=Y.has(me),pe=J.has(me),ge=j.get(me);let Oe;return I==="nest"?Oe=pe:Oe=(Me=ge==null?void 0:ge.indeterminate)!==null&&Me!==void 0?Me:pe,{node:a.createElement(so,Object.assign({},ge,{indeterminate:Oe,checked:Ce,skipGroup:!0,onClick:nt=>nt.stopPropagation(),onChange:nt=>{let{nativeEvent:Ve}=nt;const{shiftKey:Ze}=Ve,Le=oe.findIndex(Qe=>Qe===me),Ke=A.some(Qe=>oe.includes(Qe));if(Ze&&b&&Ke){const Qe=L(Le,oe,Y),ot=Array.from(Y);f==null||f(!Ce,ot.map(Xe=>$(Xe)),Qe.map(Xe=>$(Xe))),X(ot,"multiple")}else{const Qe=A;if(b){const ot=Ce?eo(Qe,me):yo(Qe,me);Q(me,!Ce,ot,Ve)}else{const ot=Or([].concat(ye(Qe),[me]),!0,k,V),{checkedKeys:Xe,halfCheckedKeys:We}=ot;let je=Xe;if(Ce){const at=new Set(Xe);at.delete(me),je=Or(Array.from(at),{checked:!1,halfCheckedKeys:We},k,V).checkedKeys}Q(me,!Ce,je,Ve)}}P(Ce?null:Le)}})),checked:Ce}};const be=(Ie,_e,Re)=>{const{node:Me,checked:me}=fe(Ie,_e,Re);return v?v(me,_e,Re,Me):Me};if(!Z.includes(ko))if(Z.findIndex(Ie=>{var _e;return((_e=Ie[al])===null||_e===void 0?void 0:_e.columnType)==="EXPAND_COLUMN"})===0){const[Ie,..._e]=Z;Z=[Ie,ko].concat(ye(_e))}else Z=[ko].concat(ye(Z));const de=Z.indexOf(ko);Z=Z.filter((Ie,_e)=>Ie!==ko||_e===de);const he=Z[de-1],Se=Z[de+1];let $e=h;$e===void 0&&((Se==null?void 0:Se.fixed)!==void 0?$e=Se.fixed:(he==null?void 0:he.fixed)!==void 0&&($e=he.fixed)),$e&&he&&((ne=he[al])===null||ne===void 0?void 0:ne.columnType)==="EXPAND_COLUMN"&&he.fixed===void 0&&(he.fixed=$e);const Ne=G(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:p&&g==="checkbox"}),xe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ue):t.columnTitle:ce,Pe={fixed:$e,width:m,className:`${y}-selection-column`,title:xe(),render:be,onCell:t.onCell,[al]:{className:Ne}};return Z.map(Ie=>Ie===ko?Pe:Ie)},[w,H,t,A,W,J,m,ee,I,j,f,Q,V]),W]};function oU(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const n=e[r];e._antProxy[r]=n,e[r]=t[r]}}),e}function aU(e,t){return a.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return typeof Proxy!="undefined"?new Proxy(n,{get(o,i){return r[i]?r[i]:Reflect.get(o,i)}}):oU(n,r)})}function iU(e){return t=>{const{prefixCls:r,onExpand:n,record:o,expanded:i,expandable:l}=t,s=`${r}-row-expand-icon`;return a.createElement("button",{type:"button",onClick:c=>{n(o,c),c.stopPropagation()},className:G(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&i,[`${s}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function lU(e){return(r,n)=>{const o=r.querySelector(`.${e}-container`);let i=n;if(o){const l=getComputedStyle(o),s=parseInt(l.borderLeftWidth,10),c=parseInt(l.borderRightWidth,10);i=n-s-c}return i}}const Ko=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function _i(e,t){return t?`${t}-${e}`:`${e}`}const wu=(e,t)=>typeof e=="function"?e(t):e,sU=(e,t)=>{const r=wu(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r};function cU(e){const t=a.useRef(e),r=Ac();return[()=>t.current,n=>{t.current=n,r()}]}function uU(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-r*n;break;case 1:o.bottom=0,o.left=-r*n;break;case 0:o.bottom=0,o.left=n;break}return a.createElement("div",{style:o})}function p7(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function dU(e,t){var r=a.useState(!1),n=ie(r,2),o=n[0],i=n[1];Dt(function(){if(o)return e(),function(){t()}},[o]),Dt(function(){return i(!0),function(){i(!1)}},[])}var fU=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],h7=function(t,r){var n=t.className,o=t.style,i=t.motion,l=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=ut(t,fU),g=a.useState(!0),p=ie(g,2),h=p[0],v=p[1],C=a.useContext(I0),b=C.prefixCls,y=l&&s!=="hide";Dt(function(){l&&y!==h&&v(y)},[l]);var S=function(){l&&c()},x=a.useRef(!1),$=function(){l&&!x.current&&(x.current=!0,u())};dU(S,$);var w=function(E){y===E&&$()};return l?a.createElement(In,ve({ref:r,visible:h},i,{motionAppear:s==="show",onVisibleChanged:w}),function(I,E){var O=I.className,M=I.style;return a.createElement("div",{ref:E,className:G("".concat(b,"-treenode-motion"),O),style:M},l.map(function(N){var L=Object.assign({},(p7(N.data),N.data)),P=N.title,T=N.key,_=N.isStart,R=N.isEnd;delete L.children;var D=rl(T,f);return a.createElement(ii,ve({},L,D,{title:P,active:d,data:N.data,key:T,isStart:_,isEnd:R}))}))}):a.createElement(ii,ve({domRef:r,className:n,style:o},m,{active:d}))};h7.displayName="MotionTreeNode";var mU=a.forwardRef(h7);function gU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function o(i,l){var s=new Map;i.forEach(function(u){s.set(u,!0)});var c=l.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return r ").concat(t);return t}var b7=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,p=e.dropPosition,h=e.motion,v=e.height,C=e.itemHeight,b=e.virtual,y=e.focusable,S=e.activeItem,x=e.focused,$=e.tabIndex,w=e.onKeyDown,I=e.onFocus,E=e.onBlur,O=e.onActiveChange,M=e.onListChangeStart,N=e.onListChangeEnd,L=ut(e,vU),P=a.useRef(null),T=a.useRef(null);a.useImperativeHandle(t,function(){return{scrollTo:function(fe){P.current.scrollTo(fe)},getIndentWidth:function(){return T.current.offsetWidth}}});var _=a.useState(o),R=ie(_,2),D=R[0],k=R[1],H=a.useState(n),j=ie(H,2),V=j[0],A=j[1],K=a.useState(n),W=ie(K,2),J=W[0],X=W[1],Q=a.useState([]),ee=ie(Q,2),te=ee[0],U=ee[1],ne=a.useState(null),Z=ie(ne,2),Y=Z[0],oe=Z[1],se=a.useRef(n);se.current=n;function ae(){var ue=se.current;A(ue),X(ue),U([]),oe(null),N()}Dt(function(){k(o);var ue=gU(D,o);if(ue.key!==null)if(ue.add){var fe=V.findIndex(function(Ne){var xe=Ne.key;return xe===ue.key}),be=xh(bh(V,n,ue.key),b,v,C),de=V.slice();de.splice(fe+1,0,Sh),X(de),U(be),oe("show")}else{var he=n.findIndex(function(Ne){var xe=Ne.key;return xe===ue.key}),Se=xh(bh(n,V,ue.key),b,v,C),$e=n.slice();$e.splice(he+1,0,Sh),X($e),U(Se),oe("hide")}else V!==n&&(A(n),X(n))},[o,n]),a.useEffect(function(){m||ae()},[m]);var re=h?J:n,ce={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:c,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:p,keyEntities:d};return a.createElement(a.Fragment,null,x&&S&&a.createElement("span",{style:yh,"aria-live":"assertive"},hU(S)),a.createElement("div",null,a.createElement("input",{style:yh,disabled:y===!1||f,tabIndex:y!==!1?$:null,onKeyDown:w,onFocus:I,onBlur:E,value:"",onChange:pU,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(r,"-indent")},a.createElement("div",{ref:T,className:"".concat(r,"-indent-unit")}))),a.createElement(Hl,ve({},L,{data:re,itemKey:$h,height:v,fullHeight:!1,virtual:b,itemHeight:C,prefixCls:"".concat(r,"-list"),ref:P,onVisibleChange:function(fe){fe.every(function(be){return $h(be)!==ha})&&ae()}}),function(ue){var fe=ue.pos,be=Object.assign({},(p7(ue.data),ue.data)),de=ue.title,he=ue.key,Se=ue.isStart,$e=ue.isEnd,Ne=ql(he,fe);delete be.key,delete be.children;var xe=rl(Ne,ce);return a.createElement(mU,ve({},be,xe,{title:de,active:!!S&&he===S.key,pos:fe,data:ue.data,isStart:Se,isEnd:$e,motion:h,motionNodes:he===ha?te:null,motionType:Y,onMotionStart:M,onMotionEnd:ae,treeNodeRequiredProps:ce,onMouseMove:function(){O(null)}}))}))});b7.displayName="NodeList";var CU=10,Eu=function(e){Kn(r,e);var t=go(r);function r(){var n;tn(this,r);for(var o=arguments.length,i=new Array(o),l=0;l2&&arguments[2]!==void 0?arguments[2]:!1,f=n.state,m=f.dragChildrenKeys,g=f.dropPosition,p=f.dropTargetKey,h=f.dropTargetPos,v=f.dropAllowed;if(v){var C=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),p!==null){var b=q(q({},rl(p,n.getTreeNodeRequiredProps())),{},{active:((u=n.getActiveItem())===null||u===void 0?void 0:u.key)===p,data:ir(n.state.keyEntities,p).node}),y=m.indexOf(p)!==-1;Jt(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=O0(h),x={event:s,node:Mn(b),dragNode:n.dragNode?Mn(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(S[S.length-1])};d||C==null||C(x),n.dragNode=null}}}),F(Be(n),"cleanDragState",function(){var s=n.state.draggingNodeKey;s!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),F(Be(n),"triggerExpandActionExpand",function(s,c){var u=n.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,g=c.key,p=c.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var h=f.filter(function(C){return C.key===g})[0],v=Mn(q(q({},rl(g,n.getTreeNodeRequiredProps())),{},{data:h.data}));n.setExpandedKeys(m?eo(d,g):yo(d,g)),n.onNodeExpand(s,v)}}),F(Be(n),"onNodeClick",function(s,c){var u=n.props,d=u.onClick,f=u.expandAction;f==="click"&&n.triggerExpandActionExpand(s,c),d==null||d(s,c)}),F(Be(n),"onNodeDoubleClick",function(s,c){var u=n.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&n.triggerExpandActionExpand(s,c),d==null||d(s,c)}),F(Be(n),"onNodeSelect",function(s,c){var u=n.state.selectedKeys,d=n.state,f=d.keyEntities,m=d.fieldNames,g=n.props,p=g.onSelect,h=g.multiple,v=c.selected,C=c[m.key],b=!v;b?h?u=yo(u,C):u=[C]:u=eo(u,C);var y=u.map(function(S){var x=ir(f,S);return x?x.node:null}).filter(function(S){return S});n.setUncontrolledState({selectedKeys:u}),p==null||p(u,{event:"select",selected:b,node:c,selectedNodes:y,nativeEvent:s.nativeEvent})}),F(Be(n),"onNodeCheck",function(s,c,u){var d=n.state,f=d.keyEntities,m=d.checkedKeys,g=d.halfCheckedKeys,p=n.props,h=p.checkStrictly,v=p.onCheck,C=c.key,b,y={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(h){var S=u?yo(m,C):eo(m,C),x=eo(g,C);b={checked:S,halfChecked:x},y.checkedNodes=S.map(function(M){return ir(f,M)}).filter(function(M){return M}).map(function(M){return M.node}),n.setUncontrolledState({checkedKeys:S})}else{var $=Or([].concat(ye(m),[C]),!0,f),w=$.checkedKeys,I=$.halfCheckedKeys;if(!u){var E=new Set(w);E.delete(C);var O=Or(Array.from(E),{checked:!1,halfCheckedKeys:I},f);w=O.checkedKeys,I=O.halfCheckedKeys}b=w,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=I,w.forEach(function(M){var N=ir(f,M);if(N){var L=N.node,P=N.pos;y.checkedNodes.push(L),y.checkedNodesPositions.push({node:L,pos:P})}}),n.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:I})}v==null||v(b,y)}),F(Be(n),"onNodeLoad",function(s){var c,u=s.key,d=n.state.keyEntities,f=ir(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(g,p){n.setState(function(h){var v=h.loadedKeys,C=v===void 0?[]:v,b=h.loadingKeys,y=b===void 0?[]:b,S=n.props,x=S.loadData,$=S.onLoad;if(!x||C.indexOf(u)!==-1||y.indexOf(u)!==-1)return null;var w=x(s);return w.then(function(){var I=n.state.loadedKeys,E=yo(I,u);$==null||$(E,{event:"load",node:s}),n.setUncontrolledState({loadedKeys:E}),n.setState(function(O){return{loadingKeys:eo(O.loadingKeys,u)}}),g()}).catch(function(I){if(n.setState(function(O){return{loadingKeys:eo(O.loadingKeys,u)}}),n.loadingRetryTimes[u]=(n.loadingRetryTimes[u]||0)+1,n.loadingRetryTimes[u]>=CU){var E=n.state.loadedKeys;Jt(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:yo(E,u)}),g()}p(I)}),{loadingKeys:yo(y,u)}})});return m.catch(function(){}),m}}),F(Be(n),"onNodeMouseEnter",function(s,c){var u=n.props.onMouseEnter;u==null||u({event:s,node:c})}),F(Be(n),"onNodeMouseLeave",function(s,c){var u=n.props.onMouseLeave;u==null||u({event:s,node:c})}),F(Be(n),"onNodeContextMenu",function(s,c){var u=n.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),F(Be(n),"onFocus",function(){var s=n.props.onFocus;n.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(!n.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(g){if(g in n.props){f=!1;return}d=!0,m[g]=s[g]}),d&&(!c||f)&&n.setState(q(q({},m),u))}}),F(Be(n),"scrollTo",function(s){n.listRef.current.scrollTo(s)}),n}return nn(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,l=o.itemScrollOffset,s=l===void 0?0:l;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,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,i=o.focused,l=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,g=o.dropPosition,p=o.dragOverNodeKey,h=o.indent,v=this.props,C=v.prefixCls,b=v.className,y=v.style,S=v.showLine,x=v.focusable,$=v.tabIndex,w=$===void 0?0:$,I=v.selectable,E=v.showIcon,O=v.icon,M=v.switcherIcon,N=v.draggable,L=v.checkable,P=v.checkStrictly,T=v.disabled,_=v.motion,R=v.loadData,D=v.filterTreeNode,k=v.height,H=v.itemHeight,j=v.virtual,V=v.titleRender,A=v.dropIndicatorRender,K=v.onContextMenu,W=v.onScroll,J=v.direction,X=v.rootClassName,Q=v.rootStyle,ee=en(this.props,{aria:!0,data:!0}),te;return N&&(yt(N)==="object"?te=N:typeof N=="function"?te={nodeDraggable:N}:te={}),a.createElement(I0.Provider,{value:{prefixCls:C,selectable:I,showIcon:E,icon:O,switcherIcon:M,draggable:te,draggingNodeKey:c,checkable:L,checkStrictly:P,disabled:T,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:g,dragOverNodeKey:p,indent:h,direction:J,dropIndicatorRender:A,loadData:R,filterTreeNode:D,titleRender:V,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}},a.createElement("div",{role:"tree",className:G(C,b,X,F(F(F({},"".concat(C,"-show-line"),S),"".concat(C,"-focused"),i),"".concat(C,"-active-focused"),u!==null)),style:Q},a.createElement(b7,ve({ref:this.listRef,prefixCls:C,style:y,data:l,disabled:T,selectable:I,checkable:!!L,motion:_,dragging:c!==null,height:k,itemHeight:H,virtual:j,focusable:x,focused:i,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:K,onScroll:W},this.getTreeNodeRequiredProps(),ee))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var l=i.prevProps,s={prevProps:o};function c(w){return!l&&w in o||l&&l[w]!==o[w]}var u,d=i.fieldNames;if(c("fieldNames")&&(d=ai(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Jt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=D4(o.children)),u){s.treeData=u;var f=Gl(u,{fieldNames:d});s.keyEntities=q(F({},ha,C7),f.keyEntities)}var m=s.keyEntities||i.keyEntities;if(c("expandedKeys")||l&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!l&&o.defaultExpandParent?K1(o.expandedKeys,m):o.expandedKeys;else if(!l&&o.defaultExpandAll){var g=q({},m);delete g[ha];var p=[];Object.keys(g).forEach(function(w){var I=g[w];I.children&&I.children.length&&p.push(I.key)}),s.expandedKeys=p}else!l&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?K1(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var h=dd(u||i.treeData,s.expandedKeys||i.expandedKeys,d);s.flattenNodes=h}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=hh(o.selectedKeys,o):!l&&o.defaultSelectedKeys&&(s.selectedKeys=hh(o.defaultSelectedKeys,o))),o.checkable){var v;if(c("checkedKeys")?v=Ed(o.checkedKeys)||{}:!l&&o.defaultCheckedKeys?v=Ed(o.defaultCheckedKeys)||{}:u&&(v=Ed(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var C=v,b=C.checkedKeys,y=b===void 0?[]:b,S=C.halfCheckedKeys,x=S===void 0?[]:S;if(!o.checkStrictly){var $=Or(y,!0,m);y=$.checkedKeys,x=$.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=x}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),r}(a.Component);F(Eu,"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:uU,allowDrop:function(){return!0},expandAction:!1});F(Eu,"TreeNode",ii);const bU=new jt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),yU=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),SU=(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:`${z(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),xU=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:o,titleHeight:i,nodeSelectedBg:l,nodeHoverBg:s}=t,c=t.paddingXS;return{[r]:Object.assign(Object.assign({},Mt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${r}-rtl`]:{[`${r}-switcher`]:{"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${r}-active-focused)`]:Object.assign({},Ao(t)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:bU,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[n]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${z(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:z(i),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${n}:hover &`]:{opacity:.45}},[`&${n}-disabled`]:{[`${r}-draggable-icon`]:{visibility:"hidden"}}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher`]:Object.assign(Object.assign({},yU(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:z(i),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${r}-node-content-wrapper, ${r}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${z(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:z(i),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${r}-node-selected`]:{backgroundColor:l},[`${r}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:z(i),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}-node-content-wrapper`]:Object.assign({lineHeight:z(i),userSelect:"none"},SU(e,t)),[`${n}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${r}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last`]:{[`${r}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${z(t.calc(i).div(2).equal())} !important`}}}}})}},$U=e=>{const{treeCls:t,treeNodeCls:r,treeNodePadding:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[r]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:n,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:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},y7=(e,t)=>{const r=`.${e}`,n=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=xt(t,{treeCls:r,treeNodeCls:n,treeNodePadding:o});return[xU(e,i),$U(i)]},S7=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},wU=e=>{const{colorTextLightSolid:t,colorPrimary:r}=e;return Object.assign(Object.assign({},S7(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:r})},EU=Ot("Tree",(e,t)=>{let{prefixCls:r}=t;return[{[e.componentCls]:du(`${r}-checkbox`,e)},y7(r,e),Tl(e)]},wU),wh=4;function IU(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:o,direction:i="ltr"}=e,l=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",c={[l]:-r*o+wh,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=o+wh;break}return B.createElement("div",{style:c,className:`${n}-drop-indicator`})}const OU=e=>{const{prefixCls:t,switcherIcon:r,treeNodeProps:n,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:l,expanded:s,loading:c}=n;if(c)return a.isValidElement(i)?i:a.createElement(Fr,{className:`${t}-switcher-loading-icon`});let u;if(o&&typeof o=="object"&&(u=o.showLeafIcon),l){if(!o)return null;if(typeof u!="boolean"&&u){const m=typeof u=="function"?u(n):u,g=`${t}-switcher-line-custom-icon`;return a.isValidElement(m)?cn(m,{className:G(m.props.className||"",g)}):m}return u?a.createElement(X6,{className:`${t}-switcher-line-icon`}):a.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof r=="function"?r(n):r;return a.isValidElement(f)?cn(f,{className:G(f.props.className||"",d)}):f!==void 0?f:o?s?a.createElement(MK,{className:`${t}-switcher-line-icon`}):a.createElement(VK,{className:`${t}-switcher-line-icon`}):a.createElement(gW,{className:d})},x7=OU,$7=B.forwardRef((e,t)=>{var r;const{getPrefixCls:n,direction:o,virtual:i,tree:l}=B.useContext(ke),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:g=!1,children:p,checkable:h=!1,selectable:v=!0,draggable:C,motion:b,style:y}=e,S=n("tree",s),x=n(),$=b!=null?b:Object.assign(Object.assign({},Ja(x)),{motionAppear:!1}),w=Object.assign(Object.assign({},e),{checkable:h,selectable:v,showIcon:u,motion:$,blockNode:g,showLine:!!d,dropIndicatorRender:IU}),[I,E,O]=EU(S),[,M]=An(),N=M.paddingXS/2+(((r=M.Tree)===null||r===void 0?void 0:r.titleHeight)||M.controlHeightSM),L=B.useMemo(()=>{if(!C)return!1;let T={};switch(typeof C){case"function":T.nodeDraggable=C;break;case"object":T=Object.assign({},C);break}return T.icon!==!1&&(T.icon=T.icon||B.createElement($K,null)),T},[C]),P=T=>B.createElement(x7,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:T,showLine:d});return I(B.createElement(Eu,Object.assign({itemHeight:N,ref:t,virtual:i},w,{style:Object.assign(Object.assign({},l==null?void 0:l.style),y),prefixCls:S,className:G({[`${S}-icon-hide`]:!u,[`${S}-block-node`]:g,[`${S}-unselectable`]:!v,[`${S}-rtl`]:o==="rtl"},l==null?void 0:l.className,c,E,O),direction:o,checkable:h&&B.createElement("span",{className:`${S}-checkbox-inner`}),selectable:v,switcherIcon:P,draggable:L}),p))}),Eh=0,Id=1,Ih=2;function M0(e,t,r){const{key:n,children:o}=r;function i(l){const s=l[n],c=l[o];t(s,l)!==!1&&M0(c||[],t,r)}e.forEach(i)}function MU(e){let{treeData:t,expandedKeys:r,startKey:n,endKey:o,fieldNames:i}=e;const l=[];let s=Eh;if(n&&n===o)return[n];if(!n||!o)return[];function c(u){return u===n||u===o}return M0(t,u=>{if(s===Ih)return!1;if(c(u)){if(l.push(u),s===Eh)s=Id;else if(s===Id)return s=Ih,!1}else s===Id&&l.push(u);return r.includes(u)},ai(i)),l}function Od(e,t,r){const n=ye(t),o=[];return M0(e,(i,l)=>{const s=n.indexOf(i);return s!==-1&&(o.push(l),n.splice(s,1)),!!n.length},ai(r)),o}var Oh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:o}=e,i=Oh(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=a.useRef(),s=a.useRef(),c=()=>{const{keyEntities:I}=Gl(Mh(i));let E;return r?E=Object.keys(I):n?E=K1(i.expandedKeys||o||[],I):E=i.expandedKeys||o||[],E},[u,d]=a.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=a.useState(()=>c());a.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),a.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const g=(I,E)=>{var O;return"expandedKeys"in i||m(I),(O=i.onExpand)===null||O===void 0?void 0:O.call(i,I,E)},p=(I,E)=>{var O;const{multiple:M,fieldNames:N}=i,{node:L,nativeEvent:P}=E,{key:T=""}=L,_=Mh(i),R=Object.assign(Object.assign({},E),{selected:!0}),D=(P==null?void 0:P.ctrlKey)||(P==null?void 0:P.metaKey),k=P==null?void 0:P.shiftKey;let H;M&&D?(H=I,l.current=T,s.current=H,R.selectedNodes=Od(_,H,N)):M&&k?(H=Array.from(new Set([].concat(ye(s.current||[]),ye(MU({treeData:_,expandedKeys:f,startKey:T,endKey:l.current,fieldNames:N}))))),R.selectedNodes=Od(_,H,N)):(H=[T],l.current=T,s.current=H,R.selectedNodes=Od(_,H,N)),(O=i.onSelect)===null||O===void 0||O.call(i,H,R),"selectedKeys"in i||d(H)},{getPrefixCls:h,direction:v}=a.useContext(ke),{prefixCls:C,className:b,showIcon:y=!0,expandAction:S="click"}=i,x=Oh(i,["prefixCls","className","showIcon","expandAction"]),$=h("tree",C),w=G(`${$}-directory`,{[`${$}-directory-rtl`]:v==="rtl"},b);return a.createElement($7,Object.assign({icon:NU,ref:t,blockNode:!0},x,{showIcon:y,expandAction:S,prefixCls:$,className:w,expandedKeys:f,selectedKeys:u,onSelect:p,onExpand:g}))},RU=a.forwardRef(PU),_U=RU,Ti=$7;Ti.DirectoryTree=_U;Ti.TreeNode=ii;const TU=e=>{const{value:t,filterSearch:r,tablePrefixCls:n,locale:o,onChange:i}=e;return r?a.createElement("div",{className:`${n}-filter-dropdown-search`},a.createElement(br,{prefix:a.createElement(Bc,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${n}-filter-dropdown-search-input`})):null},Nh=TU,LU=e=>{const{keyCode:t}=e;t===we.ENTER&&e.stopPropagation()},DU=a.forwardRef((e,t)=>a.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:LU,ref:t},e.children)),kU=DU;function Za(e){let t=[];return(e||[]).forEach(r=>{let{value:n,children:o}=r;t.push(n),o&&(t=[].concat(ye(t),ye(Za(o))))}),t}function HU(e){return e.some(t=>{let{children:r}=t;return r})}function w7(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function E7(e){let{filters:t,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:i,filterSearch:l}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${r}-dropdown-submenu`,children:E7({filters:s.children,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:i,filterSearch:l})};const d=o?so:Vl,f={key:s.value!==void 0?u:c,label:a.createElement(a.Fragment,null,a.createElement(d,{checked:n.includes(u)}),a.createElement("span",null,s.text))};return i.trim()?typeof l=="function"?l(i,s)?f:null:w7(i,s.text)?f:null:f})}function Md(e){return e||[]}const jU=e=>{var t,r;const{tablePrefixCls:n,prefixCls:o,column:i,dropdownPrefixCls:l,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:m,triggerFilter:g,locale:p,children:h,getPopupContainer:v,rootClassName:C}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:S,defaultFilteredValue:x,filterDropdownVisible:$,onFilterDropdownVisibleChange:w}=i,[I,E]=a.useState(!1),O=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),M=re=>{E(re),y==null||y(re),w==null||w(re)},N=(r=b!=null?b:$)!==null&&r!==void 0?r:I,L=m==null?void 0:m.filteredKeys,[P,T]=cU(Md(L)),_=re=>{let{selectedKeys:ce}=re;T(ce)},R=(re,ce)=>{let{node:ue,checked:fe}=ce;_(u?{selectedKeys:re}:{selectedKeys:fe&&ue.key?[ue.key]:[]})};a.useEffect(()=>{I&&_({selectedKeys:Md(L)})},[L]);const[D,k]=a.useState([]),H=re=>{k(re)},[j,V]=a.useState(""),A=re=>{const{value:ce}=re.target;V(ce)};a.useEffect(()=>{I||V("")},[I]);const K=re=>{const ce=re!=null&&re.length?re:null;if(ce===null&&(!m||!m.filteredKeys)||Br(ce,m==null?void 0:m.filteredKeys,!0))return null;g({column:i,key:s,filteredKeys:ce})},W=()=>{M(!1),K(P())},J=function(){let{confirm:re,closeDropdown:ce}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};re&&K([]),ce&&M(!1),V(""),T(S?(x||[]).map(ue=>String(ue)):[])},X=function(){let{closeDropdown:re}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};re&&M(!1),K(P())},Q=(re,ce)=>{ce.source==="trigger"&&(re&&L!==void 0&&T(Md(L)),M(re),!re&&!i.filterDropdown&&c&&W())},ee=G({[`${l}-menu-without-submenu`]:!HU(i.filters||[])}),te=re=>{if(re.target.checked){const ce=Za(i==null?void 0:i.filters).map(ue=>String(ue));T(ce)}else T([])},U=re=>{let{filters:ce}=re;return(ce||[]).map((ue,fe)=>{const be=String(ue.value),de={title:ue.text,key:ue.value!==void 0?be:String(fe)};return ue.children&&(de.children=U({filters:ue.children})),de})},ne=re=>{var ce;return Object.assign(Object.assign({},re),{text:re.title,value:re.key,children:((ce=re.children)===null||ce===void 0?void 0:ce.map(ue=>ne(ue)))||[]})};let Z;const{direction:Y,renderEmpty:oe}=a.useContext(ke);if(typeof i.filterDropdown=="function")Z=i.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:re=>_({selectedKeys:re}),selectedKeys:P(),confirm:X,clearFilters:J,filters:i.filters,visible:N,close:()=>{M(!1)}});else if(i.filterDropdown)Z=i.filterDropdown;else{const re=P()||[],ce=()=>{var fe;const be=(fe=oe==null?void 0:oe("Table.filter"))!==null&&fe!==void 0?fe:a.createElement(wr,{image:wr.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((i.filters||[]).length===0)return be;if(d==="tree")return a.createElement(a.Fragment,null,a.createElement(Nh,{filterSearch:f,value:j,onChange:A,tablePrefixCls:n,locale:p}),a.createElement("div",{className:`${n}-filter-dropdown-tree`},u?a.createElement(so,{checked:re.length===Za(i.filters).length,indeterminate:re.length>0&&re.lengthtypeof f=="function"?f(j,ne(Se)):w7(j,Se.title):void 0})));const de=E7({filters:i.filters||[],filterSearch:f,prefixCls:o,filteredKeys:P(),filterMultiple:u,searchValue:j}),he=de.every(Se=>Se===null);return a.createElement(a.Fragment,null,a.createElement(Nh,{filterSearch:f,value:j,onChange:A,tablePrefixCls:n,locale:p}),he?be:a.createElement(Gr,{selectable:!0,multiple:u,prefixCls:`${l}-menu`,className:ee,onSelect:_,onDeselect:_,selectedKeys:re,getPopupContainer:v,openKeys:D,onOpenChange:H,items:de}))},ue=()=>S?Br((x||[]).map(fe=>String(fe)),re,!0):re.length===0;Z=a.createElement(a.Fragment,null,ce(),a.createElement("div",{className:`${o}-dropdown-btns`},a.createElement(hn,{type:"link",size:"small",disabled:ue(),onClick:()=>J()},p.filterReset),a.createElement(hn,{type:"primary",size:"small",onClick:W},p.filterConfirm)))}i.filterDropdown&&(Z=a.createElement(cC,{selectable:void 0},Z));const se=()=>a.createElement(kU,{className:`${o}-dropdown`},Z);let ae;return typeof i.filterIcon=="function"?ae=i.filterIcon(O):i.filterIcon?ae=i.filterIcon:ae=a.createElement(sK,null),a.createElement("div",{className:`${o}-column`},a.createElement("span",{className:`${n}-column-title`},h),a.createElement(Mi,{dropdownRender:se,trigger:["click"],open:N,onOpenChange:Q,getPopupContainer:v,placement:Y==="rtl"?"bottomLeft":"bottomRight",rootClassName:C},a.createElement("span",{role:"button",tabIndex:-1,className:G(`${o}-trigger`,{active:O}),onClick:re=>{re.stopPropagation()}},ae)))},Z1=(e,t,r)=>{let n=[];return(e||[]).forEach((o,i)=>{var l;const s=_i(i,r);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(l=c==null?void 0:c.map(String))!==null&&l!==void 0?l:c),n.push({column:o,key:Ko(o,s),filteredKeys:c,forceFiltered:o.filtered})}else n.push({column:o,key:Ko(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(n=[].concat(ye(n),ye(Z1(o.children,t,s))))}),n};function I7(e,t,r,n,o,i,l,s,c){return r.map((u,d)=>{const f=_i(d,s),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:p,filterSearch:h}=u;let v=u;if(v.filters||v.filterDropdown){const C=Ko(v,f),b=n.find(y=>{let{key:S}=y;return C===S});v=Object.assign(Object.assign({},v),{title:y=>a.createElement(jU,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:C,filterState:b,filterOnClose:m,filterMultiple:g,filterMode:p,filterSearch:h,triggerFilter:i,locale:o,getPopupContainer:l,rootClassName:c},wu(u.title,y))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:I7(e,t,v.children,n,o,i,l,f,c)})),v})}const Ph=e=>{const t={};return e.forEach(r=>{let{key:n,filteredKeys:o,column:i}=r;const l=n,{filters:s,filterDropdown:c}=i;if(c)t[l]=o||null;else if(Array.isArray(o)){const u=Za(s);t[l]=u.filter(d=>o.includes(String(d)))}else t[l]=null}),t},Q1=(e,t,r)=>t.reduce((o,i)=>{const{column:{onFilter:l,filters:s},filteredKeys:c}=i;return l&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Za(s),m=f.findIndex(p=>String(p)===String(d)),g=m!==-1?f[m]:d;return u[r]&&(u[r]=Q1(u[r],t,r)),l(g,u)})):o},e),O7=e=>e.flatMap(t=>"children"in t?[t].concat(ye(O7(t.children||[]))):[t]),BU=e=>{const{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:o,getPopupContainer:i,locale:l,rootClassName:s}=e;Yo();const c=a.useMemo(()=>O7(n||[]),[n]),[u,d]=a.useState(()=>Z1(c,!0)),f=a.useMemo(()=>{const h=Z1(c,!1);if(h.length===0)return h;let v=!0;if(h.forEach(C=>{let{filteredKeys:b}=C;b!==void 0&&(v=!1)}),v){const C=(c||[]).map((b,y)=>Ko(b,_i(y)));return u.filter(b=>{let{key:y}=b;return C.includes(y)}).map(b=>{const y=c[C.findIndex(S=>S===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),y),forceFiltered:y.filtered})})}return h},[c,u]),m=a.useMemo(()=>Ph(f),[f]),g=h=>{const v=f.filter(C=>{let{key:b}=C;return b!==h.key});v.push(h),d(v),o(Ph(v),v)};return[h=>I7(t,r,h,f,l,g,i,void 0,s),f,m]},zU=BU,FU=(e,t,r)=>{const n=a.useRef({});function o(i){var l;if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let c=function(u){u.forEach((d,f)=>{const m=r(d,f);s.set(m,d),d&&typeof d=="object"&&t in d&&c(d[t]||[])})};const s=new Map;c(e),n.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:r}}return(l=n.current.kvMap)===null||l===void 0?void 0:l.get(i)}return[o]};var AU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o