"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62369],{68428:function(t,e,n){var a=n(96999);e.Z=a.Z},75544:function(t,e,n){var a=n(15244);e.Z=a.Z},69300:function(t,e,n){n.d(e,{Z:function(){return tZ}});var a=n(54772),o=n(32141),c=n(53258),r=n(79353),i={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"},l=n(55790),d=a.forwardRef(function(t,e){return a.createElement(l.Z,(0,r.Z)({},t,{ref:e,icon:i}))}),s=n(65414),u=n.n(s),f=n(92684),v=n(82518),b=n(96580),p=n(27053),m=n(74294),h=n(41988),g=n(98958),k=(0,a.createContext)(null),y=n(3565),x=n(77504),_=n(20462),w=n(56094),S=n(19673),Z=function(t){var e=t.activeTabOffset,n=t.horizontal,o=t.rtl,c=t.indicator,r=void 0===c?{}:c,i=r.size,l=r.align,d=void 0===l?"center":l,s=(0,a.useState)(),u=(0,b.Z)(s,2),f=u[0],v=u[1],p=(0,a.useRef)(),m=a.useCallback(function(t){return"function"==typeof i?i(t):"number"==typeof i?i:t},[i]);function h(){S.Z.cancel(p.current)}return(0,a.useEffect)(function(){var t={};if(e){if(n){t.width=m(e.width);var a=o?"right":"left";"start"===d&&(t[a]=e[a]),"center"===d&&(t[a]=e[a]+e.width/2,t.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===d&&(t[a]=e[a]+e.width,t.transform="translateX(-100%)")}else t.height=m(e.height),"start"===d&&(t.top=e.top),"center"===d&&(t.top=e.top+e.height/2,t.transform="translateY(-50%)"),"end"===d&&(t.top=e.top+e.height,t.transform="translateY(-100%)")}return h(),p.current=(0,S.Z)(function(){v(t)}),h},[e,n,o,d,m]),{style:f}},E={width:0,height:0,left:0,top:0};function C(t,e){var n=a.useRef(t),o=a.useState({}),c=(0,b.Z)(o,2)[1];return[n.current,function(t){var a="function"==typeof t?t(n.current):t;a!==n.current&&e(a,n.current),n.current=a,c({})}]}var R=n(76484);function P(t){var e=(0,a.useState)(0),n=(0,b.Z)(e,2),o=n[0],c=n[1],r=(0,a.useRef)(0),i=(0,a.useRef)();return i.current=t,(0,R.o)(function(){var t;null===(t=i.current)||void 0===t||t.call(i)},[o]),function(){r.current===o&&(r.current+=1,c(r.current))}}var T={width:0,height:0,left:0,top:0,right:0};function I(t){var e;return t instanceof Map?(e={},t.forEach(function(t,n){e[n]=t})):e=t,JSON.stringify(e)}function L(t){return String(t).replace(/"/g,"TABS_DQ")}function M(t,e,n,a){return!!n&&!a&&!1!==t&&(void 0!==t||!1!==e&&null!==e)}var N=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.editable,c=t.locale,r=t.style;return o&&!1!==o.showAdd?a.createElement("button",{ref:e,type:"button",className:"".concat(n,"-nav-add"),style:r,"aria-label":(null==c?void 0:c.addAriaLabel)||"Add tab",onClick:function(t){o.onEdit("add",{event:t})}},o.addIcon||"+"):null}),z=a.forwardRef(function(t,e){var n,o=t.position,c=t.prefixCls,r=t.extra;if(!r)return null;var i={};return"object"!==(0,p.Z)(r)||a.isValidElement(r)?i.right=r:i=r,"right"===o&&(n=i.right),"left"===o&&(n=i.left),n?a.createElement("div",{className:"".concat(c,"-extra-content"),ref:e},n):null}),O=n(86243),B=n(98064),D=n(36611),j=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.id,c=t.tabs,i=t.locale,l=t.mobile,d=t.more,s=void 0===d?{}:d,v=t.style,p=t.className,m=t.editable,h=t.tabBarGutter,g=t.rtl,k=t.removeAriaLabel,y=t.onTabClick,x=t.getPopupContainer,_=t.popupClassName,w=(0,a.useState)(!1),S=(0,b.Z)(w,2),Z=S[0],E=S[1],C=(0,a.useState)(null),R=(0,b.Z)(C,2),P=R[0],T=R[1],I=s.icon,L="".concat(o,"-more-popup"),z="".concat(n,"-dropdown"),j=null!==P?"".concat(L,"-").concat(P):null,G=null==i?void 0:i.dropdownAriaLabel,W=a.createElement(B.ZP,{onClick:function(t){y(t.key,t.domEvent),E(!1)},prefixCls:"".concat(z,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[P],"aria-label":void 0!==G?G:"expanded dropdown"},c.map(function(t){var e=t.closable,n=t.disabled,c=t.closeIcon,r=t.key,i=t.label,l=M(e,c,m,n);return a.createElement(B.sN,{key:r,id:"".concat(L,"-").concat(r),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(r),disabled:n},a.createElement("span",null,i),l&&a.createElement("button",{type:"button","aria-label":k||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),t.preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:r,event:t})}},c||m.removeIcon||"\xd7"))}));function X(t){for(var e=c.filter(function(t){return!t.disabled}),n=e.findIndex(function(t){return t.key===P})||0,a=e.length,o=0;oMath.abs(i-n)?[i,l,d-e.left,s-e.top]:[n,a,c,o]},A=function(t){var e=t.current||{},n=e.offsetWidth,a=void 0===n?0:n,o=e.offsetHeight;if(t.current){var c=t.current.getBoundingClientRect(),r=c.width,i=c.height;if(1>Math.abs(r-a))return[r,i]}return[a,void 0===o?0:o]},H=function(t,e){return t[e?0:1]},q=a.forwardRef(function(t,e){var n,o,c,i,l,d,s,p,m,h,g,S,R,M,O,B,D,j,q,K,F,V,Y,Q,J,U,$,tt,te,tn,ta,to,tc,tr,ti,tl,td,ts,tu,tf=t.className,tv=t.style,tb=t.id,tp=t.animated,tm=t.activeKey,th=t.rtl,tg=t.extra,tk=t.editable,ty=t.locale,tx=t.tabPosition,t_=t.tabBarGutter,tw=t.children,tS=t.onTabClick,tZ=t.onTabScroll,tE=t.indicator,tC=a.useContext(k),tR=tC.prefixCls,tP=tC.tabs,tT=(0,a.useRef)(null),tI=(0,a.useRef)(null),tL=(0,a.useRef)(null),tM=(0,a.useRef)(null),tN=(0,a.useRef)(null),tz=(0,a.useRef)(null),tO=(0,a.useRef)(null),tB="top"===tx||"bottom"===tx,tD=C(0,function(t,e){tB&&tZ&&tZ({direction:t>e?"left":"right"})}),tj=(0,b.Z)(tD,2),tG=tj[0],tW=tj[1],tX=C(0,function(t,e){!tB&&tZ&&tZ({direction:t>e?"top":"bottom"})}),tA=(0,b.Z)(tX,2),tH=tA[0],tq=tA[1],tK=(0,a.useState)([0,0]),tF=(0,b.Z)(tK,2),tV=tF[0],tY=tF[1],tQ=(0,a.useState)([0,0]),tJ=(0,b.Z)(tQ,2),tU=tJ[0],t$=tJ[1],t0=(0,a.useState)([0,0]),t1=(0,b.Z)(t0,2),t2=t1[0],t8=t1[1],t4=(0,a.useState)([0,0]),t6=(0,b.Z)(t4,2),t5=t6[0],t9=t6[1],t7=(n=new Map,o=(0,a.useRef)([]),c=(0,a.useState)({}),i=(0,b.Z)(c,2)[1],l=(0,a.useRef)("function"==typeof n?n():n),d=P(function(){var t=l.current;o.current.forEach(function(e){t=e(t)}),o.current=[],l.current=t,i({})}),[l.current,function(t){o.current.push(t),d()}]),t3=(0,b.Z)(t7,2),et=t3[0],ee=t3[1],en=(s=tU[0],(0,a.useMemo)(function(){for(var t=new Map,e=et.get(null===(o=tP[0])||void 0===o?void 0:o.key)||E,n=e.left+e.width,a=0;aeu?eu:t}tB&&th?(es=0,eu=Math.max(0,eo-el)):(es=Math.min(0,el-eo),eu=0);var ev=(0,a.useRef)(null),eb=(0,a.useState)(),ep=(0,b.Z)(eb,2),em=ep[0],eh=ep[1];function eg(){eh(Date.now())}function ek(){ev.current&&clearTimeout(ev.current)}p=function(t,e){function n(t,e){t(function(t){return ef(t+e)})}return!!ei&&(tB?n(tW,t):n(tq,e),ek(),eg(),!0)},m=(0,a.useState)(),g=(h=(0,b.Z)(m,2))[0],S=h[1],R=(0,a.useState)(0),O=(M=(0,b.Z)(R,2))[0],B=M[1],D=(0,a.useState)(0),q=(j=(0,b.Z)(D,2))[0],K=j[1],F=(0,a.useState)(),Y=(V=(0,b.Z)(F,2))[0],Q=V[1],J=(0,a.useRef)(),U=(0,a.useRef)(),($=(0,a.useRef)(null)).current={onTouchStart:function(t){var e=t.touches[0];S({x:e.screenX,y:e.screenY}),window.clearInterval(J.current)},onTouchMove:function(t){if(g){var e=t.touches[0],n=e.screenX,a=e.screenY;S({x:n,y:a});var o=n-g.x,c=a-g.y;p(o,c);var r=Date.now();B(r),K(r-O),Q({x:o,y:c})}},onTouchEnd:function(){if(g&&(S(null),Q(null),Y)){var t=Y.x/q,e=Y.y/q;if(!(.1>Math.max(Math.abs(t),Math.abs(e)))){var n=t,a=e;J.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(a)){window.clearInterval(J.current);return}n*=.9046104802746175,a*=.9046104802746175,p(20*n,20*a)},20)}}},onWheel:function(t){var e=t.deltaX,n=t.deltaY,a=0,o=Math.abs(e),c=Math.abs(n);o===c?a="x"===U.current?e:n:o>c?(a=e,U.current="x"):(a=n,U.current="y"),p(-a,-a)&&t.preventDefault()}},a.useEffect(function(){function t(t){$.current.onTouchMove(t)}function e(t){$.current.onTouchEnd(t)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",e,{passive:!0}),tM.current.addEventListener("touchstart",function(t){$.current.onTouchStart(t)},{passive:!0}),tM.current.addEventListener("wheel",function(t){$.current.onWheel(t)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",e)}},[]),(0,a.useEffect)(function(){return ek(),em&&(ev.current=setTimeout(function(){eh(0)},100)),ek},[em]);var ey=(tt=tB?tG:tH,tc=(te=(0,v.Z)((0,v.Z)({},t),{},{tabs:tP})).tabs,tr=te.tabPosition,ti=te.rtl,["top","bottom"].includes(tr)?(tn="width",ta=ti?"right":"left",to=Math.abs(tt)):(tn="height",ta="top",to=-tt),(0,a.useMemo)(function(){if(!tc.length)return[0,0];for(var t=tc.length,e=t,n=0;nMath.floor(to+el)){e=n-1;break}}for(var o=0,c=t-1;c>=0;c-=1)if((en.get(tc[c].key)||T)[ta]=e?[0,0]:[o,e]},[en,el,eo,ec,er,to,tr,tc.map(function(t){return t.key}).join("_"),ti])),ex=(0,b.Z)(ey,2),e_=ex[0],ew=ex[1],eS=(0,_.Z)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tm,e=en.get(t)||{width:0,height:0,left:0,right:0,top:0};if(tB){var n=tG;th?e.righttG+el&&(n=e.right+e.width-el):e.left<-tG?n=-e.left:e.left+e.width>-tG+el&&(n=-(e.left+e.width-el)),tq(0),tW(ef(n))}else{var a=tH;e.top<-tH?a=-e.top:e.top+e.height>-tH+el&&(a=-(e.top+e.height-el)),tW(0),tq(ef(a))}}),eZ={};"top"===tx||"bottom"===tx?eZ[th?"marginRight":"marginLeft"]=t_:eZ.marginTop=t_;var eE=tP.map(function(t,e){var n=t.key;return a.createElement(W,{id:tb,prefixCls:tR,key:n,tab:t,style:0===e?void 0:eZ,closable:t.closable,editable:tk,active:n===tm,renderWrapper:tw,removeAriaLabel:null==ty?void 0:ty.removeAriaLabel,onClick:function(t){tS(n,t)},onFocus:function(){eS(n),eg(),tM.current&&(th||(tM.current.scrollLeft=0),tM.current.scrollTop=0)}})}),eC=function(){return ee(function(){var t,e=new Map,n=null===(t=tN.current)||void 0===t?void 0:t.getBoundingClientRect();return tP.forEach(function(t){var a,o=t.key,c=null===(a=tN.current)||void 0===a?void 0:a.querySelector('[data-node-key="'.concat(L(o),'"]'));if(c){var r=X(c,n),i=(0,b.Z)(r,4),l=i[0],d=i[1],s=i[2],u=i[3];e.set(o,{width:l,height:d,left:s,top:u})}}),e})};(0,a.useEffect)(function(){eC()},[tP.map(function(t){return t.key}).join("_")]);var eR=P(function(){var t=A(tT),e=A(tI),n=A(tL);tY([t[0]-e[0]-n[0],t[1]-e[1]-n[1]]);var a=A(tO);t8(a),t9(A(tz));var o=A(tN);t$([o[0]-a[0],o[1]-a[1]]),eC()}),eP=tP.slice(0,e_),eT=tP.slice(ew+1),eI=[].concat((0,y.Z)(eP),(0,y.Z)(eT)),eL=en.get(tm),eM=Z({activeTabOffset:eL,horizontal:tB,indicator:tE,rtl:th}).style;(0,a.useEffect)(function(){eS()},[tm,es,eu,I(eL),I(en),tB]),(0,a.useEffect)(function(){eR()},[th]);var eN=!!eI.length,ez="".concat(tR,"-nav-wrap");return tB?th?(td=tG>0,tl=tG!==eu):(tl=tG<0,td=tG!==es):(ts=tH<0,tu=tH!==es),a.createElement(x.Z,{onResize:eR},a.createElement("div",{ref:(0,w.x1)(e,tT),role:"tablist",className:u()("".concat(tR,"-nav"),tf),style:tv,onKeyDown:function(){eg()}},a.createElement(z,{ref:tI,position:"left",extra:tg,prefixCls:tR}),a.createElement(x.Z,{onResize:eR},a.createElement("div",{className:u()(ez,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(ez,"-ping-left"),tl),"".concat(ez,"-ping-right"),td),"".concat(ez,"-ping-top"),ts),"".concat(ez,"-ping-bottom"),tu)),ref:tM},a.createElement(x.Z,{onResize:eR},a.createElement("div",{ref:tN,className:"".concat(tR,"-nav-list"),style:{transform:"translate(".concat(tG,"px, ").concat(tH,"px)"),transition:em?"none":void 0}},eE,a.createElement(N,{ref:tO,prefixCls:tR,locale:ty,editable:tk,style:(0,v.Z)((0,v.Z)({},0===eE.length?void 0:eZ),{},{visibility:eN?"hidden":null})}),a.createElement("div",{className:u()("".concat(tR,"-ink-bar"),(0,f.Z)({},"".concat(tR,"-ink-bar-animated"),tp.inkBar)),style:eM}))))),a.createElement(G,(0,r.Z)({},t,{removeAriaLabel:null==ty?void 0:ty.removeAriaLabel,ref:tz,prefixCls:tR,tabs:eI,className:!eN&&ed,tabMoving:!!em})),a.createElement(z,{ref:tL,position:"right",extra:tg,prefixCls:tR})))}),K=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.className,c=t.style,r=t.id,i=t.active,l=t.tabKey,d=t.children;return a.createElement("div",{id:r&&"".concat(r,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":r&&"".concat(r,"-tab-").concat(l),"aria-hidden":!i,style:c,className:u()(n,i&&"".concat(n,"-active"),o),ref:e},d)}),F=["renderTabBar"],V=["label","key"],Y=function(t){var e=t.renderTabBar,n=(0,m.Z)(t,F),o=a.useContext(k).tabs;return e?e((0,v.Z)((0,v.Z)({},n),{},{panes:o.map(function(t){var e=t.label,n=t.key,o=(0,m.Z)(t,V);return a.createElement(K,(0,r.Z)({tab:e,key:n,tabKey:n},o))})}),q):a.createElement(q,n)},Q=n(76758),J=["key","forceRender","style","className","destroyInactiveTabPane"],U=function(t){var e=t.id,n=t.activeKey,o=t.animated,c=t.tabPosition,i=t.destroyInactiveTabPane,l=a.useContext(k),d=l.prefixCls,s=l.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(c),(0,f.Z)({},"".concat(d,"-content-animated"),b))},s.map(function(t){var c=t.key,l=t.forceRender,d=t.style,s=t.className,f=t.destroyInactiveTabPane,h=(0,m.Z)(t,J),g=c===n;return a.createElement(Q.ZP,(0,r.Z)({key:c,visible:g,forceRender:l,removeOnLeave:!!(i||f),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(t,n){var o=t.style,i=t.className;return a.createElement(K,(0,r.Z)({},h,{prefixCls:p,id:e,tabKey:c,animated:b,active:g,style:(0,v.Z)((0,v.Z)({},d),o),className:u()(s,i),ref:n}))})})))};n(73216);var $=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],tt=0,te=a.forwardRef(function(t,e){var n=t.id,o=t.prefixCls,c=void 0===o?"rc-tabs":o,i=t.className,l=t.items,d=t.direction,s=t.activeKey,y=t.defaultActiveKey,x=t.editable,_=t.animated,w=t.tabPosition,S=void 0===w?"top":w,Z=t.tabBarGutter,E=t.tabBarStyle,C=t.tabBarExtraContent,R=t.locale,P=t.more,T=t.destroyInactiveTabPane,I=t.renderTabBar,L=t.onChange,M=t.onTabClick,N=t.onTabScroll,z=t.getPopupContainer,O=t.popupClassName,B=t.indicator,D=(0,m.Z)(t,$),j=a.useMemo(function(){return(l||[]).filter(function(t){return t&&"object"===(0,p.Z)(t)&&"key"in t})},[l]),G="rtl"===d,W=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:(0,v.Z)({inkBar:!0},"object"===(0,p.Z)(e)?e:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(_),X=(0,a.useState)(!1),A=(0,b.Z)(X,2),H=A[0],q=A[1];(0,a.useEffect)(function(){q((0,g.Z)())},[]);var K=(0,h.Z)(function(){var t;return null===(t=j[0])||void 0===t?void 0:t.key},{value:s,defaultValue:y}),F=(0,b.Z)(K,2),V=F[0],Q=F[1],J=(0,a.useState)(function(){return j.findIndex(function(t){return t.key===V})}),te=(0,b.Z)(J,2),tn=te[0],ta=te[1];(0,a.useEffect)(function(){var t,e=j.findIndex(function(t){return t.key===V});-1===e&&(e=Math.max(0,Math.min(tn,j.length-1)),Q(null===(t=j[e])||void 0===t?void 0:t.key)),ta(e)},[j.map(function(t){return t.key}).join("_"),V,tn]);var to=(0,h.Z)(null,{value:n}),tc=(0,b.Z)(to,2),tr=tc[0],ti=tc[1];(0,a.useEffect)(function(){n||(ti("rc-tabs-".concat(tt)),tt+=1)},[]);var tl={id:tr,activeKey:V,animated:W,tabPosition:S,rtl:G,mobile:H},td=(0,v.Z)((0,v.Z)({},tl),{},{editable:x,locale:R,more:P,tabBarGutter:Z,onTabClick:function(t,e){null==M||M(t,e);var n=t!==V;Q(t),n&&(null==L||L(t))},onTabScroll:N,extra:C,style:E,panes:null,getPopupContainer:z,popupClassName:O,indicator:B});return a.createElement(k.Provider,{value:{tabs:j,prefixCls:c}},a.createElement("div",(0,r.Z)({ref:e,id:n,className:u()(c,"".concat(c,"-").concat(S),(0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(c,"-mobile"),H),"".concat(c,"-editable"),x),"".concat(c,"-rtl"),G),i)},D),a.createElement(Y,(0,r.Z)({},td,{renderTabBar:I})),a.createElement(U,(0,r.Z)({destroyInactiveTabPane:T},tl,{animated:W}))))}),tn=n(68216),ta=n(35164),to=n(4783),tc=n(84786);let tr={motionAppear:!1,motionEnter:!0,motionLeave:!0};var ti=n(49685),tl=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(t);oe.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n},td=n(43501),ts=n(15510),tu=n(74593),tf=n(54621),tv=n(50577),tb=t=>{let{componentCls:e,motionDurationSlow:n}=t;return[{[e]:{["".concat(e,"-switch")]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity ".concat(n)}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity ".concat(n)}}}}},[(0,tv.oN)(t,"slide-up"),(0,tv.oN)(t,"slide-down")]]};let tp=t=>{let{componentCls:e,tabsCardPadding:n,cardBg:a,cardGutter:o,colorBorderSecondary:c,itemSelectedColor:r}=t;return{["".concat(e,"-card")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{margin:0,padding:n,background:a,border:"".concat((0,td.bf)(t.lineWidth)," ").concat(t.lineType," ").concat(c),transition:"all ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut)},["".concat(e,"-tab-active")]:{color:r,background:t.colorBgContainer},["".concat(e,"-ink-bar")]:{visibility:"hidden"}},["&".concat(e,"-top, &").concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginLeft:{_skip_check_:!0,value:(0,td.bf)(o)}}}},["&".concat(e,"-top")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:"".concat((0,td.bf)(t.borderRadiusLG)," ").concat((0,td.bf)(t.borderRadiusLG)," 0 0")},["".concat(e,"-tab-active")]:{borderBottomColor:t.colorBgContainer}}},["&".concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:"0 0 ".concat((0,td.bf)(t.borderRadiusLG)," ").concat((0,td.bf)(t.borderRadiusLG))},["".concat(e,"-tab-active")]:{borderTopColor:t.colorBgContainer}}},["&".concat(e,"-left, &").concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginTop:(0,td.bf)(o)}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,td.bf)(t.borderRadiusLG)," 0 0 ").concat((0,td.bf)(t.borderRadiusLG))}},["".concat(e,"-tab-active")]:{borderRightColor:{_skip_check_:!0,value:t.colorBgContainer}}}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,td.bf)(t.borderRadiusLG)," ").concat((0,td.bf)(t.borderRadiusLG)," 0")}},["".concat(e,"-tab-active")]:{borderLeftColor:{_skip_check_:!0,value:t.colorBgContainer}}}}}}},tm=t=>{let{componentCls:e,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=t;return{["".concat(e,"-dropdown")]:Object.assign(Object.assign({},(0,ts.Wf)(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:t.zIndexPopup,display:"block","&-hidden":{display:"none"},["".concat(e,"-dropdown-menu")]:{maxHeight:t.tabsDropdownHeight,margin:0,padding:"".concat((0,td.bf)(a)," 0"),overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:t.colorBgContainer,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ts.vS),{display:"flex",alignItems:"center",minWidth:t.tabsDropdownWidth,margin:0,padding:"".concat((0,td.bf)(t.paddingXXS)," ").concat((0,td.bf)(t.paddingSM)),color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer",transition:"all ".concat(t.motionDurationSlow),"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:t.marginSM},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:t.controlItemBgHover},"&-disabled":{"&, &:hover":{color:t.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},th=t=>{let{componentCls:e,margin:n,colorBorderSecondary:a,horizontalMargin:o,verticalItemPadding:c,verticalItemMargin:r,calc:i}=t;return{["".concat(e,"-top, ").concat(e,"-bottom")]:{flexDirection:"column",["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:"".concat((0,td.bf)(t.lineWidth)," ").concat(t.lineType," ").concat(a),content:"''"},["".concat(e,"-ink-bar")]:{height:t.lineWidthBold,"&-animated":{transition:"width ".concat(t.motionDurationSlow,", left ").concat(t.motionDurationSlow,",\n right ").concat(t.motionDurationSlow)}},["".concat(e,"-nav-wrap")]:{"&::before, &::after":{top:0,bottom:0,width:t.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowRight},["&".concat(e,"-nav-wrap-ping-left::before")]:{opacity:1},["&".concat(e,"-nav-wrap-ping-right::after")]:{opacity:1}}}},["".concat(e,"-top")]:{["> ".concat(e,"-nav,\n > div > ").concat(e,"-nav")]:{"&::before":{bottom:0},["".concat(e,"-ink-bar")]:{bottom:0}}},["".concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},["".concat(e,"-ink-bar")]:{top:0}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{order:0}},["".concat(e,"-left, ").concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{flexDirection:"column",minWidth:i(t.controlHeight).mul(1.25).equal(),["".concat(e,"-tab")]:{padding:c,textAlign:"center"},["".concat(e,"-tab + ").concat(e,"-tab")]:{margin:r},["".concat(e,"-nav-wrap")]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:t.controlHeight},"&::before":{top:0,boxShadow:t.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:t.boxShadowTabsOverflowBottom},["&".concat(e,"-nav-wrap-ping-top::before")]:{opacity:1},["&".concat(e,"-nav-wrap-ping-bottom::after")]:{opacity:1}},["".concat(e,"-ink-bar")]:{width:t.lineWidthBold,"&-animated":{transition:"height ".concat(t.motionDurationSlow,", top ").concat(t.motionDurationSlow)}},["".concat(e,"-nav-list, ").concat(e,"-nav-operations")]:{flex:"1 0 auto",flexDirection:"column"}}},["".concat(e,"-left")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-ink-bar")]:{right:{_skip_check_:!0,value:0}}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{marginLeft:{_skip_check_:!0,value:(0,td.bf)(i(t.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:"".concat((0,td.bf)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorder)},["> ".concat(e,"-content > ").concat(e,"-tabpane")]:{paddingLeft:{_skip_check_:!0,value:t.paddingLG}}}},["".concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{order:1,["".concat(e,"-ink-bar")]:{left:{_skip_check_:!0,value:0}}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{order:0,marginRight:{_skip_check_:!0,value:i(t.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:"".concat((0,td.bf)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorder)},["> ".concat(e,"-content > ").concat(e,"-tabpane")]:{paddingRight:{_skip_check_:!0,value:t.paddingLG}}}}}},tg=t=>{let{componentCls:e,cardPaddingSM:n,cardPaddingLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:c}=t;return{[e]:{"&-small":{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:o,fontSize:t.titleFontSizeSM}}},"&-large":{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:c,fontSize:t.titleFontSizeLG}}}},["".concat(e,"-card")]:{["&".concat(e,"-small")]:{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:n}},["&".concat(e,"-bottom")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:"0 0 ".concat((0,td.bf)(t.borderRadius)," ").concat((0,td.bf)(t.borderRadius))}},["&".concat(e,"-top")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:"".concat((0,td.bf)(t.borderRadius)," ").concat((0,td.bf)(t.borderRadius)," 0 0")}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,td.bf)(t.borderRadius)," ").concat((0,td.bf)(t.borderRadius)," 0")}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,td.bf)(t.borderRadius)," 0 0 ").concat((0,td.bf)(t.borderRadius))}}}},["&".concat(e,"-large")]:{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:a}}}}}},tk=t=>{let{componentCls:e,itemActiveColor:n,itemHoverColor:a,iconCls:o,tabsHorizontalItemMargin:c,horizontalItemPadding:r,itemSelectedColor:i,itemColor:l}=t,d="".concat(e,"-tab");return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:r,fontSize:t.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,ts.Qy)(t)),"&-btn":{outline:"none",transition:"all ".concat(t.motionDurationSlow),["".concat(d,"-icon:not(:last-child)")]:{marginInlineEnd:t.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:t.calc(t.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:t.marginXS},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all ".concat(t.motionDurationSlow),"&:hover":{color:t.colorTextHeading}},"&:hover":{color:a},["&".concat(d,"-active ").concat(d,"-btn")]:{color:i,textShadow:t.tabsActiveTextShadow},["&".concat(d,"-disabled")]:{color:t.colorTextDisabled,cursor:"not-allowed"},["&".concat(d,"-disabled ").concat(d,"-btn, &").concat(d,"-disabled ").concat(e,"-remove")]:{"&:focus, &:active":{color:t.colorTextDisabled}},["& ".concat(d,"-remove ").concat(o)]:{margin:0},["".concat(o,":not(:last-child)")]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},["".concat(d," + ").concat(d)]:{margin:{_skip_check_:!0,value:c}}}},ty=t=>{let{componentCls:e,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:o,calc:c}=t;return{["".concat(e,"-rtl")]:{direction:"rtl",["".concat(e,"-nav")]:{["".concat(e,"-tab")]:{margin:{_skip_check_:!0,value:n},["".concat(e,"-tab:last-of-type")]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,td.bf)(t.marginSM)}},["".concat(e,"-tab-remove")]:{marginRight:{_skip_check_:!0,value:(0,td.bf)(t.marginXS)},marginLeft:{_skip_check_:!0,value:(0,td.bf)(c(t.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav")]:{order:1},["> ".concat(e,"-content-holder")]:{order:0}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav")]:{order:0},["> ".concat(e,"-content-holder")]:{order:1}},["&".concat(e,"-card").concat(e,"-top, &").concat(e,"-card").concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},["".concat(e,"-dropdown-rtl")]:{direction:"rtl"},["".concat(e,"-menu-item")]:{["".concat(e,"-dropdown-rtl")]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tx=t=>{let{componentCls:e,tabsCardPadding:n,cardHeight:a,cardGutter:o,itemHoverColor:c,itemActiveColor:r,colorBorderSecondary:i}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ts.Wf)(t)),{display:"flex",["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{position:"relative",display:"flex",flex:"none",alignItems:"center",["".concat(e,"-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 ".concat(t.motionDurationSlow),content:"''",pointerEvents:"none"}},["".concat(e,"-nav-list")]:{position:"relative",display:"flex",transition:"opacity ".concat(t.motionDurationSlow)},["".concat(e,"-nav-operations")]:{display:"flex",alignSelf:"stretch"},["".concat(e,"-nav-operations-hidden")]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},["".concat(e,"-nav-more")]:{position:"relative",padding:n,background:"transparent",border:0,color:t.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:t.calc(t.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},["".concat(e,"-nav-add")]:Object.assign({minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:o},padding:"0 ".concat((0,td.bf)(t.paddingXS)),background:"transparent",border:"".concat((0,td.bf)(t.lineWidth)," ").concat(t.lineType," ").concat(i),borderRadius:"".concat((0,td.bf)(t.borderRadiusLG)," ").concat((0,td.bf)(t.borderRadiusLG)," 0 0"),outline:"none",cursor:"pointer",color:t.colorText,transition:"all ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut),"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:r}},(0,ts.Qy)(t))},["".concat(e,"-extra-content")]:{flex:"none"},["".concat(e,"-ink-bar")]:{position:"absolute",background:t.inkBarColor,pointerEvents:"none"}}),tk(t)),{["".concat(e,"-content")]:{position:"relative",width:"100%"},["".concat(e,"-content-holder")]:{flex:"auto",minWidth:0,minHeight:0},["".concat(e,"-tabpane")]:{outline:"none","&-hidden":{display:"none"}}}),["".concat(e,"-centered")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-nav-wrap")]:{["&:not([class*='".concat(e,"-nav-wrap-ping'])")]:{justifyContent:"center"}}}}}};var t_=(0,tu.I$)("Tabs",t=>{let e=(0,tf.IX)(t,{tabsCardPadding:t.cardPadding,dropdownEdgeChildVerticalPadding:t.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 ".concat((0,td.bf)(t.horizontalItemGutter)),tabsHorizontalItemMarginRTL:"0 0 0 ".concat((0,td.bf)(t.horizontalItemGutter))});return[tg(e),ty(e),th(e),tm(e),tp(e),tx(e),tb(e)]},t=>{let e=t.controlHeightLG;return{zIndexPopup:t.zIndexPopupBase+50,cardBg:t.colorFillAlter,cardHeight:e,cardPadding:"".concat((e-Math.round(t.fontSize*t.lineHeight))/2-t.lineWidth,"px ").concat(t.padding,"px"),cardPaddingSM:"".concat(1.5*t.paddingXXS,"px ").concat(t.padding,"px"),cardPaddingLG:"".concat(t.paddingXS,"px ").concat(t.padding,"px ").concat(1.5*t.paddingXXS,"px"),titleFontSize:t.fontSize,titleFontSizeLG:t.fontSizeLG,titleFontSizeSM:t.fontSize,inkBarColor:t.colorPrimary,horizontalMargin:"0 0 ".concat(t.margin,"px 0"),horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"".concat(t.paddingSM,"px 0"),horizontalItemPaddingSM:"".concat(t.paddingXS,"px 0"),horizontalItemPaddingLG:"".concat(t.padding,"px 0"),verticalItemPadding:"".concat(t.paddingXS,"px ").concat(t.paddingLG,"px"),verticalItemMargin:"".concat(t.margin,"px 0 0 0"),itemColor:t.colorText,itemSelectedColor:t.colorPrimary,itemHoverColor:t.colorPrimaryHover,itemActiveColor:t.colorPrimaryActive,cardGutter:t.marginXXS/2}}),tw=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(t);oe.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n};let tS=t=>{var e,n,r,i,l,s,f,v,b,p,m;let h;let{type:g,className:k,rootClassName:y,size:x,onEdit:_,hideAdd:w,centered:S,addIcon:Z,removeIcon:E,moreIcon:C,more:R,popupClassName:P,children:T,items:I,animated:L,style:M,indicatorSize:N,indicator:z}=t,O=tw(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:B}=O,{direction:D,tabs:j,getPrefixCls:G,getPopupContainer:W}=a.useContext(tn.E_),X=G("tabs",B),A=(0,ta.Z)(X),[H,q,K]=t_(X,A);"editable-card"===g&&(h={onEdit:(t,e)=>{let{key:n,event:a}=e;null==_||_("add"===t?a:n,t)},removeIcon:null!==(e=null!=E?E:null==j?void 0:j.removeIcon)&&void 0!==e?e:a.createElement(o.Z,null),addIcon:(null!=Z?Z:null==j?void 0:j.addIcon)||a.createElement(d,null),showAdd:!0!==w});let F=G(),V=(0,to.Z)(x),Y=I||(0,ti.Z)(T).map(t=>{if(a.isValidElement(t)){let{key:e,props:n}=t,a=n||{},{tab:o}=a,c=tl(a,["tab"]);return Object.assign(Object.assign({key:String(e)},c),{label:o})}return null}).filter(t=>t),Q=function(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(e=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{})).tabPane&&(e.tabPaneMotion=Object.assign(Object.assign({},tr),{motionName:(0,tc.m)(t,"switch")})),e}(X,L),J=Object.assign(Object.assign({},null==j?void 0:j.style),M),U={align:null!==(n=null==z?void 0:z.align)&&void 0!==n?n:null===(r=null==j?void 0:j.indicator)||void 0===r?void 0:r.align,size:null!==(f=null!==(l=null!==(i=null==z?void 0:z.size)&&void 0!==i?i:N)&&void 0!==l?l:null===(s=null==j?void 0:j.indicator)||void 0===s?void 0:s.size)&&void 0!==f?f:null==j?void 0:j.indicatorSize};return H(a.createElement(te,Object.assign({direction:D,getPopupContainer:W},O,{items:Y,className:u()({["".concat(X,"-").concat(V)]:V,["".concat(X,"-card")]:["card","editable-card"].includes(g),["".concat(X,"-editable-card")]:"editable-card"===g,["".concat(X,"-centered")]:S},null==j?void 0:j.className,k,y,q,K,A),popupClassName:u()(P,q,K,A),style:J,editable:h,more:Object.assign({icon:null!==(m=null!==(p=null!==(b=null===(v=null==j?void 0:j.more)||void 0===v?void 0:v.icon)&&void 0!==b?b:null==j?void 0:j.moreIcon)&&void 0!==p?p:C)&&void 0!==m?m:a.createElement(c.Z,null),transitionName:"".concat(F,"-slide-up")},R),prefixCls:X,animated:Q,indicator:U})))};tS.TabPane=()=>null;var tZ=tS}}]);