1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7221],{47221:function(e,n,a){a.d(n,{Z:function(){return W}});var t=a(67294),o=a(18073),r=a(93967),l=a.n(r),i=a(87462),c=a(74902),d=a(97685),s=a(71002),p=a(21770),u=a(80334),f=a(91),m=a(50344),b=a(4942),v=a(29372),$=a(15105),g=t.forwardRef(function(e,n){var a=e.prefixCls,o=e.forceRender,r=e.className,i=e.style,c=e.children,s=e.isActive,p=e.role,u=t.useState(s||o),f=(0,d.Z)(u,2),m=f[0],v=f[1];return(t.useEffect(function(){(o||s)&&v(!0)},[o,s]),m)?t.createElement("div",{ref:n,className:l()("".concat(a,"-content"),(0,b.Z)((0,b.Z)({},"".concat(a,"-content-active"),s),"".concat(a,"-content-inactive"),!s),r),style:i,role:p},t.createElement("div",{className:"".concat(a,"-content-box")},c)):null});g.displayName="PanelContent";var h=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],x=t.forwardRef(function(e,n){var a=e.showArrow,o=e.headerClass,r=e.isActive,c=e.onItemClick,d=e.forceRender,s=e.className,p=e.prefixCls,u=e.collapsible,m=e.accordion,x=e.panelKey,y=e.extra,C=e.header,I=e.expandIcon,k=e.openMotion,Z=e.destroyInactivePanel,E=e.children,N=(0,f.Z)(e,h),P="disabled"===u,w="header"===u,O="icon"===u,R=function(){null==c||c(x)},S="function"==typeof I?I(e):t.createElement("i",{className:"arrow"});S&&(S=t.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(u)?R:void 0},S));var A=l()((0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),r),"".concat(p,"-item-disabled"),P),s),j={className:l()(o,(0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),w),"".concat(p,"-icon-collapsible-only"),O)),"aria-expanded":r,"aria-disabled":P,onKeyDown:function(e){("Enter"===e.key||e.keyCode===$.Z.ENTER||e.which===$.Z.ENTER)&&R()}};return w||O||(j.onClick=R,j.role=m?"tab":"button",j.tabIndex=P?-1:0),t.createElement("div",(0,i.Z)({},N,{ref:n,className:A}),t.createElement("div",j,(void 0===a||a)&&S,t.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===u?R:void 0},C),null!=y&&"boolean"!=typeof y&&t.createElement("div",{className:"".concat(p,"-extra")},y)),t.createElement(v.ZP,(0,i.Z)({visible:r,leavedClassName:"".concat(p,"-content-hidden")},k,{forceRender:d,removeOnLeave:Z}),function(e,n){var a=e.className,o=e.style;return t.createElement(g,{ref:n,prefixCls:p,className:a,style:o,isActive:r,forceRender:d,role:m?"tabpanel":void 0},E)}))}),y=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],C=function(e,n){var a=n.prefixCls,o=n.accordion,r=n.collapsible,l=n.destroyInactivePanel,c=n.onItemClick,d=n.activeKey,s=n.openMotion,p=n.expandIcon;return e.map(function(e,n){var u=e.children,m=e.label,b=e.key,v=e.collapsible,$=e.onItemClick,g=e.destroyInactivePanel,h=(0,f.Z)(e,y),C=String(null!=b?b:n),I=null!=v?v:r,k=!1;return k=o?d[0]===C:d.indexOf(C)>-1,t.createElement(x,(0,i.Z)({},h,{prefixCls:a,key:C,panelKey:C,isActive:k,accordion:o,openMotion:s,expandIcon:p,header:m,collapsible:I,onItemClick:function(e){"disabled"!==I&&(c(e),null==$||$(e))},destroyInactivePanel:null!=g?g:l}),u)})},I=function(e,n,a){if(!e)return null;var o=a.prefixCls,r=a.accordion,l=a.collapsible,i=a.destroyInactivePanel,c=a.onItemClick,d=a.activeKey,s=a.openMotion,p=a.expandIcon,u=e.key||String(n),f=e.props,m=f.header,b=f.headerClass,v=f.destroyInactivePanel,$=f.collapsible,g=f.onItemClick,h=!1;h=r?d[0]===u:d.indexOf(u)>-1;var x=null!=$?$:l,y={key:u,panelKey:u,header:m,headerClass:b,isActive:h,prefixCls:o,destroyInactivePanel:null!=v?v:i,openMotion:s,accordion:r,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(c(e),null==g||g(e))},expandIcon:p,collapsible:x};return"string"==typeof e.type?e:(Object.keys(y).forEach(function(e){void 0===y[e]&&delete y[e]}),t.cloneElement(e,y))},k=a(64217);function Z(e){var n=e;if(!Array.isArray(n)){var a=(0,s.Z)(n);n="number"===a||"string"===a?[n]:[]}return n.map(function(e){return String(e)})}var E=Object.assign(t.forwardRef(function(e,n){var a,o=e.prefixCls,r=void 0===o?"rc-collapse":o,s=e.destroyInactivePanel,f=e.style,b=e.accordion,v=e.className,$=e.children,g=e.collapsible,h=e.openMotion,x=e.expandIcon,y=e.activeKey,E=e.defaultActiveKey,N=e.onCh
1ange,P=e.items,w=l()(r,v),O=(0,p.Z)([],{value:y,onChange:function(e){return null==N?void 0:N(e)},defaultValue:E,postState:Z}),R=(0,d.Z)(O,2),S=R[0],A=R[1];(0,u.ZP)(!$,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var j=(a={prefixCls:r,accordion:b,openMotion:h,expandIcon:x,collapsible:g,destroyInactivePanel:void 0!==s&&s,onItemClick:function(e){return A(function(){return b?S[0]===e?[]:[e]:S.indexOf(e)>-1?S.filter(function(n){return n!==e}):[].concat((0,c.Z)(S),[e])})},activeKey:S},Array.isArray(P)?C(P,a):(0,m.Z)($).map(function(e,n){return I(e,n,a)}));return t.createElement("div",(0,i.Z)({ref:n,className:w,style:f,role:b?"tablist":void 0},(0,k.Z)(e,{aria:!0,data:!0})),j)}),{Panel:x});E.Panel;var N=a(98423),P=a(33603),w=a(96159),O=a(53124),R=a(98675);let S=t.forwardRef((e,n)=>{let{getPrefixCls:a}=t.useContext(O.E_),{prefixCls:o,className:r,showArrow:i=!0}=e,c=a("collapse",o),d=l()({[`${c}-no-arrow`]:!i},r);return t.createElement(E.Panel,Object.assign({ref:n},e,{prefixCls:c,className:d}))});var A=a(861),j=a(14747),M=a(33507),B=a(27036),K=a(45503);let T=e=>{let{componentCls:n,contentBg:a,padding:t,headerBg:o,headerPadding:r,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:i,collapsePanelBorderRadius:c,lineWidth:d,lineType:s,colorBorder:p,colorText:u,colorTextHeading:f,colorTextDisabled:m,fontSizeLG:b,lineHeight:v,lineHeightLG:$,marginSM:g,paddingSM:h,paddingLG:x,paddingXS:y,motionDurationSlow:C,fontSizeIcon:I,contentPadding:k,fontHeight:Z,fontHeightLG:E}=e,N=`${(0,A.bf)(d)} ${s} ${p}`;return{[n]:Object.assign(Object.assign({},(0,j.Wf)(e)),{backgroundColor:o,border:N,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${n}-item`]:{borderBottom:N,"&:last-child":{[` 2 &, 3 & > ${n}-header`]:{borderRadius:`0 0 ${(0,A.bf)(c)} ${(0,A.bf)(c)}`}},[`> ${n}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:r,color:f,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${n}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${n}-expand-icon`]:{height:Z,display:"flex",alignItems:"center",paddingInlineEnd:g},[`${n}-arrow`]:Object.assign(Object.assign({},(0,j.Ro)()),{fontSize:I,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${n}-header-text`]:{marginInlineEnd:"auto"}},[`${n}-icon-collapsible-only`]:{cursor:"unset",[`${n}-expand-icon`]:{cursor:"pointer"}}},[`${n}-content`]:{color:u,backgroundColor:a,borderTop:N,[`& > ${n}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${n}-item`]:{[`> ${n}-header`]:{padding:l,paddingInlineStart:y,[`> ${n}-expand-icon`]:{marginInlineStart:e.calc(h).sub(y).equal()}},[`> ${n}-content > ${n}-content-box`]:{padding:h}}},"&-large":{[`> ${n}-item`]:{fontSize:b,lineHeight:$,[`> ${n}-header`]:{padding:i,paddingInlineStart:t,[`> ${n}-expand-icon`]:{height:E,marginInlineStart:e.calc(x).sub(t).equal()}},[`> ${n}-content > ${n}-content-box`]:{padding:x}}},[`${n}-item:last-child`]:{borderBottom:0,[`> ${n}-content`]:{borderRadius:`0 0 ${(0,A.bf)(c)} ${(0,A.bf)(c)}`}},[`& ${n}-item-disabled > ${n}-header`]:{[` 4 &, 5 & > .arrow 6 `]:{color:m,cursor:"not-allowed"}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:g}}}}})}},_=e=>{let{componentCls:n}=e,a=`> ${n}-item > ${n}-header ${n}-arrow`;return{[`${n}-rtl`]:{[a]:{transform:"rotate(180deg)"}}}},L=e=>{let{componentCls:n,headerBg:a,paddingXXS:t,colorBorder:o}=e;return{[`${n}-borderless`]:{backgroundColor:a,border:0,[`> ${n}-item`]:{borderBottom:`1px solid ${o}`},[` 7 > ${n}-item:last-child, 8 > ${n}-item:last-child ${n}-header 9 `]:{borderRadius:0},[`> ${n}-item:last-child`]:{borderBottom:0},[`> ${n}-item > ${n}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${n}-item > ${n}-content > ${n}-content-box`]:{paddingTop:t}}}},z=e=>{let{componentCls:n,paddingSM:a}=e;return{[`${n}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${n}-item`]:{borderBottom:0,[`> ${n}-content`]:{backgroundColor:"transparent",border:0,[`> ${n}-content-box`]:{paddingBlock:a}}}}}},G=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}
9px 16px`,contentBg:e.colorBgContainer});var H=(0,B.I$)("Collapse",e=>{let n=(0,K.TS)(e,{collapseHeaderPaddingSM:`${(0,A.bf)(e.paddingXS)} ${(0,A.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,A.bf)(e.padding)} ${(0,A.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[T(n),L(n),z(n),_(n),(0,M.Z)(n)]},G);let q=t.forwardRef((e,n)=>{let{getPrefixCls:a,direction:r,collapse:i}=t.useContext(O.E_),{prefixCls:c,className:d,rootClassName:s,style:p,bordered:u=!0,ghost:f,size:b,expandIconPosition:v="start",children:$,expandIcon:g}=e,h=(0,R.Z)(e=>{var n;return null!==(n=null!=b?b:e)&&void 0!==n?n:"middle"}),x=a("collapse",c),y=a(),[C,I,k]=H(x),Z=t.useMemo(()=>"left"===v?"start":"right"===v?"end":v,[v]),S=null!=g?g:null==i?void 0:i.expandIcon,A=t.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="function"==typeof S?S(e):t.createElement(o.Z,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,w.Tm)(n,()=>{var e;return{className:l()(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${x}-arrow`)}})},[S,x]),j=l()(`${x}-icon-position-${Z}`,{[`${x}-borderless`]:!u,[`${x}-rtl`]:"rtl"===r,[`${x}-ghost`]:!!f,[`${x}-${h}`]:"middle"!==h},null==i?void 0:i.className,d,s,I,k),M=Object.assign(Object.assign({},(0,P.Z)(y)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),B=t.useMemo(()=>$?(0,m.Z)($).map((e,n)=>{var a,t;if(null===(a=e.props)||void 0===a?void 0:a.disabled){let o=null!==(t=e.key)&&void 0!==t?t:String(n),{disabled:r,collapsible:l}=e.props,i=Object.assign(Object.assign({},(0,N.Z)(e.props,["disabled"])),{key:o,collapsible:null!=l?l:r?"disabled":void 0});return(0,w.Tm)(e,i)}return e}):null,[$]);return C(t.createElement(E,Object.assign({ref:n,openMotion:M},(0,N.Z)(e,["rootClassName"]),{expandIcon:A,prefixCls:x,className:j,style:Object.assign(Object.assign({},null==i?void 0:i.style),p)}),B))});var W=Object.assign(q,{Panel:S})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.