1"use strict";(self.webpackChunksingapore=self.webpackChunksingapore||[]).push([[816],{77182:function(Vt,Xe,a){a.d(Xe,{Z:function(){return re}});var m=a(15515),J=a(44194),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},E=I,x=a(42086),Me=function(r,Se){return J.createElement(x.Z,(0,m.Z)({},r,{ref:Se,icon:E}))},Qe=J.forwardRef(Me),re=Qe},34345:function(Vt,Xe,a){a.d(Xe,{Z:function(){return re}});var m=a(15515),J=a(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"},E=I,x=a(42086),Me=function(r,Se){return J.createElement(x.Z,(0,m.Z)({},r,{ref:Se,icon:E}))},Qe=J.forwardRef(Me),re=Qe},37976:function(Vt,Xe,a){a.d(Xe,{Z:function(){return J}});var m=a(44194);function J(){const[,I]=m.useReducer(E=>E+1,0);return I}},40998:function(Vt,Xe,a){a.d(Xe,{ZP:function(){return Me},c4:function(){return I}});var m=a(44194),J=a(1208);const I=["xxl","xl","lg","md","sm","xs"],E=re=>({xs:`(max-width: ${re.screenXSMax}px)`,sm:`(min-width: ${re.screenSM}px)`,md:`(min-width: ${re.screenMD}px)`,lg:`(min-width: ${re.screenLG}px)`,xl:`(min-width: ${re.screenXL}px)`,xxl:`(min-width: ${re.screenXXL}px)`}),x=re=>{const oe=re,r=[].concat(I).reverse();return r.forEach((Se,i)=>{const Be=Se.toUpperCase(),tt=`screen${Be}Min`,Ee=`screen${Be}`;if(!(oe[tt]<=oe[Ee]))throw new Error(`${tt}<=${Ee} fails : !(${oe[tt]}<=${oe[Ee]})`);if(i<r.length-1){const nt=`screen${Be}Max`;if(!(oe[Ee]<=oe[nt]))throw new Error(`${Ee}<=${nt} fails : !(${oe[Ee]}<=${oe[nt]})`);const ct=`screen${r[i+1].toUpperCase()}Min`;if(!(oe[nt]<=oe[ct]))throw new Error(`${nt}<=${ct} fails : !(${oe[nt]}<=${oe[ct]})`)}}),re};function Me(){const[,re]=(0,J.ZP)(),oe=E(x(re));return m.useMemo(()=>{const r=new Map;let Se=-1,i={};return{matchHandlers:{},dispatch(Be){return i=Be,r.forEach(tt=>tt(i)),r.size>=1},subscribe(Be){return r.size||this.register(),Se+=1,r.set(Se,Be),Be(i),Se},unsubscribe(Be){r.delete(Be),r.size||this.unregister()},unregister(){Object.keys(oe).forEach(Be=>{const tt=oe[Be],Ee=this.matchHandlers[tt];Ee==null||Ee.mql.removeListener(Ee==null?void 0:Ee.listener)}),r.clear()},register(){Object.keys(oe).forEach(Be=>{const tt=oe[Be],Ee=mt=>{let{matches:ct}=mt;this.dispatch(Object.assign(Object.assign({},i),{[Be]:ct}))},nt=window.matchMedia(tt);nt.addListener(Ee),this.matchHandlers[tt]={mql:nt,listener:Ee},Ee(nt)})},responsiveMap:oe}},[re])}const Qe=(re,oe)=>{if(oe&&typeof oe=="object")for(let r=0;r<I.length;r++){const Se=I[r];if(re[Se]&&oe[Se]!==void 0)return oe[Se]}}},89983:function(Vt,Xe,a){var m=a(44194),J=a(86426),I=a(74976);const E=x=>{const{componentName:Me}=x,{getPrefixCls:Qe}=(0,m.useContext)(J.E_),re=Qe("empty");switch(Me){case"Table":case"List":return m.createElement(I.Z,{image:I.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(I.Z,{image:I.Z.PRESENTED_IMAGE_SIMPLE,className:`${re}-small`});case"Table.filter":return null;default:return m.createElement(I.Z,null)}};Xe.Z=E},74976:function(Vt,Xe,a){a.d(Xe,{Z:function(){return _t}});var m=a(44194),J=a(51865),I=a.n(J),E=a(86426),x=a(25692),Me=a(66671),Qe=a(1208),oe=()=>{const[,Q]=(0,Qe.ZP)(),$e=new Me.C(Q.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:$e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,"empty image"),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.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"}),m.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)"}),m.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"}),m.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.51
15c-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"})),m.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"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Se=()=>{const[,Q]=(0,Qe.ZP)(),{colorFill:Oe,colorFillTertiary:$e,colorFillQuaternary:p,colorBgContainer:he}=Q,{borderColor:ot,shadowColor:st,contentColor:Qt}=(0,m.useMemo)(()=>({borderColor:new Me.C(Oe).onBackground(he).toHexShortString(),shadowColor:new Me.C($e).onBackground(he).toHexShortString(),contentColor:new Me.C(p).onBackground(he).toHexShortString()}),[Oe,$e,p,he]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,"Simple Empty"),m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:st,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:ot},m.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"}),m.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:Qt}))))},i=a(86167),Be=a(7036);const tt=Q=>{const{componentCls:Oe,margin:$e,marginXS:p,marginXL:he,fontSize:ot,lineHeight:st}=Q;return{[Oe]:{marginInline:p,fontSize:ot,lineHeight:st,textAlign:"center",[`${Oe}-image`]:{height:Q.emptyImgHeight,marginBottom:p,opacity:Q.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Oe}-description`]:{color:Q.colorTextDescription},[`${Oe}-footer`]:{marginTop:$e},"&-normal":{marginBlock:he,color:Q.colorTextDescription,[`${Oe}-description`]:{color:Q.colorTextDescription},[`${Oe}-image`]:{height:Q.emptyImgHeightMD}},"&-small":{marginBlock:p,color:Q.colorTextDescription,[`${Oe}-image`]:{height:Q.emptyImgHeightSM}}}}};var Ee=(0,i.I$)("Empty",Q=>{const{componentCls:Oe,controlHeightLG:$e,calc:p}=Q,he=(0,Be.IX)(Q,{emptyImgCls:`${Oe}-img`,emptyImgHeight:p($e).mul(2.5).equal(),emptyImgHeightMD:$e,emptyImgHeightSM:p($e).mul(.875).equal()});return[tt(he)]}),nt=function(Q,Oe){var $e={};for(var p in Q)Object.prototype.hasOwnProperty.call(Q,p)&&Oe.indexOf(p)<0&&($e[p]=Q[p]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,p=Object.getOwnPropertySymbols(Q);he<p.length;he++)Oe.indexOf(p[he])<0&&Object.prototype.propertyIsEnumerable.call(Q,p[he])&&($e[p[he]]=Q[p[he]]);return $e};const mt=m.createElement(oe,null),ct=m.createElement(Se,null),Ft=Q=>{var{className:Oe,rootClassName:$e,prefixCls:p,image:he=mt,description:ot,children:st,imageStyle:Qt,style:un}=Q,Jt=nt(Q,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:pn,direction:Mn,empty:Tt}=m.useContext(E.E_),Lt=pn("empty",p),[e,v,l]=Ee(Lt),[A]=(0,x.Z)("Empty"),ae=typeof ot!="undefined"?ot:A==null?void 0:A.description,je=typeof ae=="string"?ae:"empty";let Ke=null;return typeof he=="string"?Ke=m.createElement("img",{alt:je,src:he}):Ke=he,e(m.createElement("div",Object.assign({className:I()(v,l,Lt,Tt==null?void 0:Tt.className,{[`${Lt}-normal`]:he===ct,[`${Lt}-rtl`]:Mn==="rtl"},Oe,$e),style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),un)},Jt),m.createElement("div",{className:`${Lt}-image`,style:Qt},Ke),ae&&m.createElement("div",{className:`${Lt}-description`},ae),st&&m.createElement("div",{className:`${Lt}-footer`},st)))};Ft.PRESENTED_IMAGE_DEFAULT=mt,Ft.PRESENTED_IMAGE_SIMPLE=ct;var _t=Ft},14798:function(Vt,Xe){const a=J=>{const E={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:J==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},E),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},E),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},E),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},E),{points:["br","tr"],offset:[0,-4]})}};function m(J,I){return J||a(I)}Xe.Z=m},4062:function(Vt,Xe,a){a.d(Xe,{Z:function(){return Lt}});var m=a(79855),J=a(86783),I=a(86167),E=a(7036),x=a(38751),Me=a(38815);const Qe=e=>{const{optionHeight:v,optionFontSize:l,optionLineHeight:A,optionPadding:ae}=e;return{position:"relative",display:"block",minHeight:v,padding:ae,color:e.colorText,fontWeight:"normal",fontSize:l,lineHeight:A,boxSizing:"border-box"}};var oe=e=>
1{const{antCls:v,componentCls:l}=e,A=`${l}-item`,ae=`&${v}-slide-up-enter${v}-slide-up-enter-active`,je=`&${v}-slide-up-appear${v}-slide-up-appear-active`,Ke=`&${v}-slide-up-leave${v}-slide-up-leave-active`,et=`${l}-dropdown-placement-`;return[{[`${l}-dropdown`]:Object.assign(Object.assign({},(0,m.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,[` 2 ${ae}${et}bottomLeft, 3 ${je}${et}bottomLeft 4 `]:{animationName:x.fJ},[` 5 ${ae}${et}topLeft, 6 ${je}${et}topLeft, 7 ${ae}${et}topRight, 8 ${je}${et}topRight 9 `]:{animationName:x.Qt},[`${Ke}${et}bottomLeft`]:{animationName:x.Uw},[` 10 ${Ke}${et}topLeft, 11 ${Ke}${et}topRight 12 `]:{animationName:x.ly},"&-hidden":{display:"none"},[A]:Object.assign(Object.assign({},Qe(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"},m.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${A}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${A}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${A}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${A}-option-selected:not(${A}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${A}-option-selected:not(${A}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${A}-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({},Qe(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,x.oN)(e,"slide-up"),(0,x.oN)(e,"slide-down"),(0,Me.Fm)(e,"move-up"),(0,Me.Fm)(e,"move-down")]},r=a(56201);const Se=e=>{const{multipleSelectItemHeight:v,paddingXXS:l,lineWidth:A,INTERNAL_FIXED_ITEM_MARGIN:ae}=e,je=e.max(e.calc(l).sub(A).equal(),0),Ke=e.max(e.calc(je).sub(ae).equal(),0);return{basePadding:je,containerPadding:Ke,itemHeight:(0,r.bf)(v),itemLineHeight:(0,r.bf)(e.calc(v).sub(e.calc(e.lineWidth).mul(2)).equal())}},i=e=>{const{multipleSelectItemHeight:v,selectHeight:l,lineWidth:A}=e;return e.calc(l).sub(v).div(2).sub(A).equal()},Be=e=>{const{componentCls:v,iconCls:l,borderRadiusSM:A,motionDurationSlow:ae,paddingXS:je,multipleItemColorDisabled:Ke,multipleItemBorderColorDisabled:et,colorIcon:Ot,colorIconHover:On,INTERNAL_FIXED_ITEM_MARGIN:Sn}=e;return{[`${v}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${v}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Sn,borderRadius:A,cursor:"default",transition:`font-size ${ae}, line-height ${ae}, height ${ae}`,marginInlineEnd:e.calc(Sn).mul(2).equal(),paddingInlineStart:je,paddingInlineEnd:e.calc(je).div(2).equal(),[`${v}-disabled&`]:{color:Ke,borderColor:et,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(je).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,m.Ro)()),{display:"inline-flex",alignItems:"center",color:Ot,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${l}`]:{verticalAlign:"-0.2em"},"&:hover":{color:On}})}}}},tt=(e,v)=>{const{componentCls:l,INTERNAL_FIXED_ITEM_MARGIN:A}=e,ae=`${l}-selection-overflow`,je=e.multipleSelectItemHeight,Ke=i(e),et=v?`${l}-${v}`:"",Ot=Se(e);return{[`${l}-multiple${et}`]:Object.assign(Object.assign({},Be(e)),{[`${l}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:Ot.basePadding,paddingBlock:Ot.containerPadding,borderRadius:e.borderRadius,[`${l}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,r.bf)(A)} 0`,lineHeight:(0,r.bf)(je),visibility:"hidden",content:'"\\a0"'}},[`${l}-selection-item`]:{height:Ot.itemHeight,lineHeight:(0,r.bf)(Ot.itemLineHeight)},[`${ae}-item + ${ae}-item`]:{[`${l}-selection-search`]:{marginInlineStart:0}},[`${ae}
12-item-suffix`]:{height:"100%"},[`${l}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(Ke).equal(),"\n &-input,\n &-mirror\n ":{height:je,fontFamily:e.fontFamily,lineHeight:(0,r.bf)(je),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"}},[`${l}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ee(e,v){const{componentCls:l}=e,A=v?`${l}-${v}`:"",ae={[`${l}-multiple${A}`]:{fontSize:e.fontSize,[`${l}-selector`]:{[`${l}-show-search&`]:{cursor:"text"}},[` 13 &${l}-show-arrow ${l}-selector, 14 &${l}-allow-clear ${l}-selector 15 `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[tt(e,v),ae]}var mt=e=>{const{componentCls:v}=e,l=(0,E.IX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),A=(0,E.IX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ee(e),Ee(l,"sm"),{[`${v}-multiple${v}-sm`]:{[`${v}
15-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${v}-selection-search`]:{marginInlineStart:2}}},Ee(A,"lg")]};function ct(e,v){const{componentCls:l,inputPaddingHorizontalBase:A,borderRadius:ae,fontSizeIcon:je}=e,Ke=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),et=e.calc(A).add(je).equal(),Ot=v?`${l}-${v}`:"";return{[`${l}-single${Ot}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${l}-selector`]:Object.assign(Object.assign({},(0,m.Wf)(e,!0)),{display:"flex",borderRadius:ae,[`${l}-selection-search`]:{position:"absolute",top:0,insetInlineStart:A,insetInlineEnd:(0,r.bf)(et),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` 16 ${l}-selection-item, 17 ${l}-selection-placeholder 18 `]:{padding:0,lineHeight:(0,r.bf)(Ke),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${l}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${l}-selection-item:empty:after`,`${l}
18-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` 19 &${l}-show-arrow ${l}-selection-item, 20 &${l}-show-arrow ${l}-selection-placeholder 21 `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${l}-open ${l}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${l}-customize-input)`]:{[`${l}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,r.bf)(A)}`,[`${l}-selection-search-input`]:{height:Ke},"&:after":{lineHeight:(0,r.bf)(Ke)}}},[`&${l}-customize-input`]:{[`${l}-selector`]:{"&:after":{display:"none"},[`${l}-selection-search`]:{position:"static",width:"100%"},[`${l}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,r.bf)(A)}`,"&:after":{display:"none"}}}}}}}function Ft(e){const{componentCls:v}=e,l=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ct(e),ct((0,E.IX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${v}-single${v}-sm`]:{[`&:not(${v}-customize-input)`]:{[`${v}-selection-search`]:{insetInlineStart:l,insetInlineEnd:l},[`${v}-selector`]:{padding:`0 ${(0,r.bf)(l)}`},[`&${v}-show-arrow ${v}-selection-search`]:{insetInlineEnd:e.calc(l).add(e.calc(e.fontSize).mul(1.5)).equal()},[` 22 &${v}-show-arrow ${v}-selection-item, 23 &${v}-show-arrow ${v}
23-selection-placeholder 24 `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ct((0,E.IX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const _t=e=>{const{fontSize:v,lineHeight:l,lineWidth:A,controlHeight:ae,controlHeightSM:je,controlHeightLG:Ke,paddingXXS:et,controlPaddingHorizontal:Ot,zIndexPopupBase:On,colorText:Sn,fontWeightStrong:$n,controlItemBgActive:Yn,controlItemBgHover:_n,colorBgContainer:c,colorFillSecondary:j,colorBgContainerDisabled:M,colorTextDisabled:L,colorPrimaryHover:F,colorPrimary:K,controlOutline:V}=e,$=et*2,ie=A*2,q=Math.min(ae-$,ae-ie),ee=Math.min(je-$,je-ie),Z=Math.min(Ke-$,Ke-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(et/2),zIndexPopup:On+50,optionSelectedColor:Sn,optionSelectedFontWeight:$n,optionSelectedBg:Yn,optionActiveBg:_n,optionPadding:`${(ae-v*l)/2}px ${Ot}px`,optionFontSize:v,optionLineHeight:l,optionHeight:ae,selectorBg:c,clearBg:c,singleItemHeightLG:Ke,multipleItemBg:j,multipleItemBorderColor:"transparent",multipleItemHeight:q,multipleItemHeightSM:ee,multipleItemHeightLG:Z,multipleSelectorBgDisabled:M,multipleItemColorDisabled:L,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:F,activeBorderColor:K,activeOutlineColor:V}},Q=(e,v)=>{const{componentCls:l,antCls:A,controlOutlineWidth:ae}=e;return{[`&:not(${l}-customize-input) ${l}-selector`]:{border:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${v.borderColor}`,background:e.selectorBg},[`&:not(${l}-disabled):not(${l}-customize-input):not(${A}-pagination-size-changer)`]:{[`&:hover ${l}-selector`]:{borderColor:v.hoverBorderHover},[`${l}-focused& ${l}-selector`]:{borderColor:v.activeBorderColor,boxShadow:`0 0 0 ${(0,r.bf)(ae)} ${v.activeOutlineColor}`,outline:0}}}},Oe=(e,v)=>({[`&${e.componentCls}-status-${v.status}`]:Object.assign({},Q(e,v))}),$e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Q(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),Oe(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),Oe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${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,r.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),p=(e,v)=>{const{componentCls:l,antCls:A}=e;return{[`&:not(${l}-customize-input) ${l}-selector`]:{background:v.bg,border:`${(0,r.bf)(e.lineWidth)} ${e.lineType} transparent`,color:v.color},[`&:not(${l}-disabled):not(${l}-customize-input):not(${A}-pagination-size-changer)`]:{[`&:hover ${l}-selector`]:{background:v.hoverBg},[`${l}-focused& ${l}-selector`]:{background:e.selectorBg,borderColor:v.activeBorderColor,outline:0}}}},he=(e,v)=>({[`&${e.componentCls}-status-${v.status}`]:Object.assign({},p(e,v))}),ot=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},p(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),he(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),he(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,r.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),st=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"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,r.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}});var un=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},$e(e)),ot(e)),st(e))});const Jt=e=>{const{componentCls:v}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${v}
24-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${v}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},pn=e=>{const{componentCls:v}=e;return{[`${v}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Mn=e=>{const{antCls:v,componentCls:l,inputPaddingHorizontalBase:A,iconCls:ae}=e;return{[l]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${l}-customize-input) ${l}-selector`]:Object.assign(Object.assign({},Jt(e)),pn(e)),[`${l}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},m.vS),{[`> ${v}-typography`]:{display:"inline"}}),[`${l}-selection-placeholder`]:Object.assign(Object.assign({},m.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${l}-arrow`]:Object.assign(Object.assign({},(0,m.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:A,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`,[ae]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${l}-suffix)`]:{pointerEvents:"auto"}},[`${l}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${l}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:A,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","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${l}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${l}-has-feedback`]:{[`${l}-clear`]:{insetInlineEnd:e.calc(A).add(e.fontSize).add(e.paddingXS).equal()}}}},Tt=e=>{const{componentCls:v}=e;return[{[v]:{[`&${v}-in-form-item`]:{width:"100%"}}},Mn(e),Ft(e),mt(e),oe(e),{[`${v}-rtl`]:{direction:"rtl"}},(0,J.c)(e,{borderElCls:`${v}-selector`,focusElCls:`${v}-focused`})]};var Lt=(0,I.I$)("Select",(e,v)=>{let{rootPrefixCls:l}=v;const A=(0,E.IX)(e,{rootPrefixCls:l,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Tt(A),un(A)]},_t,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},85933:function(Vt,Xe,a){a.d(Xe,{Z:function(){return re}});var m=a(44194),J=a(77182),I=a(95707),E=a(26977),x=a(34345),Me=a(66264),Qe=a(16751);function re(oe){let{suffixIcon:r,clearIcon:Se,menuItemSelectedIcon:i,removeIcon:Be,loading:tt,multiple:Ee,hasFeedback:nt,prefixCls:mt,showSuffixIcon:ct,feedbackIcon:Ft,showArrow:_t,componentName:Q}=oe;const Oe=Se!=null?Se:m.createElement(I.Z,null),$e=st=>r===null&&!nt&&!_t?null:m.createElement(m.Fragment,null,ct!==!1&&st,nt&&Ft);let p=null;if(r!==void 0)p=$e(r);else if(tt)p=$e(m.createElement(Me.Z,{spin:!0}));else{const st=`${mt}-suffix`;p=Qt=>{let{open:un,showSearch:Jt}=Qt;return $e(un&&Jt?m.createElement(Qe.Z,{className:st}):m.createElement(x.Z,{className:st}))}}let he=null;i!==void 0?he=i:Ee?he=m.createElement(J.Z,null):he=null;let ot=null;return Be!==void 0?ot=Be:ot=m.createElement(E.Z,null),{clearIcon:Oe,suffixIcon:p,itemIcon:he,removeIcon:ot}}},45075:function(Vt,Xe,a){a.d(Xe,{Z:function(){return m}});function m(J,I){return I!==void 0?I:J!==null}},74169:function(Vt,Xe,a){a.d(Xe,{ZP:function(){return Qe}});var m=a(86737),J=a(44194),I=a(48772),E=0,x=(0,I.Z)();function Me(){var re;return x?(re=E,E+=1):re="TEST_OR_SSR",re}function Qe(re){var oe=J.useState(),r=(0,m.Z)(oe,2),Se=r[0],i=r[1];return J.useEffect(function(){i("rc_select_".concat(Me()))},[]),re||Se}},7913:function(Vt,Xe,a){a.d(Xe,{Ac:function(){return De},Xo:function(){return Ht},Wx:function(){return Ae},ZP:function(){return Wn},lk:function(){return _t}});var m=a(15515),J=a(87323),I=a(5933),E=a(82622),x=a(86737),Me=a(32088),Qe=a(64893),re=a(66249),oe=a(14583),r=a(44194),Se=a(51865),i=a.n(Se),Be=a(89191),tt=a(56446),Ee=a(89668),nt=function(t){var s=t.className,o=t.customizeIcon,d=t.customizeIconProps,g=t.children,h=t.onMouseDown,S=t.onClick,R=typeof o=="function"?o(d):o;return r.createElement("span",{className:s,onMouseDown:function(w){
24w.preventDefault(),h==null||h(w)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:S,"aria-hidden":!0},R!==void 0?R:r.createElement("span",{className:i()(s.split(/\s+/).map(function(O){return"".concat(O,"-icon")}))},g))},mt=nt,ct=function(t,s,o,d,g){var h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,S=arguments.length>6?arguments[6]:void 0,R=arguments.length>7?arguments[7]:void 0,O=r.useMemo(function(){if((0,Qe.Z)(d)==="object")return d.clearIcon;if(g)return g},[d,g]),w=r.useMemo(function(){return!!(!h&&d&&(o.length||S)&&!(R==="combobox"&&S===""))},[d,h,o.length,S,R]);return{allowClear:w,clearIcon:r.createElement(mt,{className:"".concat(t,"-clear"),onMouseDown:s,customizeIcon:O},"\xD7")}},Ft=r.createContext(null);function _t(){return r.useContext(Ft)}function Q(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=r.useState(!1),s=(0,x.Z)(t,2),o=s[0],d=s[1],g=r.useRef(null),h=function(){window.clearTimeout(g.current)};r.useEffect(function(){return h},[]);var S=function(O,w){h(),g.current=window.setTimeout(function(){d(O),w&&w()},n)};return[o,S,h]}function Oe(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=r.useRef(null),s=r.useRef(null);r.useEffect(function(){return function(){window.clearTimeout(s.current)}},[]);function o(d){(d||t.current===null)&&(t.current=d),window.clearTimeout(s.current),s.current=window.setTimeout(function(){t.current=null},n)}return[function(){return t.current},o]}function $e(n,t,s,o){var d=r.useRef(null);d.current={open:t,triggerOpen:s,customizedTrigger:o},r.useEffect(function(){function g(h){var S;if(!((S=d.current)!==null&&S!==void 0&&S.customizedTrigger)){var R=h.target;R.shadowRoot&&h.composed&&(R=h.composedPath()[0]||R),d.current.open&&n().filter(function(O){return O}).every(function(O){return!O.contains(R)&&O!==R})&&d.current.triggerOpen(!1)}}return window.addEventListener("mousedown",g),function(){return window.removeEventListener("mousedown",g)}},[])}var p=a(31726);function he(n){return![p.Z.ESC,p.Z.SHIFT,p.Z.BACKSPACE,p.Z.TAB,p.Z.WIN_KEY,p.Z.ALT,p.Z.META,p.Z.WIN_KEY_RIGHT,p.Z.CTRL,p.Z.SEMICOLON,p.Z.EQUALS,p.Z.CAPS_LOCK,p.Z.CONTEXT_MENU,p.Z.F1,p.Z.F2,p.Z.F3,p.Z.F4,p.Z.F5,p.Z.F6,p.Z.F7,p.Z.F8,p.Z.F9,p.Z.F10,p.Z.F11,p.Z.F12].includes(n)}var ot=a(36110),st=a(21476),Qt=function(t,s){var o,d=t.prefixCls,g=t.id,h=t.inputElement,S=t.disabled,R=t.tabIndex,O=t.autoFocus,w=t.autoComplete,P=t.editable,ue=t.activeDescendantId,b=t.value,z=t.maxLength,k=t.onKeyDown,B=t.onMouseDown,fe=t.onChange,Ve=t.onPaste,Ze=t.onCompositionStart,ve=t.onCompositionEnd,be=t.open,G=t.attrs,de=h||r.createElement("input",null),Fe=de,Pe=Fe.ref,Ce=Fe.props,Te=Ce.onKeyDown,We=Ce.onChange,Ie=Ce.onMouseDown,we=Ce.onCompositionStart,xe=Ce.onCompositionEnd,Le=Ce.style;return(0,oe.Kp)(!("maxLength"in de.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),de=r.cloneElement(de,(0,E.Z)((0,E.Z)((0,E.Z)({type:"search"},Ce),{},{id:g,ref:(0,Ee.sQ)(s,Pe),disabled:S,tabIndex:R,autoComplete:w||"off",autoFocus:O,className:i()("".concat(d,"-selection-search-input"),(o=de)===null||o===void 0||(o=o.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":be||!1,"aria-haspopup":"listbox","aria-owns":"".concat(g,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(g,"_list"),"aria-activedescendant":be?ue:void 0},G),{},{value:P?b:"",maxLength:z,readOnly:!P,unselectable:P?null:"on",style:(0,E.Z)((0,E.Z)({},Le),{},{opacity:P?null:0}),onKeyDown:function(D){k(D),Te&&Te(D)},onMouseDown:function(D){B(D),Ie&&Ie(D)},onChange:function(D){fe(D),We&&We(D)},onCompositionStart:function(D){Ze(D),we&&we(D)},onCompositionEnd:function(D){ve(D),xe&&xe(D)},onPaste:Ve})),de},un=r.forwardRef(Qt),Jt=un;function pn(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var Mn=typeof window!="undefined"&&window.document&&window.document.documentElement,Tt=Mn;function Lt(n){return n!=null}function e(n){return!n&&n!==0}function v(n){return["string","number"].includes((0,Qe.Z)(n))}function l(n){var t=void 0;return n&&(v(n.title)?t=n.title.toString():v(n.label)&&(t=n.label.toString())),t}function A(n,t){Tt?r.useLayoutEffect(n,t):r.useEffect(n,t)}function ae(n){var t;return(t=n.key)!==null&&t!==void 0?t:n.value}var je=function(t){t.preventDefault(),t.stopPropagation()},Ke=function(t){var s=t.id,o=t.prefixCls,d=t.values,g=t.open,h=t.searchValue,S=t.autoClearSearchValue,R=t.inputRef,O=t.placeholder,w=t.disabled,P=t.mode,ue=t.showSearch,b=t.autoFocus,z=t.autoComplete,k=t.activeDescendantId,B=t.tabIndex,fe=t.removeIcon,Ve=t.maxTagCount,Ze=t.maxTagTextLength,ve=t.maxTagPlaceholder,be=ve===void 0?function(C){return"+ ".concat(C.length," ...")}:ve,G=t.tagRender,de=t.onToggleOpen,Fe=t.onRemove,Pe=t.onInputChange,Ce=t.onInputPaste,Te=t.onInputKeyDown,We=t.onInputMouseDown,Ie=t.onInputCompositionStart,we=t.onInputCompositionEnd,xe=r.useRef(null),Le=(0,r.useState)(0),me=(0,x.Z)(Le,2),D=me[0],ye=me[1],Ye=(0,r.useState)(!1),Bt=(0,x.Z)(Ye,2),ht=Bt[0],Nt=Bt[1],_e="".concat(o,"-selection"),lt=g||P==="multiple"&&S===!1||P==="tags"?h:"",en=P==="tags"||P==="multiple"&&S===!1||ue&&(g||ht);A(function(){ye(xe.current.scrollWidth)},[lt]);var qe=function(y,N,pe,He,ze){return r.createElement("span",{title:l(y),className:i()("".concat(_e,"-item"),(0,I.Z)({},"".concat(_e,"-item-disabled"),pe))},r.createElement("span",{className:"".concat(_e,"-item-content")},N),He&&r.createElement(mt,{className:"".concat(_e,"-item-remove"),onMouseDown:je,onClick:ze,customizeIcon:fe},"\xD7"))},jt=function(y,N,pe,He,ze,rt){var Mt=function(wn){je(wn),de(!g)};return r.createElement("span",{onMouseDown:Mt},G({label:N,value:y,disabled:pe,closable:He,onClose:ze,isMaxTag:!!rt}))},xt=function(y){var N=y.disabled,pe=y.label,He=y.value,ze=!w&&!N,rt=pe;
24if(typeof Ze=="number"&&(typeof pe=="string"||typeof pe=="number")){var Mt=String(rt);Mt.length>Ze&&(rt="".concat(Mt.slice(0,Ze),"..."))}var Dt=function(dn){dn&&dn.stopPropagation(),Fe(y)};return typeof G=="function"?jt(He,rt,N,ze,Dt):qe(y,rt,N,ze,Dt)},X=function(y){var N=typeof be=="function"?be(y):be;return typeof G=="function"?jt(void 0,N,!1,!1,void 0,!0):qe({title:N},N,!1)},u=r.createElement("div",{className:"".concat(_e,"-search"),style:{width:D},onFocus:function(){Nt(!0)},onBlur:function(){Nt(!1)}},r.createElement(Jt,{ref:R,open:g,prefixCls:o,id:s,inputElement:null,disabled:w,autoFocus:b,autoComplete:z,editable:en,activeDescendantId:k,value:lt,onKeyDown:Te,onMouseDown:We,onChange:Pe,onPaste:Ce,onCompositionStart:Ie,onCompositionEnd:we,tabIndex:B,attrs:(0,ot.Z)(t,!0)}),r.createElement("span",{ref:xe,className:"".concat(_e,"-search-mirror"),"aria-hidden":!0},lt,"\xA0")),f=r.createElement(st.Z,{prefixCls:"".concat(_e,"-overflow"),data:d,renderItem:xt,renderRest:X,suffix:u,itemKey:ae,maxCount:Ve});return r.createElement(r.Fragment,null,f,!d.length&&!lt&&r.createElement("span",{className:"".concat(_e,"-placeholder")},O))},et=Ke,Ot=function(t){var s=t.inputElement,o=t.prefixCls,d=t.id,g=t.inputRef,h=t.disabled,S=t.autoFocus,R=t.autoComplete,O=t.activeDescendantId,w=t.mode,P=t.open,ue=t.values,b=t.placeholder,z=t.tabIndex,k=t.showSearch,B=t.searchValue,fe=t.activeValue,Ve=t.maxLength,Ze=t.onInputKeyDown,ve=t.onInputMouseDown,be=t.onInputChange,G=t.onInputPaste,de=t.onInputCompositionStart,Fe=t.onInputCompositionEnd,Pe=t.title,Ce=r.useState(!1),Te=(0,x.Z)(Ce,2),We=Te[0],Ie=Te[1],we=w==="combobox",xe=we||k,Le=ue[0],me=B||"";we&&fe&&!We&&(me=fe),r.useEffect(function(){we&&Ie(!1)},[we,fe]);var D=w!=="combobox"&&!P&&!k?!1:!!me,ye=Pe===void 0?l(Le):Pe,Ye=r.useMemo(function(){return Le?null:r.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:D?{visibility:"hidden"}:void 0},b)},[Le,D,b,o]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(o,"-selection-search")},r.createElement(Jt,{ref:g,prefixCls:o,id:d,open:P,inputElement:s,disabled:h,autoFocus:S,autoComplete:R,editable:xe,activeDescendantId:O,value:me,onKeyDown:Ze,onMouseDown:ve,onChange:function(ht){Ie(!0),be(ht)},onPaste:G,onCompositionStart:de,onCompositionEnd:Fe,tabIndex:z,attrs:(0,ot.Z)(t,!0),maxLength:we?Ve:void 0})),!we&&Le?r.createElement("span",{className:"".concat(o,"-selection-item"),title:ye,style:D?{visibility:"hidden"}:void 0},Le.label):null,Ye)},On=Ot,Sn=function(t,s){var o=(0,r.useRef)(null),d=(0,r.useRef)(!1),g=t.prefixCls,h=t.open,S=t.mode,R=t.showSearch,O=t.tokenWithEnter,w=t.disabled,P=t.autoClearSearchValue,ue=t.onSearch,b=t.onSearchSubmit,z=t.onToggleOpen,k=t.onInputKeyDown,B=t.domRef;r.useImperativeHandle(s,function(){return{focus:function(D){o.current.focus(D)},blur:function(){o.current.blur()}}});var fe=Oe(0),Ve=(0,x.Z)(fe,2),Ze=Ve[0],ve=Ve[1],be=function(D){var ye=D.which;(ye===p.Z.UP||ye===p.Z.DOWN)&&D.preventDefault(),k&&k(D),ye===p.Z.ENTER&&S==="tags"&&!d.current&&!h&&(b==null||b(D.target.value)),he(ye)&&z(!0)},G=function(){ve(!0)},de=(0,r.useRef)(null),Fe=function(D){ue(D,!0,d.current)!==!1&&z(!0)},Pe=function(){d.current=!0},Ce=function(D){d.current=!1,S!=="combobox"&&Fe(D.target.value)},Te=function(D){var ye=D.target.value;if(O&&de.current&&/[\r\n]/.test(de.current)){var Ye=de.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ye=ye.replace(Ye,de.current)}de.current=null,Fe(ye)},We=function(D){var ye=D.clipboardData,Ye=ye==null?void 0:ye.getData("text");de.current=Ye||""},Ie=function(D){var ye=D.target;if(ye!==o.current){var Ye=document.body.style.msTouchAction!==void 0;Ye?setTimeout(function(){o.current.focus()}):o.current.focus()}},we=function(D){var ye=Ze();D.target!==o.current&&!ye&&!(S==="combobox"&&w)&&D.preventDefault(),(S!=="combobox"&&(!R||!ye)||!h)&&(h&&P!==!1&&ue("",!0,!1),z())},xe={inputRef:o,onInputKeyDown:be,onInputMouseDown:G,onInputChange:Te,onInputPaste:We,onInputCompositionStart:Pe,onInputCompositionEnd:Ce},Le=S==="multiple"||S==="tags"?r.createElement(et,(0,m.Z)({},t,xe)):r.createElement(On,(0,m.Z)({},t,xe));return r.createElement("div",{ref:B,className:"".concat(g,"-selector"),onClick:Ie,onMouseDown:we},Le)},$n=r.forwardRef(Sn),Yn=$n,_n=a(62104),c=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(t){var s=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:s,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:s,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:s,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:s,adjustY:1},htmlRegion:"scroll"}}},M=function(t,s){var o=t.prefixCls,d=t.disabled,g=t.visible,h=t.children,S=t.popupElement,R=t.animation,O=t.transitionName,w=t.dropdownStyle,P=t.dropdownClassName,ue=t.direction,b=ue===void 0?"ltr":ue,z=t.placement,k=t.builtinPlacements,B=t.dropdownMatchSelectWidth,fe=t.dropdownRender,Ve=t.dropdownAlign,Ze
24=t.getPopupContainer,ve=t.empty,be=t.getTriggerDOMNode,G=t.onPopupVisibleChange,de=t.onPopupMouseEnter,Fe=(0,Me.Z)(t,c),Pe="".concat(o,"-dropdown"),Ce=S;fe&&(Ce=fe(S));var Te=r.useMemo(function(){return k||j(B)},[k,B]),We=R?"".concat(Pe,"-").concat(R):O,Ie=typeof B=="number",we=r.useMemo(function(){return Ie?null:B===!1?"minWidth":"width"},[B,Ie]),xe=w;Ie&&(xe=(0,E.Z)((0,E.Z)({},xe),{},{width:B}));var Le=r.useRef(null);return r.useImperativeHandle(s,function(){return{getPopupElement:function(){var D;return(D=Le.current)===null||D===void 0?void 0:D.popupElement}}}),r.createElement(_n.Z,(0,m.Z)({},Fe,{showAction:G?["click"]:[],hideAction:G?["click"]:[],popupPlacement:z||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Te,prefixCls:Pe,popupTransitionName:We,popup:r.createElement("div",{onMouseEnter:de},Ce),ref:Le,stretch:we,popupAlign:Ve,popupVisible:g,getPopupContainer:Ze,popupClassName:i()(P,(0,I.Z)({},"".concat(Pe,"-empty"),ve)),popupStyle:xe,getTriggerDOMNode:be,onPopupVisibleChange:G}),h)},L=r.forwardRef(M),F=L,K=a(15398);function V(n,t){var s=n.key,o;return"value"in n&&(o=n.value),s!=null?s:o!==void 0?o:"rc-index-key-".concat(t)}function $(n){return typeof n!="undefined"&&!Number.isNaN(n)}function ie(n,t){var s=n||{},o=s.label,d=s.value,g=s.options,h=s.groupLabel,S=o||(t?"children":"label");return{label:S,value:d||"value",options:g||"options",groupLabel:h||S}}function q(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=t.fieldNames,o=t.childrenAsData,d=[],g=ie(s,!1),h=g.label,S=g.value,R=g.options,O=g.groupLabel;function w(P,ue){Array.isArray(P)&&P.forEach(function(b){if(ue||!(R in b)){var z=b[S];d.push({key:V(b,d.length),groupOption:ue,data:b,label:b[h],value:z})}else{var k=b[O];k===void 0&&o&&(k=b.label),d.push({key:V(b,d.length),group:!0,data:b,label:k}),w(b[R],!0)}})}return w(n,!1),d}function ee(n){var t=(0,E.Z)({},n);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,oe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Z=function(t,s,o){if(!s||!s.length)return null;var d=!1,g=function S(R,O){var w=(0,K.Z)(O),P=w[0],ue=w.slice(1);if(!P)return[R];var b=R.split(P);return d=d||b.length>1,b.reduce(function(z,k){return[].concat((0,J.Z)(z),(0,J.Z)(S(k,ue)))},[]).filter(Boolean)},h=g(t,s);return d?typeof o!="undefined"?h.slice(0,o):h:null},le=r.createContext(null),H=le;function ce(n){var t=n.visible,s=n.values;if(!t)return null;var o=50;return r.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(s.slice(0,o).map(function(d){var g=d.label,h=d.value;return["number","string"].includes((0,Qe.Z)(g))?g:h}).join(", ")),s.length>o?", ...":null)}var U=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],se=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ne=function(t){return t==="tags"||t==="multiple"},ne=r.forwardRef(function(n,t){var s,o=n.id,d=n.prefixCls,g=n.className,h=n.showSearch,S=n.tagRender,R=n.direction,O=n.omitDomProps,w=n.displayValues,P=n.onDisplayValuesChange,ue=n.emptyOptions,b=n.notFoundContent,z=b===void 0?"Not Found":b,k=n.onClear,B=n.mode,fe=n.disabled,Ve=n.loading,Ze=n.getInputElement,ve=n.getRawInputElement,be=n.open,G=n.defaultOpen,de=n.onDropdownVisibleChange,Fe=n.activeValue,Pe=n.onActiveValueChange,Ce=n.activeDescendantId,Te=n.searchValue,We=n.autoClearSearchValue,Ie=n.onSearch,we=n.onSearchSplit,xe=n.tokenSeparators,Le=n.allowClear,me=n.suffixIcon,D=n.clearIcon,ye=n.OptionList,Ye=n.animation,Bt=n.transitionName,ht=n.dropdownStyle,Nt=n.dropdownClassName,_e=n.dropdownMatchSelectWidth,lt=n.dropdownRender,en=n.dropdownAlign,qe=n.placement,jt=n.builtinPlacements,xt=n.getPopupContainer,X=n.showAction,u=X===void 0?[]:X,f=n.onFocus,
24C=n.onBlur,y=n.onKeyUp,N=n.onKeyDown,pe=n.onMouseDown,He=(0,Me.Z)(n,U),ze=Ne(B),rt=(h!==void 0?h:ze)||B==="combobox",Mt=(0,E.Z)({},He);se.forEach(function(ge){delete Mt[ge]}),O==null||O.forEach(function(ge){delete Mt[ge]});var Dt=r.useState(!1),wn=(0,x.Z)(Dt,2),dn=wn[0],ut=wn[1];r.useEffect(function(){ut((0,tt.Z)())},[]);var Rn=r.useRef(null),xn=r.useRef(null),pt=r.useRef(null),St=r.useRef(null),At=r.useRef(null),Kt=r.useRef(!1),fn=Q(),Ln=(0,x.Z)(fn,3),tn=Ln[0],nn=Ln[1],vn=Ln[2];r.useImperativeHandle(t,function(){var ge,te;return{focus:(ge=St.current)===null||ge===void 0?void 0:ge.focus,blur:(te=St.current)===null||te===void 0?void 0:te.blur,scrollTo:function(Pt){var it;return(it=At.current)===null||it===void 0?void 0:it.scrollTo(Pt)},nativeElement:Rn.current||xn.current}});var rn=r.useMemo(function(){var ge;if(B!=="combobox")return Te;var te=(ge=w[0])===null||ge===void 0?void 0:ge.value;return typeof te=="string"||typeof te=="number"?String(te):""},[Te,B,w]),Qn=B==="combobox"&&typeof Ze=="function"&&Ze()||null,on=typeof ve=="function"&&ve(),jn=(0,Ee.x1)(xn,on==null||(s=on.props)===null||s===void 0?void 0:s.ref),or=r.useState(!1),Jn=(0,x.Z)(or,2),ar=Jn[0],ir=Jn[1];(0,Be.Z)(function(){ir(!0)},[]);var kn=(0,re.Z)(!1,{defaultValue:G,value:be}),qn=(0,x.Z)(kn,2),Hn=qn[0],Kn=qn[1],at=ar?Hn:!1,er=!z&&ue;(fe||er&&at&&B==="combobox")&&(at=!1);var Un=er?!1:at,Gt=r.useCallback(function(ge){var te=ge!==void 0?ge:!at;fe||(Kn(te),at!==te&&(de==null||de(te)))},[fe,at,Kn,de]),Y=r.useMemo(function(){return(xe||[]).some(function(ge){return[` 25`,`\r 26`].includes(ge)})},[xe]),_=r.useContext(H)||{},T=_.maxCount,W=_.rawValues,Re=function(te,Zt,Pt){if(!(ze&&$(T)&&(W==null?void 0:W.size)>=T)){var it=!0,bt=te;Pe==null||Pe(null);var hn=Z(te,xe,$(T)?T-W.size:void 0),ln=Pt?null:hn;return B!=="combobox"&&ln&&(bt="",we==null||we(ln),Gt(!1),it=!1),Ie&&rn!==bt&&Ie(bt,{source:Zt?"typing":"effect"}),it}},ke=function(te){!te||!te.trim()||Ie(te,{source:"submit"})};r.useEffect(function(){!at&&!ze&&B!=="combobox"&&Re("",!1,!1)},[at]),r.useEffect(function(){Hn&&fe&&Kn(!1),fe&&!Kt.current&&nn(!1)},[fe]);var mn=Oe(),Yt=(0,x.Z)(mn,2),zn=Yt[0],vt=Yt[1],an=r.useRef(!1),tr=function(te){var Zt=zn(),Pt=te.key,it=Pt==="Enter";if(it&&(B!=="combobox"&&te.preventDefault(),at||Gt(!0)),vt(!!rn),Pt==="Backspace"&&!Zt&&ze&&!rn&&w.length){for(var bt=(0,J.Z)(w),hn=null,ln=bt.length-1;ln>=0;ln-=1){var Nn=bt[ln];if(!Nn.disabled){bt.splice(ln,1),hn=Nn;break}}hn&&P(bt,{type:"remove",values:[hn]})}for(var Gn=arguments.length,An=new Array(Gn>1?Gn-1:0),nr=1;nr<Gn;nr++)An[nr-1]=arguments[nr];if(at&&(!it||!an.current)){var rr;(rr=At.current)===null||rr===void 0||rr.onKeyDown.apply(rr,[te].concat(An))}it&&(an.current=!0),N==null||N.apply(void 0,[te].concat(An))},lr=function(te){for(var Zt=arguments.length,Pt=new Array(Zt>1?Zt-1:0),it=1;it<Zt;it++)Pt[it-1]=arguments[it];if(at){var bt;(bt=At.current)===null||bt===void 0||bt.onKeyUp.apply(bt,[te].concat(Pt))}te.key==="Enter"&&(an.current=!1),y==null||y.apply(void 0,[te].concat(Pt))},cr=function(te){var Zt=w.filter(function(Pt){return Pt!==te});P(Zt,{type:"remove",values:[te]})},Bn=r.useRef(!1),gn=function(){nn(!0),fe||(f&&!Bn.current&&f.apply(void 0,arguments),u.includes("focus")&&Gt(!0)),Bn.current=!0},gr=function(){Kt.current=!0,nn(!1,function(){Bn.current=!1,Kt.current=!1,Gt(!1)}),!fe&&(rn&&(B==="tags"?Ie(rn,{source:"submit"}):B==="multiple"&&Ie("",{source:"blur"})),C&&C.apply(void 0,arguments))},Xn=[];r.useEffect(function(){return function(){Xn.forEach(function(ge){return clearTimeout(ge)}),Xn.splice(0,Xn.length)}},[]);var hr=function(te){var Zt,Pt=te.target,it=(Zt=pt.current)===null||Zt===void 0?void 0:Zt.getPopupElement();if(it&&it.contains(Pt)){var bt=setTimeout(function(){var Gn=Xn.indexOf(bt);if(Gn!==-1&&Xn.splice(Gn,1),vn(),!dn&&!it.contains(document.activeElement)){var An;(An=St.current)===null||An===void 0||An.focus()}});Xn.push(bt)}for(var hn=arguments.length,ln=new Array(hn>1?hn-1:0),Nn=1;Nn<hn;Nn++)ln[Nn-1]=arguments[Nn];pe==null||pe.apply(void 0,[te].concat(ln))},pr=r.useState({}),Sr=(0,x.Z)(pr,2),br=Sr[1];function Cr(){br({})}var sr;on&&(sr=function(te){Gt(te)}),$e(function(){var ge;return[Rn.current,(ge=pt.current)===null||ge===void 0?void 0:ge.getPopupElement()]},Un,Gt,!!on);var yr=r.useMemo(function(){return(0,E.Z)((0,E.Z)({},n),{},{notFoundContent:z,open:at,triggerOpen:Un,id:o,showSearch:rt,multiple:ze,toggleOpen:Gt})},[n,z,Un,at,o,rt,ze,Gt]),dr=!!me||Ve,fr;dr&&(fr=r.createElement(mt,{className:i()("".concat(d,"-arrow"),(0,I.Z)({},"".concat(d,"-arrow-loading"),Ve)),customizeIcon:me,customizeIconProps:{loading:Ve,searchValue:rn,open:at,focused:tn,showSearch:rt}}));var Er=function(){var te;k==null||k(),(te=St.current)===null||te===void 0||te.focus(),P([],{type:"clear",values:w}),Re("",!1,!1)},vr=ct(d,Er,w,Le,D,fe,rn,B),Ir=vr.allowClear,wr=vr.clearIcon,Rr=r.createElement(ye,{ref:At}),xr=i()(d,g,(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(d,"-focused"),tn),"".concat(d,"-multiple"),ze),"".concat(d,"-single"),!ze),"".concat(d,"-allow-clear"),Le),"".concat(d,"-show-arrow"),dr),"".concat(d,"-disabled"),fe),"".concat(d,"-loading"),Ve),"".concat(d,"-open"),at),"".concat(d,"-customize-input"),Qn),"".concat(d,"-show-search"),rt)),mr=r.createElement(F,{ref:pt,disabled:fe,prefixCls:d,visible:Un,popupElement:Rr,animation:Ye,transitionName:Bt,dropdownStyle:ht,dropdownClassName:Nt,direction:R,dropdownMatchSelectWidth:_e,dropdownRender:lt,dropdownAlign:en,placement:qe,builtinPlacements:jt,getPopupContainer:xt,empty:ue,getTriggerDOMNode:function(te){return xn.current||te},onPopupVisibleChange:sr,onPopupMouseEnter:Cr},on?r.cloneElement(on,{ref:jn}):r.createElement(Yn,(0,m.Z)({},n,{domRef:xn,prefixCls:d,inputElement:Qn,ref:St,id:o,showSearch:rt,autoClearSearchValue:We,mode:B,activeDescendantId:Ce,tagRender:S,values:w,open:at,onToggleOpen:Gt,activeValue:Fe,searchValue:rn,onSearch:Re,onSearchSubmit:ke,onRemove:cr,tokenWithEnter:Y}))),ur;return on?ur=mr:ur=r.createElement("div",(0,m.Z)({className:xr},Mt,{ref:Rn,onMouseDown:hr,onKeyDown:tr,onKeyUp:lr,onFocus:gn,onBlur:gr}),r.createElement(ce,{visible:tn&&!at,values:w}),mr,fr,Ir&&wr),r.createElement(Ft.Provider,{value:yr},ur)}),De=ne,Ue=function(){return null};Ue.isSelectOptGroup=!0;var Ht=Ue,Ct=function(){return null};Ct.isSelectOption=!0;var Ae=Ct,zt=a(44044),yt=a(11026),Ut=a(54501);function Wt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var cn=["disabled","title","children","style","className"];function qt(n){return typeof n=="string"||typeof n=="number"}var Et=function(t,s){var o=_t(),d=o.prefixCls,g=o.id,h=o.open,S=o.multiple,R=o.mode,O=o.searchValue,w=o.toggleOpen,P=o.notFoundContent,ue=o.onPopupScroll,b=r.useContext(H),z=b.maxCount,k=b.flattenOptions,B=b.onActiveValue,fe=b.defaultActiveFirstOption,Ve=b.onSelect,Ze=b.menuItemSelectedIcon,ve=b.rawValues,be=b.fieldNames,G=b.virtual,de=b.direction,Fe=b.listHeight,Pe=b.listItemHeight,Ce=b.optionRender,Te="".concat(d,"-item"),We=(0,zt.Z)(function(){return k},[h,k],function(X,u){return u[0]&&X[1]!==u[1]}),Ie=r.useRef(null),we=r.useMemo(function(){return S&&$(z)&&(ve==null?void 0:ve.size)>=z},[S,z,ve==null?void 0:ve.size]),xe=function(u){u.preventDefault()},Le=function(u){var f;(f=Ie.current)===null||f===void 0||f.scrollTo(typeof u=="number"?{index:u}:u)},me=function(u){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=We.length,y=0;y<C;y+=1){var N=(u+y*f+C)%C,pe=We[N]||{},He=pe.group,ze=pe.data;if(!He&&!(ze!=null&&ze.disabled)&&!we)return N}return-1},D=r.useState(function(){return me(0)}),ye=(0,x.Z)(D,2),Ye=ye[0],Bt=ye[1],ht=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Bt(u);var C={source:f?"keyboard":"mouse"},y=We[u];
26if(!y){B(null,-1,C);return}B(y.value,u,C)};(0,r.useEffect)(function(){ht(fe!==!1?me(0):-1)},[We.length,O]);var Nt=r.useCallback(function(X){return ve.has(X)&&R!=="combobox"},[R,(0,J.Z)(ve).toString(),ve.size]);(0,r.useEffect)(function(){var X=setTimeout(function(){if(!S&&h&&ve.size===1){var f=Array.from(ve)[0],C=We.findIndex(function(y){var N=y.data;return N.value===f});C!==-1&&(ht(C),Le(C))}});if(h){var u;(u=Ie.current)===null||u===void 0||u.scrollTo(void 0)}return function(){return clearTimeout(X)}},[h,O]);var _e=function(u){u!==void 0&&Ve(u,{selected:!ve.has(u)}),S||w(!1)};if(r.useImperativeHandle(s,function(){return{onKeyDown:function(u){var f=u.which,C=u.ctrlKey;switch(f){case p.Z.N:case p.Z.P:case p.Z.UP:case p.Z.DOWN:{var y=0;if(f===p.Z.UP?y=-1:f===p.Z.DOWN?y=1:Wt()&&C&&(f===p.Z.N?y=1:f===p.Z.P&&(y=-1)),y!==0){var N=me(Ye+y,y);Le(N),ht(N,!0)}break}case p.Z.ENTER:{var pe,He=We[Ye];He&&!(He!=null&&(pe=He.data)!==null&&pe!==void 0&&pe.disabled)&&!we?_e(He.value):_e(void 0),h&&u.preventDefault();break}case p.Z.ESC:w(!1),h&&u.stopPropagation()}},onKeyUp:function(){},scrollTo:function(u){Le(u)}}}),We.length===0)return r.createElement("div",{role:"listbox",id:"".concat(g,"_list"),className:"".concat(Te,"-empty"),onMouseDown:xe},P);var lt=Object.keys(be).map(function(X){return be[X]}),en=function(u){return u.label};function qe(X,u){var f=X.group;return{role:f?"presentation":"option",id:"".concat(g,"_list_").concat(u)}}var jt=function(u){var f=We[u];if(!f)return null;var C=f.data||{},y=C.value,N=f.group,pe=(0,ot.Z)(C,!0),He=en(f);return f?r.createElement("div",(0,m.Z)({"aria-label":typeof He=="string"&&!N?He:null},pe,{key:u},qe(f,u),{"aria-selected":Nt(y)}),y):null},xt={role:"listbox",id:"".concat(g,"_list")};return r.createElement(r.Fragment,null,G&&r.createElement("div",(0,m.Z)({},xt,{style:{height:0,width:0,overflow:"hidden"}}),jt(Ye-1),jt(Ye),jt(Ye+1)),r.createElement(Ut.Z,{itemKey:"key",ref:Ie,data:We,height:Fe,itemHeight:Pe,fullHeight:!1,onMouseDown:xe,onScroll:ue,virtual:G,direction:de,innerProps:G?null:xt},function(X,u){var f=X.group,C=X.groupOption,y=X.data,N=X.label,pe=X.value,He=y.key;if(f){var ze,rt=(ze=y.title)!==null&&ze!==void 0?ze:qt(N)?N.toString():void 0;return r.createElement("div",{className:i()(Te,"".concat(Te,"-group"),y.className),title:rt},N!==void 0?N:He)}var Mt=y.disabled,Dt=y.title,wn=y.children,dn=y.style,ut=y.className,Rn=(0,Me.Z)(y,cn),xn=(0,yt.Z)(Rn,lt),pt=Nt(pe),St=Mt||!pt&&we,At="".concat(Te,"-option"),Kt=i()(Te,At,ut,(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},"".concat(At,"-grouped"),C),"".concat(At,"-active"),Ye===u&&!St),"".concat(At,"-disabled"),St),"".concat(At,"-selected"),pt)),fn=en(X),Ln=!Ze||typeof Ze=="function"||pt,tn=typeof fn=="number"?fn:fn||pe,nn=qt(tn)?tn.toString():void 0;return Dt!==void 0&&(nn=Dt),r.createElement("div",(0,m.Z)({},(0,ot.Z)(xn),G?{}:qe(X,u),{"aria-selected":pt,className:Kt,title:nn,onMouseMove:function(){Ye===u||St||ht(u)},onClick:function(){St||_e(pe)},style:dn}),r.createElement("div",{className:"".concat(At,"-content")},typeof Ce=="function"?Ce(X,{index:u}):tn),r.isValidElement(Ze)||pt,Ln&&r.createElement(mt,{className:"".concat(Te,"-option-state"),customizeIcon:Ze,customizeIconProps:{value:pe,disabled:St,isSelected:pt}},pt?"\u2713":null))}))},bn=r.forwardRef(Et),gt=bn,kt=function(n,t){var s=r.useRef({values:new Map,options:new Map}),o=r.useMemo(function(){var g=s.current,h=g.values,S=g.options,R=n.map(function(P){if(P.label===void 0){var ue;return(0,E.Z)((0,E.Z)({},P),{},{label:(ue=h.get(P.value))===null||ue===void 0?void 0:ue.label})}return P}),O=new Map,w=new Map;return R.forEach(function(P){O.set(P.value,P),w.set(P.value,t.get(P.value)||S.get(P.value))}),s.current.values=O,s.current.options=w,R},[n,t]),d=r.useCallback(function(g){return t.get(g)||s.current.options.get(g)},[t]);return[o,d]};function It(n,t){return pn(n).join("").toUpperCase().includes(t)}var dt=function(n,t,s,o,d){return r.useMemo(function(){if(!s||o===!1)return n;var g=t.options,h=t.label,S=t.value,R=[],O=typeof o=="function",w=s.toUpperCase(),P=O?o:function(b,z){return d?It(z[d],w):z[g]?It(z[h!=="children"?h:"label"],w):It(z[S],w)},ue=O?function(b){return ee(b)}:function(b){return b};
26return n.forEach(function(b){if(b[g]){var z=P(s,ue(b));if(z)R.push(b);else{var k=b[g].filter(function(B){return P(s,ue(B))});k.length&&R.push((0,E.Z)((0,E.Z)({},b),{},(0,I.Z)({},g,k)))}return}P(s,ue(b))&&R.push(b)}),R},[n,o,d,s,t])},Dn=a(74169),Je=a(20369),sn=["children","value"],Cn=["children"];function yn(n){var t=n,s=t.key,o=t.props,d=o.children,g=o.value,h=(0,Me.Z)(o,sn);return(0,E.Z)({key:s,value:g!==void 0?g:s,children:d},h)}function Zn(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Je.Z)(n).map(function(s,o){if(!r.isValidElement(s)||!s.type)return null;var d=s,g=d.type.isSelectOptGroup,h=d.key,S=d.props,R=S.children,O=(0,Me.Z)(S,Cn);return t||!g?yn(s):(0,E.Z)((0,E.Z)({key:"__RC_SELECT_GRP__".concat(h===null?o:h,"__"),label:h},O),{},{options:Zn(R)})}).filter(function(s){return s})}var Pn=function(t,s,o,d,g){return r.useMemo(function(){var h=t,S=!t;S&&(h=Zn(s));var R=new Map,O=new Map,w=function(b,z,k){k&&typeof k=="string"&&b.set(z[k],z)},P=function ue(b){for(var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=0;k<b.length;k+=1){var B=b[k];!B[o.options]||z?(R.set(B[o.value],B),w(O,B,o.label),w(O,B,d),w(O,B,g)):ue(B[o.options],!0)}};return P(h),{options:h,valueOptions:R,labelOptions:O}},[t,s,o,d,g])},ft=Pn;function wt(n){var t=r.useRef();t.current=n;var s=r.useCallback(function(){return t.current.apply(t,arguments)},[]);return s}function Xt(n){var t=n.mode,s=n.options,o=n.children,d=n.backfill,g=n.allowClear,h=n.placeholder,S=n.getInputElement,R=n.showSearch,O=n.onSearch,w=n.defaultOpen,P=n.autoFocus,ue=n.labelInValue,b=n.value,z=n.inputValue,k=n.optionLabelProp,B=isMultiple(t),fe=R!==void 0?R:B||t==="combobox",Ve=s||convertChildrenToData(o);if(warning(t!=="tags"||Ve.every(function(G){return!G.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var Ze=Ve.some(function(G){return G.options?G.options.some(function(de){return typeof("value"in de?de.value:de.key)=="number"}):typeof("value"in G?G.value:G.key)=="number"});warning(!Ze,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(t!=="combobox"||!k,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(t==="combobox"||!d,"`backfill` only works with `combobox` mode."),warning(t==="combobox"||!S,"`getInputElement` only work with `combobox` mode."),noteOnce(t!=="combobox"||!S||!g||!h,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),O&&!fe&&t!=="combobox"&&t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!w||P,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),b!=null){var ve=toArray(b);warning(!ue||ve.every(function(G){return _typeof(G)==="object"&&("key"in G||"value"in G)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!B||Array.isArray(b),"`value` should be array when `mode` is `multiple` or `tags`")}if(o){var be=null;toNodeArray(o).some(function(G){if(!React.isValidElement(G)||!G.type)return!1;var de=G,Fe=de.type;if(Fe.isSelectOption)return!1;if(Fe.isSelectOptGroup){var Pe=toNodeArray(G.props.children).every(function(Ce){return!React.isValidElement(Ce)||!G.type||Ce.type.isSelectOption?!0:(be=Ce.type,!1)});return!Pe}return be=Fe,!0}),be&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(be.displayName||be.name||be,"`.")),warning(z===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Rt(n,t){if(n){var s=function o(d){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h++){var S=d[h];if(S[t==null?void 0:t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!g&&Array.isArray(S[t==null?void 0:t.options])&&o(S[t==null?void 0:t.options],!0))break}};s(n)}}var Ge=null,$t=["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"],Vn=["inputValue"];function En(n){return!n||(0,Qe.Z)(n)!=="object"}var Tn=r.forwardRef(function(n,t){var s=n.id,o=n.mode,d=n.prefixCls,g=d===void 0?"rc-select":d,h=n.backfill,S=n.fieldNames,R=n.inputValue,O=n.searchValue,w=n.onSearch,P=n.autoClearSearchValue,ue=P===void 0?!0:P,b=n.onSelect,z=n.onDeselect,k=n.dropdownMatchSelectWidth,B=k===void 0?!0:k,fe=n.filterOption,Ve=n.filterS
26ort,Ze=n.optionFilterProp,ve=n.optionLabelProp,be=n.options,G=n.optionRender,de=n.children,Fe=n.defaultActiveFirstOption,Pe=n.menuItemSelectedIcon,Ce=n.virtual,Te=n.direction,We=n.listHeight,Ie=We===void 0?200:We,we=n.listItemHeight,xe=we===void 0?20:we,Le=n.labelRender,me=n.value,D=n.defaultValue,ye=n.labelInValue,Ye=n.onChange,Bt=n.maxCount,ht=(0,Me.Z)(n,$t),Nt=(0,Dn.ZP)(s),_e=Ne(o),lt=!!(!be&&de),en=r.useMemo(function(){return fe===void 0&&o==="combobox"?!1:fe},[fe,o]),qe=r.useMemo(function(){return ie(S,lt)},[JSON.stringify(S),lt]),jt=(0,re.Z)("",{value:O!==void 0?O:R,postState:function(_){return _||""}}),xt=(0,x.Z)(jt,2),X=xt[0],u=xt[1],f=ft(be,de,qe,Ze,ve),C=f.valueOptions,y=f.labelOptions,N=f.options,pe=r.useCallback(function(Y){var _=pn(Y);return _.map(function(T){var W,Re,ke,mn,Yt;if(En(T))W=T;else{var zn;ke=T.key,Re=T.label,W=(zn=T.value)!==null&&zn!==void 0?zn:ke}var vt=C.get(W);if(vt){var an;if(Re===void 0&&(Re=vt==null?void 0:vt[ve||qe.label]),ke===void 0&&(ke=(an=vt==null?void 0:vt.key)!==null&&an!==void 0?an:W),mn=vt==null?void 0:vt.disabled,Yt=vt==null?void 0:vt.title,0)var tr}return{label:Re,value:W,key:ke,disabled:mn,title:Yt}})},[qe,ve,C]),He=(0,re.Z)(D,{value:me}),ze=(0,x.Z)(He,2),rt=ze[0],Mt=ze[1],Dt=r.useMemo(function(){var Y,_=_e&&rt===null?[]:rt,T=pe(_);return o==="combobox"&&e((Y=T[0])===null||Y===void 0?void 0:Y.value)?[]:T},[rt,pe,o,_e]),wn=kt(Dt,C),dn=(0,x.Z)(wn,2),ut=dn[0],Rn=dn[1],xn=r.useMemo(function(){if(!o&&ut.length===1){var Y=ut[0];if(Y.value===null&&(Y.label===null||Y.label===void 0))return[]}return ut.map(function(_){var T;return(0,E.Z)((0,E.Z)({},_),{},{label:(T=typeof Le=="function"?Le(_):_.label)!==null&&T!==void 0?T:_.value})})},[o,ut,Le]),pt=r.useMemo(function(){return new Set(ut.map(function(Y){return Y.value}))},[ut]);r.useEffect(function(){if(o==="combobox"){var Y,_=(Y=ut[0])===null||Y===void 0?void 0:Y.value;u(Lt(_)?String(_):"")}},[ut]);var St=wt(function(Y,_){var T=_!=null?_:Y;return(0,I.Z)((0,I.Z)({},qe.value,Y),qe.label,T)}),At=r.useMemo(function(){if(o!=="tags")return N;var Y=(0,J.Z)(N),_=function(W){return C.has(W)};return(0,J.Z)(ut).sort(function(T,W){return T.value<W.value?-1:1}).forEach(function(T){var W=T.value;_(W)||Y.push(St(W,T.label))}),Y},[St,N,C,ut,o]),Kt=dt(At,qe,X,en,Ze),fn=r.useMemo(function(){return o!=="tags"||!X||Kt.some(function(Y){return Y[Ze||"value"]===X})||Kt.some(function(Y){return Y[qe.value]===X})?Kt:[St(X)].concat((0,J.Z)(Kt))},[St,Ze,o,Kt,X,qe]),Ln=function Y(_){var T=(0,J.Z)(_).sort(function(W,Re){return Ve(W,Re,{searchValue:X})});return T.map(function(W){return Array.isArray(W.options)?(0,E.Z)((0,E.Z)({},W),{},{options:W.options.length>0?Y(W.options):W.options}):W})},tn=r.useMemo(function(){return Ve?Ln(fn):fn},[fn,Ve,X]),nn=r.useMemo(function(){return q(tn,{fieldNames:qe,childrenAsData:lt})},[tn,qe,lt]),vn=function(_){var T=pe(_);if(Mt(T),Ye&&(T.length!==ut.length||T.some(function(ke,mn){var Yt;return((Yt=ut[mn])===null||Yt===void 0?void 0:Yt.value)!==(ke==null?void 0:ke.value)}))){var W=ye?T:T.map(function(ke){return ke.value}),Re=T.map(function(ke){return ee(Rn(ke.value))});Ye(_e?W:W[0],_e?Re:Re[0])}},rn=r.useState(null),Qn=(0,x.Z)(rn,2),on=Qn[0],jn=Qn[1],or=r.useState(0),Jn=(0,x.Z)(or,2),ar=Jn[0],ir=Jn[1],kn=Fe!==void 0?Fe:o!=="combobox",qn=r.useCallback(function(Y,_){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=T.source,Re=W===void 0?"keyboard":W;ir(_),h&&o==="combobox"&&Y!==null&&Re==="keyboard"&&jn(String(Y))},[h,o]),Hn=function(_,T,W){var Re=function(){var Bn,gn=Rn(_);return[ye?{label:gn==null?void 0:gn[qe.label],value:_,key:(Bn=gn==null?void 0:gn.key)!==null&&Bn!==void 0?Bn:_}:_,ee(gn)]};if(T&&b){var ke=Re(),mn=(0,x.Z)(ke,2),Yt=mn[0],zn=mn[1];b(Yt,zn)}else if(!T&&z&&W!=="clear"){var vt=Re(),an=(0,x.Z)(vt,2),tr=an[0],lr=an[1];z(tr,lr)}},Kn=wt(function(Y,_){var T,W=_e?_.selected:!0;W?T=_e?[].concat((0,J.Z)(ut),[Y]):[Y]:T=ut.filter(function(Re){return Re.value!==Y}),vn(T),Hn(Y,W),o==="combobox"?jn(""):(!Ne||ue)&&(u(""),jn(""))}),at=function(_,T){vn(_);var W=T.type,Re=T.values;(W==="remove"||W==="clear")&&Re.forEach(function(ke){Hn(ke.value,!1,W)})},er=function(_,T){if(u(_),jn(null),T.source==="submit"){var W=(_||"").trim();if(W){var Re=Array.from(new Set([].concat((0,J.Z)(pt),[W])));vn(Re),Hn(W,!0),u("")}return}T.source!=="blur"&&(o==="combobox"&&vn(_),w==null||w(_))},Un=function(_){var T=_;o!=="tags"&&(T=_.map(function(Re){var ke=y.get(Re);return ke==null?void 0:ke.value}).filter(function(Re){return Re!==void 0}));var W=Array.from(new Set([].concat((0,J.Z)(pt),(0,J.Z)(T))));vn(W),W.forEach(function(Re){Hn(Re,!0)})},Gt=r.useMemo(function(){var Y=Ce!==!1&&B!==!1;return(0,E.Z)((0,E.Z)({},f),{},{flattenOptions:nn,onActiveValue:qn,defaultActiveFirstOption:kn,onSelect:Kn,menuItemSelectedIcon:Pe,rawValues:pt,fieldNames:qe,virtual:Y,direction:Te,listHeight:Ie,listItemHeight:xe,childrenAsData:lt,maxCount:Bt,optionRender:G})},[Bt,f,nn,qn,kn,Kn,Pe,pt,qe,Ce,B,Te,Ie,xe,lt,G]);return r.createElement(H.Provider,{value:Gt},r.createElement(De,(0,m.Z)({},ht,{id:Nt,prefixCls:g,ref:t,omitDomProps:Vn,mode:o,displayValues:xn,onDisplayValuesChange:at,direction:Te,searchValue:X,onSearch:er,autoClearSearchValue:ue,onSearchSplit:Un,dropdownMatchSelectWidth:B,OptionList:gt,emptyOptions:!nn.length,activeValue:on,activeDescendantId:"".concat(Nt,"_list_").concat(ar)})))}),In=Tn;In.Option=Ae,In.OptGroup=Ht;var Fn=In,Wn=Fn},54501:function(Vt,Xe,a){a.d(Xe,{Z:function(){return _n}});var m=a(15515),J=a(64893),I=a(82622),E=a(5933),x=a(86737),Me=a(32088),Qe=a(51865),re=a.n(Qe),oe=a(31937),r=a(79799),Se=a(89191),i=a(44194),Be=a(56321),tt=i.forwardRef(function(c,j){var M=c.height,L=c.offsetY,F=c.offsetX,K=c.children,V=c.prefixCls,$=c.onInnerResize,ie=c.innerProps,q=c.rtl,ee=c.extra,Z={},le={display:"flex",flexDirection:"column"};return L!==void 0&&(Z={height:M,position:"relative",overflow:"hidden"},le=(0,I.Z)((0,I.Z)({},le),{},(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({transform:"translateY(".concat(L,"px)")},q?"marginRight":"marginLeft",-F),"position","absolute"),"left",0),"right",0),"top",0))),i.createElement("div",{style:Z},i.createElement(oe.Z,{onResize:function(ce){var U=ce.offsetHeight;U&&$&&$()}},i.createElement("div",(0,m.Z)({style:le,className:re()((0,E.Z)({},"".concat(V,"-holder-inner"),V)),ref:j},ie),K,ee)))});tt.displayName="Filler";var Ee=tt;function nt(c){var j=c.children,M=c.setRef,L=i.useCallback(function(F){M(F)},[]);return i.cloneElement(j,{ref:L})}function mt(c,j,M,L,F,K,V,$){var ie=$.getKey;return c.slice(j,M+1).map(function(q,ee){var Z=j+ee,le=V(q,Z,{style:{width:L},offsetX:F}),H=ie(q);return i.createElement(nt,{key:H,setRef:function(U){return K(q,U)}},le)})}function ct(c,j,M,L){var F=M-c,K=j-M,V=Math.min(F,K)*2;if(L<=V){var $=Math.floor(L/2);return L%2?M+$+1:M-$}return F>K?M-(L-K):M+(L-F)}function Ft(c,j,M){var L=c.length,F=j.length,K,V;if(L===0&&F===0)return null;L<F?(K=c,V=j):(K=j,V=c);var $={__EMPTY_ITEM__:!0};function ie(ce){return ce!==void 0?M(ce):$}for(var q=null,ee=Math.abs(L-F)!==1,Z=0;Z<V.length;Z+=1){var le=ie(K[Z]),H=ie(V[Z]);if(le!==H){q=Z,ee=ee||le!==ie(V[Z+1]);break}}return q===null?null:{index:q,multiple:ee}}function _t(c,j,M){var L=i.useState(c),F=(0,x.Z)(L,2),K=F[0],V=F[1],$=i.useState(null),ie=(0,x.Z)($,2),q=ie[0],ee=ie[1];return i.useEffect(function(){var Z=Ft(K||[],c||[],j);(Z==null?void 0:Z.index)!==void 0&&(M==null||M(Z.index),ee(c[Z.index])),V(c)},[c]),[q]}var Q=a(53206),Oe=(typeof navigator=="undefined"?"undefined":(0,J.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),$e=Oe,p=function(c,j,M,L){var F=(0,i.useRef)(!1),K=(0,i.useRef)(null);function V(){clearTimeout(K.current),F.current=!0,K.current=setTimeout(function(){F.current=!1},50)}var $=(0,i.useRef)({top:c,bottom:j,left:M,right:L});return $.current.top=c,$.current.bottom=j,$.current.left=M,$.current.right=L,function(ie,q){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=ie?q<0&&$.current.left||q>0&&$.current.right:q<0&&$.current.top||q>0&&$.current.bottom;return ee&&Z?(clearTimeout(K.current),F.current=!1):(!Z||F.current)&&V(),!F.current&&Z}};function he(c,j,M,L,F,K,V){var $=(0,i.useRef)(0),ie=(0,i.useRef)(null),q=(0,i.useRef)(null),ee=(0,i.useRef)(!1),Z=p(j,M,L,F);function le(ne,De){if(Q.Z.cancel(ie.current),!Z(!1,De)){var Ue=ne;if(!Ue._virtualHandled)Ue._virtualHandled=!0;else return;$.current+=De,q.current=De,$e||Ue.preventDefault(),ie.current=(0,Q.Z)(function(){var Ht=ee.current?10:1;V($.current*Ht,!1),$.current=0})}}function H(ne,De){V(De,!0),$e||ne.preventDefault()}var ce=(0,i.useRef)(null),U=(0,i.useRef)(null);function se(ne){if(c){Q.Z.cancel(U.current),U.current=(0,Q.Z)(function(){ce.current=null},2);var De=ne.deltaX,Ue=ne.deltaY,Ht=ne.shiftKey,Ct=De,Ae=Ue;(ce.current==="sx"||!ce.current&&Ht&&Ue&&!De)&&(Ct=Ue,Ae=0,ce.current="sx");var zt=Math.abs(Ct),yt=Math.abs(Ae);ce.current===null&&(ce.current=K&&zt>yt?"x":"y"),ce.current==="y"?le(ne,Ae):H(ne,Ct)}}function Ne(ne){c&&(ee.current=ne.detail===q.current)}return[se,Ne]}function ot(c,j,M,L){var F=i.useMemo(function(){return[new Map,[]]},[c,M.id,L]),K=(0,x.Z)(F,2),V=K[0],$=K[1],ie=function(ee){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ee,le=V.get(ee),H=V.get(Z);if(le===void 0||H===void 0)for(var ce=c.length,U=$.length;U<ce;U+=1){var se,Ne=c[U],ne=j(Ne);
26V.set(ne,U);var De=(se=M.get(ne))!==null&&se!==void 0?se:L;if($[U]=($[U-1]||0)+De,ne===ee&&(le=U),ne===Z&&(H=U),le!==void 0&&H!==void 0)break}return{top:$[le-1]||0,bottom:$[H]}};return ie}var st=a(5242),Qt=a(36982),un=a(24153),Jt=function(){function c(){(0,Qt.Z)(this,c),(0,E.Z)(this,"maps",void 0),(0,E.Z)(this,"id",0),this.maps=Object.create(null)}return(0,un.Z)(c,[{key:"set",value:function(M,L){this.maps[M]=L,this.id+=1}},{key:"get",value:function(M){return this.maps[M]}}]),c}(),pn=Jt;function Mn(c,j,M){var L=i.useState(0),F=(0,x.Z)(L,2),K=F[0],V=F[1],$=(0,i.useRef)(new Map),ie=(0,i.useRef)(new pn),q=(0,i.useRef)();function ee(){Q.Z.cancel(q.current)}function Z(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ee();var ce=function(){$.current.forEach(function(se,Ne){if(se&&se.offsetParent){var ne=(0,st.ZP)(se),De=ne.offsetHeight;ie.current.get(Ne)!==De&&ie.current.set(Ne,ne.offsetHeight)}}),V(function(se){return se+1})};H?ce():q.current=(0,Q.Z)(ce)}function le(H,ce){var U=c(H),se=$.current.get(U);ce?($.current.set(U,ce),Z()):$.current.delete(U),!se!=!ce&&(ce?j==null||j(H):M==null||M(H))}return(0,i.useEffect)(function(){return ee},[]),[le,Z,ie.current,K]}var Tt=14/15;function Lt(c,j,M){var L=(0,i.useRef)(!1),F=(0,i.useRef)(0),K=(0,i.useRef)(0),V=(0,i.useRef)(null),$=(0,i.useRef)(null),ie,q=function(H){if(L.current){var ce=Math.ceil(H.touches[0].pageX),U=Math.ceil(H.touches[0].pageY),se=F.current-ce,Ne=K.current-U,ne=Math.abs(se)>Math.abs(Ne);ne?F.current=ce:K.current=U;var De=M(ne,ne?se:Ne,!1,H);De&&H.preventDefault(),clearInterval($.current),De&&($.current=setInterval(function(){ne?se*=Tt:Ne*=Tt;var Ue=Math.floor(ne?se:Ne);(!M(ne,Ue,!0)||Math.abs(Ue)<=.1)&&clearInterval($.current)},16))}},ee=function(){L.current=!1,ie()},Z=function(H){ie(),H.touches.length===1&&!L.current&&(L.current=!0,F.current=Math.ceil(H.touches[0].pageX),K.current=Math.ceil(H.touches[0].pageY),V.current=H.target,V.current.addEventListener("touchmove",q,{passive:!1}),V.current.addEventListener("touchend",ee,{passive:!0}))};ie=function(){V.current&&(V.current.removeEventListener("touchmove",q),V.current.removeEventListener("touchend",ee))},(0,Se.Z)(function(){return c&&j.current.addEventListener("touchstart",Z,{passive:!0}),function(){var le;(le=j.current)===null||le===void 0||le.removeEventListener("touchstart",Z),ie(),clearInterval($.current)}},[c])}var e=10;function v(c,j,M,L,F,K,V,$){var ie=i.useRef(),q=i.useState(null),ee=(0,x.Z)(q,2),Z=ee[0],le=ee[1];return(0,Se.Z)(function(){if(Z&&Z.times<e){if(!c.current){le(function(dt){return(0,I.Z)({},dt)});return}K();var H=Z.targetAlign,ce=Z.originAlign,U=Z.index,se=Z.offset,Ne=c.current.clientHeight,ne=!1,De=H,Ue=null;if(Ne){for(var Ht=H||ce,Ct=0,Ae=0,zt=0,yt=Math.min(j.length-1,U),Ut=0;Ut<=yt;Ut+=1){var Wt=F(j[Ut]);Ae=Ct;var cn=M.get(Wt);zt=Ae+(cn===void 0?L:cn),Ct=zt}for(var qt=Ht==="top"?se:Ne-se,Et=yt;Et>=0;Et-=1){var bn=F(j[Et]),gt=M.get(bn);if(gt===void 0){ne=!0;break}if(qt-=gt,qt<=0)break}switch(Ht){case"top":Ue=Ae-se;break;case"bottom":Ue=zt-Ne+se;break;default:{var kt=c.current.scrollTop,It=kt+Ne;Ae<kt?De="top":zt>It&&(De="bottom")}}Ue!==null&&V(Ue),Ue!==Z.lastTop&&(ne=!0)}ne&&le((0,I.Z)((0,I.Z)({},Z),{},{times:Z.times+1,targetAlign:De,lastTop:Ue}))}},[Z,c.current]),function(H){if(H==null){$();return}if(Q.Z.cancel(ie.current),typeof H=="number")V(H);else if(H&&(0,J.Z)(H)==="object"){var ce,U=H.align;"index"in H?ce=H.index:ce=j.findIndex(function(ne){return F(ne)===H.key});var se=H.offset,Ne=se===void 0?0:se;le({times:0,index:ce,offset:Ne,originAlign:U})}}}function l(c,j){var M="touches"in c?c.touches[0]:c;return M[j?"pageX":"pageY"]}var A=i.forwardRef(function(c,j){var M=c.prefixCls,L=c.rtl,F=c.scrollOffset,K=c.scrollRange,V=c.onStartMove,$=c.onStopMove,ie=c.onScroll,q=c.horizontal,ee=c.spinSize,Z=c.containerSize,le=c.style,H=c.thumbStyle,ce=i.useState(!1),U=(0,x.Z)(ce,2),se=U[0],Ne=U[1],ne=i.useState(null),De=(0,x.Z)(ne,2),Ue=De[0],Ht=De[1],Ct=i.useState(null),Ae=(0,x.Z)(Ct,2),zt=Ae[0],yt=Ae[1],Ut=!L,Wt=i.useRef(),cn=i.useRef(),qt=i.useState(!1),Et=(0,x.Z)(qt,2),bn=Et[0],gt=Et[1],kt=i.useRef(),It=function(){clearTimeout(kt.current),gt(!0),kt.current=setTimeout(function(){gt(!1)},3e3)},dt=K-Z||0,Dn=Z-ee||0,Je=i.useMemo(function(){if(F===0||dt===0)return 0;var Rt=F/dt;return Rt*Dn},[F,dt,Dn]),sn=function(Ge){Ge.stopPropagation(),Ge.preventDefault()},Cn=i.useRef({top:Je,dragging:se,pageY:Ue,startTop:zt});Cn.current={top:Je,dragging:se,pageY:Ue,startTop:zt};var yn=function(Ge){Ne(!0),Ht(l(Ge,q)),yt(Cn.current.top),V(),Ge.stopPropagation(),Ge.preventDefault()};i.useEffect(function(){var Rt=function(En){En.preventDefault()},Ge=Wt.current,$t=cn.current;return Ge.addEventListener("touchstart",Rt,{passive:!1}),$t.addEventListener("touchstart",yn,{passive:!1}),function(){Ge.removeEventListener("touchstart",Rt),$t.removeEventListener("touchstart",yn)}},[]);var Zn=i.useRef();Zn.current=dt;var Pn=i.useRef();Pn.current=Dn,i.useEffect(function(){if(se){var Rt,Ge=function(En){var Tn=Cn.current,In=Tn.dragging,Fn=Tn.pageY,Wn=Tn.startTop;Q.Z.cancel(Rt);var n=Wt.current.getBoundingClientRect(),t=Z/(q?n.width:n.height);if(In){var s=(l(En,q)-Fn)*t,o=Wn;!Ut&&q?o-=s:o+=s;var d=Zn.current,g=Pn.current,h=g?o/g:0,S=Math.ceil(h*d);S=Math.max(S,0),S=Math.min(S,d),Rt=(0,Q.Z)(function(){ie(S,q)})}},$t=function(){Ne(!1),$()};return window.addEventListener("mousemove",Ge,{passive:!0}),window.addEventListener("touchmove",Ge,{passive:!0}),window.addEventListener("mouseup",$t,{passive:!0}),window.addEventListener("touchend",$t,{passive:!0}),function(){window.removeEventListener("mousemove",Ge),window.removeEventListener("touchmove",Ge),window.removeEventListener("mouseup",$t),window.removeEventListener("touchend",$t),Q.Z.cancel(Rt)}}},[se]),i.useEffect(function(){return It(),function(){clearTimeout(kt.current)}},[F]),i.useImperativeHandle(j,function(){return{delayHidden:It}});var ft="".concat(M,"-scrollbar"),wt={position:"absolute",visibility:bn?null:"hidden"},Xt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return q?(wt.height=8,wt.left=0,wt.right=0,wt.bottom=0,Xt.height="100%",Xt.width=ee,Ut?Xt.left=Je:Xt.right=Je):(wt.width=8,wt.top=0,wt.bottom=0,Ut?wt.right=0:wt.left=0,Xt.width="100%",Xt.height=ee,Xt.top=Je),i.createElement("div",{ref:Wt,className:re()(ft,(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(ft,"-horizontal"),q),"".concat(ft,"-vertical"),!q),"".concat(ft,"-visible"),bn)),style:(0,I.Z)((0,I.Z)({},wt),le),onMouseDown:sn,onMouseMove:It},i.createElement("div",{ref:cn,className:re()("".concat(ft,"-thumb"),(0,E.Z)({},"".concat(ft,"-thumb-moving"),se)),style:(0,I.Z)((0,I.Z)({}
26,Xt),H),onMouseDown:yn}))}),ae=A,je=20;function Ke(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=c/j*c;return isNaN(M)&&(M=0),M=Math.max(M,je),Math.floor(M)}var et=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ot=[],On={overflowY:"auto",overflowAnchor:"none"};function Sn(c,j){var M=c.prefixCls,L=M===void 0?"rc-virtual-list":M,F=c.className,K=c.height,V=c.itemHeight,$=c.fullHeight,ie=$===void 0?!0:$,q=c.style,ee=c.data,Z=c.children,le=c.itemKey,H=c.virtual,ce=c.direction,U=c.scrollWidth,se=c.component,Ne=se===void 0?"div":se,ne=c.onScroll,De=c.onVirtualScroll,Ue=c.onVisibleChange,Ht=c.innerProps,Ct=c.extraRender,Ae=c.styles,zt=(0,Me.Z)(c,et),yt=i.useCallback(function(u){return typeof le=="function"?le(u):u==null?void 0:u[le]},[le]),Ut=Mn(yt,null,null),Wt=(0,x.Z)(Ut,4),cn=Wt[0],qt=Wt[1],Et=Wt[2],bn=Wt[3],gt=!!(H!==!1&&K&&V),kt=i.useMemo(function(){return Object.values(Et.maps).reduce(function(u,f){return u+f},0)},[Et.id,Et.maps]),It=gt&&ee&&(Math.max(V*ee.length,kt)>K||!!U),dt=ce==="rtl",Dn=re()(L,(0,E.Z)({},"".concat(L,"-rtl"),dt),F),Je=ee||Ot,sn=(0,i.useRef)(),Cn=(0,i.useRef)(),yn=(0,i.useRef)(),Zn=(0,i.useState)(0),Pn=(0,x.Z)(Zn,2),ft=Pn[0],wt=Pn[1],Xt=(0,i.useState)(0),Rt=(0,x.Z)(Xt,2),Ge=Rt[0],$t=Rt[1],Vn=(0,i.useState)(!1),En=(0,x.Z)(Vn,2),Tn=En[0],In=En[1],Fn=function(){In(!0)},Wn=function(){In(!1)},n={getKey:yt};function t(u){wt(function(f){var C;typeof u=="function"?C=u(f):C=u;var y=de(C);return sn.current.scrollTop=y,y})}var s=(0,i.useRef)({start:0,end:Je.length}),o=(0,i.useRef)(),d=_t(Je,yt),g=(0,x.Z)(d,1),h=g[0];o.current=h;var S=i.useMemo(function(){if(!gt)return{scrollHeight:void 0,start:0,end:Je.length-1,offset:void 0};if(!It){var u;return{scrollHeight:((u=Cn.current)===null||u===void 0?void 0:u.offsetHeight)||0,start:0,end:Je.length-1,offset:void 0}}for(var f=0,C,y,N,pe=Je.length,He=0;He<pe;He+=1){var ze=Je[He],rt=yt(ze),Mt=Et.get(rt),Dt=f+(Mt===void 0?V:Mt);Dt>=ft&&C===void 0&&(C=He,y=f),Dt>ft+K&&N===void 0&&(N=He),f=Dt}return C===void 0&&(C=0,y=0,N=Math.ceil(K/V)),N===void 0&&(N=Je.length-1),N=Math.min(N+1,Je.length-1),{scrollHeight:f,start:C,end:N,offset:y}},[It,gt,ft,Je,bn,K]),R=S.scrollHeight,O=S.start,w=S.end,P=S.offset;s.current.start=O,s.current.end=w;var ue=i.useState({width:0,height:K}),b=(0,x.Z)(ue,2),z=b[0],k=b[1],B=function(f){k({width:f.offsetWidth,height:f.offsetHeight})},fe=(0,i.useRef)(),Ve=(0,i.useRef)(),Ze=i.useMemo(function(){return Ke(z.width,U)},[z.width,U]),ve=i.useMemo(function(){return Ke(z.height,R)},[z.height,R]),be=R-K,G=(0,i.useRef)(be);G.current=be;function de(u){var f=u;return Number.isNaN(G.current)||(f=Math.min(f,G.current)),f=Math.max(f,0),f}var Fe=ft<=0,Pe=ft>=be,Ce=Ge<=0,Te=Ge>=U,We=p(Fe,Pe,Ce,Te),Ie=function(){return{x:dt?-Ge:Ge,y:ft}},we=(0,i.useRef)(Ie()),xe=(0,r.zX)(function(u){if(De){var f=(0,I.Z)((0,I.Z)({},Ie()),u);(we.current.x!==f.x||we.current.y!==f.y)&&(De(f),we.current=f)}});function Le(u,f){var C=u;f?((0,Be.flushSync)(function(){$t(C)}),xe()):t(C)}function me(u){var f=u.currentTarget.scrollTop;f!==ft&&t(f),ne==null||ne(u),xe()}var D=function(f){var C=f,y=U?U-z.width:0;return C=Math.max(C,0),C=Math.min(C,y),C},ye=(0,r.zX)(function(u,f){f?((0,Be.flushSync)(function(){$t(function(C){var y=C+(dt?-u:u);return D(y)})}),xe()):t(function(C){var y=C+u;return y})}),Ye=he(gt,Fe,Pe,Ce,Te,!!U,ye),Bt=(0,x.Z)(Ye,2),ht=Bt[0],Nt=Bt[1];Lt(gt,sn,function(u,f,C,y){var N=y;return We(u,f,C)?!1:!N||!N._virtualHandled?(N&&(N._virtualHandled=!0),ht({preventDefault:function(){},deltaX:u?f:0,deltaY:u?0:f}),!0):!1}),(0,Se.Z)(function(){function u(C){var y=Fe&&C.detail<0,N=Pe&&C.detail>0;gt&&!y&&!N&&C.preventDefault()}var f=sn.current;return f.addEventListener("wheel",ht,{passive:!1}),f.addEventListener("DOMMouseScroll",Nt,{passive:!0}),f.addEventListener("MozMousePixelScroll",u,{passive:!1}),function(){f.removeEventListener("wheel",ht),f.removeEventListener("DOMMouseScroll",Nt),f.removeEventListener("MozMousePixelScroll",u)}},[gt,Fe,Pe]),(0,Se.Z)(function(){if(U){var u=D(Ge);$t(u),xe({x:u})}},[z.width,U]);var _e=function(){var f,C;(f=fe.current)===null||f===void 0||f.delayHidden(),(C=Ve.current)===null||C===void 0||C.delayHidden()},lt=v(sn,Je,Et,V,yt,function(){return qt(!0)},t,_e);i.useImperativeHandle(j,function(){return{nativeElement:yn.current,getScrollInfo:Ie,scrollTo:function(f){function C(y){return y&&(0,J.Z)(y)==="object"&&("left"in y||"top"in y)}C(f)?(f.left!==void 0&&$t(D(f.left)),lt(f.top)):lt(f)}
26}}),(0,Se.Z)(function(){if(Ue){var u=Je.slice(O,w+1);Ue(u,Je)}},[O,w,Je]);var en=ot(Je,yt,Et,V),qe=Ct==null?void 0:Ct({start:O,end:w,virtual:It,offsetX:Ge,offsetY:P,rtl:dt,getSize:en}),jt=mt(Je,O,w,U,Ge,cn,Z,n),xt=null;K&&(xt=(0,I.Z)((0,E.Z)({},ie?"height":"maxHeight",K),On),gt&&(xt.overflowY="hidden",U&&(xt.overflowX="hidden"),Tn&&(xt.pointerEvents="none")));var X={};return dt&&(X.dir="rtl"),i.createElement("div",(0,m.Z)({ref:yn,style:(0,I.Z)((0,I.Z)({},q),{},{position:"relative"}),className:Dn},X,zt),i.createElement(oe.Z,{onResize:B},i.createElement(Ne,{className:"".concat(L,"-holder"),style:xt,ref:sn,onScroll:me,onMouseEnter:_e},i.createElement(Ee,{prefixCls:L,height:R,offsetX:Ge,offsetY:P,scrollWidth:U,onInnerResize:qt,ref:Cn,innerProps:Ht,rtl:dt,extra:qe},jt))),It&&R>K&&i.createElement(ae,{ref:fe,prefixCls:L,scrollOffset:ft,scrollRange:R,rtl:dt,onScroll:Le,onStartMove:Fn,onStopMove:Wn,spinSize:ve,containerSize:z.height,style:Ae==null?void 0:Ae.verticalScrollBar,thumbStyle:Ae==null?void 0:Ae.verticalScrollBarThumb}),It&&U>z.width&&i.createElement(ae,{ref:Ve,prefixCls:L,scrollOffset:Ge,scrollRange:U,rtl:dt,onScroll:Le,onStartMove:Fn,onStopMove:Wn,spinSize:Ze,containerSize:z.width,horizontal:!0,style:Ae==null?void 0:Ae.horizontalScrollBar,thumbStyle:Ae==null?void 0:Ae.horizontalScrollBarThumb}))}var $n=i.forwardRef(Sn);$n.displayName="List";var Yn=$n,_n=Yn}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.