Files
weiyu/deploy/server/admin/7904.54749981.async.js
jack ning 0cd9a7595d 0.9.2
2025-08-16 21:59:41 +08:00

1 line
84 KiB
JavaScript
Raw 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([[7904],{70927:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(77260),r=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},l=n(54183),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(a)},90727:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(77260),r=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},l=n(54183),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(a)},54096:function(e,t,n){var o=n(44194),r=n(35779),i=n(62399);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)}}},62399:function(e,t,n){n.d(t,{Z:function(){return C}});var o=n(44194),r=n(51865),i=n.n(r),l=n(90972),a=n(87471),c=n(84302);var u=()=>{const[,e]=(0,c.ZP)(),[t]=(0,l.Z)("Empty"),n=new a.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 s=()=>{const[,e]=(0,c.ZP)(),[t]=(0,l.Z)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:u}=e,{borderColor:s,shadowColor:d,contentColor:f}=(0,o.useMemo)((()=>({borderColor:new a.t(n).onBackground(u).toHexString(),shadowColor:new a.t(r).onBackground(u).toHexString(),contentColor:new a.t(i).onBackground(u).toHexString()})),[n,r,i,u]);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}))))},d=n(79255),f=n(77167);const p=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}}}}};var m=(0,d.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=(0,f.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[p(r)]})),v=n(35779),g=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 h=o.createElement(u,null),b=o.createElement(s,null),w=e=>{const{className:t,rootClassName:n,prefixCls:r,image:a=h,description:c,children:u,imageStyle:s,style:d,classNames:f,styles:p}=e,w=g(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:C,direction:S,className:y,style:E,classNames:Z,styles:x}=(0,v.dj)("empty"),I=C("empty",r),[$,M,R]=m(I),[O]=(0,l.Z)("Empty"),H=void 0!==c?c:null==O?void 0:O.description,N="string"==typeof H?H:"empty";let P=null;return P="string"==typeof a?o.createElement("img",{alt:N,src:a}):a,$(o.createElement("div",Object.assign({className:i()(M,R,I,y,{[`${I}-normal`]:a===b,[`${I}-rtl`]:"rtl"===S},t,n,Z.root,null==f?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),E),null==p?void 0:p.root),d)},w),o.createElement("div",{className:i()(`${I}-image`,Z.image,null==f?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},s),x.image),null==p?void 0:p.image)},P),H&&o.createElement("div",{className:i()(`${I}-description`,Z.description,null==f?void 0:f.description),style:Object.assign(Object.assign({},x.description),null==p?void 0:p.description)},H),u&&o.createElement("div",{className:i()(`${I}-footer`,Z.footer,null==f?void 0:f.footer),style:Object.assign(Object.assign({},x.footer),null==p?void 0:p.footer)},u)))};w.PRESENTED_IMAGE_DEFAULT=h,w.PRESENTED_IMAGE_SIMPLE=b;var C=w},27904:function(e,t,n){var o=n(44194),r=n(51865),i=n.n(r),l=n(78130),a=n(34573),c=n(13901),u=n(15649),s=n(50037),d=n(46319),f=n(35779),p=n(54096),m=n(72305),v=n(23609),g=n(77936),h=n(86479),b=n(8797),w=n(14981),C=n(84302),S=n(7573),y=n(2277),E=n(84650),Z=n(81213),x=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",$=(e,t)=>{var n,r,s,$,M;const{prefixCls:R,bordered:O,className:H,rootClassName:N,getPopupContainer:P,popupClassName:D,dropdownClassName:z,listHeight:T=256,placement:B,listItemHeight:k,size:L,disabled:j,notFoundContent:W,status:A,builtinPlacements:F,dropdownMatchSelectWidth:V,popupMatchSelectWidth:_,direction:X,style:K,allowClear:G,variant:Y,dropdownStyle:q,transitionName:U,tagRender:Q,maxCount:J,prefix:ee,dropdownRender:te,popupRender:ne,onDropdownVisibleChange:oe,onOpenChange:re,styles:ie,classNames:le}=e,ae=x(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:ce,getPrefixCls:ue,renderEmpty:se,direction:de,virtual:fe,popupMatchSelectWidth:pe,popupOverflow:me}=o.useContext(f.E_),{showSearch:ve,style:ge,styles:he,className:be,classNames:we}=(0,f.dj)("select"),[,Ce]=(0,C.ZP)(),Se=null!=k?k:null==Ce?void 0:Ce.controlHeight,ye=ue("select",R),Ee=ue(),Ze=null!=X?X:de,{compactSize:xe,compactItemClassnames:Ie}=(0,w.ri)(ye,Ze),[$e,Me]=(0,b.Z)("select",Y,O),Re=(0,v.Z)(ye),[Oe,He,Ne]=(0,y.Z)(ye,Re),Pe=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===I?"combobox":t}),[e.mode]),De="multiple"===Pe||"tags"===Pe,ze=(0,Z.Z)(e.suffixIcon,e.showArrow),Te=null!==(n=null!=_?_:V)&&void 0!==n?n:pe,Be=(null===(r=null==ie?void 0:ie.popup)||void 0===r?void 0:r.root)||(null===(s=he.popup)||void 0===s?void 0:s.root)||q,ke=ne||te,Le=re||oe,{status:je,hasFeedback:We,isFormItemInput:Ae,feedbackIcon:Fe}=o.useContext(h.aM),Ve=(0,d.F)(je,A);let _e;_e=void 0!==W?W:"combobox"===Pe?null:(null==se?void 0:se("Select"))||o.createElement(p.Z,{componentName:"Select"});const{suffixIcon:Xe,itemIcon:Ke,removeIcon:Ge,clearIcon:Ye}=(0,E.Z)(Object.assign(Object.assign({},ae),{multiple:De,hasFeedback:We,feedbackIcon:Fe,showSuffixIcon:ze,prefixCls:ye,componentName:"Select"})),qe=!0===G?{clearIcon:Ye}:G,Ue=(0,a.Z)(ae,["suffixIcon","itemIcon"]),Qe=i()((null===($=null==le?void 0:le.popup)||void 0===$?void 0:$.root)||(null===(M=null==we?void 0:we.popup)||void 0===M?void 0:M.root)||D||z,{[`${ye}-dropdown-${Ze}`]:"rtl"===Ze},N,we.root,null==le?void 0:le.root,Ne,Re,He),Je=(0,g.Z)((e=>{var t;return null!==(t=null!=L?L:xe)&&void 0!==t?t:e})),et=o.useContext(m.Z),tt=null!=j?j:et,nt=i()({[`${ye}-lg`]:"large"===Je,[`${ye}-sm`]:"small"===Je,[`${ye}-rtl`]:"rtl"===Ze,[`${ye}-${$e}`]:Me,[`${ye}-in-form-item`]:Ae},(0,d.Z)(ye,Ve,We),Ie,be,H,we.root,null==le?void 0:le.root,N,Ne,Re,He),ot=o.useMemo((()=>void 0!==B?B:"rtl"===Ze?"bottomRight":"bottomLeft"),[B,Ze]);const[rt]=(0,c.Cn)("SelectLike",null==Be?void 0:Be.zIndex);return Oe(o.createElement(l.ZP,Object.assign({ref:t,virtual:fe,showSearch:ve},Ue,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),null==ie?void 0:ie.root),ge),K),dropdownMatchSelectWidth:Te,transitionName:(0,u.m)(Ee,"slide-up",U),builtinPlacements:(0,S.Z)(F,me),listHeight:T,listItemHeight:Se,mode:Pe,prefixCls:ye,placement:ot,direction:Ze,prefix:ee,suffixIcon:Xe,menuItemSelectedIcon:Ke,removeIcon:Ge,allowClear:qe,notFoundContent:_e,className:nt,getPopupContainer:P||ce,dropdownClassName:Qe,disabled:tt,dropdownStyle:Object.assign(Object.assign({},Be),{zIndex:rt}),maxCount:De?J:void 0,tagRender:De?Q:void 0,dropdownRender:ke,onDropdownVisibleChange:Le})))};const M=o.forwardRef($),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},7573: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)}},2277:function(e,t,n){n.d(t,{Z:function(){return O}});var o=n(49336),r=n(82912),i=n(79255),l=n(77167),a=n(90074),c=n(11843);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(92832),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))}),C=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}`}})}),S=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}}}}),y=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${(0,f.bf)(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&: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,outline:0},[`${n}-prefix`]:{color:t.color}}}},E=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},y(e,t))}),Z=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},y(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)),C(e)),S(e)),Z(e))});const I=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"}}}},$=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"}}}},M=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({},I(e)),$(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()}}}}}},R=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},M(e),m(e),(0,d.ZP)(e),s(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,r.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var O=(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[R(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:C}=e,S=2*a,y=2*o,E=Math.min(r-S,r-y),Z=Math.min(i-S,i-y),x=Math.min(l-S,l-y);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:C,selectAffixPadding:a}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},92832:function(e,t,n){n.d(t,{_z:function(){return a},gp:function(){return l}});var o=n(59199),r=n(49336),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")]}},84650: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),C=t=>null!==e||p||h?o.createElement(o.Fragment,null,!1!==v&&t,p&&g):null;let S=null;if(void 0!==e)S=C(e);else if(d)S=C(o.createElement(c.Z,{spin:!0}));else{const e=`${m}-suffix`;S=({open:t,showSearch:n})=>C(t&&n?o.createElement(u.Z,{className:e}):o.createElement(a.Z,{className:e}))}let y=null;y=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:S,itemIcon:y,removeIcon:E}}},81213: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(76285),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 C}});var o=n(77260),r=n(13702),i=n(54549),l=n(39328),a=n(76285),c=n(17323),u=n(12952),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 C(){return f.useContext(w)}function S(){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 y=n(46748);var E=n(63941),Z=n(67992);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},I=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],$=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,I),w=r||f.createElement("input",null),C=w,S=C.ref,y=C.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,y,!0)),{},{id:o,ref:(0,h.sQ)(t,S),autoComplete:a||"off",autoFocus:i,className:m()("".concat(n,"-selection-search-input"),null==y?void 0:y.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)({},y.style),{},{opacity:u?null:0})}))};var M=f.forwardRef($);function R(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var O="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 P(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var D=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,C=e.autoComplete,S=e.activeDescendantId,y=e.tabIndex,x=e.removeIcon,I=e.maxTagCount,$=e.maxTagTextLength,R=e.maxTagPlaceholder,H=void 0===R?function(e){return"+ ".concat(e.length," ...")}:R,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],O?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:D,onClick:r,customizeIcon:x},"×"))},re=function(e,t,n,o,r,i){return f.createElement("span",{onMouseDown:function(e){D(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(M,{ref:d,open:c,prefixCls:r,id:o,inputElement:null,disabled:v,autoFocus:w,autoComplete:C,editable:ne,activeDescendantId:S,value:te,onKeyDown:j,onMouseDown:W,onChange:k,onPaste:L,onCompositionStart:A,onCompositionEnd:F,onBlur:V,tabIndex:y,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 $&&("string"==typeof n||"number"==typeof n)){var l=String(i);l.length>$&&(i="".concat(l.slice(0,$),"..."))}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:P,maxCount:I});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,C=e.onInputKeyDown,S=e.onInputMouseDown,y=e.onInputChange,Z=e.onInputPaste,x=e.onInputCompositionStart,I=e.onInputCompositionEnd,$=e.onInputBlur,R=e.title,O=f.useState(!1),H=(0,a.Z)(O,2),P=H[0],D=H[1],z="combobox"===s,T=z||g,B=p[0],k=h||"";z&&b&&!P&&(k=b),f.useEffect((function(){z&&D(!1)}),[z,b]);var L=!("combobox"!==s&&!d&&!g)&&!!k,j=void 0===R?N(B):R,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(M,{ref:r,prefixCls:n,id:o,open:d,inputElement:t,disabled:i,autoFocus:l,autoComplete:c,editable:T,activeDescendantId:u,value:k,onKeyDown:C,onMouseDown:S,onChange:function(e){D(!0),y(e)},onPaste:Z,onCompositionStart:x,onCompositionEnd:I,onBlur:$,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,C=e.domRef;f.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var E=S(0),Z=(0,a.Z)(E,2),x=Z[0],I=Z[1],$=(0,f.useRef)(null),M=function(e){!1!==v(e,!0,r.current)&&h(!0)},R={inputRef:n,onInputKeyDown:function(e){var t,o=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!l||o!==y.Z.UP&&o!==y.Z.DOWN||e.preventDefault(),b&&b(e),o!==y.Z.ENTER||"tags"!==c||r.current||l||null==g||g(e.target.value),i&&!l&&~[y.Z.UP,y.Z.DOWN,y.Z.LEFT,y.Z.RIGHT].indexOf(o))||(t=o)&&![y.Z.ESC,y.Z.SHIFT,y.Z.BACKSPACE,y.Z.TAB,y.Z.WIN_KEY,y.Z.ALT,y.Z.META,y.Z.WIN_KEY_RIGHT,y.Z.CTRL,y.Z.SEMICOLON,y.Z.EQUALS,y.Z.CAPS_LOCK,y.Z.CONTEXT_MENU,y.Z.F1,y.Z.F2,y.Z.F3,y.Z.F4,y.Z.F5,y.Z.F6,y.Z.F7,y.Z.F8,y.Z.F9,y.Z.F10,y.Z.F11,y.Z.F12].includes(t)&&h(!0)},onInputMouseDown:function(){I(!0)},onInputChange:function(e){var t=e.target.value;if(s&&$.current&&/[\r\n]/.test($.current)){var n=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,$.current)}$.current=null,M(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");$.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&M(e.target.value)},onInputBlur:w},O="multiple"===c||"tags"===c?f.createElement(z,(0,o.Z)({},e,R)):f.createElement(T,(0,o.Z)({},e,R));return f.createElement("div",{ref:C,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),O)};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,C=e.dropdownMatchSelectWidth,S=e.dropdownRender,y=e.dropdownAlign,E=e.getPopupContainer,Z=e.empty,x=e.getTriggerDOMNode,I=e.onPopupVisibleChange,$=e.onPopupMouseEnter,M=(0,c.Z)(e,j),R="".concat(n,"-dropdown"),O=u;S&&(O=S(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"}}}(C)}),[w,C]),N=s?"".concat(R,"-").concat(s):d,P="number"==typeof C,D=f.useMemo((function(){return P?null:!1===C?"minWidth":"width"}),[C,P]),z=p;P&&(z=(0,l.Z)((0,l.Z)({},z),{},{width:C}));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)({},M,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:b||("rtl"===h?"bottomRight":"bottomLeft"),builtinPlacements:H,prefixCls:R,popupTransitionName:N,popup:f.createElement("div",{onMouseEnter:$},O),ref:T,stretch:D,popupAlign:y,popupVisible:r,getPopupContainer:E,popupClassName:m()(v,(0,i.Z)({},"".concat(R,"-empty"),Z)),popupStyle:z,getTriggerDOMNode:x,onPopupVisibleChange:I}),a)};var A=f.forwardRef(W),F=n(25302);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,C=e.className,y=e.showSearch,E=e.tagRender,Z=e.direction,x=e.omitDomProps,I=e.displayValues,$=e.onDisplayValuesChange,M=e.emptyOptions,R=e.notFoundContent,O=void 0===R?"Not Found":R,H=e.onClear,N=e.mode,P=e.disabled,D=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,Ce=e.onFocus,Se=e.onBlur,ye=e.onKeyUp,Ee=e.onKeyDown,Ze=e.onMouseDown,xe=(0,c.Z)(e,q),Ie=Q(N),$e=(void 0!==y?y:Ie)||"combobox"===N,Me=(0,l.Z)({},xe);U.forEach((function(e){delete Me[e]})),null==x||x.forEach((function(e){delete Me[e]}));var Re=f.useState(!1),Oe=(0,a.Z)(Re,2),He=Oe[0],Ne=Oe[1];f.useEffect((function(){Ne((0,g.Z)())}),[]);var Pe=f.useRef(null),De=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:Pe.current||De.current}}));var Ve=f.useMemo((function(){var e;if("combobox"!==N)return K;var t=null===(e=I[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[K,N,I]),_e="combobox"===N&&"function"==typeof z&&z()||null,Xe="function"==typeof T&&T(),Ke=(0,h.x1)(De,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=!O&&M;(P||ot&&nt&&"combobox"===N)&&(nt=!1);var rt=!ot&&nt,it=f.useCallback((function(e){var t=void 0!==e?e:!nt;P||(tt(t),nt!==t&&(null==j||j(t)))}),[P,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(!(Ie&&_(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||Ie||"combobox"===N||st("",!1,!1)}),[nt]),f.useEffect((function(){et&&P&&tt(!1),P&&!ke.current&&Ae(!1)}),[P]);var dt=S(),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({}),Ct=(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[Pe.current,null===(e=ze.current)||void 0===e?void 0:e.getPopupElement()]}),rt,it,!!Xe);var St,yt=f.useMemo((function(){return(0,l.Z)((0,l.Z)({},e),{},{notFoundContent:O,open:nt,triggerOpen:rt,id:d,showSearch:$e,multiple:Ie,toggleOpen:it})}),[e,O,rt,nt,d,$e,Ie,it]),Et=!!ie||D;Et&&(St=f.createElement(b,{className:m()("".concat(p,"-arrow"),(0,i.Z)({},"".concat(p,"-arrow-loading"),D)),customizeIcon:ie,customizeIconProps:{loading:D,searchValue:Ve,open:nt,focused:We,showSearch:$e}}));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(),$([],{type:"clear",values:I}),st("",!1,!1)}),I,oe,le,P,Ve,N),It=xt.allowClear,$t=xt.clearIcon,Mt=f.createElement(ae,{ref:Be}),Rt=m()(p,C,(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"),Ie),"".concat(p,"-single"),!Ie),"".concat(p,"-allow-clear"),oe),"".concat(p,"-show-arrow"),Et),"".concat(p,"-disabled"),P),"".concat(p,"-loading"),D),"".concat(p,"-open"),nt),"".concat(p,"-customize-input"),_e),"".concat(p,"-show-search"),$e)),Ot=f.createElement(A,{ref:ze,disabled:P,prefixCls:p,visible:rt,popupElement:Mt,animation:ce,transitionName:ue,dropdownStyle:se,dropdownClassName:de,direction:Z,dropdownMatchSelectWidth:fe,dropdownRender:pe,dropdownAlign:me,placement:ve,builtinPlacements:ge,getPopupContainer:he,empty:M,getTriggerDOMNode:function(e){return De.current||e},onPopupVisibleChange:bt,onPopupMouseEnter:function(){Ct({})}},Xe?f.cloneElement(Xe,{ref:Ke}):f.createElement(k,(0,o.Z)({},e,{domRef:De,prefixCls:p,inputElement:_e,ref:Te,id:d,prefix:re,showSearch:$e,autoClearSearchValue:J,mode:N,activeDescendantId:X,tagRender:E,values:I,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=I.filter((function(t){return t!==e}));$(t,{type:"remove",values:[e]})},tokenWithEnter:lt,onInputBlur:function(){vt.current=!1}})));return Zt=Xe?Ot:f.createElement("div",(0,o.Z)({className:Rt},Me,{ref:Pe,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&&Ie&&!Ve&&I.length){for(var l=(0,r.Z)(I),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&&$(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==ye||ye.apply(void 0,[e].concat(n))},onFocus:function(){Ae(!0),P||(Ce&&!gt.current&&Ce.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)})),P||(Ve&&("tags"===N?ee(Ve,{source:"submit"}):"multiple"===N&&ee("",{source:"blur"})),Se&&Se.apply(void 0,arguments))}}),f.createElement(Y,{visible:We&&!nt,values:I}),Ot,St,It&&$t),f.createElement(w.Provider,{value:yt},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(78525);var ce=["disabled","title","children","style","className"];function ue(e){return"string"==typeof e||"number"==typeof e}var se=function(e,t){var n=C(),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,S=f.useContext(G),Z=S.maxCount,x=S.flattenOptions,I=S.onActiveValue,$=S.defaultActiveFirstOption,M=S.onSelect,R=S.menuItemSelectedIcon,O=S.rawValues,H=S.fieldNames,N=S.virtual,P=S.direction,D=S.listHeight,z=S.listItemHeight,T=S.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==O?void 0:O.size)>=Z}),[d,Z,null==O?void 0:O.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&&O.has(e)}),[p,(0,r.Z)(O).toString(),O.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?I(o.value,e,n):I(null,-1,n)};(0,f.useEffect)((function(){U(!1!==$?V(0):-1)}),[k.length,v]);var Q=f.useCallback((function(e){return"combobox"===p?String(e).toLowerCase()===v.toLowerCase():O.has(e)}),[p,v,(0,r.Z)(O).toString(),O.size]);(0,f.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&s&&1===O.size){var e=Array.from(O)[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&&M(e,{selected:!O.has(e)}),d||g(!1)};if(f.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case y.Z.N:case y.Z.P:case y.Z.UP:case y.Z.DOWN:var o=0;if(t===y.Z.UP?o=-1:t===y.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===y.Z.N?o=1:t===y.Z.P&&(o=-1)),0!==o){var r=V(Y+o,o);A(r),U(r,!0)}break;case y.Z.TAB:case y.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 y.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:D,itemHeight:z,fullHeight:!1,onMouseDown:W,onScroll:w,virtual:N,direction:P,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,C=(0,c.Z)(l,ce),S=(0,le.Z)(C,ee),y=F(u),Z=v||!y&&j,x="".concat(B,"-option"),I=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"),y)),$=te(e),M=!R||"function"==typeof R||y,O="number"==typeof $?$:$||u,H=ue(O)?O.toString():void 0;return void 0!==g&&(H=g),f.createElement("div",(0,o.Z)({},(0,E.Z)(S),N?{}:ne(e,t),{"aria-selected":Q(u),className:I,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}):O),f.isValidElement(R)||y,M&&f.createElement(b,{className:"".concat(B,"-option-state"),customizeIcon:R,customizeIconProps:{value:u,disabled:Z,isSelected:y}},y?"✓":null))})))};var de=f.forwardRef(se);function fe(e,t){return R(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 Ce(e){var t=f.useRef();t.current=e;var n=f.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Se=["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"],ye=["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,C=e.autoClearSearchValue,S=void 0===C||C,y=e.onSelect,E=e.onDeselect,Z=e.dropdownMatchSelectWidth,x=void 0===Z||Z,I=e.filterOption,$=e.filterSort,M=e.optionFilterProp,O=e.optionLabelProp,H=e.options,N=e.optionRender,P=e.children,D=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,Se),te=(0,pe.ZP)(n),ne=Q(d),oe=!(H||!P),re=f.useMemo((function(){return(void 0!==I||"combobox"!==d)&&I}),[I,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,P,ie,M,O),me=se.valueOptions,ve=se.labelOptions,ge=se.options,he=f.useCallback((function(e){return R(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[O||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,O,me]),be=(0,s.Z)(_,{value:F}),Ee=(0,a.Z)(be,2),Ze=Ee[0],xe=Ee[1],Ie=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]),$e=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])]}(Ie,me),Me=(0,a.Z)($e,2),Re=Me[0],Oe=Me[1],He=f.useMemo((function(){if(!d&&1===Re.length){var e=Re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Re.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,Re,A]),Ne=f.useMemo((function(){return new Set(Re.map((function(e){return e.value})))}),[Re]);f.useEffect((function(){if("combobox"===d){var e,t=null===(e=Re[0])||void 0===e?void 0:e.value;ue(function(e){return null!=e}(t)?String(t):"")}}),[Re]);var Pe=Ce((function(e,t){var n=null!=t?t:e;return(0,i.Z)((0,i.Z)({},ie.value,e),ie.label,n)})),De=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)(Re).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(Pe(n,t.label))})),e}),[Pe,ge,me,Re,d]),ie,ce,re,M),ze=f.useMemo((function(){return"tags"!==d||!ce||De.some((function(e){return e[M||"value"]===ce}))||De.some((function(e){return e[ie.value]===ce}))?De:[Pe(ce)].concat((0,r.Z)(De))}),[Pe,M,d,De,ce,ie]),Te=function e(t){return(0,r.Z)(t).sort((function(e,t){return $(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 $?Te(ze):ze}),[ze,$,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!==Re.length||t.some((function(e,t){var n;return(null===(n=Re[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(Oe(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!==D?D:"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=Oe(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&&y){var r=o(),i=(0,a.Z)(r,2),l=i[0],c=i[1];y(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=Ce((function(e,t){var n,o=!ne||t.selected;n=o?ne?[].concat((0,r.Z)(Re),[e]):[e]:Re.filter((function(t){return t.value!==e})),Le(n),qe(e,o),"combobox"===d?Fe(""):Q&&!S||(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:ye,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:S,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},78525:function(e,t,n){n.d(t,{Z:function(){return k}});var o=n(77260),r=n(12952),i=n(39328),l=n(54549),a=n(76285),c=n(17323),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 C=n(24589),S="object"===("undefined"==typeof navigator?"undefined":(0,r.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),y=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=y(t,n,o,r);var f=(0,m.useRef)(null),p=(0,m.useRef)(null);return[function(t){if(e){C.Z.cancel(p.current),p.current=(0,C.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(C.Z.cancel(c.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,a.current+=t,u.current=t,S||n.preventDefault(),c.current=(0,C.Z)((function(){var e=s.current?10:1;l(a.current*e,!1),a.current=0})))}}(t,v):function(e,t){l(t,!0),S||e.preventDefault()}(t,m)}},function(t){e&&(s.current=t.detail===u.current)}]}var Z=n(40730),x=n(22633),I=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 $(e){var t=parseFloat(e);return isNaN(t)?0:t}var M=14/15;function R(e){return Math.floor(Math.pow(e,.5))}function O(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,S=m.useState(!1),y=(0,a.Z)(S,2),E=y[0],Z=y[1],x=m.useState(null),I=(0,a.Z)(x,2),$=I[0],M=I[1],R=m.useState(null),H=(0,a.Z)(R,2),N=H[0],P=H[1],D=!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:$,startTop:N});X.current={top:_,dragging:E,pageY:$,startTop:N};var K=function(e){Z(!0),M(O(e,p)),P(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;C.Z.cancel(e);var l=z.current.getBoundingClientRect(),a=g/(p?l.width:l.height);if(o){var c=(O(t,p)-r)*a,u=i;!D&&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,C.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),C.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},D?"left":"right",_))):(Object.assign(U,(0,l.Z)({width:8,top:0,bottom:0},D?"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 P=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],D=[],z={overflowY:"auto",overflowAnchor:"none"};function T(e,t){var n=e.prefixCls,u=void 0===n?"rc-virtual-list":n,g=e.className,S=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,P),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 I),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)+$(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||!S||!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)>S||!!F),de="rtl"===A,fe=s()(u,(0,l.Z)({},"".concat(u,"-rtl"),de),g),pe=k||D,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],Ce=be[1],Se=(0,m.useState)(0),ye=(0,a.Z)(Se,2),Ee=ye[0],Ze=ye[1],xe=(0,m.useState)(!1),Ie=(0,a.Z)(xe,2),$e=Ie[0],Me=Ie[1],Re=function(){Me(!0)},Oe=function(){Me(!1)},He={getKey:te};function Ne(e){Ce((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 Pe=(0,m.useRef)({start:0,end:pe.length}),De=(0,m.useRef)(),ze=w(pe,te),Te=(0,a.Z)(ze,1)[0];De.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+S&&void 0===o&&(o=l),r=s}return void 0===t&&(t=0,n=0,o=Math.ceil(S/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,S]),ke=Be.scrollHeight,Le=Be.start,je=Be.end,We=Be.offset;Pe.current.start=Le,Pe.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:S}),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-S,Ue=(0,m.useRef)(qe);Ue.current=qe;var Qe=we<=0,Je=we>=qe,et=Ee<=0,tt=Ee>=F,nt=y(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*=M:u*=M;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(){C.Z.cancel(r)},c=function e(){a(),r=(0,C.Z)((function(){n(i),e()}))},u=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,l=!0)}},s=function(){l=!1,a()},d=function(e){if(l){var t=O(e,!1),n=o.getBoundingClientRect(),r=n.top,u=n.bottom;t<=r?(i=-R(r-t),c()):t>=u?(i=R(t-u),c()):a()}};return o.addEventListener("mousedown",u),o.ownerDocument.addEventListener("mouseup",s),o.ownerDocument.addEventListener("mousemove",d),function(){o.removeEventListener("mousedown",u),o.ownerDocument.removeEventListener("mouseup",s),o.ownerDocument.removeEventListener("mousemove",d),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,C=0,S=0,y=Math.min(t.length-1,s),E=0;E<=y;E+=1){var Z=l(t[E]);C=w;var x=n.get(Z);w=S=C+(void 0===x?o:x)}for(var I="top"===b?d:f-d,$=y;$>=0;$-=1){var M=l(t[$]),R=n.get(M);if(void 0===R){p=!0;break}if((I-=R)<=0)break}switch(b){case"top":v=C-d;break;case"bottom":v=S-f+d;break;default:var O=e.current.scrollTop;C<O?m="top":S>O+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(C.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;S&&(bt=(0,i.Z)((0,l.Z)({},T?"height":"maxHeight",S),z),ce&&(bt.overflowY="hidden",F&&(bt.overflowX="hidden"),$e&&(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>S&&m.createElement(H,{ref:Xe,prefixCls:u,scrollOffset:we,scrollRange:ke,rtl:de,onScroll:lt,onStartMove:Re,onStopMove:Oe,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:Re,onStopMove:Oe,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}}]);