(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2596],{88258:function(kt,et,g){"use strict";var v=g(67294),be=g(53124),k=g(14277),X=function(Te){return v.createElement(be.C,null,function(Me){var _e=Me.getPrefixCls,pe=_e("empty");switch(Te){case"Table":case"List":return v.createElement(k.Z,{image:k.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(k.Z,{image:k.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(pe,"-small")});default:return v.createElement(k.Z,null)}})};et.Z=X},14277:function(kt,et,g){"use strict";g.d(et,{Z:function(){return Lt}});var v=g(96156),be=g(22122),k=g(94184),X=g.n(k),b=g(67294),Te=g(53124),Me=g(42051),_e=function(){var Ne=b.useContext(Te.E_),Be=Ne.getPrefixCls,Q=Be("empty-img-default");return b.createElement("svg",{className:Q,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{className:"".concat(Q,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{className:"".concat(Q,"-path-1"),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"}),b.createElement("path",{className:"".concat(Q,"-path-2"),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",transform:"translate(13.56)"}),b.createElement("path",{className:"".concat(Q,"-path-3"),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"}),b.createElement("path",{className:"".concat(Q,"-path-4"),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"})),b.createElement("path",{className:"".concat(Q,"-path-5"),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"}),b.createElement("g",{className:"".concat(Q,"-g"),transform:"translate(149.65 15.383)"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pe=_e,i=function(){var Ne=b.useContext(Te.E_),Be=Ne.getPrefixCls,Q=Be("empty-img-simple");return b.createElement("svg",{className:Q,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{className:"".concat(Q,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{className:"".concat(Q,"-g"),fillRule:"nonzero"},b.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"}),b.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",className:"".concat(Q,"-path")}))))},Ke=i,Le=function(Ue,Ne){var Be={};for(var Q in Ue)Object.prototype.hasOwnProperty.call(Ue,Q)&&Ne.indexOf(Q)<0&&(Be[Q]=Ue[Q]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Q=Object.getOwnPropertySymbols(Ue);Ve1&&arguments[1]!==void 0?arguments[1]:{},u=t.fieldNames,l=t.childrenAsData,p=[],c=Be(u,!1),h=c.label,S=c.value,E=c.options;function O(P,y){P.forEach(function(C){var d=C[h];if(y||!(E in C)){var M=C[S];p.push({key:Ne(C,p.length),groupOption:y,data:C,label:d,value:M})}else{var re=d;re===void 0&&l&&(re=C.label),p.push({key:Ne(C,p.length),group:!0,data:C,label:re}),O(C[E],!0)}})}return O(r,!1),p}function Ve(r){var t=(0,X.Z)({},r);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function $e(r,t){if(!t||!t.length)return null;var u=!1;function l(c,h){var S=(0,Ue.Z)(h),E=S[0],O=S.slice(1);if(!E)return[c];var P=c.split(E);return u=u||P.length>1,P.reduce(function(y,C){return[].concat((0,be.Z)(y),(0,be.Z)(l(C,O)))},[]).filter(function(y){return y})}var p=l(r,t);return u?p:null}var wt=g(18481),at=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ct=function(t){var u=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:u,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:u,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:u,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:u,adjustY:1}}}},Nt=function(t,u){var l=t.prefixCls,p=t.disabled,c=t.visible,h=t.children,S=t.popupElement,E=t.containerWidth,O=t.animation,P=t.transitionName,y=t.dropdownStyle,C=t.dropdownClassName,d=t.direction,M=d===void 0?"ltr":d,re=t.placement,oe=t.dropdownMatchSelectWidth,H=t.dropdownRender,$=t.dropdownAlign,J=t.getPopupContainer,ge=t.empty,ae=t.getTriggerDOMNode,W=t.onPopupVisibleChange,ye=t.onPopupMouseEnter,q=(0,Te.Z)(t,at),ee="".concat(l,"-dropdown"),se=S;H&&(se=H(S));var Se=i.useMemo(function(){return Ct(oe)},[oe]),Ee=O?"".concat(ee,"-").concat(O):P,te=i.useRef(null);i.useImperativeHandle(u,function(){return{getPopupElement:function(){return te.current}}});var Oe=(0,X.Z)({minWidth:E},y);return typeof oe=="number"?Oe.width=oe:oe&&(Oe.width=E),i.createElement(wt.Z,(0,v.Z)({},q,{showAction:W?["click"]:[],hideAction:W?["click"]:[],popupPlacement:re||(M==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Se,prefixCls:ee,popupTransitionName:Ee,popup:i.createElement("div",{ref:te,onMouseEnter:ye},se),popupAlign:$,popupVisible:c,getPopupContainer:J,popupClassName:Le()(C,(0,k.Z)({},"".concat(ee,"-empty"),ge)),popupStyle:Oe,getTriggerDOMNode:ae,onPopupVisibleChange:W}),h)},it=i.forwardRef(Nt);it.displayName="SelectTrigger";var At=it,pt=g(64217),Wt=g(19214),Mt=function(t){var u=t.className,l=t.customizeIcon,p=t.customizeIconProps,c=t.onMouseDown,h=t.onClick,S=t.children,E;return typeof l=="function"?E=l(p):E=l,i.createElement("span",{className:u,onMouseDown:function(P){P.preventDefault(),c&&c(P)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:h,"aria-hidden":!0},E!==void 0?E:i.createElement("span",{className:Le()(u.split(/\s+/).map(function(O){return"".concat(O,"-icon")}))},S))},tt=Mt,Ot=function(t,u){var l,p,c=t.prefixCls,h=t.id,S=t.inputElement,E=t.disabled,O=t.tabIndex,P=t.autoFocus,y=t.autoComplete,C=t.editable,d=t.activeDescendantId,M=t.value,re=t.maxLength,oe=t.onKeyDown,H=t.onMouseDown,$=t.onChange,J=t.onPaste,ge=t.onCompositionStart,ae=t.onCompositionEnd,W=t.open,ye=t.attrs,q=S||i.createElement("input",null),ee=q,se=ee.ref,Se=ee.props,Ee=Se.onKeyDown,te=Se.onChange,Oe=Se.onMouseDown,U=Se.onCompositionStart,L=Se.onCompositionEnd,Y=Se.style;return(0,pe.Kp)(!("maxLength"in q.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),q=i.cloneElement(q,(0,X.Z)((0,X.Z)((0,X.Z)({type:"search"},Se),{},{id:h,ref:(0,mt.sQ)(u,se),disabled:E,tabIndex:O,autoComplete:y||"off",autoFocus:P,className:Le()("".concat(c,"-selection-search-input"),(l=q)===null||l===void 0||(p=l.props)===null||p===void 0?void 0:p.className),role:"combobox","aria-expanded":W,"aria-haspopup":"listbox","aria-owns":"".concat(h,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(h,"_list"),"aria-activedescendant":d},ye),{},{value:C?M:"",maxLength:re,readOnly:!C,unselectable:C?null:"on",style:(0,X.Z)((0,X.Z)({},Y),{},{opacity:C?null:0}),onKeyDown:function(de){oe(de),Ee&&Ee(de)},onMouseDown:function(de){H(de),Oe&&Oe(de)},onChange:function(de){$(de),te&&te(de)},onCompositionStart:function(de){ge(de),U&&U(de)},onCompositionEnd:function(de){ae(de),L&&L(de)},onPaste:J})),q},jt=i.forwardRef(Ot);jt.displayName="Input";var Rt=jt;function on(r){return Array.isArray(r)?r:r!==void 0?[r]:[]}var an=typeof window!="undefined"&&window.document&&window.document.documentElement,Mn=an;function On(r,t){Mn?i.useLayoutEffect(r,t):i.useEffect(r,t)}function Rn(r){var t;return(t=r.key)!==null&&t!==void 0?t:r.value}var Ut=function(t){t.preventDefault(),t.stopPropagation()},Dn=function(t){var u=t.id,l=t.prefixCls,p=t.values,c=t.open,h=t.searchValue,S=t.inputRef,E=t.placeholder,O=t.disabled,P=t.mode,y=t.showSearch,C=t.autoFocus,d=t.autoComplete,M=t.activeDescendantId,re=t.tabIndex,oe=t.removeIcon,H=t.maxTagCount,$=t.maxTagTextLength,J=t.maxTagPlaceholder,ge=J===void 0?function(ue){return"+ ".concat(ue.length," ...")}:J,ae=t.tagRender,W=t.onToggleOpen,ye=t.onRemove,q=t.onInputChange,ee=t.onInputPaste,se=t.onInputKeyDown,Se=t.onInputMouseDown,Ee=t.onInputCompositionStart,te=t.onInputCompositionEnd,Oe=i.useRef(null),U=(0,i.useState)(0),L=(0,b.Z)(U,2),Y=L[0],fe=L[1],de=(0,i.useState)(!1),ke=(0,b.Z)(de,2),Fe=ke[0],ut=ke[1],le="".concat(l,"-selection"),G=c||P==="tags"?h:"",x=P==="tags"||y&&(c||Fe);On(function(){fe(Oe.current.scrollWidth)},[G]);function B(ue,Ae,xe,D,j){return i.createElement("span",{className:Le()("".concat(le,"-item"),(0,k.Z)({},"".concat(le,"-item-disabled"),xe)),title:typeof ue=="string"||typeof ue=="number"?ue.toString():void 0},i.createElement("span",{className:"".concat(le,"-item-content")},Ae),D&&i.createElement(tt,{className:"".concat(le,"-item-remove"),onMouseDown:Ut,onClick:j,customizeIcon:oe},"\xD7"))}function ve(ue,Ae,xe,D,j){var Ce=function(De){Ut(De),W(!c)};return i.createElement("span",{onMouseDown:Ce},ae({label:Ae,value:ue,disabled:xe,closable:D,onClose:j}))}function ne(ue){var Ae=ue.disabled,xe=ue.label,D=ue.value,j=!O&&!Ae,Ce=xe;if(typeof $=="number"&&(typeof xe=="string"||typeof xe=="number")){var Re=String(Ce);Re.length>$&&(Ce="".concat(Re.slice(0,$),"..."))}var De=function(Xe){Xe&&Xe.stopPropagation(),ye(ue)};return typeof ae=="function"?ve(D,Ce,Ae,j,De):B(xe,Ce,Ae,j,De)}function ie(ue){var Ae=typeof ge=="function"?ge(ue):ge;return B(Ae,Ae,!1)}var we=i.createElement("div",{className:"".concat(le,"-search"),style:{width:Y},onFocus:function(){ut(!0)},onBlur:function(){ut(!1)}},i.createElement(Rt,{ref:S,open:c,prefixCls:l,id:u,inputElement:null,disabled:O,autoFocus:C,autoComplete:d,editable:x,activeDescendantId:M,value:G,onKeyDown:se,onMouseDown:Se,onChange:q,onPaste:ee,onCompositionStart:Ee,onCompositionEnd:te,tabIndex:re,attrs:(0,pt.Z)(t,!0)}),i.createElement("span",{ref:Oe,className:"".concat(le,"-search-mirror"),"aria-hidden":!0},G,"\xA0")),We=i.createElement(Wt.Z,{prefixCls:"".concat(le,"-overflow"),data:p,renderItem:ne,renderRest:ie,suffix:we,itemKey:Rn,maxCount:H});return i.createElement(i.Fragment,null,We,!p.length&&!G&&i.createElement("span",{className:"".concat(le,"-placeholder")},E))},Bn=Dn,Pn=function(t){var u=t.inputElement,l=t.prefixCls,p=t.id,c=t.inputRef,h=t.disabled,S=t.autoFocus,E=t.autoComplete,O=t.activeDescendantId,P=t.mode,y=t.open,C=t.values,d=t.placeholder,M=t.tabIndex,re=t.showSearch,oe=t.searchValue,H=t.activeValue,$=t.maxLength,J=t.onInputKeyDown,ge=t.onInputMouseDown,ae=t.onInputChange,W=t.onInputPaste,ye=t.onInputCompositionStart,q=t.onInputCompositionEnd,ee=i.useState(!1),se=(0,b.Z)(ee,2),Se=se[0],Ee=se[1],te=P==="combobox",Oe=te||re,U=C[0],L=oe||"";te&&H&&!Se&&(L=H),i.useEffect(function(){te&&Ee(!1)},[te,H]);var Y=P!=="combobox"&&!y&&!re?!1:!!L,fe=U&&(typeof U.label=="string"||typeof U.label=="number")?U.label.toString():void 0,de=function(){if(U)return null;var Fe=Y?{visibility:"hidden"}:void 0;return i.createElement("span",{className:"".concat(l,"-selection-placeholder"),style:Fe},d)};return i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(l,"-selection-search")},i.createElement(Rt,{ref:c,prefixCls:l,id:p,open:y,inputElement:u,disabled:h,autoFocus:S,autoComplete:E,editable:Oe,activeDescendantId:O,value:L,onKeyDown:J,onMouseDown:ge,onChange:function(Fe){Ee(!0),ae(Fe)},onPaste:W,onCompositionStart:ye,onCompositionEnd:q,tabIndex:M,attrs:(0,pt.Z)(t,!0),maxLength:te?$:void 0})),!te&&U&&!Y&&i.createElement("span",{className:"".concat(l,"-selection-item"),title:fe},U.label),de())},ln=Pn;function un(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),u=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(u.current)}},[]);function l(p){(p||t.current===null)&&(t.current=p),window.clearTimeout(u.current),u.current=window.setTimeout(function(){t.current=null},r)}return[function(){return t.current},l]}function xn(r){return![I.Z.ESC,I.Z.SHIFT,I.Z.BACKSPACE,I.Z.TAB,I.Z.WIN_KEY,I.Z.ALT,I.Z.META,I.Z.WIN_KEY_RIGHT,I.Z.CTRL,I.Z.SEMICOLON,I.Z.EQUALS,I.Z.CAPS_LOCK,I.Z.CONTEXT_MENU,I.Z.F1,I.Z.F2,I.Z.F3,I.Z.F4,I.Z.F5,I.Z.F6,I.Z.F7,I.Z.F8,I.Z.F9,I.Z.F10,I.Z.F11,I.Z.F12].includes(r)}var cn=function(t,u){var l=(0,i.useRef)(null),p=(0,i.useRef)(!1),c=t.prefixCls,h=t.open,S=t.mode,E=t.showSearch,O=t.tokenWithEnter,P=t.onSearch,y=t.onSearchSubmit,C=t.onToggleOpen,d=t.onInputKeyDown,M=t.domRef;i.useImperativeHandle(u,function(){return{focus:function(){l.current.focus()},blur:function(){l.current.blur()}}});var re=un(0),oe=(0,b.Z)(re,2),H=oe[0],$=oe[1],J=function(L){var Y=L.which;(Y===I.Z.UP||Y===I.Z.DOWN)&&L.preventDefault(),d&&d(L),Y===I.Z.ENTER&&S==="tags"&&!p.current&&!h&&(y==null||y(L.target.value)),xn(Y)&&C(!0)},ge=function(){$(!0)},ae=(0,i.useRef)(null),W=function(L){P(L,!0,p.current)!==!1&&C(!0)},ye=function(){p.current=!0},q=function(L){p.current=!1,S!=="combobox"&&W(L.target.value)},ee=function(L){var Y=L.target.value;if(O&&ae.current&&/[\r\n]/.test(ae.current)){var fe=ae.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Y=Y.replace(fe,ae.current)}ae.current=null,W(Y)},se=function(L){var Y=L.clipboardData,fe=Y.getData("text");ae.current=fe},Se=function(L){var Y=L.target;if(Y!==l.current){var fe=document.body.style.msTouchAction!==void 0;fe?setTimeout(function(){l.current.focus()}):l.current.focus()}},Ee=function(L){var Y=H();L.target!==l.current&&!Y&&L.preventDefault(),(S!=="combobox"&&(!E||!Y)||!h)&&(h&&P("",!0,!1),C())},te={inputRef:l,onInputKeyDown:J,onInputMouseDown:ge,onInputChange:ee,onInputPaste:se,onInputCompositionStart:ye,onInputCompositionEnd:q},Oe=S==="multiple"||S==="tags"?i.createElement(Bn,(0,v.Z)({},t,te)):i.createElement(ln,(0,v.Z)({},t,te));return i.createElement("div",{ref:M,className:"".concat(c,"-selector"),onClick:Se,onMouseDown:Ee},Oe)},sn=i.forwardRef(cn);sn.displayName="Selector";var Zn=sn;function Tn(r,t,u,l){var p=i.useRef(null);p.current={open:t,triggerOpen:u,customizedTrigger:l},i.useEffect(function(){function c(h){var S;if(!((S=p.current)===null||S===void 0?void 0:S.customizedTrigger)){var E=h.target;E.shadowRoot&&h.composed&&(E=h.composedPath()[0]||E),p.current.open&&r().filter(function(O){return O}).every(function(O){return!O.contains(E)&&O!==E})&&p.current.triggerOpen(!1)}}return window.addEventListener("mousedown",c),function(){return window.removeEventListener("mousedown",c)}},[])}function Xt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),u=(0,b.Z)(t,2),l=u[0],p=u[1],c=i.useRef(null),h=function(){window.clearTimeout(c.current)};i.useEffect(function(){return h},[]);var S=function(O,P){h(),c.current=window.setTimeout(function(){p(O),P&&P()},r)};return[l,S,h]}var fn=i.createContext(null);function dn(){return i.useContext(fn)}var vn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function _t(r){return r==="tags"||r==="multiple"}var Nn=i.forwardRef(function(r,t){var u,l,p=r.id,c=r.prefixCls,h=r.className,S=r.showSearch,E=r.tagRender,O=r.direction,P=r.omitDomProps,y=r.displayValues,C=r.onDisplayValuesChange,d=r.emptyOptions,M=r.notFoundContent,re=M===void 0?"Not Found":M,oe=r.onClear,H=r.mode,$=r.disabled,J=r.loading,ge=r.getInputElement,ae=r.getRawInputElement,W=r.open,ye=r.defaultOpen,q=r.onDropdownVisibleChange,ee=r.activeValue,se=r.onActiveValueChange,Se=r.activeDescendantId,Ee=r.searchValue,te=r.onSearch,Oe=r.onSearchSplit,U=r.tokenSeparators,L=r.allowClear,Y=r.showArrow,fe=r.inputIcon,de=r.clearIcon,ke=r.OptionList,Fe=r.animation,ut=r.transitionName,le=r.dropdownStyle,G=r.dropdownClassName,x=r.dropdownMatchSelectWidth,B=r.dropdownRender,ve=r.dropdownAlign,ne=r.placement,ie=r.getPopupContainer,we=r.showAction,We=we===void 0?[]:we,ue=r.onFocus,Ae=r.onBlur,xe=r.onKeyUp,D=r.onKeyDown,j=r.onMouseDown,Ce=(0,Te.Z)(r,vn),Re=_t(H),De=(S!==void 0?S:Re)||H==="combobox",Pe=(0,X.Z)({},Ce);Ln.forEach(function(K){delete Pe[K]}),P==null||P.forEach(function(K){delete Pe[K]});var Xe=i.useState(!1),nt=(0,b.Z)(Xe,2),Qe=nt[0],ct=nt[1];i.useEffect(function(){ct((0,Et.Z)())},[]);var rt=i.useRef(null),ht=i.useRef(null),st=i.useRef(null),gt=i.useRef(null),lt=i.useRef(null),Ht=Xt(),qt=(0,b.Z)(Ht,3),Bt=qt[0],en=qt[1],$t=qt[2];i.useImperativeHandle(t,function(){var K,F;return{focus:(K=gt.current)===null||K===void 0?void 0:K.focus,blur:(F=gt.current)===null||F===void 0?void 0:F.blur,scrollTo:function(qe){var He;return(He=lt.current)===null||He===void 0?void 0:He.scrollTo(qe)}}});var yt=i.useMemo(function(){var K;if(H!=="combobox")return Ee;var F=(K=y[0])===null||K===void 0?void 0:K.value;return typeof F=="string"||typeof F=="number"?String(F):""},[Ee,H,y]),tn=H==="combobox"&&typeof ge=="function"&&ge()||null,bt=typeof ae=="function"&&ae(),Wn=(0,mt.x1)(ht,bt==null||(u=bt.props)===null||u===void 0?void 0:u.ref),Cn=(0,_e.Z)(void 0,{defaultValue:ye,value:W}),nn=(0,b.Z)(Cn,2),Kt=nn[0],zt=nn[1],je=Kt,In=!re&&d;($||In&&je&&H==="combobox")&&(je=!1);var Dt=In?!1:je,ft=i.useCallback(function(K){var F=K!==void 0?K:!je;je!==F&&!$&&(zt(F),q==null||q(F))},[$,je,zt,q]),A=i.useMemo(function(){return(U||[]).some(function(K){return[` `,`\r `].includes(K)})},[U]),T=function(F,Ge,qe){var He=!0,ot=F;se==null||se(null);var vt=qe?null:$e(F,U);return H!=="combobox"&&vt&&(ot="",Oe==null||Oe(vt),ft(!1),He=!1),te&&yt!==ot&&te(ot,{source:Ge?"typing":"effect"}),He},Z=function(F){!F||!F.trim()||te(F,{source:"submit"})};i.useEffect(function(){!je&&!Re&&H!=="combobox"&&T("",!1,!1)},[je]),i.useEffect(function(){Kt&&$&&zt(!1),$&&en(!1)},[$]);var z=un(),Ie=(0,b.Z)(z,2),Ze=Ie[0],Pt=Ie[1],dt=function(F){var Ge=Ze(),qe=F.which;if(qe===I.Z.ENTER&&(H!=="combobox"&&F.preventDefault(),je||ft(!0)),Pt(!!yt),qe===I.Z.BACKSPACE&&!Ge&&Re&&!yt&&y.length){for(var He=(0,be.Z)(y),ot=null,vt=He.length-1;vt>=0;vt-=1){var rn=He[vt];if(!rn.disabled){He.splice(vt,1),ot=rn;break}}ot&&C(He,{type:"remove",values:[ot]})}for(var Zt=arguments.length,Yt=new Array(Zt>1?Zt-1:0),Tt=1;Tt1?Ge-1:0),He=1;He1?vt-1:0),Zt=1;Zt1&&arguments[1]!==void 0?arguments[1]:!1;return(0,hn.Z)(r).map(function(u,l){if(!i.isValidElement(u)||!u.type)return null;var p=u.type.isSelectOptGroup,c=u.key,h=u.props,S=h.children,E=(0,Te.Z)(h,_n);return t||!p?Vn(u):(0,X.Z)((0,X.Z)({key:"__RC_SELECT_GRP__".concat(c===null?l:c,"__"),label:c},E),{},{options:Jt(S)})}).filter(function(u){return u})}function Fn(r,t,u,l,p){return i.useMemo(function(){var c=r,h=!r;h&&(c=Jt(t));var S=new Map,E=new Map,O=function(C,d,M){M&&typeof M=="string"&&C.set(d[M],d)};function P(y){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=0;d1&&arguments[1]!==void 0?arguments[1]:1,ve=ee.length,ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1;Y(x);var ve={source:B?"keyboard":"mouse"},ne=ee[x];if(!ne){re(null,-1,ve);return}re(ne.value,x,ve)};(0,i.useEffect)(function(){fe(oe!==!1?te(0):-1)},[ee.length,O]);var de=i.useCallback(function(G){return J.has(G)&&E!=="combobox"},[E,(0,be.Z)(J).toString()]);(0,i.useEffect)(function(){var G=setTimeout(function(){if(!S&&h&&J.size===1){var B=Array.from(J)[0],ve=ee.findIndex(function(ne){var ie=ne.data;return ie.value===B});ve!==-1&&(fe(ve),Ee(ve))}});if(h){var x;(x=se.current)===null||x===void 0||x.scrollTo(void 0)}return function(){return clearTimeout(G)}},[h,O]);var ke=function(x){x!==void 0&&H(x,{selected:!J.has(x)}),S||P(!1)};if(i.useImperativeHandle(u,function(){return{onKeyDown:function(x){var B=x.which,ve=x.ctrlKey;switch(B){case I.Z.N:case I.Z.P:case I.Z.UP:case I.Z.DOWN:{var ne=0;if(B===I.Z.UP?ne=-1:B===I.Z.DOWN?ne=1:kn()&&ve&&(B===I.Z.N?ne=1:B===I.Z.P&&(ne=-1)),ne!==0){var ie=te(L+ne,ne);Ee(ie),fe(ie,!0)}break}case I.Z.ENTER:{var we=ee[L];we&&!we.data.disabled?ke(we.value):ke(void 0),h&&x.preventDefault();break}case I.Z.ESC:P(!1),h&&x.stopPropagation()}},onKeyUp:function(){},scrollTo:function(x){Ee(x)}}}),ee.length===0)return i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(q,"-empty"),onMouseDown:Se},y);var Fe=Object.keys(ge).map(function(G){return ge[G]}),ut=function(x){return x.label},le=function(x){var B=ee[x];if(!B)return null;var ve=B.data||{},ne=ve.value,ie=B.group,we=(0,pt.Z)(ve,!0),We=ut(B);return B?i.createElement("div",(0,v.Z)({"aria-label":typeof We=="string"&&!ie?We:null},we,{key:x,role:ie?"presentation":"option",id:"".concat(c,"_list_").concat(x),"aria-selected":de(ne)}),ne):null};return i.createElement(i.Fragment,null,i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},le(L-1),le(L),le(L+1)),i.createElement(Kn.Z,{itemKey:"key",ref:se,data:ee,height:W,itemHeight:ye,fullHeight:!1,onMouseDown:Se,onScroll:C,virtual:ae},function(G,x){var B,ve=G.group,ne=G.groupOption,ie=G.data,we=G.label,We=G.value,ue=ie.key;if(ve){var Ae,xe=(Ae=ie.title)!==null&&Ae!==void 0?Ae:n(we)?we.toString():void 0;return i.createElement("div",{className:Le()(q,"".concat(q,"-group")),title:xe},we!==void 0?we:ue)}var D=ie.disabled,j=ie.title,Ce=ie.children,Re=ie.style,De=ie.className,Pe=(0,Te.Z)(ie,a),Xe=(0,Hn.Z)(Pe,Fe),nt=de(We),Qe="".concat(q,"-option"),ct=Le()(q,Qe,De,(B={},(0,k.Z)(B,"".concat(Qe,"-grouped"),ne),(0,k.Z)(B,"".concat(Qe,"-active"),L===x&&!D),(0,k.Z)(B,"".concat(Qe,"-disabled"),D),(0,k.Z)(B,"".concat(Qe,"-selected"),nt),B)),rt=ut(G),ht=!$||typeof $=="function"||nt,st=typeof rt=="number"?rt:rt||We,gt=n(st)?st.toString():void 0;return j!==void 0&&(gt=j),i.createElement("div",(0,v.Z)({},(0,pt.Z)(Xe),{"aria-selected":nt,className:ct,title:gt,onMouseMove:function(){L===x||D||fe(x)},onClick:function(){D||ke(We)},style:Re}),i.createElement("div",{className:"".concat(Qe,"-content")},st),i.isValidElement($)||nt,ht&&i.createElement(tt,{className:"".concat(q,"-option-state"),customizeIcon:$,customizeIconProps:{isSelected:nt}},nt?"\u2713":null))}))},m=i.forwardRef(f);m.displayName="OptionList";var R=m;function s(r){var t=r.mode,u=r.options,l=r.children,p=r.backfill,c=r.allowClear,h=r.placeholder,S=r.getInputElement,E=r.showSearch,O=r.onSearch,P=r.defaultOpen,y=r.autoFocus,C=r.labelInValue,d=r.value,M=r.inputValue,re=r.optionLabelProp,oe=isMultiple(t),H=E!==void 0?E:oe||t==="combobox",$=u||convertChildrenToData(l);if(warning(t!=="tags"||$.every(function(W){return!W.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var J=$.some(function(W){return W.options?W.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in W?W.value:W.key)=="number"});warning(!J,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(t!=="combobox"||!re,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(t==="combobox"||!p,"`backfill` only works with `combobox` mode."),warning(t==="combobox"||!S,"`getInputElement` only work with `combobox` mode."),noteOnce(t!=="combobox"||!S||!c||!h,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),O&&!H&&t!=="combobox"&&t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!P||y,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),d!=null){var ge=toArray(d);warning(!C||ge.every(function(W){return _typeof(W)==="object"&&("key"in W||"value"in W)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!oe||Array.isArray(d),"`value` should be array when `mode` is `multiple` or `tags`")}if(l){var ae=null;toNodeArray(l).some(function(W){if(!React.isValidElement(W)||!W.type)return!1;var ye=W.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var q=toNodeArray(W.props.children).every(function(ee){return!React.isValidElement(ee)||!W.type||ee.type.isSelectOption?!0:(ae=ee.type,!1)});return!q}return ae=ye,!0}),ae&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ae.displayName||ae.name||ae,"`.")),warning(M===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function w(r,t){if(r){var u=function l(p){for(var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h2&&arguments[2]!==void 0?arguments[2]:{},z=Z.source,Ie=z===void 0?"keyboard":z;Wn(T),h&&l==="combobox"&&A!==null&&Ie==="keyboard"&&$t(String(A))},[h,l]),Kt=function(T,Z){var z=function(){var St,It=Xe(T);return[L?{label:It==null?void 0:It[le.label],value:T,key:(St=It==null?void 0:It.key)!==null&&St!==void 0?St:T}:T,Ve(It)]};if(Z&&d){var Ie=z(),Ze=(0,b.Z)(Ie,2),Pt=Ze[0],dt=Ze[1];d(Pt,dt)}else if(!Z&&M){var Je=z(),xt=(0,b.Z)(Je,2),Gt=xt[0],jn=xt[1];M(Gt,jn)}},zt=gn(function(A,T){var Z,z=ke?T.selected:!0;z?Z=ke?[].concat((0,be.Z)(Pe),[A]):[A]:Z=Pe.filter(function(Ie){return Ie.value!==A}),Ht(Z),Kt(A,z),l==="combobox"?$t(""):(!_t||C)&&(ve(""),$t(""))}),je=function(T,Z){Ht(T),(Z.type==="remove"||Z.type==="clear")&&Z.values.forEach(function(z){Kt(z.value,!1)})},In=function(T,Z){if(ve(T),$t(null),Z.source==="submit"){var z=(T||"").trim();if(z){var Ie=Array.from(new Set([].concat((0,be.Z)(Qe),[z])));Ht(Ie),Kt(z,!0),ve("")}return}Z.source!=="blur"&&(l==="combobox"&&Ht(T),P==null||P(T))},Dt=function(T){var Z=T;l!=="tags"&&(Z=T.map(function(Ie){var Ze=we.get(Ie);return Ze==null?void 0:Ze.value}).filter(function(Ie){return Ie!==void 0}));var z=Array.from(new Set([].concat((0,be.Z)(Qe),(0,be.Z)(Z))));Ht(z),z.forEach(function(Ie){Kt(Ie,!0)})},ft=i.useMemo(function(){var A=ee!==!1&&oe!==!1;return(0,X.Z)((0,X.Z)({},ne),{},{flattenOptions:lt,onActiveValue:nn,defaultActiveFirstOption:Cn,onSelect:zt,menuItemSelectedIcon:q,rawValues:Qe,fieldNames:le,virtual:A,listHeight:Se,listItemHeight:te,childrenAsData:Fe})},[ne,lt,nn,Cn,zt,q,Qe,le,ee,oe,Se,te,Fe]);return i.createElement(o.Provider,{value:ft},i.createElement(mn,(0,v.Z)({},fe,{id:de,prefixCls:c,ref:t,omitDomProps:_,mode:l,displayValues:nt,onDisplayValuesChange:je,searchValue:B,onSearch:In,onSearchSplit:Dt,dropdownMatchSelectWidth:oe,OptionList:R,emptyOptions:!lt.length,activeValue:en,activeDescendantId:"".concat(de,"_list_").concat(bt)})))}),he=me;he.Option=En,he.OptGroup=bn;var ze=he,Ye=ze},64217:function(kt,et,g){"use strict";g.d(et,{Z:function(){return _e}});var v=g(28991),be=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,k=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,X="".concat(be," ").concat(k).split(/[\s\n]+/),b="aria-",Te="data-";function Me(pe,i){return pe.indexOf(i)===0}function _e(pe){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke;i===!1?Ke={aria:!0,data:!0,attr:!0}:i===!0?Ke={aria:!0}:Ke=(0,v.Z)({},i);var Le={};return Object.keys(pe).forEach(function(I){(Ke.aria&&(I==="role"||Me(I,b))||Ke.data&&Me(I,Te)||Ke.attr&&X.includes(I))&&(Le[I]=pe[I])}),Le}},7606:function(kt,et,g){"use strict";g.d(et,{Z:function(){return kn}});var v=g(67294),be=g(94184),k=g.n(be),X=g(48717);function b(e,o){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),a.push.apply(a,n)}return a}function Te(e){for(var o=1;ow},n}return mt(a,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(f){f.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var f=this.state,m=f.dragging,R=f.visible,s=this.props.prefixCls,w=this.getSpinHeight(),N=this.getTop(),V=this.showScroll(),_=V&&R;return v.createElement("div",{ref:this.scrollbarRef,className:k()("".concat(s,"-scrollbar"),Le({},"".concat(s,"-scrollbar-show"),V)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:_?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},v.createElement("div",{ref:this.thumbRef,className:k()("".concat(s,"-scrollbar-thumb"),Le({},"".concat(s,"-scrollbar-thumb-moving"),m)),style:{width:"100%",height:w,top:N,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),a}(v.Component);function Nt(e){var o=e.children,a=e.setRef,n=v.useCallback(function(f){a(f)},[]);return v.cloneElement(o,{ref:n})}function it(e,o,a,n,f,m){var R=m.getKey;return e.slice(o,a+1).map(function(s,w){var N=o+w,V=f(s,N,{}),_=R(s);return v.createElement(Nt,{key:_,setRef:function(me){return n(s,me)}},V)})}var At=g(34203);function pt(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function Wt(e,o){for(var a=0;ae.length)&&(o=e.length);for(var a=0,n=new Array(o);aM&&(l="bottom")}}C!==null&&C!==e.current.scrollTop&&R(C)}w.current=(0,i.Z)(function(){u&&m(),ze(Ye-1,l)})}};he(3)}}}function Bn(e,o,a,n){var f=a-e,m=o-a,R=Math.min(f,m)*2;if(n<=R){var s=Math.floor(n/2);return n%2?a+s+1:a-s}return f>m?a-(n-m):a+(n-f)}function Pn(e,o,a){var n=e.length,f=o.length,m,R;if(n===0&&f===0)return null;ne.length)&&(o=e.length);for(var a=0,n=new Array(o);a1&&arguments[1]!==void 0?arguments[1]:!1,w=R<0&&m.current.top||R>0&&m.current.bottom;return s&&w?(clearTimeout(n.current),a.current=!1):(!w||a.current)&&f(),!a.current&&w}};function Ln(e,o,a,n){var f=(0,v.useRef)(0),m=(0,v.useRef)(null),R=(0,v.useRef)(null),s=(0,v.useRef)(!1),w=vn(o,a);function N(_){if(!!e){i.Z.cancel(m.current);var ce=_.deltaY;f.current+=ce,R.current=ce,!w(ce)&&(dn||_.preventDefault(),m.current=(0,i.Z)(function(){var me=s.current?10:1;n(f.current*me),f.current=0}))}}function V(_){!e||(s.current=_.detail===R.current)}return[N,V]}var _t=g(8410),Nn=14/15;function mn(e,o,a){var n=(0,v.useRef)(!1),f=(0,v.useRef)(0),m=(0,v.useRef)(null),R=(0,v.useRef)(null),s,w=function(ce){if(n.current){var me=Math.ceil(ce.touches[0].pageY),he=f.current-me;f.current=me,a(he)&&ce.preventDefault(),clearInterval(R.current),R.current=setInterval(function(){he*=Nn,(!a(he,!0)||Math.abs(he)<=.1)&&clearInterval(R.current)},16)}},N=function(){n.current=!1,s()},V=function(ce){s(),ce.touches.length===1&&!n.current&&(n.current=!0,f.current=Math.ceil(ce.touches[0].pageY),m.current=ce.target,m.current.addEventListener("touchmove",w),m.current.addEventListener("touchend",N))};s=function(){m.current&&(m.current.removeEventListener("touchmove",w),m.current.removeEventListener("touchend",N))},(0,_t.Z)(function(){return e&&o.current.addEventListener("touchstart",V),function(){var _;(_=o.current)===null||_===void 0||_.removeEventListener("touchstart",V),s(),clearInterval(R.current)}},[e])}var An=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Vt(){return Vt=Object.assign||function(e){for(var o=1;oe.length)&&(o=e.length);for(var a=0,n=new Array(o);a=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(a[n]=e[n]))}return a}function bn(e,o){if(e==null)return{};var a={},n=Object.keys(e),f,m;for(m=0;m=0)&&(a[f]=e[f]);return a}var Sn=[],En={overflowY:"auto",overflowAnchor:"none"};function Hn(e,o){var a=e.prefixCls,n=a===void 0?"rc-virtual-list":a,f=e.className,m=e.height,R=e.itemHeight,s=e.fullHeight,w=s===void 0?!0:s,N=e.style,V=e.data,_=e.children,ce=e.itemKey,me=e.virtual,he=e.component,ze=he===void 0?"div":he,Ye=e.onScroll,r=e.onVisibleChange,t=yn(e,An),u=!!(me!==!1&&m&&R),l=u&&V&&R*V.length>m,p=(0,v.useState)(0),c=Ft(p,2),h=c[0],S=c[1],E=(0,v.useState)(!1),O=Ft(E,2),P=O[0],y=O[1],C=k()(n,f),d=V||Sn,M=(0,v.useRef)(),re=(0,v.useRef)(),oe=(0,v.useRef)(),H=v.useCallback(function(D){return typeof ce=="function"?ce(D):D==null?void 0:D[ce]},[ce]),$={getKey:H};function J(D){S(function(j){var Ce;typeof D=="function"?Ce=D(j):Ce=D;var Re=ut(Ce);return M.current.scrollTop=Re,Re})}var ge=(0,v.useRef)({start:0,end:d.length}),ae=(0,v.useRef)(),W=Tn(d,H),ye=Ft(W,1),q=ye[0];ae.current=q;var ee=Rn(H,null,null),se=Ft(ee,4),Se=se[0],Ee=se[1],te=se[2],Oe=se[3],U=v.useMemo(function(){if(!u)return{scrollHeight:void 0,start:0,end:d.length-1,offset:void 0};if(!l){var D;return{scrollHeight:((D=re.current)===null||D===void 0?void 0:D.offsetHeight)||0,start:0,end:d.length-1,offset:void 0}}for(var j=0,Ce,Re,De,Pe=d.length,Xe=0;Xe=h&&Ce===void 0&&(Ce=Xe,Re=j),rt>h+m&&De===void 0&&(De=Xe),j=rt}return Ce===void 0&&(Ce=0,Re=0),De===void 0&&(De=d.length-1),De=Math.min(De+1,d.length),{scrollHeight:j,start:Ce,end:De,offset:Re}},[l,u,h,d,Oe,m]),L=U.scrollHeight,Y=U.start,fe=U.end,de=U.offset;ge.current.start=Y,ge.current.end=fe;var ke=L-m,Fe=(0,v.useRef)(ke);Fe.current=ke;function ut(D){var j=D;return Number.isNaN(Fe.current)||(j=Math.min(j,Fe.current)),j=Math.max(j,0),j}var le=h<=0,G=h>=ke,x=vn(le,G);function B(D){var j=D;J(j)}function ve(D){var j=D.currentTarget.scrollTop;j!==h&&J(j),Ye==null||Ye(D)}var ne=Ln(u,le,G,function(D){J(function(j){var Ce=j+D;return Ce})}),ie=Ft(ne,2),we=ie[0],We=ie[1];mn(u,M,function(D,j){return x(D,j)?!1:(we({preventDefault:function(){},deltaY:D}),!0)}),(0,_t.Z)(function(){function D(j){u&&j.preventDefault()}return M.current.addEventListener("wheel",we),M.current.addEventListener("DOMMouseScroll",We),M.current.addEventListener("MozMousePixelScroll",D),function(){M.current&&(M.current.removeEventListener("wheel",we),M.current.removeEventListener("DOMMouseScroll",We),M.current.removeEventListener("MozMousePixelScroll",D))}},[u]);var ue=Dn(M,d,te,R,H,Ee,J,function(){var D;(D=oe.current)===null||D===void 0||D.delayHidden()});v.useImperativeHandle(o,function(){return{scrollTo:ue}}),(0,_t.Z)(function(){if(r){var D=d.slice(Y,fe+1);r(D,d)}},[Y,fe,d]);var Ae=it(d,Y,fe,Se,_,$),xe=null;return m&&(xe=Qt(hn({},w?"height":"maxHeight",m),En),u&&(xe.overflowY="hidden",P&&(xe.pointerEvents="none"))),v.createElement("div",Vt({style:Qt(Qt({},N),{},{position:"relative"}),className:C},t),v.createElement(ze,{className:"".concat(n,"-holder"),style:xe,ref:M,onScroll:ve},v.createElement(pe,{prefixCls:n,height:L,offset:de,onInnerResize:Ee,ref:re},Ae)),u&&v.createElement(Ct,{ref:oe,prefixCls:n,scrollTop:h,height:m,scrollHeight:L,count:d.length,onScroll:B,onStartMove:function(){y(!0)},onStopMove:function(){y(!1)}}))}var wn=v.forwardRef(Hn);wn.displayName="List";var Kn=wn,kn=Kn}}]);