"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4229],{14555:function(Rt,we,d){d.d(we,{Z:function(){return G}});var Ie=d(52319),Se=d(93236),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Ne=Ze,W=d(85651),q=function(P,fe){return Se.createElement(W.Z,(0,Ie.Z)({},P,{ref:fe,icon:Ne}))},G=Se.forwardRef(q)},94229:function(Rt,we,d){d.d(we,{Z:function(){return Ra}});var Ie=d(96944),Se=d(60513),Ze=d(14555),Ne=d(84875),W=d.n(Ne),q=d(52319),G=d(40749),K=d(88351),P=d(67654),fe=d(11371),ye=d(87841),a=d(93236),wt=d(23389),Ke=d(71639),It=d(60025),xe=(0,a.createContext)(null),Zt=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,i=e.style,o=e.id,l=e.active,s=e.tabKey,c=e.children;return a.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!l,style:i,className:W()(r,l&&"".concat(r,"-active"),n),ref:t},c)}),Xe=Zt,Nt=["key","forceRender","style","className"];function Lt(e){var t=e.id,r=e.activeKey,n=e.animated,i=e.tabPosition,o=e.destroyInactiveTabPane,l=a.useContext(xe),s=l.prefixCls,c=l.tabs,$=n.tabPane,E="".concat(s,"-tabpane");return a.createElement("div",{className:W()("".concat(s,"-content-holder"))},a.createElement("div",{className:W()("".concat(s,"-content"),"".concat(s,"-content-").concat(i),(0,G.Z)({},"".concat(s,"-content-animated"),$))},c.map(function(u){var y=u.key,N=u.forceRender,x=u.style,z=u.className,O=(0,ye.Z)(u,Nt),I=y===r;return a.createElement(It.ZP,(0,q.Z)({key:y,visible:I,forceRender:N,removeOnLeave:!!o,leavedClassName:"".concat(E,"-hidden")},n.tabPaneMotion),function(S,M){var H=S.style,R=S.className;return a.createElement(Xe,(0,q.Z)({},O,{prefixCls:E,id:t,tabKey:y,animated:$,active:I,style:(0,K.Z)((0,K.Z)({},x),H),className:W()(z,R),ref:M}))})})))}var Ve=d(96835),Fe=d(54640),zt=d(92104),Ue=d(58122),Mt=d(7001),Ye={width:0,height:0,left:0,top:0};function Ot(e,t,r){return(0,a.useMemo)(function(){for(var n,i=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||Ye,l=o.left+o.width,s=0;sp?(T=w,Z.current="x"):(T=v,Z.current="y"),t(-T,-T)&&h.preventDefault()}var B=(0,a.useRef)(null);B.current={onTouchStart:M,onTouchMove:H,onTouchEnd:R,onWheel:C},a.useEffect(function(){function h(f){B.current.onTouchStart(f)}function w(f){B.current.onTouchMove(f)}function v(f){B.current.onTouchEnd(f)}function T(f){B.current.onWheel(f)}return document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",v,{passive:!1}),e.current.addEventListener("touchstart",h,{passive:!1}),e.current.addEventListener("wheel",T),function(){document.removeEventListener("touchmove",w),document.removeEventListener("touchend",v)}},[])}var Dt=d(76489);function qe(e){var t=(0,a.useState)(0),r=(0,P.Z)(t,2),n=r[0],i=r[1],o=(0,a.useRef)(0),l=(0,a.useRef)();return l.current=e,(0,Dt.o)(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){o.current===n&&(o.current+=1,i(o.current))}}function Wt(e){var t=(0,a.useRef)([]),r=(0,a.useState)({}),n=(0,P.Z)(r,2),i=n[1],o=(0,a.useRef)(typeof e=="function"?e():e),l=qe(function(){var c=o.current;t.current.forEach(function($){c=$(c)}),t.current=[],o.current=c,i({})});function s(c){t.current.push(c),l()}return[o.current,s]}var et={width:0,height:0,left:0,top:0,right:0};function Gt(e,t,r,n,i,o,l){var s=l.tabs,c=l.tabPosition,$=l.rtl,E,u,y;return["top","bottom"].includes(c)?(E="width",u=$?"right":"left",y=Math.abs(r)):(E="height",u="top",y=-r),(0,a.useMemo)(function(){if(!s.length)return[0,0];for(var N=s.length,x=N,z=0;zy+t){x=z-1;break}}for(var I=0,S=N-1;S>=0;S-=1){var M=e.get(s[S].key)||et;if(M[u]=x?[0,0]:[I,x]},[e,t,n,i,o,y,c,s.map(function(N){return N.key}).join("_"),$])}function tt(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var Ht="TABS_DQ";function at(e){return String(e).replace(/"/g,Ht)}function nt(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}function jt(e,t){var r=e.prefixCls,n=e.editable,i=e.locale,o=e.style;return!n||n.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}var rt=a.forwardRef(jt),kt=a.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,i=e.extra;if(!i)return null;var o,l={};return(0,fe.Z)(i)==="object"&&!a.isValidElement(i)?l=i:l.right=i,r==="right"&&(o=l.right),r==="left"&&(o=l.left),o?a.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null}),it=kt,Kt=d(35940),ot=d(84357),Y=d(38433);function Xt(e,t){var r=e.prefixCls,n=e.id,i=e.tabs,o=e.locale,l=e.mobile,s=e.moreIcon,c=s===void 0?"More":s,$=e.moreTransitionName,E=e.style,u=e.className,y=e.editable,N=e.tabBarGutter,x=e.rtl,z=e.removeAriaLabel,O=e.onTabClick,I=e.getPopupContainer,S=e.popupClassName,M=(0,a.useState)(!1),H=(0,P.Z)(M,2),R=H[0],Z=H[1],C=(0,a.useState)(null),B=(0,P.Z)(C,2),h=B[0],w=B[1],v="".concat(n,"-more-popup"),T="".concat(r,"-dropdown"),f=h!==null?"".concat(v,"-").concat(h):null,p=o==null?void 0:o.dropdownAriaLabel;function X(m,A){m.preventDefault(),m.stopPropagation(),y.onEdit("remove",{key:A,event:m})}var le=a.createElement(ot.ZP,{onClick:function(A){var U=A.key,k=A.domEvent;O(U,k),Z(!1)},prefixCls:"".concat(T,"-menu"),id:v,tabIndex:-1,role:"listbox","aria-activedescendant":f,selectedKeys:[h],"aria-label":p!==void 0?p:"expanded dropdown"},i.map(function(m){var A=m.closable,U=m.disabled,k=m.closeIcon,V=m.key,ae=m.label,te=nt(A,k,y,U);return a.createElement(ot.sN,{key:V,id:"".concat(v,"-").concat(V),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(V),disabled:U},a.createElement("span",null,ae),te&&a.createElement("button",{type:"button","aria-label":z||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ve){ve.stopPropagation(),X(ve,V)}},k||y.removeIcon||"\xD7"))}));function Q(m){for(var A=i.filter(function(te){return!te.disabled}),U=A.findIndex(function(te){return te.key===h})||0,k=A.length,V=0;Vb?"left":"right"})}),f=(0,P.Z)(T,2),p=f[0],X=f[1],le=Qe(0,function(g,b){!v&&M&&M({direction:g>b?"top":"bottom"})}),Q=(0,P.Z)(le,2),F=Q[0],ee=Q[1],pe=(0,a.useState)([0,0]),se=(0,P.Z)(pe,2),m=se[0],A=se[1],U=(0,a.useState)([0,0]),k=(0,P.Z)(U,2),V=k[0],ae=k[1],te=(0,a.useState)([0,0]),ue=(0,P.Z)(te,2),ve=ue[0],Le=ue[1],ze=(0,a.useState)([0,0]),me=(0,P.Z)(ze,2),Me=me[0],Oe=me[1],L=Wt(new Map),ne=(0,P.Z)(L,2),ge=ne[0],wa=ne[1],Pe=Ot(o,ge,V[0]),Be=Te(m,v),he=Te(V,v),Ae=Te(ve,v),ut=Te(Me,v),vt=Bece?ce:g}var ft=(0,a.useRef)(),Za=(0,a.useState)(),bt=(0,P.Z)(Za,2),Ee=bt[0],pt=bt[1];function We(){pt(Date.now())}function Ge(){window.clearTimeout(ft.current)}At(C,function(g,b){function D(j,oe){j(function(_){var Wa=De(_+oe);return Wa})}return vt?(v?D(X,g):D(ee,b),Ge(),We(),!0):!1}),(0,a.useEffect)(function(){return Ge(),Ee&&(ft.current=window.setTimeout(function(){pt(0)},100)),Ge},[Ee]);var Na=Gt(Pe,J,v?p:F,he,Ae,ut,(0,K.Z)((0,K.Z)({},e),{},{tabs:o})),mt=(0,P.Z)(Na,2),La=mt[0],za=mt[1],gt=(0,zt.Z)(function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,b=Pe.get(g)||{width:0,height:0,left:0,right:0,top:0};if(v){var D=p;u?b.rightp+J&&(D=b.right+b.width-J):b.left<-p?D=-b.left:b.left+b.width>-p+J&&(D=-(b.left+b.width-J)),ee(0),X(De(D))}else{var j=F;b.top<-F?j=-b.top:b.top+b.height>-F+J&&(j=-(b.top+b.height-J)),X(0),ee(De(j))}}),Re={};z==="top"||z==="bottom"?Re[u?"marginRight":"marginLeft"]=O:Re.marginTop=O;var ht=o.map(function(g,b){var D=g.key;return a.createElement(Ut,{id:c,prefixCls:i,key:D,tab:g,style:b===0?void 0:Re,closable:g.closable,editable:N,active:D===E,renderWrapper:I,removeAriaLabel:x==null?void 0:x.removeAriaLabel,onClick:function(oe){S(D,oe)},onFocus:function(){gt(D),We(),C.current&&(u||(C.current.scrollLeft=0),C.current.scrollTop=0)}})}),$t=function(){return wa(function(){var b=new Map;return o.forEach(function(D){var j,oe=D.key,_=(j=B.current)===null||j===void 0?void 0:j.querySelector('[data-node-key="'.concat(at(oe),'"]'));_&&b.set(oe,{width:_.offsetWidth,height:_.offsetHeight,left:_.offsetLeft,top:_.offsetTop})}),b})};(0,a.useEffect)(function(){$t()},[o.map(function(g){return g.key}).join("_")]);var He=qe(function(){var g=de(H),b=de(R),D=de(Z);A([g[0]-b[0]-D[0],g[1]-b[1]-D[1]]);var j=de(w);Le(j);var oe=de(h);Oe(oe);var _=de(B);ae([_[0]-j[0],_[1]-j[1]]),$t()}),Ma=o.slice(0,La),Oa=o.slice(za+1),St=[].concat((0,Ve.Z)(Ma),(0,Ve.Z)(Oa)),Ba=(0,a.useState)(),yt=(0,P.Z)(Ba,2),Aa=yt[0],Da=yt[1],ie=Pe.get(E),xt=(0,a.useRef)();function Ct(){Ue.Z.cancel(xt.current)}(0,a.useEffect)(function(){var g={};return ie&&(v?(u?g.right=ie.right:g.left=ie.left,g.width=ie.width):(g.top=ie.top,g.height=ie.height)),Ct(),xt.current=(0,Ue.Z)(function(){Da(g)}),Ct},[ie,v,u]),(0,a.useEffect)(function(){gt()},[E,re,ce,tt(ie),tt(Pe),v]),(0,a.useEffect)(function(){He()},[u]);var Tt=!!St.length,$e="".concat(i,"-nav-wrap"),je,ke,Pt,Et;return v?u?(ke=p>0,je=p!==ce):(je=p<0,ke=p!==re):(Pt=F<0,Et=F!==re),a.createElement(Fe.Z,{onResize:He},a.createElement("div",{ref:(0,Mt.x1)(t,H),role:"tablist",className:W()("".concat(i,"-nav"),l),style:s,onKeyDown:function(){We()}},a.createElement(it,{ref:R,position:"left",extra:y,prefixCls:i}),a.createElement("div",{className:W()($e,(r={},(0,G.Z)(r,"".concat($e,"-ping-left"),je),(0,G.Z)(r,"".concat($e,"-ping-right"),ke),(0,G.Z)(r,"".concat($e,"-ping-top"),Pt),(0,G.Z)(r,"".concat($e,"-ping-bottom"),Et),r)),ref:C},a.createElement(Fe.Z,{onResize:He},a.createElement("div",{ref:B,className:"".concat(i,"-nav-list"),style:{transform:"translate(".concat(p,"px, ").concat(F,"px)"),transition:Ee?"none":void 0}},ht,a.createElement(rt,{ref:w,prefixCls:i,locale:x,editable:N,style:(0,K.Z)((0,K.Z)({},ht.length===0?void 0:Re),{},{visibility:Tt?"hidden":null})}),a.createElement("div",{className:W()("".concat(i,"-ink-bar"),(0,G.Z)({},"".concat(i,"-ink-bar-animated"),$.inkBar)),style:Aa})))),a.createElement(Vt,(0,q.Z)({},e,{removeAriaLabel:x==null?void 0:x.removeAriaLabel,ref:h,prefixCls:i,tabs:St,className:!Tt&&Ia,tabMoving:!!Ee})),a.createElement(it,{ref:Z,position:"right",extra:y,prefixCls:i})))}var lt=a.forwardRef(Yt),Qt=["renderTabBar"],Jt=["label","key"];function _t(e){var t=e.renderTabBar,r=(0,ye.Z)(e,Qt),n=a.useContext(xe),i=n.tabs;if(t){var o=(0,K.Z)((0,K.Z)({},r),{},{panes:i.map(function(l){var s=l.label,c=l.key,$=(0,ye.Z)(l,Jt);return a.createElement(Xe,(0,q.Z)({tab:s,key:c,tabKey:c},$))})});return t(o,lt)}return a.createElement(lt,r)}var Ga=d(24599);function qt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,K.Z)({inkBar:!0},(0,fe.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ea=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],st=0;function ta(e,t){var r,n=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,l=e.className,s=e.items,c=e.direction,$=e.activeKey,E=e.defaultActiveKey,u=e.editable,y=e.animated,N=e.tabPosition,x=N===void 0?"top":N,z=e.tabBarGutter,O=e.tabBarStyle,I=e.tabBarExtraContent,S=e.locale,M=e.moreIcon,H=e.moreTransitionName,R=e.destroyInactiveTabPane,Z=e.renderTabBar,C=e.onChange,B=e.onTabClick,h=e.onTabScroll,w=e.getPopupContainer,v=e.popupClassName,T=(0,ye.Z)(e,ea),f=a.useMemo(function(){return(s||[]).filter(function(L){return L&&(0,fe.Z)(L)==="object"&&"key"in L})},[s]),p=c==="rtl",X=qt(y),le=(0,a.useState)(!1),Q=(0,P.Z)(le,2),F=Q[0],ee=Q[1];(0,a.useEffect)(function(){ee((0,wt.Z)())},[]);var pe=(0,Ke.Z)(function(){var L;return(L=f[0])===null||L===void 0?void 0:L.key},{value:$,defaultValue:E}),se=(0,P.Z)(pe,2),m=se[0],A=se[1],U=(0,a.useState)(function(){return f.findIndex(function(L){return L.key===m})}),k=(0,P.Z)(U,2),V=k[0],ae=k[1];(0,a.useEffect)(function(){var L=f.findIndex(function(ge){return ge.key===m});if(L===-1){var ne;L=Math.max(0,Math.min(V,f.length-1)),A((ne=f[L])===null||ne===void 0?void 0:ne.key)}ae(L)},[f.map(function(L){return L.key}).join("_"),m,V]);var te=(0,Ke.Z)(null,{value:n}),ue=(0,P.Z)(te,2),ve=ue[0],Le=ue[1];(0,a.useEffect)(function(){n||(Le("rc-tabs-".concat(st)),st+=1)},[]);function ze(L,ne){B==null||B(L,ne);var ge=L!==m;A(L),ge&&(C==null||C(L))}var me={id:ve,activeKey:m,animated:X,tabPosition:x,rtl:p,mobile:F},Me,Oe=(0,K.Z)((0,K.Z)({},me),{},{editable:u,locale:S,moreIcon:M,moreTransitionName:H,tabBarGutter:z,onTabClick:ze,onTabScroll:h,extra:I,style:O,panes:null,getPopupContainer:w,popupClassName:v});return a.createElement(xe.Provider,{value:{tabs:f,prefixCls:o}},a.createElement("div",(0,q.Z)({ref:t,id:n,className:W()(o,"".concat(o,"-").concat(x),(r={},(0,G.Z)(r,"".concat(o,"-mobile"),F),(0,G.Z)(r,"".concat(o,"-editable"),u),(0,G.Z)(r,"".concat(o,"-rtl"),p),r),l)},T),Me,a.createElement(_t,(0,q.Z)({},Oe,{renderTabBar:Z})),a.createElement(Lt,(0,q.Z)({destroyInactiveTabPane:R},me,{animated:X}))))}var aa=a.forwardRef(ta),na=aa,ra=na,ia=d(81731),oa=d(11318),la=()=>null,sa=d(19694);const ca={motionAppear:!1,motionEnter:!0,motionLeave:!0};function da(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},ca),{motionName:(0,sa.m)(e,"switch")})),r}var ua=d(937),va=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);it)}function ba(e,t){if(e)return e;const r=(0,ua.Z)(t).map(n=>{if(a.isValidElement(n)){const{key:i,props:o}=n,l=o||{},{tab:s}=l,c=va(l,["tab"]);return Object.assign(Object.assign({key:String(i)},c),{label:s})}return null});return fa(r)}var be=d(16799),pa=d(3560),ma=d(46432),ct=d(60247),ga=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[(0,ct.oN)(e,"slide-up"),(0,ct.oN)(e,"slide-down")]]};const ha=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${e.lineWidth}px ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,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:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},$a=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,be.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:`${n}px 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({},be.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Sa=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,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:`${r}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ya=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},xa=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:l,itemSelectedColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},(0,be.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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:n},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},Ca=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[n]:{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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ta=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:i,itemHoverColor:o,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.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:r,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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:l}},(0,be.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),xa(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'])`]:{justifyContent:"center"}}}}}};var Pa=(0,pa.Z)("Tabs",e=>{const t=(0,ma.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[ya(t),Ca(t),Sa(t),$a(t),ha(t),Ta(t),ga(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Ea=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{type:t,className:r,rootClassName:n,size:i,onEdit:o,hideAdd:l,centered:s,addIcon:c,popupClassName:$,children:E,items:u,animated:y,style:N}=e,x=Ea(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:z,moreIcon:O=a.createElement(Se.Z,null)}=x,{direction:I,tabs:S,getPrefixCls:M,getPopupContainer:H}=a.useContext(ia.E_),R=M("tabs",z),[Z,C]=Pa(R);let B;t==="editable-card"&&(B={onEdit:(p,X)=>{let{key:le,event:Q}=X;o==null||o(p==="add"?Q:le,p)},removeIcon:a.createElement(Ie.Z,null),addIcon:c||a.createElement(Ze.Z,null),showAdd:l!==!0});const h=M(),w=ba(u,E),v=da(R,y),T=(0,oa.Z)(i),f=Object.assign(Object.assign({},S==null?void 0:S.style),N);return Z(a.createElement(ra,Object.assign({direction:I,getPopupContainer:H,moreTransitionName:`${h}-slide-up`},x,{items:w,className:W()({[`${R}-${T}`]:T,[`${R}-card`]:["card","editable-card"].includes(t),[`${R}-editable-card`]:t==="editable-card",[`${R}-centered`]:s},S==null?void 0:S.className,r,n,C),popupClassName:W()($,C),style:f,editable:B,moreIcon:O,prefixCls:R,animated:v})))};dt.TabPane=la;var Ra=dt}}]);