You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
95 KiB
13 lines
95 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2141],{65030:function(bn,et,n){n.d(et,{Z:function(){return nt}});var K=n(27247),y=n(11913),P=n(43079),$e=n(43403),D=n(92310),A=n.n(D),F=n(29301),q=n(76846),m=n(96452),ae=n(6089),Ne=n(80402),me=n(34280),e=n(49658),x=n(59301),It=n(32855),Nt=n(77900),_e=n(8654);function vt(r){var f=r.prefixCls,a=r.align,C=r.arrow,M=r.arrowPos,N=C||{},j=N.className,X=N.content,te=M.x,ne=te===void 0?0:te,Ee=M.y,Q=Ee===void 0?0:Ee,Le=x.useRef();if(!a||!a.points)return null;var L={position:"absolute"};if(a.autoArrow!==!1){var Se=a.points[0],Fe=a.points[1],xe=Se[0],Me=Se[1],E=Fe[0],w=Fe[1];xe===E||!["t","b"].includes(xe)?L.top=Q:xe==="t"?L.top=0:L.bottom=0,Me===w||!["l","r"].includes(Me)?L.left=ne:Me==="l"?L.left=0:L.right=0}return x.createElement("div",{ref:Le,className:A()("".concat(f,"-arrow"),j),style:L},X)}function it(r){var f=r.prefixCls,a=r.open,C=r.zIndex,M=r.mask,N=r.motion;return M?x.createElement(Nt.default,(0,It.Z)({},N,{motionAppear:!0,visible:a,removeOnLeave:!0}),function(j){var X=j.className;return x.createElement("div",{style:{zIndex:C},className:A()("".concat(f,"-mask"),X)})}):null}var k=x.memo(function(r){var f=r.children;return f},function(r,f){return f.cache}),S=k,lt=x.forwardRef(function(r,f){var a=r.popup,C=r.className,M=r.prefixCls,N=r.style,j=r.target,X=r.onVisibleChanged,te=r.open,ne=r.keepDom,Ee=r.fresh,Q=r.onClick,Le=r.mask,L=r.arrow,Se=r.arrowPos,Fe=r.align,xe=r.motion,Me=r.maskMotion,E=r.forceRender,w=r.getPopupContainer,T=r.autoDestroy,$=r.portal,p=r.zIndex,ie=r.onMouseEnter,Pe=r.onMouseLeave,dt=r.onPointerEnter,Kt=r.onPointerDownCapture,Bt=r.ready,ge=r.offsetX,be=r.offsetY,je=r.offsetR,gt=r.offsetB,Oe=r.onAlign,Je=r.onPrepare,ve=r.stretch,yt=r.targetWidth,Ct=r.targetHeight,Et=typeof a=="function"?a():a,Re=te||ne,on=(w==null?void 0:w.length)>0,st=x.useState(!w||!on),dn=(0,y.Z)(st,2),Vt=dn[0],pn=dn[1];if((0,me.Z)(function(){!Vt&&on&&j&&pn(!0)},[Vt,on,j]),!Vt)return null;var kt="auto",Dt={left:"-1000vw",top:"-1000vh",right:kt,bottom:kt};if(Bt||!te){var At,tn=Fe.points,Ht=Fe.dynamicInset||((At=Fe._experimental)===null||At===void 0?void 0:At.dynamicInset),St=Ht&&tn[0][1]==="r",Ft=Ht&&tn[0][0]==="b";St?(Dt.right=je,Dt.left=kt):(Dt.left=ge,Dt.right=kt),Ft?(Dt.bottom=gt,Dt.top=kt):(Dt.top=be,Dt.bottom=kt)}var De={};return ve&&(ve.includes("height")&&Ct?De.height=Ct:ve.includes("minHeight")&&Ct&&(De.minHeight=Ct),ve.includes("width")&&yt?De.width=yt:ve.includes("minWidth")&&yt&&(De.minWidth=yt)),te||(De.pointerEvents="none"),x.createElement($,{open:E||Re,getContainer:w&&function(){return w(j)},autoDestroy:T},x.createElement(it,{prefixCls:M,open:te,zIndex:p,mask:Le,motion:Me}),x.createElement(F.Z,{onResize:Oe,disabled:!te},function(Ie){return x.createElement(Nt.default,(0,It.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(M,"-hidden")},xe,{onAppearPrepare:Je,onEnterPrepare:Je,visible:te,onVisibleChanged:function(qt){var Ot;xe==null||(Ot=xe.onVisibleChanged)===null||Ot===void 0||Ot.call(xe,qt),X(qt)}}),function(ut,qt){var Ot=ut.className,Mn=ut.style,nn=A()(M,Ot,C);return x.createElement("div",{ref:(0,_e.sQ)(Ie,f,qt),className:nn,style:(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)({"--arrow-x":"".concat(Se.x||0,"px"),"--arrow-y":"".concat(Se.y||0,"px")},Dt),De),Mn),{},{boxSizing:"border-box",zIndex:p},N),onMouseEnter:ie,onMouseLeave:Pe,onPointerEnter:dt,onClick:Q,onPointerDownCapture:Kt},L&&x.createElement(vt,{prefixCls:M,arrow:L,arrowPos:Se,align:Fe}),x.createElement(S,{cache:!te&&!Ee},Et))})}))}),qe=lt,tt=x.forwardRef(function(r,f){var a=r.children,C=r.getTriggerDOMNode,M=(0,_e.Yr)(a),N=x.useCallback(function(X){(0,_e.mH)(f,C?C(X):X)},[C]),j=(0,_e.x1)(N,(0,_e.C4)(a));return M?x.cloneElement(a,{ref:j}):a}),W=tt,We=x.createContext(null),H=We;function Y(r){return r?Array.isArray(r)?r:[r]:[]}function G(r,f,a,C){return x.useMemo(function(){var M=Y(a!=null?a:f),N=Y(C!=null?C:f),j=new Set(M),X=new Set(N);return r&&(j.has("hover")&&(j.delete("hover"),j.add("click")),X.has("hover")&&(X.delete("hover"),X.add("click"))),[j,X]},[r,f,a,C])}var u=n(29194);function o(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;return a?r[0]===f[0]:r[0]===f[0]&&r[1]===f[1]}function d(r,f,a,C){for(var M=a.points,N=Object.keys(r),j=0;j<N.length;j+=1){var X,te=N[j];if(o((X=r[te])===null||X===void 0?void 0:X.points,M,C))return"".concat(f,"-placement-").concat(te)}return""}function h(r,f,a,C){return f||(a?{motionName:"".concat(r,"-").concat(a)}:C?{motionName:C}:null)}function v(r){return r.ownerDocument.defaultView}function Z(r){for(var f=[],a=r==null?void 0:r.parentElement,C=["hidden","scroll","clip","auto"];a;){var M=v(a).getComputedStyle(a),N=M.overflowX,j=M.overflowY,X=M.overflow;[N,j,X].some(function(te){return C.includes(te)})&&f.push(a),a=a.parentElement}return f}function l(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(r)?f:r}function I(r){return l(parseFloat(r),0)}function oe(r,f){var a=(0,K.Z)({},r);return(f||[]).forEach(function(C){if(!(C instanceof HTMLBodyElement||C instanceof HTMLHtmlElement)){var M=v(C).getComputedStyle(C),N=M.overflow,j=M.overflowClipMargin,X=M.borderTopWidth,te=M.borderBottomWidth,ne=M.borderLeftWidth,Ee=M.borderRightWidth,Q=C.getBoundingClientRect(),Le=C.offsetHeight,L=C.clientHeight,Se=C.offsetWidth,Fe=C.clientWidth,xe=I(X),Me=I(te),E=I(ne),w=I(Ee),T=l(Math.round(Q.width/Se*1e3)/1e3),$=l(Math.round(Q.height/Le*1e3)/1e3),p=(Se-Fe-E-w)*T,ie=(Le-L-xe-Me)*$,Pe=xe*$,dt=Me*$,Kt=E*T,Bt=w*T,ge=0,be=0;if(N==="clip"){var je=I(j);ge=je*T,be=je*$}var gt=Q.x+Kt-ge,Oe=Q.y+Pe-be,Je=gt+Q.width+2*ge-Kt-Bt-p,ve=Oe+Q.height+2*be-Pe-dt-ie;a.left=Math.max(a.left,gt),a.top=Math.max(a.top,Oe),a.right=Math.min(a.right,Je),a.bottom=Math.min(a.bottom,ve)}}),a}function z(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a="".concat(f),C=a.match(/^(.*)\%$/);return C?r*(parseFloat(C[1])/100):parseFloat(a)}function O(r,f){var a=f||[],C=(0,y.Z)(a,2),M=C[0],N=C[1];return[z(r.width,M),z(r.height,N)]}function ee(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[r[0],r[1]]}function ue(r,f){var a=f[0],C=f[1],M,N;return a==="t"?N=r.y:a==="b"?N=r.y+r.height:N=r.y+r.height/2,C==="l"?M=r.x:C==="r"?M=r.x+r.width:M=r.x+r.width/2,{x:M,y:N}}function J(r,f){var a={t:"b",b:"t",l:"r",r:"l"};return r.map(function(C,M){return M===f?a[C]||"c":C}).join("")}function B(r,f,a,C,M,N,j){var X=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:M[C]||{}}),te=(0,y.Z)(X,2),ne=te[0],Ee=te[1],Q=x.useRef(0),Le=x.useMemo(function(){return f?Z(f):[]},[f]),L=x.useRef({}),Se=function(){L.current={}};r||Se();var Fe=(0,ae.Z)(function(){if(f&&a&&r){let Wt=function(Xt,gn){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ln,_n=Re.x+Xt,qn=Re.y+gn,tr=_n+Ft,Qn=qn+St,nr=Math.max(_n,zn.left),V=Math.max(qn,zn.top),se=Math.min(tr,zn.right),at=Math.min(Qn,zn.bottom);return Math.max(0,(se-nr)*(at-V))},ft=function(){zt=Re.y+fe,Tt=zt+St,Ut=Re.x+le,pt=Ut+Ft};var E,w,T,$,p=f,ie=p.ownerDocument,Pe=v(p),dt=Pe.getComputedStyle(p),Kt=dt.position,Bt=p.style.left,ge=p.style.top,be=p.style.right,je=p.style.bottom,gt=p.style.overflow,Oe=(0,K.Z)((0,K.Z)({},M[C]),N),Je=ie.createElement("div");(E=p.parentElement)===null||E===void 0||E.appendChild(Je),Je.style.left="".concat(p.offsetLeft,"px"),Je.style.top="".concat(p.offsetTop,"px"),Je.style.position=Kt,Je.style.height="".concat(p.offsetHeight,"px"),Je.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden";var ve;if(Array.isArray(a))ve={x:a[0],y:a[1],width:0,height:0};else{var yt,Ct,Et=a.getBoundingClientRect();Et.x=(yt=Et.x)!==null&&yt!==void 0?yt:Et.left,Et.y=(Ct=Et.y)!==null&&Ct!==void 0?Ct:Et.top,ve={x:Et.x,y:Et.y,width:Et.width,height:Et.height}}var Re=p.getBoundingClientRect(),on=Pe.getComputedStyle(p),st=on.height,dn=on.width;Re.x=(w=Re.x)!==null&&w!==void 0?w:Re.left,Re.y=(T=Re.y)!==null&&T!==void 0?T:Re.top;var Vt=ie.documentElement,pn=Vt.clientWidth,kt=Vt.clientHeight,Dt=Vt.scrollWidth,At=Vt.scrollHeight,tn=Vt.scrollTop,Ht=Vt.scrollLeft,St=Re.height,Ft=Re.width,De=ve.height,Ie=ve.width,ut={left:0,top:0,right:pn,bottom:kt},qt={left:-Ht,top:-tn,right:Dt-Ht,bottom:At-tn},Ot=Oe.htmlRegion,Mn="visible",nn="visibleFirst";Ot!=="scroll"&&Ot!==nn&&(Ot=Mn);var mn=Ot===nn,Dn=oe(qt,Le),Qe=oe(ut,Le),ln=Ot===Mn?Qe:Dn,xt=mn?Qe:ln;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var Fn=p.getBoundingClientRect();p.style.left=Bt,p.style.top=ge,p.style.right=be,p.style.bottom=je,p.style.overflow=gt,($=p.parentElement)===null||$===void 0||$.removeChild(Je);var Lt=l(Math.round(Ft/parseFloat(dn)*1e3)/1e3),En=l(Math.round(St/parseFloat(st)*1e3)/1e3);if(Lt===0||En===0||(0,q.Sh)(a)&&!(0,u.Z)(a))return;var kn=Oe.offset,de=Oe.targetOffset,Ae=O(Re,kn),t=(0,y.Z)(Ae,2),i=t[0],c=t[1],s=O(ve,de),g=(0,y.Z)(s,2),b=g[0],R=g[1];ve.x-=b,ve.y-=R;var _=Oe.points||[],Te=(0,y.Z)(_,2),ce=Te[0],Ye=Te[1],ye=ee(Ye),Ce=ee(ce),we=ue(ve,ye),ke=ue(Re,Ce),Ke=(0,K.Z)({},Oe),le=we.x-ke.x+i,fe=we.y-ke.y+c,Ue=Wt(le,fe),ze=Wt(le,fe,Qe),Ze=ue(ve,["t","l"]),Xe=ue(Re,["t","l"]),Be=ue(ve,["b","r"]),Ge=ue(Re,["b","r"]),Rt=Oe.overflow||{},ct=Rt.adjustX,jt=Rt.adjustY,bt=Rt.shiftX,wt=Rt.shiftY,_t=function(gn){return typeof gn=="boolean"?gn:gn>=0},zt,Tt,Ut,pt;ft();var rn=_t(jt),rt=Ce[0]===ye[0];if(rn&&Ce[0]==="t"&&(Tt>xt.bottom||L.current.bt)){var Gt=fe;rt?Gt-=St-De:Gt=Ze.y-Ge.y-c;var Sn=Wt(le,Gt),xn=Wt(le,Gt,Qe);Sn>Ue||Sn===Ue&&(!mn||xn>=ze)?(L.current.bt=!0,fe=Gt,c=-c,Ke.points=[J(Ce,0),J(ye,0)]):L.current.bt=!1}if(rn&&Ce[0]==="b"&&(zt<xt.top||L.current.tb)){var sn=fe;rt?sn+=St-De:sn=Be.y-Xe.y-c;var Rn=Wt(le,sn),$t=Wt(le,sn,Qe);Rn>Ue||Rn===Ue&&(!mn||$t>=ze)?(L.current.tb=!0,fe=sn,c=-c,Ke.points=[J(Ce,0),J(ye,0)]):L.current.tb=!1}var en=_t(ct),Pn=Ce[1]===ye[1];if(en&&Ce[1]==="l"&&(pt>xt.right||L.current.rl)){var un=le;Pn?un-=Ft-Ie:un=Ze.x-Ge.x-i;var cn=Wt(un,fe),Zt=Wt(un,fe,Qe);cn>Ue||cn===Ue&&(!mn||Zt>=ze)?(L.current.rl=!0,le=un,i=-i,Ke.points=[J(Ce,1),J(ye,1)]):L.current.rl=!1}if(en&&Ce[1]==="r"&&(Ut<xt.left||L.current.lr)){var Jt=le;Pn?Jt+=Ft-Ie:Jt=Be.x-Xe.x-i;var vn=Wt(Jt,fe),In=Wt(Jt,fe,Qe);vn>Ue||vn===Ue&&(!mn||In>=ze)?(L.current.lr=!0,le=Jt,i=-i,Ke.points=[J(Ce,1),J(ye,1)]):L.current.lr=!1}ft();var Qt=bt===!0?0:bt;typeof Qt=="number"&&(Ut<Qe.left&&(le-=Ut-Qe.left-i,ve.x+Ie<Qe.left+Qt&&(le+=ve.x-Qe.left+Ie-Qt)),pt>Qe.right&&(le-=pt-Qe.right-i,ve.x>Qe.right-Qt&&(le+=ve.x-Qe.right+Qt)));var an=wt===!0?0:wt;typeof an=="number"&&(zt<Qe.top&&(fe-=zt-Qe.top-c,ve.y+De<Qe.top+an&&(fe+=ve.y-Qe.top+De-an)),Tt>Qe.bottom&&(fe-=Tt-Qe.bottom-c,ve.y>Qe.bottom-an&&(fe+=ve.y-Qe.bottom+an)));var wn=Re.x+le,Nn=wn+Ft,On=Re.y+fe,Tn=On+St,Kn=ve.x,An=Kn+Ie,Hn=ve.y,Un=Hn+De,Bn=Math.max(wn,Kn),fn=Math.min(Nn,An),Gn=(Bn+fn)/2,Jn=Gn-wn,$n=Math.max(On,Hn),jn=Math.min(Tn,Un),Wn=($n+jn)/2,Ln=Wn-On;j==null||j(f,Ke);var Yt=Fn.right-Re.x-(le+Re.width),hn=Fn.bottom-Re.y-(fe+Re.height);Lt===1&&(le=Math.round(le),Yt=Math.round(Yt)),En===1&&(fe=Math.round(fe),hn=Math.round(hn));var Vn={ready:!0,offsetX:le/Lt,offsetY:fe/En,offsetR:Yt/Lt,offsetB:hn/En,arrowX:Jn/Lt,arrowY:Ln/En,scaleX:Lt,scaleY:En,align:Ke};Ee(Vn)}}),xe=function(){Q.current+=1;var w=Q.current;Promise.resolve().then(function(){Q.current===w&&Fe()})},Me=function(){Ee(function(w){return(0,K.Z)((0,K.Z)({},w),{},{ready:!1})})};return(0,me.Z)(Me,[C]),(0,me.Z)(function(){r||Me()},[r]),[ne.ready,ne.offsetX,ne.offsetY,ne.offsetR,ne.offsetB,ne.arrowX,ne.arrowY,ne.scaleX,ne.scaleY,ne.align,xe]}var pe=n(3300);function U(r,f,a,C,M){(0,me.Z)(function(){if(r&&f&&a){let Q=function(){C(),M()};var N=f,j=a,X=Z(N),te=Z(j),ne=v(j),Ee=new Set([ne].concat((0,pe.Z)(X),(0,pe.Z)(te)));return Ee.forEach(function(Le){Le.addEventListener("scroll",Q,{passive:!0})}),ne.addEventListener("resize",Q,{passive:!0}),C(),function(){Ee.forEach(function(Le){Le.removeEventListener("scroll",Q),ne.removeEventListener("resize",Q)})}}},[r,f,a])}var re=n(48736);function he(r,f,a,C,M,N,j,X){var te=x.useRef(r);te.current=r;var ne=x.useRef(!1);x.useEffect(function(){if(f&&C&&(!M||N)){var Q=function(){ne.current=!1},Le=function(T){var $;te.current&&!j((($=T.composedPath)===null||$===void 0||($=$.call(T))===null||$===void 0?void 0:$[0])||T.target)&&!ne.current&&X(!1)},L=v(C);L.addEventListener("pointerdown",Q,!0),L.addEventListener("mousedown",Le,!0),L.addEventListener("contextmenu",Le,!0);var Se=(0,m.A)(a);if(Se&&(Se.addEventListener("mousedown",Le,!0),Se.addEventListener("contextmenu",Le,!0)),0)var Fe,xe,Me,E;return function(){L.removeEventListener("pointerdown",Q,!0),L.removeEventListener("mousedown",Le,!0),L.removeEventListener("contextmenu",Le,!0),Se&&(Se.removeEventListener("mousedown",Le,!0),Se.removeEventListener("contextmenu",Le,!0))}}},[f,a,C,M,N]);function Ee(){ne.current=!0}return Ee}var He=["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 Ve(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e.Z,f=x.forwardRef(function(a,C){var M=a.prefixCls,N=M===void 0?"rc-trigger-popup":M,j=a.children,X=a.action,te=X===void 0?"hover":X,ne=a.showAction,Ee=a.hideAction,Q=a.popupVisible,Le=a.defaultPopupVisible,L=a.onPopupVisibleChange,Se=a.afterPopupVisibleChange,Fe=a.mouseEnterDelay,xe=a.mouseLeaveDelay,Me=xe===void 0?.1:xe,E=a.focusDelay,w=a.blurDelay,T=a.mask,$=a.maskClosable,p=$===void 0?!0:$,ie=a.getPopupContainer,Pe=a.forceRender,dt=a.autoDestroy,Kt=a.destroyPopupOnHide,Bt=a.popup,ge=a.popupClassName,be=a.popupStyle,je=a.popupPlacement,gt=a.builtinPlacements,Oe=gt===void 0?{}:gt,Je=a.popupAlign,ve=a.zIndex,yt=a.stretch,Ct=a.getPopupClassNameFromAlign,Et=a.fresh,Re=a.alignPoint,on=a.onPopupClick,st=a.onPopupAlign,dn=a.arrow,Vt=a.popupMotion,pn=a.maskMotion,kt=a.popupTransitionName,Dt=a.popupAnimation,At=a.maskTransitionName,tn=a.maskAnimation,Ht=a.className,St=a.getTriggerDOMNode,Ft=(0,P.Z)(a,He),De=dt||Kt||!1,Ie=x.useState(!1),ut=(0,y.Z)(Ie,2),qt=ut[0],Ot=ut[1];(0,me.Z)(function(){Ot((0,e.Z)())},[]);var Mn=x.useRef({}),nn=x.useContext(H),mn=x.useMemo(function(){return{registerSubPopup:function(se,at){Mn.current[se]=at,nn==null||nn.registerSubPopup(se,at)}}},[nn]),Dn=(0,Ne.Z)(),Qe=x.useState(null),ln=(0,y.Z)(Qe,2),xt=ln[0],Fn=ln[1],Lt=x.useRef(null),En=(0,ae.Z)(function(V){Lt.current=V,(0,q.Sh)(V)&&xt!==V&&Fn(V),nn==null||nn.registerSubPopup(Dn,V)}),kn=x.useState(null),de=(0,y.Z)(kn,2),Ae=de[0],t=de[1],i=x.useRef(null),c=(0,ae.Z)(function(V){(0,q.Sh)(V)&&Ae!==V&&(t(V),i.current=V)}),s=x.Children.only(j),g=(s==null?void 0:s.props)||{},b={},R=(0,ae.Z)(function(V){var se,at,Mt=Ae;return(Mt==null?void 0:Mt.contains(V))||((se=(0,m.A)(Mt))===null||se===void 0?void 0:se.host)===V||V===Mt||(xt==null?void 0:xt.contains(V))||((at=(0,m.A)(xt))===null||at===void 0?void 0:at.host)===V||V===xt||Object.values(Mn.current).some(function(mt){return(mt==null?void 0:mt.contains(V))||V===mt})}),_=h(N,Vt,Dt,kt),Te=h(N,pn,tn,At),ce=x.useState(Le||!1),Ye=(0,y.Z)(ce,2),ye=Ye[0],Ce=Ye[1],we=Q!=null?Q:ye,ke=(0,ae.Z)(function(V){Q===void 0&&Ce(V)});(0,me.Z)(function(){Ce(Q||!1)},[Q]);var Ke=x.useRef(we);Ke.current=we;var le=x.useRef([]);le.current=[];var fe=(0,ae.Z)(function(V){var se;ke(V),((se=le.current[le.current.length-1])!==null&&se!==void 0?se:we)!==V&&(le.current.push(V),L==null||L(V))}),Ue=x.useRef(),ze=function(){clearTimeout(Ue.current)},Ze=function(se){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ze(),at===0?fe(se):Ue.current=setTimeout(function(){fe(se)},at*1e3)};x.useEffect(function(){return ze},[]);var Xe=x.useState(!1),Be=(0,y.Z)(Xe,2),Ge=Be[0],Rt=Be[1];(0,me.Z)(function(V){(!V||we)&&Rt(!0)},[we]);var ct=x.useState(null),jt=(0,y.Z)(ct,2),bt=jt[0],wt=jt[1],_t=x.useState(null),zt=(0,y.Z)(_t,2),Tt=zt[0],Ut=zt[1],pt=function(se){Ut([se.clientX,se.clientY])},rn=B(we,xt,Re&&Tt!==null?Tt:Ae,je,Oe,Je,st),rt=(0,y.Z)(rn,11),Gt=rt[0],Sn=rt[1],xn=rt[2],sn=rt[3],Rn=rt[4],$t=rt[5],en=rt[6],Pn=rt[7],un=rt[8],cn=rt[9],Zt=rt[10],Jt=G(qt,te,ne,Ee),vn=(0,y.Z)(Jt,2),In=vn[0],Qt=vn[1],an=In.has("click"),wn=Qt.has("click")||Qt.has("contextMenu"),Nn=(0,ae.Z)(function(){Ge||Zt()}),On=function(){Ke.current&&Re&&wn&&Ze(!1)};U(we,Ae,xt,Nn,On),(0,me.Z)(function(){Nn()},[Tt,je]),(0,me.Z)(function(){we&&!(Oe!=null&&Oe[je])&&Nn()},[JSON.stringify(Je)]);var Tn=x.useMemo(function(){var V=d(Oe,N,cn,Re);return A()(V,Ct==null?void 0:Ct(cn))},[cn,Ct,Oe,N,Re]);x.useImperativeHandle(C,function(){return{nativeElement:i.current,popupElement:Lt.current,forceAlign:Nn}});var Kn=x.useState(0),An=(0,y.Z)(Kn,2),Hn=An[0],Un=An[1],Bn=x.useState(0),fn=(0,y.Z)(Bn,2),Gn=fn[0],Jn=fn[1],$n=function(){if(yt&&Ae){var se=Ae.getBoundingClientRect();Un(se.width),Jn(se.height)}},jn=function(){$n(),Nn()},Wn=function(se){Rt(!1),Zt(),Se==null||Se(se)},Ln=function(){return new Promise(function(se){$n(),wt(function(){return se})})};(0,me.Z)(function(){bt&&(Zt(),bt(),wt(null))},[bt]);function Yt(V,se,at,Mt){b[V]=function(mt){var Yn;Mt==null||Mt(mt),Ze(se,at);for(var Zn=arguments.length,or=new Array(Zn>1?Zn-1:0),er=1;er<Zn;er++)or[er-1]=arguments[er];(Yn=g[V])===null||Yn===void 0||Yn.call.apply(Yn,[g,mt].concat(or))}}(an||wn)&&(b.onClick=function(V){var se;Ke.current&&wn?Ze(!1):!Ke.current&&an&&(pt(V),Ze(!0));for(var at=arguments.length,Mt=new Array(at>1?at-1:0),mt=1;mt<at;mt++)Mt[mt-1]=arguments[mt];(se=g.onClick)===null||se===void 0||se.call.apply(se,[g,V].concat(Mt))});var hn=he(we,wn,Ae,xt,T,p,R,Ze),Vn=In.has("hover"),Wt=Qt.has("hover"),ft,Xt;Vn&&(Yt("onMouseEnter",!0,Fe,function(V){pt(V)}),Yt("onPointerEnter",!0,Fe,function(V){pt(V)}),ft=function(se){(we||Ge)&&xt!==null&&xt!==void 0&&xt.contains(se.target)&&Ze(!0,Fe)},Re&&(b.onMouseMove=function(V){var se;(se=g.onMouseMove)===null||se===void 0||se.call(g,V)})),Wt&&(Yt("onMouseLeave",!1,Me),Yt("onPointerLeave",!1,Me),Xt=function(){Ze(!1,Me)}),In.has("focus")&&Yt("onFocus",!0,E),Qt.has("focus")&&Yt("onBlur",!1,w),In.has("contextMenu")&&(b.onContextMenu=function(V){var se;Ke.current&&Qt.has("contextMenu")?Ze(!1):(pt(V),Ze(!0)),V.preventDefault();for(var at=arguments.length,Mt=new Array(at>1?at-1:0),mt=1;mt<at;mt++)Mt[mt-1]=arguments[mt];(se=g.onContextMenu)===null||se===void 0||se.call.apply(se,[g,V].concat(Mt))}),Ht&&(b.className=A()(g.className,Ht));var gn=x.useRef(!1);gn.current||(gn.current=Pe||we||Ge);var zn=(0,K.Z)((0,K.Z)({},g),b),_n={},qn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];qn.forEach(function(V){Ft[V]&&(_n[V]=function(){for(var se,at=arguments.length,Mt=new Array(at),mt=0;mt<at;mt++)Mt[mt]=arguments[mt];(se=zn[V])===null||se===void 0||se.call.apply(se,[zn].concat(Mt)),Ft[V].apply(Ft,Mt)})});var tr=x.cloneElement(s,(0,K.Z)((0,K.Z)({},zn),_n)),Qn={x:$t,y:en},nr=dn?(0,K.Z)({},dn!==!0?dn:{}):null;return x.createElement(x.Fragment,null,x.createElement(F.Z,{disabled:!we,ref:c,onResize:jn},x.createElement(W,{getTriggerDOMNode:St},tr)),gn.current&&x.createElement(H.Provider,{value:mn},x.createElement(qe,{portal:r,ref:En,prefixCls:N,popup:Bt,className:A()(ge,Tn),style:be,target:Ae,onMouseEnter:ft,onMouseLeave:Xt,onPointerEnter:ft,zIndex:ve,open:we,keepDom:Ge,fresh:Et,onClick:on,onPointerDownCapture:hn,mask:T,motion:_,maskMotion:Te,onVisibleChanged:Wn,onPrepare:Ln,forceRender:Pe,autoDestroy:De,getPopupContainer:ie,align:cn,arrow:nr,arrowPos:Qn,ready:Gt,offsetX:Sn,offsetY:xn,offsetR:sn,offsetB:Rn,onAlign:Nn,stretch:yt,targetWidth:Hn/Pn,targetHeight:Gn/un})))});return f}var nt=Ve($e.Z)},8655:function(bn,et,n){n.r(et),n.d(et,{default:function(){return We}});var K=n(59301),y=n(76560),P=n(6767),$e=n(62957),D=n(91882),A=n(25399),F=n(37568),q=n(99571),m={totitle:"totitle___WlgWW",content:"content___WmnV2",left:"left___BZuyf",right:"right___AHPIC",title_warp:"title_warp___gnHLt",title_l:"title_l___ETeeG",icon_rect:"icon_rect___otzRm",title_r:"title_r___S3EUA",btns:"btns___x1yqL",taskList:"taskList___mOktx",taskItem:"taskItem___DGycs",taskItem_icon:"taskItem_icon___bTDhO",taskItem_name:"taskItem_name___GucaG",shixunList_warp:"shixunList_warp___FoCnN",shixunList:"shixunList___yvx0q",shixunItem:"shixunItem___Zj0PL",shixunItem_top:"shixunItem_top___GAbnS",shixunItem_top_l:"shixunItem_top_l___BBrrc",shixunItem_top_r:"shixunItem_top_r___yfKtm",btn_css:"btn_css___X28db",btn_css1:"btn_css1___EGNsa",shixunItem_bottom1:"shixunItem_bottom1___JvSJF",shixunItem_bottom2:"shixunItem_bottom2___fMUOs",pushList:"pushList___yaMs6",pushList_item:"pushList_item___HW7eQ",pushList_item_name:"pushList_item_name___HsskE",pushList_item_url:"pushList_item_url___lY5Hb"},ae=n(82093),Ne=n(62772),me=n(38819),e=n(59301),x=Object.defineProperty,It=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,k=(H,Y,G)=>Y in H?x(H,Y,{enumerable:!0,configurable:!0,writable:!0,value:G}):H[Y]=G,S=(H,Y)=>{for(var G in Y||(Y={}))vt.call(Y,G)&&k(H,G,Y[G]);if(_e)for(var G of _e(Y))it.call(Y,G)&&k(H,G,Y[G]);return H},lt=(H,Y)=>It(H,Nt(Y)),qe=(H,Y)=>{var G={};for(var u in H)vt.call(H,u)&&Y.indexOf(u)<0&&(G[u]=H[u]);if(H!=null&&_e)for(var u of _e(H))Y.indexOf(u)<0&&it.call(H,u)&&(G[u]=H[u]);return G},tt=(H,Y,G)=>new Promise((u,o)=>{var d=Z=>{try{v(G.next(Z))}catch(l){o(l)}},h=Z=>{try{v(G.throw(Z))}catch(l){o(l)}},v=Z=>Z.done?u(Z.value):Promise.resolve(Z.value).then(d,h);v((G=G.apply(H,Y)).next())});const W=H=>{var Y=H,{shixunsDetail:G,user:u,globalSetting:o,loading:d,dispatch:h}=Y,v=qe(Y,["shixunsDetail","user","globalSetting","loading","dispatch"]),Z,l,I,oe,z;const O=(0,y.useParams)(),ee=new URLSearchParams(window.location.search),ue=ee.get("splitCount")||0,J=ee.get("newSplitCount")||0,[B,pe]=(0,K.useState)([]),[U,re]=(0,K.useState)([]),[he,He]=(0,K.useState)(""),[Ve,nt]=(0,K.useState)(!1),[r,f]=(0,K.useState)([]),[a,C]=(0,K.useState)(!1),[M,N]=(0,K.useState)(-1);(0,K.useEffect)(()=>{j()},[O]),(0,K.useEffect)(()=>{var E;if(G.challenges.challenge_list){pe([...G.challenges.challenge_list]);let w=[];for(let T=0;T<Number(J);T++)w.push({shixun_name:(T<9?`0${T+1}`:T+1)+(((E=G.detail)==null?void 0:E.name)||""),arr:[]});re([...w])}},[G]);function j(){return tt(this,null,function*(){h({type:"shixunsDetail/getChallengesData",payload:{id:O.id}}),h({type:"shixunsDetail/getShixunsDetail",payload:{id:O.id}})})}const X=(E,w)=>{He(w),N(E)},te=()=>{He(""),N(-1)},ne=E=>{if(!he){P.ZP.error("\u8BF7\u8F93\u5165\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0");return}re(U.map((w,T)=>T==E?lt(S({},w),{shixun_name:he}):w)),N(-1)},Ee=E=>{$e.default.confirm({centered:!0,title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u5F53\u524D\u7684\u5B50\u5B9E\u8DF5\u9879\u76EE\u5417\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk(){var w,T;(T=(w=U==null?void 0:U[E])==null?void 0:w.arr)==null||T.map($=>{pe(p=>{const ie=[...p,$];return ie.sort((Pe,dt)=>Pe.position-dt.position),ie})}),re($=>{const p=[...$];return p.splice(E,1),p})}})},Q=(E,w)=>{E.dataTransfer.setData("text/plain",JSON.stringify(w))},Le=(E,w)=>{E.preventDefault();const T=JSON.parse(E.dataTransfer.getData("text/plain"));if(T!=null&&T.challenge_id)re($=>{const p=[...$];return p[w].arr.push(T),p}),pe($=>{const p=[...$],ie=p.findIndex(Pe=>Pe.challenge_id==T.challenge_id);return ie>-1&&p.splice(ie,1),p});else{if(w==T.parentIndex)return;const $=T.parentIndex,p=T.childIndex,ie=[...U],Pe=ie[$].arr[p];ie[w].arr.push(Pe),$!==w&&ie[$].arr.splice(p,1),re(ie)}},L=(E,w,T)=>{re($=>{const p=[...$];return p[E].arr.splice(T,1),p}),pe($=>{const p=[...$,w];return p.sort((ie,Pe)=>ie.position-Pe.position),p})},Se=(E,w,T)=>{E.dataTransfer.setData("text/plain",JSON.stringify({parentIndex:w,childIndex:T}))},Fe=E=>{E.preventDefault()},xe=(E,w,T)=>{E.preventDefault();const $=JSON.parse(E.dataTransfer.getData("text/plain"));if(($==null?void 0:$.childIndex)==null)return;const p=$.parentIndex,ie=$.childIndex,Pe=[...U],dt=Pe[p].arr[ie];p==w&&(Pe[w].arr.splice(ie,1),Pe[w].arr.splice(T,0,dt)),re(Pe)},Me=()=>tt(void 0,null,function*(){var E;if(U.some($=>$.arr.length==0)){P.ZP.error("\u6709\u672A\u8BBE\u7F6E\u4EFB\u52A1\u5173\u5361\u7684\u5B50\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u8BBE\u7F6E\u540E\u91CD\u65B0\u786E\u8BA4\uFF01");return}C(!0);const w=U.map($=>({shixun_name:$.shixun_name,shixun_challeng_ids:$.arr.map(p=>p.challenge_id)}));let T=yield(0,ae.ZP)(`/api/shixuns/${O.id}/split.json`,{method:"post",body:{split_shixuns:w}});(T==null?void 0:T.status)==0&&(nt(!0),f((E=T==null?void 0:T.data)==null?void 0:E.new_shixuns)),C(!1)});return e.createElement("div",{style:{width:"1200px",margin:"0 auto",marginTop:"22px"}},e.createElement(D.Z,{separator:">"},e.createElement(D.Z.Item,null,e.createElement(y.Link,{to:"/shixuns"},"\u5B9E\u8DF5\u9879\u76EE")),e.createElement(D.Z.Item,null,e.createElement(A.Z,{title:(Z=G.detail)==null?void 0:Z.name},e.createElement(y.Link,{to:`/shixuns/${O.id}/challenges`},((I=(l=G.detail)==null?void 0:l.name)==null?void 0:I.length)>12?((oe=G.detail)==null?void 0:oe.name.substr(0,12))+"...":(z=G.detail)==null?void 0:z.name))),e.createElement(D.Z.Item,null,"\u5173\u5361\u62C6\u5206")),e.createElement("div",{className:m.content},e.createElement("div",{className:m.left},e.createElement("div",{className:m.title_warp},e.createElement("div",{className:m.title_l},e.createElement("div",{className:m.icon_rect}),e.createElement("div",null,"\u6E90\u5B9E\u8DF5\u9879\u76EE\u4EFB\u52A1\u5173\u5361")),e.createElement("div",{className:m.title_r},"\u70B9\u51FB\u62D6\u52A8\u5230\u53F3\u4FA7\u5B50\u9879\u76EE\u4E2D")),e.createElement("div",{className:m.taskList},(B==null?void 0:B.length)>0?B.map((E,w)=>e.createElement("div",{className:m.taskItem,key:E.challenge_id,draggable:"true",onDragStart:T=>{Q(T,E)}},e.createElement("div",{className:m.taskItem_name},"\u7B2C",E==null?void 0:E.position,"\u5173\uFF1A",E==null?void 0:E.name),e.createElement("div",{className:`${m.taskItem_icon} icon-tuodong2`}))):e.createElement("div",{className:m.shixunItem_bottom_nodata},"\u6682\u65E0\u4EFB\u52A1\u5173\u5361"))),e.createElement("div",{className:m.right},e.createElement("div",{className:`${m.title_warp} mb20`,style:{height:30}},e.createElement("div",{style:{display:"flex"}},e.createElement("div",{className:m.title_l},e.createElement("div",{className:m.icon_rect}),e.createElement("div",{className:"mr10"},"\u5B50\u5B9E\u8DF5\u9879\u76EE")),e.createElement("div",{className:m.title_r},"\u8BF7\u4ECE\u5DE6\u4FA7\u62D6\u5165\u4EFB\u52A1\u5173\u5361\uFF0C\u652F\u6301\u62D6\u52A8\u8C03\u6574\u5173\u5361\u6392\u5E8F")),ue!=(U==null?void 0:U.length)&&e.createElement("div",{className:m.btns,onClick:()=>{var E;re([...U,{shixun_name:((U==null?void 0:U.length)<9?`0${(U==null?void 0:U.length)+1}`:(U==null?void 0:U.length)+1)+(((E=G.detail)==null?void 0:E.name)||""),arr:[]}])}},e.createElement(Ne.Z,{style:{marginRight:4}})," \u65B0\u589E\u5B50\u9879\u76EE")),e.createElement("div",{className:m.shixunList_warp},e.createElement("div",{className:m.shixunList},U.map((E,w)=>{var T,$;return e.createElement("div",{className:m.shixunItem,key:w},e.createElement("div",{className:m.shixunItem_top},M==w?e.createElement(F.default,{maxLength:60,style:{width:206,height:36},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",value:he,onChange:p=>{He(p.target.value)}}):e.createElement(A.Z,{title:E==null?void 0:E.shixun_name},e.createElement("div",{className:m.shixunItem_top_l},E==null?void 0:E.shixun_name)),e.createElement("div",{className:m.shixunItem_top_r},M==w?e.createElement(e.Fragment,null,e.createElement(q.ZP,{style:{color:"#464F66"},className:m.btn_css,onClick:te}," \u53D6\u6D88"),e.createElement(q.ZP,{type:"primary",className:m.btn_css,style:{color:"#FFFFFF"},onClick:()=>ne(w)}," \u786E\u5B9A")):e.createElement(e.Fragment,null,e.createElement("div",{className:"icon-bianji10",onClick:()=>{X(w,E.shixun_name)}}),(U==null?void 0:U.length)>1&&e.createElement("div",{className:"icon-piliangshanchubeifen ml20",onClick:()=>Ee(w)})))),e.createElement("div",{className:`${((T=E==null?void 0:E.arr)==null?void 0:T.length)>0?m.shixunItem_bottom1:m.shixunItem_bottom2}`,onDrop:p=>Le(p,w),onDragOver:p=>{p.preventDefault()}},(($=E==null?void 0:E.arr)==null?void 0:$.length)>0?E==null?void 0:E.arr.map((p,ie)=>e.createElement("div",{className:m.taskItem,key:ie,draggable:"true",onDragStart:Pe=>Se(Pe,w,ie),onDragOver:Pe=>Fe(Pe),onDrop:Pe=>xe(Pe,w,ie)},e.createElement("div",{className:m.taskItem_name},"\u7B2C",ie+1,"\u5173\uFF1A",p==null?void 0:p.name),e.createElement("div",{className:`${m.taskItem_icon} icon-shanchu10`,onClick:()=>L(w,p,ie)}))):e.createElement("div",{className:m.shixunItem_bottom_nodata},"\u8BF7\u62D6\u52A8\u4EFB\u52A1\u5173\u5361\u5230\u6B64\u5904\u533A\u57DF")))}))))),e.createElement("div",{style:{width:"100%",textAlign:"center",margin:"20px 0px"}},e.createElement(q.ZP,{className:m.btn_css1,style:{color:"#047AFF",marginRight:"20px"},onClick:()=>{y.history.back()}},"\u53D6\u6D88"),e.createElement(q.ZP,{onClick:()=>Me(),className:m.btn_css1,style:{color:"#FFFFFF"},type:"primary",loading:a},"\u786E\u8BA4")),e.createElement($e.default,{wdith:456,centered:!0,open:Ve,title:"\u63D0\u793A",width:"600px",onCancel:()=>{nt(!1),y.history.push(`/shixuns/${O.id}/challenges`)},footer:null},e.createElement("div",null,"\u62C6\u5206\u64CD\u4F5C\u5DF2\u5B8C\u6210\uFF0C\u53EF\u70B9\u51FB\u3010\u7ACB\u5373\u524D\u5F80\u3011\u6309\u94AE\u67E5\u770B\u62C6\u5206\u540E\u7684\u5B9E\u8DF5\u9879\u76EE"),e.createElement("div",{className:m.pushList},r.map((E,w)=>e.createElement("div",{className:m.pushList_item,key:w},e.createElement("div",{className:m.pushList_item_name},E==null?void 0:E.name),e.createElement("div",{className:m.pushList_item_url,onClick:()=>{y.history.push(`/shixuns/${E.identifier}/challenges`)}},"\u7ACB\u5373\u524D\u5F80",e.createElement(me.Z,null)))))))};var We=(0,y.connect)(({shixunsDetail:H,user:Y,loading:G,globalSetting:u})=>({shixunsDetail:H,user:Y,globalSetting:u,loading:G.models.index}))(W)},96478:function(bn,et,n){n.d(et,{Z:function(){return tt}});var K=n(32855),y=n(74430),P=n(11913),$e=n(43079),D=n(65030),A=n(92310),F=n.n(A),q=n(8654),m=n(59301),ae=n(10228),Ne=n(16089),me=ae.Z.ESC,e=ae.Z.TAB;function x(W){var We=W.visible,H=W.triggerRef,Y=W.onVisibleChange,G=W.autoFocus,u=W.overlayRef,o=m.useRef(!1),d=function(){if(We){var l,I;(l=H.current)===null||l===void 0||(I=l.focus)===null||I===void 0||I.call(l),Y==null||Y(!1)}},h=function(){var l;return(l=u.current)!==null&&l!==void 0&&l.focus?(u.current.focus(),o.current=!0,!0):!1},v=function(l){switch(l.keyCode){case me:d();break;case e:{var I=!1;o.current||(I=h()),I?l.preventDefault():d();break}}};m.useEffect(function(){return We?(window.addEventListener("keydown",v),G&&(0,Ne.Z)(h,3),function(){window.removeEventListener("keydown",v),o.current=!1}):function(){o.current=!1}},[We])}var It=(0,m.forwardRef)(function(W,We){var H=W.overlay,Y=W.arrow,G=W.prefixCls,u=(0,m.useMemo)(function(){var d;return typeof H=="function"?d=H():d=H,d},[H]),o=(0,q.sQ)(We,(0,q.C4)(u));return m.createElement(m.Fragment,null,Y&&m.createElement("div",{className:"".concat(G,"-arrow")}),m.cloneElement(u,{ref:(0,q.Yr)(u)?o:void 0}))}),Nt=It,_e={adjustX:1,adjustY:1},vt=[0,0],it={topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-4],targetOffset:vt},top:{points:["bc","tc"],overflow:_e,offset:[0,-4],targetOffset:vt},topRight:{points:["br","tr"],overflow:_e,offset:[0,-4],targetOffset:vt},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,4],targetOffset:vt},bottom:{points:["tc","bc"],overflow:_e,offset:[0,4],targetOffset:vt},bottomRight:{points:["tr","br"],overflow:_e,offset:[0,4],targetOffset:vt}},k=it,S=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function lt(W,We){var H,Y=W.arrow,G=Y===void 0?!1:Y,u=W.prefixCls,o=u===void 0?"rc-dropdown":u,d=W.transitionName,h=W.animation,v=W.align,Z=W.placement,l=Z===void 0?"bottomLeft":Z,I=W.placements,oe=I===void 0?k:I,z=W.getPopupContainer,O=W.showAction,ee=W.hideAction,ue=W.overlayClassName,J=W.overlayStyle,B=W.visible,pe=W.trigger,U=pe===void 0?["hover"]:pe,re=W.autoFocus,he=W.overlay,He=W.children,Ve=W.onVisibleChange,nt=(0,$e.Z)(W,S),r=m.useState(),f=(0,P.Z)(r,2),a=f[0],C=f[1],M="visible"in W?B:a,N=m.useRef(null),j=m.useRef(null),X=m.useRef(null);m.useImperativeHandle(We,function(){return N.current});var te=function(Me){C(Me),Ve==null||Ve(Me)};x({visible:M,triggerRef:X,onVisibleChange:te,autoFocus:re,overlayRef:j});var ne=function(Me){var E=W.onOverlayClick;C(!1),E&&E(Me)},Ee=function(){return m.createElement(Nt,{ref:j,overlay:he,prefixCls:o,arrow:G})},Q=function(){return typeof he=="function"?Ee:Ee()},Le=function(){var Me=W.minOverlayWidthMatchTrigger,E=W.alignPoint;return"minOverlayWidthMatchTrigger"in W?Me:!E},L=function(){var Me=W.openClassName;return Me!==void 0?Me:"".concat(o,"-open")},Se=m.cloneElement(He,{className:F()((H=He.props)===null||H===void 0?void 0:H.className,M&&L()),ref:(0,q.Yr)(He)?(0,q.sQ)(X,(0,q.C4)(He)):void 0}),Fe=ee;return!Fe&&U.indexOf("contextMenu")!==-1&&(Fe=["click"]),m.createElement(D.Z,(0,K.Z)({builtinPlacements:oe},nt,{prefixCls:o,ref:N,popupClassName:F()(ue,(0,y.Z)({},"".concat(o,"-show-arrow"),G)),popupStyle:J,action:U,showAction:O,hideAction:Fe,popupPlacement:l,popupAlign:v,popupTransitionName:d,popupAnimation:h,popupVisible:M,stretch:Le()?"minWidth":"",popup:Q(),onPopupVisibleChange:te,onPopupClick:ne,getPopupContainer:z}),Se)}var qe=m.forwardRef(lt),tt=qe},66003:function(bn,et,n){n.d(et,{Z:function(){return F}});var K=n(43079),y=n(27247),P=n(34666),$e=n(59301),D=["show"];function A(q,m){if(!m.max)return!0;var ae=m.strategy(q);return ae<=m.max}function F(q,m){return $e.useMemo(function(){var ae={};m&&(ae.show=(0,P.Z)(m)==="object"&&m.formatter?m.formatter:!!m),ae=(0,y.Z)((0,y.Z)({},ae),q);var Ne=ae,me=Ne.show,e=(0,K.Z)(Ne,D);return(0,y.Z)((0,y.Z)({},e),{},{show:!!me,showFormatter:typeof me=="function"?me:void 0,strategy:e.strategy||function(x){return x.length}})},[q,m])}},36901:function(bn,et,n){n.r(et),n.d(et,{BaseInput:function(){return ae},default:function(){return k}});var K=n(27247),y=n(32855),P=n(74430),$e=n(34666),D=n(92310),A=n.n(D),F=n(59301),q=n(30292),m=F.forwardRef(function(S,lt){var qe,tt,W,We=S.inputElement,H=S.children,Y=S.prefixCls,G=S.prefix,u=S.suffix,o=S.addonBefore,d=S.addonAfter,h=S.className,v=S.style,Z=S.disabled,l=S.readOnly,I=S.focused,oe=S.triggerFocus,z=S.allowClear,O=S.value,ee=S.handleReset,ue=S.hidden,J=S.classes,B=S.classNames,pe=S.dataAttrs,U=S.styles,re=S.components,he=S.onClear,He=H!=null?H:We,Ve=(re==null?void 0:re.affixWrapper)||"span",nt=(re==null?void 0:re.groupWrapper)||"span",r=(re==null?void 0:re.wrapper)||"span",f=(re==null?void 0:re.groupAddon)||"span",a=(0,F.useRef)(null),C=function(T){var $;($=a.current)!==null&&$!==void 0&&$.contains(T.target)&&(oe==null||oe())},M=(0,q.X3)(S),N=(0,F.cloneElement)(He,{value:O,className:A()((qe=He.props)===null||qe===void 0?void 0:qe.className,!M&&(B==null?void 0:B.variant))||null}),j=(0,F.useRef)(null);if(F.useImperativeHandle(lt,function(){return{nativeElement:j.current||a.current}}),M){var X=null;if(z){var te=!Z&&!l&&O,ne="".concat(Y,"-clear-icon"),Ee=(0,$e.Z)(z)==="object"&&z!==null&&z!==void 0&&z.clearIcon?z.clearIcon:"\u2716";X=F.createElement("button",{type:"button",tabIndex:-1,onClick:function(T){ee==null||ee(T),he==null||he()},onMouseDown:function(T){return T.preventDefault()},className:A()(ne,(0,P.Z)((0,P.Z)({},"".concat(ne,"-hidden"),!te),"".concat(ne,"-has-suffix"),!!u))},Ee)}var Q="".concat(Y,"-affix-wrapper"),Le=A()(Q,(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(Y,"-disabled"),Z),"".concat(Q,"-disabled"),Z),"".concat(Q,"-focused"),I),"".concat(Q,"-readonly"),l),"".concat(Q,"-input-with-clear-btn"),u&&z&&O),J==null?void 0:J.affixWrapper,B==null?void 0:B.affixWrapper,B==null?void 0:B.variant),L=(u||z)&&F.createElement("span",{className:A()("".concat(Y,"-suffix"),B==null?void 0:B.suffix),style:U==null?void 0:U.suffix},X,u);N=F.createElement(Ve,(0,y.Z)({className:Le,style:U==null?void 0:U.affixWrapper,onClick:C},pe==null?void 0:pe.affixWrapper,{ref:a}),G&&F.createElement("span",{className:A()("".concat(Y,"-prefix"),B==null?void 0:B.prefix),style:U==null?void 0:U.prefix},G),N,L)}if((0,q.He)(S)){var Se="".concat(Y,"-group"),Fe="".concat(Se,"-addon"),xe="".concat(Se,"-wrapper"),Me=A()("".concat(Y,"-wrapper"),Se,J==null?void 0:J.wrapper,B==null?void 0:B.wrapper),E=A()(xe,(0,P.Z)({},"".concat(xe,"-disabled"),Z),J==null?void 0:J.group,B==null?void 0:B.groupWrapper);N=F.createElement(nt,{className:E,ref:j},F.createElement(r,{className:Me},o&&F.createElement(f,{className:Fe},o),N,d&&F.createElement(f,{className:Fe},d)))}return F.cloneElement(N,{className:A()((tt=N.props)===null||tt===void 0?void 0:tt.className,h)||null,style:(0,K.Z)((0,K.Z)({},(W=N.props)===null||W===void 0?void 0:W.style),v),hidden:ue})}),ae=m,Ne=n(3300),me=n(11913),e=n(43079),x=n(18929),It=n(2738),Nt=n(66003),_e=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],vt=(0,F.forwardRef)(function(S,lt){var qe=S.autoComplete,tt=S.onChange,W=S.onFocus,We=S.onBlur,H=S.onPressEnter,Y=S.onKeyDown,G=S.onKeyUp,u=S.prefixCls,o=u===void 0?"rc-input":u,d=S.disabled,h=S.htmlSize,v=S.className,Z=S.maxLength,l=S.suffix,I=S.showCount,oe=S.count,z=S.type,O=z===void 0?"text":z,ee=S.classes,ue=S.classNames,J=S.styles,B=S.onCompositionStart,pe=S.onCompositionEnd,U=(0,e.Z)(S,_e),re=(0,F.useState)(!1),he=(0,me.Z)(re,2),He=he[0],Ve=he[1],nt=(0,F.useRef)(!1),r=(0,F.useRef)(!1),f=(0,F.useRef)(null),a=(0,F.useRef)(null),C=function(be){f.current&&(0,q.nH)(f.current,be)},M=(0,x.Z)(S.defaultValue,{value:S.value}),N=(0,me.Z)(M,2),j=N[0],X=N[1],te=j==null?"":String(j),ne=(0,F.useState)(null),Ee=(0,me.Z)(ne,2),Q=Ee[0],Le=Ee[1],L=(0,Nt.Z)(oe,I),Se=L.max||Z,Fe=L.strategy(te),xe=!!Se&&Fe>Se;(0,F.useImperativeHandle)(lt,function(){var ge;return{focus:C,blur:function(){var je;(je=f.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,gt,Oe){var Je;(Je=f.current)===null||Je===void 0||Je.setSelectionRange(je,gt,Oe)},select:function(){var je;(je=f.current)===null||je===void 0||je.select()},input:f.current,nativeElement:((ge=a.current)===null||ge===void 0?void 0:ge.nativeElement)||f.current}}),(0,F.useEffect)(function(){r.current&&(r.current=!1),Ve(function(ge){return ge&&d?!1:ge})},[d]);var Me=function(be,je,gt){var Oe=je;if(!nt.current&&L.exceedFormatter&&L.max&&L.strategy(je)>L.max){if(Oe=L.exceedFormatter(je,{max:L.max}),je!==Oe){var Je,ve;Le([((Je=f.current)===null||Je===void 0?void 0:Je.selectionStart)||0,((ve=f.current)===null||ve===void 0?void 0:ve.selectionEnd)||0])}}else if(gt.source==="compositionEnd")return;X(Oe),f.current&&(0,q.rJ)(f.current,be,tt,Oe)};(0,F.useEffect)(function(){if(Q){var ge;(ge=f.current)===null||ge===void 0||ge.setSelectionRange.apply(ge,(0,Ne.Z)(Q))}},[Q]);var E=function(be){Me(be,be.target.value,{source:"change"})},w=function(be){nt.current=!1,Me(be,be.currentTarget.value,{source:"compositionEnd"}),pe==null||pe(be)},T=function(be){H&&be.key==="Enter"&&!r.current&&(r.current=!0,H(be)),Y==null||Y(be)},$=function(be){be.key==="Enter"&&(r.current=!1),G==null||G(be)},p=function(be){Ve(!0),W==null||W(be)},ie=function(be){r.current&&(r.current=!1),Ve(!1),We==null||We(be)},Pe=function(be){X(""),C(),f.current&&(0,q.rJ)(f.current,be,tt)},dt=xe&&"".concat(o,"-out-of-range"),Kt=function(){var be=(0,It.Z)(S,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return F.createElement("input",(0,y.Z)({autoComplete:qe},be,{onChange:E,onFocus:p,onBlur:ie,onKeyDown:T,onKeyUp:$,className:A()(o,(0,P.Z)({},"".concat(o,"-disabled"),d),ue==null?void 0:ue.input),style:J==null?void 0:J.input,ref:f,size:h,type:O,onCompositionStart:function(gt){nt.current=!0,B==null||B(gt)},onCompositionEnd:w}))},Bt=function(){var be=Number(Se)>0;if(l||L.show){var je=L.showFormatter?L.showFormatter({value:te,count:Fe,maxLength:Se}):"".concat(Fe).concat(be?" / ".concat(Se):"");return F.createElement(F.Fragment,null,L.show&&F.createElement("span",{className:A()("".concat(o,"-show-count-suffix"),(0,P.Z)({},"".concat(o,"-show-count-has-suffix"),!!l),ue==null?void 0:ue.count),style:(0,K.Z)({},J==null?void 0:J.count)},je),l)}return null};return F.createElement(ae,(0,y.Z)({},U,{prefixCls:o,className:A()(v,dt),handleReset:Pe,value:te,focused:He,triggerFocus:C,suffix:Bt(),disabled:d,classes:ee,classNames:ue,styles:J}),Kt())}),it=vt,k=it},30292:function(bn,et,n){n.d(et,{He:function(){return K},X3:function(){return y},nH:function(){return D},rJ:function(){return $e}});function K(A){return!!(A.addonBefore||A.addonAfter)}function y(A){return!!(A.prefix||A.suffix||A.allowClear)}function P(A,F,q){var m=F.cloneNode(!0),ae=Object.create(A,{target:{value:m},currentTarget:{value:m}});return m.value=q,typeof F.selectionStart=="number"&&typeof F.selectionEnd=="number"&&(m.selectionStart=F.selectionStart,m.selectionEnd=F.selectionEnd),m.setSelectionRange=function(){F.setSelectionRange.apply(F,arguments)},ae}function $e(A,F,q,m){if(q){var ae=F;if(F.type==="click"){ae=P(F,A,""),q(ae);return}if(A.type!=="file"&&m!==void 0){ae=P(F,A,m),q(ae);return}q(ae)}}function D(A,F){if(A){A.focus(F);var q=F||{},m=q.cursor;if(m){var ae=A.value.length;switch(m){case"start":A.setSelectionRange(0,0);break;case"end":A.setSelectionRange(ae,ae);break;default:A.setSelectionRange(0,ae)}}}}},28321:function(bn,et,n){n.d(et,{iz:function(){return Ot},ck:function(){return Oe},BW:function(){return Dn},sN:function(){return Oe},Wd:function(){return ut},ZP:function(){return Ae},Xl:function(){return H}});var K=n(32855),y=n(74430),P=n(27247),$e=n(3300),D=n(11913),A=n(43079),F=n(92310),q=n.n(F),m=n(11780),ae=n(18929),Ne=n(13697),me=n(48736),e=n(59301),x=n(4676),It=e.createContext(null);function Nt(t,i){return t===void 0?null:"".concat(t,"-").concat(i)}function _e(t){var i=e.useContext(It);return Nt(i,t)}var vt=n(80547),it=["children","locked"],k=e.createContext(null);function S(t,i){var c=(0,P.Z)({},t);return Object.keys(i).forEach(function(s){var g=i[s];g!==void 0&&(c[s]=g)}),c}function lt(t){var i=t.children,c=t.locked,s=(0,A.Z)(t,it),g=e.useContext(k),b=(0,vt.Z)(function(){return S(g,s)},[g,s],function(R,_){return!c&&(R[0]!==_[0]||!(0,Ne.Z)(R[1],_[1],!0))});return e.createElement(k.Provider,{value:b},i)}var qe=[],tt=e.createContext(null);function W(){return e.useContext(tt)}var We=e.createContext(qe);function H(t){var i=e.useContext(We);return e.useMemo(function(){return t!==void 0?[].concat((0,$e.Z)(i),[t]):i},[i,t])}var Y=e.createContext(null),G=e.createContext({}),u=G,o=n(29194);function d(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,o.Z)(t)){var c=t.nodeName.toLowerCase(),s=["input","select","textarea","button"].includes(c)||t.isContentEditable||c==="a"&&!!t.getAttribute("href"),g=t.getAttribute("tabindex"),b=Number(g),R=null;return g&&!Number.isNaN(b)?R=b:s&&R===null&&(R=0),s&&t.disabled&&(R=null),R!==null&&(R>=0||i&&R<0)}return!1}function h(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=(0,$e.Z)(t.querySelectorAll("*")).filter(function(s){return d(s,i)});return d(t,i)&&c.unshift(t),c}var v=null;function Z(){v=document.activeElement}function l(){v=null}function I(){if(v)try{v.focus()}catch(t){}}function oe(t,i){if(i.keyCode===9){var c=h(t),s=c[i.shiftKey?0:c.length-1],g=s===document.activeElement||t===document.activeElement;if(g){var b=c[i.shiftKey?c.length-1:0];b.focus(),i.preventDefault()}}}var z=n(10228),O=n(16089),ee=z.Z.LEFT,ue=z.Z.RIGHT,J=z.Z.UP,B=z.Z.DOWN,pe=z.Z.ENTER,U=z.Z.ESC,re=z.Z.HOME,he=z.Z.END,He=[J,B,ee,ue];function Ve(t,i,c,s){var g,b="prev",R="next",_="children",Te="parent";if(t==="inline"&&s===pe)return{inlineTrigger:!0};var ce=(0,y.Z)((0,y.Z)({},J,b),B,R),Ye=(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},ee,c?R:b),ue,c?b:R),B,_),pe,_),ye=(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},J,b),B,R),pe,_),U,Te),ee,c?_:Te),ue,c?Te:_),Ce={inline:ce,horizontal:Ye,vertical:ye,inlineSub:ce,horizontalSub:ye,verticalSub:ye},we=(g=Ce["".concat(t).concat(i?"":"Sub")])===null||g===void 0?void 0:g[s];switch(we){case b:return{offset:-1,sibling:!0};case R:return{offset:1,sibling:!0};case Te:return{offset:-1,sibling:!1};case _:return{offset:1,sibling:!1};default:return null}}function nt(t){for(var i=t;i;){if(i.getAttribute("data-menu-list"))return i;i=i.parentElement}return null}function r(t,i){for(var c=t||document.activeElement;c;){if(i.has(c))return c;c=c.parentElement}return null}function f(t,i){var c=h(t,!0);return c.filter(function(s){return i.has(s)})}function a(t,i,c){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!t)return null;var g=f(t,i),b=g.length,R=g.findIndex(function(_){return c===_});return s<0?R===-1?R=b-1:R-=1:s>0&&(R+=1),R=(R+b)%b,g[R]}var C=function(i,c){var s=new Set,g=new Map,b=new Map;return i.forEach(function(R){var _=document.querySelector("[data-menu-id='".concat(Nt(c,R),"']"));_&&(s.add(_),b.set(_,R),g.set(R,_))}),{elements:s,key2element:g,element2key:b}};function M(t,i,c,s,g,b,R,_,Te,ce){var Ye=e.useRef(),ye=e.useRef();ye.current=i;var Ce=function(){O.Z.cancel(Ye.current)};return e.useEffect(function(){return function(){Ce()}},[]),function(we){var ke=we.which;if([].concat(He,[pe,U,re,he]).includes(ke)){var Ke=b(),le=C(Ke,s),fe=le,Ue=fe.elements,ze=fe.key2element,Ze=fe.element2key,Xe=ze.get(i),Be=r(Xe,Ue),Ge=Ze.get(Be),Rt=Ve(t,R(Ge,!0).length===1,c,ke);if(!Rt&&ke!==re&&ke!==he)return;(He.includes(ke)||[re,he].includes(ke))&&we.preventDefault();var ct=function(pt){if(pt){var rn=pt,rt=pt.querySelector("a");rt!=null&&rt.getAttribute("href")&&(rn=rt);var Gt=Ze.get(pt);_(Gt),Ce(),Ye.current=(0,O.Z)(function(){ye.current===Gt&&rn.focus()})}};if([re,he].includes(ke)||Rt.sibling||!Be){var jt;!Be||t==="inline"?jt=g.current:jt=nt(Be);var bt,wt=f(jt,Ue);ke===re?bt=wt[0]:ke===he?bt=wt[wt.length-1]:bt=a(jt,Ue,Be,Rt.offset),ct(bt)}else if(Rt.inlineTrigger)Te(Ge);else if(Rt.offset>0)Te(Ge,!0),Ce(),Ye.current=(0,O.Z)(function(){le=C(Ke,s);var Ut=Be.getAttribute("aria-controls"),pt=document.getElementById(Ut),rn=a(pt,le.elements);ct(rn)},5);else if(Rt.offset<0){var _t=R(Ge,!0),zt=_t[_t.length-2],Tt=ze.get(zt);Te(zt,!1),ct(Tt)}}ce==null||ce(we)}}function N(t){Promise.resolve().then(t)}var j="__RC_UTIL_PATH_SPLIT__",X=function(i){return i.join(j)},te=function(i){return i.split(j)},ne="rc-menu-more";function Ee(){var t=e.useState({}),i=(0,D.Z)(t,2),c=i[1],s=(0,e.useRef)(new Map),g=(0,e.useRef)(new Map),b=e.useState([]),R=(0,D.Z)(b,2),_=R[0],Te=R[1],ce=(0,e.useRef)(0),Ye=(0,e.useRef)(!1),ye=function(){Ye.current||c({})},Ce=(0,e.useCallback)(function(ze,Ze){var Xe=X(Ze);g.current.set(Xe,ze),s.current.set(ze,Xe),ce.current+=1;var Be=ce.current;N(function(){Be===ce.current&&ye()})},[]),we=(0,e.useCallback)(function(ze,Ze){var Xe=X(Ze);g.current.delete(Xe),s.current.delete(ze)},[]),ke=(0,e.useCallback)(function(ze){Te(ze)},[]),Ke=(0,e.useCallback)(function(ze,Ze){var Xe=s.current.get(ze)||"",Be=te(Xe);return Ze&&_.includes(Be[0])&&Be.unshift(ne),Be},[_]),le=(0,e.useCallback)(function(ze,Ze){return ze.filter(function(Xe){return Xe!==void 0}).some(function(Xe){var Be=Ke(Xe,!0);return Be.includes(Ze)})},[Ke]),fe=function(){var Ze=(0,$e.Z)(s.current.keys());return _.length&&Ze.push(ne),Ze},Ue=(0,e.useCallback)(function(ze){var Ze="".concat(s.current.get(ze)).concat(j),Xe=new Set;return(0,$e.Z)(g.current.keys()).forEach(function(Be){Be.startsWith(Ze)&&Xe.add(g.current.get(Be))}),Xe},[]);return e.useEffect(function(){return function(){Ye.current=!0}},[]),{registerPath:Ce,unregisterPath:we,refreshOverflowKeys:ke,isSubPathKey:le,getKeyPath:Ke,getKeys:fe,getSubPathKeys:Ue}}function Q(t){var i=e.useRef(t);i.current=t;var c=e.useCallback(function(){for(var s,g=arguments.length,b=new Array(g),R=0;R<g;R++)b[R]=arguments[R];return(s=i.current)===null||s===void 0?void 0:s.call.apply(s,[i].concat(b))},[]);return t?c:void 0}var Le=Math.random().toFixed(5).toString().slice(2),L=0;function Se(t){var i=(0,ae.Z)(t,{value:t}),c=(0,D.Z)(i,2),s=c[0],g=c[1];return e.useEffect(function(){L+=1;var b="".concat(Le,"-").concat(L);g("rc-menu-uuid-".concat(b))},[]),s}var Fe=n(33377),xe=n(93912),Me=n(18881),E=n(85461),w=n(2738),T=n(8654);function $(t,i,c,s){var g=e.useContext(k),b=g.activeKey,R=g.onActive,_=g.onInactive,Te={active:b===t};return i||(Te.onMouseEnter=function(ce){c==null||c({key:t,domEvent:ce}),R(t)},Te.onMouseLeave=function(ce){s==null||s({key:t,domEvent:ce}),_(t)}),Te}function p(t){var i=e.useContext(k),c=i.mode,s=i.rtl,g=i.inlineIndent;if(c!=="inline")return null;var b=t;return s?{paddingRight:b*g}:{paddingLeft:b*g}}function ie(t){var i=t.icon,c=t.props,s=t.children,g;return i===null||i===!1?null:(typeof i=="function"?g=e.createElement(i,(0,P.Z)({},c)):typeof i!="boolean"&&(g=i),g||s||null)}var Pe=["item"];function dt(t){var i=t.item,c=(0,A.Z)(t,Pe);return Object.defineProperty(c,"item",{get:function(){return(0,me.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),i}}),c}var Kt=["title","attribute","elementRef"],Bt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ge=["active"],be=function(t){(0,Me.Z)(c,t);var i=(0,E.Z)(c);function c(){return(0,Fe.Z)(this,c),i.apply(this,arguments)}return(0,xe.Z)(c,[{key:"render",value:function(){var g=this.props,b=g.title,R=g.attribute,_=g.elementRef,Te=(0,A.Z)(g,Kt),ce=(0,w.Z)(Te,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,me.ZP)(!R,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(m.Z.Item,(0,K.Z)({},R,{title:typeof b=="string"?b:void 0},ce,{ref:_}))}}]),c}(e.Component),je=e.forwardRef(function(t,i){var c=t.style,s=t.className,g=t.eventKey,b=t.warnKey,R=t.disabled,_=t.itemIcon,Te=t.children,ce=t.role,Ye=t.onMouseEnter,ye=t.onMouseLeave,Ce=t.onClick,we=t.onKeyDown,ke=t.onFocus,Ke=(0,A.Z)(t,Bt),le=_e(g),fe=e.useContext(k),Ue=fe.prefixCls,ze=fe.onItemClick,Ze=fe.disabled,Xe=fe.overflowDisabled,Be=fe.itemIcon,Ge=fe.selectedKeys,Rt=fe.onActive,ct=e.useContext(u),jt=ct._internalRenderMenuItem,bt="".concat(Ue,"-item"),wt=e.useRef(),_t=e.useRef(),zt=Ze||R,Tt=(0,T.x1)(i,_t),Ut=H(g),pt=function(Zt){return{key:g,keyPath:(0,$e.Z)(Ut).reverse(),item:wt.current,domEvent:Zt}},rn=_||Be,rt=$(g,zt,Ye,ye),Gt=rt.active,Sn=(0,A.Z)(rt,ge),xn=Ge.includes(g),sn=p(Ut.length),Rn=function(Zt){if(!zt){var Jt=pt(Zt);Ce==null||Ce(dt(Jt)),ze(Jt)}},$t=function(Zt){if(we==null||we(Zt),Zt.which===z.Z.ENTER){var Jt=pt(Zt);Ce==null||Ce(dt(Jt)),ze(Jt)}},en=function(Zt){Rt(g),ke==null||ke(Zt)},Pn={};t.role==="option"&&(Pn["aria-selected"]=xn);var un=e.createElement(be,(0,K.Z)({ref:wt,elementRef:Tt,role:ce===null?"none":ce||"menuitem",tabIndex:R?null:-1,"data-menu-id":Xe&&le?null:le},(0,w.Z)(Ke,["extra"]),Sn,Pn,{component:"li","aria-disabled":R,style:(0,P.Z)((0,P.Z)({},sn),c),className:q()(bt,(0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(bt,"-active"),Gt),"".concat(bt,"-selected"),xn),"".concat(bt,"-disabled"),zt),s),onClick:Rn,onKeyDown:$t,onFocus:en}),Te,e.createElement(ie,{props:(0,P.Z)((0,P.Z)({},t),{},{isSelected:xn}),icon:rn}));return jt&&(un=jt(un,t,{selected:xn})),un});function gt(t,i){var c=t.eventKey,s=W(),g=H(c);return e.useEffect(function(){if(s)return s.registerPath(c,g),function(){s.unregisterPath(c,g)}},[g]),s?null:e.createElement(je,(0,K.Z)({},t,{ref:i}))}var Oe=e.forwardRef(gt),Je=["className","children"],ve=function(i,c){var s=i.className,g=i.children,b=(0,A.Z)(i,Je),R=e.useContext(k),_=R.prefixCls,Te=R.mode,ce=R.rtl;return e.createElement("ul",(0,K.Z)({className:q()(_,ce&&"".concat(_,"-rtl"),"".concat(_,"-sub"),"".concat(_,"-").concat(Te==="inline"?"inline":"vertical"),s),role:"menu"},b,{"data-menu-list":!0,ref:c}),g)},yt=e.forwardRef(ve);yt.displayName="SubMenuList";var Ct=yt,Et=n(11592);function Re(t,i){return(0,Et.Z)(t).map(function(c,s){if(e.isValidElement(c)){var g,b,R=c.key,_=(g=(b=c.props)===null||b===void 0?void 0:b.eventKey)!==null&&g!==void 0?g:R,Te=_==null;Te&&(_="tmp_key-".concat([].concat((0,$e.Z)(i),[s]).join("-")));var ce={key:_,eventKey:_};return e.cloneElement(c,ce)}return c})}var on=n(65030),st={adjustX:1,adjustY:1},dn={topLeft:{points:["bl","tl"],overflow:st},topRight:{points:["br","tr"],overflow:st},bottomLeft:{points:["tl","bl"],overflow:st},bottomRight:{points:["tr","br"],overflow:st},leftTop:{points:["tr","tl"],overflow:st},leftBottom:{points:["br","bl"],overflow:st},rightTop:{points:["tl","tr"],overflow:st},rightBottom:{points:["bl","br"],overflow:st}},Vt={topLeft:{points:["bl","tl"],overflow:st},topRight:{points:["br","tr"],overflow:st},bottomLeft:{points:["tl","bl"],overflow:st},bottomRight:{points:["tr","br"],overflow:st},rightTop:{points:["tr","tl"],overflow:st},rightBottom:{points:["br","bl"],overflow:st},leftTop:{points:["tl","tr"],overflow:st},leftBottom:{points:["bl","br"],overflow:st}},pn=null;function kt(t,i,c){if(i)return i;if(c)return c[t]||c.other}var Dt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function At(t){var i=t.prefixCls,c=t.visible,s=t.children,g=t.popup,b=t.popupStyle,R=t.popupClassName,_=t.popupOffset,Te=t.disabled,ce=t.mode,Ye=t.onVisibleChange,ye=e.useContext(k),Ce=ye.getPopupContainer,we=ye.rtl,ke=ye.subMenuOpenDelay,Ke=ye.subMenuCloseDelay,le=ye.builtinPlacements,fe=ye.triggerSubMenuAction,Ue=ye.forceSubMenuRender,ze=ye.rootClassName,Ze=ye.motion,Xe=ye.defaultMotions,Be=e.useState(!1),Ge=(0,D.Z)(Be,2),Rt=Ge[0],ct=Ge[1],jt=we?(0,P.Z)((0,P.Z)({},Vt),le):(0,P.Z)((0,P.Z)({},dn),le),bt=Dt[ce],wt=kt(ce,Ze,Xe),_t=e.useRef(wt);ce!=="inline"&&(_t.current=wt);var zt=(0,P.Z)((0,P.Z)({},_t.current),{},{leavedClassName:"".concat(i,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Tt=e.useRef();return e.useEffect(function(){return Tt.current=(0,O.Z)(function(){ct(c)}),function(){O.Z.cancel(Tt.current)}},[c]),e.createElement(on.Z,{prefixCls:i,popupClassName:q()("".concat(i,"-popup"),(0,y.Z)({},"".concat(i,"-rtl"),we),R,ze),stretch:ce==="horizontal"?"minWidth":null,getPopupContainer:Ce,builtinPlacements:jt,popupPlacement:bt,popupVisible:Rt,popup:g,popupStyle:b,popupAlign:_&&{offset:_},action:Te?[]:[fe],mouseEnterDelay:ke,mouseLeaveDelay:Ke,onPopupVisibleChange:Ye,forceRender:Ue,popupMotion:zt,fresh:!0},s)}var tn=n(77900);function Ht(t){var i=t.id,c=t.open,s=t.keyPath,g=t.children,b="inline",R=e.useContext(k),_=R.prefixCls,Te=R.forceSubMenuRender,ce=R.motion,Ye=R.defaultMotions,ye=R.mode,Ce=e.useRef(!1);Ce.current=ye===b;var we=e.useState(!Ce.current),ke=(0,D.Z)(we,2),Ke=ke[0],le=ke[1],fe=Ce.current?c:!1;e.useEffect(function(){Ce.current&&le(!1)},[ye]);var Ue=(0,P.Z)({},kt(b,ce,Ye));s.length>1&&(Ue.motionAppear=!1);var ze=Ue.onVisibleChanged;return Ue.onVisibleChanged=function(Ze){return!Ce.current&&!Ze&&le(!0),ze==null?void 0:ze(Ze)},Ke?null:e.createElement(lt,{mode:b,locked:!Ce.current},e.createElement(tn.default,(0,K.Z)({visible:fe},Ue,{forceRender:Te,removeOnLeave:!1,leavedClassName:"".concat(_,"-hidden")}),function(Ze){var Xe=Ze.className,Be=Ze.style;return e.createElement(Ct,{id:i,className:Xe,style:Be},g)}))}var St=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ft=["active"],De=e.forwardRef(function(t,i){var c=t.style,s=t.className,g=t.title,b=t.eventKey,R=t.warnKey,_=t.disabled,Te=t.internalPopupClose,ce=t.children,Ye=t.itemIcon,ye=t.expandIcon,Ce=t.popupClassName,we=t.popupOffset,ke=t.popupStyle,Ke=t.onClick,le=t.onMouseEnter,fe=t.onMouseLeave,Ue=t.onTitleClick,ze=t.onTitleMouseEnter,Ze=t.onTitleMouseLeave,Xe=(0,A.Z)(t,St),Be=_e(b),Ge=e.useContext(k),Rt=Ge.prefixCls,ct=Ge.mode,jt=Ge.openKeys,bt=Ge.disabled,wt=Ge.overflowDisabled,_t=Ge.activeKey,zt=Ge.selectedKeys,Tt=Ge.itemIcon,Ut=Ge.expandIcon,pt=Ge.onItemClick,rn=Ge.onOpenChange,rt=Ge.onActive,Gt=e.useContext(u),Sn=Gt._internalRenderSubMenuItem,xn=e.useContext(Y),sn=xn.isSubPathKey,Rn=H(),$t="".concat(Rt,"-submenu"),en=bt||_,Pn=e.useRef(),un=e.useRef(),cn=Ye!=null?Ye:Tt,Zt=ye!=null?ye:Ut,Jt=jt.includes(b),vn=!wt&&Jt,In=sn(zt,b),Qt=$(b,en,ze,Ze),an=Qt.active,wn=(0,A.Z)(Qt,Ft),Nn=e.useState(!1),On=(0,D.Z)(Nn,2),Tn=On[0],Kn=On[1],An=function(Xt){en||Kn(Xt)},Hn=function(Xt){An(!0),le==null||le({key:b,domEvent:Xt})},Un=function(Xt){An(!1),fe==null||fe({key:b,domEvent:Xt})},Bn=e.useMemo(function(){return an||(ct!=="inline"?Tn||sn([_t],b):!1)},[ct,an,_t,Tn,b,sn]),fn=p(Rn.length),Gn=function(Xt){en||(Ue==null||Ue({key:b,domEvent:Xt}),ct==="inline"&&rn(b,!Jt))},Jn=Q(function(ft){Ke==null||Ke(dt(ft)),pt(ft)}),$n=function(Xt){ct!=="inline"&&rn(b,Xt)},jn=function(){rt(b)},Wn=Be&&"".concat(Be,"-popup"),Ln=e.useMemo(function(){return e.createElement(ie,{icon:ct!=="horizontal"?Zt:void 0,props:(0,P.Z)((0,P.Z)({},t),{},{isOpen:vn,isSubMenu:!0})},e.createElement("i",{className:"".concat($t,"-arrow")}))},[ct,Zt,t,vn,$t]),Yt=e.createElement("div",(0,K.Z)({role:"menuitem",style:fn,className:"".concat($t,"-title"),tabIndex:en?null:-1,ref:Pn,title:typeof g=="string"?g:null,"data-menu-id":wt&&Be?null:Be,"aria-expanded":vn,"aria-haspopup":!0,"aria-controls":Wn,"aria-disabled":en,onClick:Gn,onFocus:jn},wn),g,Ln),hn=e.useRef(ct);if(ct!=="inline"&&Rn.length>1?hn.current="vertical":hn.current=ct,!wt){var Vn=hn.current;Yt=e.createElement(At,{mode:Vn,prefixCls:$t,visible:!Te&&vn&&ct!=="inline",popupClassName:Ce,popupOffset:we,popupStyle:ke,popup:e.createElement(lt,{mode:Vn==="horizontal"?"vertical":Vn},e.createElement(Ct,{id:Wn,ref:un},ce)),disabled:en,onVisibleChange:$n},Yt)}var Wt=e.createElement(m.Z.Item,(0,K.Z)({ref:i,role:"none"},Xe,{component:"li",style:c,className:q()($t,"".concat($t,"-").concat(ct),s,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat($t,"-open"),vn),"".concat($t,"-active"),Bn),"".concat($t,"-selected"),In),"".concat($t,"-disabled"),en)),onMouseEnter:Hn,onMouseLeave:Un}),Yt,!wt&&e.createElement(Ht,{id:Wn,open:vn,keyPath:Rn},ce));return Sn&&(Wt=Sn(Wt,t,{selected:In,active:Bn,open:vn,disabled:en})),e.createElement(lt,{onItemClick:Jn,mode:ct==="horizontal"?"vertical":ct,itemIcon:cn,expandIcon:Zt},Wt)}),Ie=e.forwardRef(function(t,i){var c=t.eventKey,s=t.children,g=H(c),b=Re(s,g),R=W();e.useEffect(function(){if(R)return R.registerPath(c,g),function(){R.unregisterPath(c,g)}},[g]);var _;return R?_=b:_=e.createElement(De,(0,K.Z)({ref:i},t),b),e.createElement(We.Provider,{value:g},_)}),ut=Ie,qt=n(34666);function Ot(t){var i=t.className,c=t.style,s=e.useContext(k),g=s.prefixCls,b=W();return b?null:e.createElement("li",{role:"separator",className:q()("".concat(g,"-item-divider"),i),style:c})}var Mn=["className","title","eventKey","children"],nn=e.forwardRef(function(t,i){var c=t.className,s=t.title,g=t.eventKey,b=t.children,R=(0,A.Z)(t,Mn),_=e.useContext(k),Te=_.prefixCls,ce="".concat(Te,"-item-group");return e.createElement("li",(0,K.Z)({ref:i,role:"presentation"},R,{onClick:function(ye){return ye.stopPropagation()},className:q()(ce,c)}),e.createElement("div",{role:"presentation",className:"".concat(ce,"-title"),title:typeof s=="string"?s:void 0},s),e.createElement("ul",{role:"group",className:"".concat(ce,"-list")},b))}),mn=e.forwardRef(function(t,i){var c=t.eventKey,s=t.children,g=H(c),b=Re(s,g),R=W();return R?b:e.createElement(nn,(0,K.Z)({ref:i},(0,w.Z)(t,["warnKey"])),b)}),Dn=mn,Qe=["label","children","key","type","extra"];function ln(t,i,c){var s=i.item,g=i.group,b=i.submenu,R=i.divider;return(t||[]).map(function(_,Te){if(_&&(0,qt.Z)(_)==="object"){var ce=_,Ye=ce.label,ye=ce.children,Ce=ce.key,we=ce.type,ke=ce.extra,Ke=(0,A.Z)(ce,Qe),le=Ce!=null?Ce:"tmp-".concat(Te);return ye||we==="group"?we==="group"?e.createElement(g,(0,K.Z)({key:le},Ke,{title:Ye}),ln(ye,i,c)):e.createElement(b,(0,K.Z)({key:le},Ke,{title:Ye}),ln(ye,i,c)):we==="divider"?e.createElement(R,(0,K.Z)({key:le},Ke)):e.createElement(s,(0,K.Z)({key:le},Ke,{extra:ke}),Ye,(!!ke||ke===0)&&e.createElement("span",{className:"".concat(c,"-item-extra")},ke))}return null}).filter(function(_){return _})}function xt(t,i,c,s,g){var b=t,R=(0,P.Z)({divider:Ot,item:Oe,group:Dn,submenu:ut},s);return i&&(b=ln(i,R,g)),Re(b,c)}var Fn=["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"],Lt=[],En=e.forwardRef(function(t,i){var c,s=t,g=s.prefixCls,b=g===void 0?"rc-menu":g,R=s.rootClassName,_=s.style,Te=s.className,ce=s.tabIndex,Ye=ce===void 0?0:ce,ye=s.items,Ce=s.children,we=s.direction,ke=s.id,Ke=s.mode,le=Ke===void 0?"vertical":Ke,fe=s.inlineCollapsed,Ue=s.disabled,ze=s.disabledOverflow,Ze=s.subMenuOpenDelay,Xe=Ze===void 0?.1:Ze,Be=s.subMenuCloseDelay,Ge=Be===void 0?.1:Be,Rt=s.forceSubMenuRender,ct=s.defaultOpenKeys,jt=s.openKeys,bt=s.activeKey,wt=s.defaultActiveFirst,_t=s.selectable,zt=_t===void 0?!0:_t,Tt=s.multiple,Ut=Tt===void 0?!1:Tt,pt=s.defaultSelectedKeys,rn=s.selectedKeys,rt=s.onSelect,Gt=s.onDeselect,Sn=s.inlineIndent,xn=Sn===void 0?24:Sn,sn=s.motion,Rn=s.defaultMotions,$t=s.triggerSubMenuAction,en=$t===void 0?"hover":$t,Pn=s.builtinPlacements,un=s.itemIcon,cn=s.expandIcon,Zt=s.overflowedIndicator,Jt=Zt===void 0?"...":Zt,vn=s.overflowedIndicatorPopupClassName,In=s.getPopupContainer,Qt=s.onClick,an=s.onOpenChange,wn=s.onKeyDown,Nn=s.openAnimation,On=s.openTransitionName,Tn=s._internalRenderMenuItem,Kn=s._internalRenderSubMenuItem,An=s._internalComponents,Hn=(0,A.Z)(s,Fn),Un=e.useMemo(function(){return[xt(Ce,ye,Lt,An,b),xt(Ce,ye,Lt,{},b)]},[Ce,ye,An]),Bn=(0,D.Z)(Un,2),fn=Bn[0],Gn=Bn[1],Jn=e.useState(!1),$n=(0,D.Z)(Jn,2),jn=$n[0],Wn=$n[1],Ln=e.useRef(),Yt=Se(ke),hn=we==="rtl",Vn=(0,ae.Z)(ct,{value:jt,postState:function(ot){return ot||Lt}}),Wt=(0,D.Z)(Vn,2),ft=Wt[0],Xt=Wt[1],gn=function(ot){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yn(){Xt(ot),an==null||an(ot)}ht?(0,x.flushSync)(yn):yn()},zn=e.useState(ft),_n=(0,D.Z)(zn,2),qn=_n[0],tr=_n[1],Qn=e.useRef(!1),nr=e.useMemo(function(){return(le==="inline"||le==="vertical")&&fe?["vertical",fe]:[le,!1]},[le,fe]),V=(0,D.Z)(nr,2),se=V[0],at=V[1],Mt=se==="inline",mt=e.useState(se),Yn=(0,D.Z)(mt,2),Zn=Yn[0],or=Yn[1],er=e.useState(at),fr=(0,D.Z)(er,2),Rr=fr[0],wr=fr[1];e.useEffect(function(){or(se),wr(at),Qn.current&&(Mt?Xt(qn):gn(Lt))},[se,at]);var Zr=e.useState(0),mr=(0,D.Z)(Zr,2),ir=mr[0],Mr=mr[1],ur=ir>=fn.length-1||Zn!=="horizontal"||ze;e.useEffect(function(){Mt&&tr(ft)},[ft]),e.useEffect(function(){return Qn.current=!0,function(){Qn.current=!1}},[]);var Xn=Ee(),hr=Xn.registerPath,gr=Xn.unregisterPath,Pr=Xn.refreshOverflowKeys,yr=Xn.isSubPathKey,Ir=Xn.getKeyPath,Cr=Xn.getKeys,Nr=Xn.getSubPathKeys,Dr=e.useMemo(function(){return{registerPath:hr,unregisterPath:gr}},[hr,gr]),Ar=e.useMemo(function(){return{isSubPathKey:yr}},[yr]);e.useEffect(function(){Pr(ur?Lt:fn.slice(ir+1).map(function(Pt){return Pt.key}))},[ir,ur]);var Lr=(0,ae.Z)(bt||wt&&((c=fn[0])===null||c===void 0?void 0:c.key),{value:bt}),br=(0,D.Z)(Lr,2),rr=br[0],cr=br[1],zr=Q(function(Pt){cr(Pt)}),Fr=Q(function(){cr(void 0)});(0,e.useImperativeHandle)(i,function(){return{list:Ln.current,focus:function(ot){var ht,yn=Cr(),Cn=C(yn,Yt),sr=Cn.elements,vr=Cn.key2element,jr=Cn.element2key,Sr=f(Ln.current,sr),xr=rr!=null?rr:Sr[0]?jr.get(Sr[0]):(ht=fn.find(function(_r){return!_r.props.disabled}))===null||ht===void 0?void 0:ht.key,ar=vr.get(xr);if(xr&&ar){var dr;ar==null||(dr=ar.focus)===null||dr===void 0||dr.call(ar,ot)}}}});var Or=(0,ae.Z)(pt||[],{value:rn,postState:function(ot){return Array.isArray(ot)?ot:ot==null?Lt:[ot]}}),pr=(0,D.Z)(Or,2),lr=pr[0],Tr=pr[1],Kr=function(ot){if(zt){var ht=ot.key,yn=lr.includes(ht),Cn;Ut?yn?Cn=lr.filter(function(vr){return vr!==ht}):Cn=[].concat((0,$e.Z)(lr),[ht]):Cn=[ht],Tr(Cn);var sr=(0,P.Z)((0,P.Z)({},ot),{},{selectedKeys:Cn});yn?Gt==null||Gt(sr):rt==null||rt(sr)}!Ut&&ft.length&&Zn!=="inline"&&gn(Lt)},Br=Q(function(Pt){Qt==null||Qt(dt(Pt)),Kr(Pt)}),Er=Q(function(Pt,ot){var ht=ft.filter(function(Cn){return Cn!==Pt});if(ot)ht.push(Pt);else if(Zn!=="inline"){var yn=Nr(Pt);ht=ht.filter(function(Cn){return!yn.has(Cn)})}(0,Ne.Z)(ft,ht,!0)||gn(ht,!0)}),$r=function(ot,ht){var yn=ht!=null?ht:!ft.includes(ot);Er(ot,yn)},Wr=M(Zn,rr,hn,Yt,Ln,Cr,Ir,cr,$r,wn);e.useEffect(function(){Wn(!0)},[]);var Vr=e.useMemo(function(){return{_internalRenderMenuItem:Tn,_internalRenderSubMenuItem:Kn}},[Tn,Kn]),kr=Zn!=="horizontal"||ze?fn:fn.map(function(Pt,ot){return e.createElement(lt,{key:Pt.key,overflowDisabled:ot>ir},Pt)}),Hr=e.createElement(m.Z,(0,K.Z)({id:ke,ref:Ln,prefixCls:"".concat(b,"-overflow"),component:"ul",itemComponent:Oe,className:q()(b,"".concat(b,"-root"),"".concat(b,"-").concat(Zn),Te,(0,y.Z)((0,y.Z)({},"".concat(b,"-inline-collapsed"),Rr),"".concat(b,"-rtl"),hn),R),dir:we,style:_,role:"menu",tabIndex:Ye,data:kr,renderRawItem:function(ot){return ot},renderRawRest:function(ot){var ht=ot.length,yn=ht?fn.slice(-ht):null;return e.createElement(ut,{eventKey:ne,title:Jt,disabled:ur,internalPopupClose:ht===0,popupClassName:vn},yn)},maxCount:Zn!=="horizontal"||ze?m.Z.INVALIDATE:m.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ot){Mr(ot)},onKeyDown:Wr},Hn));return e.createElement(u.Provider,{value:Vr},e.createElement(It.Provider,{value:Yt},e.createElement(lt,{prefixCls:b,rootClassName:R,mode:Zn,openKeys:ft,rtl:hn,disabled:Ue,motion:jn?sn:null,defaultMotions:jn?Rn:null,activeKey:rr,onActive:zr,onInactive:Fr,selectedKeys:lr,inlineIndent:xn,subMenuOpenDelay:Xe,subMenuCloseDelay:Ge,forceSubMenuRender:Rt,builtinPlacements:Pn,triggerSubMenuAction:en,getPopupContainer:In,itemIcon:un,expandIcon:cn,onItemClick:Br,onOpenChange:Er},e.createElement(Y.Provider,{value:Ar},Hr),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(tt.Provider,{value:Dr},Gn)))))}),kn=En,de=kn;de.Item=Oe,de.SubMenu=ut,de.ItemGroup=Dn,de.Divider=Ot;var Ae=de},11780:function(bn,et,n){n.d(et,{Z:function(){return Z}});var K=n(32855),y=n(27247),P=n(11913),$e=n(43079),D=n(59301),A=n(92310),F=n.n(A),q=n(29301),m=n(34280),ae=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ne=void 0;function me(l,I){var oe=l.prefixCls,z=l.invalidate,O=l.item,ee=l.renderItem,ue=l.responsive,J=l.responsiveDisabled,B=l.registerSize,pe=l.itemKey,U=l.className,re=l.style,he=l.children,He=l.display,Ve=l.order,nt=l.component,r=nt===void 0?"div":nt,f=(0,$e.Z)(l,ae),a=ue&&!He;function C(te){B(pe,te)}D.useEffect(function(){return function(){C(null)}},[]);var M=ee&&O!==Ne?ee(O,{index:Ve}):he,N;z||(N={opacity:a?0:1,height:a?0:Ne,overflowY:a?"hidden":Ne,order:ue?Ve:Ne,pointerEvents:a?"none":Ne,position:a?"absolute":Ne});var j={};a&&(j["aria-hidden"]=!0);var X=D.createElement(r,(0,K.Z)({className:F()(!z&&oe,U),style:(0,y.Z)((0,y.Z)({},N),re)},j,f,{ref:I}),M);return ue&&(X=D.createElement(q.Z,{onResize:function(ne){var Ee=ne.offsetWidth;C(Ee)},disabled:J},X)),X}var e=D.forwardRef(me);e.displayName="Item";var x=e,It=n(6089),Nt=n(4676),_e=n(16089);function vt(l){if(typeof MessageChannel=="undefined")(0,_e.Z)(l);else{var I=new MessageChannel;I.port1.onmessage=function(){return l()},I.port2.postMessage(void 0)}}function it(){var l=D.useRef(null),I=function(z){l.current||(l.current=[],vt(function(){(0,Nt.unstable_batchedUpdates)(function(){l.current.forEach(function(O){O()}),l.current=null})})),l.current.push(z)};return I}function k(l,I){var oe=D.useState(I),z=(0,P.Z)(oe,2),O=z[0],ee=z[1],ue=(0,It.Z)(function(J){l(function(){ee(J)})});return[O,ue]}var S=D.createContext(null),lt=["component"],qe=["className"],tt=["className"],W=function(I,oe){var z=D.useContext(S);if(!z){var O=I.component,ee=O===void 0?"div":O,ue=(0,$e.Z)(I,lt);return D.createElement(ee,(0,K.Z)({},ue,{ref:oe}))}var J=z.className,B=(0,$e.Z)(z,qe),pe=I.className,U=(0,$e.Z)(I,tt);return D.createElement(S.Provider,{value:null},D.createElement(x,(0,K.Z)({ref:oe,className:F()(J,pe)},B,U)))},We=D.forwardRef(W);We.displayName="RawItem";var H=We,Y=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],G="responsive",u="invalidate";function o(l){return"+ ".concat(l.length," ...")}function d(l,I){var oe=l.prefixCls,z=oe===void 0?"rc-overflow":oe,O=l.data,ee=O===void 0?[]:O,ue=l.renderItem,J=l.renderRawItem,B=l.itemKey,pe=l.itemWidth,U=pe===void 0?10:pe,re=l.ssr,he=l.style,He=l.className,Ve=l.maxCount,nt=l.renderRest,r=l.renderRawRest,f=l.suffix,a=l.component,C=a===void 0?"div":a,M=l.itemComponent,N=l.onVisibleChange,j=(0,$e.Z)(l,Y),X=re==="full",te=it(),ne=k(te,null),Ee=(0,P.Z)(ne,2),Q=Ee[0],Le=Ee[1],L=Q||0,Se=k(te,new Map),Fe=(0,P.Z)(Se,2),xe=Fe[0],Me=Fe[1],E=k(te,0),w=(0,P.Z)(E,2),T=w[0],$=w[1],p=k(te,0),ie=(0,P.Z)(p,2),Pe=ie[0],dt=ie[1],Kt=k(te,0),Bt=(0,P.Z)(Kt,2),ge=Bt[0],be=Bt[1],je=(0,D.useState)(null),gt=(0,P.Z)(je,2),Oe=gt[0],Je=gt[1],ve=(0,D.useState)(null),yt=(0,P.Z)(ve,2),Ct=yt[0],Et=yt[1],Re=D.useMemo(function(){return Ct===null&&X?Number.MAX_SAFE_INTEGER:Ct||0},[Ct,Q]),on=(0,D.useState)(!1),st=(0,P.Z)(on,2),dn=st[0],Vt=st[1],pn="".concat(z,"-item"),kt=Math.max(T,Pe),Dt=Ve===G,At=ee.length&&Dt,tn=Ve===u,Ht=At||typeof Ve=="number"&&ee.length>Ve,St=(0,D.useMemo)(function(){var de=ee;return At?Q===null&&X?de=ee:de=ee.slice(0,Math.min(ee.length,L/U)):typeof Ve=="number"&&(de=ee.slice(0,Ve)),de},[ee,U,Q,Ve,At]),Ft=(0,D.useMemo)(function(){return At?ee.slice(Re+1):ee.slice(St.length)},[ee,St,At,Re]),De=(0,D.useCallback)(function(de,Ae){var t;return typeof B=="function"?B(de):(t=B&&(de==null?void 0:de[B]))!==null&&t!==void 0?t:Ae},[B]),Ie=(0,D.useCallback)(ue||function(de){return de},[ue]);function ut(de,Ae,t){Ct===de&&(Ae===void 0||Ae===Oe)||(Et(de),t||(Vt(de<ee.length-1),N==null||N(de)),Ae!==void 0&&Je(Ae))}function qt(de,Ae){Le(Ae.clientWidth)}function Ot(de,Ae){Me(function(t){var i=new Map(t);return Ae===null?i.delete(de):i.set(de,Ae),i})}function Mn(de,Ae){dt(Ae),$(Pe)}function nn(de,Ae){be(Ae)}function mn(de){return xe.get(De(St[de],de))}(0,m.Z)(function(){if(L&&typeof kt=="number"&&St){var de=ge,Ae=St.length,t=Ae-1;if(!Ae){ut(0,null);return}for(var i=0;i<Ae;i+=1){var c=mn(i);if(X&&(c=c||0),c===void 0){ut(i-1,void 0,!0);break}if(de+=c,t===0&&de<=L||i===t-1&&de+mn(t)<=L){ut(t,null);break}else if(de+kt>L){ut(i-1,de-c-ge+Pe);break}}f&&mn(0)+ge>L&&Je(null)}},[L,xe,Pe,ge,De,St]);var Dn=dn&&!!Ft.length,Qe={};Oe!==null&&At&&(Qe={position:"absolute",left:Oe,top:0});var ln={prefixCls:pn,responsive:At,component:M,invalidate:tn},xt=J?function(de,Ae){var t=De(de,Ae);return D.createElement(S.Provider,{key:t,value:(0,y.Z)((0,y.Z)({},ln),{},{order:Ae,item:de,itemKey:t,registerSize:Ot,display:Ae<=Re})},J(de,Ae))}:function(de,Ae){var t=De(de,Ae);return D.createElement(x,(0,K.Z)({},ln,{order:Ae,key:t,item:de,renderItem:Ie,itemKey:t,registerSize:Ot,display:Ae<=Re}))},Fn={order:Dn?Re:Number.MAX_SAFE_INTEGER,className:"".concat(pn,"-rest"),registerSize:Mn,display:Dn},Lt=nt||o,En=r?D.createElement(S.Provider,{value:(0,y.Z)((0,y.Z)({},ln),Fn)},r(Ft)):D.createElement(x,(0,K.Z)({},ln,Fn),typeof Lt=="function"?Lt(Ft):Lt),kn=D.createElement(C,(0,K.Z)({className:F()(!tn&&z,He),style:he,ref:I},j),St.map(xt),Ht?En:null,f&&D.createElement(x,(0,K.Z)({},ln,{responsive:Dt,responsiveDisabled:!At,order:Re,className:"".concat(pn,"-suffix"),registerSize:nn,display:!0,style:Qe}),f));return Dt?D.createElement(q.Z,{onResize:qt,disabled:!At},kn):kn}var h=D.forwardRef(d);h.displayName="Overflow",h.Item=H,h.RESPONSIVE=G,h.INVALIDATE=u;var v=h,Z=v},29301:function(bn,et,n){n.d(et,{Z:function(){return u}});var K=n(32855),y=n(59301),P=n(11592),$e=n(48736),D=n(27247),A=n(34666),F=n(76846),q=n(8654),m=y.createContext(null);function ae(o){var d=o.children,h=o.onBatchResize,v=y.useRef(0),Z=y.useRef([]),l=y.useContext(m),I=y.useCallback(function(oe,z,O){v.current+=1;var ee=v.current;Z.current.push({size:oe,element:z,data:O}),Promise.resolve().then(function(){ee===v.current&&(h==null||h(Z.current),Z.current=[])}),l==null||l(oe,z,O)},[h,l]);return y.createElement(m.Provider,{value:I},d)}var Ne=n(76374),me=new Map;function e(o){o.forEach(function(d){var h,v=d.target;(h=me.get(v))===null||h===void 0||h.forEach(function(Z){return Z(v)})})}var x=new Ne.Z(e),It=null,Nt=null;function _e(o,d){me.has(o)||(me.set(o,new Set),x.observe(o)),me.get(o).add(d)}function vt(o,d){me.has(o)&&(me.get(o).delete(d),me.get(o).size||(x.unobserve(o),me.delete(o)))}var it=n(33377),k=n(93912),S=n(18881),lt=n(85461),qe=function(o){(0,S.Z)(h,o);var d=(0,lt.Z)(h);function h(){return(0,it.Z)(this,h),d.apply(this,arguments)}return(0,k.Z)(h,[{key:"render",value:function(){return this.props.children}}]),h}(y.Component);function tt(o,d){var h=o.children,v=o.disabled,Z=y.useRef(null),l=y.useRef(null),I=y.useContext(m),oe=typeof h=="function",z=oe?h(Z):h,O=y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ee=!oe&&y.isValidElement(z)&&(0,q.Yr)(z),ue=ee?(0,q.C4)(z):null,J=(0,q.x1)(ue,Z),B=function(){var he;return(0,F.ZP)(Z.current)||(Z.current&&(0,A.Z)(Z.current)==="object"?(0,F.ZP)((he=Z.current)===null||he===void 0?void 0:he.nativeElement):null)||(0,F.ZP)(l.current)};y.useImperativeHandle(d,function(){return B()});var pe=y.useRef(o);pe.current=o;var U=y.useCallback(function(re){var he=pe.current,He=he.onResize,Ve=he.data,nt=re.getBoundingClientRect(),r=nt.width,f=nt.height,a=re.offsetWidth,C=re.offsetHeight,M=Math.floor(r),N=Math.floor(f);if(O.current.width!==M||O.current.height!==N||O.current.offsetWidth!==a||O.current.offsetHeight!==C){var j={width:M,height:N,offsetWidth:a,offsetHeight:C};O.current=j;var X=a===Math.round(r)?r:a,te=C===Math.round(f)?f:C,ne=(0,D.Z)((0,D.Z)({},j),{},{offsetWidth:X,offsetHeight:te});I==null||I(ne,re,Ve),He&&Promise.resolve().then(function(){He(ne,re)})}},[]);return y.useEffect(function(){var re=B();return re&&!v&&_e(re,U),function(){return vt(re,U)}},[Z.current,v]),y.createElement(qe,{ref:l},ee?y.cloneElement(z,{ref:J}):z)}var W=y.forwardRef(tt),We=W,H="rc-observer-key";function Y(o,d){var h=o.children,v=typeof h=="function"?[h]:(0,P.Z)(h);return v.map(function(Z,l){var I=(Z==null?void 0:Z.key)||"".concat(H,"-").concat(l);return y.createElement(We,(0,K.Z)({},o,{key:I,ref:l===0?d:void 0}),Z)})}var G=y.forwardRef(Y);G.Collection=ae;var u=G},22711:function(bn,et,n){n.r(et),n.d(et,{ResizableTextArea:function(){return G},default:function(){return h}});var K=n(32855),y=n(74430),P=n(27247),$e=n(3300),D=n(11913),A=n(43079),F=n(92310),q=n.n(F),m=n(36901),ae=n(66003),Ne=n(30292),me=n(18929),e=n(59301),x=n(34666),It=n(29301),Nt=n(34280),_e=n(16089),vt=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,it=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],k={},S;function lt(v){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=v.getAttribute("id")||v.getAttribute("data-reactid")||v.getAttribute("name");if(Z&&k[l])return k[l];var I=window.getComputedStyle(v),oe=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),z=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),O=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),ee=it.map(function(J){return"".concat(J,":").concat(I.getPropertyValue(J))}).join(";"),ue={sizingStyle:ee,paddingSize:z,borderSize:O,boxSizing:oe};return Z&&l&&(k[l]=ue),ue}function qe(v){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;S||(S=document.createElement("textarea"),S.setAttribute("tab-index","-1"),S.setAttribute("aria-hidden","true"),S.setAttribute("name","hiddenTextarea"),document.body.appendChild(S)),v.getAttribute("wrap")?S.setAttribute("wrap",v.getAttribute("wrap")):S.removeAttribute("wrap");var oe=lt(v,Z),z=oe.paddingSize,O=oe.borderSize,ee=oe.boxSizing,ue=oe.sizingStyle;S.setAttribute("style","".concat(ue,";").concat(vt)),S.value=v.value||v.placeholder||"";var J=void 0,B=void 0,pe,U=S.scrollHeight;if(ee==="border-box"?U+=O:ee==="content-box"&&(U-=z),l!==null||I!==null){S.value=" ";var re=S.scrollHeight-z;l!==null&&(J=re*l,ee==="border-box"&&(J=J+z+O),U=Math.max(J,U)),I!==null&&(B=re*I,ee==="border-box"&&(B=B+z+O),pe=U>B?"":"hidden",U=Math.min(B,U))}var he={height:U,overflowY:pe,resize:"none"};return J&&(he.minHeight=J),B&&(he.maxHeight=B),he}var tt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],W=0,We=1,H=2,Y=e.forwardRef(function(v,Z){var l=v,I=l.prefixCls,oe=l.defaultValue,z=l.value,O=l.autoSize,ee=l.onResize,ue=l.className,J=l.style,B=l.disabled,pe=l.onChange,U=l.onInternalAutoSize,re=(0,A.Z)(l,tt),he=(0,me.Z)(oe,{value:z,postState:function(ie){return ie!=null?ie:""}}),He=(0,D.Z)(he,2),Ve=He[0],nt=He[1],r=function(ie){nt(ie.target.value),pe==null||pe(ie)},f=e.useRef();e.useImperativeHandle(Z,function(){return{textArea:f.current}});var a=e.useMemo(function(){return O&&(0,x.Z)(O)==="object"?[O.minRows,O.maxRows]:[]},[O]),C=(0,D.Z)(a,2),M=C[0],N=C[1],j=!!O,X=function(){try{if(document.activeElement===f.current){var ie=f.current,Pe=ie.selectionStart,dt=ie.selectionEnd,Kt=ie.scrollTop;f.current.setSelectionRange(Pe,dt),f.current.scrollTop=Kt}}catch(Bt){}},te=e.useState(H),ne=(0,D.Z)(te,2),Ee=ne[0],Q=ne[1],Le=e.useState(),L=(0,D.Z)(Le,2),Se=L[0],Fe=L[1],xe=function(){Q(W)};(0,Nt.Z)(function(){j&&xe()},[z,M,N,j]),(0,Nt.Z)(function(){if(Ee===W)Q(We);else if(Ee===We){var p=qe(f.current,!1,M,N);Q(H),Fe(p)}else X()},[Ee]);var Me=e.useRef(),E=function(){_e.Z.cancel(Me.current)},w=function(ie){Ee===H&&(ee==null||ee(ie),O&&(E(),Me.current=(0,_e.Z)(function(){xe()})))};e.useEffect(function(){return E},[]);var T=j?Se:null,$=(0,P.Z)((0,P.Z)({},J),T);return(Ee===W||Ee===We)&&($.overflowY="hidden",$.overflowX="hidden"),e.createElement(It.Z,{onResize:w,disabled:!(O||ee)},e.createElement("textarea",(0,K.Z)({},re,{ref:f,style:$,className:q()(I,ue,(0,y.Z)({},"".concat(I,"-disabled"),B)),disabled:B,value:Ve,onChange:r})))}),G=Y,u=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],o=e.forwardRef(function(v,Z){var l,I=v.defaultValue,oe=v.value,z=v.onFocus,O=v.onBlur,ee=v.onChange,ue=v.allowClear,J=v.maxLength,B=v.onCompositionStart,pe=v.onCompositionEnd,U=v.suffix,re=v.prefixCls,he=re===void 0?"rc-textarea":re,He=v.showCount,Ve=v.count,nt=v.className,r=v.style,f=v.disabled,a=v.hidden,C=v.classNames,M=v.styles,N=v.onResize,j=v.onClear,X=v.onPressEnter,te=v.readOnly,ne=v.autoSize,Ee=v.onKeyDown,Q=(0,A.Z)(v,u),Le=(0,me.Z)(I,{value:oe,defaultValue:I}),L=(0,D.Z)(Le,2),Se=L[0],Fe=L[1],xe=Se==null?"":String(Se),Me=e.useState(!1),E=(0,D.Z)(Me,2),w=E[0],T=E[1],$=e.useRef(!1),p=e.useState(null),ie=(0,D.Z)(p,2),Pe=ie[0],dt=ie[1],Kt=(0,e.useRef)(null),Bt=(0,e.useRef)(null),ge=function(){var Ie;return(Ie=Bt.current)===null||Ie===void 0?void 0:Ie.textArea},be=function(){ge().focus()};(0,e.useImperativeHandle)(Z,function(){var De;return{resizableTextArea:Bt.current,focus:be,blur:function(){ge().blur()},nativeElement:((De=Kt.current)===null||De===void 0?void 0:De.nativeElement)||ge()}}),(0,e.useEffect)(function(){T(function(De){return!f&&De})},[f]);var je=e.useState(null),gt=(0,D.Z)(je,2),Oe=gt[0],Je=gt[1];e.useEffect(function(){if(Oe){var De;(De=ge()).setSelectionRange.apply(De,(0,$e.Z)(Oe))}},[Oe]);var ve=(0,ae.Z)(Ve,He),yt=(l=ve.max)!==null&&l!==void 0?l:J,Ct=Number(yt)>0,Et=ve.strategy(xe),Re=!!yt&&Et>yt,on=function(Ie,ut){var qt=ut;!$.current&&ve.exceedFormatter&&ve.max&&ve.strategy(ut)>ve.max&&(qt=ve.exceedFormatter(ut,{max:ve.max}),ut!==qt&&Je([ge().selectionStart||0,ge().selectionEnd||0])),Fe(qt),(0,Ne.rJ)(Ie.currentTarget,Ie,ee,qt)},st=function(Ie){$.current=!0,B==null||B(Ie)},dn=function(Ie){$.current=!1,on(Ie,Ie.currentTarget.value),pe==null||pe(Ie)},Vt=function(Ie){on(Ie,Ie.target.value)},pn=function(Ie){Ie.key==="Enter"&&X&&X(Ie),Ee==null||Ee(Ie)},kt=function(Ie){T(!0),z==null||z(Ie)},Dt=function(Ie){T(!1),O==null||O(Ie)},At=function(Ie){Fe(""),be(),(0,Ne.rJ)(ge(),Ie,ee)},tn=U,Ht;ve.show&&(ve.showFormatter?Ht=ve.showFormatter({value:xe,count:Et,maxLength:yt}):Ht="".concat(Et).concat(Ct?" / ".concat(yt):""),tn=e.createElement(e.Fragment,null,tn,e.createElement("span",{className:q()("".concat(he,"-data-count"),C==null?void 0:C.count),style:M==null?void 0:M.count},Ht)));var St=function(Ie){var ut;N==null||N(Ie),(ut=ge())!==null&&ut!==void 0&&ut.style.height&&dt(!0)},Ft=!ne&&!He&&!ue;return e.createElement(m.BaseInput,{ref:Kt,value:xe,allowClear:ue,handleReset:At,suffix:tn,prefixCls:he,classNames:(0,P.Z)((0,P.Z)({},C),{},{affixWrapper:q()(C==null?void 0:C.affixWrapper,(0,y.Z)((0,y.Z)({},"".concat(he,"-show-count"),He),"".concat(he,"-textarea-allow-clear"),ue))}),disabled:f,focused:w,className:q()(nt,Re&&"".concat(he,"-out-of-range")),style:(0,P.Z)((0,P.Z)({},r),Pe&&!Ft?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ht=="string"?Ht:void 0}},hidden:a,readOnly:te,onClear:j},e.createElement(G,(0,K.Z)({},Q,{autoSize:ne,maxLength:J,onKeyDown:pn,onChange:Vt,onFocus:kt,onBlur:Dt,onCompositionStart:st,onCompositionEnd:dn,className:q()(C==null?void 0:C.textarea),style:(0,P.Z)((0,P.Z)({},M==null?void 0:M.textarea),{},{resize:r==null?void 0:r.resize}),disabled:f,prefixCls:he,onResize:St,ref:Bt,readOnly:te})))}),d=o,h=d},29125:function(bn,et,n){n.d(et,{G:function(){return $e},Z:function(){return vt}});var K=n(92310),y=n.n(K),P=n(59301);function $e(it){var k=it.children,S=it.prefixCls,lt=it.id,qe=it.overlayInnerStyle,tt=it.bodyClassName,W=it.className,We=it.style;return P.createElement("div",{className:y()("".concat(S,"-content"),W),style:We},P.createElement("div",{className:y()("".concat(S,"-inner"),tt),id:lt,role:"tooltip",style:qe},typeof k=="function"?k():k))}var D=n(32855),A=n(27247),F=n(43079),q=n(65030),m={shiftX:64,adjustY:1},ae={adjustX:1,shiftY:!0},Ne=[0,0],me={left:{points:["cr","cl"],overflow:ae,offset:[-4,0],targetOffset:Ne},right:{points:["cl","cr"],overflow:ae,offset:[4,0],targetOffset:Ne},top:{points:["bc","tc"],overflow:m,offset:[0,-4],targetOffset:Ne},bottom:{points:["tc","bc"],overflow:m,offset:[0,4],targetOffset:Ne},topLeft:{points:["bl","tl"],overflow:m,offset:[0,-4],targetOffset:Ne},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0],targetOffset:Ne},topRight:{points:["br","tr"],overflow:m,offset:[0,-4],targetOffset:Ne},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0],targetOffset:Ne},bottomRight:{points:["tr","br"],overflow:m,offset:[0,4],targetOffset:Ne},rightBottom:{points:["bl","br"],overflow:ae,offset:[4,0],targetOffset:Ne},bottomLeft:{points:["tl","bl"],overflow:m,offset:[0,4],targetOffset:Ne},leftBottom:{points:["br","bl"],overflow:ae,offset:[-4,0],targetOffset:Ne}},e=null,x=n(80402),It=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Nt=function(k,S){var lt=k.overlayClassName,qe=k.trigger,tt=qe===void 0?["hover"]:qe,W=k.mouseEnterDelay,We=W===void 0?0:W,H=k.mouseLeaveDelay,Y=H===void 0?.1:H,G=k.overlayStyle,u=k.prefixCls,o=u===void 0?"rc-tooltip":u,d=k.children,h=k.onVisibleChange,v=k.afterVisibleChange,Z=k.transitionName,l=k.animation,I=k.motion,oe=k.placement,z=oe===void 0?"right":oe,O=k.align,ee=O===void 0?{}:O,ue=k.destroyTooltipOnHide,J=ue===void 0?!1:ue,B=k.defaultVisible,pe=k.getTooltipContainer,U=k.overlayInnerStyle,re=k.arrowContent,he=k.overlay,He=k.id,Ve=k.showArrow,nt=Ve===void 0?!0:Ve,r=k.classNames,f=k.styles,a=(0,F.Z)(k,It),C=(0,x.Z)(He),M=(0,P.useRef)(null);(0,P.useImperativeHandle)(S,function(){return M.current});var N=(0,A.Z)({},a);"visible"in k&&(N.popupVisible=k.visible);var j=function(){return P.createElement($e,{key:"content",prefixCls:o,id:C,bodyClassName:r==null?void 0:r.body,overlayInnerStyle:(0,A.Z)((0,A.Z)({},U),f==null?void 0:f.body)},he)},X=function(){var ne=P.Children.only(d),Ee=(ne==null?void 0:ne.props)||{},Q=(0,A.Z)((0,A.Z)({},Ee),{},{"aria-describedby":he?C:null});return P.cloneElement(d,Q)};return P.createElement(q.Z,(0,D.Z)({popupClassName:y()(lt,r==null?void 0:r.root),prefixCls:o,popup:j,action:tt,builtinPlacements:me,popupPlacement:z,ref:M,popupAlign:ee,getPopupContainer:pe,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:Z,popupAnimation:l,popupMotion:I,defaultPopupVisible:B,autoDestroy:J,mouseLeaveDelay:Y,popupStyle:(0,A.Z)((0,A.Z)({},G),f==null?void 0:f.root),mouseEnterDelay:We,arrow:nt},N),X())},_e=(0,P.forwardRef)(Nt),vt=_e},49658:function(bn,et){et.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var n=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(n)||/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(n==null?void 0:n.substr(0,4))}},76374:function(bn,et,n){var K=function(){if(typeof Map!="undefined")return Map;function u(o,d){var h=-1;return o.some(function(v,Z){return v[0]===d?(h=Z,!0):!1}),h}return function(){function o(){this.__entries__=[]}return Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(d){var h=u(this.__entries__,d),v=this.__entries__[h];return v&&v[1]},o.prototype.set=function(d,h){var v=u(this.__entries__,d);~v?this.__entries__[v][1]=h:this.__entries__.push([d,h])},o.prototype.delete=function(d){var h=this.__entries__,v=u(h,d);~v&&h.splice(v,1)},o.prototype.has=function(d){return!!~u(this.__entries__,d)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(d,h){h===void 0&&(h=null);for(var v=0,Z=this.__entries__;v<Z.length;v++){var l=Z[v];d.call(h,l[1],l[0])}},o}()}(),y=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,P=function(){return typeof n.g!="undefined"&&n.g.Math===Math?n.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),$e=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(P):function(u){return setTimeout(function(){return u(Date.now())},1e3/60)}}(),D=2;function A(u,o){var d=!1,h=!1,v=0;function Z(){d&&(d=!1,u()),h&&I()}function l(){$e(Z)}function I(){var oe=Date.now();if(d){if(oe-v<D)return;h=!0}else d=!0,h=!1,setTimeout(l,o);v=oe}return I}var F=20,q=["top","right","bottom","left","width","height","size","weight"],m=typeof MutationObserver!="undefined",ae=function(){function u(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=A(this.refresh.bind(this),F)}return u.prototype.addObserver=function(o){~this.observers_.indexOf(o)||this.observers_.push(o),this.connected_||this.connect_()},u.prototype.removeObserver=function(o){var d=this.observers_,h=d.indexOf(o);~h&&d.splice(h,1),!d.length&&this.connected_&&this.disconnect_()},u.prototype.refresh=function(){var o=this.updateObservers_();o&&this.refresh()},u.prototype.updateObservers_=function(){var o=this.observers_.filter(function(d){return d.gatherActive(),d.hasActive()});return o.forEach(function(d){return d.broadcastActive()}),o.length>0},u.prototype.connect_=function(){!y||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(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)},u.prototype.disconnect_=function(){!y||!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)},u.prototype.onTransitionEnd_=function(o){var d=o.propertyName,h=d===void 0?"":d,v=q.some(function(Z){return!!~h.indexOf(Z)});v&&this.refresh()},u.getInstance=function(){return this.instance_||(this.instance_=new u),this.instance_},u.instance_=null,u}(),Ne=function(u,o){for(var d=0,h=Object.keys(o);d<h.length;d++){var v=h[d];Object.defineProperty(u,v,{value:o[v],enumerable:!1,writable:!1,configurable:!0})}return u},me=function(u){var o=u&&u.ownerDocument&&u.ownerDocument.defaultView;return o||P},e=qe(0,0,0,0);function x(u){return parseFloat(u)||0}function It(u){for(var o=[],d=1;d<arguments.length;d++)o[d-1]=arguments[d];return o.reduce(function(h,v){var Z=u["border-"+v+"-width"];return h+x(Z)},0)}function Nt(u){for(var o=["top","right","bottom","left"],d={},h=0,v=o;h<v.length;h++){var Z=v[h],l=u["padding-"+Z];d[Z]=x(l)}return d}function _e(u){var o=u.getBBox();return qe(0,0,o.width,o.height)}function vt(u){var o=u.clientWidth,d=u.clientHeight;if(!o&&!d)return e;var h=me(u).getComputedStyle(u),v=Nt(h),Z=v.left+v.right,l=v.top+v.bottom,I=x(h.width),oe=x(h.height);if(h.boxSizing==="border-box"&&(Math.round(I+Z)!==o&&(I-=It(h,"left","right")+Z),Math.round(oe+l)!==d&&(oe-=It(h,"top","bottom")+l)),!k(u)){var z=Math.round(I+Z)-o,O=Math.round(oe+l)-d;Math.abs(z)!==1&&(I-=z),Math.abs(O)!==1&&(oe-=O)}return qe(v.left,v.top,I,oe)}var it=function(){return typeof SVGGraphicsElement!="undefined"?function(u){return u instanceof me(u).SVGGraphicsElement}:function(u){return u instanceof me(u).SVGElement&&typeof u.getBBox=="function"}}();function k(u){return u===me(u).document.documentElement}function S(u){return y?it(u)?_e(u):vt(u):e}function lt(u){var o=u.x,d=u.y,h=u.width,v=u.height,Z=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,l=Object.create(Z.prototype);return Ne(l,{x:o,y:d,width:h,height:v,top:d,right:o+h,bottom:v+d,left:o}),l}function qe(u,o,d,h){return{x:u,y:o,width:d,height:h}}var tt=function(){function u(o){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=qe(0,0,0,0),this.target=o}return u.prototype.isActive=function(){var o=S(this.target);return this.contentRect_=o,o.width!==this.broadcastWidth||o.height!==this.broadcastHeight},u.prototype.broadcastRect=function(){var o=this.contentRect_;return this.broadcastWidth=o.width,this.broadcastHeight=o.height,o},u}(),W=function(){function u(o,d){var h=lt(d);Ne(this,{target:o,contentRect:h})}return u}(),We=function(){function u(o,d,h){if(this.activeObservations_=[],this.observations_=new K,typeof o!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=o,this.controller_=d,this.callbackCtx_=h}return u.prototype.observe=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(o instanceof me(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var d=this.observations_;d.has(o)||(d.set(o,new tt(o)),this.controller_.addObserver(this),this.controller_.refresh())}},u.prototype.unobserve=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(o instanceof me(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var d=this.observations_;d.has(o)&&(d.delete(o),d.size||this.controller_.removeObserver(this))}},u.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},u.prototype.gatherActive=function(){var o=this;this.clearActive(),this.observations_.forEach(function(d){d.isActive()&&o.activeObservations_.push(d)})},u.prototype.broadcastActive=function(){if(this.hasActive()){var o=this.callbackCtx_,d=this.activeObservations_.map(function(h){return new W(h.target,h.broadcastRect())});this.callback_.call(o,d,o),this.clearActive()}},u.prototype.clearActive=function(){this.activeObservations_.splice(0)},u.prototype.hasActive=function(){return this.activeObservations_.length>0},u}(),H=typeof WeakMap!="undefined"?new WeakMap:new K,Y=function(){function u(o){if(!(this instanceof u))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var d=ae.getInstance(),h=new We(o,d,this);H.set(this,h)}return u}();["observe","unobserve","disconnect"].forEach(function(u){Y.prototype[u]=function(){var o;return(o=H.get(this))[u].apply(o,arguments)}});var G=function(){return typeof P.ResizeObserver!="undefined"?P.ResizeObserver:Y}();et.Z=G}}]);
|