Files
weiyu/deploy/server/admin/3847.7ae2ea41.async.js
2025-11-11 16:36:56 +08:00

1 line
83 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3847],{77902:function(e,t,n){var o=n(44194),r=n(31246),i=n(92354);t.Z=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(r.E_),l=n("empty");switch(t){case"Table":case"List":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE,className:`${l}-small`});case"Table.filter":return null;default:return o.createElement(i.Z,null)}}},92354:function(e,t,n){n.d(t,{Z:function(){return w}});var o=n(44194),r=n(51865),i=n.n(r),l=n(31246),a=n(43257),c=n(87471),u=n(78620);var s=()=>{const[,e]=(0,u.ZP)(),[t]=(0,a.Z)("Empty"),n=new c.t(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var d=()=>{const[,e]=(0,u.ZP)(),[t]=(0,a.Z)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:l}=e,{borderColor:s,shadowColor:d,contentColor:f}=(0,o.useMemo)((()=>({borderColor:new c.t(n).onBackground(l).toHexString(),shadowColor:new c.t(r).onBackground(l).toHexString(),contentColor:new c.t(i).onBackground(l).toHexString()})),[n,r,i,l]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:s},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},f=n(51858),p=n(77167);var m=(0,f.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e;return(e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})((0,p.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()}))})),v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const g=o.createElement(s,null),h=o.createElement(d,null),b=e=>{var t;const{className:n,rootClassName:r,prefixCls:c,image:u,description:s,children:d,imageStyle:f,style:p,classNames:b,styles:w}=e,S=v(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:C,className:E,style:Z,classNames:x,styles:$,image:I}=(0,l.dj)("empty"),O=y("empty",c),[M,R,H]=m(O),[N]=(0,a.Z)("Empty"),D=void 0!==s?s:null==N?void 0:N.description,P="string"==typeof D?D:"empty",z=null!==(t=null!=u?u:I)&&void 0!==t?t:g;let T=null;return T="string"==typeof z?o.createElement("img",{draggable:!1,alt:P,src:z}):z,M(o.createElement("div",Object.assign({className:i()(R,H,O,E,{[`${O}-normal`]:z===h,[`${O}-rtl`]:"rtl"===C},n,r,x.root,null==b?void 0:b.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),Z),null==w?void 0:w.root),p)},S),o.createElement("div",{className:i()(`${O}-image`,x.image,null==b?void 0:b.image),style:Object.assign(Object.assign(Object.assign({},f),$.image),null==w?void 0:w.image)},T),D&&o.createElement("div",{className:i()(`${O}-description`,x.description,null==b?void 0:b.description),style:Object.assign(Object.assign({},$.description),null==w?void 0:w.description)},D),d&&o.createElement("div",{className:i()(`${O}-footer`,x.footer,null==b?void 0:b.footer),style:Object.assign(Object.assign({},$.footer),null==w?void 0:w.footer)},d)))};b.PRESENTED_IMAGE_DEFAULT=g,b.PRESENTED_IMAGE_SIMPLE=h;var w=b},13847:function(e,t,n){var o=n(44194),r=n(51865),i=n.n(r),l=n(78130),a=n(34573),c=n(14386),u=n(72073),s=n(51539),d=n(40722),f=n(31246),p=n(77902),m=n(38066),v=n(1648),g=n(64357),h=n(21417),b=n(58276),w=n(56141),S=n(78620),y=n(16087),C=n(49534),E=n(54398),Z=n(28454),x=n(52721),$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const I="SECRET_COMBOBOX_MODE_DO_NOT_USE",O=(e,t)=>{var n,r,s,O,M;const{prefixCls:R,bordered:H,className:N,rootClassName:D,getPopupContainer:P,popupClassName:z,dropdownClassName:T,listHeight:B=256,placement:k,listItemHeight:L,size:j,disabled:W,notFoundContent:A,status:F,builtinPlacements:V,dropdownMatchSelectWidth:_,popupMatchSelectWidth:X,direction:K,style:G,allowClear:Y,variant:q,dropdownStyle:U,transitionName:Q,tagRender:J,maxCount:ee,prefix:te,dropdownRender:ne,popupRender:oe,onDropdownVisibleChange:re,onOpenChange:ie,styles:le,classNames:ae}=e,ce=$(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:ue,getPrefixCls:se,renderEmpty:de,direction:fe,virtual:pe,popupMatchSelectWidth:me,popupOverflow:ve}=o.useContext(f.E_),{showSearch:ge,style:he,styles:be,className:we,classNames:Se}=(0,f.dj)("select"),[,ye]=(0,S.ZP)(),Ce=null!=L?L:null==ye?void 0:ye.controlHeight,Ee=se("select",R),Ze=se(),xe=null!=K?K:fe,{compactSize:$e,compactItemClassnames:Ie}=(0,w.ri)(Ee,xe),[Oe,Me]=(0,b.Z)("select",q,H),Re=(0,v.Z)(Ee),[He,Ne,De]=(0,C.Z)(Ee,Re),Pe=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===I?"combobox":t}),[e.mode]),ze="multiple"===Pe||"tags"===Pe,Te=(0,x.Z)(e.suffixIcon,e.showArrow),Be=null!==(n=null!=X?X:_)&&void 0!==n?n:me,ke=(null===(r=null==le?void 0:le.popup)||void 0===r?void 0:r.root)||(null===(s=be.popup)||void 0===s?void 0:s.root)||U,Le=(0,Z.Z)(oe||ne),je=ie||re,{status:We,hasFeedback:Ae,isFormItemInput:Fe,feedbackIcon:Ve}=o.useContext(h.aM),_e=(0,d.F)(We,F);let Xe;Xe=void 0!==A?A:"combobox"===Pe?null:(null==de?void 0:de("Select"))||o.createElement(p.Z,{componentName:"Select"});const{suffixIcon:Ke,itemIcon:Ge,removeIcon:Ye,clearIcon:qe}=(0,E.Z)(Object.assign(Object.assign({},ce),{multiple:ze,hasFeedback:Ae,feedbackIcon:Ve,showSuffixIcon:Te,prefixCls:Ee,componentName:"Select"})),Ue=!0===Y?{clearIcon:qe}:Y,Qe=(0,a.Z)(ce,["suffixIcon","itemIcon"]),Je=i()((null===(O=null==ae?void 0:ae.popup)||void 0===O?void 0:O.root)||(null===(M=null==Se?void 0:Se.popup)||void 0===M?void 0:M.root)||z||T,{[`${Ee}-dropdown-${xe}`]:"rtl"===xe},D,Se.root,null==ae?void 0:ae.root,De,Re,Ne),et=(0,g.Z)((e=>{var t;return null!==(t=null!=j?j:$e)&&void 0!==t?t:e})),tt=o.useContext(m.Z),nt=null!=W?W:tt,ot=i()({[`${Ee}-lg`]:"large"===et,[`${Ee}-sm`]:"small"===et,[`${Ee}-rtl`]:"rtl"===xe,[`${Ee}-${Oe}`]:Me,[`${Ee}-in-form-item`]:Fe},(0,d.Z)(Ee,_e,Ae),Ie,we,N,Se.root,null==ae?void 0:ae.root,D,De,Re,Ne),rt=o.useMemo((()=>void 0!==k?k:"rtl"===xe?"bottomRight":"bottomLeft"),[k,xe]);const[it]=(0,c.Cn)("SelectLike",null==ke?void 0:ke.zIndex);return He(o.createElement(l.ZP,Object.assign({ref:t,virtual:pe,showSearch:ge},Qe,{style:Object.assign(Object.assign(Object.assign(Object.assign({},be.root),null==le?void 0:le.root),he),G),dropdownMatchSelectWidth:Be,transitionName:(0,u.m)(Ze,"slide-up",Q),builtinPlacements:(0,y.Z)(V,ve),listHeight:B,listItemHeight:Ce,mode:Pe,prefixCls:Ee,placement:rt,direction:xe,prefix:te,suffixIcon:Ke,menuItemSelectedIcon:Ge,removeIcon:Ye,allowClear:Ue,notFoundContent:Xe,className:ot,getPopupContainer:P||ue,dropdownClassName:Je,disabled:nt,dropdownStyle:Object.assign(Object.assign({},ke),{zIndex:it}),maxCount:ze?ee:void 0,tagRender:ze?J:void 0,dropdownRender:Le,onDropdownVisibleChange:je})))};const M=o.forwardRef(O),R=(0,s.Z)(M,"dropdownAlign");M.SECRET_COMBOBOX_MODE_DO_NOT_USE=I,M.Option=l.Wx,M.OptGroup=l.Xo,M._InternalPanelDoNotUseOrYouWillBeFired=R,t.Z=M},16087:function(e,t){t.Z=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}},49534:function(e,t,n){n.d(t,{Z:function(){return R}});var o=n(54184),r=n(95417),i=n(51858),l=n(77167),a=n(70158),c=n(88487);const u=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}};var s=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${i}${d}bottomLeft,\n ${l}${d}bottomLeft\n `]:{animationName:a.fJ},[`\n ${i}${d}topLeft,\n ${l}${d}topLeft,\n ${i}${d}topRight,\n ${l}${d}topRight\n `]:{animationName:a.Qt},[`${s}${d}bottomLeft`]:{animationName:a.Uw},[`\n ${s}${d}topLeft,\n ${s}${d}topRight\n `]:{animationName:a.ly},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},u(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},o.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},u(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,a.oN)(e,"slide-up"),(0,a.oN)(e,"slide-down"),(0,c.Fm)(e,"move-up"),(0,c.Fm)(e,"move-down")]},d=n(43444),f=n(59199);function p(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,o.Wf)(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:(0,f.bf)(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,f.bf)(l),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,f.bf)(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:(0,f.bf)(l)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,f.bf)(r)}`,"&:after":{display:"none"}}}}}}}function m(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[p(e),p((0,l.IX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,f.bf)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},p((0,l.IX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const v=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,f.bf)(r)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},g=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},v(e,t))}),h=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},v(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),g(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),g(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),b=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},w=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},b(e,t))}),S=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},b(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),w(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),w(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),y=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),C=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${(0,f.bf)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},E=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},C(e,t))}),Z=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},C(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),E(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),E(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})});var x=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},h(e)),S(e)),y(e)),Z(e))});const $=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},I=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},O=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},$(e)),I(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},o.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},o.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,o.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},M=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},O(e),m(e),(0,d.ZP)(e),s(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,r.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var R=(0,i.I$)("Select",((e,{rootPrefixCls:t})=>{const n=(0,l.IX)(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[M(n),x(n)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:l,paddingXXS:a,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:s,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:v,colorBgContainerDisabled:g,colorTextDisabled:h,colorPrimaryHover:b,colorPrimary:w,controlOutline:S}=e,y=2*a,C=2*o,E=Math.min(r-y,r-C),Z=Math.min(i-y,i-C),x=Math.min(l-y,l-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:u+50,optionSelectedColor:s,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:l,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:Z,multipleItemHeightLG:x,multipleSelectorBgDisabled:g,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:w,activeOutlineColor:S,selectAffixPadding:a}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},43444:function(e,t,n){n.d(t,{_z:function(){return a},gp:function(){return l}});var o=n(59199),r=n(54184),i=n(77167);const l=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,l=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:l,containerPadding:e.max(e.calc(l).sub(i).equal(),0),itemHeight:(0,o.bf)(t),itemLineHeight:(0,o.bf)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},a=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:i,paddingXS:l,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:c,colorIcon:u,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:o,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,r.Ro)()),{display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},c=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,c=e.multipleSelectItemHeight,u=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),s=t?`${n}-${t}`:"",d=l(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},a(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,o.bf)(r)} 0`,lineHeight:(0,o.bf)(c),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:(0,o.bf)(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,o.bf)(c),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${i}-item + ${i}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u).equal(),"\n &-input,\n &-mirror\n ":{height:c,fontFamily:e.fontFamily,lineHeight:(0,o.bf)(c),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function u(e,t){const{componentCls:n}=e,o={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[c(e,t),o]}t.ZP=e=>{const{componentCls:t}=e,n=(0,i.IX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,i.IX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[u(e),u(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},u(o,"lg")]}},54398:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(44194),r=n(30082),i=n(92520),l=n(14377),a=n(70927),c=n(54883),u=n(90727);function s({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:s,loading:d,multiple:f,hasFeedback:p,prefixCls:m,showSuffixIcon:v,feedbackIcon:g,showArrow:h,componentName:b}){const w=null!=t?t:o.createElement(i.Z,null),S=t=>null!==e||p||h?o.createElement(o.Fragment,null,!1!==v&&t,p&&g):null;let y=null;if(void 0!==e)y=S(e);else if(d)y=S(o.createElement(c.Z,{spin:!0}));else{const e=`${m}-suffix`;y=({open:t,showSearch:n})=>S(t&&n?o.createElement(u.Z,{className:e}):o.createElement(a.Z,{className:e}))}let C=null;C=void 0!==n?n:f?o.createElement(r.Z,null):null;let E=null;return E=void 0!==s?s:o.createElement(l.Z,null),{clearIcon:w,suffixIcon:y,itemIcon:C,removeIcon:E}}},28454:function(e,t,n){var o=n(44194),r=n(16385);t.Z=function(e){return o.useMemo((()=>{if(e)return(...t)=>o.createElement(r.Z,{space:!0},e.apply(void 0,t))}),[e])}},52721:function(e,t,n){function o(e,t){return void 0!==t?t:null!==e}n.d(t,{Z:function(){return o}})},15705:function(e,t,n){n.d(t,{ZP:function(){return c}});var o=n(32906),r=n(44194),i=n(88340),l=0,a=(0,i.Z)();function c(e){var t=r.useState(),n=(0,o.Z)(t,2),i=n[0],c=n[1];return r.useEffect((function(){var e;c("rc_select_".concat((a?(e=l,l+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},78130:function(e,t,n){n.d(t,{Ac:function(){return ee},Xo:function(){return ne},Wx:function(){return re},ZP:function(){return xe},lk:function(){return S}});var o=n(83910),r=n(28548),i=n(1206),l=n(94433),a=n(32906),c=n(38956),u=n(29608),s=n(81424),d=n(56049),f=n(44194),p=n(51865),m=n.n(p),v=n(99047),g=n(76792),h=n(65489),b=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,r=e.children,i=e.onMouseDown,l=e.onClick,a="function"==typeof n?n(o):n;return f.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==a?a:f.createElement("span",{className:m()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},r))},w=f.createContext(null);function S(){return f.useContext(w)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=f.useRef(null),n=f.useRef(null);function o(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return f.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},o]}var C=n(46748);var E=n(63941),Z=n(5729);var x=function(e,t,n){var o=(0,l.Z)((0,l.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var r=t[n];"function"==typeof r&&(o[n]=function(){for(var t,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})})),o},$=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],I=function(e,t){var n=e.prefixCls,o=e.id,r=e.inputElement,i=e.autoFocus,a=e.autoComplete,u=e.editable,s=e.activeDescendantId,p=e.value,v=e.open,g=e.attrs,b=(0,c.Z)(e,$),w=r||f.createElement("input",null),S=w,y=S.ref,C=S.props;return(0,d.Kp)(!("maxLength"in w.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),w=f.cloneElement(w,(0,l.Z)((0,l.Z)((0,l.Z)({type:"search"},x(b,C,!0)),{},{id:o,ref:(0,h.sQ)(t,y),autoComplete:a||"off",autoFocus:i,className:m()("".concat(n,"-selection-search-input"),null==C?void 0:C.className),role:"combobox","aria-expanded":v||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":v?s:void 0},g),{},{value:u?p:"",readOnly:!u,unselectable:u?null:"on",style:(0,l.Z)((0,l.Z)({},C.style),{},{opacity:u?null:0})}))};var O=f.forwardRef(I);function M(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var R="undefined"!=typeof window&&window.document&&window.document.documentElement;function H(e){return["string","number"].includes((0,u.Z)(e))}function N(e){var t=void 0;return e&&(H(e.title)?t=e.title.toString():H(e.label)&&(t=e.label.toString())),t}function D(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var P=function(e){e.preventDefault(),e.stopPropagation()},z=function(e){var t,n,o=e.id,r=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,s=e.autoClearSearchValue,d=e.inputRef,p=e.placeholder,v=e.disabled,g=e.mode,h=e.showSearch,w=e.autoFocus,S=e.autoComplete,y=e.activeDescendantId,C=e.tabIndex,x=e.removeIcon,$=e.maxTagCount,I=e.maxTagTextLength,M=e.maxTagPlaceholder,H=void 0===M?function(e){return"+ ".concat(e.length," ...")}:M,z=e.tagRender,T=e.onToggleOpen,B=e.onRemove,k=e.onInputChange,L=e.onInputPaste,j=e.onInputKeyDown,W=e.onInputMouseDown,A=e.onInputCompositionStart,F=e.onInputCompositionEnd,V=e.onInputBlur,_=f.useRef(null),X=(0,f.useState)(0),K=(0,a.Z)(X,2),G=K[0],Y=K[1],q=(0,f.useState)(!1),U=(0,a.Z)(q,2),Q=U[0],J=U[1],ee="".concat(r,"-selection"),te=c||"multiple"===g&&!1===s||"tags"===g?u:"",ne="tags"===g||"multiple"===g&&!1===s||h&&(c||Q);t=function(){Y(_.current.scrollWidth)},n=[te],R?f.useLayoutEffect(t,n):f.useEffect(t,n);var oe=function(e,t,n,o,r){return f.createElement("span",{title:N(e),className:m()("".concat(ee,"-item"),(0,i.Z)({},"".concat(ee,"-item-disabled"),n))},f.createElement("span",{className:"".concat(ee,"-item-content")},t),o&&f.createElement(b,{className:"".concat(ee,"-item-remove"),onMouseDown:P,onClick:r,customizeIcon:x},"×"))},re=function(e,t,n,o,r,i){return f.createElement("span",{onMouseDown:function(e){P(e),T(!c)}},z({label:t,value:e,disabled:n,closable:o,onClose:r,isMaxTag:!!i}))},ie=f.createElement("div",{className:"".concat(ee,"-search"),style:{width:G},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},f.createElement(O,{ref:d,open:c,prefixCls:r,id:o,inputElement:null,disabled:v,autoFocus:w,autoComplete:S,editable:ne,activeDescendantId:y,value:te,onKeyDown:j,onMouseDown:W,onChange:k,onPaste:L,onCompositionStart:A,onCompositionEnd:F,onBlur:V,tabIndex:C,attrs:(0,E.Z)(e,!0)}),f.createElement("span",{ref:_,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},te," ")),le=f.createElement(Z.Z,{prefixCls:"".concat(ee,"-overflow"),data:l,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!v&&!t,i=n;if("number"==typeof I&&("string"==typeof n||"number"==typeof n)){var l=String(i);l.length>I&&(i="".concat(l.slice(0,I),"..."))}var a=function(t){t&&t.stopPropagation(),B(e)};return"function"==typeof z?re(o,i,t,r,a):oe(e,i,t,r,a)},renderRest:function(e){if(!l.length)return null;var t="function"==typeof H?H(e):H;return"function"==typeof z?re(void 0,t,!1,!1,void 0,!0):oe({title:t},t,!1)},suffix:ie,itemKey:D,maxCount:$});return f.createElement("span",{className:"".concat(ee,"-wrap")},le,!l.length&&!te&&f.createElement("span",{className:"".concat(ee,"-placeholder")},p))},T=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,u=e.activeDescendantId,s=e.mode,d=e.open,p=e.values,m=e.placeholder,v=e.tabIndex,g=e.showSearch,h=e.searchValue,b=e.activeValue,w=e.maxLength,S=e.onInputKeyDown,y=e.onInputMouseDown,C=e.onInputChange,Z=e.onInputPaste,x=e.onInputCompositionStart,$=e.onInputCompositionEnd,I=e.onInputBlur,M=e.title,R=f.useState(!1),H=(0,a.Z)(R,2),D=H[0],P=H[1],z="combobox"===s,T=z||g,B=p[0],k=h||"";z&&b&&!D&&(k=b),f.useEffect((function(){z&&P(!1)}),[z,b]);var L=!("combobox"!==s&&!d&&!g)&&!!k,j=void 0===M?N(B):M,W=f.useMemo((function(){return B?null:f.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},m)}),[B,L,m,n]);return f.createElement("span",{className:"".concat(n,"-selection-wrap")},f.createElement("span",{className:"".concat(n,"-selection-search")},f.createElement(O,{ref:r,prefixCls:n,id:o,open:d,inputElement:t,disabled:i,autoFocus:l,autoComplete:c,editable:T,activeDescendantId:u,value:k,onKeyDown:S,onMouseDown:y,onChange:function(e){P(!0),C(e)},onPaste:Z,onCompositionStart:x,onCompositionEnd:$,onBlur:I,tabIndex:v,attrs:(0,E.Z)(e,!0),maxLength:z?w:void 0})),!z&&B?f.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:L?{visibility:"hidden"}:void 0},B.label):null,W)},B=function(e,t){var n=(0,f.useRef)(null),r=(0,f.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,u=e.showSearch,s=e.tokenWithEnter,d=e.disabled,p=e.prefix,m=e.autoClearSearchValue,v=e.onSearch,g=e.onSearchSubmit,h=e.onToggleOpen,b=e.onInputKeyDown,w=e.onInputBlur,S=e.domRef;f.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var E=y(0),Z=(0,a.Z)(E,2),x=Z[0],$=Z[1],I=(0,f.useRef)(null),O=function(e){!1!==v(e,!0,r.current)&&h(!0)},M={inputRef:n,onInputKeyDown:function(e){var t,o=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!l||o!==C.Z.UP&&o!==C.Z.DOWN||e.preventDefault(),b&&b(e),o!==C.Z.ENTER||"tags"!==c||r.current||l||null==g||g(e.target.value),i&&!l&&~[C.Z.UP,C.Z.DOWN,C.Z.LEFT,C.Z.RIGHT].indexOf(o))||(t=o)&&![C.Z.ESC,C.Z.SHIFT,C.Z.BACKSPACE,C.Z.TAB,C.Z.WIN_KEY,C.Z.ALT,C.Z.META,C.Z.WIN_KEY_RIGHT,C.Z.CTRL,C.Z.SEMICOLON,C.Z.EQUALS,C.Z.CAPS_LOCK,C.Z.CONTEXT_MENU,C.Z.F1,C.Z.F2,C.Z.F3,C.Z.F4,C.Z.F5,C.Z.F6,C.Z.F7,C.Z.F8,C.Z.F9,C.Z.F10,C.Z.F11,C.Z.F12].includes(t)&&h(!0)},onInputMouseDown:function(){$(!0)},onInputChange:function(e){var t=e.target.value;if(s&&I.current&&/[\r\n]/.test(I.current)){var n=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,I.current)}I.current=null,O(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");I.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&O(e.target.value)},onInputBlur:w},R="multiple"===c||"tags"===c?f.createElement(z,(0,o.Z)({},e,M)):f.createElement(T,(0,o.Z)({},e,M));return f.createElement("div",{ref:S,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=x();e.target===n.current||t||"combobox"===c&&d||e.preventDefault(),("combobox"===c||u&&t)&&l||(l&&!1!==m&&v("",!0,!1),h())}},p&&f.createElement("div",{className:"".concat(i,"-prefix")},p),R)};var k=f.forwardRef(B),L=n(13417),j=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],W=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),a=e.children,u=e.popupElement,s=e.animation,d=e.transitionName,p=e.dropdownStyle,v=e.dropdownClassName,g=e.direction,h=void 0===g?"ltr":g,b=e.placement,w=e.builtinPlacements,S=e.dropdownMatchSelectWidth,y=e.dropdownRender,C=e.dropdownAlign,E=e.getPopupContainer,Z=e.empty,x=e.getTriggerDOMNode,$=e.onPopupVisibleChange,I=e.onPopupMouseEnter,O=(0,c.Z)(e,j),M="".concat(n,"-dropdown"),R=u;y&&(R=y(u));var H=f.useMemo((function(){return w||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(S)}),[w,S]),N=s?"".concat(M,"-").concat(s):d,D="number"==typeof S,P=f.useMemo((function(){return D?null:!1===S?"minWidth":"width"}),[S,D]),z=p;D&&(z=(0,l.Z)((0,l.Z)({},z),{},{width:S}));var T=f.useRef(null);return f.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.popupElement}}})),f.createElement(L.Z,(0,o.Z)({},O,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:b||("rtl"===h?"bottomRight":"bottomLeft"),builtinPlacements:H,prefixCls:M,popupTransitionName:N,popup:f.createElement("div",{onMouseEnter:I},R),ref:T,stretch:P,popupAlign:C,popupVisible:r,getPopupContainer:E,popupClassName:m()(v,(0,i.Z)({},"".concat(M,"-empty"),Z)),popupStyle:z,getTriggerDOMNode:x,onPopupVisibleChange:$}),a)};var A=f.forwardRef(W),F=n(41073);function V(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function _(e){return void 0!==e&&!Number.isNaN(e)}function X(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function K(e){var t=(0,l.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,d.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var G=f.createContext(null);function Y(e){var t=e.visible,n=e.values;if(!t)return null;return f.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,u.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],U=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Q=function(e){return"tags"===e||"multiple"===e},J=f.forwardRef((function(e,t){var n,d=e.id,p=e.prefixCls,S=e.className,C=e.showSearch,E=e.tagRender,Z=e.direction,x=e.omitDomProps,$=e.displayValues,I=e.onDisplayValuesChange,O=e.emptyOptions,M=e.notFoundContent,R=void 0===M?"Not Found":M,H=e.onClear,N=e.mode,D=e.disabled,P=e.loading,z=e.getInputElement,T=e.getRawInputElement,B=e.open,L=e.defaultOpen,j=e.onDropdownVisibleChange,W=e.activeValue,V=e.onActiveValueChange,X=e.activeDescendantId,K=e.searchValue,J=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,oe=e.allowClear,re=e.prefix,ie=e.suffixIcon,le=e.clearIcon,ae=e.OptionList,ce=e.animation,ue=e.transitionName,se=e.dropdownStyle,de=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,pe=e.dropdownRender,me=e.dropdownAlign,ve=e.placement,ge=e.builtinPlacements,he=e.getPopupContainer,be=e.showAction,we=void 0===be?[]:be,Se=e.onFocus,ye=e.onBlur,Ce=e.onKeyUp,Ee=e.onKeyDown,Ze=e.onMouseDown,xe=(0,c.Z)(e,q),$e=Q(N),Ie=(void 0!==C?C:$e)||"combobox"===N,Oe=(0,l.Z)({},xe);U.forEach((function(e){delete Oe[e]})),null==x||x.forEach((function(e){delete Oe[e]}));var Me=f.useState(!1),Re=(0,a.Z)(Me,2),He=Re[0],Ne=Re[1];f.useEffect((function(){Ne((0,g.Z)())}),[]);var De=f.useRef(null),Pe=f.useRef(null),ze=f.useRef(null),Te=f.useRef(null),Be=f.useRef(null),ke=f.useRef(!1),Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=f.useState(!1),n=(0,a.Z)(t,2),o=n[0],r=n[1],i=f.useRef(null),l=function(){window.clearTimeout(i.current)};return f.useEffect((function(){return l}),[]),[o,function(t,n){l(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},l]}(),je=(0,a.Z)(Le,3),We=je[0],Ae=je[1],Fe=je[2];f.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Te.current)||void 0===e?void 0:e.focus,blur:null===(t=Te.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Be.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:De.current||Pe.current}}));var Ve=f.useMemo((function(){var e;if("combobox"!==N)return K;var t=null===(e=$[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[K,N,$]),_e="combobox"===N&&"function"==typeof z&&z()||null,Xe="function"==typeof T&&T(),Ke=(0,h.x1)(Pe,null==Xe||null===(n=Xe.props)||void 0===n?void 0:n.ref),Ge=f.useState(!1),Ye=(0,a.Z)(Ge,2),qe=Ye[0],Ue=Ye[1];(0,v.Z)((function(){Ue(!0)}),[]);var Qe=(0,s.Z)(!1,{defaultValue:L,value:B}),Je=(0,a.Z)(Qe,2),et=Je[0],tt=Je[1],nt=!!qe&&et,ot=!R&&O;(D||ot&&nt&&"combobox"===N)&&(nt=!1);var rt=!ot&&nt,it=f.useCallback((function(e){var t=void 0!==e?e:!nt;D||(tt(t),nt!==t&&(null==j||j(t)))}),[D,nt,tt,j]),lt=f.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),at=f.useContext(G)||{},ct=at.maxCount,ut=at.rawValues,st=function(e,t,n){if(!($e&&_(ct)&&(null==ut?void 0:ut.size)>=ct)){var o=!0,i=e;null==V||V(null);var l=function(e,t,n){if(!t||!t.length)return null;var o=!1,i=function e(t,n){var i=(0,F.Z)(n),l=i[0],a=i.slice(1);if(!l)return[t];var c=t.split(l);return o=o||c.length>1,c.reduce((function(t,n){return[].concat((0,r.Z)(t),(0,r.Z)(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?i.slice(0,n):i:null}(e,ne,_(ct)?ct-ut.size:void 0),a=n?null:l;return"combobox"!==N&&a&&(i="",null==te||te(a),it(!1),o=!1),ee&&Ve!==i&&ee(i,{source:t?"typing":"effect"}),o}};f.useEffect((function(){nt||$e||"combobox"===N||st("",!1,!1)}),[nt]),f.useEffect((function(){et&&D&&tt(!1),D&&!ke.current&&Ae(!1)}),[D]);var dt=y(),ft=(0,a.Z)(dt,2),pt=ft[0],mt=ft[1],vt=f.useRef(!1),gt=f.useRef(!1),ht=[];f.useEffect((function(){return function(){ht.forEach((function(e){return clearTimeout(e)})),ht.splice(0,ht.length)}}),[]);var bt,wt=f.useState({}),St=(0,a.Z)(wt,2)[1];Xe&&(bt=function(e){it(e)}),function(e,t,n,o){var r=f.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},f.useEffect((function(){function t(t){var n;if(null===(n=r.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[De.current,null===(e=ze.current)||void 0===e?void 0:e.getPopupElement()]}),rt,it,!!Xe);var yt,Ct=f.useMemo((function(){return(0,l.Z)((0,l.Z)({},e),{},{notFoundContent:R,open:nt,triggerOpen:rt,id:d,showSearch:Ie,multiple:$e,toggleOpen:it})}),[e,R,rt,nt,d,Ie,$e,it]),Et=!!ie||P;Et&&(yt=f.createElement(b,{className:m()("".concat(p,"-arrow"),(0,i.Z)({},"".concat(p,"-arrow-loading"),P)),customizeIcon:ie,customizeIconProps:{loading:P,searchValue:Ve,open:nt,focused:We,showSearch:Ie}}));var Zt,xt=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,c=f.useMemo((function(){return"object"===(0,u.Z)(o)?o.clearIcon:r||void 0}),[o,r]),s=f.useMemo((function(){return!(i||!o||!n.length&&!l||"combobox"===a&&""===l)}),[o,i,n.length,l,a]);return{allowClear:s,clearIcon:f.createElement(b,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(p,(function(){var e;null==H||H(),null===(e=Te.current)||void 0===e||e.focus(),I([],{type:"clear",values:$}),st("",!1,!1)}),$,oe,le,D,Ve,N),$t=xt.allowClear,It=xt.clearIcon,Ot=f.createElement(ae,{ref:Be}),Mt=m()(p,S,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(p,"-focused"),We),"".concat(p,"-multiple"),$e),"".concat(p,"-single"),!$e),"".concat(p,"-allow-clear"),oe),"".concat(p,"-show-arrow"),Et),"".concat(p,"-disabled"),D),"".concat(p,"-loading"),P),"".concat(p,"-open"),nt),"".concat(p,"-customize-input"),_e),"".concat(p,"-show-search"),Ie)),Rt=f.createElement(A,{ref:ze,disabled:D,prefixCls:p,visible:rt,popupElement:Ot,animation:ce,transitionName:ue,dropdownStyle:se,dropdownClassName:de,direction:Z,dropdownMatchSelectWidth:fe,dropdownRender:pe,dropdownAlign:me,placement:ve,builtinPlacements:ge,getPopupContainer:he,empty:O,getTriggerDOMNode:function(e){return Pe.current||e},onPopupVisibleChange:bt,onPopupMouseEnter:function(){St({})}},Xe?f.cloneElement(Xe,{ref:Ke}):f.createElement(k,(0,o.Z)({},e,{domRef:Pe,prefixCls:p,inputElement:_e,ref:Te,id:d,prefix:re,showSearch:Ie,autoClearSearchValue:J,mode:N,activeDescendantId:X,tagRender:E,values:$,open:nt,onToggleOpen:it,activeValue:W,searchValue:Ve,onSearch:st,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=$.filter((function(t){return t!==e}));I(t,{type:"remove",values:[e]})},tokenWithEnter:lt,onInputBlur:function(){vt.current=!1}})));return Zt=Xe?Rt:f.createElement("div",(0,o.Z)({className:Mt},Oe,{ref:De,onMouseDown:function(e){var t,n=e.target,o=null===(t=ze.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=ht.indexOf(r);-1!==t&&ht.splice(t,1),Fe(),He||o.contains(document.activeElement)||null===(e=Te.current)||void 0===e||e.focus()}));ht.push(r)}for(var i=arguments.length,l=new Array(i>1?i-1:0),a=1;a<i;a++)l[a-1]=arguments[a];null==Ze||Ze.apply(void 0,[e].concat(l))},onKeyDown:function(e){var t,n=pt(),o=e.key,i="Enter"===o;if(i&&("combobox"!==N&&e.preventDefault(),nt||it(!0)),mt(!!Ve),"Backspace"===o&&!n&&$e&&!Ve&&$.length){for(var l=(0,r.Z)($),a=null,c=l.length-1;c>=0;c-=1){var u=l[c];if(!u.disabled){l.splice(c,1),a=u;break}}a&&I(l,{type:"remove",values:[a]})}for(var s=arguments.length,d=new Array(s>1?s-1:0),f=1;f<s;f++)d[f-1]=arguments[f];!nt||i&&vt.current||(i&&(vt.current=!0),null===(t=Be.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(d))),null==Ee||Ee.apply(void 0,[e].concat(d))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;nt&&(null===(r=Be.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(vt.current=!1),null==Ce||Ce.apply(void 0,[e].concat(n))},onFocus:function(){Ae(!0),D||(Se&&!gt.current&&Se.apply(void 0,arguments),we.includes("focus")&&it(!0)),gt.current=!0},onBlur:function(){ke.current=!0,Ae(!1,(function(){gt.current=!1,ke.current=!1,it(!1)})),D||(Ve&&("tags"===N?ee(Ve,{source:"submit"}):"multiple"===N&&ee("",{source:"blur"})),ye&&ye.apply(void 0,arguments))}}),f.createElement(Y,{visible:We&&!nt,values:$}),Rt,yt,$t&&It),f.createElement(w.Provider,{value:Ct},Zt)}));var ee=J,te=function(){return null};te.isSelectOptGroup=!0;var ne=te,oe=function(){return null};oe.isSelectOption=!0;var re=oe,ie=n(65010),le=n(34573),ae=n(14680);var ce=["disabled","title","children","style","className"];function ue(e){return"string"==typeof e||"number"==typeof e}var se=function(e,t){var n=S(),l=n.prefixCls,u=n.id,s=n.open,d=n.multiple,p=n.mode,v=n.searchValue,g=n.toggleOpen,h=n.notFoundContent,w=n.onPopupScroll,y=f.useContext(G),Z=y.maxCount,x=y.flattenOptions,$=y.onActiveValue,I=y.defaultActiveFirstOption,O=y.onSelect,M=y.menuItemSelectedIcon,R=y.rawValues,H=y.fieldNames,N=y.virtual,D=y.direction,P=y.listHeight,z=y.listItemHeight,T=y.optionRender,B="".concat(l,"-item"),k=(0,ie.Z)((function(){return x}),[s,x],(function(e,t){return t[0]&&e[1]!==t[1]})),L=f.useRef(null),j=f.useMemo((function(){return d&&_(Z)&&(null==R?void 0:R.size)>=Z}),[d,Z,null==R?void 0:R.size]),W=function(e){e.preventDefault()},A=function(e){var t;null===(t=L.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},F=f.useCallback((function(e){return"combobox"!==p&&R.has(e)}),[p,(0,r.Z)(R).toString(),R.size]),V=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=k.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=k[r]||{},l=i.group,a=i.data;if(!l&&(null==a||!a.disabled)&&(F(a.value)||!j))return r}return-1},X=f.useState((function(){return V(0)})),K=(0,a.Z)(X,2),Y=K[0],q=K[1],U=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},o=k[e];o?$(o.value,e,n):$(null,-1,n)};(0,f.useEffect)((function(){U(!1!==I?V(0):-1)}),[k.length,v]);var Q=f.useCallback((function(e){return"combobox"===p?String(e).toLowerCase()===v.toLowerCase():R.has(e)}),[p,v,(0,r.Z)(R).toString(),R.size]);(0,f.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&s&&1===R.size){var e=Array.from(R)[0],t=k.findIndex((function(t){var n=t.data;return v?String(n.value).startsWith(v):n.value===e}));-1!==t&&(U(t),A(t))}}));s&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,v]);var J=function(e){void 0!==e&&O(e,{selected:!R.has(e)}),d||g(!1)};if(f.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case C.Z.N:case C.Z.P:case C.Z.UP:case C.Z.DOWN:var o=0;if(t===C.Z.UP?o=-1:t===C.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===C.Z.N?o=1:t===C.Z.P&&(o=-1)),0!==o){var r=V(Y+o,o);A(r),U(r,!0)}break;case C.Z.TAB:case C.Z.ENTER:var i,l=k[Y];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||j?J(void 0):J(l.value),s&&e.preventDefault();break;case C.Z.ESC:g(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}})),0===k.length)return f.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(B,"-empty"),onMouseDown:W},h);var ee=Object.keys(H).map((function(e){return H[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}}var oe=function(e){var t=k[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,l=(0,E.Z)(n,!0),a=te(t);return t?f.createElement("div",(0,o.Z)({"aria-label":"string"!=typeof a||i?null:a},l,{key:e},ne(t,e),{"aria-selected":Q(r)}),r):null},re={role:"listbox",id:"".concat(u,"_list")};return f.createElement(f.Fragment,null,N&&f.createElement("div",(0,o.Z)({},re,{style:{height:0,width:0,overflow:"hidden"}}),oe(Y-1),oe(Y),oe(Y+1)),f.createElement(ae.Z,{itemKey:"key",ref:L,data:k,height:P,itemHeight:z,fullHeight:!1,onMouseDown:W,onScroll:w,virtual:N,direction:D,innerProps:N?null:re},(function(e,t){var n=e.group,r=e.groupOption,l=e.data,a=e.label,u=e.value,s=l.key;if(n){var d,p=null!==(d=l.title)&&void 0!==d?d:ue(a)?a.toString():void 0;return f.createElement("div",{className:m()(B,"".concat(B,"-group"),l.className),title:p},void 0!==a?a:s)}var v=l.disabled,g=l.title,h=(l.children,l.style),w=l.className,S=(0,c.Z)(l,ce),y=(0,le.Z)(S,ee),C=F(u),Z=v||!C&&j,x="".concat(B,"-option"),$=m()(B,x,w,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(x,"-grouped"),r),"".concat(x,"-active"),Y===t&&!Z),"".concat(x,"-disabled"),Z),"".concat(x,"-selected"),C)),I=te(e),O=!M||"function"==typeof M||C,R="number"==typeof I?I:I||u,H=ue(R)?R.toString():void 0;return void 0!==g&&(H=g),f.createElement("div",(0,o.Z)({},(0,E.Z)(y),N?{}:ne(e,t),{"aria-selected":Q(u),className:$,title:H,onMouseMove:function(){Y===t||Z||U(t)},onClick:function(){Z||J(u)},style:h}),f.createElement("div",{className:"".concat(x,"-content")},"function"==typeof T?T(e,{index:t}):R),f.isValidElement(M)||C,O&&f.createElement(b,{className:"".concat(B,"-option-state"),customizeIcon:M,customizeIconProps:{value:u,disabled:Z,isSelected:C}},C?"✓":null))})))};var de=f.forwardRef(se);function fe(e,t){return M(e).join("").toUpperCase().includes(t)}var pe=n(15705),me=n(54387),ve=["children","value"],ge=["children"];function he(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value,a=(0,c.Z)(o,ve);return(0,l.Z)({key:n,value:void 0!==i?i:n,children:r},a)}function be(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,me.Z)(e).map((function(e,n){if(!f.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,i=o.key,a=o.props,u=a.children,s=(0,c.Z)(a,ge);return t||!r?he(e):(0,l.Z)((0,l.Z)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:be(u)})})).filter((function(e){return e}))}var we=function(e,t,n,o,r){return f.useMemo((function(){var i=e;!e&&(i=be(t));var l=new Map,a=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=0;u<t.length;u+=1){var s=t[u];!s[n.options]||i?(l.set(s[n.value],s),c(a,s,n.label),c(a,s,o),c(a,s,r)):e(s[n.options],!0)}}(i),{options:i,valueOptions:l,labelOptions:a}}),[e,t,n,o,r])};function Se(e){var t=f.useRef();t.current=e;var n=f.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var ye=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ce=["inputValue"];var Ee=f.forwardRef((function(e,t){var n=e.id,d=e.mode,p=e.prefixCls,m=void 0===p?"rc-select":p,v=e.backfill,g=e.fieldNames,h=e.inputValue,b=e.searchValue,w=e.onSearch,S=e.autoClearSearchValue,y=void 0===S||S,C=e.onSelect,E=e.onDeselect,Z=e.dropdownMatchSelectWidth,x=void 0===Z||Z,$=e.filterOption,I=e.filterSort,O=e.optionFilterProp,R=e.optionLabelProp,H=e.options,N=e.optionRender,D=e.children,P=e.defaultActiveFirstOption,z=e.menuItemSelectedIcon,T=e.virtual,B=e.direction,k=e.listHeight,L=void 0===k?200:k,j=e.listItemHeight,W=void 0===j?20:j,A=e.labelRender,F=e.value,_=e.defaultValue,Y=e.labelInValue,q=e.onChange,U=e.maxCount,J=(0,c.Z)(e,ye),te=(0,pe.ZP)(n),ne=Q(d),oe=!(H||!D),re=f.useMemo((function(){return(void 0!==$||"combobox"!==d)&&$}),[$,d]),ie=f.useMemo((function(){return X(g,oe)}),[JSON.stringify(g),oe]),le=(0,s.Z)("",{value:void 0!==b?b:h,postState:function(e){return e||""}}),ae=(0,a.Z)(le,2),ce=ae[0],ue=ae[1],se=we(H,D,ie,O,R),me=se.valueOptions,ve=se.labelOptions,ge=se.options,he=f.useCallback((function(e){return M(e).map((function(e){var t,n,o,r,i,l;(function(e){return!e||"object"!==(0,u.Z)(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(l=e.value)&&void 0!==l?l:o);var a,c=me.get(t);c&&(void 0===n&&(n=null==c?void 0:c[R||ie.label]),void 0===o&&(o=null!==(a=null==c?void 0:c.key)&&void 0!==a?a:t),r=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:o,disabled:r,title:i}}))}),[ie,R,me]),be=(0,s.Z)(_,{value:F}),Ee=(0,a.Z)(be,2),Ze=Ee[0],xe=Ee[1],$e=f.useMemo((function(){var e,t=he(ne&&null===Ze?[]:Ze);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Ze,he,d,ne]),Ie=function(e,t){var n=f.useRef({values:new Map,options:new Map});return[f.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?(0,l.Z)((0,l.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),c=new Map,u=new Map;return a.forEach((function(e){c.set(e.value,e),u.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=c,n.current.options=u,a}),[e,t]),f.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}($e,me),Oe=(0,a.Z)(Ie,2),Me=Oe[0],Re=Oe[1],He=f.useMemo((function(){if(!d&&1===Me.length){var e=Me[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Me.map((function(e){var t;return(0,l.Z)((0,l.Z)({},e),{},{label:null!==(t="function"==typeof A?A(e):e.label)&&void 0!==t?t:e.value})}))}),[d,Me,A]),Ne=f.useMemo((function(){return new Set(Me.map((function(e){return e.value})))}),[Me]);f.useEffect((function(){if("combobox"===d){var e,t=null===(e=Me[0])||void 0===e?void 0:e.value;ue(function(e){return null!=e}(t)?String(t):"")}}),[Me]);var De=Se((function(e,t){var n=null!=t?t:e;return(0,i.Z)((0,i.Z)({},ie.value,e),ie.label,n)})),Pe=function(e,t,n,o,r){return f.useMemo((function(){if(!n||!1===o)return e;var a=t.options,c=t.label,u=t.value,s=[],d="function"==typeof o,f=n.toUpperCase(),p=d?o:function(e,t){return r?fe(t[r],f):t[a]?fe(t["children"!==c?c:"label"],f):fe(t[u],f)},m=d?function(e){return K(e)}:function(e){return e};return e.forEach((function(e){if(e[a])if(p(n,m(e)))s.push(e);else{var t=e[a].filter((function(e){return p(n,m(e))}));t.length&&s.push((0,l.Z)((0,l.Z)({},e),{},(0,i.Z)({},a,t)))}else p(n,m(e))&&s.push(e)})),s}),[e,o,r,n,t])}(f.useMemo((function(){if("tags"!==d)return ge;var e=(0,r.Z)(ge);return(0,r.Z)(Me).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return me.has(e)})(n)||e.push(De(n,t.label))})),e}),[De,ge,me,Me,d]),ie,ce,re,O),ze=f.useMemo((function(){return"tags"!==d||!ce||Pe.some((function(e){return e[O||"value"]===ce}))||Pe.some((function(e){return e[ie.value]===ce}))?Pe:[De(ce)].concat((0,r.Z)(Pe))}),[De,O,d,Pe,ce,ie]),Te=function e(t){return(0,r.Z)(t).sort((function(e,t){return I(e,t,{searchValue:ce})})).map((function(t){return Array.isArray(t.options)?(0,l.Z)((0,l.Z)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},Be=f.useMemo((function(){return I?Te(ze):ze}),[ze,I,ce]),ke=f.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=X(n,!1),l=i.label,a=i.value,c=i.options,u=i.groupLabel;function s(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(c in e)){var n=e[a];r.push({key:V(e,r.length),groupOption:t,data:e,label:e[l],value:n})}else{var i=e[u];void 0===i&&o&&(i=e.label),r.push({key:V(e,r.length),group:!0,data:e,label:i}),s(e[c],!0)}}))}return s(e,!1),r}(Be,{fieldNames:ie,childrenAsData:oe})}),[Be,ie,oe]),Le=function(e){var t=he(e);if(xe(t),q&&(t.length!==Me.length||t.some((function(e,t){var n;return(null===(n=Me[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=Y?t:t.map((function(e){return e.value})),o=t.map((function(e){return K(Re(e.value))}));q(ne?n:n[0],ne?o:o[0])}},je=f.useState(null),We=(0,a.Z)(je,2),Ae=We[0],Fe=We[1],Ve=f.useState(0),_e=(0,a.Z)(Ve,2),Xe=_e[0],Ke=_e[1],Ge=void 0!==P?P:"combobox"!==d,Ye=f.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source,r=void 0===o?"keyboard":o;Ke(t),v&&"combobox"===d&&null!==e&&"keyboard"===r&&Fe(String(e))}),[v,d]),qe=function(e,t,n){var o=function(){var t,n=Re(e);return[Y?{label:null==n?void 0:n[ie.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,K(n)]};if(t&&C){var r=o(),i=(0,a.Z)(r,2),l=i[0],c=i[1];C(l,c)}else if(!t&&E&&"clear"!==n){var u=o(),s=(0,a.Z)(u,2),d=s[0],f=s[1];E(d,f)}},Ue=Se((function(e,t){var n,o=!ne||t.selected;n=o?ne?[].concat((0,r.Z)(Me),[e]):[e]:Me.filter((function(t){return t.value!==e})),Le(n),qe(e,o),"combobox"===d?Fe(""):Q&&!y||(ue(""),Fe(""))})),Qe=f.useMemo((function(){var e=!1!==T&&!1!==x;return(0,l.Z)((0,l.Z)({},se),{},{flattenOptions:ke,onActiveValue:Ye,defaultActiveFirstOption:Ge,onSelect:Ue,menuItemSelectedIcon:z,rawValues:Ne,fieldNames:ie,virtual:e,direction:B,listHeight:L,listItemHeight:W,childrenAsData:oe,maxCount:U,optionRender:N})}),[U,se,ke,Ye,Ge,Ue,z,Ne,ie,T,x,B,L,W,oe,N]);return f.createElement(G.Provider,{value:Qe},f.createElement(ee,(0,o.Z)({},J,{id:te,prefixCls:m,ref:t,omitDomProps:Ce,mode:d,displayValues:He,onDisplayValuesChange:function(e,t){Le(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){qe(e.value,!1,n)}))},direction:B,searchValue:ce,onSearch:function(e,t){if(ue(e),Fe(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===d&&Le(e),null==w||w(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,r.Z)(Ne),[n])));Le(o),qe(n,!0),ue("")}}},autoClearSearchValue:y,onSearchSplit:function(e){var t=e;"tags"!==d&&(t=e.map((function(e){var t=ve.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,r.Z)(Ne),(0,r.Z)(t))));Le(n),n.forEach((function(e){qe(e,!0)}))},dropdownMatchSelectWidth:x,OptionList:de,emptyOptions:!ke.length,activeValue:Ae,activeDescendantId:"".concat(te,"_list_").concat(Xe)})))}));var Ze=Ee;Ze.Option=re,Ze.OptGroup=ne;var xe=Ze},14680:function(e,t,n){n.d(t,{Z:function(){return k}});var o=n(83910),r=n(29608),i=n(94433),l=n(1206),a=n(32906),c=n(38956),u=n(51865),s=n.n(u),d=n(20488),f=n(3389),p=n(99047),m=n(44194),v=n(56321),g=m.forwardRef((function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,c=e.children,u=e.prefixCls,f=e.onInnerResize,p=e.innerProps,v=e.rtl,g=e.extra,h={},b={display:"flex",flexDirection:"column"};return void 0!==r&&(h={height:n,position:"relative",overflow:"hidden"},b=(0,i.Z)((0,i.Z)({},b),{},(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({transform:"translateY(".concat(r,"px)")},v?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:h},m.createElement(d.Z,{onResize:function(e){e.offsetHeight&&f&&f()}},m.createElement("div",(0,o.Z)({style:b,className:s()((0,l.Z)({},"".concat(u,"-holder-inner"),u)),ref:t},p),c,g)))}));g.displayName="Filler";var h=g;function b(e){var t=e.children,n=e.setRef,o=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:o})}function w(e,t,n){var o=m.useState(e),r=(0,a.Z)(o,2),i=r[0],l=r[1],c=m.useState(null),u=(0,a.Z)(c,2),s=u[0],d=u[1];return m.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,l=t.length;if(0===i&&0===l)return null;i<l?(o=e,r=t):(o=t,r=e);var a={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):a}for(var u=null,s=1!==Math.abs(i-l),d=0;d<r.length;d+=1){var f=c(o[d]);if(f!==c(r[d])){u=d,s=s||f!==c(r[d+1]);break}}return null===u?null:{index:u,multiple:s}}(i||[],e||[],t);void 0!==(null==o?void 0:o.index)&&(null==n||n(o.index),d(e[o.index])),l(e)}),[e]),[s]}var S=n(24589),y="object"===("undefined"==typeof navigator?"undefined":(0,r.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),C=function(e,t,n,o){var r=(0,m.useRef)(!1),i=(0,m.useRef)(null);function l(){clearTimeout(i.current),r.current=!0,i.current=setTimeout((function(){r.current=!1}),50)}var a=(0,m.useRef)({top:e,bottom:t,left:n,right:o});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||l(),!r.current&&o}};function E(e,t,n,o,r,i,l){var a=(0,m.useRef)(0),c=(0,m.useRef)(null),u=(0,m.useRef)(null),s=(0,m.useRef)(!1),d=C(t,n,o,r);var f=(0,m.useRef)(null),p=(0,m.useRef)(null);return[function(t){if(e){S.Z.cancel(p.current),p.current=(0,S.Z)((function(){f.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,m=n,v=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(m=o,v=0,f.current="sx");var g=Math.abs(m),h=Math.abs(v);null===f.current&&(f.current=i&&g>h?"x":"y"),"y"===f.current?function(e,t){if(S.Z.cancel(c.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,a.current+=t,u.current=t,y||n.preventDefault(),c.current=(0,S.Z)((function(){var e=s.current?10:1;l(a.current*e,!1),a.current=0})))}}(t,v):function(e,t){l(t,!0),y||e.preventDefault()}(t,m)}},function(t){e&&(s.current=t.detail===u.current)}]}var Z=n(17989),x=n(71235),$=function(){function e(){(0,Z.Z)(this,e),(0,l.Z)(this,"maps",void 0),(0,l.Z)(this,"id",0),(0,l.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,x.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function I(e){var t=parseFloat(e);return isNaN(t)?0:t}var O=14/15;function M(e){return Math.floor(Math.pow(e,.5))}function R(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var H=m.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,c=e.scrollRange,u=e.onStartMove,d=e.onStopMove,f=e.onScroll,p=e.horizontal,v=e.spinSize,g=e.containerSize,h=e.style,b=e.thumbStyle,w=e.showScrollBar,y=m.useState(!1),C=(0,a.Z)(y,2),E=C[0],Z=C[1],x=m.useState(null),$=(0,a.Z)(x,2),I=$[0],O=$[1],M=m.useState(null),H=(0,a.Z)(M,2),N=H[0],D=H[1],P=!o,z=m.useRef(),T=m.useRef(),B=m.useState(w),k=(0,a.Z)(B,2),L=k[0],j=k[1],W=m.useRef(),A=function(){!0!==w&&!1!==w&&(clearTimeout(W.current),j(!0),W.current=setTimeout((function(){j(!1)}),3e3))},F=c-g||0,V=g-v||0,_=m.useMemo((function(){return 0===r||0===F?0:r/F*V}),[r,F,V]),X=m.useRef({top:_,dragging:E,pageY:I,startTop:N});X.current={top:_,dragging:E,pageY:I,startTop:N};var K=function(e){Z(!0),O(R(e,p)),D(X.current.top),u(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=z.current,n=T.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",K,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",K)}}),[]);var G=m.useRef();G.current=F;var Y=m.useRef();Y.current=V,m.useEffect((function(){if(E){var e,t=function(t){var n=X.current,o=n.dragging,r=n.pageY,i=n.startTop;S.Z.cancel(e);var l=z.current.getBoundingClientRect(),a=g/(p?l.width:l.height);if(o){var c=(R(t,p)-r)*a,u=i;!P&&p?u-=c:u+=c;var s=G.current,d=Y.current,m=d?u/d:0,v=Math.ceil(m*s);v=Math.max(v,0),v=Math.min(v,s),e=(0,S.Z)((function(){f(v,p)}))}},n=function(){Z(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),S.Z.cancel(e)}}}),[E]),m.useEffect((function(){return A(),function(){clearTimeout(W.current)}}),[r]),m.useImperativeHandle(t,(function(){return{delayHidden:A}}));var q="".concat(n,"-scrollbar"),U={position:"absolute",visibility:L?null:"hidden"},Q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(U,{height:8,left:0,right:0,bottom:0}),Object.assign(Q,(0,l.Z)({height:"100%",width:v},P?"left":"right",_))):(Object.assign(U,(0,l.Z)({width:8,top:0,bottom:0},P?"right":"left",0)),Object.assign(Q,{width:"100%",height:v,top:_})),m.createElement("div",{ref:z,className:s()(q,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(q,"-horizontal"),p),"".concat(q,"-vertical"),!p),"".concat(q,"-visible"),L)),style:(0,i.Z)((0,i.Z)({},U),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:A},m.createElement("div",{ref:T,className:s()("".concat(q,"-thumb"),(0,l.Z)({},"".concat(q,"-thumb-moving"),E)),style:(0,i.Z)((0,i.Z)({},Q),b),onMouseDown:K}))}));function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var D=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],P=[],z={overflowY:"auto",overflowAnchor:"none"};function T(e,t){var n=e.prefixCls,u=void 0===n?"rc-virtual-list":n,g=e.className,y=e.height,Z=e.itemHeight,x=e.fullHeight,T=void 0===x||x,B=e.style,k=e.data,L=e.children,j=e.itemKey,W=e.virtual,A=e.direction,F=e.scrollWidth,V=e.component,_=void 0===V?"div":V,X=e.onScroll,K=e.onVirtualScroll,G=e.onVisibleChange,Y=e.innerProps,q=e.extraRender,U=e.styles,Q=e.showScrollBar,J=void 0===Q?"optional":Q,ee=(0,c.Z)(e,D),te=m.useCallback((function(e){return"function"==typeof j?j(e):null==e?void 0:e[j]}),[j]),ne=function(e,t,n){var o=m.useState(0),r=(0,a.Z)(o,2),i=r[0],l=r[1],c=(0,m.useRef)(new Map),u=(0,m.useRef)(new $),s=(0,m.useRef)(0);function d(){s.current+=1}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;c.current.forEach((function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,l=r.marginBottom,a=o+I(i)+I(l);u.current.get(n)!==a&&(u.current.set(n,a),e=!0)}})),e&&l((function(e){return e+1}))};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then((function(){n===s.current&&t()}))}}return(0,m.useEffect)((function(){return d}),[]),[function(o,r){var i=e(o),l=c.current.get(i);r?(c.current.set(i,r),f()):c.current.delete(i),!l!=!r&&(r?null==t||t(o):null==n||n(o))},f,u.current,i]}(te,null,null),oe=(0,a.Z)(ne,4),re=oe[0],ie=oe[1],le=oe[2],ae=oe[3],ce=!(!1===W||!y||!Z),ue=m.useMemo((function(){return Object.values(le.maps).reduce((function(e,t){return e+t}),0)}),[le.id,le.maps]),se=ce&&k&&(Math.max(Z*k.length,ue)>y||!!F),de="rtl"===A,fe=s()(u,(0,l.Z)({},"".concat(u,"-rtl"),de),g),pe=k||P,me=(0,m.useRef)(),ve=(0,m.useRef)(),ge=(0,m.useRef)(),he=(0,m.useState)(0),be=(0,a.Z)(he,2),we=be[0],Se=be[1],ye=(0,m.useState)(0),Ce=(0,a.Z)(ye,2),Ee=Ce[0],Ze=Ce[1],xe=(0,m.useState)(!1),$e=(0,a.Z)(xe,2),Ie=$e[0],Oe=$e[1],Me=function(){Oe(!0)},Re=function(){Oe(!1)},He={getKey:te};function Ne(e){Se((function(t){var n=function(e){var t=e;Number.isNaN(Ue.current)||(t=Math.min(t,Ue.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return me.current.scrollTop=n,n}))}var De=(0,m.useRef)({start:0,end:pe.length}),Pe=(0,m.useRef)(),ze=w(pe,te),Te=(0,a.Z)(ze,1)[0];Pe.current=Te;var Be=m.useMemo((function(){if(!ce)return{scrollHeight:void 0,start:0,end:pe.length-1,offset:void 0};var e;if(!se)return{scrollHeight:(null===(e=ve.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:pe.length-1,offset:void 0};for(var t,n,o,r=0,i=pe.length,l=0;l<i;l+=1){var a=pe[l],c=te(a),u=le.get(c),s=r+(void 0===u?Z:u);s>=we&&void 0===t&&(t=l,n=r),s>we+y&&void 0===o&&(o=l),r=s}return void 0===t&&(t=0,n=0,o=Math.ceil(y/Z)),void 0===o&&(o=pe.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,pe.length-1),offset:n}}),[se,ce,we,pe,ae,y]),ke=Be.scrollHeight,Le=Be.start,je=Be.end,We=Be.offset;De.current.start=Le,De.current.end=je,m.useLayoutEffect((function(){var e=le.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=pe[Le];if(o&&void 0===n)if(te(o)===t){var r=le.get(t)-Z;Ne((function(e){return e+r}))}}le.resetRecord()}),[ke]);var Ae=m.useState({width:0,height:y}),Fe=(0,a.Z)(Ae,2),Ve=Fe[0],_e=Fe[1],Xe=(0,m.useRef)(),Ke=(0,m.useRef)(),Ge=m.useMemo((function(){return N(Ve.width,F)}),[Ve.width,F]),Ye=m.useMemo((function(){return N(Ve.height,ke)}),[Ve.height,ke]),qe=ke-y,Ue=(0,m.useRef)(qe);Ue.current=qe;var Qe=we<=0,Je=we>=qe,et=Ee<=0,tt=Ee>=F,nt=C(Qe,Je,et,tt),ot=function(){return{x:de?-Ee:Ee,y:we}},rt=(0,m.useRef)(ot()),it=(0,f.zX)((function(e){if(K){var t=(0,i.Z)((0,i.Z)({},ot()),e);rt.current.x===t.x&&rt.current.y===t.y||(K(t),rt.current=t)}}));function lt(e,t){var n=e;t?((0,v.flushSync)((function(){Ze(n)})),it()):Ne(n)}var at=function(e){var t=e,n=F?F-Ve.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ct=(0,f.zX)((function(e,t){t?((0,v.flushSync)((function(){Ze((function(t){return at(t+(de?-e:e))}))})),it()):Ne((function(t){return t+e}))})),ut=E(ce,Qe,Je,et,tt,!!F,ct),st=(0,a.Z)(ut,2),dt=st[0],ft=st[1];!function(e,t,n){var o,r=(0,m.useRef)(!1),i=(0,m.useRef)(0),l=(0,m.useRef)(0),a=(0,m.useRef)(null),c=(0,m.useRef)(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),a=i.current-t,u=l.current-o,s=Math.abs(a)>Math.abs(u);s?i.current=t:l.current=o;var d=n(s,s?a:u,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){s?a*=O:u*=O;var e=Math.floor(s?a:u);(!n(s,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},s=function(){r.current=!1,o()},d=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",s,{passive:!0}))};o=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",s))},(0,p.Z)((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(ce,me,(function(e,t,n,o){var r=o;return!nt(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){m.useEffect((function(){var o=t.current;if(e&&o){var r,i,l=!1,a=function(){S.Z.cancel(r)},c=function e(){a(),r=(0,S.Z)((function(){n(i),e()}))},u=function(){l=!1,a()},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,l=!0)}},d=function(e){if(l){var t=R(e,!1),n=o.getBoundingClientRect(),r=n.top,u=n.bottom;t<=r?(i=-M(r-t),c()):t>=u?(i=M(t-u),c()):a()}};return o.addEventListener("mousedown",s),o.ownerDocument.addEventListener("mouseup",u),o.ownerDocument.addEventListener("mousemove",d),o.ownerDocument.addEventListener("dragend",u),function(){o.removeEventListener("mousedown",s),o.ownerDocument.removeEventListener("mouseup",u),o.ownerDocument.removeEventListener("mousemove",d),o.ownerDocument.removeEventListener("dragend",u),a()}}}),[e])}(se,me,(function(e){Ne((function(t){return t+e}))})),(0,p.Z)((function(){function e(e){var t=Qe&&e.detail<0,n=Je&&e.detail>0;!ce||t||n||e.preventDefault()}var t=me.current;return t.addEventListener("wheel",dt,{passive:!1}),t.addEventListener("DOMMouseScroll",ft,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",dt),t.removeEventListener("DOMMouseScroll",ft),t.removeEventListener("MozMousePixelScroll",e)}}),[ce,Qe,Je]),(0,p.Z)((function(){if(F){var e=at(Ee);Ze(e),it({x:e})}}),[Ve.width,F]);var pt=function(){var e,t;null===(e=Xe.current)||void 0===e||e.delayHidden(),null===(t=Ke.current)||void 0===t||t.delayHidden()},mt=function(e,t,n,o,l,c,u,s){var d=m.useRef(),f=m.useState(null),v=(0,a.Z)(f,2),g=v[0],h=v[1];return(0,p.Z)((function(){if(g&&g.times<10){if(!e.current)return void h((function(e){return(0,i.Z)({},e)}));c();var r=g.targetAlign,a=g.originAlign,s=g.index,d=g.offset,f=e.current.clientHeight,p=!1,m=r,v=null;if(f){for(var b=r||a,w=0,S=0,y=0,C=Math.min(t.length-1,s),E=0;E<=C;E+=1){var Z=l(t[E]);S=w;var x=n.get(Z);w=y=S+(void 0===x?o:x)}for(var $="top"===b?d:f-d,I=C;I>=0;I-=1){var O=l(t[I]),M=n.get(O);if(void 0===M){p=!0;break}if(($-=M)<=0)break}switch(b){case"top":v=S-d;break;case"bottom":v=y-f+d;break;default:var R=e.current.scrollTop;S<R?m="top":y>R+f&&(m="bottom")}null!==v&&u(v),v!==g.lastTop&&(p=!0)}p&&h((0,i.Z)((0,i.Z)({},g),{},{times:g.times+1,targetAlign:m,lastTop:v}))}}),[g,e.current]),function(e){if(null!=e){if(S.Z.cancel(d.current),"number"==typeof e)u(e);else if(e&&"object"===(0,r.Z)(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return l(t)===e.key}));var i=e.offset;h({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else s()}}(me,pe,le,Z,te,(function(){return ie(!0)}),Ne,pt);m.useImperativeHandle(t,(function(){return{nativeElement:ge.current,getScrollInfo:ot,scrollTo:function(e){var t;(t=e)&&"object"===(0,r.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ze(at(e.left)),mt(e.top)):mt(e)}}})),(0,p.Z)((function(){if(G){var e=pe.slice(Le,je+1);G(e,pe)}}),[Le,je,pe]);var vt=function(e,t,n,o){var r=m.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),i=(0,a.Z)(r,2),l=i[0],c=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,a=l.get(r),u=l.get(i);if(void 0===a||void 0===u)for(var s=e.length,d=c.length;d<s;d+=1){var f,p=e[d],m=t(p);l.set(m,d);var v=null!==(f=n.get(m))&&void 0!==f?f:o;if(c[d]=(c[d-1]||0)+v,m===r&&(a=d),m===i&&(u=d),void 0!==a&&void 0!==u)break}return{top:c[a-1]||0,bottom:c[u]}}}(pe,te,le,Z),gt=null==q?void 0:q({start:Le,end:je,virtual:se,offsetX:Ee,offsetY:We,rtl:de,getSize:vt}),ht=function(e,t,n,o,r,i,l,a){var c=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=l(e,t+n,{style:{width:o},offsetX:r}),u=c(e);return m.createElement(b,{key:u,setRef:function(t){return i(e,t)}},a)}))}(pe,Le,je,F,Ee,re,L,He),bt=null;y&&(bt=(0,i.Z)((0,l.Z)({},T?"height":"maxHeight",y),z),ce&&(bt.overflowY="hidden",F&&(bt.overflowX="hidden"),Ie&&(bt.pointerEvents="none")));var wt={};return de&&(wt.dir="rtl"),m.createElement("div",(0,o.Z)({ref:ge,style:(0,i.Z)((0,i.Z)({},B),{},{position:"relative"}),className:fe},wt,ee),m.createElement(d.Z,{onResize:function(e){_e({width:e.offsetWidth,height:e.offsetHeight})}},m.createElement(_,{className:"".concat(u,"-holder"),style:bt,ref:me,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==we&&Ne(t),null==X||X(e),it()},onMouseEnter:pt},m.createElement(h,{prefixCls:u,height:ke,offsetX:Ee,offsetY:We,scrollWidth:F,onInnerResize:ie,ref:ve,innerProps:Y,rtl:de,extra:gt},ht))),se&&ke>y&&m.createElement(H,{ref:Xe,prefixCls:u,scrollOffset:we,scrollRange:ke,rtl:de,onScroll:lt,onStartMove:Me,onStopMove:Re,spinSize:Ye,containerSize:Ve.height,style:null==U?void 0:U.verticalScrollBar,thumbStyle:null==U?void 0:U.verticalScrollBarThumb,showScrollBar:J}),se&&F>Ve.width&&m.createElement(H,{ref:Ke,prefixCls:u,scrollOffset:Ee,scrollRange:F,rtl:de,onScroll:lt,onStartMove:Me,onStopMove:Re,spinSize:Ge,containerSize:Ve.width,horizontal:!0,style:null==U?void 0:U.horizontalScrollBar,thumbStyle:null==U?void 0:U.horizontalScrollBarThumb,showScrollBar:J}))}var B=m.forwardRef(T);B.displayName="List";var k=B}}]);