|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2339],{88258:function(_t,Ye,h){"use strict";var d=h(67294),se=h(53124),V=h(14277),U=function(Ze){return d.createElement(se.C,null,function(we){var Ae=we.getPrefixCls,he=Ae("empty");switch(Ze){case"Table":case"List":return d.createElement(V.Z,{image:V.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return d.createElement(V.Z,{image:V.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(he,"-small")});default:return d.createElement(V.Z,null)}})};Ye.Z=U},14277:function(_t,Ye,h){"use strict";h.d(Ye,{Z:function(){return Vt}});var d=h(96156),se=h(22122),V=h(94184),U=h.n(V),S=h(67294),Ze=h(53124),we=h(42051),Ae=function(){var Le=S.useContext(Ze.E_),Be=Le.getPrefixCls,te=Be("empty-img-default");return S.createElement("svg",{className:te,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(24 31.67)"},S.createElement("ellipse",{className:"".concat(te,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),S.createElement("path",{className:"".concat(te,"-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"}),S.createElement("path",{className:"".concat(te,"-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)"}),S.createElement("path",{className:"".concat(te,"-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"}),S.createElement("path",{className:"".concat(te,"-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"})),S.createElement("path",{className:"".concat(te,"-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"}),S.createElement("g",{className:"".concat(te,"-g"),transform:"translate(149.65 15.383)"},S.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),S.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=Ae,i=function(){var Le=S.useContext(Ze.E_),Be=Le.getPrefixCls,te=Be("empty-img-simple");return S.createElement("svg",{className:te,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},S.createElement("ellipse",{className:"".concat(te,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),S.createElement("g",{className:"".concat(te,"-g"),fillRule:"nonzero"},S.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"}),S.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(te,"-path")}))))},Fe=i,Te=function(ke,Le){var Be={};for(var te in ke)Object.prototype.hasOwnProperty.call(ke,te)&&Le.indexOf(te)<0&&(Be[te]=ke[te]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,te=Object.getOwnPropertySymbols(ke);_e<te.length;_e++)Le.indexOf(te[_e])<0&&Object.prototype.propertyIsEnumerable.call(ke,te[_e])&&(Be[te[_e]]=ke[te[_e]]);return Be},M=S.createElement(he,null),Et=S.createElement(Fe,null),mt=function(Le){var Be=Le.className,te=Le.prefixCls,_e=Le.image,$e=_e===void 0?M:_e,wt=Le.description,ot=Le.children,Ct=Le.imageStyle,Ft=Te(Le,["className","prefixCls","image","description","children","imageStyle"]),at=S.useContext(Ze.E_),Ht=at.getPrefixCls,pt=at.direction;return S.createElement(we.Z,{componentName:"Empty"},function(Ut){var Dt,et=Ht("empty",te),Pt=typeof wt!="undefined"?wt:Ut.description,Bt=typeof Pt=="string"?Pt:"empty",xt=null;return typeof $e=="string"?xt=S.createElement("img",{alt:Bt,src:$e}):xt=$e,S.createElement("div",(0,se.Z)({className:U()(et,(Dt={},(0,d.Z)(Dt,"".concat(et,"-normal"),$e===Et),(0,d.Z)(Dt,"".concat(et,"-rtl"),pt==="rtl"),Dt),Be)},Ft),S.createElement("div",{className:"".concat(et,"-image"),style:Ct},xt),Pt&&S.createElement("div",{className:"".concat(et,"-description")},Pt),ot&&S.createElement("div",{className:"".concat(et,"-footer")},ot))})};mt.PRESENTED_IMAGE_DEFAULT=M,mt.PRESENTED_IMAGE_SIMPLE=Et;var Vt=mt},46163:function(_t,Ye,h){"use strict";h.d(Ye,{Z:function(){return Ae}});var d=h(79508),se=h(43061),V=h(54549),U=h(57254),S=h(7085),Ze=h(76570),we=h(67294);function Ae(he){var i=he.suffixIcon,Fe=he.clearIcon,Te=he.menuItemSelectedIcon,M=he.removeIcon,Et=he.loading,mt=he.multiple,Vt=he.hasFeedback,ke=he.prefixCls,Le=he.showArrow,Be=he.feedbackIcon,te=Fe;Fe||(te=we.createElement(se.Z,null));var _e=function(at){return we.createElement(we.Fragment,null,Le!==!1&&at,Vt&&Be)},$e=null;if(i!==void 0)$e=_e(i);else if(Et)$e=_e(we.createElement(S.Z,{spin:!0}));else{var wt="".concat(ke,"-suffix");$e=function(at){var Ht=at.open,pt=at.showSearch;return _e(Ht&&pt?we.createElement(Ze.Z,{className:wt}):we.createElement(U.Z,{className:wt}))}}var ot=null;Te!==void 0?ot=Te:mt?ot=we.createElement(d.Z,null):ot=null;var Ct=null;return M!==void 0?Ct=M:Ct=we.createElement(V.Z,null),{clearIcon:te,suffixIcon:$e,itemIcon:ot,removeIcon:Ct}}},97435:function(_t,Ye){"use strict";function h(d,se){for(var V=Object.assign({},d),U=0;U<se.length;U+=1){var S=se[U];delete V[S]}return V}Ye.Z=h},88708:function(_t,Ye,h){"use strict";h.d(Ye,{ZP:function(){return we}});var d=h(28481),se=h(67294),V=h(98924),U=0,S=(0,V.Z)();function Ze(){var Ae;return S?(Ae=U,U+=1):Ae="TEST_OR_SSR",Ae}function we(Ae){var he=se.useState(),i=(0,d.Z)(he,2),Fe=i[0],Te=i[1];return se.useEffect(function(){Te("rc_select_".concat(Ze()))},[]),Ae||Fe}},74484:function(_t,Ye,h){"use strict";h.d(Ye,{Ac:function(){return nn},Xo:function(){return In},Wx:function(){return Mn},ZP:function(){return Je},lk:function(){return Gt}});var d=h(22122),se=h(85061),V=h(96156),U=h(28991),S=h(28481),Ze=h(81253),we=h(90484),Ae=h(21770),he=h(80334),i=h(67294),Fe=h(94184),Te=h.n(Fe),M=h(15105),Et=h(31131),mt=h(42550),Vt=h(8410),ke=h(99809);function Le(n,t){var u=n.key,l;return"value"in n&&(l=n.value),u!=null?u:l!==void 0?l:"rc-index-key-".concat(t)}function Be(n,t){var u=n||{},l=u.label,v=u.value,c=u.options;return{label:l||(t?"children":"label"),value:v||"value",options:c||"options"}}function te(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=t.fieldNames,l=t.childrenAsData,v=[],c=Be(u,!1),y=c.label,I=c.value,E=c.options;function R(g,m){g.forEach(function(D){var C=D[y];if(m||!(E in D)){var Z=D[I];v.push({key:Le(D,v.length),groupOption:m,data:D,label:C,value:Z})}else{var oe=C;oe===void 0&&l&&(oe=D.label),v.push({key:Le(D,v.length),group:!0,data:D,label:oe}),R(D[E],!0)}})}return R(n,!1),v}function _e(n){var t=(0,U.Z)({},n);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,he.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function $e(n,t){if(!t||!t.length)return null;var u=!1;function l(c,y){var I=(0,ke.Z)(y),E=I[0],R=I.slice(1);if(!E)return[c];var g=c.split(E);return u=u||g.length>1,g.reduce(function(m,D){return[].concat((0,se.Z)(m),(0,se.Z)(l(D,R)))},[]).filter(function(m){return m})}var v=l(n,t);return u?v:null}var wt=h(18481),ot=["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}}}},Ft=function(t,u){var l=t.prefixCls,v=t.disabled,c=t.visible,y=t.children,I=t.popupElement,E=t.containerWidth,R=t.animation,g=t.transitionName,m=t.dropdownStyle,D=t.dropdownClassName,C=t.direction,Z=C===void 0?"ltr":C,oe=t.placement,X=t.dropdownMatchSelectWidth,B=t.dropdownRender,$=t.dropdownAlign,ie=t.getPopupContainer,Se=t.empty,re=t.getTriggerDOMNode,j=t.onPopupVisibleChange,ue=t.onPopupMouseEnter,ne=(0,Ze.Z)(t,ot),Q="".concat(l,"-dropdown"),ge=I;B&&(ge=B(I));var Ee=i.useMemo(function(){return Ct(X)},[X]),ye=R?"".concat(Q,"-").concat(R):g,J=i.useRef(null);i.useImperativeHandle(u,function(){return{getPopupElement:function(){return J.current}}});var be=(0,U.Z)({minWidth:E},m);return typeof X=="number"?be.width=X:X&&(be.width=E),i.createElement(wt.Z,(0,d.Z)({},ne,{showAction:j?["click"]:[],hideAction:j?["click"]:[],popupPlacement:oe||(Z==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ee,prefixCls:Q,popupTransitionName:ye,popup:i.createElement("div",{ref:J,onMouseEnter:ue},ge),popupAlign:$,popupVisible:c,getPopupContainer:ie,popupClassName:Te()(D,(0,V.Z)({},"".concat(Q,"-empty"),Se)),popupStyle:be,getTriggerDOMNode:re,onPopupVisibleChange:j}),y)},at=i.forwardRef(Ft);at.displayName="SelectTrigger";var Ht=at,pt=h(64217),Ut=h(19214),Dt=function(t){var u=t.className,l=t.customizeIcon,v=t.customizeIconProps,c=t.onMouseDown,y=t.onClick,I=t.children,E;return typeof l=="function"?E=l(v):E=l,i.createElement("span",{className:u,onMouseDown:function(g){g.preventDefault(),c&&c(g)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:y,"aria-hidden":!0},E!==void 0?E:i.createElement("span",{className:Te()(u.split(/\s+/).map(function(R){return"".concat(R,"-icon")}))},I))},et=Dt,Pt=function(t,u){var l,v,c=t.prefixCls,y=t.id,I=t.inputElement,E=t.disabled,R=t.tabIndex,g=t.autoFocus,m=t.autoComplete,D=t.editable,C=t.activeDescendantId,Z=t.value,oe=t.maxLength,X=t.onKeyDown,B=t.onMouseDown,$=t.onChange,ie=t.onPaste,Se=t.onCompositionStart,re=t.onCompositionEnd,j=t.open,ue=t.attrs,ne=I||i.createElement("input",null),Q=ne,ge=Q.ref,Ee=Q.props,ye=Ee.onKeyDown,J=Ee.onChange,be=Ee.onMouseDown,G=Ee.onCompositionStart,N=Ee.onCompositionEnd,q=Ee.style;return(0,he.Kp)(!("maxLength"in ne.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ne=i.cloneElement(ne,(0,U.Z)((0,U.Z)((0,U.Z)({type:"search"},Ee),{},{id:y,ref:(0,mt.sQ)(u,ge),disabled:E,tabIndex:R,autoComplete:m||"off",autoFocus:g,className:Te()("".concat(c,"-selection-search-input"),(l=ne)===null||l===void 0||(v=l.props)===null||v===void 0?void 0:v.className),role:"combobox","aria-expanded":j,"aria-haspopup":"listbox","aria-owns":"".concat(y,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(y,"_list"),"aria-activedescendant":C},ue),{},{value:D?Z:"",maxLength:oe,readOnly:!D,unselectable:D?null:"on",style:(0,U.Z)((0,U.Z)({},q),{},{opacity:D?null:0}),onKeyDown:function(fe){X(fe),ye&&ye(fe)},onMouseDown:function(fe){B(fe),be&&be(fe)},onChange:function(fe){$(fe),J&&J(fe)},onCompositionStart:function(fe){Se(fe),G&&G(fe)},onCompositionEnd:function(fe){re(fe),N&&N(fe)},onPaste:ie})),ne},Bt=i.forwardRef(Pt);Bt.displayName="Input";var xt=Bt;function fn(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var dn=typeof window!="undefined"&&window.document&&window.document.documentElement,Pn=dn;function xn(n){return n!=null}function vn(n){return["string","number"].includes((0,we.Z)(n))}function $t(n){var t=void 0;return n&&(vn(n.title)?t=n.title.toString():vn(n.label)&&(t=n.label.toString())),t}function Zn(n,t){Pn?i.useLayoutEffect(n,t):i.useEffect(n,t)}function Gn(n){var t;return(t=n.key)!==null&&t!==void 0?t:n.value}var mn=function(t){t.preventDefault(),t.stopPropagation()},pn=function(t){var u=t.id,l=t.prefixCls,v=t.values,c=t.open,y=t.searchValue,I=t.inputRef,E=t.placeholder,R=t.disabled,g=t.mode,m=t.showSearch,D=t.autoFocus,C=t.autoComplete,Z=t.activeDescendantId,oe=t.tabIndex,X=t.removeIcon,B=t.maxTagCount,$=t.maxTagTextLength,ie=t.maxTagPlaceholder,Se=ie===void 0?function(b){return"+ ".concat(b.length," ...")}:ie,re=t.tagRender,j=t.onToggleOpen,ue=t.onRemove,ne=t.onInputChange,Q=t.onInputPaste,ge=t.onInputKeyDown,Ee=t.onInputMouseDown,ye=t.onInputCompositionStart,J=t.onInputCompositionEnd,be=i.useRef(null),G=(0,i.useState)(0),N=(0,S.Z)(G,2),q=N[0],pe=N[1],fe=(0,i.useState)(!1),je=(0,S.Z)(fe,2),He=je[0],ct=je[1],de="".concat(l,"-selection"),Y=c||g==="tags"?y:"",P=g==="tags"||m&&(c||He);Zn(function(){pe(be.current.scrollWidth)},[Y]);function W(b,A,ce,Ie,Oe){return i.createElement("span",{className:Te()("".concat(de,"-item"),(0,V.Z)({},"".concat(de,"-item-disabled"),ce)),title:$t(b)},i.createElement("span",{className:"".concat(de,"-item-content")},A),Ie&&i.createElement(et,{className:"".concat(de,"-item-remove"),onMouseDown:mn,onClick:Oe,customizeIcon:X},"\xD7"))}function le(b,A,ce,Ie,Oe){var tt=function(Ue){mn(Ue),j(!c)};return i.createElement("span",{onMouseDown:tt},re({label:A,value:b,disabled:ce,closable:Ie,onClose:Oe}))}function ee(b){var A=b.disabled,ce=b.label,Ie=b.value,Oe=!R&&!A,tt=ce;if(typeof $=="number"&&(typeof ce=="string"||typeof ce=="number")){var Pe=String(tt);Pe.length>$&&(tt="".concat(Pe.slice(0,$),"..."))}var Ue=function(it){it&&it.stopPropagation(),ue(b)};return typeof re=="function"?le(Ie,tt,A,Oe,Ue):W(b,tt,A,Oe,Ue)}function ae(b){var A=typeof Se=="function"?Se(b):Se;return W({title:A},A,!1)}var De=i.createElement("div",{className:"".concat(de,"-search"),style:{width:q},onFocus:function(){ct(!0)},onBlur:function(){ct(!1)}},i.createElement(xt,{ref:I,open:c,prefixCls:l,id:u,inputElement:null,disabled:R,autoFocus:D,autoComplete:C,editable:P,activeDescendantId:Z,value:Y,onKeyDown:ge,onMouseDown:Ee,onChange:ne,onPaste:Q,onCompositionStart:ye,onCompositionEnd:J,tabIndex:oe,attrs:(0,pt.Z)(t,!0)}),i.createElement("span",{ref:be,className:"".concat(de,"-search-mirror"),"aria-hidden":!0},Y,"\xA0")),Ne=i.createElement(Ut.Z,{prefixCls:"".concat(de,"-overflow"),data:v,renderItem:ee,renderRest:ae,suffix:De,itemKey:Gn,maxCount:B});return i.createElement(i.Fragment,null,Ne,!v.length&&!Y&&i.createElement("span",{className:"".concat(de,"-placeholder")},E))},Tn=pn,Ln=function(t){var u=t.inputElement,l=t.prefixCls,v=t.id,c=t.inputRef,y=t.disabled,I=t.autoFocus,E=t.autoComplete,R=t.activeDescendantId,g=t.mode,m=t.open,D=t.values,C=t.placeholder,Z=t.tabIndex,oe=t.showSearch,X=t.searchValue,B=t.activeValue,$=t.maxLength,ie=t.onInputKeyDown,Se=t.onInputMouseDown,re=t.onInputChange,j=t.onInputPaste,ue=t.onInputCompositionStart,ne=t.onInputCompositionEnd,Q=i.useState(!1),ge=(0,S.Z)(Q,2),Ee=ge[0],ye=ge[1],J=g==="combobox",be=J||oe,G=D[0],N=X||"";J&&B&&!Ee&&(N=B),i.useEffect(function(){J&&ye(!1)},[J,B]);var q=g!=="combobox"&&!m&&!oe?!1:!!N,pe=$t(G),fe=function(){if(G)return null;var He=q?{visibility:"hidden"}:void 0;return i.createElement("span",{className:"".concat(l,"-selection-placeholder"),style:He},C)};return i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(l,"-selection-search")},i.createElement(xt,{ref:c,prefixCls:l,id:v,open:m,inputElement:u,disabled:y,autoFocus:I,autoComplete:E,editable:be,activeDescendantId:R,value:N,onKeyDown:ie,onMouseDown:Se,onChange:function(He){ye(!0),re(He)},onPaste:j,onCompositionStart:ue,onCompositionEnd:ne,tabIndex:Z,attrs:(0,pt.Z)(t,!0),maxLength:J?$:void 0})),!J&&G&&!q&&i.createElement("span",{className:"".concat(l,"-selection-item"),title:pe},G.label),fe())},hn=Ln;function gn(){var n=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(v){(v||t.current===null)&&(t.current=v),window.clearTimeout(u.current),u.current=window.setTimeout(function(){t.current=null},n)}return[function(){return t.current},l]}function Nn(n){return![M.Z.ESC,M.Z.SHIFT,M.Z.BACKSPACE,M.Z.TAB,M.Z.WIN_KEY,M.Z.ALT,M.Z.META,M.Z.WIN_KEY_RIGHT,M.Z.CTRL,M.Z.SEMICOLON,M.Z.EQUALS,M.Z.CAPS_LOCK,M.Z.CONTEXT_MENU,M.Z.F1,M.Z.F2,M.Z.F3,M.Z.F4,M.Z.F5,M.Z.F6,M.Z.F7,M.Z.F8,M.Z.F9,M.Z.F10,M.Z.F11,M.Z.F12].includes(n)}var An=function(t,u){var l=(0,i.useRef)(null),v=(0,i.useRef)(!1),c=t.prefixCls,y=t.open,I=t.mode,E=t.showSearch,R=t.tokenWithEnter,g=t.onSearch,m=t.onSearchSubmit,D=t.onToggleOpen,C=t.onInputKeyDown,Z=t.domRef;i.useImperativeHandle(u,function(){return{focus:function(){l.current.focus()},blur:function(){l.current.blur()}}});var oe=gn(0),X=(0,S.Z)(oe,2),B=X[0],$=X[1],ie=function(N){var q=N.which;(q===M.Z.UP||q===M.Z.DOWN)&&N.preventDefault(),C&&C(N),q===M.Z.ENTER&&I==="tags"&&!v.current&&!y&&(m==null||m(N.target.value)),Nn(q)&&D(!0)},Se=function(){$(!0)},re=(0,i.useRef)(null),j=function(N){g(N,!0,v.current)!==!1&&D(!0)},ue=function(){v.current=!0},ne=function(N){v.current=!1,I!=="combobox"&&j(N.target.value)},Q=function(N){var q=N.target.value;if(R&&re.current&&/[\r\n]/.test(re.current)){var pe=re.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");q=q.replace(pe,re.current)}re.current=null,j(q)},ge=function(N){var q=N.clipboardData,pe=q.getData("text");re.current=pe},Ee=function(N){var q=N.target;if(q!==l.current){var pe=document.body.style.msTouchAction!==void 0;pe?setTimeout(function(){l.current.focus()}):l.current.focus()}},ye=function(N){var q=B();N.target!==l.current&&!q&&I!=="combobox"&&N.preventDefault(),(I!=="combobox"&&(!E||!q)||!y)&&(y&&g("",!0,!1),D())},J={inputRef:l,onInputKeyDown:ie,onInputMouseDown:Se,onInputChange:Q,onInputPaste:ge,onInputCompositionStart:ue,onInputCompositionEnd:ne},be=I==="multiple"||I==="tags"?i.createElement(Tn,(0,d.Z)({},t,J)):i.createElement(hn,(0,d.Z)({},t,J));return i.createElement("div",{ref:Z,className:"".concat(c,"-selector"),onClick:Ee,onMouseDown:ye},be)},zt=i.forwardRef(An);zt.displayName="Selector";var _n=zt;function Vn(n,t,u,l){var v=i.useRef(null);v.current={open:t,triggerOpen:u,customizedTrigger:l},i.useEffect(function(){function c(y){var I;if(!((I=v.current)===null||I===void 0?void 0:I.customizedTrigger)){var E=y.target;E.shadowRoot&&y.composed&&(E=y.composedPath()[0]||E),v.current.open&&n().filter(function(R){return R}).every(function(R){return!R.contains(E)&&R!==E})&&v.current.triggerOpen(!1)}}return window.addEventListener("mousedown",c),function(){return window.removeEventListener("mousedown",c)}},[])}function yn(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),u=(0,S.Z)(t,2),l=u[0],v=u[1],c=i.useRef(null),y=function(){window.clearTimeout(c.current)};i.useEffect(function(){return y},[]);var I=function(R,g){y(),c.current=window.setTimeout(function(){v(R),g&&g()},n)};return[l,I,y]}var bn=i.createContext(null);function Gt(){return i.useContext(bn)}var Fn=["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"],Hn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function en(n){return n==="tags"||n==="multiple"}var tn=i.forwardRef(function(n,t){var u,l,v=n.id,c=n.prefixCls,y=n.className,I=n.showSearch,E=n.tagRender,R=n.direction,g=n.omitDomProps,m=n.displayValues,D=n.onDisplayValuesChange,C=n.emptyOptions,Z=n.notFoundContent,oe=Z===void 0?"Not Found":Z,X=n.onClear,B=n.mode,$=n.disabled,ie=n.loading,Se=n.getInputElement,re=n.getRawInputElement,j=n.open,ue=n.defaultOpen,ne=n.onDropdownVisibleChange,Q=n.activeValue,ge=n.onActiveValueChange,Ee=n.activeDescendantId,ye=n.searchValue,J=n.onSearch,be=n.onSearchSplit,G=n.tokenSeparators,N=n.allowClear,q=n.showArrow,pe=n.inputIcon,fe=n.clearIcon,je=n.OptionList,He=n.animation,ct=n.transitionName,de=n.dropdownStyle,Y=n.dropdownClassName,P=n.dropdownMatchSelectWidth,W=n.dropdownRender,le=n.dropdownAlign,ee=n.placement,ae=n.getPopupContainer,De=n.showAction,Ne=De===void 0?[]:De,b=n.onFocus,A=n.onBlur,ce=n.onKeyUp,Ie=n.onKeyDown,Oe=n.onMouseDown,tt=(0,Ze.Z)(n,Fn),Pe=en(B),Ue=(I!==void 0?I:Pe)||B==="combobox",Re=(0,U.Z)({},tt);Hn.forEach(function(k){delete Re[k]}),g==null||g.forEach(function(k){delete Re[k]});var it=i.useState(!1),Qe=(0,S.Z)(it,2),nt=Qe[0],Zt=Qe[1];i.useEffect(function(){Zt((0,Et.Z)())},[]);var Mt=i.useRef(null),ht=i.useRef(null),st=i.useRef(null),gt=i.useRef(null),lt=i.useRef(null),kt=yn(),an=(0,S.Z)(kt,3),Xt=an[0],ln=an[1],Qt=an[2];i.useImperativeHandle(t,function(){var k,H;return{focus:(k=gt.current)===null||k===void 0?void 0:k.focus,blur:(H=gt.current)===null||H===void 0?void 0:H.blur,scrollTo:function(qe){var Ve;return(Ve=lt.current)===null||Ve===void 0?void 0:Ve.scrollTo(qe)}}});var ft=i.useMemo(function(){var k;if(B!=="combobox")return ye;var H=(k=m[0])===null||k===void 0?void 0:k.value;return typeof H=="string"||typeof H=="number"?String(H):""},[ye,B,m]),un=B==="combobox"&&typeof Se=="function"&&Se()||null,yt=typeof re=="function"&&re(),$n=(0,mt.x1)(ht,yt==null||(u=yt.props)===null||u===void 0?void 0:u.ref),On=(0,Ae.Z)(void 0,{defaultValue:ue,value:j}),cn=(0,S.Z)(On,2),jt=cn[0],Jt=cn[1],Ke=jt,Rn=!oe&&C;($||Rn&&Ke&&B==="combobox")&&(Ke=!1);var Tt=Rn?!1:Ke,dt=i.useCallback(function(k){var H=k!==void 0?k:!Ke;Ke!==H&&!$&&(Jt(H),ne==null||ne(H))},[$,Ke,Jt,ne]),_=i.useMemo(function(){return(G||[]).some(function(k){return[`
- `,`\r
- `].includes(k)})},[G]),T=function(H,Ge,qe){var Ve=!0,rt=H;ge==null||ge(null);var vt=qe?null:$e(H,G);return B!=="combobox"&&vt&&(rt="",be==null||be(vt),dt(!1),Ve=!1),J&&ft!==rt&&J(rt,{source:Ge?"typing":"effect"}),Ve},x=function(H){!H||!H.trim()||J(H,{source:"submit"})};i.useEffect(function(){!Ke&&!Pe&&B!=="combobox"&&T("",!1,!1)},[Ke]),i.useEffect(function(){jt&&$&&Jt(!1),$&&ln(!1)},[$]);var z=gn(),Me=(0,S.Z)(z,2),xe=Me[0],Lt=Me[1],bt=function(H){var Ge=xe(),qe=H.which;if(qe===M.Z.ENTER&&(B!=="combobox"&&H.preventDefault(),Ke||dt(!0)),Lt(!!ft),qe===M.Z.BACKSPACE&&!Ge&&Pe&&!ft&&m.length){for(var Ve=(0,se.Z)(m),rt=null,vt=Ve.length-1;vt>=0;vt-=1){var sn=Ve[vt];if(!sn.disabled){Ve.splice(vt,1),rt=sn;break}}rt&&D(Ve,{type:"remove",values:[rt]})}for(var Nt=arguments.length,qt=new Array(Nt>1?Nt-1:0),At=1;At<Nt;At++)qt[At-1]=arguments[At];if(Ke&<.current){var rr;(rr=lt.current).onKeyDown.apply(rr,[H].concat(qt))}Ie==null||Ie.apply(void 0,[H].concat(qt))},Wt=function(H){for(var Ge=arguments.length,qe=new Array(Ge>1?Ge-1:0),Ve=1;Ve<Ge;Ve++)qe[Ve-1]=arguments[Ve];if(Ke&<.current){var rt;(rt=lt.current).onKeyUp.apply(rt,[H].concat(qe))}ce==null||ce.apply(void 0,[H].concat(qe))},We=function(H){var Ge=m.filter(function(qe){return qe!==H});D(Ge,{type:"remove",values:[H]})},Ot=i.useRef(!1),Dn=function(){ln(!0),$||(b&&!Ot.current&&b.apply(void 0,arguments),Ne.includes("focus")&&dt(!0)),Ot.current=!0},Yn=function(){ln(!1,function(){Ot.current=!1,dt(!1)}),!$&&(ft&&(B==="tags"?J(ft,{source:"submit"}):B==="multiple"&&J("",{source:"blur"})),A&&A.apply(void 0,arguments))},St=[];i.useEffect(function(){return function(){St.forEach(function(k){return clearTimeout(k)}),St.splice(0,St.length)}},[]);var Rt=function(H){var Ge,qe=H.target,Ve=(Ge=st.current)===null||Ge===void 0?void 0:Ge.getPopupElement();if(Ve&&Ve.contains(qe)){var rt=setTimeout(function(){var qt=St.indexOf(rt);if(qt!==-1&&St.splice(qt,1),Qt(),!nt&&!Ve.contains(document.activeElement)){var At;(At=gt.current)===null||At===void 0||At.focus()}});St.push(rt)}for(var vt=arguments.length,sn=new Array(vt>1?vt-1:0),Nt=1;Nt<vt;Nt++)sn[Nt-1]=arguments[Nt];Oe==null||Oe.apply(void 0,[H].concat(sn))},or=i.useState(null),Xn=(0,S.Z)(or,2),Qn=Xn[0],ar=Xn[1],ir=i.useState({}),lr=(0,S.Z)(ir,2),ur=lr[1];function cr(){ur({})}(0,Vt.Z)(function(){if(Tt){var k,H=Math.ceil((k=Mt.current)===null||k===void 0?void 0:k.offsetWidth);Qn!==H&&!Number.isNaN(H)&&ar(H)}},[Tt]);var Jn;yt&&(Jn=function(H){dt(H)}),Vn(function(){var k;return[Mt.current,(k=st.current)===null||k===void 0?void 0:k.getPopupElement()]},Tt,dt,!!yt);var sr=i.useMemo(function(){return(0,U.Z)((0,U.Z)({},n),{},{notFoundContent:oe,open:Ke,triggerOpen:Tt,id:v,showSearch:Ue,multiple:Pe,toggleOpen:dt})},[n,oe,Tt,Ke,v,Ue,Pe,dt]),qn=q!==void 0?q:ie||!Pe&&B!=="combobox",er;qn&&(er=i.createElement(et,{className:Te()("".concat(c,"-arrow"),(0,V.Z)({},"".concat(c,"-arrow-loading"),ie)),customizeIcon:pe,customizeIconProps:{loading:ie,searchValue:ft,open:Ke,focused:Xt,showSearch:Ue}}));var tr,fr=function(){X==null||X(),D([],{type:"clear",values:m}),T("",!1,!1)};!$&&N&&(m.length||ft)&&!(B==="combobox"&&ft==="")&&(tr=i.createElement(et,{className:"".concat(c,"-clear"),onMouseDown:fr,customizeIcon:fe},"\xD7"));var dr=i.createElement(je,{ref:lt}),vr=Te()(c,y,(l={},(0,V.Z)(l,"".concat(c,"-focused"),Xt),(0,V.Z)(l,"".concat(c,"-multiple"),Pe),(0,V.Z)(l,"".concat(c,"-single"),!Pe),(0,V.Z)(l,"".concat(c,"-allow-clear"),N),(0,V.Z)(l,"".concat(c,"-show-arrow"),qn),(0,V.Z)(l,"".concat(c,"-disabled"),$),(0,V.Z)(l,"".concat(c,"-loading"),ie),(0,V.Z)(l,"".concat(c,"-open"),Ke),(0,V.Z)(l,"".concat(c,"-customize-input"),un),(0,V.Z)(l,"".concat(c,"-show-search"),Ue),l)),nr=i.createElement(Ht,{ref:st,disabled:$,prefixCls:c,visible:Tt,popupElement:dr,containerWidth:Qn,animation:He,transitionName:ct,dropdownStyle:de,dropdownClassName:Y,direction:R,dropdownMatchSelectWidth:P,dropdownRender:W,dropdownAlign:le,placement:ee,getPopupContainer:ae,empty:C,getTriggerDOMNode:function(){return ht.current},onPopupVisibleChange:Jn,onPopupMouseEnter:cr},yt?i.cloneElement(yt,{ref:$n}):i.createElement(_n,(0,d.Z)({},n,{domRef:ht,prefixCls:c,inputElement:un,ref:gt,id:v,showSearch:Ue,mode:B,activeDescendantId:Ee,tagRender:E,values:m,open:Ke,onToggleOpen:dt,activeValue:Q,searchValue:ft,onSearch:T,onSearchSubmit:x,onRemove:We,tokenWithEnter:_}))),zn;return yt?zn=nr:zn=i.createElement("div",(0,d.Z)({className:vr},Re,{ref:Mt,onMouseDown:Rt,onKeyDown:bt,onKeyUp:Wt,onFocus:Dn,onBlur:Yn}),Xt&&!Ke&&i.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(m.map(function(k){var H=k.label,Ge=k.value;return["number","string"].includes((0,we.Z)(H))?H:Ge}).join(", "))),nr,er,tr),i.createElement(bn.Provider,{value:sr},zn)}),nn=tn,rn=function(n,t){var u=i.useRef({values:new Map,options:new Map}),l=i.useMemo(function(){var c=u.current,y=c.values,I=c.options,E=n.map(function(m){if(m.label===void 0){var D;return(0,U.Z)((0,U.Z)({},m),{},{label:(D=y.get(m.value))===null||D===void 0?void 0:D.label})}return m}),R=new Map,g=new Map;return E.forEach(function(m){R.set(m.value,m),g.set(m.value,t.get(m.value)||I.get(m.value))}),u.current.values=R,u.current.options=g,E},[n,t]),v=i.useCallback(function(c){return t.get(c)||u.current.options.get(c)},[t]);return[l,v]};function Yt(n,t){return fn(n).join("").toUpperCase().includes(t)}var Kt=function(n,t,u,l,v){return i.useMemo(function(){if(!u||l===!1)return n;var c=t.options,y=t.label,I=t.value,E=[],R=typeof l=="function",g=u.toUpperCase(),m=R?l:function(C,Z){return v?Yt(Z[v],g):Z[c]?Yt(Z[y!=="children"?y:"label"],g):Yt(Z[I],g)},D=R?function(C){return _e(C)}:function(C){return C};return n.forEach(function(C){if(C[c]){var Z=m(u,D(C));if(Z)E.push(C);else{var oe=C[c].filter(function(X){return m(u,D(X))});oe.length&&E.push((0,U.Z)((0,U.Z)({},C),{},(0,V.Z)({},c,oe)))}return}m(u,D(C))&&E.push(C)}),E},[n,l,v,u,t])},Kn=h(88708),kn=h(50344),Sn=["children","value"],jn=["children"];function Wn(n){var t=n.key,u=n.props,l=u.children,v=u.value,c=(0,Ze.Z)(u,Sn);return(0,U.Z)({key:t,value:v!==void 0?v:t,children:l},c)}function En(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,kn.Z)(n).map(function(u,l){if(!i.isValidElement(u)||!u.type)return null;var v=u.type.isSelectOptGroup,c=u.key,y=u.props,I=y.children,E=(0,Ze.Z)(y,jn);return t||!v?Wn(u):(0,U.Z)((0,U.Z)({key:"__RC_SELECT_GRP__".concat(c===null?l:c,"__"),label:c},E),{},{options:En(I)})}).filter(function(u){return u})}function Un(n,t,u,l,v){return i.useMemo(function(){var c=n,y=!n;y&&(c=En(t));var I=new Map,E=new Map,R=function(D,C,Z){Z&&typeof Z=="string"&&D.set(C[Z],C)};function g(m){for(var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<m.length;C+=1){var Z=m[C];!Z[u.options]||D?(I.set(Z[u.value],Z),R(E,Z,u.label),R(E,Z,l),R(E,Z,v)):g(Z[u.options],!0)}}return g(c),{options:c,valueOptions:I,labelOptions:E}},[n,t,u,l,v])}function wn(n){var t=i.useRef();t.current=n;var u=i.useCallback(function(){return t.current.apply(t,arguments)},[]);return u}var Cn=function(){return null};Cn.isSelectOptGroup=!0;var In=Cn,on=function(){return null};on.isSelectOption=!0;var Mn=on,Bn=h(98423),e=h(56982),o=h(7606);function a(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var r=i.createContext(null),f=r,p=["disabled","title","children","style","className"];function O(n){return typeof n=="string"||typeof n=="number"}var s=function(t,u){var l=Gt(),v=l.prefixCls,c=l.id,y=l.open,I=l.multiple,E=l.mode,R=l.searchValue,g=l.toggleOpen,m=l.notFoundContent,D=l.onPopupScroll,C=i.useContext(f),Z=C.flattenOptions,oe=C.onActiveValue,X=C.defaultActiveFirstOption,B=C.onSelect,$=C.menuItemSelectedIcon,ie=C.rawValues,Se=C.fieldNames,re=C.virtual,j=C.listHeight,ue=C.listItemHeight,ne="".concat(v,"-item"),Q=(0,e.Z)(function(){return Z},[y,Z],function(Y,P){return P[0]&&Y[1]!==P[1]}),ge=i.useRef(null),Ee=function(P){P.preventDefault()},ye=function(P){ge.current&&ge.current.scrollTo(typeof P=="number"?{index:P}:P)},J=function(P){for(var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,le=Q.length,ee=0;ee<le;ee+=1){var ae=(P+ee*W+le)%le,De=Q[ae],Ne=De.group,b=De.data;if(!Ne&&!b.disabled)return ae}return-1},be=i.useState(function(){return J(0)}),G=(0,S.Z)(be,2),N=G[0],q=G[1],pe=function(P){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;q(P);var le={source:W?"keyboard":"mouse"},ee=Q[P];if(!ee){oe(null,-1,le);return}oe(ee.value,P,le)};(0,i.useEffect)(function(){pe(X!==!1?J(0):-1)},[Q.length,R]);var fe=i.useCallback(function(Y){return ie.has(Y)&&E!=="combobox"},[E,(0,se.Z)(ie).toString()]);(0,i.useEffect)(function(){var Y=setTimeout(function(){if(!I&&y&&ie.size===1){var W=Array.from(ie)[0],le=Q.findIndex(function(ee){var ae=ee.data;return ae.value===W});le!==-1&&(pe(le),ye(le))}});if(y){var P;(P=ge.current)===null||P===void 0||P.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[y,R]);var je=function(P){P!==void 0&&B(P,{selected:!ie.has(P)}),I||g(!1)};if(i.useImperativeHandle(u,function(){return{onKeyDown:function(P){var W=P.which,le=P.ctrlKey;switch(W){case M.Z.N:case M.Z.P:case M.Z.UP:case M.Z.DOWN:{var ee=0;if(W===M.Z.UP?ee=-1:W===M.Z.DOWN?ee=1:a()&&le&&(W===M.Z.N?ee=1:W===M.Z.P&&(ee=-1)),ee!==0){var ae=J(N+ee,ee);ye(ae),pe(ae,!0)}break}case M.Z.ENTER:{var De=Q[N];De&&!De.data.disabled?je(De.value):je(void 0),y&&P.preventDefault();break}case M.Z.ESC:g(!1),y&&P.stopPropagation()}},onKeyUp:function(){},scrollTo:function(P){ye(P)}}}),Q.length===0)return i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(ne,"-empty"),onMouseDown:Ee},m);var He=Object.keys(Se).map(function(Y){return Se[Y]}),ct=function(P){return P.label},de=function(P){var W=Q[P];if(!W)return null;var le=W.data||{},ee=le.value,ae=W.group,De=(0,pt.Z)(le,!0),Ne=ct(W);return W?i.createElement("div",(0,d.Z)({"aria-label":typeof Ne=="string"&&!ae?Ne:null},De,{key:P,role:ae?"presentation":"option",id:"".concat(c,"_list_").concat(P),"aria-selected":fe(ee)}),ee):null};return i.createElement(i.Fragment,null,i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},de(N-1),de(N),de(N+1)),i.createElement(o.Z,{itemKey:"key",ref:ge,data:Q,height:j,itemHeight:ue,fullHeight:!1,onMouseDown:Ee,onScroll:D,virtual:re},function(Y,P){var W,le=Y.group,ee=Y.groupOption,ae=Y.data,De=Y.label,Ne=Y.value,b=ae.key;if(le){var A,ce=(A=ae.title)!==null&&A!==void 0?A:O(De)?De.toString():void 0;return i.createElement("div",{className:Te()(ne,"".concat(ne,"-group")),title:ce},De!==void 0?De:b)}var Ie=ae.disabled,Oe=ae.title,tt=ae.children,Pe=ae.style,Ue=ae.className,Re=(0,Ze.Z)(ae,p),it=(0,Bn.Z)(Re,He),Qe=fe(Ne),nt="".concat(ne,"-option"),Zt=Te()(ne,nt,Ue,(W={},(0,V.Z)(W,"".concat(nt,"-grouped"),ee),(0,V.Z)(W,"".concat(nt,"-active"),N===P&&!Ie),(0,V.Z)(W,"".concat(nt,"-disabled"),Ie),(0,V.Z)(W,"".concat(nt,"-selected"),Qe),W)),Mt=ct(Y),ht=!$||typeof $=="function"||Qe,st=typeof Mt=="number"?Mt:Mt||Ne,gt=O(st)?st.toString():void 0;return Oe!==void 0&&(gt=Oe),i.createElement("div",(0,d.Z)({},(0,pt.Z)(it),{"aria-selected":Qe,className:Zt,title:gt,onMouseMove:function(){N===P||Ie||pe(P)},onClick:function(){Ie||je(Ne)},style:Pe}),i.createElement("div",{className:"".concat(nt,"-content")},st),i.isValidElement($)||Qe,ht&&i.createElement(et,{className:"".concat(ne,"-option-state"),customizeIcon:$,customizeIconProps:{isSelected:Qe}},Qe?"\u2713":null))}))},w=i.forwardRef(s);w.displayName="OptionList";var L=w;function K(n){var t=n.mode,u=n.options,l=n.children,v=n.backfill,c=n.allowClear,y=n.placeholder,I=n.getInputElement,E=n.showSearch,R=n.onSearch,g=n.defaultOpen,m=n.autoFocus,D=n.labelInValue,C=n.value,Z=n.inputValue,oe=n.optionLabelProp,X=isMultiple(t),B=E!==void 0?E:X||t==="combobox",$=u||convertChildrenToData(l);if(warning(t!=="tags"||$.every(function(j){return!j.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var ie=$.some(function(j){return j.options?j.options.some(function(ue){return typeof("value"in ue?ue.value:ue.key)=="number"}):typeof("value"in j?j.value:j.key)=="number"});warning(!ie,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(t!=="combobox"||!oe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(t==="combobox"||!v,"`backfill` only works with `combobox` mode."),warning(t==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),noteOnce(t!=="combobox"||!I||!c||!y,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),R&&!B&&t!=="combobox"&&t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!g||m,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),C!=null){var Se=toArray(C);warning(!D||Se.every(function(j){return _typeof(j)==="object"&&("key"in j||"value"in j)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!X||Array.isArray(C),"`value` should be array when `mode` is `multiple` or `tags`")}if(l){var re=null;toNodeArray(l).some(function(j){if(!React.isValidElement(j)||!j.type)return!1;var ue=j.type;if(ue.isSelectOption)return!1;if(ue.isSelectOptGroup){var ne=toNodeArray(j.props.children).every(function(Q){return!React.isValidElement(Q)||!j.type||Q.type.isSelectOption?!0:(re=Q.type,!1)});return!ne}return re=ue,!0}),re&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),warning(Z===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function F(n,t){if(n){var u=function l(v){for(var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y<v.length;y++){var I=v[y];if(I[t==null?void 0:t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!c&&Array.isArray(I[t==null?void 0:t.options])&&l(I[t==null?void 0:t.options],!0))break}};u(n)}}var ve=null,me=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ce=["inputValue"];function ze(n){return!n||(0,we.Z)(n)!=="object"}var Xe=i.forwardRef(function(n,t){var u=n.id,l=n.mode,v=n.prefixCls,c=v===void 0?"rc-select":v,y=n.backfill,I=n.fieldNames,E=n.inputValue,R=n.searchValue,g=n.onSearch,m=n.autoClearSearchValue,D=m===void 0?!0:m,C=n.onSelect,Z=n.onDeselect,oe=n.dropdownMatchSelectWidth,X=oe===void 0?!0:oe,B=n.filterOption,$=n.filterSort,ie=n.optionFilterProp,Se=n.optionLabelProp,re=n.options,j=n.children,ue=n.defaultActiveFirstOption,ne=n.menuItemSelectedIcon,Q=n.virtual,ge=n.listHeight,Ee=ge===void 0?200:ge,ye=n.listItemHeight,J=ye===void 0?20:ye,be=n.value,G=n.defaultValue,N=n.labelInValue,q=n.onChange,pe=(0,Ze.Z)(n,me),fe=(0,Kn.ZP)(u),je=en(l),He=!!(!re&&j),ct=i.useMemo(function(){return B===void 0&&l==="combobox"?!1:B},[B,l]),de=i.useMemo(function(){return Be(I,He)},[JSON.stringify(I),He]),Y=(0,Ae.Z)("",{value:R!==void 0?R:E,postState:function(T){return T||""}}),P=(0,S.Z)(Y,2),W=P[0],le=P[1],ee=Un(re,j,de,ie,Se),ae=ee.valueOptions,De=ee.labelOptions,Ne=ee.options,b=i.useCallback(function(_){var T=fn(_);return T.map(function(x){var z,Me,xe,Lt,bt;if(ze(x))z=x;else{var Wt;xe=x.key,Me=x.label,z=(Wt=x.value)!==null&&Wt!==void 0?Wt:xe}var We=ae.get(z);if(We){var Ot;if(Me===void 0&&(Me=We==null?void 0:We[Se||de.label]),xe===void 0&&(xe=(Ot=We==null?void 0:We.key)!==null&&Ot!==void 0?Ot:z),Lt=We==null?void 0:We.disabled,bt=We==null?void 0:We.title,!1)var Dn}return{label:Me,value:z,key:xe,disabled:Lt,title:bt}})},[de,Se,ae]),A=(0,Ae.Z)(G,{value:be}),ce=(0,S.Z)(A,2),Ie=ce[0],Oe=ce[1],tt=i.useMemo(function(){var _,T=b(Ie);return l==="combobox"&&!((_=T[0])===null||_===void 0?void 0:_.value)?[]:T},[Ie,b,l]),Pe=rn(tt,ae),Ue=(0,S.Z)(Pe,2),Re=Ue[0],it=Ue[1],Qe=i.useMemo(function(){if(!l&&Re.length===1){var _=Re[0];if(_.value===null&&(_.label===null||_.label===void 0))return[]}return Re.map(function(T){var x;return(0,U.Z)((0,U.Z)({},T),{},{label:(x=T.label)!==null&&x!==void 0?x:T.value})})},[l,Re]),nt=i.useMemo(function(){return new Set(Re.map(function(_){return _.value}))},[Re]);i.useEffect(function(){if(l==="combobox"){var _,T=(_=Re[0])===null||_===void 0?void 0:_.value;le(xn(T)?String(T):"")}},[Re]);var Zt=wn(function(_,T){var x,z=T!=null?T:_;return x={},(0,V.Z)(x,de.value,_),(0,V.Z)(x,de.label,z),x}),Mt=i.useMemo(function(){if(l!=="tags")return Ne;var _=(0,se.Z)(Ne),T=function(z){return ae.has(z)};return(0,se.Z)(Re).sort(function(x,z){return x.value<z.value?-1:1}).forEach(function(x){var z=x.value;T(z)||_.push(Zt(z,x.label))}),_},[Zt,Ne,ae,Re,l]),ht=Kt(Mt,de,W,ct,ie),st=i.useMemo(function(){return l!=="tags"||!W||ht.some(function(_){return _[ie||"value"]===W})?ht:[Zt(W)].concat((0,se.Z)(ht))},[Zt,ie,l,ht,W]),gt=i.useMemo(function(){return $?(0,se.Z)(st).sort(function(_,T){return $(_,T)}):st},[st,$]),lt=i.useMemo(function(){return te(gt,{fieldNames:de,childrenAsData:He})},[gt,de,He]),kt=function(T){var x=b(T);if(Oe(x),q&&(x.length!==Re.length||x.some(function(xe,Lt){var bt;return((bt=Re[Lt])===null||bt===void 0?void 0:bt.value)!==(xe==null?void 0:xe.value)}))){var z=N?x:x.map(function(xe){return xe.value}),Me=x.map(function(xe){return _e(it(xe.value))});q(je?z:z[0],je?Me:Me[0])}},an=i.useState(null),Xt=(0,S.Z)(an,2),ln=Xt[0],Qt=Xt[1],ft=i.useState(0),un=(0,S.Z)(ft,2),yt=un[0],$n=un[1],On=ue!==void 0?ue:l!=="combobox",cn=i.useCallback(function(_,T){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=x.source,Me=z===void 0?"keyboard":z;$n(T),y&&l==="combobox"&&_!==null&&Me==="keyboard"&&Qt(String(_))},[y,l]),jt=function(T,x){var z=function(){var St,Rt=it(T);return[N?{label:Rt==null?void 0:Rt[de.label],value:T,key:(St=Rt==null?void 0:Rt.key)!==null&&St!==void 0?St:T}:T,_e(Rt)]};if(x&&C){var Me=z(),xe=(0,S.Z)(Me,2),Lt=xe[0],bt=xe[1];C(Lt,bt)}else if(!x&&Z){var Wt=z(),We=(0,S.Z)(Wt,2),Ot=We[0],Dn=We[1];Z(Ot,Dn)}},Jt=wn(function(_,T){var x,z=je?T.selected:!0;z?x=je?[].concat((0,se.Z)(Re),[_]):[_]:x=Re.filter(function(Me){return Me.value!==_}),kt(x),jt(_,z),l==="combobox"?Qt(""):(!en||D)&&(le(""),Qt(""))}),Ke=function(T,x){kt(T),(x.type==="remove"||x.type==="clear")&&x.values.forEach(function(z){jt(z.value,!1)})},Rn=function(T,x){if(le(T),Qt(null),x.source==="submit"){var z=(T||"").trim();if(z){var Me=Array.from(new Set([].concat((0,se.Z)(nt),[z])));kt(Me),jt(z,!0),le("")}return}x.source!=="blur"&&(l==="combobox"&&kt(T),g==null||g(T))},Tt=function(T){var x=T;l!=="tags"&&(x=T.map(function(Me){var xe=De.get(Me);return xe==null?void 0:xe.value}).filter(function(Me){return Me!==void 0}));var z=Array.from(new Set([].concat((0,se.Z)(nt),(0,se.Z)(x))));kt(z),z.forEach(function(Me){jt(Me,!0)})},dt=i.useMemo(function(){var _=Q!==!1&&X!==!1;return(0,U.Z)((0,U.Z)({},ee),{},{flattenOptions:lt,onActiveValue:cn,defaultActiveFirstOption:On,onSelect:Jt,menuItemSelectedIcon:ne,rawValues:nt,fieldNames:de,virtual:_,listHeight:Ee,listItemHeight:J,childrenAsData:He})},[ee,lt,cn,On,Jt,ne,nt,de,Q,X,Ee,J,He]);return i.createElement(f.Provider,{value:dt},i.createElement(nn,(0,d.Z)({},pe,{id:fe,prefixCls:c,ref:t,omitDomProps:Ce,mode:l,displayValues:Qe,onDisplayValuesChange:Ke,searchValue:W,onSearch:Rn,onSearchSplit:Tt,dropdownMatchSelectWidth:X,OptionList:L,emptyOptions:!lt.length,activeValue:ln,activeDescendantId:"".concat(fe,"_list_").concat(yt)})))}),ut=Xe;ut.Option=Mn,ut.OptGroup=In;var It=ut,Je=It},64217:function(_t,Ye,h){"use strict";h.d(Ye,{Z:function(){return Ae}});var d=h(28991),se=`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`,V=`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`,U="".concat(se," ").concat(V).split(/[\s\n]+/),S="aria-",Ze="data-";function we(he,i){return he.indexOf(i)===0}function Ae(he){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe;i===!1?Fe={aria:!0,data:!0,attr:!0}:i===!0?Fe={aria:!0}:Fe=(0,d.Z)({},i);var Te={};return Object.keys(he).forEach(function(M){(Fe.aria&&(M==="role"||we(M,S))||Fe.data&&we(M,Ze)||Fe.attr&&U.includes(M))&&(Te[M]=he[M])}),Te}},7606:function(_t,Ye,h){"use strict";h.d(Ye,{Z:function(){return Bn}});var d=h(67294),se=h(94184),V=h.n(se),U=h(48717);function S(e,o){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),a.push.apply(a,r)}return a}function Ze(e){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?S(Object(a),!0).forEach(function(r){we(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):S(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function we(e,o,a){return o in e?Object.defineProperty(e,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[o]=a,e}var Ae=d.forwardRef(function(e,o){var a=e.height,r=e.offset,f=e.children,p=e.prefixCls,O=e.onInnerResize,s={},w={display:"flex",flexDirection:"column"};return r!==void 0&&(s={height:a,position:"relative",overflow:"hidden"},w=Ze(Ze({},w),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),d.createElement("div",{style:s},d.createElement(U.Z,{onResize:function(K){var F=K.offsetHeight;F&&O&&O()}},d.createElement("div",{style:w,className:V()(we({},"".concat(p,"-holder-inner"),p)),ref:o},f)))});Ae.displayName="Filler";var he=Ae,i=h(75164);function Fe(e){return Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Fe(e)}function Te(e,o,a){return o in e?Object.defineProperty(e,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[o]=a,e}function M(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function Et(e,o){for(var a=0;a<o.length;a++){var r=o[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mt(e,o,a){return o&&Et(e.prototype,o),a&&Et(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vt(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),o&&ke(e,o)}function ke(e,o){return ke=Object.setPrototypeOf||function(r,f){return r.__proto__=f,r},ke(e,o)}function Le(e){var o=_e();return function(){var r=$e(e),f;if(o){var p=$e(this).constructor;f=Reflect.construct(r,arguments,p)}else f=r.apply(this,arguments);return Be(this,f)}}function Be(e,o){if(o&&(Fe(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return te(e)}function te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},$e(e)}var wt=20;function ot(e){return"touches"in e?e.touches[0].pageY:e.pageY}var Ct=function(e){Vt(a,e);var o=Le(a);function a(){var r;M(this,a);for(var f=arguments.length,p=new Array(f),O=0;O<f;O++)p[O]=arguments[O];return r=o.call.apply(o,[this].concat(p)),r.moveRaf=null,r.scrollbarRef=d.createRef(),r.thumbRef=d.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1})},2e3)},r.onScrollbarTouchStart=function(s){s.preventDefault()},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault()},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp)},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),i.Z.cancel(r.moveRaf)},r.onMouseDown=function(s){var w=r.props.onStartMove;r.setState({dragging:!0,pageY:ot(s),startTop:r.getTop()}),w(),r.patchEvents(),s.stopPropagation(),s.preventDefault()},r.onMouseMove=function(s){var w=r.state,L=w.dragging,K=w.pageY,F=w.startTop,ve=r.props.onScroll;if(i.Z.cancel(r.moveRaf),L){var me=ot(s)-K,Ce=F+me,ze=r.getEnableScrollRange(),Xe=r.getEnableHeightRange(),ut=Xe?Ce/Xe:0,It=Math.ceil(ut*ze);r.moveRaf=(0,i.Z)(function(){ve(It)})}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents()},r.getSpinHeight=function(){var s=r.props,w=s.height,L=s.count,K=w/L*10;return K=Math.max(K,wt),K=Math.min(K,w/2),Math.floor(K)},r.getEnableScrollRange=function(){var s=r.props,w=s.scrollHeight,L=s.height;return w-L||0},r.getEnableHeightRange=function(){var s=r.props.height,w=r.getSpinHeight();return s-w||0},r.getTop=function(){var s=r.props.scrollTop,w=r.getEnableScrollRange(),L=r.getEnableHeightRange();if(s===0||w===0)return 0;var K=s/w;return K*L},r.showScroll=function(){var s=r.props,w=s.height,L=s.scrollHeight;return L>w},r}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,p=f.dragging,O=f.visible,s=this.props.prefixCls,w=this.getSpinHeight(),L=this.getTop(),K=this.showScroll(),F=K&&O;return d.createElement("div",{ref:this.scrollbarRef,className:V()("".concat(s,"-scrollbar"),Te({},"".concat(s,"-scrollbar-show"),K)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:F?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},d.createElement("div",{ref:this.thumbRef,className:V()("".concat(s,"-scrollbar-thumb"),Te({},"".concat(s,"-scrollbar-thumb-moving"),p)),style:{width:"100%",height:w,top:L,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),a}(d.Component);function Ft(e){var o=e.children,a=e.setRef,r=d.useCallback(function(f){a(f)},[]);return d.cloneElement(o,{ref:r})}function at(e,o,a,r,f,p){var O=p.getKey;return e.slice(o,a+1).map(function(s,w){var L=o+w,K=f(s,L,{}),F=O(s);return d.createElement(Ft,{key:F,setRef:function(me){return r(s,me)}},K)})}var Ht=h(34203);function pt(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function Ut(e,o){for(var a=0;a<o.length;a++){var r=o[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,o,a){return o&&Ut(e.prototype,o),a&&Ut(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}var et=function(){function e(){pt(this,e),this.maps=void 0,this.maps=Object.create(null)}return Dt(e,[{key:"set",value:function(a,r){this.maps[a]=r}},{key:"get",value:function(a){return this.maps[a]}}]),e}(),Pt=et;function Bt(e,o){return xn(e)||Pn(e,o)||fn(e,o)||xt()}function xt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(e,o){if(!!e){if(typeof e=="string")return dn(e,o);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return dn(e,o)}}function dn(e,o){(o==null||o>e.length)&&(o=e.length);for(var a=0,r=new Array(o);a<o;a++)r[a]=e[a];return r}function Pn(e,o){var a=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],f=!0,p=!1,O,s;try{for(a=a.call(e);!(f=(O=a.next()).done)&&(r.push(O.value),!(o&&r.length===o));f=!0);}catch(w){p=!0,s=w}finally{try{!f&&a.return!=null&&a.return()}finally{if(p)throw s}}return r}}function xn(e){if(Array.isArray(e))return e}function vn(e,o,a){var r=d.useState(0),f=Bt(r,2),p=f[0],O=f[1],s=(0,d.useRef)(new Map),w=(0,d.useRef)(new Pt),L=(0,d.useRef)();function K(){i.Z.cancel(L.current)}function F(){K(),L.current=(0,i.Z)(function(){s.current.forEach(function(me,Ce){if(me&&me.offsetParent){var ze=(0,Ht.Z)(me),Xe=ze.offsetHeight;w.current.get(Ce)!==Xe&&w.current.set(Ce,ze.offsetHeight)}}),O(function(me){return me+1})})}function ve(me,Ce){var ze=e(me),Xe=s.current.get(ze);Ce?(s.current.set(ze,Ce),F()):s.current.delete(ze),!Xe!=!Ce&&(Ce?o==null||o(me):a==null||a(me))}return(0,d.useEffect)(function(){return K},[]),[ve,F,w.current,p]}function $t(e){return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},$t(e)}function Zn(e,o,a,r,f,p,O,s){var w=d.useRef();return function(L){if(L==null){s();return}if(i.Z.cancel(w.current),typeof L=="number")O(L);else if(L&&$t(L)==="object"){var K,F=L.align;"index"in L?K=L.index:K=o.findIndex(function(ze){return f(ze)===L.key});var ve=L.offset,me=ve===void 0?0:ve,Ce=function ze(Xe,ut){if(!(Xe<0||!e.current)){var It=e.current.clientHeight,Je=!1,n=ut;if(It){for(var t=ut||F,u=0,l=0,v=0,c=Math.min(o.length,K),y=0;y<=c;y+=1){var I=f(o[y]);l=u;var E=a.get(I);v=l+(E===void 0?r:E),u=v,y===K&&E===void 0&&(Je=!0)}var R=null;switch(t){case"top":R=l-me;break;case"bottom":R=v-It+me;break;default:{var g=e.current.scrollTop,m=g+It;l<g?n="top":v>m&&(n="bottom")}}R!==null&&R!==e.current.scrollTop&&O(R)}w.current=(0,i.Z)(function(){Je&&p(),ze(Xe-1,n)})}};Ce(3)}}}function Gn(e,o,a,r){var f=a-e,p=o-a,O=Math.min(f,p)*2;if(r<=O){var s=Math.floor(r/2);return r%2?a+s+1:a-s}return f>p?a-(r-p):a+(r-f)}function mn(e,o,a){var r=e.length,f=o.length,p,O;if(r===0&&f===0)return null;r<f?(p=e,O=o):(p=o,O=e);var s={__EMPTY_ITEM__:!0};function w(Ce){return Ce!==void 0?a(Ce):s}for(var L=null,K=Math.abs(r-f)!==1,F=0;F<O.length;F+=1){var ve=w(p[F]),me=w(O[F]);if(ve!==me){L=F,K=K||ve!==w(O[F+1]);break}}return L===null?null:{index:L,multiple:K}}function pn(e,o){return Nn(e)||gn(e,o)||Ln(e,o)||Tn()}function Tn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(e,o){if(!!e){if(typeof e=="string")return hn(e,o);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return hn(e,o)}}function hn(e,o){(o==null||o>e.length)&&(o=e.length);for(var a=0,r=new Array(o);a<o;a++)r[a]=e[a];return r}function gn(e,o){var a=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],f=!0,p=!1,O,s;try{for(a=a.call(e);!(f=(O=a.next()).done)&&(r.push(O.value),!(o&&r.length===o));f=!0);}catch(w){p=!0,s=w}finally{try{!f&&a.return!=null&&a.return()}finally{if(p)throw s}}return r}}function Nn(e){if(Array.isArray(e))return e}function An(e,o,a){var r=d.useState(e),f=pn(r,2),p=f[0],O=f[1],s=d.useState(null),w=pn(s,2),L=w[0],K=w[1];return d.useEffect(function(){var F=mn(p||[],e||[],o);(F==null?void 0:F.index)!==void 0&&(a==null||a(F.index),K(e[F.index])),O(e)},[e]),[L]}function zt(e){return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},zt(e)}var _n=(typeof navigator=="undefined"?"undefined":zt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Vn=_n,yn=function(e,o){var a=(0,d.useRef)(!1),r=(0,d.useRef)(null);function f(){clearTimeout(r.current),a.current=!0,r.current=setTimeout(function(){a.current=!1},50)}var p=(0,d.useRef)({top:e,bottom:o});return p.current.top=e,p.current.bottom=o,function(O){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=O<0&&p.current.top||O>0&&p.current.bottom;return s&&w?(clearTimeout(r.current),a.current=!1):(!w||a.current)&&f(),!a.current&&w}};function bn(e,o,a,r){var f=(0,d.useRef)(0),p=(0,d.useRef)(null),O=(0,d.useRef)(null),s=(0,d.useRef)(!1),w=yn(o,a);function L(F){if(!!e){i.Z.cancel(p.current);var ve=F.deltaY;f.current+=ve,O.current=ve,!w(ve)&&(Vn||F.preventDefault(),p.current=(0,i.Z)(function(){var me=s.current?10:1;r(f.current*me),f.current=0}))}}function K(F){!e||(s.current=F.detail===O.current)}return[L,K]}var Gt=h(8410),Fn=14/15;function Hn(e,o,a){var r=(0,d.useRef)(!1),f=(0,d.useRef)(0),p=(0,d.useRef)(null),O=(0,d.useRef)(null),s,w=function(ve){if(r.current){var me=Math.ceil(ve.touches[0].pageY),Ce=f.current-me;f.current=me,a(Ce)&&ve.preventDefault(),clearInterval(O.current),O.current=setInterval(function(){Ce*=Fn,(!a(Ce,!0)||Math.abs(Ce)<=.1)&&clearInterval(O.current)},16)}},L=function(){r.current=!1,s()},K=function(ve){s(),ve.touches.length===1&&!r.current&&(r.current=!0,f.current=Math.ceil(ve.touches[0].pageY),p.current=ve.target,p.current.addEventListener("touchmove",w),p.current.addEventListener("touchend",L))};s=function(){p.current&&(p.current.removeEventListener("touchmove",w),p.current.removeEventListener("touchend",L))},(0,Gt.Z)(function(){return e&&o.current.addEventListener("touchstart",K),function(){var F;(F=o.current)===null||F===void 0||F.removeEventListener("touchstart",K),s(),clearInterval(O.current)}},[e])}var en=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function tn(){return tn=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},tn.apply(this,arguments)}function nn(e,o){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),a.push.apply(a,r)}return a}function rn(e){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?nn(Object(a),!0).forEach(function(r){Yt(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):nn(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function Yt(e,o,a){return o in e?Object.defineProperty(e,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[o]=a,e}function Kt(e,o){return Wn(e)||jn(e,o)||kn(e,o)||Kn()}function Kn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kn(e,o){if(!!e){if(typeof e=="string")return Sn(e,o);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Sn(e,o)}}function Sn(e,o){(o==null||o>e.length)&&(o=e.length);for(var a=0,r=new Array(o);a<o;a++)r[a]=e[a];return r}function jn(e,o){var a=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],f=!0,p=!1,O,s;try{for(a=a.call(e);!(f=(O=a.next()).done)&&(r.push(O.value),!(o&&r.length===o));f=!0);}catch(w){p=!0,s=w}finally{try{!f&&a.return!=null&&a.return()}finally{if(p)throw s}}return r}}function Wn(e){if(Array.isArray(e))return e}function En(e,o){if(e==null)return{};var a=Un(e,o),r,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(f=0;f<p.length;f++)r=p[f],!(o.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function Un(e,o){if(e==null)return{};var a={},r=Object.keys(e),f,p;for(p=0;p<r.length;p++)f=r[p],!(o.indexOf(f)>=0)&&(a[f]=e[f]);return a}var wn=[],Cn={overflowY:"auto",overflowAnchor:"none"};function In(e,o){var a=e.prefixCls,r=a===void 0?"rc-virtual-list":a,f=e.className,p=e.height,O=e.itemHeight,s=e.fullHeight,w=s===void 0?!0:s,L=e.style,K=e.data,F=e.children,ve=e.itemKey,me=e.virtual,Ce=e.component,ze=Ce===void 0?"div":Ce,Xe=e.onScroll,ut=e.onVisibleChange,It=En(e,en),Je=!!(me!==!1&&p&&O),n=Je&&K&&O*K.length>p,t=(0,d.useState)(0),u=Kt(t,2),l=u[0],v=u[1],c=(0,d.useState)(!1),y=Kt(c,2),I=y[0],E=y[1],R=V()(r,f),g=K||wn,m=(0,d.useRef)(),D=(0,d.useRef)(),C=(0,d.useRef)(),Z=d.useCallback(function(b){return typeof ve=="function"?ve(b):b==null?void 0:b[ve]},[ve]),oe={getKey:Z};function X(b){v(function(A){var ce;typeof b=="function"?ce=b(A):ce=b;var Ie=fe(ce);return m.current.scrollTop=Ie,Ie})}var B=(0,d.useRef)({start:0,end:g.length}),$=(0,d.useRef)(),ie=An(g,Z),Se=Kt(ie,1),re=Se[0];$.current=re;var j=vn(Z,null,null),ue=Kt(j,4),ne=ue[0],Q=ue[1],ge=ue[2],Ee=ue[3],ye=d.useMemo(function(){if(!Je)return{scrollHeight:void 0,start:0,end:g.length-1,offset:void 0};if(!n){var b;return{scrollHeight:((b=D.current)===null||b===void 0?void 0:b.offsetHeight)||0,start:0,end:g.length-1,offset:void 0}}for(var A=0,ce,Ie,Oe,tt=g.length,Pe=0;Pe<tt;Pe+=1){var Ue=g[Pe],Re=Z(Ue),it=ge.get(Re),Qe=A+(it===void 0?O:it);Qe>=l&&ce===void 0&&(ce=Pe,Ie=A),Qe>l+p&&Oe===void 0&&(Oe=Pe),A=Qe}return ce===void 0&&(ce=0,Ie=0),Oe===void 0&&(Oe=g.length-1),Oe=Math.min(Oe+1,g.length),{scrollHeight:A,start:ce,end:Oe,offset:Ie}},[n,Je,l,g,Ee,p]),J=ye.scrollHeight,be=ye.start,G=ye.end,N=ye.offset;B.current.start=be,B.current.end=G;var q=J-p,pe=(0,d.useRef)(q);pe.current=q;function fe(b){var A=b;return Number.isNaN(pe.current)||(A=Math.min(A,pe.current)),A=Math.max(A,0),A}var je=l<=0,He=l>=q,ct=yn(je,He);function de(b){var A=b;X(A)}function Y(b){var A=b.currentTarget.scrollTop;A!==l&&X(A),Xe==null||Xe(b)}var P=bn(Je,je,He,function(b){X(function(A){var ce=A+b;return ce})}),W=Kt(P,2),le=W[0],ee=W[1];Hn(Je,m,function(b,A){return ct(b,A)?!1:(le({preventDefault:function(){},deltaY:b}),!0)}),(0,Gt.Z)(function(){function b(A){Je&&A.preventDefault()}return m.current.addEventListener("wheel",le),m.current.addEventListener("DOMMouseScroll",ee),m.current.addEventListener("MozMousePixelScroll",b),function(){m.current&&(m.current.removeEventListener("wheel",le),m.current.removeEventListener("DOMMouseScroll",ee),m.current.removeEventListener("MozMousePixelScroll",b))}},[Je]);var ae=Zn(m,g,ge,O,Z,Q,X,function(){var b;(b=C.current)===null||b===void 0||b.delayHidden()});d.useImperativeHandle(o,function(){return{scrollTo:ae}}),(0,Gt.Z)(function(){if(ut){var b=g.slice(be,G+1);ut(b,g)}},[be,G,g]);var De=at(g,be,G,ne,F,oe),Ne=null;return p&&(Ne=rn(Yt({},w?"height":"maxHeight",p),Cn),Je&&(Ne.overflowY="hidden",I&&(Ne.pointerEvents="none"))),d.createElement("div",tn({style:rn(rn({},L),{},{position:"relative"}),className:R},It),d.createElement(ze,{className:"".concat(r,"-holder"),style:Ne,ref:m,onScroll:Y},d.createElement(he,{prefixCls:r,height:J,offset:N,onInnerResize:Q,ref:D},De)),Je&&d.createElement(Ct,{ref:C,prefixCls:r,scrollTop:l,height:p,scrollHeight:J,count:g.length,onScroll:de,onStartMove:function(){E(!0)},onStopMove:function(){E(!1)}}))}var on=d.forwardRef(In);on.displayName="List";var Mn=on,Bn=Mn}}]);
|