"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3509],{18785:function(sn,ce,e){e.d(ce,{Z:function(){return L}});var n=e(60499),g=e(59301),D={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"},U=D,m=e(7657),j=function(c,C){return g.createElement(m.Z,(0,n.Z)({},c,{ref:C,icon:U}))},G=g.forwardRef(j),L=G},33853:function(sn,ce,e){e.d(ce,{Z:function(){return L}});var n=e(60499),g=e(59301),D={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"},U=D,m=e(7657),j=function(c,C){return g.createElement(m.Z,(0,n.Z)({},c,{ref:C,icon:U}))},G=g.forwardRef(j),L=G},68196:function(sn,ce,e){e.d(ce,{Z:function(){return Ee}});var n=e(85899),g=e(72190),D=e(42244),U=e(43403),m=e(92310),j=e.n(m),G=e(29301),L=e(76846),X=e(96452),c=e(6089),C=e(80402),h=e(34280),t=e(49658),d=e(59301),ve=e(60499),ne=e(77900),ye=e(8654);function Ze(l){var x=l.prefixCls,f=l.align,Q=l.arrow,s=l.arrowPos,a=Q||{},r=a.className,y=a.content,u=s.x,N=u===void 0?0:u,F=s.y,M=F===void 0?0:F,O=d.useRef();if(!f||!f.points)return null;var k={position:"absolute"};if(f.autoArrow!==!1){var R=f.points[0],me=f.points[1],Pe=R[0],je=R[1],He=me[0],ie=me[1];Pe===He||!["t","b"].includes(Pe)?k.top=M:Pe==="t"?k.top=0:k.bottom=0,je===ie||!["l","r"].includes(je)?k.left=N:je==="l"?k.left=0:k.right=0}return d.createElement("div",{ref:O,className:j()("".concat(x,"-arrow"),r),style:k},y)}function Se(l){var x=l.prefixCls,f=l.open,Q=l.zIndex,s=l.mask,a=l.motion;return s?d.createElement(ne.default,(0,ve.Z)({},a,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(r){var y=r.className;return d.createElement("div",{style:{zIndex:Q},className:j()("".concat(x,"-mask"),y)})}):null}var _=d.memo(function(l){var x=l.children;return x},function(l,x){return x.cache}),ge=_,be=d.forwardRef(function(l,x){var f=l.popup,Q=l.className,s=l.prefixCls,a=l.style,r=l.target,y=l.onVisibleChanged,u=l.open,N=l.keepDom,F=l.fresh,M=l.onClick,O=l.mask,k=l.arrow,R=l.arrowPos,me=l.align,Pe=l.motion,je=l.maskMotion,He=l.forceRender,ie=l.getPopupContainer,fe=l.autoDestroy,le=l.portal,ee=l.zIndex,en=l.onMouseEnter,$e=l.onMouseLeave,_e=l.onPointerEnter,on=l.onPointerDownCapture,wn=l.ready,cn=l.offsetX,Ge=l.offsetY,gn=l.offsetR,An=l.offsetB,he=l.onAlign,ae=l.onPrepare,q=l.stretch,Re=l.targetWidth,We=l.targetHeight,fn=typeof f=="function"?f():f,we=u||N,mn=(ie==null?void 0:ie.length)>0,Ue=d.useState(!ie||!mn),pn=(0,g.Z)(Ue,2),yn=pn[0],En=pn[1];if((0,h.Z)(function(){!yn&&mn&&r&&En(!0)},[yn,mn,r]),!yn)return null;var Qn="auto",Wn={left:"-1000vw",top:"-1000vh",right:Qn,bottom:Qn};if(wn||!u){var Pt,it=me.points,rn=me.dynamicInset||((Pt=me._experimental)===null||Pt===void 0?void 0:Pt.dynamicInset),Bn=rn&&it[0][1]==="r",Dn=rn&&it[0][0]==="b";Bn?(Wn.right=gn,Wn.left=Qn):(Wn.left=cn,Wn.right=Qn),Dn?(Wn.bottom=An,Wn.top=Qn):(Wn.top=Ge,Wn.bottom=Qn)}var bn={};return q&&(q.includes("height")&&We?bn.height=We:q.includes("minHeight")&&We&&(bn.minHeight=We),q.includes("width")&&Re?bn.width=Re:q.includes("minWidth")&&Re&&(bn.minWidth=Re)),u||(bn.pointerEvents="none"),d.createElement(le,{open:He||we,getContainer:ie&&function(){return ie(r)},autoDestroy:fe},d.createElement(Se,{prefixCls:s,open:u,zIndex:ee,mask:O,motion:je}),d.createElement(G.Z,{onResize:he,disabled:!u},function(ot){return d.createElement(ne.default,(0,ve.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:He,leavedClassName:"".concat(s,"-hidden")},Pe,{onAppearPrepare:ae,onEnterPrepare:ae,visible:u,onVisibleChanged:function(Vn){var In;Pe==null||(In=Pe.onVisibleChanged)===null||In===void 0||In.call(Pe,Vn),y(Vn)}}),function(ft,Vn){var In=ft.className,ct=ft.style,tt=j()(s,In,Q);return d.createElement("div",{ref:(0,ye.sQ)(ot,x,Vn),className:tt,style:(0,n.Z)((0,n.Z)((0,n.Z)((0,n.Z)({"--arrow-x":"".concat(R.x||0,"px"),"--arrow-y":"".concat(R.y||0,"px")},Wn),bn),ct),{},{boxSizing:"border-box",zIndex:ee},a),onMouseEnter:en,onMouseLeave:$e,onPointerEnter:_e,onClick:M,onPointerDownCapture:on},k&&d.createElement(Ze,{prefixCls:s,arrow:k,arrowPos:R,align:me}),d.createElement(ge,{cache:!u&&!F},fn))})}))}),J=be,Xe=d.forwardRef(function(l,x){var f=l.children,Q=l.getTriggerDOMNode,s=(0,ye.Yr)(f),a=d.useCallback(function(y){(0,ye.mH)(x,Q?Q(y):y)},[Q]),r=(0,ye.x1)(a,(0,ye.C4)(f));return s?d.cloneElement(f,{ref:r}):f}),De=Xe,Ye=d.createContext(null),Je=Ye;function Y(l){return l?Array.isArray(l)?l:[l]:[]}function de(l,x,f,Q){return d.useMemo(function(){var s=Y(f!=null?f:x),a=Y(Q!=null?Q:x),r=new Set(s),y=new Set(a);return l&&(r.has("hover")&&(r.delete("hover"),r.add("click")),y.has("hover")&&(y.delete("hover"),y.add("click"))),[r,y]},[l,x,f,Q])}var z=e(29194);function A(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?l[0]===x[0]:l[0]===x[0]&&l[1]===x[1]}function o(l,x,f,Q){for(var s=f.points,a=Object.keys(l),r=0;r1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(l)?x:l}function W(l){return H(parseFloat(l),0)}function E(l,x){var f=(0,n.Z)({},l);return(x||[]).forEach(function(Q){if(!(Q instanceof HTMLBodyElement||Q instanceof HTMLHtmlElement)){var s=i(Q).getComputedStyle(Q),a=s.overflow,r=s.overflowClipMargin,y=s.borderTopWidth,u=s.borderBottomWidth,N=s.borderLeftWidth,F=s.borderRightWidth,M=Q.getBoundingClientRect(),O=Q.offsetHeight,k=Q.clientHeight,R=Q.offsetWidth,me=Q.clientWidth,Pe=W(y),je=W(u),He=W(N),ie=W(F),fe=H(Math.round(M.width/R*1e3)/1e3),le=H(Math.round(M.height/O*1e3)/1e3),ee=(R-me-He-ie)*fe,en=(O-k-Pe-je)*le,$e=Pe*le,_e=je*le,on=He*fe,wn=ie*fe,cn=0,Ge=0;if(a==="clip"){var gn=W(r);cn=gn*fe,Ge=gn*le}var An=M.x+on-cn,he=M.y+$e-Ge,ae=An+M.width+2*cn-on-wn-ee,q=he+M.height+2*Ge-$e-_e-en;f.left=Math.max(f.left,An),f.top=Math.max(f.top,he),f.right=Math.min(f.right,ae),f.bottom=Math.min(f.bottom,q)}}),f}function V(l){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(x),Q=f.match(/^(.*)\%$/);return Q?l*(parseFloat(Q[1])/100):parseFloat(f)}function K(l,x){var f=x||[],Q=(0,g.Z)(f,2),s=Q[0],a=Q[1];return[V(l.width,s),V(l.height,a)]}function te(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[l[0],l[1]]}function S(l,x){var f=x[0],Q=x[1],s,a;return f==="t"?a=l.y:f==="b"?a=l.y+l.height:a=l.y+l.height/2,Q==="l"?s=l.x:Q==="r"?s=l.x+l.width:s=l.x+l.width/2,{x:s,y:a}}function ue(l,x){var f={t:"b",b:"t",l:"r",r:"l"};return l.map(function(Q,s){return s===x?f[Q]||"c":Q}).join("")}function Ae(l,x,f,Q,s,a,r){var y=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:s[Q]||{}}),u=(0,g.Z)(y,2),N=u[0],F=u[1],M=d.useRef(0),O=d.useMemo(function(){return x?I(x):[]},[x]),k=d.useRef({}),R=function(){k.current={}};l||R();var me=(0,c.Z)(function(){if(x&&f&&l){let Jn=function(_n,zt){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wt,Rt=we.x+_n,_t=we.y+zt,nr=Rt+Dn,Ut=_t+Bn,tr=Math.max(Rt,Tt.left),re=Math.max(_t,Tt.top),pe=Math.min(nr,Tt.right),un=Math.min(Ut,Tt.bottom);return Math.max(0,(pe-tr)*(un-re))},Hn=function(){Gn=we.y+Ne,Sn=Gn+Bn,Kn=we.x+ze,jn=Kn+Dn};var He,ie,fe,le,ee=x,en=ee.ownerDocument,$e=i(ee),_e=$e.getComputedStyle(ee),on=_e.position,wn=ee.style.left,cn=ee.style.top,Ge=ee.style.right,gn=ee.style.bottom,An=ee.style.overflow,he=(0,n.Z)((0,n.Z)({},s[Q]),a),ae=en.createElement("div");(He=ee.parentElement)===null||He===void 0||He.appendChild(ae),ae.style.left="".concat(ee.offsetLeft,"px"),ae.style.top="".concat(ee.offsetTop,"px"),ae.style.position=on,ae.style.height="".concat(ee.offsetHeight,"px"),ae.style.width="".concat(ee.offsetWidth,"px"),ee.style.left="0",ee.style.top="0",ee.style.right="auto",ee.style.bottom="auto",ee.style.overflow="hidden";var q;if(Array.isArray(f))q={x:f[0],y:f[1],width:0,height:0};else{var Re,We,fn=f.getBoundingClientRect();fn.x=(Re=fn.x)!==null&&Re!==void 0?Re:fn.left,fn.y=(We=fn.y)!==null&&We!==void 0?We:fn.top,q={x:fn.x,y:fn.y,width:fn.width,height:fn.height}}var we=ee.getBoundingClientRect(),mn=$e.getComputedStyle(ee),Ue=mn.height,pn=mn.width;we.x=(ie=we.x)!==null&&ie!==void 0?ie:we.left,we.y=(fe=we.y)!==null&&fe!==void 0?fe:we.top;var yn=en.documentElement,En=yn.clientWidth,Qn=yn.clientHeight,Wn=yn.scrollWidth,Pt=yn.scrollHeight,it=yn.scrollTop,rn=yn.scrollLeft,Bn=we.height,Dn=we.width,bn=q.height,ot=q.width,ft={left:0,top:0,right:En,bottom:Qn},Vn={left:-rn,top:-it,right:Wn-rn,bottom:Pt-it},In=he.htmlRegion,ct="visible",tt="visibleFirst";In!=="scroll"&&In!==tt&&(In=ct);var gt=In===tt,Lt=E(Vn,O),an=E(ft,O),wt=In===ct?an:Lt,Mn=gt?an:wt;ee.style.left="auto",ee.style.top="auto",ee.style.right="0",ee.style.bottom="0";var Et=ee.getBoundingClientRect();ee.style.left=wn,ee.style.top=cn,ee.style.right=Ge,ee.style.bottom=gn,ee.style.overflow=An,(le=ee.parentElement)===null||le===void 0||le.removeChild(ae);var kn=H(Math.round(Dn/parseFloat(pn)*1e3)/1e3),Bt=H(Math.round(Bn/parseFloat(Ue)*1e3)/1e3);if(kn===0||Bt===0||(0,L.Sh)(f)&&!(0,z.Z)(f))return;var ht=he.offset,et=he.targetOffset,dt=K(we,ht),v=(0,g.Z)(dt,2),p=v[0],w=v[1],b=K(q,et),P=(0,g.Z)(b,2),Z=P[0],T=P[1];q.x-=Z,q.y-=T;var $=he.points||[],Qe=(0,g.Z)($,2),Oe=Qe[0],ln=Qe[1],xe=te(ln),Te=te(Oe),Ie=S(q,xe),qe=S(we,Te),Ke=(0,n.Z)({},he),ze=Ie.x-qe.x+p,Ne=Ie.y-qe.y+w,nn=Jn(ze,Ne),Ve=Jn(ze,Ne,an),ke=S(q,["t","l"]),vn=S(we,["t","l"]),Fe=S(q,["b","r"]),tn=S(we,["b","r"]),Nn=he.overflow||{},zn=Nn.adjustX,Rn=Nn.adjustY,On=Nn.shiftX,xn=Nn.shiftY,Yn=function(zt){return typeof zt=="boolean"?zt:zt>=0},Gn,Sn,Kn,jn;Hn();var rt=Yn(Rn),dn=Te[0]===xe[0];if(rt&&Te[0]==="t"&&(Sn>Mn.bottom||k.current.bt)){var Fn=Ne;dn?Fn-=Bn-bn:Fn=ke.y-tn.y-w;var mt=Jn(ze,Fn),pt=Jn(ze,Fn,an);mt>nn||mt===nn&&(!gt||pt>=Ve)?(k.current.bt=!0,Ne=Fn,w=-w,Ke.points=[ue(Te,0),ue(xe,0)]):k.current.bt=!1}if(rt&&Te[0]==="b"&&(Gnnn||Ht===nn&&(!gt||hn>=Ve)?(k.current.tb=!0,Ne=at,w=-w,Ke.points=[ue(Te,0),ue(xe,0)]):k.current.tb=!1}var nt=Yn(zn),Ot=Te[1]===xe[1];if(nt&&Te[1]==="l"&&(jn>Mn.right||k.current.rl)){var lt=ze;Ot?lt-=Dn-ot:lt=ke.x-tn.x-p;var vt=Jn(lt,Ne),Tn=Jn(lt,Ne,an);vt>nn||vt===nn&&(!gt||Tn>=Ve)?(k.current.rl=!0,ze=lt,p=-p,Ke.points=[ue(Te,1),ue(xe,1)]):k.current.rl=!1}if(nt&&Te[1]==="r"&&(Knnn||st===nn&&(!gt||jt>=Ve)?(k.current.lr=!0,ze=Un,p=-p,Ke.points=[ue(Te,1),ue(xe,1)]):k.current.lr=!1}Hn();var qn=On===!0?0:On;typeof qn=="number"&&(Knan.right&&(ze-=jn-an.right-p,q.x>an.right-qn&&(ze+=q.x-an.right+qn)));var At=xn===!0?0:xn;typeof At=="number"&&(Gnan.bottom&&(Ne-=Sn-an.bottom-w,q.y>an.bottom-At&&(Ne+=q.y-an.bottom+At)));var Zt=we.x+ze,Mt=Zt+Dn,Ct=we.y+Ne,Qt=Ct+Bn,It=q.x,Nt=It+ot,Jt=q.y,Yt=Jt+bn,kt=Math.max(Zt,It),ut=Math.min(Mt,Nt),Kt=(kt+ut)/2,Ft=Kt-Zt,Gt=Math.max(Ct,Jt),Vt=Math.min(Qt,Yt),Wt=(Gt+Vt)/2,xt=Wt-Ct;r==null||r(x,Ke);var $n=Et.right-we.x-(ze+we.width),bt=Et.bottom-we.y-(Ne+we.height);kn===1&&(ze=Math.floor(ze),$n=Math.floor($n)),Bt===1&&(Ne=Math.floor(Ne),bt=Math.floor(bt));var St={ready:!0,offsetX:ze/kn,offsetY:Ne/Bt,offsetR:$n/kn,offsetB:bt/Bt,arrowX:Ft/kn,arrowY:xt/Bt,scaleX:kn,scaleY:Bt,align:Ke};F(St)}}),Pe=function(){M.current+=1;var ie=M.current;Promise.resolve().then(function(){M.current===ie&&me()})},je=function(){F(function(ie){return(0,n.Z)((0,n.Z)({},ie),{},{ready:!1})})};return(0,h.Z)(je,[Q]),(0,h.Z)(function(){l||je()},[l]),[N.ready,N.offsetX,N.offsetY,N.offsetR,N.offsetB,N.arrowX,N.arrowY,N.scaleX,N.scaleY,N.align,Pe]}var Le=e(77654);function Me(l,x,f,Q,s){(0,h.Z)(function(){if(l&&x&&f){let M=function(){Q(),s()};var a=x,r=f,y=I(a),u=I(r),N=i(r),F=new Set([N].concat((0,Le.Z)(y),(0,Le.Z)(u)));return F.forEach(function(O){O.addEventListener("scroll",M,{passive:!0})}),N.addEventListener("resize",M,{passive:!0}),Q(),function(){F.forEach(function(O){O.removeEventListener("scroll",M),N.removeEventListener("resize",M)})}}},[l,x,f])}var se=e(48736);function oe(l,x,f,Q,s,a,r,y){var u=d.useRef(l);u.current=l;var N=d.useRef(!1);d.useEffect(function(){if(x&&Q&&(!s||a)){var M=function(){N.current=!1},O=function(fe){var le;u.current&&!r(((le=fe.composedPath)===null||le===void 0||(le=le.call(fe))===null||le===void 0?void 0:le[0])||fe.target)&&!N.current&&y(!1)},k=i(Q);k.addEventListener("pointerdown",M,!0),k.addEventListener("mousedown",O,!0),k.addEventListener("contextmenu",O,!0);var R=(0,X.A)(f);if(R&&(R.addEventListener("mousedown",O,!0),R.addEventListener("contextmenu",O,!0)),0)var me,Pe,je,He;return function(){k.removeEventListener("pointerdown",M,!0),k.removeEventListener("mousedown",O,!0),k.removeEventListener("contextmenu",O,!0),R&&(R.removeEventListener("mousedown",O,!0),R.removeEventListener("contextmenu",O,!0))}}},[x,f,Q,s,a]);function F(){N.current=!0}return F}var Ce=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Be(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U.Z,x=d.forwardRef(function(f,Q){var s=f.prefixCls,a=s===void 0?"rc-trigger-popup":s,r=f.children,y=f.action,u=y===void 0?"hover":y,N=f.showAction,F=f.hideAction,M=f.popupVisible,O=f.defaultPopupVisible,k=f.onPopupVisibleChange,R=f.afterPopupVisibleChange,me=f.mouseEnterDelay,Pe=f.mouseLeaveDelay,je=Pe===void 0?.1:Pe,He=f.focusDelay,ie=f.blurDelay,fe=f.mask,le=f.maskClosable,ee=le===void 0?!0:le,en=f.getPopupContainer,$e=f.forceRender,_e=f.autoDestroy,on=f.destroyPopupOnHide,wn=f.popup,cn=f.popupClassName,Ge=f.popupStyle,gn=f.popupPlacement,An=f.builtinPlacements,he=An===void 0?{}:An,ae=f.popupAlign,q=f.zIndex,Re=f.stretch,We=f.getPopupClassNameFromAlign,fn=f.fresh,we=f.alignPoint,mn=f.onPopupClick,Ue=f.onPopupAlign,pn=f.arrow,yn=f.popupMotion,En=f.maskMotion,Qn=f.popupTransitionName,Wn=f.popupAnimation,Pt=f.maskTransitionName,it=f.maskAnimation,rn=f.className,Bn=f.getTriggerDOMNode,Dn=(0,D.Z)(f,Ce),bn=_e||on||!1,ot=d.useState(!1),ft=(0,g.Z)(ot,2),Vn=ft[0],In=ft[1];(0,h.Z)(function(){In((0,t.Z)())},[]);var ct=d.useRef({}),tt=d.useContext(Je),gt=d.useMemo(function(){return{registerSubPopup:function(pe,un){ct.current[pe]=un,tt==null||tt.registerSubPopup(pe,un)}}},[tt]),Lt=(0,C.Z)(),an=d.useState(null),wt=(0,g.Z)(an,2),Mn=wt[0],Et=wt[1],kn=d.useRef(null),Bt=(0,c.Z)(function(re){kn.current=re,(0,L.Sh)(re)&&Mn!==re&&Et(re),tt==null||tt.registerSubPopup(Lt,re)}),ht=d.useState(null),et=(0,g.Z)(ht,2),dt=et[0],v=et[1],p=d.useRef(null),w=(0,c.Z)(function(re){(0,L.Sh)(re)&&dt!==re&&(v(re),p.current=re)}),b=d.Children.only(r),P=(b==null?void 0:b.props)||{},Z={},T=(0,c.Z)(function(re){var pe,un,Ln=dt;return(Ln==null?void 0:Ln.contains(re))||((pe=(0,X.A)(Ln))===null||pe===void 0?void 0:pe.host)===re||re===Ln||(Mn==null?void 0:Mn.contains(re))||((un=(0,X.A)(Mn))===null||un===void 0?void 0:un.host)===re||re===Mn||Object.values(ct.current).some(function(Zn){return(Zn==null?void 0:Zn.contains(re))||re===Zn})}),$=B(a,yn,Wn,Qn),Qe=B(a,En,it,Pt),Oe=d.useState(O||!1),ln=(0,g.Z)(Oe,2),xe=ln[0],Te=ln[1],Ie=M!=null?M:xe,qe=(0,c.Z)(function(re){M===void 0&&Te(re)});(0,h.Z)(function(){Te(M||!1)},[M]);var Ke=d.useRef(Ie);Ke.current=Ie;var ze=d.useRef([]);ze.current=[];var Ne=(0,c.Z)(function(re){var pe;qe(re),((pe=ze.current[ze.current.length-1])!==null&&pe!==void 0?pe:Ie)!==re&&(ze.current.push(re),k==null||k(re))}),nn=d.useRef(),Ve=function(){clearTimeout(nn.current)},ke=function(pe){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ve(),un===0?Ne(pe):nn.current=setTimeout(function(){Ne(pe)},un*1e3)};d.useEffect(function(){return Ve},[]);var vn=d.useState(!1),Fe=(0,g.Z)(vn,2),tn=Fe[0],Nn=Fe[1];(0,h.Z)(function(re){(!re||Ie)&&Nn(!0)},[Ie]);var zn=d.useState(null),Rn=(0,g.Z)(zn,2),On=Rn[0],xn=Rn[1],Yn=d.useState(null),Gn=(0,g.Z)(Yn,2),Sn=Gn[0],Kn=Gn[1],jn=function(pe){Kn([pe.clientX,pe.clientY])},rt=Ae(Ie,Mn,we&&Sn!==null?Sn:dt,gn,he,ae,Ue),dn=(0,g.Z)(rt,11),Fn=dn[0],mt=dn[1],pt=dn[2],at=dn[3],Ht=dn[4],hn=dn[5],nt=dn[6],Ot=dn[7],lt=dn[8],vt=dn[9],Tn=dn[10],Un=de(Vn,u,N,F),st=(0,g.Z)(Un,2),jt=st[0],qn=st[1],At=jt.has("click"),Zt=qn.has("click")||qn.has("contextMenu"),Mt=(0,c.Z)(function(){tn||Tn()}),Ct=function(){Ke.current&&we&&Zt&&ke(!1)};Me(Ie,dt,Mn,Mt,Ct),(0,h.Z)(function(){Mt()},[Sn,gn]),(0,h.Z)(function(){Ie&&!(he!=null&&he[gn])&&Mt()},[JSON.stringify(ae)]);var Qt=d.useMemo(function(){var re=o(he,a,vt,we);return j()(re,We==null?void 0:We(vt))},[vt,We,he,a,we]);d.useImperativeHandle(Q,function(){return{nativeElement:p.current,popupElement:kn.current,forceAlign:Mt}});var It=d.useState(0),Nt=(0,g.Z)(It,2),Jt=Nt[0],Yt=Nt[1],kt=d.useState(0),ut=(0,g.Z)(kt,2),Kt=ut[0],Ft=ut[1],Gt=function(){if(Re&&dt){var pe=dt.getBoundingClientRect();Yt(pe.width),Ft(pe.height)}},Vt=function(){Gt(),Mt()},Wt=function(pe){Nn(!1),Tn(),R==null||R(pe)},xt=function(){return new Promise(function(pe){Gt(),xn(function(){return pe})})};(0,h.Z)(function(){On&&(Tn(),On(),xn(null))},[On]);function $n(re,pe,un,Ln){Z[re]=function(Zn){var qt;Ln==null||Ln(Zn),ke(pe,un);for(var Xt=arguments.length,fr=new Array(Xt>1?Xt-1:0),er=1;er1?un-1:0),Zn=1;Zn1?un-1:0),Zn=1;Zn{O({type:"globalSetting/headerToggle",payload:!1}),O({type:"globalSetting/footerToggle",payload:!1}),O({type:"globalSetting/onlyShowBackTopToggle",payload:!0})},[]),n.createElement("div",{style:{background:"#315FF9"}},n.createElement("img",{style:{width:"100%"},src:L}),n.createElement("div",{style:{width:"1224px",margin:"0px auto"}},n.createElement("div",{style:{backgroundImage:`url(${ve})`,height:595,width:260,position:"fixed",left:-10,bottom:100,zIndex:100}},n.createElement(g.default,{className:l.Anchor,style:{marginTop:"190px",width:130,marginLeft:84,background:"rgb(0, 0, 0,0)"},affix:!1,getCurrentAnchor:()=>"#one"},n.createElement(D.default,{style:{background:"rgb(0, 0, 0,0)",border:"0px"}},n.createElement(D.default.Item,{className:l.muitem},n.createElement(f,{href:"#one",title:"\u96F6\u57FA\u7840\u5165\u95E8"})),n.createElement(D.default.Item,{className:l.muitem},n.createElement(f,{href:"#two",title:"\u7ECF\u5178\u6848\u4F8B\u8BFE"})),n.createElement(D.default.Item,{className:l.muitem},n.createElement(f,{href:"#three",title:"Java\u5168\u6808\u5F00\u53D1\u7CFB\u5217"})),n.createElement(D.default.Item,{className:l.muitem},n.createElement(f,{href:"#four",title:"Python\u4E13\u573A"})),n.createElement(D.default.Item,{className:l.muitem},n.createElement(f,{href:"#five",title:"\u5927\u6570\u636E\u4E13\u573A"})),n.createElement(D.default.Item,{className:l.muitem},n.createElement(f,{href:"#six",title:"Go\u540E\u7AEF\u5F00\u53D1\u7CFB\u5217"})),n.createElement(D.default.Item,{className:l.muitem},n.createElement(f,{href:"#activities",title:"\u6D3B\u52A8\u54A8\u8BE2"})))),n.createElement(U.Z,{className:`${l.backTop}`,visibilityHeight:0},n.createElement("div",{style:{width:"70px",height:"60px",cursor:"pointer"}}))),n.createElement("div",{style:{backgroundImage:`url(${Ze})`,zIndex:100,height:200,width:158,position:"fixed",right:100,bottom:300}}),n.createElement("div",{onClick:()=>{(0,x.RG)(window.location.href)},style:{backgroundImage:`url(${ne})`,zIndex:100,height:120,width:143,position:"fixed",right:100,bottom:100,cursor:"pointer"}}),n.createElement("div",{id:"one",style:{backgroundImage:`url(${X})`,height:655,marginTop:120,padding:"160px 80px 60px 80px"}},n.createElement(m.Z,{gutter:[16,16]},Q.map(R=>n.createElement(j.Z,{span:8},n.createElement("a",{target:"_blank",href:R.url},n.createElement("img",{src:R.img})))))),n.createElement("div",{id:"two",style:{backgroundImage:`url(${c})`,marginTop:120,height:655,padding:"160px 80px 60px 80px"}},n.createElement(m.Z,{gutter:[16,16]},s.map(R=>n.createElement(j.Z,{span:8},n.createElement("a",{target:"_blank",href:R.url},n.createElement("img",{src:R.img})))))),n.createElement("div",{id:"three",style:{backgroundImage:`url(${C})`,marginTop:120,height:655,padding:"160px 80px 60px 80px"}},n.createElement(m.Z,{gutter:[16,16]},a.map(R=>n.createElement(j.Z,{span:8},n.createElement("a",{target:"_blank",href:R.url},n.createElement("img",{src:R.img})))))),n.createElement("div",{id:"four",style:{backgroundImage:`url(${h})`,marginTop:120,height:861,padding:"160px 80px 60px 80px"}},n.createElement(m.Z,{gutter:[16,16]},r.map(R=>n.createElement(j.Z,{span:8},n.createElement("a",{target:"_blank",href:R.url},n.createElement("img",{src:R.img})))))),n.createElement("div",{id:"five",style:{backgroundImage:`url(${t})`,marginTop:120,height:449,padding:"160px 80px 60px 80px"}},n.createElement(m.Z,{gutter:[16,16]},y.map(R=>n.createElement(j.Z,{span:8},n.createElement("a",{target:"_blank",href:R.url},n.createElement("img",{src:R.img})))))),n.createElement("div",{id:"six",style:{backgroundImage:`url(${d})`,marginTop:120,height:449,padding:"160px 80px 60px 80px"}},n.createElement(m.Z,{gutter:[16,16]},u.map(R=>n.createElement(j.Z,{span:8},n.createElement("a",{target:"_blank",href:R.url},n.createElement("img",{src:R.img})))))),n.createElement("div",{id:"activities",style:{backgroundImage:`url(${ye})`,margin:"0px auto",marginTop:120,height:600,width:1145}}),n.createElement("div",{style:{marginTop:50,fontSize:18,fontWeight:600,marginBottom:14,textAlign:"center",color:"#fff"}},"\u5982\u6709\u7591\u95EE\u8BF7\u54A8\u8BE2\u52A9\u6559\uFF08\u5FAE\u4FE1\uFF1Aeducoder888\uFF09"),n.createElement("div",{style:{fontSize:18,fontWeight:600,textAlign:"center",color:"#fff"}},"\u6D3B\u52A8\u89E3\u91CA\u6743\u5F52\u5934\u6B4C\u6240\u6709"),n.createElement("div",{style:{height:120}})),n.createElement("div",{style:{background:"#07119E",height:100,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:"12px"}},n.createElement("span",null,"\xA9 2022 \u5934\u6B4C\u5E73\u53F0\uFF0C\u786E\u5B9E\u7ED9\u529B\uFF01"),n.createElement("div",{style:{margin:"0px 20px"}},n.createElement("img",{src:"https://ali-cdn.educoder.net/api/attachments/1547379",alt:"",width:"16px",height:"16px"}),n.createElement("a",{href:"http://beian.miit.gov.cn/",target:"_blank",style:{color:"#fff"}},"\u6E58ICP\u590717009477\u53F7")),n.createElement("div",{style:{marginRight:20}},n.createElement("img",{src:"https://ali-cdn.educoder.net/api/attachments/1547379",alt:"",width:"16px",height:"16px"}),n.createElement("a",{href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",target:"_blank",style:{color:"#fff"}},"\u6E58\u516C\u7F51\u5B89\u590743019002000962\u53F7")),n.createElement("span",null,"\u70ED\u7EBF\uFF1A400-883-0971")))}var F=(0,G.connect)(({user:M})=>({user:M}))(N)},29509:function(sn,ce,e){e.d(ce,{o2:function(){return m},yT:function(){return j}});var n=e(77654),g=e(34998);const D=g.i.map(G=>`${G}-inverse`),U=["success","processing","error","default","warning"];function m(G){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,n.Z)(D),(0,n.Z)(g.i)).includes(G):g.i.includes(G)}function j(G){return U.includes(G)}},97224:function(sn,ce,e){e.d(ce,{F:function(){return n}});function n(D){return D!=null&&D===D.window}const g=D=>{var U,m;if(typeof window=="undefined")return 0;let j=0;return n(D)?j=D.pageYOffset:D instanceof Document?j=D.documentElement.scrollTop:(D instanceof HTMLElement||D)&&(j=D.scrollTop),D&&!n(D)&&typeof j!="number"&&(j=(m=((U=D.ownerDocument)!==null&&U!==void 0?U:D).documentElement)===null||m===void 0?void 0:m.scrollTop),j};ce.Z=g},52838:function(sn,ce,e){e.d(ce,{Z:function(){return j}});var n=e(37645);function g(G,L,X,c){if(c===!1)return{adjustX:!1,adjustY:!1};const C=c&&typeof c=="object"?c:{},h={};switch(G){case"top":case"bottom":h.shiftX=L.arrowOffsetHorizontal*2+X,h.shiftY=!0,h.adjustY=!0;break;case"left":case"right":h.shiftY=L.arrowOffsetVertical*2+X,h.shiftX=!0,h.adjustX=!0;break}const t=Object.assign(Object.assign({},h),C);return t.shiftX||(t.adjustX=!0),t.shiftY||(t.adjustY=!0),t}const D={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"]}},U={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"]}},m=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function j(G){const{arrowWidth:L,autoAdjustOverflow:X,arrowPointAtCenter:c,offset:C,borderRadius:h,visibleFirst:t}=G,d=L/2,ve={};return Object.keys(D).forEach(ne=>{const ye=c&&U[ne]||D[ne],Ze=Object.assign(Object.assign({},ye),{offset:[0,0],dynamicInset:!0});switch(ve[ne]=Ze,m.has(ne)&&(Ze.autoArrow=!1),ne){case"top":case"topLeft":case"topRight":Ze.offset[1]=-d-C;break;case"bottom":case"bottomLeft":case"bottomRight":Ze.offset[1]=d+C;break;case"left":case"leftTop":case"leftBottom":Ze.offset[0]=-d-C;break;case"right":case"rightTop":case"rightBottom":Ze.offset[0]=d+C;break}const Se=(0,n.wZ)({contentRadius:h,limitVerticalRadius:!0});if(c)switch(ne){case"topLeft":case"bottomLeft":Ze.offset[0]=-Se.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":Ze.offset[0]=Se.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":Ze.offset[1]=-Se.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":Ze.offset[1]=Se.arrowOffsetHorizontal*2-d;break}Ze.overflow=g(ne,Se,L,X),t&&(Ze.htmlRegion="visibleFirst")}),ve}},83010:function(sn,ce,e){e.d(ce,{Z:function(){return U}});var n=e(16089);function g(m,j,G,L){const X=G-j;return m/=L/2,m<1?X/2*m*m*m+j:X/2*((m-=2)*m*m+2)+j}var D=e(97224);function U(m){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:G=()=>window,callback:L,duration:X=450}=j,c=G(),C=(0,D.Z)(c),h=Date.now(),t=()=>{const ve=Date.now()-h,ne=g(ve>X?X:ve,C,m,X);(0,D.F)(c)?c.scrollTo(window.pageXOffset,ne):c instanceof Document||c.constructor.name==="HTMLDocument"?c.documentElement.scrollTop=ne:c.scrollTop=ne,ve()=>{m=null,U.apply(void 0,(0,n.Z)(L))},G=function(){if(m==null){for(var L=arguments.length,X=new Array(L),c=0;c{g.Z.cancel(m),m=null},G}ce.Z=D},48608:function(sn,ce,e){e.d(ce,{Z:function(){return _}});var n=e(59301),g=e(92310),D=e.n(g),U=e(29301),m=e(41780),j=e(48755),G=e(16931);const L=ge=>{const{componentCls:be}=ge;return{[be]:{position:"fixed",zIndex:ge.zIndexPopup}}},X=ge=>({zIndexPopup:ge.zIndexBase+10});var c=(0,G.I$)("Affix",L,X);function C(ge){return ge!==window?ge.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function h(ge,be,J){if(J!==void 0&&Math.round(be.top)>Math.round(ge.top)-J)return J+be.top}function t(ge,be,J){if(J!==void 0&&Math.round(be.bottom){var J;const{style:Xe,offsetTop:De,offsetBottom:Ye,prefixCls:Je,className:Y,rootClassName:de,children:z,target:A,onChange:o,onTestUpdatePosition:B}=ge,i=d(ge,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]),{getPrefixCls:I,getTargetContainer:H}=n.useContext(j.E_),W=I("affix",Je),[E,V]=n.useState(!1),[K,te]=n.useState(),[S,ue]=n.useState(),Ae=n.useRef(ye),Le=n.useRef(null),Me=n.useRef(null),se=n.useRef(null),oe=n.useRef(null),Ce=n.useRef(null),Be=(J=A!=null?A:H)!==null&&J!==void 0?J:ne,Ee=Ye===void 0&&De===void 0?0:De,l=()=>{if(Ae.current!==Ze||!oe.current||!se.current||!Be)return;const M=Be();if(M){const O={status:ye},k=C(se.current);if(k.top===0&&k.left===0&&k.width===0&&k.height===0)return;const R=C(M),me=h(k,R,Ee),Pe=t(k,R,Ye);me!==void 0?(O.affixStyle={position:"fixed",top:me,width:k.width,height:k.height},O.placeholderStyle={width:k.width,height:k.height}):Pe!==void 0&&(O.affixStyle={position:"fixed",bottom:Pe,width:k.width,height:k.height},O.placeholderStyle={width:k.width,height:k.height}),O.lastAffix=!!O.affixStyle,E!==O.lastAffix&&(o==null||o(O.lastAffix)),Ae.current=O.status,te(O.affixStyle),ue(O.placeholderStyle),V(O.lastAffix)}},x=()=>{Ae.current=Ze,l()},f=(0,m.Z)(()=>{x()}),Q=(0,m.Z)(()=>{if(Be&&K){const M=Be();if(M&&se.current){const O=C(M),k=C(se.current),R=h(k,O,Ee),me=t(k,O,Ye);if(R!==void 0&&K.top===R||me!==void 0&&K.bottom===me)return}}x()}),s=()=>{const M=Be==null?void 0:Be();M&&(ve.forEach(O=>{var k;Me.current&&((k=Le.current)===null||k===void 0||k.removeEventListener(O,Me.current)),M==null||M.addEventListener(O,Q)}),Le.current=M,Me.current=Q)},a=()=>{Ce.current&&(clearTimeout(Ce.current),Ce.current=null);const M=Be==null?void 0:Be();ve.forEach(O=>{var k;M==null||M.removeEventListener(O,Q),Me.current&&((k=Le.current)===null||k===void 0||k.removeEventListener(O,Me.current))}),f.cancel(),Q.cancel()};n.useImperativeHandle(be,()=>({updatePosition:f})),n.useEffect(()=>(Ce.current=setTimeout(s),()=>a()),[]),n.useEffect(()=>{s()},[A,K,E]),n.useEffect(()=>{f()},[A,De,Ye]);const[r,y,u]=c(W),N=D()(de,y,W,u),F=D()({[N]:K});return r(n.createElement(U.Z,{onResize:f},n.createElement("div",Object.assign({style:Xe,className:Y,ref:se},i),K&&n.createElement("div",{style:S,"aria-hidden":"true"}),n.createElement("div",{className:F,ref:oe,style:K},n.createElement(U.Z,{onResize:f},z)))))})},45685:function(sn,ce,e){e.d(ce,{default:function(){return z}});var n=e(77654),g=e(59301),D=e(92310),U=e.n(D),m=e(6089),j=e(16722),G=e(97224),L=e(83010),X=e(48608),c=e(48755),C=e(83397),t=g.createContext(void 0),ve=A=>{const{href:o,title:B,prefixCls:i,children:I,className:H,target:W,replace:E}=A,V=g.useContext(t),{registerLink:K,unregisterLink:te,scrollTo:S,onClick:ue,activeLink:Ae,direction:Le}=V||{};g.useEffect(()=>(K==null||K(o),()=>{te==null||te(o)}),[o]);const Me=l=>{ue==null||ue(l,{title:B,href:o}),S==null||S(o),E&&(l.preventDefault(),window.location.replace(o))},{getPrefixCls:se}=g.useContext(c.E_),oe=se("anchor",i),Ce=Ae===o,Be=U()(`${oe}-link`,H,{[`${oe}-link-active`]:Ce}),Ee=U()(`${oe}-link-title`,{[`${oe}-link-title-active`]:Ce});return g.createElement("div",{className:Be},g.createElement("a",{className:Ee,href:o,title:typeof B=="string"?B:"",target:W,onClick:Me},B),Le!=="horizontal"?I:null)},ne=e(36237),ye=e(63356),Ze=e(16931),Se=e(51636);const _=A=>{const{componentCls:o,holderOffsetBlock:B,motionDurationSlow:i,lineWidthBold:I,colorPrimary:H,lineType:W,colorSplit:E,calc:V}=A;return{[`${o}-wrapper`]:{marginBlockStart:V(B).mul(-1).equal(),paddingBlockStart:B,[o]:Object.assign(Object.assign({},(0,ye.Wf)(A)),{position:"relative",paddingInlineStart:I,[`${o}-link`]:{paddingBlock:A.linkPaddingBlock,paddingInline:`${(0,ne.unit)(A.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},ye.vS),{position:"relative",display:"block",marginBlockEnd:A.anchorTitleBlock,color:A.colorText,transition:`all ${A.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${o}-link-title`]:{color:A.colorPrimary},[`${o}-link`]:{paddingBlock:A.anchorPaddingBlockSecondary}}}),[`&:not(${o}-wrapper-horizontal)`]:{[o]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${(0,ne.unit)(I)} ${W} ${E}`,content:'" "'},[`${o}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${i} ease-in-out`,width:I,backgroundColor:H,[`&${o}-ink-visible`]:{display:"inline-block"}}}},[`${o}-fixed ${o}-ink ${o}-ink`]:{display:"none"}}}},ge=A=>{const{componentCls:o,motionDurationSlow:B,lineWidthBold:i,colorPrimary:I}=A;return{[`${o}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${(0,ne.unit)(A.lineWidth)} ${A.lineType} ${A.colorSplit}`,content:'" "'},[o]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${o}-link:first-of-type`]:{paddingInline:0},[`${o}-ink`]:{position:"absolute",bottom:0,transition:`left ${B} ease-in-out, width ${B} ease-in-out`,height:i,backgroundColor:I}}}}},be=A=>({linkPaddingBlock:A.paddingXXS,linkPaddingInlineStart:A.padding});var J=(0,Ze.I$)("Anchor",A=>{const{fontSize:o,fontSizeLG:B,paddingXXS:i,calc:I}=A,H=(0,Se.mergeToken)(A,{holderOffsetBlock:i,anchorPaddingBlockSecondary:I(i).div(2).equal(),anchorTitleBlock:I(o).div(14).mul(3).equal(),anchorBallSize:I(B).div(2).equal()});return[_(H),ge(H)]},be);function Xe(){return window}function De(A,o){if(!A.getClientRects().length)return 0;const B=A.getBoundingClientRect();return B.width||B.height?o===window?B.top-A.ownerDocument.documentElement.clientTop:B.top-o.getBoundingClientRect().top:B.top}const Ye=/#([\S ]+)$/;var Y=A=>{var o;const{rootClassName:B,prefixCls:i,className:I,style:H,offsetTop:W,affix:E=!0,showInkInFixed:V=!1,children:K,items:te,direction:S="vertical",bounds:ue,targetOffset:Ae,onClick:Le,onChange:Me,getContainer:se,getCurrentAnchor:oe,replace:Ce}=A,[Be,Ee]=g.useState([]),[l,x]=g.useState(null),f=g.useRef(l),Q=g.useRef(null),s=g.useRef(null),a=g.useRef(!1),{direction:r,getPrefixCls:y,className:u,style:N}=(0,c.dj)("anchor"),{getTargetContainer:F}=g.useContext(c.E_),M=y("anchor",i),O=(0,C.Z)(M),[k,R,me]=J(M,O),Pe=(o=se!=null?se:F)!==null&&o!==void 0?o:Xe,je=JSON.stringify(Be),He=(0,m.Z)(ae=>{Be.includes(ae)||Ee(q=>[].concat((0,n.Z)(q),[ae]))}),ie=(0,m.Z)(ae=>{Be.includes(ae)&&Ee(q=>q.filter(Re=>Re!==ae))}),fe=()=>{var ae;const q=(ae=Q.current)===null||ae===void 0?void 0:ae.querySelector(`.${M}-link-title-active`);if(q&&s.current){const{style:Re}=s.current,We=S==="horizontal";Re.top=We?"":`${q.offsetTop+q.clientHeight/2}px`,Re.height=We?"":`${q.clientHeight}px`,Re.left=We?`${q.offsetLeft}px`:"",Re.width=We?`${q.clientWidth}px`:"",We&&(0,j.Z)(q,{scrollMode:"if-needed",block:"nearest"})}},le=function(ae){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const We=[],fn=Pe();return ae.forEach(we=>{const mn=Ye.exec(we==null?void 0:we.toString());if(!mn)return;const Ue=document.getElementById(mn[1]);if(Ue){const pn=De(Ue,fn);pn<=q+Re&&We.push({link:we,top:pn})}}),We.length?We.reduce((mn,Ue)=>Ue.top>mn.top?Ue:mn).link:""},ee=(0,m.Z)(ae=>{if(f.current===ae)return;const q=typeof oe=="function"?oe(ae):ae;x(q),f.current=q,Me==null||Me(ae)}),en=g.useCallback(()=>{if(a.current)return;const ae=le(Be,Ae!==void 0?Ae:W||0,ue);ee(ae)},[je,Ae,W]),$e=g.useCallback(ae=>{ee(ae);const q=Ye.exec(ae);if(!q)return;const Re=document.getElementById(q[1]);if(!Re)return;const We=Pe(),fn=(0,G.Z)(We),we=De(Re,We);let mn=fn+we;mn-=Ae!==void 0?Ae:W||0,a.current=!0,(0,L.Z)(mn,{getContainer:Pe,callback(){a.current=!1}})},[Ae,W]),_e=U()(R,me,O,B,`${M}-wrapper`,{[`${M}-wrapper-horizontal`]:S==="horizontal",[`${M}-rtl`]:r==="rtl"},I,u),on=U()(M,{[`${M}-fixed`]:!E&&!V}),wn=U()(`${M}-ink`,{[`${M}-ink-visible`]:l}),cn=Object.assign(Object.assign({maxHeight:W?`calc(100vh - ${W}px)`:"100vh"},N),H),Ge=ae=>Array.isArray(ae)?ae.map(q=>g.createElement(ve,Object.assign({replace:Ce},q,{key:q.key}),S==="vertical"&&Ge(q.children))):null,gn=g.createElement("div",{ref:Q,className:_e,style:cn},g.createElement("div",{className:on},g.createElement("span",{className:wn,ref:s}),"items"in A?Ge(te):K));g.useEffect(()=>{const ae=Pe();return en(),ae==null||ae.addEventListener("scroll",en),()=>{ae==null||ae.removeEventListener("scroll",en)}},[je]),g.useEffect(()=>{typeof oe=="function"&&ee(oe(f.current||""))},[oe]),g.useEffect(()=>{fe()},[S,oe,je,l]);const An=g.useMemo(()=>({registerLink:He,unregisterLink:ie,scrollTo:$e,activeLink:l,onClick:Le,direction:S}),[l,Le,$e,S]),he=E&&typeof E=="object"?E:void 0;return k(g.createElement(t.Provider,{value:An},E?g.createElement(X.Z,Object.assign({offsetTop:W,target:Pe},he),gn):gn))};const de=Y;de.Link=ve;var z=de},24283:function(sn,ce,e){e.d(ce,{Z:function(){return Je}});var n=e(59301),g=e(60499),D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},U=D,m=e(7657),j=function(de,z){return n.createElement(m.Z,(0,g.Z)({},de,{ref:z,icon:U}))},G=n.forwardRef(j),L=G,X=e(92310),c=e.n(X),C=e(77900),h=e(2738),t=e(97224),d=e(22703),ve=e(83010),ne=e(41780),ye=e(48755),Ze=e(36237),Se=e(63356),_=e(16931),ge=e(51636);const be=Y=>{const{componentCls:de,backTopFontSize:z,backTopSize:A,zIndexPopup:o}=Y;return{[de]:Object.assign(Object.assign({},(0,Se.Wf)(Y)),{position:"fixed",insetInlineEnd:Y.backTopInlineEnd,insetBlockEnd:Y.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${de}-content`]:{width:A,height:A,overflow:"hidden",color:Y.backTopColor,textAlign:"center",backgroundColor:Y.backTopBackground,borderRadius:A,transition:`all ${Y.motionDurationMid}`,"&:hover":{backgroundColor:Y.backTopHoverBackground,transition:`all ${Y.motionDurationMid}`}},[`${de}-icon`]:{fontSize:z,lineHeight:(0,Ze.unit)(A)}})}},J=Y=>{const{componentCls:de,screenMD:z,screenXS:A,backTopInlineEndMD:o,backTopInlineEndXS:B}=Y;return{[`@media (max-width: ${(0,Ze.unit)(z)})`]:{[de]:{insetInlineEnd:o}},[`@media (max-width: ${(0,Ze.unit)(A)})`]:{[de]:{insetInlineEnd:B}}}},Xe=Y=>({zIndexPopup:Y.zIndexBase+10});var De=(0,_.I$)("BackTop",Y=>{const{fontSizeHeading3:de,colorTextDescription:z,colorTextLightSolid:A,colorText:o,controlHeightLG:B,calc:i}=Y,I=(0,ge.mergeToken)(Y,{backTopBackground:z,backTopColor:A,backTopHoverBackground:o,backTopFontSize:de,backTopSize:B,backTopBlockEnd:i(B).mul(1.25).equal(),backTopInlineEnd:i(B).mul(2.5).equal(),backTopInlineEndMD:i(B).mul(1.5).equal(),backTopInlineEndXS:i(B).mul(.5).equal()});return[be(I),J(I)]},Xe),Je=Y=>{const{prefixCls:de,className:z,rootClassName:A,visibilityHeight:o=400,target:B,onClick:i,duration:I=450}=Y,[H,W]=n.useState(o===0),E=n.useRef(null),V=()=>{var l;return((l=E.current)===null||l===void 0?void 0:l.ownerDocument)||window},K=(0,ne.Z)(l=>{const x=(0,t.Z)(l.target);W(x>=o)});n.useEffect(()=>{const x=(B||V)();return K({target:x}),x==null||x.addEventListener("scroll",K),()=>{K.cancel(),x==null||x.removeEventListener("scroll",K)}},[B]);const te=l=>{(0,ve.Z)(0,{getContainer:B||V,duration:I}),i==null||i(l)},{getPrefixCls:S,direction:ue}=n.useContext(ye.E_),Ae=S("back-top",de),Le=S(),[Me,se,oe]=De(Ae),Ce=c()(se,oe,Ae,{[`${Ae}-rtl`]:ue==="rtl"},z,A),Be=(0,h.Z)(Y,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),Ee=n.createElement("div",{className:`${Ae}-content`},n.createElement("div",{className:`${Ae}-icon`},n.createElement(L,null)));return Me(n.createElement("div",Object.assign({},Be,{className:Ce,onClick:te,ref:E}),n.createElement(C.default,{visible:H,motionName:`${Le}-fade`},l=>{let{className:x}=l;return(0,d.Tm)(Y.children||Ee,f=>{let{className:Q}=f;return{className:c()(x,Q)}})})))}},24303:function(sn,ce,e){e.d(ce,{D:function(){return Xe},Z:function(){return Je}});var n=e(59301),g=e(60499),D={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"},U=D,m=e(7657),j=function(de,z){return n.createElement(m.Z,(0,g.Z)({},de,{ref:z,icon:U}))},G=n.forwardRef(j),L=G,X=e(33853),c=e(38819),C=e(92310),h=e.n(C),t=e(2738),d=e(48755),ve=e(6989),ne=e(36237),ye=e(48923),Ze=e(16931);const Se=Y=>{const{componentCls:de,siderBg:z,motionDurationMid:A,motionDurationSlow:o,antCls:B,triggerHeight:i,triggerColor:I,triggerBg:H,headerHeight:W,zeroTriggerWidth:E,zeroTriggerHeight:V,borderRadiusLG:K,lightSiderBg:te,lightTriggerColor:S,lightTriggerBg:ue,bodyBg:Ae}=Y;return{[de]:{position:"relative",minWidth:0,background:z,transition:`all ${A}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${de}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${B}-menu${B}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${de}-children`]:{overflow:"hidden"},[`${de}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:I,lineHeight:(0,ne.unit)(i),textAlign:"center",background:H,cursor:"pointer",transition:`all ${A}`},[`${de}-zero-width-trigger`]:{position:"absolute",top:W,insetInlineEnd:Y.calc(E).mul(-1).equal(),zIndex:1,width:E,height:V,color:I,fontSize:Y.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:z,borderRadius:`0 ${(0,ne.unit)(K)} ${(0,ne.unit)(K)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Y.calc(E).mul(-1).equal(),borderRadius:`${(0,ne.unit)(K)} 0 0 ${(0,ne.unit)(K)}`}},"&-light":{background:te,[`${de}-trigger`]:{color:S,background:ue},[`${de}-zero-width-trigger`]:{color:S,background:ue,border:`1px solid ${Ae}`,borderInlineStart:0}}}}};var _=(0,Ze.I$)(["Layout","Sider"],Y=>[Se(Y)],ye.eh,{deprecatedTokens:ye.jn}),ge=function(Y,de){var z={};for(var A in Y)Object.prototype.hasOwnProperty.call(Y,A)&&de.indexOf(A)<0&&(z[A]=Y[A]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,A=Object.getOwnPropertySymbols(Y);o!Number.isNaN(Number.parseFloat(Y))&&isFinite(Y),Xe=n.createContext({}),De=(()=>{let Y=0;return function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Y+=1,`${de}${Y}`}})();var Je=n.forwardRef((Y,de)=>{const{prefixCls:z,className:A,trigger:o,children:B,defaultCollapsed:i=!1,theme:I="dark",style:H={},collapsible:W=!1,reverseArrow:E=!1,width:V=200,collapsedWidth:K=80,zeroWidthTriggerStyle:te,breakpoint:S,onCollapse:ue,onBreakpoint:Ae}=Y,Le=ge(Y,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Me}=(0,n.useContext)(ve.V),[se,oe]=(0,n.useState)("collapsed"in Y?Y.collapsed:i),[Ce,Be]=(0,n.useState)(!1);(0,n.useEffect)(()=>{"collapsed"in Y&&oe(Y.collapsed)},[Y.collapsed]);const Ee=(fe,le)=>{"collapsed"in Y||oe(fe),ue==null||ue(fe,le)},{getPrefixCls:l,direction:x}=(0,n.useContext)(d.E_),f=l("layout-sider",z),[Q,s,a]=_(f),r=(0,n.useRef)(null);r.current=fe=>{Be(fe.matches),Ae==null||Ae(fe.matches),se!==fe.matches&&Ee(fe.matches,"responsive")},(0,n.useEffect)(()=>{function fe(ee){return r.current(ee)}let le;if(typeof window!="undefined"){const{matchMedia:ee}=window;if(ee&&S&&S in be){le=ee(`screen and (max-width: ${be[S]})`);try{le.addEventListener("change",fe)}catch(en){le.addListener(fe)}fe(le)}}return()=>{try{le==null||le.removeEventListener("change",fe)}catch(ee){le==null||le.removeListener(fe)}}},[S]),(0,n.useEffect)(()=>{const fe=De("ant-sider-");return Me.addSider(fe),()=>Me.removeSider(fe)},[]);const y=()=>{Ee(!se,"clickTrigger")},u=(0,t.Z)(Le,["collapsed"]),N=se?K:V,F=J(N)?`${N}px`:String(N),M=parseFloat(String(K||0))===0?n.createElement("span",{onClick:y,className:h()(`${f}-zero-width-trigger`,`${f}-zero-width-trigger-${E?"right":"left"}`),style:te},o||n.createElement(L,null)):null,O=x==="rtl"==!E,me={expanded:O?n.createElement(c.Z,null):n.createElement(X.Z,null),collapsed:O?n.createElement(X.Z,null):n.createElement(c.Z,null)}[se?"collapsed":"expanded"],Pe=o!==null?M||n.createElement("div",{className:`${f}-trigger`,onClick:y,style:{width:F}},o||me):null,je=Object.assign(Object.assign({},H),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),He=h()(f,`${f}-${I}`,{[`${f}-collapsed`]:!!se,[`${f}-has-trigger`]:W&&o!==null&&!M,[`${f}-below`]:!!Ce,[`${f}-zero-width`]:parseFloat(F)===0},A,s,a),ie=n.useMemo(()=>({siderCollapsed:se}),[se]);return Q(n.createElement(Xe.Provider,{value:ie},n.createElement("aside",Object.assign({className:He},u,{style:je,ref:de}),n.createElement("div",{className:`${f}-children`},B),W||Ce&&M?Pe:null)))})},6989:function(sn,ce,e){e.d(ce,{V:function(){return g}});var n=e(59301);const g=n.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(sn,ce,e){e.d(ce,{eh:function(){return U},jn:function(){return m}});var n=e(36237),g=e(16931);const D=j=>{const{antCls:G,componentCls:L,colorText:X,footerBg:c,headerHeight:C,headerPadding:h,headerColor:t,footerPadding:d,fontSize:ve,bodyBg:ne,headerBg:ye}=j;return{[L]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ne,"&, *":{boxSizing:"border-box"},[`&${L}-has-sider`]:{flexDirection:"row",[`> ${L}, > ${L}-content`]:{width:0}},[`${L}-header, &${L}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${L}-header`]:{height:C,padding:h,color:t,lineHeight:(0,n.unit)(C),background:ye,[`${G}-menu`]:{lineHeight:"inherit"}},[`${L}-footer`]:{padding:d,color:X,fontSize:ve,background:c},[`${L}-content`]:{flex:"auto",color:X,minHeight:0}}},U=j=>{const{colorBgLayout:G,controlHeight:L,controlHeightLG:X,colorText:c,controlHeightSM:C,marginXXS:h,colorTextLightSolid:t,colorBgContainer:d}=j,ve=X*1.25;return{colorBgHeader:"#001529",colorBgBody:G,colorBgTrigger:"#002140",bodyBg:G,headerBg:"#001529",headerHeight:L*2,headerPadding:`0 ${ve}px`,headerColor:c,footerPadding:`${C}px ${ve}px`,footerBg:G,siderBg:"#001529",triggerHeight:X+h*2,triggerBg:"#002140",triggerColor:t,zeroTriggerWidth:X,zeroTriggerHeight:X,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:c}},m=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ce.ZP=(0,g.I$)("Layout",j=>[D(j)],U,{deprecatedTokens:m})},78857:function(sn,ce,e){e.d(ce,{J:function(){return j}});var n=e(59301),g=e(8654),D=e(62487),U=function(G,L){var X={};for(var c in G)Object.prototype.hasOwnProperty.call(G,c)&&L.indexOf(c)<0&&(X[c]=G[c]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,c=Object.getOwnPropertySymbols(G);C{const{children:X}=G,c=U(G,["children"]),C=n.useContext(m),h=n.useMemo(()=>Object.assign(Object.assign({},C),c),[C,c.prefixCls,c.mode,c.selectable,c.rootClassName]),t=(0,g.t4)(X),d=(0,g.x1)(L,t?(0,g.C4)(X):null);return n.createElement(m.Provider,{value:h},n.createElement(D.Z,{space:!0},t?n.cloneElement(X,{ref:d}):X))});ce.Z=m},93041:function(sn,ce,e){e.d(ce,{default:function(){return Q}});var n=e(59301),g=e(28321),D=e(24303),U=e(18785),m=e(92310),j=e.n(m),G=e(6089),L=e(2738),X=e(86641),c=e(22703),C=e(48755),h=e(83397),d=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ve=function(s,a){var r={};for(var y in s)Object.prototype.hasOwnProperty.call(s,y)&&a.indexOf(y)<0&&(r[y]=s[y]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,y=Object.getOwnPropertySymbols(s);u{const{prefixCls:a,className:r,dashed:y}=s,u=ve(s,["prefixCls","className","dashed"]),{getPrefixCls:N}=n.useContext(C.E_),F=N("menu",a),M=j()({[`${F}-item-divider-dashed`]:!!y},r);return n.createElement(g.iz,Object.assign({className:M},u))},Ze=e(11592),Se=e(25399),ge=s=>{var a;const{className:r,children:y,icon:u,title:N,danger:F,extra:M}=s,{prefixCls:O,firstLevel:k,direction:R,disableMenuItemTitleTooltip:me,inlineCollapsed:Pe}=n.useContext(d),je=en=>{const $e=y==null?void 0:y[0],_e=n.createElement("span",{className:j()(`${O}-title-content`,{[`${O}-title-content-with-extra`]:!!M||M===0})},y);return(!u||n.isValidElement(y)&&y.type==="span")&&y&&en&&k&&typeof $e=="string"?n.createElement("div",{className:`${O}-inline-collapsed-noicon`},$e.charAt(0)):_e},{siderCollapsed:He}=n.useContext(D.D);let ie=N;typeof N=="undefined"?ie=k?y:"":N===!1&&(ie="");const fe={title:ie};!He&&!Pe&&(fe.title=null,fe.open=!1);const le=(0,Ze.Z)(y).length;let ee=n.createElement(g.ck,Object.assign({},(0,L.Z)(s,["title","icon","danger"]),{className:j()({[`${O}-item-danger`]:F,[`${O}-item-only-child`]:(u?le+1:le)===1},r),title:typeof N=="string"?N:void 0}),(0,c.Tm)(u,{className:j()(n.isValidElement(u)?(a=u.props)===null||a===void 0?void 0:a.className:"",`${O}-item-icon`)}),je(Pe));return me||(ee=n.createElement(Se.Z,Object.assign({},fe,{placement:R==="rtl"?"left":"right",classNames:{root:`${O}-inline-collapsed-tooltip`}}),ee)),ee},be=e(78857),J=e(36237),Xe=e(17835),De=e(63356),Ye=e(34961),Je=e(46e3),Y=e(34925),de=e(16931),z=e(51636),o=s=>{const{componentCls:a,motionDurationSlow:r,horizontalLineHeight:y,colorSplit:u,lineWidth:N,lineType:F,itemPaddingInline:M}=s;return{[`${a}-horizontal`]:{lineHeight:y,border:0,borderBottom:`${(0,J.unit)(N)} ${F} ${u}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${a}-item, ${a}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:M},[`> ${a}-item:hover, > ${a}-item-active, > ${a}-submenu ${a}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${a}-item, ${a}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${a}-submenu-arrow`]:{display:"none"}}}},i=s=>{let{componentCls:a,menuArrowOffset:r,calc:y}=s;return{[`${a}-rtl`]:{direction:"rtl"},[`${a}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${a}-rtl${a}-vertical, ${a}-submenu-rtl ${a}-vertical`]:{[`${a}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,J.unit)(y(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,J.unit)(r)})`}}}}};const I=s=>Object.assign({},(0,De.oN)(s));var W=(s,a)=>{const{componentCls:r,itemColor:y,itemSelectedColor:u,subMenuItemSelectedColor:N,groupTitleColor:F,itemBg:M,subMenuItemBg:O,itemSelectedBg:k,activeBarHeight:R,activeBarWidth:me,activeBarBorderWidth:Pe,motionDurationSlow:je,motionEaseInOut:He,motionEaseOut:ie,itemPaddingInline:fe,motionDurationMid:le,itemHoverColor:ee,lineType:en,colorSplit:$e,itemDisabledColor:_e,dangerItemColor:on,dangerItemHoverColor:wn,dangerItemSelectedColor:cn,dangerItemActiveBg:Ge,dangerItemSelectedBg:gn,popupBg:An,itemHoverBg:he,itemActiveBg:ae,menuSubMenuBg:q,horizontalItemSelectedColor:Re,horizontalItemSelectedBg:We,horizontalItemBorderRadius:fn,horizontalItemHoverBg:we}=s;return{[`${r}-${a}, ${r}-${a} > ${r}`]:{color:y,background:M,[`&${r}-root:focus-visible`]:Object.assign({},I(s)),[`${r}-item`]:{"&-group-title, &-extra":{color:F}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:N},[`${r}-item, ${r}-submenu-title`]:{color:y,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},I(s))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${_e} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:ee}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:he},"&:active":{backgroundColor:ae}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:he},"&:active":{backgroundColor:ae}}},[`${r}-item-danger`]:{color:on,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:wn}},[`&${r}-item:active`]:{background:Ge}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:u,[`&${r}-item-danger`]:{color:cn},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:k,[`&${r}-item-danger`]:{backgroundColor:gn}},[`&${r}-submenu > ${r}`]:{backgroundColor:q},[`&${r}-popup > ${r}`]:{backgroundColor:An},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:An},[`&${r}-horizontal`]:Object.assign(Object.assign({},a==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:Pe,marginTop:s.calc(Pe).mul(-1).equal(),marginBottom:0,borderRadius:fn,"&::after":{position:"absolute",insetInline:fe,bottom:0,borderBottom:`${(0,J.unit)(R)} solid transparent`,transition:`border-color ${je} ${He}`,content:'""'},"&:hover, &-active, &-open":{background:we,"&::after":{borderBottomWidth:R,borderBottomColor:Re}},"&-selected":{color:Re,backgroundColor:We,"&:hover":{backgroundColor:We},"&::after":{borderBottomWidth:R,borderBottomColor:Re}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${(0,J.unit)(Pe)} ${en} ${$e}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:O},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,J.unit)(me)} solid ${u}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${le} ${ie}`,`opacity ${le} ${ie}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:cn}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${le} ${He}`,`opacity ${le} ${He}`].join(",")}}}}}};const E=s=>{const{componentCls:a,itemHeight:r,itemMarginInline:y,padding:u,menuArrowSize:N,marginXS:F,itemMarginBlock:M,itemWidth:O,itemPaddingInline:k}=s,R=s.calc(N).add(u).add(F).equal();return{[`${a}-item`]:{position:"relative",overflow:"hidden"},[`${a}-item, ${a}-submenu-title`]:{height:r,lineHeight:(0,J.unit)(r),paddingInline:k,overflow:"hidden",textOverflow:"ellipsis",marginInline:y,marginBlock:M,width:O},[`> ${a}-item, > ${a}-submenu > ${a}-submenu-title`]:{height:r,lineHeight:(0,J.unit)(r)},[`${a}-item-group-list ${a}-submenu-title, ${a}-submenu-title`]:{paddingInlineEnd:R}}};var K=s=>{const{componentCls:a,iconCls:r,itemHeight:y,colorTextLightSolid:u,dropdownWidth:N,controlHeightLG:F,motionEaseOut:M,paddingXL:O,itemMarginInline:k,fontSizeLG:R,motionDurationFast:me,motionDurationSlow:Pe,paddingXS:je,boxShadowSecondary:He,collapsedWidth:ie,collapsedIconSize:fe}=s,le={height:y,lineHeight:(0,J.unit)(y),listStylePosition:"inside",listStyleType:"disc"};return[{[a]:{"&-inline, &-vertical":Object.assign({[`&${a}-root`]:{boxShadow:"none"}},E(s))},[`${a}-submenu-popup`]:{[`${a}-vertical`]:Object.assign(Object.assign({},E(s)),{boxShadow:He})}},{[`${a}-submenu-popup ${a}-vertical${a}-sub`]:{minWidth:N,maxHeight:`calc(100vh - ${(0,J.unit)(s.calc(F).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${a}-inline`]:{width:"100%",[`&${a}-root`]:{[`${a}-item, ${a}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${me} ${M}`].join(","),[`> ${a}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${a}-sub${a}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${a}-submenu > ${a}-submenu-title`]:le,[`& ${a}-item-group-title`]:{paddingInlineStart:O}},[`${a}-item`]:le}},{[`${a}-inline-collapsed`]:{width:ie,[`&${a}-root`]:{[`${a}-item, ${a}-submenu ${a}-submenu-title`]:{[`> ${a}-inline-collapsed-noicon`]:{fontSize:R,textAlign:"center"}}},[`> ${a}-item, > ${a}-item-group > ${a}-item-group-list > ${a}-item, > ${a}-item-group > ${a}-item-group-list > ${a}-submenu > ${a}-submenu-title, > ${a}-submenu > ${a}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,J.unit)(s.calc(fe).div(2).equal())} - ${(0,J.unit)(k)})`,textOverflow:"clip",[` ${a}-submenu-arrow, ${a}-submenu-expand-icon `]:{opacity:0},[`${a}-item-icon, ${r}`]:{margin:0,fontSize:fe,lineHeight:(0,J.unit)(y),"+ span":{display:"inline-block",opacity:0}}},[`${a}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${a}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:u}},[`${a}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:je})}}]};const te=s=>{const{componentCls:a,motionDurationSlow:r,motionDurationMid:y,motionEaseInOut:u,motionEaseOut:N,iconCls:F,iconSize:M,iconMarginInlineEnd:O}=s;return{[`${a}-item, ${a}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding calc(${r} + 0.1s) ${u}`].join(","),[`${a}-item-icon, ${F}`]:{minWidth:M,fontSize:M,transition:[`font-size ${y} ${N}`,`margin ${r} ${u}`,`color ${r}`].join(","),"+ span":{marginInlineStart:O,opacity:1,transition:[`opacity ${r} ${u}`,`margin ${r}`,`color ${r}`].join(",")}},[`${a}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${a}-item-only-child`]:{[`> ${F}, > ${a}-item-icon`]:{marginInlineEnd:0}}},[`${a}-item-disabled, ${a}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${a}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},S=s=>{const{componentCls:a,motionDurationSlow:r,motionEaseInOut:y,borderRadius:u,menuArrowSize:N,menuArrowOffset:F}=s;return{[`${a}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:s.margin,width:N,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${y}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:s.calc(N).mul(.6).equal(),height:s.calc(N).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:u,transition:[`background ${r} ${y}`,`transform ${r} ${y}`,`top ${r} ${y}`,`color ${r} ${y}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,J.unit)(s.calc(F).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,J.unit)(F)})`}}}}},ue=s=>{const{antCls:a,componentCls:r,fontSize:y,motionDurationSlow:u,motionDurationMid:N,motionEaseInOut:F,paddingXS:M,padding:O,colorSplit:k,lineWidth:R,zIndexPopup:me,borderRadiusLG:Pe,subMenuItemBorderRadius:je,menuArrowSize:He,menuArrowOffset:ie,lineType:fe,groupTitleLineHeight:le,groupTitleFontSize:ee}=s;return[{"":{[r]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(s)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:y,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${u} 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:s.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${(0,J.unit)(M)} ${(0,J.unit)(O)}`,fontSize:ee,lineHeight:le,transition:`all ${u}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${u} ${F}`,`background ${u} ${F}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${u} ${F}`,`background ${u} ${F}`,`padding ${N} ${F}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${u} ${F}`,`padding ${u} ${F}`].join(",")},[`${r}-title-content`]:{transition:`color ${u}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${a}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:s.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:k,borderStyle:fe,borderWidth:0,borderTopWidth:R,marginBlock:R,padding:0,"&-dashed":{borderStyle:"dashed"}}}),te(s)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${(0,J.unit)(s.calc(y).mul(2).equal())} ${(0,J.unit)(O)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:me,borderRadius:Pe,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:Pe},te(s)),S(s)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:je},[`${r}-submenu-title::after`]:{transition:`transform ${u} ${F}`}})},"\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:s.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:s.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:s.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:s.paddingXS}}}),S(s)),{[`&-inline-collapsed ${r}-submenu-arrow, &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,J.unit)(ie)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,J.unit)(s.calc(ie).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${(0,J.unit)(s.calc(He).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,J.unit)(s.calc(ie).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,J.unit)(ie)})`}}})},{[`${a}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},Ae=s=>{var a,r,y;const{colorPrimary:u,colorError:N,colorTextDisabled:F,colorErrorBg:M,colorText:O,colorTextDescription:k,colorBgContainer:R,colorFillAlter:me,colorFillContent:Pe,lineWidth:je,lineWidthBold:He,controlItemBgActive:ie,colorBgTextHover:fe,controlHeightLG:le,lineHeight:ee,colorBgElevated:en,marginXXS:$e,padding:_e,fontSize:on,controlHeightSM:wn,fontSizeLG:cn,colorTextLightSolid:Ge,colorErrorHover:gn}=s,An=(a=s.activeBarWidth)!==null&&a!==void 0?a:0,he=(r=s.activeBarBorderWidth)!==null&&r!==void 0?r:je,ae=(y=s.itemMarginInline)!==null&&y!==void 0?y:s.marginXXS,q=new Xe.FastColor(Ge).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:s.zIndexPopupBase+50,radiusItem:s.borderRadiusLG,itemBorderRadius:s.borderRadiusLG,radiusSubMenuItem:s.borderRadiusSM,subMenuItemBorderRadius:s.borderRadiusSM,colorItemText:O,itemColor:O,colorItemTextHover:O,itemHoverColor:O,colorItemTextHoverHorizontal:u,horizontalItemHoverColor:u,colorGroupTitle:k,groupTitleColor:k,colorItemTextSelected:u,itemSelectedColor:u,subMenuItemSelectedColor:u,colorItemTextSelectedHorizontal:u,horizontalItemSelectedColor:u,colorItemBg:R,itemBg:R,colorItemBgHover:fe,itemHoverBg:fe,colorItemBgActive:Pe,itemActiveBg:ie,colorSubItemBg:me,subMenuItemBg:me,colorItemBgSelected:ie,itemSelectedBg:ie,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:An,colorActiveBarHeight:He,activeBarHeight:He,colorActiveBarBorderSize:je,activeBarBorderWidth:he,colorItemTextDisabled:F,itemDisabledColor:F,colorDangerItemText:N,dangerItemColor:N,colorDangerItemTextHover:N,dangerItemHoverColor:N,colorDangerItemTextSelected:N,dangerItemSelectedColor:N,colorDangerItemBgActive:M,dangerItemActiveBg:M,colorDangerItemBgSelected:M,dangerItemSelectedBg:M,itemMarginInline:ae,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:le,groupTitleLineHeight:ee,collapsedWidth:le*2,popupBg:en,itemMarginBlock:$e,itemPaddingInline:_e,horizontalLineHeight:`${le*1.15}px`,iconSize:on,iconMarginInlineEnd:wn-on,collapsedIconSize:cn,groupTitleFontSize:on,darkItemDisabledColor:new Xe.FastColor(Ge).setA(.25).toRgbString(),darkItemColor:q,darkDangerItemColor:N,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ge,darkItemSelectedBg:u,darkDangerItemSelectedBg:N,darkItemHoverBg:"transparent",darkGroupTitleColor:q,darkItemHoverColor:Ge,darkDangerItemHoverColor:gn,darkDangerItemSelectedColor:Ge,darkDangerItemActiveBg:N,itemWidth:An?`calc(100% + ${he}px)`:`calc(100% - ${ae*2}px)`}};var Le=function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,de.I$)("Menu",u=>{const{colorBgElevated:N,controlHeightLG:F,fontSize:M,darkItemColor:O,darkDangerItemColor:k,darkItemBg:R,darkSubMenuItemBg:me,darkItemSelectedColor:Pe,darkItemSelectedBg:je,darkDangerItemSelectedBg:He,darkItemHoverBg:ie,darkGroupTitleColor:fe,darkItemHoverColor:le,darkItemDisabledColor:ee,darkDangerItemHoverColor:en,darkDangerItemSelectedColor:$e,darkDangerItemActiveBg:_e,popupBg:on,darkPopupBg:wn}=u,cn=u.calc(M).div(7).mul(5).equal(),Ge=(0,z.mergeToken)(u,{menuArrowSize:cn,menuHorizontalHeight:u.calc(F).mul(1.15).equal(),menuArrowOffset:u.calc(cn).mul(.25).equal(),menuSubMenuBg:N,calc:u.calc,popupBg:on}),gn=(0,z.mergeToken)(Ge,{itemColor:O,itemHoverColor:le,groupTitleColor:fe,itemSelectedColor:Pe,subMenuItemSelectedColor:Pe,itemBg:R,popupBg:wn,subMenuItemBg:me,itemActiveBg:"transparent",itemSelectedBg:je,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ie,itemDisabledColor:ee,dangerItemColor:k,dangerItemHoverColor:en,dangerItemSelectedColor:$e,dangerItemActiveBg:_e,dangerItemSelectedBg:He,menuSubMenuBg:me,horizontalItemSelectedColor:Pe,horizontalItemSelectedBg:je});return[ue(Ge),o(Ge),K(Ge),W(Ge,"light"),W(gn,"dark"),i(Ge),(0,Ye.Z)(Ge),(0,Je.oN)(Ge,"slide-up"),(0,Je.oN)(Ge,"slide-down"),(0,Y._y)(Ge,"zoom-big")]},Ae,{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}})(s,a)},Me=e(75030),oe=s=>{var a;const{popupClassName:r,icon:y,title:u,theme:N}=s,F=n.useContext(d),{prefixCls:M,inlineCollapsed:O,theme:k}=F,R=(0,g.Xl)();let me;if(!y)me=O&&!R.length&&u&&typeof u=="string"?n.createElement("div",{className:`${M}-inline-collapsed-noicon`},u.charAt(0)):n.createElement("span",{className:`${M}-title-content`},u);else{const He=n.isValidElement(u)&&u.type==="span";me=n.createElement(n.Fragment,null,(0,c.Tm)(y,{className:j()(n.isValidElement(y)?(a=y.props)===null||a===void 0?void 0:a.className:"",`${M}-item-icon`)}),He?u:n.createElement("span",{className:`${M}-title-content`},u))}const Pe=n.useMemo(()=>Object.assign(Object.assign({},F),{firstLevel:!1}),[F]),[je]=(0,Me.Cn)("Menu");return n.createElement(d.Provider,{value:Pe},n.createElement(g.Wd,Object.assign({},(0,L.Z)(s,["icon"]),{title:me,popupClassName:j()(M,r,`${M}-${N||k}`),popupStyle:Object.assign({zIndex:je},s.popupStyle)})))},Ce=function(s,a){var r={};for(var y in s)Object.prototype.hasOwnProperty.call(s,y)&&a.indexOf(y)<0&&(r[y]=s[y]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,y=Object.getOwnPropertySymbols(s);u{var r;const y=n.useContext(be.Z),u=y||{},{getPrefixCls:N,getPopupContainer:F,direction:M,menu:O}=n.useContext(C.E_),k=N(),{prefixCls:R,className:me,style:Pe,theme:je="light",expandIcon:He,_internalDisableMenuItemTitleTooltip:ie,inlineCollapsed:fe,siderCollapsed:le,rootClassName:ee,mode:en,selectable:$e,onClick:_e,overflowedIndicatorPopupClassName:on}=s,wn=Ce(s,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),cn=(0,L.Z)(wn,["collapsedWidth"]);(r=u.validator)===null||r===void 0||r.call(u,{mode:en});const Ge=(0,G.Z)(function(){var yn;_e==null||_e.apply(void 0,arguments),(yn=u.onClick)===null||yn===void 0||yn.call(u)}),gn=u.mode||en,An=$e!=null?$e:u.selectable,he=fe!=null?fe:le,ae={horizontal:{motionName:`${k}-slide-up`},inline:(0,X.Z)(k),other:{motionName:`${k}-zoom-big`}},q=N("menu",R||u.prefixCls),Re=(0,h.Z)(q),[We,fn,we]=Le(q,Re,!y),mn=j()(`${q}-${je}`,O==null?void 0:O.className,me),Ue=n.useMemo(()=>{var yn,En;if(typeof He=="function"||Be(He))return He||null;if(typeof u.expandIcon=="function"||Be(u.expandIcon))return u.expandIcon||null;if(typeof(O==null?void 0:O.expandIcon)=="function"||Be(O==null?void 0:O.expandIcon))return(O==null?void 0:O.expandIcon)||null;const Qn=(yn=He!=null?He:u==null?void 0:u.expandIcon)!==null&&yn!==void 0?yn:O==null?void 0:O.expandIcon;return(0,c.Tm)(Qn,{className:j()(`${q}-submenu-expand-icon`,n.isValidElement(Qn)?(En=Qn.props)===null||En===void 0?void 0:En.className:void 0)})},[He,u==null?void 0:u.expandIcon,O==null?void 0:O.expandIcon,q]),pn=n.useMemo(()=>({prefixCls:q,inlineCollapsed:he||!1,direction:M,firstLevel:!0,theme:je,mode:gn,disableMenuItemTitleTooltip:ie}),[q,he,M,ie,je]);return We(n.createElement(be.Z.Provider,{value:null},n.createElement(d.Provider,{value:pn},n.createElement(g.ZP,Object.assign({getPopupContainer:F,overflowedIndicator:n.createElement(U.Z,null),overflowedIndicatorPopupClassName:j()(q,`${q}-${je}`,on),mode:gn,selectable:An,onClick:Ge},cn,{inlineCollapsed:he,style:Object.assign(Object.assign({},O==null?void 0:O.style),Pe),className:mn,prefixCls:q,direction:M,defaultMotions:ae,expandIcon:Ue,ref:a,rootClassName:j()(ee,fn,u.rootClassName,we,Re),_internalComponents:Ee})))))});const f=(0,n.forwardRef)((s,a)=>{const r=(0,n.useRef)(null),y=n.useContext(D.D);return(0,n.useImperativeHandle)(a,()=>({menu:r.current,focus:u=>{var N;(N=r.current)===null||N===void 0||N.focus(u)}})),n.createElement(x,Object.assign({ref:r},s,y))});f.Item=ge,f.SubMenu=oe,f.Divider=ye,f.ItemGroup=g.BW;var Q=f},46e3:function(sn,ce,e){e.d(ce,{Qt:function(){return m},Uw:function(){return U},fJ:function(){return D},ly:function(){return j},oN:function(){return h}});var n=e(36237),g=e(48746);const D=new n.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),U=new n.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),m=new n.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),j=new n.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),G=new n.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),L=new n.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),X=new n.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),c=new n.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),C={"slide-up":{inKeyframes:D,outKeyframes:U},"slide-down":{inKeyframes:m,outKeyframes:j},"slide-left":{inKeyframes:G,outKeyframes:L},"slide-right":{inKeyframes:X,outKeyframes:c}},h=(t,d)=>{const{antCls:ve}=t,ne=`${ve}-${d}`,{inKeyframes:ye,outKeyframes:Ze}=C[d];return[(0,g.R)(ne,ye,Ze,t.motionDurationMid),{[` ${ne}-enter, ${ne}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ne}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]}},37645:function(sn,ce,e){e.d(ce,{ZP:function(){return j},qN:function(){return D},wZ:function(){return U}});var n=e(36237),g=e(36305);const D=8;function U(G){const{contentRadius:L,limitVerticalRadius:X}=G,c=L>12?L+2:12;return{arrowOffsetHorizontal:c,arrowOffsetVertical:X?D:c}}function m(G,L){return G?L:{}}function j(G,L,X){const{componentCls:c,boxShadowPopoverArrow:C,arrowOffsetVertical:h,arrowOffsetHorizontal:t}=G,{arrowDistance:d=0,arrowPlacement:ve={left:!0,right:!0,top:!0,bottom:!0}}=X||{};return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({[`${c}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,g.W)(G,L,C)),{"&:before":{background:L}})]},m(!!ve.top,{[[`&-placement-top > ${c}-arrow`,`&-placement-topLeft > ${c}-arrow`,`&-placement-topRight > ${c}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${c}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":t,[`> ${c}-arrow`]:{left:{_skip_check_:!0,value:t}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,n.unit)(t)})`,[`> ${c}-arrow`]:{right:{_skip_check_:!0,value:t}}}})),m(!!ve.bottom,{[[`&-placement-bottom > ${c}-arrow`,`&-placement-bottomLeft > ${c}-arrow`,`&-placement-bottomRight > ${c}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${c}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":t,[`> ${c}-arrow`]:{left:{_skip_check_:!0,value:t}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,n.unit)(t)})`,[`> ${c}-arrow`]:{right:{_skip_check_:!0,value:t}}}})),m(!!ve.left,{[[`&-placement-left > ${c}-arrow`,`&-placement-leftTop > ${c}-arrow`,`&-placement-leftBottom > ${c}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${c}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${c}-arrow`]:{top:h},[`&-placement-leftBottom > ${c}-arrow`]:{bottom:h}})),m(!!ve.right,{[[`&-placement-right > ${c}-arrow`,`&-placement-rightTop > ${c}-arrow`,`&-placement-rightBottom > ${c}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${c}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${c}-arrow`]:{top:h},[`&-placement-rightBottom > ${c}-arrow`]:{bottom:h}}))}}},36305:function(sn,ce,e){e.d(ce,{W:function(){return D},w:function(){return g}});var n=e(36237);function g(U){const{sizePopupArrow:m,borderRadiusXS:j,borderRadiusOuter:G}=U,L=m/2,X=0,c=L,C=G*1/Math.sqrt(2),h=L-G*(1-1/Math.sqrt(2)),t=L-j*(1/Math.sqrt(2)),d=G*(Math.sqrt(2)-1)+j*(1/Math.sqrt(2)),ve=2*L-t,ne=d,ye=2*L-C,Ze=h,Se=2*L-X,_=c,ge=L*Math.sqrt(2)+G*(Math.sqrt(2)-2),be=G*(Math.sqrt(2)-1),J=`polygon(${be}px 100%, 50% ${be}px, ${2*L-be}px 100%, ${be}px 100%)`,Xe=`path('M ${X} ${c} A ${G} ${G} 0 0 0 ${C} ${h} L ${t} ${d} A ${j} ${j} 0 0 1 ${ve} ${ne} L ${ye} ${Ze} A ${G} ${G} 0 0 0 ${Se} ${_} Z')`;return{arrowShadowWidth:ge,arrowPath:Xe,arrowPolygon:J}}const D=(U,m,j)=>{const{sizePopupArrow:G,arrowPolygon:L,arrowPath:X,arrowShadowWidth:c,borderRadiusXS:C,calc:h}=U;return{pointerEvents:"none",width:G,height:G,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:G,height:h(G).div(2).equal(),background:m,clipPath:{_multi_value_:!0,value:[L,X]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,n.unit)(C)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:j,zIndex:0,background:"transparent"}}}},93427:function(sn,ce,e){e.d(ce,{Z:function(){return g}});var n=e(34998);function g(D,U){return n.i.reduce((m,j)=>{const G=D[`${j}1`],L=D[`${j}3`],X=D[`${j}6`],c=D[`${j}7`];return Object.assign(Object.assign({},m),U(j,{lightColor:G,lightBorderColor:L,darkColor:X,textColor:c}))},{})}},25399:function(sn,ce,e){e.d(ce,{Z:function(){return B}});var n=e(59301),g=e(92310),D=e.n(g),U=e(29125),m=e(18929),j=e(62487),G=e(75030),L=e(86641),X=e(52838),c=e(22703),C=e(32383),h=e(55743),t=e(57700),d=e(48755),ve=e(36237),ne=e(63356),ye=e(34925),Ze=e(37645),Se=e(36305),_=e(93427),ge=e(51636),be=e(16931);const J=i=>{const{calc:I,componentCls:H,tooltipMaxWidth:W,tooltipColor:E,tooltipBg:V,tooltipBorderRadius:K,zIndexPopup:te,controlHeight:S,boxShadowSecondary:ue,paddingSM:Ae,paddingXS:Le,arrowOffsetHorizontal:Me,sizePopupArrow:se}=i,oe=I(K).add(se).add(Me).equal(),Ce=I(K).mul(2).add(se).equal();return[{[H]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ne.Wf)(i)),{position:"absolute",zIndex:te,display:"block",width:"max-content",maxWidth:W,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":V,[`${H}-inner`]:{minWidth:Ce,minHeight:S,padding:`${(0,ve.unit)(i.calc(Ae).div(2).equal())} ${(0,ve.unit)(Le)}`,color:E,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:V,borderRadius:K,boxShadow:ue,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:oe},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${H}-inner`]:{borderRadius:i.min(K,Ze.qN)}},[`${H}-content`]:{position:"relative"}}),(0,_.Z)(i,(Be,Ee)=>{let{darkColor:l}=Ee;return{[`&${H}-${Be}`]:{[`${H}-inner`]:{backgroundColor:l},[`${H}-arrow`]:{"--antd-arrow-background-color":l}}}})),{"&-rtl":{direction:"rtl"}})},(0,Ze.ZP)(i,"var(--antd-arrow-background-color)"),{[`${H}-pure`]:{position:"relative",maxWidth:"none",margin:i.sizePopupArrow}}]},Xe=i=>Object.assign(Object.assign({zIndexPopup:i.zIndexPopupBase+70},(0,Ze.wZ)({contentRadius:i.borderRadius,limitVerticalRadius:!0})),(0,Se.w)((0,ge.mergeToken)(i,{borderRadiusOuter:Math.min(i.borderRadiusOuter,4)})));var De=function(i){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,be.I$)("Tooltip",W=>{const{borderRadius:E,colorTextLightSolid:V,colorBgSpotlight:K}=W,te=(0,ge.mergeToken)(W,{tooltipMaxWidth:250,tooltipColor:V,tooltipBorderRadius:E,tooltipBg:K});return[J(te),(0,ye._y)(W,"zoom-big-fast")]},Xe,{resetStyle:!1,injectStyle:I})(i)},Ye=e(29509);function Je(i,I){const H=(0,Ye.o2)(I),W=D()({[`${i}-${I}`]:I&&H}),E={},V={};return I&&!H&&(E.background=I,V["--antd-arrow-background-color"]=I),{className:W,overlayStyle:E,arrowStyle:V}}var de=i=>{const{prefixCls:I,className:H,placement:W="top",title:E,color:V,overlayInnerStyle:K}=i,{getPrefixCls:te}=n.useContext(d.E_),S=te("tooltip",I),[ue,Ae,Le]=De(S),Me=Je(S,V),se=Me.arrowStyle,oe=Object.assign(Object.assign({},K),Me.overlayStyle),Ce=D()(Ae,Le,S,`${S}-pure`,`${S}-placement-${W}`,H,Me.className);return ue(n.createElement("div",{className:Ce,style:se},n.createElement("div",{className:`${S}-arrow`}),n.createElement(U.G,Object.assign({},i,{className:Ae,prefixCls:S,overlayInnerStyle:oe}),E)))},z=function(i,I){var H={};for(var W in i)Object.prototype.hasOwnProperty.call(i,W)&&I.indexOf(W)<0&&(H[W]=i[W]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,W=Object.getOwnPropertySymbols(i);E{var H,W;const{prefixCls:E,openClassName:V,getTooltipContainer:K,color:te,overlayInnerStyle:S,children:ue,afterOpenChange:Ae,afterVisibleChange:Le,destroyTooltipOnHide:Me,arrow:se=!0,title:oe,overlay:Ce,builtinPlacements:Be,arrowPointAtCenter:Ee=!1,autoAdjustOverflow:l=!0,motion:x,getPopupContainer:f,placement:Q="top",mouseEnterDelay:s=.1,mouseLeaveDelay:a=.1,overlayStyle:r,rootClassName:y,overlayClassName:u,styles:N,classNames:F}=i,M=z(i,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),O=!!se,[,k]=(0,t.ZP)(),{getPopupContainer:R,getPrefixCls:me,direction:Pe,className:je,style:He,classNames:ie,styles:fe}=(0,d.dj)("tooltip"),le=(0,C.ln)("Tooltip"),ee=n.useRef(null),en=()=>{var rn;(rn=ee.current)===null||rn===void 0||rn.forceAlign()};n.useImperativeHandle(I,()=>{var rn,Bn;return{forceAlign:en,forcePopupAlign:()=>{le.deprecated(!1,"forcePopupAlign","forceAlign"),en()},nativeElement:(rn=ee.current)===null||rn===void 0?void 0:rn.nativeElement,popupElement:(Bn=ee.current)===null||Bn===void 0?void 0:Bn.popupElement}});const[$e,_e]=(0,m.Z)(!1,{value:(H=i.open)!==null&&H!==void 0?H:i.visible,defaultValue:(W=i.defaultOpen)!==null&&W!==void 0?W:i.defaultVisible}),on=!oe&&!Ce&&oe!==0,wn=rn=>{var Bn,Dn;_e(on?!1:rn),on||((Bn=i.onOpenChange)===null||Bn===void 0||Bn.call(i,rn),(Dn=i.onVisibleChange)===null||Dn===void 0||Dn.call(i,rn))},cn=n.useMemo(()=>{var rn,Bn;let Dn=Ee;return typeof se=="object"&&(Dn=(Bn=(rn=se.pointAtCenter)!==null&&rn!==void 0?rn:se.arrowPointAtCenter)!==null&&Bn!==void 0?Bn:Ee),Be||(0,X.Z)({arrowPointAtCenter:Dn,autoAdjustOverflow:l,arrowWidth:O?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})},[Ee,se,Be,k]),Ge=n.useMemo(()=>oe===0?oe:Ce||oe||"",[Ce,oe]),gn=n.createElement(j.Z,{space:!0},typeof Ge=="function"?Ge():Ge),An=me("tooltip",E),he=me(),ae=i["data-popover-inject"];let q=$e;!("open"in i)&&!("visible"in i)&&on&&(q=!1);const Re=n.isValidElement(ue)&&!(0,c.M2)(ue)?ue:n.createElement("span",null,ue),We=Re.props,fn=!We.className||typeof We.className=="string"?D()(We.className,V||`${An}-open`):We.className,[we,mn,Ue]=De(An,!ae),pn=Je(An,te),yn=pn.arrowStyle,En=D()(u,{[`${An}-rtl`]:Pe==="rtl"},pn.className,y,mn,Ue,je,ie.root,F==null?void 0:F.root),Qn=D()(ie.body,F==null?void 0:F.body),[Wn,Pt]=(0,G.Cn)("Tooltip",M.zIndex),it=n.createElement(U.Z,Object.assign({},M,{zIndex:Wn,showArrow:O,placement:Q,mouseEnterDelay:s,mouseLeaveDelay:a,prefixCls:An,classNames:{root:En,body:Qn},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yn),fe.root),He),r),N==null?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},fe.body),S),N==null?void 0:N.body),pn.overlayStyle)},getTooltipContainer:f||K||R,ref:ee,builtinPlacements:cn,overlay:gn,visible:q,onVisibleChange:wn,afterVisibleChange:Ae!=null?Ae:Le,arrowContent:n.createElement("span",{className:`${An}-arrow-content`}),motion:{motionName:(0,L.m)(he,"zoom-big-fast",i.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Me}),q?(0,c.Tm)(Re,{className:fn}):Re);return we(n.createElement(h.Z.Provider,{value:Pt},it))});o._InternalPanelDoNotUseOrYouWillBeFired=de;var B=o},28321:function(sn,ce,e){e.d(ce,{iz:function(){return In},ck:function(){return he},BW:function(){return Lt},sN:function(){return he},Wd:function(){return ft},ZP:function(){return dt},Xl:function(){return Je}});var n=e(60499),g=e(18642),D=e(85899),U=e(77654),m=e(72190),j=e(42244),G=e(92310),L=e.n(G),X=e(83836),c=e(18929),C=e(13697),h=e(48736),t=e(59301),d=e(4676),ve=t.createContext(null);function ne(v,p){return v===void 0?null:"".concat(v,"-").concat(p)}function ye(v){var p=t.useContext(ve);return ne(p,v)}var Ze=e(80547),Se=["children","locked"],_=t.createContext(null);function ge(v,p){var w=(0,D.Z)({},v);return Object.keys(p).forEach(function(b){var P=p[b];P!==void 0&&(w[b]=P)}),w}function be(v){var p=v.children,w=v.locked,b=(0,j.Z)(v,Se),P=t.useContext(_),Z=(0,Ze.Z)(function(){return ge(P,b)},[P,b],function(T,$){return!w&&(T[0]!==$[0]||!(0,C.Z)(T[1],$[1],!0))});return t.createElement(_.Provider,{value:Z},p)}var J=[],Xe=t.createContext(null);function De(){return t.useContext(Xe)}var Ye=t.createContext(J);function Je(v){var p=t.useContext(Ye);return t.useMemo(function(){return v!==void 0?[].concat((0,U.Z)(p),[v]):p},[p,v])}var Y=t.createContext(null),de=t.createContext({}),z=de,A=e(29194);function o(v){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,A.Z)(v)){var w=v.nodeName.toLowerCase(),b=["input","select","textarea","button"].includes(w)||v.isContentEditable||w==="a"&&!!v.getAttribute("href"),P=v.getAttribute("tabindex"),Z=Number(P),T=null;return P&&!Number.isNaN(Z)?T=Z:b&&T===null&&(T=0),b&&v.disabled&&(T=null),T!==null&&(T>=0||p&&T<0)}return!1}function B(v){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=(0,U.Z)(v.querySelectorAll("*")).filter(function(b){return o(b,p)});return o(v,p)&&w.unshift(v),w}var i=null;function I(){i=document.activeElement}function H(){i=null}function W(){if(i)try{i.focus()}catch(v){}}function E(v,p){if(p.keyCode===9){var w=B(v),b=w[p.shiftKey?0:w.length-1],P=b===document.activeElement||v===document.activeElement;if(P){var Z=w[p.shiftKey?w.length-1:0];Z.focus(),p.preventDefault()}}}var V=e(10228),K=e(16089),te=V.Z.LEFT,S=V.Z.RIGHT,ue=V.Z.UP,Ae=V.Z.DOWN,Le=V.Z.ENTER,Me=V.Z.ESC,se=V.Z.HOME,oe=V.Z.END,Ce=[ue,Ae,te,S];function Be(v,p,w,b){var P,Z="prev",T="next",$="children",Qe="parent";if(v==="inline"&&b===Le)return{inlineTrigger:!0};var Oe=(0,g.Z)((0,g.Z)({},ue,Z),Ae,T),ln=(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},te,w?T:Z),S,w?Z:T),Ae,$),Le,$),xe=(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},ue,Z),Ae,T),Le,$),Me,Qe),te,w?$:Qe),S,w?Qe:$),Te={inline:Oe,horizontal:ln,vertical:xe,inlineSub:Oe,horizontalSub:xe,verticalSub:xe},Ie=(P=Te["".concat(v).concat(p?"":"Sub")])===null||P===void 0?void 0:P[b];switch(Ie){case Z:return{offset:-1,sibling:!0};case T:return{offset:1,sibling:!0};case Qe:return{offset:-1,sibling:!1};case $:return{offset:1,sibling:!1};default:return null}}function Ee(v){for(var p=v;p;){if(p.getAttribute("data-menu-list"))return p;p=p.parentElement}return null}function l(v,p){for(var w=v||document.activeElement;w;){if(p.has(w))return w;w=w.parentElement}return null}function x(v,p){var w=B(v,!0);return w.filter(function(b){return p.has(b)})}function f(v,p,w){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!v)return null;var P=x(v,p),Z=P.length,T=P.findIndex(function($){return w===$});return b<0?T===-1?T=Z-1:T-=1:b>0&&(T+=1),T=(T+Z)%Z,P[T]}var Q=function(p,w){var b=new Set,P=new Map,Z=new Map;return p.forEach(function(T){var $=document.querySelector("[data-menu-id='".concat(ne(w,T),"']"));$&&(b.add($),Z.set($,T),P.set(T,$))}),{elements:b,key2element:P,element2key:Z}};function s(v,p,w,b,P,Z,T,$,Qe,Oe){var ln=t.useRef(),xe=t.useRef();xe.current=p;var Te=function(){K.Z.cancel(ln.current)};return t.useEffect(function(){return function(){Te()}},[]),function(Ie){var qe=Ie.which;if([].concat(Ce,[Le,Me,se,oe]).includes(qe)){var Ke=Z(),ze=Q(Ke,b),Ne=ze,nn=Ne.elements,Ve=Ne.key2element,ke=Ne.element2key,vn=Ve.get(p),Fe=l(vn,nn),tn=ke.get(Fe),Nn=Be(v,T(tn,!0).length===1,w,qe);if(!Nn&&qe!==se&&qe!==oe)return;(Ce.includes(qe)||[se,oe].includes(qe))&&Ie.preventDefault();var zn=function(jn){if(jn){var rt=jn,dn=jn.querySelector("a");dn!=null&&dn.getAttribute("href")&&(rt=dn);var Fn=ke.get(jn);$(Fn),Te(),ln.current=(0,K.Z)(function(){xe.current===Fn&&rt.focus()})}};if([se,oe].includes(qe)||Nn.sibling||!Fe){var Rn;!Fe||v==="inline"?Rn=P.current:Rn=Ee(Fe);var On,xn=x(Rn,nn);qe===se?On=xn[0]:qe===oe?On=xn[xn.length-1]:On=f(Rn,nn,Fe,Nn.offset),zn(On)}else if(Nn.inlineTrigger)Qe(tn);else if(Nn.offset>0)Qe(tn,!0),Te(),ln.current=(0,K.Z)(function(){ze=Q(Ke,b);var Kn=Fe.getAttribute("aria-controls"),jn=document.getElementById(Kn),rt=f(jn,ze.elements);zn(rt)},5);else if(Nn.offset<0){var Yn=T(tn,!0),Gn=Yn[Yn.length-2],Sn=Ve.get(Gn);Qe(Gn,!1),zn(Sn)}}Oe==null||Oe(Ie)}}function a(v){Promise.resolve().then(v)}var r="__RC_UTIL_PATH_SPLIT__",y=function(p){return p.join(r)},u=function(p){return p.split(r)},N="rc-menu-more";function F(){var v=t.useState({}),p=(0,m.Z)(v,2),w=p[1],b=(0,t.useRef)(new Map),P=(0,t.useRef)(new Map),Z=t.useState([]),T=(0,m.Z)(Z,2),$=T[0],Qe=T[1],Oe=(0,t.useRef)(0),ln=(0,t.useRef)(!1),xe=function(){ln.current||w({})},Te=(0,t.useCallback)(function(Ve,ke){var vn=y(ke);P.current.set(vn,Ve),b.current.set(Ve,vn),Oe.current+=1;var Fe=Oe.current;a(function(){Fe===Oe.current&&xe()})},[]),Ie=(0,t.useCallback)(function(Ve,ke){var vn=y(ke);P.current.delete(vn),b.current.delete(Ve)},[]),qe=(0,t.useCallback)(function(Ve){Qe(Ve)},[]),Ke=(0,t.useCallback)(function(Ve,ke){var vn=b.current.get(Ve)||"",Fe=u(vn);return ke&&$.includes(Fe[0])&&Fe.unshift(N),Fe},[$]),ze=(0,t.useCallback)(function(Ve,ke){return Ve.filter(function(vn){return vn!==void 0}).some(function(vn){var Fe=Ke(vn,!0);return Fe.includes(ke)})},[Ke]),Ne=function(){var ke=(0,U.Z)(b.current.keys());return $.length&&ke.push(N),ke},nn=(0,t.useCallback)(function(Ve){var ke="".concat(b.current.get(Ve)).concat(r),vn=new Set;return(0,U.Z)(P.current.keys()).forEach(function(Fe){Fe.startsWith(ke)&&vn.add(P.current.get(Fe))}),vn},[]);return t.useEffect(function(){return function(){ln.current=!0}},[]),{registerPath:Te,unregisterPath:Ie,refreshOverflowKeys:qe,isSubPathKey:ze,getKeyPath:Ke,getKeys:Ne,getSubPathKeys:nn}}function M(v){var p=t.useRef(v);p.current=v;var w=t.useCallback(function(){for(var b,P=arguments.length,Z=new Array(P),T=0;T1&&(nn.motionAppear=!1);var Ve=nn.onVisibleChanged;return nn.onVisibleChanged=function(ke){return!Te.current&&!ke&&ze(!0),Ve==null?void 0:Ve(ke)},Ke?null:t.createElement(be,{mode:Z,locked:!Te.current},t.createElement(it.default,(0,n.Z)({visible:Ne},nn,{forceRender:Qe,removeOnLeave:!1,leavedClassName:"".concat($,"-hidden")}),function(ke){var vn=ke.className,Fe=ke.style;return t.createElement(We,{id:p,className:vn,style:Fe},P)}))}var Bn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Dn=["active"],bn=t.forwardRef(function(v,p){var w=v.style,b=v.className,P=v.title,Z=v.eventKey,T=v.warnKey,$=v.disabled,Qe=v.internalPopupClose,Oe=v.children,ln=v.itemIcon,xe=v.expandIcon,Te=v.popupClassName,Ie=v.popupOffset,qe=v.popupStyle,Ke=v.onClick,ze=v.onMouseEnter,Ne=v.onMouseLeave,nn=v.onTitleClick,Ve=v.onTitleMouseEnter,ke=v.onTitleMouseLeave,vn=(0,j.Z)(v,Bn),Fe=ye(Z),tn=t.useContext(_),Nn=tn.prefixCls,zn=tn.mode,Rn=tn.openKeys,On=tn.disabled,xn=tn.overflowDisabled,Yn=tn.activeKey,Gn=tn.selectedKeys,Sn=tn.itemIcon,Kn=tn.expandIcon,jn=tn.onItemClick,rt=tn.onOpenChange,dn=tn.onActive,Fn=t.useContext(z),mt=Fn._internalRenderSubMenuItem,pt=t.useContext(Y),at=pt.isSubPathKey,Ht=Je(),hn="".concat(Nn,"-submenu"),nt=On||$,Ot=t.useRef(),lt=t.useRef(),vt=ln!=null?ln:Sn,Tn=xe!=null?xe:Kn,Un=Rn.includes(Z),st=!xn&&Un,jt=at(Gn,Z),qn=le(Z,nt,Ve,ke),At=qn.active,Zt=(0,j.Z)(qn,Dn),Mt=t.useState(!1),Ct=(0,m.Z)(Mt,2),Qt=Ct[0],It=Ct[1],Nt=function(_n){nt||It(_n)},Jt=function(_n){Nt(!0),ze==null||ze({key:Z,domEvent:_n})},Yt=function(_n){Nt(!1),Ne==null||Ne({key:Z,domEvent:_n})},kt=t.useMemo(function(){return At||(zn!=="inline"?Qt||at([Yn],Z):!1)},[zn,At,Yn,Qt,Z,at]),ut=ee(Ht.length),Kt=function(_n){nt||(nn==null||nn({key:Z,domEvent:_n}),zn==="inline"&&rt(Z,!Un))},Ft=M(function(Hn){Ke==null||Ke(_e(Hn)),jn(Hn)}),Gt=function(_n){zn!=="inline"&&rt(Z,_n)},Vt=function(){dn(Z)},Wt=Fe&&"".concat(Fe,"-popup"),xt=t.useMemo(function(){return t.createElement(en,{icon:zn!=="horizontal"?Tn:void 0,props:(0,D.Z)((0,D.Z)({},v),{},{isOpen:st,isSubMenu:!0})},t.createElement("i",{className:"".concat(hn,"-arrow")}))},[zn,Tn,v,st,hn]),$n=t.createElement("div",(0,n.Z)({role:"menuitem",style:ut,className:"".concat(hn,"-title"),tabIndex:nt?null:-1,ref:Ot,title:typeof P=="string"?P:null,"data-menu-id":xn&&Fe?null:Fe,"aria-expanded":st,"aria-haspopup":!0,"aria-controls":Wt,"aria-disabled":nt,onClick:Kt,onFocus:Vt},Zt),P,xt),bt=t.useRef(zn);if(zn!=="inline"&&Ht.length>1?bt.current="vertical":bt.current=zn,!xn){var St=bt.current;$n=t.createElement(Pt,{mode:St,prefixCls:hn,visible:!Qe&&st&&zn!=="inline",popupClassName:Te,popupOffset:Ie,popupStyle:qe,popup:t.createElement(be,{mode:St==="horizontal"?"vertical":St},t.createElement(We,{id:Wt,ref:lt},Oe)),disabled:nt,onVisibleChange:Gt},$n)}var Jn=t.createElement(X.Z.Item,(0,n.Z)({ref:p,role:"none"},vn,{component:"li",style:w,className:L()(hn,"".concat(hn,"-").concat(zn),b,(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(hn,"-open"),st),"".concat(hn,"-active"),kt),"".concat(hn,"-selected"),jt),"".concat(hn,"-disabled"),nt)),onMouseEnter:Jt,onMouseLeave:Yt}),$n,!xn&&t.createElement(rn,{id:Wt,open:st,keyPath:Ht},Oe));return mt&&(Jn=mt(Jn,v,{selected:jt,active:kt,open:st,disabled:nt})),t.createElement(be,{onItemClick:Ft,mode:zn==="horizontal"?"vertical":zn,itemIcon:vt,expandIcon:Tn},Jn)}),ot=t.forwardRef(function(v,p){var w=v.eventKey,b=v.children,P=Je(w),Z=we(b,P),T=De();t.useEffect(function(){if(T)return T.registerPath(w,P),function(){T.unregisterPath(w,P)}},[P]);var $;return T?$=Z:$=t.createElement(bn,(0,n.Z)({ref:p},v),Z),t.createElement(Ye.Provider,{value:P},$)}),ft=ot,Vn=e(43749);function In(v){var p=v.className,w=v.style,b=t.useContext(_),P=b.prefixCls,Z=De();return Z?null:t.createElement("li",{role:"separator",className:L()("".concat(P,"-item-divider"),p),style:w})}var ct=["className","title","eventKey","children"],tt=t.forwardRef(function(v,p){var w=v.className,b=v.title,P=v.eventKey,Z=v.children,T=(0,j.Z)(v,ct),$=t.useContext(_),Qe=$.prefixCls,Oe="".concat(Qe,"-item-group");return t.createElement("li",(0,n.Z)({ref:p,role:"presentation"},T,{onClick:function(xe){return xe.stopPropagation()},className:L()(Oe,w)}),t.createElement("div",{role:"presentation",className:"".concat(Oe,"-title"),title:typeof b=="string"?b:void 0},b),t.createElement("ul",{role:"group",className:"".concat(Oe,"-list")},Z))}),gt=t.forwardRef(function(v,p){var w=v.eventKey,b=v.children,P=Je(w),Z=we(b,P),T=De();return T?Z:t.createElement(tt,(0,n.Z)({ref:p},(0,ie.Z)(v,["warnKey"])),Z)}),Lt=gt,an=["label","children","key","type","extra"];function wt(v,p,w){var b=p.item,P=p.group,Z=p.submenu,T=p.divider;return(v||[]).map(function($,Qe){if($&&(0,Vn.Z)($)==="object"){var Oe=$,ln=Oe.label,xe=Oe.children,Te=Oe.key,Ie=Oe.type,qe=Oe.extra,Ke=(0,j.Z)(Oe,an),ze=Te!=null?Te:"tmp-".concat(Qe);return xe||Ie==="group"?Ie==="group"?t.createElement(P,(0,n.Z)({key:ze},Ke,{title:ln}),wt(xe,p,w)):t.createElement(Z,(0,n.Z)({key:ze},Ke,{title:ln}),wt(xe,p,w)):Ie==="divider"?t.createElement(T,(0,n.Z)({key:ze},Ke)):t.createElement(b,(0,n.Z)({key:ze},Ke,{extra:qe}),ln,(!!qe||qe===0)&&t.createElement("span",{className:"".concat(w,"-item-extra")},qe))}return null}).filter(function($){return $})}function Mn(v,p,w,b,P){var Z=v,T=(0,D.Z)({divider:In,item:he,group:Lt,submenu:ft},b);return p&&(Z=wt(p,T,P)),we(Z,w)}var Et=["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"],kn=[],Bt=t.forwardRef(function(v,p){var w,b=v,P=b.prefixCls,Z=P===void 0?"rc-menu":P,T=b.rootClassName,$=b.style,Qe=b.className,Oe=b.tabIndex,ln=Oe===void 0?0:Oe,xe=b.items,Te=b.children,Ie=b.direction,qe=b.id,Ke=b.mode,ze=Ke===void 0?"vertical":Ke,Ne=b.inlineCollapsed,nn=b.disabled,Ve=b.disabledOverflow,ke=b.subMenuOpenDelay,vn=ke===void 0?.1:ke,Fe=b.subMenuCloseDelay,tn=Fe===void 0?.1:Fe,Nn=b.forceSubMenuRender,zn=b.defaultOpenKeys,Rn=b.openKeys,On=b.activeKey,xn=b.defaultActiveFirst,Yn=b.selectable,Gn=Yn===void 0?!0:Yn,Sn=b.multiple,Kn=Sn===void 0?!1:Sn,jn=b.defaultSelectedKeys,rt=b.selectedKeys,dn=b.onSelect,Fn=b.onDeselect,mt=b.inlineIndent,pt=mt===void 0?24:mt,at=b.motion,Ht=b.defaultMotions,hn=b.triggerSubMenuAction,nt=hn===void 0?"hover":hn,Ot=b.builtinPlacements,lt=b.itemIcon,vt=b.expandIcon,Tn=b.overflowedIndicator,Un=Tn===void 0?"...":Tn,st=b.overflowedIndicatorPopupClassName,jt=b.getPopupContainer,qn=b.onClick,At=b.onOpenChange,Zt=b.onKeyDown,Mt=b.openAnimation,Ct=b.openTransitionName,Qt=b._internalRenderMenuItem,It=b._internalRenderSubMenuItem,Nt=b._internalComponents,Jt=(0,j.Z)(b,Et),Yt=t.useMemo(function(){return[Mn(Te,xe,kn,Nt,Z),Mn(Te,xe,kn,{},Z)]},[Te,xe,Nt]),kt=(0,m.Z)(Yt,2),ut=kt[0],Kt=kt[1],Ft=t.useState(!1),Gt=(0,m.Z)(Ft,2),Vt=Gt[0],Wt=Gt[1],xt=t.useRef(),$n=R(qe),bt=Ie==="rtl",St=(0,c.Z)(zn,{value:Rn,postState:function(Pn){return Pn||kn}}),Jn=(0,m.Z)(St,2),Hn=Jn[0],_n=Jn[1],zt=function(Pn){var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yt(){_n(Pn),At==null||At(Pn)}Xn?(0,d.flushSync)(yt):yt()},Tt=t.useState(Hn),Rt=(0,m.Z)(Tt,2),_t=Rt[0],nr=Rt[1],Ut=t.useRef(!1),tr=t.useMemo(function(){return(ze==="inline"||ze==="vertical")&&Ne?["vertical",Ne]:[ze,!1]},[ze,Ne]),re=(0,m.Z)(tr,2),pe=re[0],un=re[1],Ln=pe==="inline",Zn=t.useState(pe),qt=(0,m.Z)(Zn,2),Xt=qt[0],fr=qt[1],er=t.useState(un),dr=(0,m.Z)(er,2),Hr=dr[0],Zr=dr[1];t.useEffect(function(){fr(pe),Zr(un),Ut.current&&(Ln?_n(_t):zt(kn))},[pe,un]);var Xr=t.useState(0),ur=(0,m.Z)(Xr,2),ar=ur[0],wr=ur[1],sr=ar>=ut.length-1||Xt!=="horizontal"||Ve;t.useEffect(function(){Ln&&nr(Hn)},[Hn]),t.useEffect(function(){return Ut.current=!0,function(){Ut.current=!1}},[]);var $t=F(),Pr=$t.registerPath,ir=$t.unregisterPath,Or=$t.refreshOverflowKeys,Br=$t.isSubPathKey,jr=$t.getKeyPath,br=$t.getKeys,Mr=$t.getSubPathKeys,Nr=t.useMemo(function(){return{registerPath:Pr,unregisterPath:ir}},[Pr,ir]),xr=t.useMemo(function(){return{isSubPathKey:Br}},[Br]);t.useEffect(function(){Or(sr?kn:ut.slice(ar+1).map(function(Cn){return Cn.key}))},[ar,sr]);var Tr=(0,c.Z)(On||xn&&((w=ut[0])===null||w===void 0?void 0:w.key),{value:On}),zr=(0,m.Z)(Tr,2),rr=zr[0],or=zr[1],Lr=M(function(Cn){or(Cn)}),Cr=M(function(){or(void 0)});(0,t.useImperativeHandle)(p,function(){return{list:xt.current,focus:function(Pn){var Xn,yt=br(),Dt=Q(yt,$n),vr=Dt.elements,cr=Dt.key2element,Vr=Dt.element2key,mr=x(xt.current,vr),pr=rr!=null?rr:mr[0]?Vr.get(mr[0]):(Xn=ut.find(function(Rr){return!Rr.props.disabled}))===null||Xn===void 0?void 0:Xn.key,Ar=cr.get(pr);if(pr&&Ar){var gr;Ar==null||(gr=Ar.focus)===null||gr===void 0||gr.call(Ar,Pn)}}}});var Qr=(0,c.Z)(jn||[],{value:rt,postState:function(Pn){return Array.isArray(Pn)?Pn:Pn==null?kn:[Pn]}}),yr=(0,m.Z)(Qr,2),lr=yr[0],Ir=yr[1],kr=function(Pn){if(Gn){var Xn=Pn.key,yt=lr.includes(Xn),Dt;Kn?yt?Dt=lr.filter(function(cr){return cr!==Xn}):Dt=[].concat((0,U.Z)(lr),[Xn]):Dt=[Xn],Ir(Dt);var vr=(0,D.Z)((0,D.Z)({},Pn),{},{selectedKeys:Dt});yt?Fn==null||Fn(vr):dn==null||dn(vr)}!Kn&&Hn.length&&Xt!=="inline"&&zt(kn)},Gr=M(function(Cn){qn==null||qn(_e(Cn)),kr(Cn)}),Dr=M(function(Cn,Pn){var Xn=Hn.filter(function(Dt){return Dt!==Cn});if(Pn)Xn.push(Cn);else if(Xt!=="inline"){var yt=Mr(Cn);Xn=Xn.filter(function(Dt){return!yt.has(Dt)})}(0,C.Z)(Hn,Xn,!0)||zt(Xn,!0)}),Wr=function(Pn,Xn){var yt=Xn!=null?Xn:!Hn.includes(Pn);Dr(Pn,yt)},Sr=s(Xt,rr,bt,$n,xt,br,jr,or,Wr,Zt);t.useEffect(function(){Wt(!0)},[]);var Er=t.useMemo(function(){return{_internalRenderMenuItem:Qt,_internalRenderSubMenuItem:It}},[Qt,It]),hr=Xt!=="horizontal"||Ve?ut:ut.map(function(Cn,Pn){return t.createElement(be,{key:Cn.key,overflowDisabled:Pn>ar},Cn)}),Jr=t.createElement(X.Z,(0,n.Z)({id:qe,ref:xt,prefixCls:"".concat(Z,"-overflow"),component:"ul",itemComponent:he,className:L()(Z,"".concat(Z,"-root"),"".concat(Z,"-").concat(Xt),Qe,(0,g.Z)((0,g.Z)({},"".concat(Z,"-inline-collapsed"),Hr),"".concat(Z,"-rtl"),bt),T),dir:Ie,style:$,role:"menu",tabIndex:ln,data:hr,renderRawItem:function(Pn){return Pn},renderRawRest:function(Pn){var Xn=Pn.length,yt=Xn?ut.slice(-Xn):null;return t.createElement(ft,{eventKey:N,title:Un,disabled:sr,internalPopupClose:Xn===0,popupClassName:st},yt)},maxCount:Xt!=="horizontal"||Ve?X.Z.INVALIDATE:X.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Pn){wr(Pn)},onKeyDown:Sr},Jt));return t.createElement(z.Provider,{value:Er},t.createElement(ve.Provider,{value:$n},t.createElement(be,{prefixCls:Z,rootClassName:T,mode:Xt,openKeys:Hn,rtl:bt,disabled:nn,motion:Vt?at:null,defaultMotions:Vt?Ht:null,activeKey:rr,onActive:Lr,onInactive:Cr,selectedKeys:lr,inlineIndent:pt,subMenuOpenDelay:vn,subMenuCloseDelay:tn,forceSubMenuRender:Nn,builtinPlacements:Ot,triggerSubMenuAction:nt,getPopupContainer:jt,itemIcon:lt,expandIcon:vt,onItemClick:Gr,onOpenChange:Dr},t.createElement(Y.Provider,{value:xr},Jr),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(Xe.Provider,{value:Nr},Kt)))))}),ht=Bt,et=ht;et.Item=he,et.SubMenu=ft,et.ItemGroup=Lt,et.Divider=In;var dt=et},83836:function(sn,ce,e){e.d(ce,{Z:function(){return I}});var n=e(60499),g=e(85899),D=e(72190),U=e(42244),m=e(59301),j=e(92310),G=e.n(j),L=e(29301),X=e(34280),c=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],C=void 0;function h(H,W){var E=H.prefixCls,V=H.invalidate,K=H.item,te=H.renderItem,S=H.responsive,ue=H.responsiveDisabled,Ae=H.registerSize,Le=H.itemKey,Me=H.className,se=H.style,oe=H.children,Ce=H.display,Be=H.order,Ee=H.component,l=Ee===void 0?"div":Ee,x=(0,U.Z)(H,c),f=S&&!Ce;function Q(u){Ae(Le,u)}m.useEffect(function(){return function(){Q(null)}},[]);var s=te&&K!==C?te(K,{index:Be}):oe,a;V||(a={opacity:f?0:1,height:f?0:C,overflowY:f?"hidden":C,order:S?Be:C,pointerEvents:f?"none":C,position:f?"absolute":C});var r={};f&&(r["aria-hidden"]=!0);var y=m.createElement(l,(0,n.Z)({className:G()(!V&&E,Me),style:(0,g.Z)((0,g.Z)({},a),se)},r,x,{ref:W}),s);return S&&(y=m.createElement(L.Z,{onResize:function(N){var F=N.offsetWidth;Q(F)},disabled:ue},y)),y}var t=m.forwardRef(h);t.displayName="Item";var d=t,ve=e(6089),ne=e(4676),ye=e(16089);function Ze(H){if(typeof MessageChannel=="undefined")(0,ye.Z)(H);else{var W=new MessageChannel;W.port1.onmessage=function(){return H()},W.port2.postMessage(void 0)}}function Se(){var H=m.useRef(null),W=function(V){H.current||(H.current=[],Ze(function(){(0,ne.unstable_batchedUpdates)(function(){H.current.forEach(function(K){K()}),H.current=null})})),H.current.push(V)};return W}function _(H,W){var E=m.useState(W),V=(0,D.Z)(E,2),K=V[0],te=V[1],S=(0,ve.Z)(function(ue){H(function(){te(ue)})});return[K,S]}var ge=m.createContext(null),be=["component"],J=["className"],Xe=["className"],De=function(W,E){var V=m.useContext(ge);if(!V){var K=W.component,te=K===void 0?"div":K,S=(0,U.Z)(W,be);return m.createElement(te,(0,n.Z)({},S,{ref:E}))}var ue=V.className,Ae=(0,U.Z)(V,J),Le=W.className,Me=(0,U.Z)(W,Xe);return m.createElement(ge.Provider,{value:null},m.createElement(d,(0,n.Z)({ref:E,className:G()(ue,Le)},Ae,Me)))},Ye=m.forwardRef(De);Ye.displayName="RawItem";var Je=Ye,Y=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],de="responsive",z="invalidate";function A(H){return"+ ".concat(H.length," ...")}function o(H,W){var E=H.prefixCls,V=E===void 0?"rc-overflow":E,K=H.data,te=K===void 0?[]:K,S=H.renderItem,ue=H.renderRawItem,Ae=H.itemKey,Le=H.itemWidth,Me=Le===void 0?10:Le,se=H.ssr,oe=H.style,Ce=H.className,Be=H.maxCount,Ee=H.renderRest,l=H.renderRawRest,x=H.prefix,f=H.suffix,Q=H.component,s=Q===void 0?"div":Q,a=H.itemComponent,r=H.onVisibleChange,y=(0,U.Z)(H,Y),u=se==="full",N=Se(),F=_(N,null),M=(0,D.Z)(F,2),O=M[0],k=M[1],R=O||0,me=_(N,new Map),Pe=(0,D.Z)(me,2),je=Pe[0],He=Pe[1],ie=_(N,0),fe=(0,D.Z)(ie,2),le=fe[0],ee=fe[1],en=_(N,0),$e=(0,D.Z)(en,2),_e=$e[0],on=$e[1],wn=_(N,0),cn=(0,D.Z)(wn,2),Ge=cn[0],gn=cn[1],An=_(N,0),he=(0,D.Z)(An,2),ae=he[0],q=he[1],Re=(0,m.useState)(null),We=(0,D.Z)(Re,2),fn=We[0],we=We[1],mn=(0,m.useState)(null),Ue=(0,D.Z)(mn,2),pn=Ue[0],yn=Ue[1],En=m.useMemo(function(){return pn===null&&u?Number.MAX_SAFE_INTEGER:pn||0},[pn,O]),Qn=(0,m.useState)(!1),Wn=(0,D.Z)(Qn,2),Pt=Wn[0],it=Wn[1],rn="".concat(V,"-item"),Bn=Math.max(le,_e),Dn=Be===de,bn=te.length&&Dn,ot=Be===z,ft=bn||typeof Be=="number"&&te.length>Be,Vn=(0,m.useMemo)(function(){var P=te;return bn?O===null&&u?P=te:P=te.slice(0,Math.min(te.length,R/Me)):typeof Be=="number"&&(P=te.slice(0,Be)),P},[te,Me,O,Be,bn]),In=(0,m.useMemo)(function(){return bn?te.slice(En+1):te.slice(Vn.length)},[te,Vn,bn,En]),ct=(0,m.useCallback)(function(P,Z){var T;return typeof Ae=="function"?Ae(P):(T=Ae&&(P==null?void 0:P[Ae]))!==null&&T!==void 0?T:Z},[Ae]),tt=(0,m.useCallback)(S||function(P){return P},[S]);function gt(P,Z,T){pn===P&&(Z===void 0||Z===fn)||(yn(P),T||(it(PR){gt($-1,P-Qe-ae+_e);break}}f&&kn(0)+ae>R&&we(null)}},[R,je,_e,Ge,ae,ct,Vn]);var Bt=Pt&&!!In.length,ht={};fn!==null&&bn&&(ht={position:"absolute",left:fn,top:0});var et={prefixCls:rn,responsive:bn,component:a,invalidate:ot},dt=ue?function(P,Z){var T=ct(P,Z);return m.createElement(ge.Provider,{key:T,value:(0,g.Z)((0,g.Z)({},et),{},{order:Z,item:P,itemKey:T,registerSize:an,display:Z<=En})},ue(P,Z))}:function(P,Z){var T=ct(P,Z);return m.createElement(d,(0,n.Z)({},et,{order:Z,key:T,item:P,renderItem:tt,itemKey:T,registerSize:an,display:Z<=En}))},v={order:Bt?En:Number.MAX_SAFE_INTEGER,className:"".concat(rn,"-rest"),registerSize:wt,display:Bt},p=Ee||A,w=l?m.createElement(ge.Provider,{value:(0,g.Z)((0,g.Z)({},et),v)},l(In)):m.createElement(d,(0,n.Z)({},et,v),typeof p=="function"?p(In):p),b=m.createElement(s,(0,n.Z)({className:G()(!ot&&V,Ce),style:oe,ref:W},y),x&&m.createElement(d,(0,n.Z)({},et,{responsive:Dn,responsiveDisabled:!bn,order:-1,className:"".concat(rn,"-prefix"),registerSize:Mn,display:!0}),x),Vn.map(dt),ft?w:null,f&&m.createElement(d,(0,n.Z)({},et,{responsive:Dn,responsiveDisabled:!bn,order:En,className:"".concat(rn,"-suffix"),registerSize:Et,display:!0,style:ht}),f));return Dn?m.createElement(L.Z,{onResize:Lt,disabled:!bn},b):b}var B=m.forwardRef(o);B.displayName="Overflow",B.Item=Je,B.RESPONSIVE=de,B.INVALIDATE=z;var i=B,I=i},29301:function(sn,ce,e){e.d(ce,{Z:function(){return z}});var n=e(60499),g=e(59301),D=e(11592),U=e(48736),m=e(85899),j=e(43749),G=e(76846),L=e(8654),X=g.createContext(null);function c(A){var o=A.children,B=A.onBatchResize,i=g.useRef(0),I=g.useRef([]),H=g.useContext(X),W=g.useCallback(function(E,V,K){i.current+=1;var te=i.current;I.current.push({size:E,element:V,data:K}),Promise.resolve().then(function(){te===i.current&&(B==null||B(I.current),I.current=[])}),H==null||H(E,V,K)},[B,H]);return g.createElement(X.Provider,{value:W},o)}var C=e(76374),h=new Map;function t(A){A.forEach(function(o){var B,i=o.target;(B=h.get(i))===null||B===void 0||B.forEach(function(I){return I(i)})})}var d=new C.Z(t),ve=null,ne=null;function ye(A,o){h.has(A)||(h.set(A,new Set),d.observe(A)),h.get(A).add(o)}function Ze(A,o){h.has(A)&&(h.get(A).delete(o),h.get(A).size||(d.unobserve(A),h.delete(A)))}var Se=e(38705),_=e(17212),ge=e(39153),be=e(55401),J=function(A){(0,ge.Z)(B,A);var o=(0,be.Z)(B);function B(){return(0,Se.Z)(this,B),o.apply(this,arguments)}return(0,_.Z)(B,[{key:"render",value:function(){return this.props.children}}]),B}(g.Component);function Xe(A,o){var B=A.children,i=A.disabled,I=g.useRef(null),H=g.useRef(null),W=g.useContext(X),E=typeof B=="function",V=E?B(I):B,K=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),te=!E&&g.isValidElement(V)&&(0,L.Yr)(V),S=te?(0,L.C4)(V):null,ue=(0,L.x1)(S,I),Ae=function(){var oe;return(0,G.ZP)(I.current)||(I.current&&(0,j.Z)(I.current)==="object"?(0,G.ZP)((oe=I.current)===null||oe===void 0?void 0:oe.nativeElement):null)||(0,G.ZP)(H.current)};g.useImperativeHandle(o,function(){return Ae()});var Le=g.useRef(A);Le.current=A;var Me=g.useCallback(function(se){var oe=Le.current,Ce=oe.onResize,Be=oe.data,Ee=se.getBoundingClientRect(),l=Ee.width,x=Ee.height,f=se.offsetWidth,Q=se.offsetHeight,s=Math.floor(l),a=Math.floor(x);if(K.current.width!==s||K.current.height!==a||K.current.offsetWidth!==f||K.current.offsetHeight!==Q){var r={width:s,height:a,offsetWidth:f,offsetHeight:Q};K.current=r;var y=f===Math.round(l)?l:f,u=Q===Math.round(x)?x:Q,N=(0,m.Z)((0,m.Z)({},r),{},{offsetWidth:y,offsetHeight:u});W==null||W(N,se,Be),Ce&&Promise.resolve().then(function(){Ce(N,se)})}},[]);return g.useEffect(function(){var se=Ae();return se&&!i&&ye(se,Me),function(){return Ze(se,Me)}},[I.current,i]),g.createElement(J,{ref:H},te?g.cloneElement(V,{ref:ue}):V)}var De=g.forwardRef(Xe),Ye=De,Je="rc-observer-key";function Y(A,o){var B=A.children,i=typeof B=="function"?[B]:(0,D.Z)(B);return i.map(function(I,H){var W=(I==null?void 0:I.key)||"".concat(Je,"-").concat(H);return g.createElement(Ye,(0,n.Z)({},A,{key:W,ref:H===0?o:void 0}),I)})}var de=g.forwardRef(Y);de.Collection=c;var z=de},29125:function(sn,ce,e){e.d(ce,{G:function(){return U},Z:function(){return Ze}});var n=e(92310),g=e.n(n),D=e(59301);function U(Se){var _=Se.children,ge=Se.prefixCls,be=Se.id,J=Se.overlayInnerStyle,Xe=Se.bodyClassName,De=Se.className,Ye=Se.style;return D.createElement("div",{className:g()("".concat(ge,"-content"),De),style:Ye},D.createElement("div",{className:g()("".concat(ge,"-inner"),Xe),id:be,role:"tooltip",style:J},typeof _=="function"?_():_))}var m=e(60499),j=e(85899),G=e(42244),L=e(68196),X={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},C=[0,0],h={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:C},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:C},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:C},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:C},topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:C},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:C},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:C},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:C},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:C},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:C},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:C},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:C}},t=null,d=e(80402),ve=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],ne=function(_,ge){var be=_.overlayClassName,J=_.trigger,Xe=J===void 0?["hover"]:J,De=_.mouseEnterDelay,Ye=De===void 0?0:De,Je=_.mouseLeaveDelay,Y=Je===void 0?.1:Je,de=_.overlayStyle,z=_.prefixCls,A=z===void 0?"rc-tooltip":z,o=_.children,B=_.onVisibleChange,i=_.afterVisibleChange,I=_.transitionName,H=_.animation,W=_.motion,E=_.placement,V=E===void 0?"right":E,K=_.align,te=K===void 0?{}:K,S=_.destroyTooltipOnHide,ue=S===void 0?!1:S,Ae=_.defaultVisible,Le=_.getTooltipContainer,Me=_.overlayInnerStyle,se=_.arrowContent,oe=_.overlay,Ce=_.id,Be=_.showArrow,Ee=Be===void 0?!0:Be,l=_.classNames,x=_.styles,f=(0,G.Z)(_,ve),Q=(0,d.Z)(Ce),s=(0,D.useRef)(null);(0,D.useImperativeHandle)(ge,function(){return s.current});var a=(0,j.Z)({},f);"visible"in _&&(a.popupVisible=_.visible);var r=function(){return D.createElement(U,{key:"content",prefixCls:A,id:Q,bodyClassName:l==null?void 0:l.body,overlayInnerStyle:(0,j.Z)((0,j.Z)({},Me),x==null?void 0:x.body)},oe)},y=function(){var N=D.Children.only(o),F=(N==null?void 0:N.props)||{},M=(0,j.Z)((0,j.Z)({},F),{},{"aria-describedby":oe?Q:null});return D.cloneElement(o,M)};return D.createElement(L.Z,(0,m.Z)({popupClassName:g()(be,l==null?void 0:l.root),prefixCls:A,popup:r,action:Xe,builtinPlacements:h,popupPlacement:V,ref:s,popupAlign:te,getPopupContainer:Le,onPopupVisibleChange:B,afterPopupVisibleChange:i,popupTransitionName:I,popupAnimation:H,popupMotion:W,defaultPopupVisible:Ae,autoDestroy:ue,mouseLeaveDelay:Y,popupStyle:(0,j.Z)((0,j.Z)({},de),x==null?void 0:x.root),mouseEnterDelay:Ye,arrow:Ee},a),y())},ye=(0,D.forwardRef)(ne),Ze=ye},49658:function(sn,ce){ce.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))}},76374:function(sn,ce,e){var n=function(){if(typeof Map!="undefined")return Map;function z(A,o){var B=-1;return A.some(function(i,I){return i[0]===o?(B=I,!0):!1}),B}return function(){function A(){this.__entries__=[]}return Object.defineProperty(A.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),A.prototype.get=function(o){var B=z(this.__entries__,o),i=this.__entries__[B];return i&&i[1]},A.prototype.set=function(o,B){var i=z(this.__entries__,o);~i?this.__entries__[i][1]=B:this.__entries__.push([o,B])},A.prototype.delete=function(o){var B=this.__entries__,i=z(B,o);~i&&B.splice(i,1)},A.prototype.has=function(o){return!!~z(this.__entries__,o)},A.prototype.clear=function(){this.__entries__.splice(0)},A.prototype.forEach=function(o,B){B===void 0&&(B=null);for(var i=0,I=this.__entries__;i0},z.prototype.connect_=function(){!g||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),X?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},z.prototype.disconnect_=function(){!g||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},z.prototype.onTransitionEnd_=function(A){var o=A.propertyName,B=o===void 0?"":o,i=L.some(function(I){return!!~B.indexOf(I)});i&&this.refresh()},z.getInstance=function(){return this.instance_||(this.instance_=new z),this.instance_},z.instance_=null,z}(),C=function(z,A){for(var o=0,B=Object.keys(A);o0},z}(),Je=typeof WeakMap!="undefined"?new WeakMap:new n,Y=function(){function z(A){if(!(this instanceof z))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var o=c.getInstance(),B=new Ye(A,o,this);Je.set(this,B)}return z}();["observe","unobserve","disconnect"].forEach(function(z){Y.prototype[z]=function(){var A;return(A=Je.get(this))[z].apply(A,arguments)}});var de=function(){return typeof D.ResizeObserver!="undefined"?D.ResizeObserver:Y}();ce.Z=de},16722:function(sn,ce,e){e.d(ce,{Z:function(){return L}});const n=X=>typeof X=="object"&&X!=null&&X.nodeType===1,g=(X,c)=>(!c||X!=="hidden")&&X!=="visible"&&X!=="clip",D=(X,c)=>{if(X.clientHeight{const t=(d=>{if(!d.ownerDocument||!d.ownerDocument.defaultView)return null;try{return d.ownerDocument.defaultView.frameElement}catch(ve){return null}})(h);return!!t&&(t.clientHeightdc||d>X&&ve=c&&ne>=C?d-X-h:ve>c&&neC?ve-c+t:0,m=X=>{const c=X.parentElement;return c==null?X.getRootNode().host||null:c},j=(X,c)=>{var C,h,t,d;if(typeof document=="undefined")return[];const{scrollMode:ve,block:ne,inline:ye,boundary:Ze,skipOverflowHiddenElements:Se}=c,_=typeof Ze=="function"?Ze:te=>te!==Ze;if(!n(X))throw new TypeError("Invalid target");const ge=document.scrollingElement||document.documentElement,be=[];let J=X;for(;n(J)&&_(J);){if(J=m(J),J===ge){be.push(J);break}J!=null&&J===document.body&&D(J)&&!D(document.documentElement)||J!=null&&D(J,Se)&&be.push(J)}const Xe=(h=(C=window.visualViewport)==null?void 0:C.width)!=null?h:innerWidth,De=(d=(t=window.visualViewport)==null?void 0:t.height)!=null?d:innerHeight,{scrollX:Ye,scrollY:Je}=window,{height:Y,width:de,top:z,right:A,bottom:o,left:B}=X.getBoundingClientRect(),{top:i,right:I,bottom:H,left:W}=(te=>{const S=window.getComputedStyle(te);return{top:parseFloat(S.scrollMarginTop)||0,right:parseFloat(S.scrollMarginRight)||0,bottom:parseFloat(S.scrollMarginBottom)||0,left:parseFloat(S.scrollMarginLeft)||0}})(X);let E=ne==="start"||ne==="nearest"?z-i:ne==="end"?o+H:z+Y/2-i+H,V=ye==="center"?B+de/2-W+I:ye==="end"?A+I:B-W;const K=[];for(let te=0;te=0&&B>=0&&o<=De&&A<=Xe&&(S===ge&&!D(S)||z>=Le&&o<=se&&B>=oe&&A<=Me))return K;const Ce=getComputedStyle(S),Be=parseInt(Ce.borderLeftWidth,10),Ee=parseInt(Ce.borderTopWidth,10),l=parseInt(Ce.borderRightWidth,10),x=parseInt(Ce.borderBottomWidth,10);let f=0,Q=0;const s="offsetWidth"in S?S.offsetWidth-S.clientWidth-Be-l:0,a="offsetHeight"in S?S.offsetHeight-S.clientHeight-Ee-x:0,r="offsetWidth"in S?S.offsetWidth===0?0:Ae/S.offsetWidth:0,y="offsetHeight"in S?S.offsetHeight===0?0:ue/S.offsetHeight:0;if(ge===S)f=ne==="start"?E:ne==="end"?E-De:ne==="nearest"?U(Je,Je+De,De,Ee,x,Je+E,Je+E+Y,Y):E-De/2,Q=ye==="start"?V:ye==="center"?V-Xe/2:ye==="end"?V-Xe:U(Ye,Ye+Xe,Xe,Be,l,Ye+V,Ye+V+de,de),f=Math.max(0,f+Je),Q=Math.max(0,Q+Ye);else{f=ne==="start"?E-Le-Ee:ne==="end"?E-se+x+a:ne==="nearest"?U(Le,se,ue,Ee,x+a,E,E+Y,Y):E-(Le+ue/2)+a/2,Q=ye==="start"?V-oe-Be:ye==="center"?V-(oe+Ae/2)+s/2:ye==="end"?V-Me+l+s:U(oe,Me,Ae,Be,l+s,V,V+de,de);const{scrollLeft:u,scrollTop:N}=S;f=y===0?0:Math.max(0,Math.min(N+f/y,S.scrollHeight-ue/y+a)),Q=r===0?0:Math.max(0,Math.min(u+Q/r,S.scrollWidth-Ae/r+s)),E+=N-f,V+=u-Q}K.push({el:S,top:f,left:Q})}return K},G=X=>X===!1?{block:"end",inline:"nearest"}:(c=>c===Object(c)&&Object.keys(c).length!==0)(X)?X:{block:"start",inline:"nearest"};function L(X,c){if(!X.isConnected||!(t=>{let d=t;for(;d&&d.parentNode;){if(d.parentNode===document)return!0;d=d.parentNode instanceof ShadowRoot?d.parentNode.host:d.parentNode}return!1})(X))return;const C=(t=>{const d=window.getComputedStyle(t);return{top:parseFloat(d.scrollMarginTop)||0,right:parseFloat(d.scrollMarginRight)||0,bottom:parseFloat(d.scrollMarginBottom)||0,left:parseFloat(d.scrollMarginLeft)||0}})(X);if((t=>typeof t=="object"&&typeof t.behavior=="function")(c))return c.behavior(j(X,c));const h=typeof c=="boolean"||c==null?void 0:c.behavior;for(const{el:t,top:d,left:ve}of j(X,G(c))){const ne=d-C.top+C.bottom,ye=ve-C.left+C.right;t.scroll({top:ne,left:ye,behavior:h})}}}}]);