(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4241],{36989:function(e,t,n){"use strict";n.d(t,{Z:function(){return eS}});var a=n(38786),o=n(74889),r=n(37977),i=n(4943),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c=n(63572),d=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:l}))}),s=n(43359),u=n.n(s),f=n(88129),v=n(88532),b=n(11984),p=n(7871),m=n(15450),h=n(86047),g=n(85099),$=(0,a.createContext)(null),k=n(54200),y=n(57754),x=n(62051),_=n(21710),w=n(47871),S=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,r=e.indicator,i=void 0===r?{}:r,l=i.size,c=i.align,d=void 0===c?"center":c,s=(0,a.useState)(),u=(0,b.Z)(s,2),f=u[0],v=u[1],p=(0,a.useRef)(),m=a.useCallback(function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e},[l]);function h(){w.Z.cancel(p.current)}return(0,a.useEffect)(function(){var e={};if(t){if(n){e.width=m(t.width);var a=o?"right":"left";"start"===d&&(e[a]=t[a]),"center"===d&&(e[a]=t[a]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===d&&(e[a]=t[a]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===d&&(e.top=t.top),"center"===d&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===d&&(e.top=t.top+t.height,e.transform="translateY(-100%)")}return h(),p.current=(0,w.Z)(function(){v(e)}),h},[t,n,o,d,m]),{style:f}},E={width:0,height:0,left:0,top:0};function Z(e,t){var n=a.useRef(e),o=a.useState({}),r=(0,b.Z)(o,2)[1];return[n.current,function(e){var a="function"==typeof e?e(n.current):e;a!==n.current&&t(a,n.current),n.current=a,r({})}]}var C=n(59027);function R(e){var t=(0,a.useState)(0),n=(0,b.Z)(t,2),o=n[0],r=n[1],i=(0,a.useRef)(0),l=(0,a.useRef)();return l.current=e,(0,C.o)(function(){var e;null===(e=l.current)||void 0===e||e.call(l)},[o]),function(){i.current===o&&(i.current+=1,r(i.current))}}var P={width:0,height:0,left:0,top:0,right:0};function T(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function I(e){return String(e).replace(/"/g,"TABS_DQ")}function L(e,t,n,a){return!!n&&!a&&!1!==e&&(void 0!==e||!1!==t&&null!==t)}var M=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.editable,r=e.locale,i=e.style;return o&&!1!==o.showAdd?a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),N=a.forwardRef(function(e,t){var n,o=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l={};return"object"!==(0,p.Z)(i)||a.isValidElement(i)?l.right=i:l=i,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?a.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null}),z=n(66988),O=n(37368),B=n(13594),D=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.id,r=e.tabs,l=e.locale,c=e.mobile,d=e.more,s=void 0===d?{}:d,v=e.style,p=e.className,m=e.editable,h=e.tabBarGutter,g=e.rtl,$=e.removeAriaLabel,k=e.onTabClick,y=e.getPopupContainer,x=e.popupClassName,_=(0,a.useState)(!1),w=(0,b.Z)(_,2),S=w[0],E=w[1],Z=(0,a.useState)(null),C=(0,b.Z)(Z,2),R=C[0],P=C[1],T=s.icon,I="".concat(o,"-more-popup"),N="".concat(n,"-dropdown"),D=null!==R?"".concat(I,"-").concat(R):null,j=null==l?void 0:l.dropdownAriaLabel,G=a.createElement(O.ZP,{onClick:function(e){k(e.key,e.domEvent),E(!1)},prefixCls:"".concat(N,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[R],"aria-label":void 0!==j?j:"expanded dropdown"},r.map(function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,i=e.key,l=e.label,c=L(t,r,m,n);return a.createElement(O.sN,{key:i,id:"".concat(I,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},a.createElement("span",null,l),c&&a.createElement("button",{type:"button","aria-label":$||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:i,event:e})}},r||m.removeIcon||"\xd7"))}));function W(e){for(var t=r.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===R})||0,a=t.length,o=0;oMath.abs(l-n)?[l,c,d-t.left,s-t.top]:[n,a,r,o]},X=function(e){var t=e.current||{},n=t.offsetWidth,a=void 0===n?0:n,o=t.offsetHeight;if(e.current){var r=e.current.getBoundingClientRect(),i=r.width,l=r.height;if(1>Math.abs(i-a))return[i,l]}return[a,void 0===o?0:o]},A=function(e,t){return e[t?0:1]},H=a.forwardRef(function(e,t){var n,o,r,l,c,d,s,p,m,h,g,w,C,L,z,O,B,D,H,q,K,F,V,Y,Q,J,U,ee,et,en,ea,eo,er,ei,el,ec,ed,es,eu,ef=e.className,ev=e.style,eb=e.id,ep=e.animated,em=e.activeKey,eh=e.rtl,eg=e.extra,e$=e.editable,ek=e.locale,ey=e.tabPosition,ex=e.tabBarGutter,e_=e.children,ew=e.onTabClick,eS=e.onTabScroll,eE=e.indicator,eZ=a.useContext($),eC=eZ.prefixCls,eR=eZ.tabs,eP=(0,a.useRef)(null),eT=(0,a.useRef)(null),eI=(0,a.useRef)(null),eL=(0,a.useRef)(null),eM=(0,a.useRef)(null),eN=(0,a.useRef)(null),ez=(0,a.useRef)(null),eO="top"===ey||"bottom"===ey,eB=Z(0,function(e,t){eO&&eS&&eS({direction:e>t?"left":"right"})}),eD=(0,b.Z)(eB,2),ej=eD[0],eG=eD[1],eW=Z(0,function(e,t){!eO&&eS&&eS({direction:e>t?"top":"bottom"})}),eX=(0,b.Z)(eW,2),eA=eX[0],eH=eX[1],eq=(0,a.useState)([0,0]),eK=(0,b.Z)(eq,2),eF=eK[0],eV=eK[1],eY=(0,a.useState)([0,0]),eQ=(0,b.Z)(eY,2),eJ=eQ[0],eU=eQ[1],e0=(0,a.useState)([0,0]),e1=(0,b.Z)(e0,2),e8=e1[0],e2=e1[1],e9=(0,a.useState)([0,0]),e5=(0,b.Z)(e9,2),e6=e5[0],e7=e5[1],e4=(n=new Map,o=(0,a.useRef)([]),r=(0,a.useState)({}),l=(0,b.Z)(r,2)[1],c=(0,a.useRef)("function"==typeof n?n():n),d=R(function(){var e=c.current;o.current.forEach(function(t){e=t(e)}),o.current=[],c.current=e,l({})}),[c.current,function(e){o.current.push(e),d()}]),e3=(0,b.Z)(e4,2),te=e3[0],tt=e3[1],tn=(s=eJ[0],(0,a.useMemo)(function(){for(var e=new Map,t=te.get(null===(o=eR[0])||void 0===o?void 0:o.key)||E,n=t.left+t.width,a=0;atu?tu:e}eO&&eh?(ts=0,tu=Math.max(0,to-tc)):(ts=Math.min(0,tc-to),tu=0);var tv=(0,a.useRef)(null),tb=(0,a.useState)(),tp=(0,b.Z)(tb,2),tm=tp[0],th=tp[1];function tg(){th(Date.now())}function t$(){tv.current&&clearTimeout(tv.current)}p=function(e,t){function n(e,t){e(function(e){return tf(e+t)})}return!!tl&&(eO?n(eG,e):n(eH,t),t$(),tg(),!0)},m=(0,a.useState)(),g=(h=(0,b.Z)(m,2))[0],w=h[1],C=(0,a.useState)(0),z=(L=(0,b.Z)(C,2))[0],O=L[1],B=(0,a.useState)(0),H=(D=(0,b.Z)(B,2))[0],q=D[1],K=(0,a.useState)(),V=(F=(0,b.Z)(K,2))[0],Y=F[1],Q=(0,a.useRef)(),J=(0,a.useRef)(),(U=(0,a.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];w({x:t.screenX,y:t.screenY}),window.clearInterval(Q.current)},onTouchMove:function(e){if(g){var t=e.touches[0],n=t.screenX,a=t.screenY;w({x:n,y:a});var o=n-g.x,r=a-g.y;p(o,r);var i=Date.now();O(i),q(i-z),Y({x:o,y:r})}},onTouchEnd:function(){if(g&&(w(null),Y(null),V)){var e=V.x/H,t=V.y/H;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var n=e,a=t;Q.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(a)){window.clearInterval(Q.current);return}n*=.9046104802746175,a*=.9046104802746175,p(20*n,20*a)},20)}}},onWheel:function(e){var t=e.deltaX,n=e.deltaY,a=0,o=Math.abs(t),r=Math.abs(n);o===r?a="x"===J.current?t:n:o>r?(a=t,J.current="x"):(a=n,J.current="y"),p(-a,-a)&&e.preventDefault()}},a.useEffect(function(){function e(e){U.current.onTouchMove(e)}function t(e){U.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!0}),eL.current.addEventListener("touchstart",function(e){U.current.onTouchStart(e)},{passive:!0}),eL.current.addEventListener("wheel",function(e){U.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,a.useEffect)(function(){return t$(),tm&&(tv.current=setTimeout(function(){th(0)},100)),t$},[tm]);var tk=(ee=eO?ej:eA,er=(et=(0,v.Z)((0,v.Z)({},e),{},{tabs:eR})).tabs,ei=et.tabPosition,el=et.rtl,["top","bottom"].includes(ei)?(en="width",ea=el?"right":"left",eo=Math.abs(ee)):(en="height",ea="top",eo=-ee),(0,a.useMemo)(function(){if(!er.length)return[0,0];for(var e=er.length,t=e,n=0;nMath.floor(eo+tc)){t=n-1;break}}for(var o=0,r=e-1;r>=0;r-=1)if((tn.get(er[r].key)||P)[ea]=t?[0,0]:[o,t]},[tn,tc,to,tr,ti,eo,ei,er.map(function(e){return e.key}).join("_"),el])),ty=(0,b.Z)(tk,2),tx=ty[0],t_=ty[1],tw=(0,x.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:em,t=tn.get(e)||{width:0,height:0,left:0,right:0,top:0};if(eO){var n=ej;eh?t.rightej+tc&&(n=t.right+t.width-tc):t.left<-ej?n=-t.left:t.left+t.width>-ej+tc&&(n=-(t.left+t.width-tc)),eH(0),eG(tf(n))}else{var a=eA;t.top<-eA?a=-t.top:t.top+t.height>-eA+tc&&(a=-(t.top+t.height-tc)),eG(0),eH(tf(a))}}),tS={};"top"===ey||"bottom"===ey?tS[eh?"marginRight":"marginLeft"]=ex:tS.marginTop=ex;var tE=eR.map(function(e,t){var n=e.key;return a.createElement(G,{id:eb,prefixCls:eC,key:n,tab:e,style:0===t?void 0:tS,closable:e.closable,editable:e$,active:n===em,renderWrapper:e_,removeAriaLabel:null==ek?void 0:ek.removeAriaLabel,onClick:function(e){ew(n,e)},onFocus:function(){tw(n),tg(),eL.current&&(eh||(eL.current.scrollLeft=0),eL.current.scrollTop=0)}})}),tZ=function(){return tt(function(){var e,t=new Map,n=null===(e=eM.current)||void 0===e?void 0:e.getBoundingClientRect();return eR.forEach(function(e){var a,o=e.key,r=null===(a=eM.current)||void 0===a?void 0:a.querySelector('[data-node-key="'.concat(I(o),'"]'));if(r){var i=W(r,n),l=(0,b.Z)(i,4),c=l[0],d=l[1],s=l[2],u=l[3];t.set(o,{width:c,height:d,left:s,top:u})}}),t})};(0,a.useEffect)(function(){tZ()},[eR.map(function(e){return e.key}).join("_")]);var tC=R(function(){var e=X(eP),t=X(eT),n=X(eI);eV([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var a=X(ez);e2(a),e7(X(eN));var o=X(eM);eU([o[0]-a[0],o[1]-a[1]]),tZ()}),tR=eR.slice(0,tx),tP=eR.slice(t_+1),tT=[].concat((0,k.Z)(tR),(0,k.Z)(tP)),tI=tn.get(em),tL=S({activeTabOffset:tI,horizontal:eO,indicator:eE,rtl:eh}).style;(0,a.useEffect)(function(){tw()},[em,ts,tu,T(tI),T(tn),eO]),(0,a.useEffect)(function(){tC()},[eh]);var tM=!!tT.length,tN="".concat(eC,"-nav-wrap");return eO?eh?(ed=ej>0,ec=ej!==tu):(ec=ej<0,ed=ej!==ts):(es=eA<0,eu=eA!==ts),a.createElement(y.Z,{onResize:tC},a.createElement("div",{ref:(0,_.x1)(t,eP),role:"tablist",className:u()("".concat(eC,"-nav"),ef),style:ev,onKeyDown:function(){tg()}},a.createElement(N,{ref:eT,position:"left",extra:eg,prefixCls:eC}),a.createElement(y.Z,{onResize:tC},a.createElement("div",{className:u()(tN,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(tN,"-ping-left"),ec),"".concat(tN,"-ping-right"),ed),"".concat(tN,"-ping-top"),es),"".concat(tN,"-ping-bottom"),eu)),ref:eL},a.createElement(y.Z,{onResize:tC},a.createElement("div",{ref:eM,className:"".concat(eC,"-nav-list"),style:{transform:"translate(".concat(ej,"px, ").concat(eA,"px)"),transition:tm?"none":void 0}},tE,a.createElement(M,{ref:ez,prefixCls:eC,locale:ek,editable:e$,style:(0,v.Z)((0,v.Z)({},0===tE.length?void 0:tS),{},{visibility:tM?"hidden":null})}),a.createElement("div",{className:u()("".concat(eC,"-ink-bar"),(0,f.Z)({},"".concat(eC,"-ink-bar-animated"),ep.inkBar)),style:tL}))))),a.createElement(j,(0,i.Z)({},e,{removeAriaLabel:null==ek?void 0:ek.removeAriaLabel,ref:eN,prefixCls:eC,tabs:tT,className:!tM&&td,tabMoving:!!tm})),a.createElement(N,{ref:eI,position:"right",extra:eg,prefixCls:eC})))}),q=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.id,l=e.active,c=e.tabKey,d=e.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!l,style:r,className:u()(n,l&&"".concat(n,"-active"),o),ref:t},d)}),K=["renderTabBar"],F=["label","key"],V=function(e){var t=e.renderTabBar,n=(0,m.Z)(e,K),o=a.useContext($).tabs;return t?t((0,v.Z)((0,v.Z)({},n),{},{panes:o.map(function(e){var t=e.label,n=e.key,o=(0,m.Z)(e,F);return a.createElement(q,(0,i.Z)({tab:t,key:n,tabKey:n},o))})}),H):a.createElement(H,n)},Y=n(71048),Q=["key","forceRender","style","className","destroyInactiveTabPane"],J=function(e){var t=e.id,n=e.activeKey,o=e.animated,r=e.tabPosition,l=e.destroyInactiveTabPane,c=a.useContext($),d=c.prefixCls,s=c.tabs,b=o.tabPane,p="".concat(d,"-tabpane");return a.createElement("div",{className:u()("".concat(d,"-content-holder"))},a.createElement("div",{className:u()("".concat(d,"-content"),"".concat(d,"-content-").concat(r),(0,f.Z)({},"".concat(d,"-content-animated"),b))},s.map(function(e){var r=e.key,c=e.forceRender,d=e.style,s=e.className,f=e.destroyInactiveTabPane,h=(0,m.Z)(e,Q),g=r===n;return a.createElement(Y.ZP,(0,i.Z)({key:r,visible:g,forceRender:c,removeOnLeave:!!(l||f),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(e,n){var o=e.style,l=e.className;return a.createElement(q,(0,i.Z)({},h,{prefixCls:p,id:t,tabKey:r,animated:b,active:g,style:(0,v.Z)((0,v.Z)({},d),o),className:u()(s,l),ref:n}))})})))};n(19955);var U=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],ee=0,et=a.forwardRef(function(e,t){var n=e.id,o=e.prefixCls,r=void 0===o?"rc-tabs":o,l=e.className,c=e.items,d=e.direction,s=e.activeKey,k=e.defaultActiveKey,y=e.editable,x=e.animated,_=e.tabPosition,w=void 0===_?"top":_,S=e.tabBarGutter,E=e.tabBarStyle,Z=e.tabBarExtraContent,C=e.locale,R=e.more,P=e.destroyInactiveTabPane,T=e.renderTabBar,I=e.onChange,L=e.onTabClick,M=e.onTabScroll,N=e.getPopupContainer,z=e.popupClassName,O=e.indicator,B=(0,m.Z)(e,U),D=a.useMemo(function(){return(c||[]).filter(function(e){return e&&"object"===(0,p.Z)(e)&&"key"in e})},[c]),j="rtl"===d,G=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,v.Z)({inkBar:!0},"object"===(0,p.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(x),W=(0,a.useState)(!1),X=(0,b.Z)(W,2),A=X[0],H=X[1];(0,a.useEffect)(function(){H((0,g.Z)())},[]);var q=(0,h.Z)(function(){var e;return null===(e=D[0])||void 0===e?void 0:e.key},{value:s,defaultValue:k}),K=(0,b.Z)(q,2),F=K[0],Y=K[1],Q=(0,a.useState)(function(){return D.findIndex(function(e){return e.key===F})}),et=(0,b.Z)(Q,2),en=et[0],ea=et[1];(0,a.useEffect)(function(){var e,t=D.findIndex(function(e){return e.key===F});-1===t&&(t=Math.max(0,Math.min(en,D.length-1)),Y(null===(e=D[t])||void 0===e?void 0:e.key)),ea(t)},[D.map(function(e){return e.key}).join("_"),F,en]);var eo=(0,h.Z)(null,{value:n}),er=(0,b.Z)(eo,2),ei=er[0],el=er[1];(0,a.useEffect)(function(){n||(el("rc-tabs-".concat(ee)),ee+=1)},[]);var ec={id:ei,activeKey:F,animated:G,tabPosition:w,rtl:j,mobile:A},ed=(0,v.Z)((0,v.Z)({},ec),{},{editable:y,locale:C,more:R,tabBarGutter:S,onTabClick:function(e,t){null==L||L(e,t);var n=e!==F;Y(e),n&&(null==I||I(e))},onTabScroll:M,extra:Z,style:E,panes:null,getPopupContainer:N,popupClassName:z,indicator:O});return a.createElement($.Provider,{value:{tabs:D,prefixCls:r}},a.createElement("div",(0,i.Z)({ref:t,id:n,className:u()(r,"".concat(r,"-").concat(w),(0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(r,"-mobile"),A),"".concat(r,"-editable"),y),"".concat(r,"-rtl"),j),l)},B),a.createElement(V,(0,i.Z)({},ed,{renderTabBar:T})),a.createElement(J,(0,i.Z)({destroyInactiveTabPane:P},ec,{animated:G}))))}),en=n(89318),ea=n(81966),eo=n(99870),er=n(40377);let ei={motionAppear:!1,motionEnter:!0,motionLeave:!0};var el=n(83892),ec=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);ot.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n},ed=n(53563),es=n(45157),eu=n(67167),ef=n(65568),ev=n(53466),eb=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,ev.oN)(e,"slide-up"),(0,ev.oN)(e,"slide-down")]]};let ep=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:o,colorBorderSecondary:r,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${(0,ed.bf)(e.lineWidth)} ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,ed.bf)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,ed.bf)(e.borderRadiusLG)} ${(0,ed.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,ed.bf)(e.borderRadiusLG)} ${(0,ed.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,ed.bf)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,ed.bf)(e.borderRadiusLG)} 0 0 ${(0,ed.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,ed.bf)(e.borderRadiusLG)} ${(0,ed.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},em=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,es.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,ed.bf)(a)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},es.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,ed.bf)(e.paddingXXS)} ${(0,ed.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},eh=e=>{let{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:o,verticalItemPadding:r,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,ed.bf)(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:r,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,ed.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,ed.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,ed.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},eg=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:r}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,ed.bf)(e.borderRadius)} ${(0,ed.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,ed.bf)(e.borderRadius)} ${(0,ed.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,ed.bf)(e.borderRadius)} ${(0,ed.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,ed.bf)(e.borderRadius)} 0 0 ${(0,ed.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}}}}}},e$=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:o,tabsHorizontalItemMargin:r,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,es.Qy)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:a},[`&${d}-active ${d}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:r}}}},ek=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:o,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,ed.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,ed.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,ed.bf)(r(e.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ey=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:o,itemHoverColor:r,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,es.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:a,marginLeft:{_skip_check_:!0,value:o},padding:(0,ed.bf)(e.paddingXS),background:"transparent",border:`${(0,ed.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,ed.bf)(e.borderRadiusLG)} ${(0,ed.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,es.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),e$(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}};var ex=(0,eu.I$)("Tabs",e=>{let t=(0,ef.IX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,ed.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,ed.bf)(e.horizontalItemGutter)}`});return[eg(t),ek(t),eh(t),em(t),ep(t),ey(t),eb(t)]},e=>{let t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),e_=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);ot.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};let ew=e=>{var t,n,i,l,c,s,f,v,b,p,m;let h;let{type:g,className:$,rootClassName:k,size:y,onEdit:x,hideAdd:_,centered:w,addIcon:S,removeIcon:E,moreIcon:Z,more:C,popupClassName:R,children:P,items:T,animated:I,style:L,indicatorSize:M,indicator:N}=e,z=e_(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=z,{direction:B,tabs:D,getPrefixCls:j,getPopupContainer:G}=a.useContext(en.E_),W=j("tabs",O),X=(0,ea.Z)(W),[A,H,q]=ex(W,X);"editable-card"===g&&(h={onEdit:(e,t)=>{let{key:n,event:a}=t;null==x||x("add"===e?a:n,e)},removeIcon:null!==(t=null!=E?E:null==D?void 0:D.removeIcon)&&void 0!==t?t:a.createElement(o.Z,null),addIcon:(null!=S?S:null==D?void 0:D.addIcon)||a.createElement(d,null),showAdd:!0!==_});let K=j(),F=(0,eo.Z)(y),V=T||(0,el.Z)(P).map(e=>{if(a.isValidElement(e)){let{key:t,props:n}=e,a=n||{},{tab:o}=a,r=ec(a,["tab"]);return Object.assign(Object.assign({key:String(t)},r),{label:o})}return null}).filter(e=>e),Y=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{})).tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},ei),{motionName:(0,er.m)(e,"switch")})),t}(W,I),Q=Object.assign(Object.assign({},null==D?void 0:D.style),L),J={align:null!==(n=null==N?void 0:N.align)&&void 0!==n?n:null===(i=null==D?void 0:D.indicator)||void 0===i?void 0:i.align,size:null!==(f=null!==(c=null!==(l=null==N?void 0:N.size)&&void 0!==l?l:M)&&void 0!==c?c:null===(s=null==D?void 0:D.indicator)||void 0===s?void 0:s.size)&&void 0!==f?f:null==D?void 0:D.indicatorSize};return A(a.createElement(et,Object.assign({direction:B,getPopupContainer:G},z,{items:V,className:u()({[`${W}-${F}`]:F,[`${W}-card`]:["card","editable-card"].includes(g),[`${W}-editable-card`]:"editable-card"===g,[`${W}-centered`]:w},null==D?void 0:D.className,$,k,H,q,X),popupClassName:u()(R,H,q,X),style:Q,editable:h,more:Object.assign({icon:null!==(m=null!==(p=null!==(b=null===(v=null==D?void 0:D.more)||void 0===v?void 0:v.icon)&&void 0!==b?b:null==D?void 0:D.moreIcon)&&void 0!==p?p:Z)&&void 0!==m?m:a.createElement(r.Z,null),transitionName:`${K}-slide-up`},C),prefixCls:W,animated:Y,indicator:J})))};ew.TabPane=()=>null;var eS=ew},5292:function(e,t,n){e.exports=n(31791)}}]);