(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"9ama":function(Rt,Ye,j){},ZTPi:function(Rt,Ye,j){"use strict";var x=j("rePB"),V=j("wx14"),Ae=j("4i/N"),st=j("GZ0F"),ut=j("xvlK"),et=j("TSYQ"),Y=j.n(et),w=j("VTBJ"),K=j("ODXe"),pe=j("U8pU"),U=j("Ff2n"),t=j("q1tI"),Ht=j("5Z9U"),ze=j("6cGi"),Nt=j("8XRh"),Re=Object(t.createContext)(null),Gt=t.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,a=e.style,o=e.id,l=e.active,c=e.tabKey,s=e.children;return t.createElement("div",{id:o&&"".concat(o,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(c),"aria-hidden":!l,style:a,className:Y()(r,l&&"".concat(r,"-active"),i),ref:n},s)}),Je=Gt,dt=["key","forceRender","style","className"];function Tt(e){var n=e.id,r=e.activeKey,i=e.animated,a=e.tabPosition,o=e.destroyInactiveTabPane,l=t.useContext(Re),c=l.prefixCls,s=l.tabs,u=i.tabPane,v="".concat(c,"-tabpane");return t.createElement("div",{className:Y()("".concat(c,"-content-holder"))},t.createElement("div",{className:Y()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),Object(x.a)({},"".concat(c,"-content-animated"),u))},s.map(function(d){var f=d.key,p=d.forceRender,b=d.style,h=d.className,I=Object(U.a)(d,dt),N=f===r;return t.createElement(Nt.b,Object(V.a)({key:f,visible:N,forceRender:p,removeOnLeave:!!o,leavedClassName:"".concat(v,"-hidden")},i.tabPaneMotion),function(E,O){var y=E.style,M=E.className;return t.createElement(Je,Object(V.a)({},I,{prefixCls:v,id:n,tabKey:f,animated:u,active:N,style:Object(w.a)(Object(w.a)({},b),y),className:Y()(h,M),ref:O}))})})))}var Ue=j("KQm4"),dn=j("t23M"),ta=j("mBDr"),Fe=j("wgJM"),vn=j("c+Xe"),fn={width:0,height:0,left:0,top:0};function na(e,n,r){return Object(t.useMemo)(function(){for(var i,a=new Map,o=n.get((i=e[0])===null||i===void 0?void 0:i.key)||fn,l=o.left+o.width,c=0;cL?(T=A,g.current="x"):(T=C,g.current="y"),n(-T,-T)&&m.preventDefault()}var D=Object(t.useRef)(null);D.current={onTouchStart:O,onTouchMove:y,onTouchEnd:M,onWheel:P},t.useEffect(function(){function m(k){D.current.onTouchStart(k)}function A(k){D.current.onTouchMove(k)}function C(k){D.current.onTouchEnd(k)}function T(k){D.current.onWheel(k)}return document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",C,{passive:!1}),e.current.addEventListener("touchstart",m,{passive:!1}),e.current.addEventListener("wheel",T),function(){document.removeEventListener("touchmove",A),document.removeEventListener("touchend",C)}},[])}var ia=j("TNol");function hn(e){var n=Object(t.useState)(0),r=Object(K.a)(n,2),i=r[0],a=r[1],o=Object(t.useRef)(0),l=Object(t.useRef)();return l.current=e,Object(ia.b)(function(){var c;(c=l.current)===null||c===void 0||c.call(l)},[i]),function(){o.current===i&&(o.current+=1,a(o.current))}}function oa(e){var n=Object(t.useRef)([]),r=Object(t.useState)({}),i=Object(K.a)(r,2),a=i[1],o=Object(t.useRef)(typeof e=="function"?e():e),l=hn(function(){var s=o.current;n.current.forEach(function(u){s=u(s)}),n.current=[],o.current=s,a({})});function c(s){n.current.push(s),l()}return[o.current,c]}var gn={width:0,height:0,left:0,top:0,right:0};function la(e,n,r,i,a,o,l){var c=l.tabs,s=l.tabPosition,u=l.rtl,v,d,f;return["top","bottom"].includes(s)?(v="width",d=u?"right":"left",f=Math.abs(r)):(v="height",d="top",f=-r),Object(t.useMemo)(function(){if(!c.length)return[0,0];for(var p=c.length,b=p,h=0;hf+n){b=h-1;break}}for(var N=0,E=p-1;E>=0;E-=1){var O=e.get(c[E].key)||gn;if(O[d]3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=An(e,n),o=a.length,l=a.findIndex(function(c){return r===c});return i<0?l===-1?l=o-1:l-=1:i>0&&(l+=1),l=(l+o)%o,a[l]}function Ra(e,n,r,i,a,o,l,c,s,u){var v=t.useRef(),d=t.useRef();d.current=n;var f=function(){Fe.a.cancel(v.current)};return t.useEffect(function(){return function(){f()}},[]),function(p){var b=p.which;if([].concat(Kn,[kt,wn,mt,pt]).includes(b)){var h,I,N,E=function(){h=new Set,I=new Map,N=new Map;var F=o();return F.forEach(function(Z){var G=document.querySelector("[data-menu-id='".concat(Xt(i,Z),"']"));G&&(h.add(G),N.set(G,Z),I.set(Z,G))}),h};E();var O=I.get(n),y=Ma(O,h),M=N.get(y),g=Ia(e,l(M,!0).length===1,r,b);if(!g&&b!==mt&&b!==pt)return;(Kn.includes(b)||[mt,pt].includes(b))&&p.preventDefault();var P=function(F){if(F){var Z=F,G=F.querySelector("a");G!=null&&G.getAttribute("href")&&(Z=G);var J=N.get(F);c(J),f(),v.current=Object(Fe.a)(function(){d.current===J&&Z.focus()})}};if([mt,pt].includes(b)||g.sibling||!y){var D;!y||e==="inline"?D=a.current:D=Pa(y);var m,A=An(D,h);b===mt?m=A[0]:b===pt?m=A[A.length-1]:m=kn(D,h,y,g.offset),P(m)}else if(g.inlineTrigger)s(M);else if(g.offset>0)s(M,!0),f(),v.current=Object(Fe.a)(function(){E();var L=y.getAttribute("aria-controls"),F=document.getElementById(L),Z=kn(F,h);P(Z)},5);else if(g.offset<0){var C=l(M,!0),T=C[C.length-2],k=I.get(T);s(T,!1),P(k)}}u==null||u(p)}}function Na(e){Promise.resolve().then(e)}var _t="__RC_UTIL_PATH_SPLIT__",Ln=function(n){return n.join(_t)},Ta=function(n){return n.split(_t)},qt="rc-menu-more";function wa(){var e=t.useState({}),n=Object(K.a)(e,2),r=n[1],i=Object(t.useRef)(new Map),a=Object(t.useRef)(new Map),o=t.useState([]),l=Object(K.a)(o,2),c=l[0],s=l[1],u=Object(t.useRef)(0),v=Object(t.useRef)(!1),d=function(){v.current||r({})},f=Object(t.useCallback)(function(O,y){var M=Ln(y);a.current.set(M,O),i.current.set(O,M),u.current+=1;var g=u.current;Na(function(){g===u.current&&d()})},[]),p=Object(t.useCallback)(function(O,y){var M=Ln(y);a.current.delete(M),i.current.delete(O)},[]),b=Object(t.useCallback)(function(O){s(O)},[]),h=Object(t.useCallback)(function(O,y){var M=i.current.get(O)||"",g=Ta(M);return y&&c.includes(g[0])&&g.unshift(qt),g},[c]),I=Object(t.useCallback)(function(O,y){return O.some(function(M){var g=h(M,!0);return g.includes(y)})},[h]),N=function(){var y=Object(Ue.a)(i.current.keys());return c.length&&y.push(qt),y},E=Object(t.useCallback)(function(O){var y="".concat(i.current.get(O)).concat(_t),M=new Set;return Object(Ue.a)(a.current.keys()).forEach(function(g){g.startsWith(y)&&M.add(a.current.get(g))}),M},[]);return t.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:b,isSubPathKey:I,getKeyPath:h,getKeys:N,getSubPathKeys:E}}function at(e){var n=t.useRef(e);n.current=e;var r=t.useCallback(function(){for(var i,a=arguments.length,o=new Array(a),l=0;l1&&(E.motionAppear=!1);var O=E.onVisibleChanged;return E.onVisibleChanged=function(y){return!f.current&&!y&&I(!0),O==null?void 0:O(y)},h?null:t.createElement(ft,{mode:o,locked:!f.current},t.createElement(Nt.b,Object(V.a)({visible:N},E,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(y){var M=y.className,g=y.style;return t.createElement(Fn,{id:n,className:M,style:g},a)}))}var er=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tr=["active"],nr=function(n){var r,i=n.style,a=n.className,o=n.title,l=n.eventKey,c=n.warnKey,s=n.disabled,u=n.internalPopupClose,v=n.children,d=n.itemIcon,f=n.expandIcon,p=n.popupClassName,b=n.popupOffset,h=n.onClick,I=n.onMouseEnter,N=n.onMouseLeave,E=n.onTitleClick,O=n.onTitleMouseEnter,y=n.onTitleMouseLeave,M=Object(U.a)(n,er),g=Mn(l),P=t.useContext(Ee),D=P.prefixCls,m=P.mode,A=P.openKeys,C=P.disabled,T=P.overflowDisabled,k=P.activeKey,L=P.selectedKeys,F=P.itemIcon,Z=P.expandIcon,G=P.onItemClick,J=P.onOpenChange,ie=P.onActive,le=t.useContext(Yt),te=le._internalRenderSubMenuItem,R=t.useContext(Tn),S=R.isSubPathKey,$=bt(),W="".concat(D,"-submenu"),_=C||s,ye=t.useRef(),fe=t.useRef(),he=d||F,Ce=f||Z,ae=A.includes(l),re=!T&&ae,Ne=S(L,l),He=Vn(l,_,O,y),xe=He.active,H=Object(U.a)(He,tr),je=t.useState(!1),ke=Object(K.a)(je,2),gt=ke[0],Le=ke[1],De=function(ve){_||Le(ve)},Be=function(ve){De(!0),I==null||I({key:l,domEvent:ve})},be=function(ve){De(!1),N==null||N({key:l,domEvent:ve})},Ze=t.useMemo(function(){return xe||(m!=="inline"?gt||S([k],l):!1)},[m,xe,k,gt,l,S]),Qe=$n($.length),ce=function(ve){_||(E==null||E({key:l,domEvent:ve}),m==="inline"&&J(l,!ae))},Ot=at(function(de){h==null||h(Lt(de)),G(de)}),se=function(ve){m!=="inline"&&J(l,ve)},ge=function(){ie(l)},Ie=g&&"".concat(g,"-popup"),Ge=t.createElement("div",Object(V.a)({role:"menuitem",style:Qe,className:"".concat(W,"-title"),tabIndex:_?null:-1,ref:ye,title:typeof o=="string"?o:null,"data-menu-id":T&&g?null:g,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":Ie,"aria-disabled":_,onClick:ce,onFocus:ge},H),o,t.createElement(zn,{icon:m!=="horizontal"?Ce:null,props:Object(w.a)(Object(w.a)({},n),{},{isOpen:re,isSubMenu:!0})},t.createElement("i",{className:"".concat(W,"-arrow")}))),Xe=t.useRef(m);if(m!=="inline"&&$.length>1?Xe.current="vertical":Xe.current=m,!T){var ue=Xe.current;Ge=t.createElement(_a,{mode:ue,prefixCls:W,visible:!u&&re&&m!=="inline",popupClassName:p,popupOffset:b,popup:t.createElement(ft,{mode:ue==="horizontal"?"vertical":ue},t.createElement(Fn,{id:Ie,ref:fe},v)),disabled:_,onVisibleChange:se},Ge)}var Pe=t.createElement(vt.a.Item,Object(V.a)({role:"none"},M,{component:"li",style:i,className:Y()(W,"".concat(W,"-").concat(m),a,(r={},Object(x.a)(r,"".concat(W,"-open"),re),Object(x.a)(r,"".concat(W,"-active"),Ze),Object(x.a)(r,"".concat(W,"-selected"),Ne),Object(x.a)(r,"".concat(W,"-disabled"),_),r)),onMouseEnter:Be,onMouseLeave:be}),Ge,!T&&t.createElement(qa,{id:Ie,open:re,keyPath:$},v));return te&&(Pe=te(Pe,n,{selected:Ne,active:Ze,open:re,disabled:_})),t.createElement(ft,{onItemClick:Ot,mode:m==="horizontal"?"vertical":m,itemIcon:he,expandIcon:Ce},Pe)};function nn(e){var n=e.eventKey,r=e.children,i=bt(n),a=en(r,i),o=Kt();t.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var l;return o?l=a:l=t.createElement(nr,e,a),t.createElement(Nn.Provider,{value:i},l)}var ar=["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"],rt=[],rr=t.forwardRef(function(e,n){var r,i,a=e,o=a.prefixCls,l=o===void 0?"rc-menu":o,c=a.rootClassName,s=a.style,u=a.className,v=a.tabIndex,d=v===void 0?0:v,f=a.items,p=a.children,b=a.direction,h=a.id,I=a.mode,N=I===void 0?"vertical":I,E=a.inlineCollapsed,O=a.disabled,y=a.disabledOverflow,M=a.subMenuOpenDelay,g=M===void 0?.1:M,P=a.subMenuCloseDelay,D=P===void 0?.1:P,m=a.forceSubMenuRender,A=a.defaultOpenKeys,C=a.openKeys,T=a.activeKey,k=a.defaultActiveFirst,L=a.selectable,F=L===void 0?!0:L,Z=a.multiple,G=Z===void 0?!1:Z,J=a.defaultSelectedKeys,ie=a.selectedKeys,le=a.onSelect,te=a.onDeselect,R=a.inlineIndent,S=R===void 0?24:R,$=a.motion,W=a.defaultMotions,_=a.triggerSubMenuAction,ye=_===void 0?"hover":_,fe=a.builtinPlacements,he=a.itemIcon,Ce=a.expandIcon,ae=a.overflowedIndicator,re=ae===void 0?"...":ae,Ne=a.overflowedIndicatorPopupClassName,He=a.getPopupContainer,xe=a.onClick,H=a.onOpenChange,je=a.onKeyDown,ke=a.openAnimation,gt=a.openTransitionName,Le=a._internalRenderMenuItem,De=a._internalRenderSubMenuItem,Be=Object(U.a)(a,ar),be=t.useMemo(function(){return Ja(p,f,rt)},[p,f]),Ze=t.useState(!1),Qe=Object(K.a)(Ze,2),ce=Qe[0],Ot=Qe[1],se=t.useRef(),ge=Aa(h),Ie=b==="rtl",Ge=Object(ze.a)(A,{value:C,postState:function(X){return X||rt}}),Xe=Object(K.a)(Ge,2),ue=Xe[0],Pe=Xe[1],de=function(X){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function me(){Pe(X),H==null||H(X)}Q?Object(ya.flushSync)(me):me()},ve=t.useState(ue),ot=Object(K.a)(ve,2),an=ot[0],Vt=ot[1],yt=t.useRef(!1),rn=t.useMemo(function(){return(N==="inline"||N==="vertical")&&E?["vertical",E]:[N,!1]},[N,E]),Ct=Object(K.a)(rn,2),Ve=Ct[0],lt=Ct[1],jt=Ve==="inline",St=t.useState(Ve),$t=Object(K.a)(St,2),Te=$t[0],zt=$t[1],on=t.useState(lt),Et=Object(K.a)(on,2),ln=Et[0],cn=Et[1];t.useEffect(function(){zt(Ve),cn(lt),!!yt.current&&(jt?Pe(an):de(rt))},[Ve,lt]);var we=t.useState(0),xt=Object(K.a)(we,2),_e=xt[0],Ut=xt[1],$e=_e>=be.length-1||Te!=="horizontal"||y;t.useEffect(function(){jt&&Vt(ue)},[ue]),t.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var Me=wa(),ct=Me.registerPath,It=Me.unregisterPath,Ft=Me.refreshOverflowKeys,z=Me.isSubPathKey,B=Me.getKeyPath,ne=Me.getKeys,oe=Me.getSubPathKeys,Ke=t.useMemo(function(){return{registerPath:ct,unregisterPath:It}},[ct,It]),Se=t.useMemo(function(){return{isSubPathKey:z}},[z]);t.useEffect(function(){Ft($e?rt:be.slice(_e+1).map(function(q){return q.key}))},[_e,$e]);var sn=Object(ze.a)(T||k&&((r=be[0])===null||r===void 0?void 0:r.key),{value:T}),_n=Object(K.a)(sn,2),Pt=_n[0],un=_n[1],kr=at(function(q){un(q)}),Lr=at(function(){un(void 0)});Object(t.useImperativeHandle)(n,function(){return{list:se.current,focus:function(X){var Q,me=Pt!=null?Pt:(Q=be.find(function(Xr){return!Xr.props.disabled}))===null||Q===void 0?void 0:Q.key;if(me){var Oe,qe,Mt;(Oe=se.current)===null||Oe===void 0||(qe=Oe.querySelector("li[data-menu-id='".concat(Xt(ge,me),"']")))===null||qe===void 0||(Mt=qe.focus)===null||Mt===void 0||Mt.call(qe,X)}}}});var Dr=Object(ze.a)(J||[],{value:ie,postState:function(X){return Array.isArray(X)?X:X==null?rt:[X]}}),qn=Object(K.a)(Dr,2),Wt=qn[0],Br=qn[1],Vr=function(X){if(F){var Q=X.key,me=Wt.includes(Q),Oe;G?me?Oe=Wt.filter(function(Mt){return Mt!==Q}):Oe=[].concat(Object(Ue.a)(Wt),[Q]):Oe=[Q],Br(Oe);var qe=Object(w.a)(Object(w.a)({},X),{},{selectedKeys:Oe});me?te==null||te(qe):le==null||le(qe)}!G&&ue.length&&Te!=="inline"&&de(rt)},$r=at(function(q){xe==null||xe(Lt(q)),Vr(q)}),ea=at(function(q,X){var Q=ue.filter(function(Oe){return Oe!==q});if(X)Q.push(q);else if(Te!=="inline"){var me=oe(q);Q=Q.filter(function(Oe){return!me.has(Oe)})}Object(In.a)(ue,Q,!0)||de(Q,!0)}),zr=at(He),Ur=function(X,Q){var me=Q!=null?Q:!ue.includes(X);ea(X,me)},Fr=Ra(Te,Pt,Ie,ge,se,ne,B,un,Ur,je);t.useEffect(function(){Ot(!0)},[]);var Wr=t.useMemo(function(){return{_internalRenderMenuItem:Le,_internalRenderSubMenuItem:De}},[Le,De]),Hr=Te!=="horizontal"||y?be:be.map(function(q,X){return t.createElement(ft,{key:q.key,overflowDisabled:X>_e},q)}),Gr=t.createElement(vt.a,Object(V.a)({id:h,ref:se,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Dt,className:Y()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Te),u,(i={},Object(x.a)(i,"".concat(l,"-inline-collapsed"),ln),Object(x.a)(i,"".concat(l,"-rtl"),Ie),i),c),dir:b,style:s,role:"menu",tabIndex:d,data:Hr,renderRawItem:function(X){return X},renderRawRest:function(X){var Q=X.length,me=Q?be.slice(-Q):null;return t.createElement(nn,{eventKey:qt,title:re,disabled:$e,internalPopupClose:Q===0,popupClassName:Ne},me)},maxCount:Te!=="horizontal"||y?vt.a.INVALIDATE:vt.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(X){Ut(X)},onKeyDown:Fr},Be));return t.createElement(Yt.Provider,{value:Wr},t.createElement(Pn.Provider,{value:ge},t.createElement(ft,{prefixCls:l,rootClassName:c,mode:Te,openKeys:ue,rtl:Ie,disabled:O,motion:ce?$:null,defaultMotions:ce?W:null,activeKey:Pt,onActive:kr,onInactive:Lr,selectedKeys:Wt,inlineIndent:S,subMenuOpenDelay:g,subMenuCloseDelay:D,forceSubMenuRender:m,builtinPlacements:fe,triggerSubMenuAction:ye,getPopupContainer:zr,itemIcon:he,expandIcon:Ce,onItemClick:$r,onOpenChange:ea},t.createElement(Tn.Provider,{value:Se},Gr),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(Rn.Provider,{value:Ke},be)))))}),ir=rr,or=["className","title","eventKey","children"],lr=["children"],cr=function(n){var r=n.className,i=n.title,a=n.eventKey,o=n.children,l=Object(U.a)(n,or),c=t.useContext(Ee),s=c.prefixCls,u="".concat(s,"-item-group");return t.createElement("li",Object(V.a)({role:"presentation"},l,{onClick:function(d){return d.stopPropagation()},className:Y()(u,r)}),t.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:typeof i=="string"?i:void 0},i),t.createElement("ul",{role:"group",className:"".concat(u,"-list")},o))};function Xn(e){var n=e.children,r=Object(U.a)(e,lr),i=bt(r.eventKey),a=en(n,i),o=Kt();return o?a:t.createElement(cr,Object(Bn.a)(r,["warnKey"]),a)}function Yn(e){var n=e.className,r=e.style,i=t.useContext(Ee),a=i.prefixCls,o=Kt();return o?null:t.createElement("li",{className:Y()("".concat(a,"-item-divider"),n),style:r})}var ht=ir;ht.Item=Dt,ht.SubMenu=nn,ht.ItemGroup=Xn,ht.Divider=Yn;var sr=ht;function ur(e,n){var r=e.prefixCls,i=e.id,a=e.tabs,o=e.locale,l=e.mobile,c=e.moreIcon,s=c===void 0?"More":c,u=e.moreTransitionName,v=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,I=e.onTabClick,N=e.getPopupContainer,E=e.popupClassName,O=Object(t.useState)(!1),y=Object(K.a)(O,2),M=y[0],g=y[1],P=Object(t.useState)(null),D=Object(K.a)(P,2),m=D[0],A=D[1],C="".concat(i,"-more-popup"),T="".concat(r,"-dropdown"),k=m!==null?"".concat(C,"-").concat(m):null,L=o==null?void 0:o.dropdownAriaLabel;function F(R,S){R.preventDefault(),R.stopPropagation(),f.onEdit("remove",{key:S,event:R})}var Z=t.createElement(sr,{onClick:function(S){var $=S.key,W=S.domEvent;I($,W),g(!1)},prefixCls:"".concat(T,"-menu"),id:C,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[m],"aria-label":L!==void 0?L:"expanded dropdown"},a.map(function(R){var S=f&&R.closable!==!1&&!R.disabled;return t.createElement(Dt,{key:R.key,id:"".concat(C,"-").concat(R.key),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(R.key),disabled:R.disabled},t.createElement("span",null,R.label),S&&t.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(W){W.stopPropagation(),F(W,R.key)}},R.closeIcon||f.removeIcon||"\xD7"))}));function G(R){for(var S=a.filter(function(fe){return!fe.disabled}),$=S.findIndex(function(fe){return fe.key===m})||0,W=S.length,_=0;_B?"left":"right"})}),k=Object(K.a)(T,2),L=k[0],F=k[1],Z=bn(0,function(z,B){!C&&O&&O({direction:z>B?"top":"bottom"})}),G=Object(K.a)(Z,2),J=G[0],ie=G[1],le=Object(t.useState)([0,0]),te=Object(K.a)(le,2),R=te[0],S=te[1],$=Object(t.useState)([0,0]),W=Object(K.a)($,2),_=W[0],ye=W[1],fe=Object(t.useState)([0,0]),he=Object(K.a)(fe,2),Ce=he[0],ae=he[1],re=Object(t.useState)([0,0]),Ne=Object(K.a)(re,2),He=Ne[0],xe=Ne[1],H=oa(new Map),je=Object(K.a)(H,2),ke=je[0],gt=je[1],Le=na(o,ke,_[0]),De=Bt(R,C),Be=Bt(_,C),be=Bt(Ce,C),Ze=Bt(He,C),Qe=Dege?ge:z}var Ge=Object(t.useRef)(),Xe=Object(t.useState)(),ue=Object(K.a)(Xe,2),Pe=ue[0],de=ue[1];function ve(){de(Date.now())}function ot(){window.clearTimeout(Ge.current)}ra(P,function(z,B){function ne(oe,Ke){oe(function(Se){var sn=Ie(Se+Ke);return sn})}return Qe?(C?ne(F,z):ne(ie,B),ot(),ve(),!0):!1}),Object(t.useEffect)(function(){return ot(),Pe&&(Ge.current=window.setTimeout(function(){de(0)},100)),ot},[Pe]);var an=la(Le,ce,C?L:J,Be,be,Ze,Object(w.a)(Object(w.a)({},e),{},{tabs:o})),Vt=Object(K.a)(an,2),yt=Vt[0],rn=Vt[1],Ct=Object(ta.a)(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v,B=Le.get(z)||{width:0,height:0,left:0,right:0,top:0};if(C){var ne=L;d?B.rightL+ce&&(ne=B.right+B.width-ce):B.left<-L?ne=-B.left:B.left+B.width>-L+ce&&(ne=-(B.left+B.width-ce)),ie(0),F(Ie(ne))}else{var oe=J;B.top<-J?oe=-B.top:B.top+B.height>-J+ce&&(oe=-(B.top+B.height-ce)),F(0),ie(Ie(oe))}}),Ve={};h==="top"||h==="bottom"?Ve[d?"marginRight":"marginLeft"]=I:Ve.marginTop=I;var lt=o.map(function(z,B){var ne=z.key;return t.createElement(fr,{id:s,prefixCls:a,key:ne,tab:z,style:B===0?void 0:Ve,closable:z.closable,editable:p,active:ne===v,renderWrapper:N,removeAriaLabel:b==null?void 0:b.removeAriaLabel,onClick:function(Ke){E(ne,Ke)},onFocus:function(){Ct(ne),ve(),!!P.current&&(d||(P.current.scrollLeft=0),P.current.scrollTop=0)}})}),jt=function(){return gt(function(){var B=new Map;return o.forEach(function(ne){var oe,Ke=ne.key,Se=(oe=D.current)===null||oe===void 0?void 0:oe.querySelector('[data-node-key="'.concat(yn(Ke),'"]'));Se&&B.set(Ke,{width:Se.offsetWidth,height:Se.offsetHeight,left:Se.offsetLeft,top:Se.offsetTop})}),B})};Object(t.useEffect)(function(){jt()},[o.map(function(z){return z.key}).join("_")]);var St=hn(function(){var z=it(y),B=it(M),ne=it(g);S([z[0]-B[0]-ne[0],z[1]-B[1]-ne[1]]);var oe=it(A);ae(oe);var Ke=it(m);xe(Ke);var Se=it(D);ye([Se[0]-oe[0],Se[1]-oe[1]]),jt()}),$t=o.slice(0,yt),Te=o.slice(rn+1),zt=[].concat(Object(Ue.a)($t),Object(Ue.a)(Te)),on=Object(t.useState)(),Et=Object(K.a)(on,2),ln=Et[0],cn=Et[1],we=Le.get(v),xt=Object(t.useRef)();function _e(){Fe.a.cancel(xt.current)}Object(t.useEffect)(function(){var z={};return we&&(C?(d?z.right=we.right:z.left=we.left,z.width=we.width):(z.top=we.top,z.height=we.height)),_e(),xt.current=Object(Fe.a)(function(){cn(z)}),_e},[we,C,d]),Object(t.useEffect)(function(){Ct()},[v,se,ge,On(we),On(Le),C]),Object(t.useEffect)(function(){St()},[d]);var Ut=!!zt.length,$e="".concat(a,"-nav-wrap"),Me,ct,It,Ft;return C?d?(ct=L>0,Me=L!==ge):(Me=L<0,ct=L!==se):(It=J<0,Ft=J!==se),t.createElement(dn.a,{onResize:St},t.createElement("div",{ref:Object(vn.d)(n,y),role:"tablist",className:Y()("".concat(a,"-nav"),l),style:c,onKeyDown:function(){ve()}},t.createElement(jn,{ref:M,position:"left",extra:f,prefixCls:a}),t.createElement("div",{className:Y()($e,(r={},Object(x.a)(r,"".concat($e,"-ping-left"),Me),Object(x.a)(r,"".concat($e,"-ping-right"),ct),Object(x.a)(r,"".concat($e,"-ping-top"),It),Object(x.a)(r,"".concat($e,"-ping-bottom"),Ft),r)),ref:P},t.createElement(dn.a,{onResize:St},t.createElement("div",{ref:D,className:"".concat(a,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(J,"px)"),transition:Pe?"none":void 0}},lt,t.createElement(Cn,{ref:A,prefixCls:a,locale:b,editable:p,style:Object(w.a)(Object(w.a)({},lt.length===0?void 0:Ve),{},{visibility:Ut?"hidden":null})}),t.createElement("div",{className:Y()("".concat(a,"-ink-bar"),Object(x.a)({},"".concat(a,"-ink-bar-animated"),u.inkBar)),style:ln})))),t.createElement(dr,Object(V.a)({},e,{removeAriaLabel:b==null?void 0:b.removeAriaLabel,ref:m,prefixCls:a,tabs:zt,className:!Ut&&Ot,tabMoving:!!Pe})),t.createElement(jn,{ref:g,position:"right",extra:f,prefixCls:a})))}var Jn=t.forwardRef(br),mr=["renderTabBar"],pr=["label","key"];function hr(e){var n=e.renderTabBar,r=Object(U.a)(e,mr),i=t.useContext(Re),a=i.tabs;if(n){var o=Object(w.a)(Object(w.a)({},r),{},{panes:a.map(function(l){var c=l.label,s=l.key,u=Object(U.a)(l,pr);return t.createElement(Je,Object(V.a)({tab:c,key:s,tabKey:s},u))})});return n(o,Jn)}return t.createElement(Jn,r)}function gr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},n;return e===!1?n={inkBar:!1,tabPane:!1}:e===!0?n={inkBar:!0,tabPane:!1}:n=Object(w.a)({inkBar:!0},Object(pe.a)(e)==="object"?e:{}),n.tabPaneMotion&&n.tabPane===void 0&&(n.tabPane=!0),!n.tabPaneMotion&&n.tabPane&&(n.tabPane=!1),n}var Or=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Zn=0;function yr(e,n){var r,i=e.id,a=e.prefixCls,o=a===void 0?"rc-tabs":a,l=e.className,c=e.items,s=e.direction,u=e.activeKey,v=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,b=p===void 0?"top":p,h=e.tabBarGutter,I=e.tabBarStyle,N=e.tabBarExtraContent,E=e.locale,O=e.moreIcon,y=e.moreTransitionName,M=e.destroyInactiveTabPane,g=e.renderTabBar,P=e.onChange,D=e.onTabClick,m=e.onTabScroll,A=e.getPopupContainer,C=e.popupClassName,T=Object(U.a)(e,Or),k=t.useMemo(function(){return(c||[]).filter(function(H){return H&&Object(pe.a)(H)==="object"&&"key"in H})},[c]),L=s==="rtl",F=gr(f),Z=Object(t.useState)(!1),G=Object(K.a)(Z,2),J=G[0],ie=G[1];Object(t.useEffect)(function(){ie(Object(Ht.a)())},[]);var le=Object(ze.a)(function(){var H;return(H=k[0])===null||H===void 0?void 0:H.key},{value:u,defaultValue:v}),te=Object(K.a)(le,2),R=te[0],S=te[1],$=Object(t.useState)(function(){return k.findIndex(function(H){return H.key===R})}),W=Object(K.a)($,2),_=W[0],ye=W[1];Object(t.useEffect)(function(){var H=k.findIndex(function(ke){return ke.key===R});if(H===-1){var je;H=Math.max(0,Math.min(_,k.length-1)),S((je=k[H])===null||je===void 0?void 0:je.key)}ye(H)},[k.map(function(H){return H.key}).join("_"),R,_]);var fe=Object(ze.a)(null,{value:i}),he=Object(K.a)(fe,2),Ce=he[0],ae=he[1];Object(t.useEffect)(function(){i||(ae("rc-tabs-".concat(Zn)),Zn+=1)},[]);function re(H,je){D==null||D(H,je);var ke=H!==R;S(H),ke&&(P==null||P(H))}var Ne={id:Ce,activeKey:R,animated:F,tabPosition:b,rtl:L,mobile:J},He,xe=Object(w.a)(Object(w.a)({},Ne),{},{editable:d,locale:E,moreIcon:O,moreTransitionName:y,tabBarGutter:h,onTabClick:re,onTabScroll:m,extra:N,style:I,panes:null,getPopupContainer:A,popupClassName:C});return t.createElement(Re.Provider,{value:{tabs:k,prefixCls:o}},t.createElement("div",Object(V.a)({ref:n,id:i,className:Y()(o,"".concat(o,"-").concat(b),(r={},Object(x.a)(r,"".concat(o,"-mobile"),J),Object(x.a)(r,"".concat(o,"-editable"),d),Object(x.a)(r,"".concat(o,"-rtl"),L),r),l)},T),He,t.createElement(hr,Object(V.a)({},xe,{renderTabBar:g})),t.createElement(Tt,Object(V.a)({destroyInactiveTabPane:M},Ne,{animated:F}))))}var Cr=t.forwardRef(yr),jr=Cr,Sr=jr,Er=j("H84U"),xr=j("3Nzz"),Ir=j("EXcs"),Pr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Mr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return n===!1?r={inkBar:!1,tabPane:!1}:n===!0?r={inkBar:!0,tabPane:!0}:r=Object(V.a)({inkBar:!0},Object(pe.a)(n)==="object"?n:{}),r.tabPane&&(r.tabPaneMotion=Object(V.a)(Object(V.a)({},Pr),{motionName:Object(Ir.c)(e,"switch")})),r}var Rr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a