|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[96101],{96101:function(e,n,t){t.d(n,{Z:function(){return fr}});var o=t(94184),r=t.n(o),a=t(87462),i=t(74902),u=t(4942),c=t(1413),l=t(97685),s=t(45987),f=t(71002),d=t(67294),p=t.t(d,2);function v(e){var n=d.useRef();n.current=e;var t=d.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return t}function m(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var h=m()?d.useLayoutEffect:d.useEffect,g=h,y=function(e,n){var t=d.useRef(!0);h((function(){if(!t.current)return e()}),n),h((function(){return t.current=!1,function(){t.current=!0}}),[])};function b(e){var n=d.useRef(!1),t=d.useState(e),o=(0,l.Z)(t,2),r=o[0],a=o[1];return d.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[r,function(e,t){t&&n.current||a(e)}]}function w(e){return void 0!==e}function E(e,n){var t=n||{},o=t.defaultValue,r=t.value,a=t.onChange,i=t.postState,u=b((function(){return w(r)?r:w(o)?"function"==typeof o?o():o:"function"==typeof e?e():e})),c=(0,l.Z)(u,2),s=c[0],f=c[1],d=void 0!==r?r:s,p=i?i(d):d,m=v(a),h=b([d]),g=(0,l.Z)(h,2),E=g[0],C=g[1];return y((function(){var e=E[0];s!==e&&m(s,e)}),[E]),y((function(){w(r)||f(r)}),[r]),[p,v((function(e,n){f(e,n),C([d],n)}))]}var C={};function S(e,n){0}function Z(e,n,t){n||C[t]||(e(!1,t),C[t]=!0)}var N=function(e,n){Z(S,e,n)},M={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=M.F1&&n<=M.F12)return!1;switch(n){case M.ALT:case M.CAPS_LOCK:case M.CONTEXT_MENU:case M.CTRL:case M.DOWN:case M.END:case M.ESC:case M.HOME:case M.INSERT:case M.LEFT:case M.MAC_FF_META:case M.META:case M.NUMLOCK:case M.NUM_CENTER:case M.PAGE_DOWN:case M.PAGE_UP:case M.PAUSE:case M.PRINT_SCREEN:case M.RIGHT:case M.SHIFT:case M.UP:case M.WIN_KEY:case M.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=M.ZERO&&e<=M.NINE)return!0;if(e>=M.NUM_ZERO&&e<=M.NUM_MULTIPLY)return!0;if(e>=M.A&&e<=M.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case M.SPACE:case M.QUESTION_MARK:case M.NUM_PLUS:case M.NUM_MINUS:case M.NUM_PERIOD:case M.NUM_DIVISION:case M.SEMICOLON:case M.DASH:case M.EQUALS:case M.COMMA:case M.PERIOD:case M.SLASH:case M.APOSTROPHE:case M.SINGLE_QUOTE:case M.OPEN_SQUARE_BRACKET:case M.BACKSLASH:case M.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},x=M,k=t(47655);function R(e,n,t){var o=d.useRef({});return"value"in o.current&&!t(o.current.condition,n)||(o.current.value=e(),o.current.condition=n),o.current.value}function I(e,n){"function"==typeof e?e(n):"object"===(0,f.Z)(e)&&e&&"current"in e&&(e.current=n)}function A(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o=n.filter((function(e){return e}));return o.length<=1?o[0]:function(e){n.forEach((function(n){I(n,e)}))}}function P(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return R((function(){return A.apply(void 0,n)}),n,(function(e,n){return e.length===n.length&&e.every((function(e,t){return e===n[t]}))}))}function O(e){var n,t,o=(0,k.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(n=o.prototype)&&void 0!==n&&n.render)&&!!("function"!=typeof e||null!==(t=e.prototype)&&void 0!==t&&t.render)}var T=function(e){var n,t=e.className,o=e.customizeIcon,a=e.customizeIconProps,i=e.onMouseDown,u=e.onClick,c=e.children;return n="function"==typeof o?o(a):o,d.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},void 0!==n?n:d.createElement("span",{className:r()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},c))};var D=d.createContext(null);function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=d.useRef(null),t=d.useRef(null);function o(o){(o||null===n.current)&&(n.current=o),window.clearTimeout(t.current),t.current=window.setTimeout((function(){n.current=null}),e)}return d.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return n.current},o]}var _="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),F="aria-",V="data-";function U(e,n){return 0===e.indexOf(n)}function H(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:(0,c.Z)({},t);var o={};return Object.keys(e).forEach((function(t){(n.aria&&("role"===t||U(t,F))||n.data&&U(t,V)||n.attr&&_.includes(t))&&(o[t]=e[t])})),o}var K=t(48555);var W="undefined"!=typeof window&&window.document&&window.document.createElement?d.useLayoutEffect:d.useEffect,z=W,j=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],B=void 0;function Y(e,n){var t=e.prefixCls,o=e.invalidate,i=e.item,u=e.renderItem,l=e.responsive,f=e.responsiveDisabled,p=e.registerSize,v=e.itemKey,m=e.className,h=e.style,g=e.children,y=e.display,b=e.order,w=e.component,E=void 0===w?"div":w,C=(0,s.Z)(e,j),S=l&&!y;function Z(e){p(v,e)}d.useEffect((function(){return function(){Z(null)}}),[]);var N,M=u&&i!==B?u(i):g;o||(N={opacity:S?0:1,height:S?0:B,overflowY:S?"hidden":B,order:l?b:B,pointerEvents:S?"none":B,position:S?"absolute":B});var x={};S&&(x["aria-hidden"]=!0);var k=d.createElement(E,(0,a.Z)({className:r()(!o&&t,m),style:(0,c.Z)((0,c.Z)({},N),h)},x,C,{ref:n}),M);return l&&(k=d.createElement(K.Z,{onResize:function(e){Z(e.offsetWidth)},disabled:f},k)),k}var X=d.forwardRef(Y);X.displayName="Item";var G=X;var q=t(73935),Q=function(e){return+setTimeout(e,16)},$=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Q=function(e){return window.requestAnimationFrame(e)},$=function(e){return window.cancelAnimationFrame(e)});var J=0,ee=new Map;function ne(e){ee.delete(e)}var te=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=J+=1;function o(n){if(0===n)ne(t),e();else{var r=Q((function(){o(n-1)}));ee.set(t,r)}}return o(n),t};te.cancel=function(e){var n=ee.get(e);return ne(n),$(n)};var oe=te;function re(){var e=d.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)oe(e);else{var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(void 0)}}((function(){(0,q.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function ae(e,n){var t=d.useState(n),o=(0,l.Z)(t,2),r=o[0],a=o[1],i=function(e){var n=d.useRef();n.current=e;var t=d.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return t}((function(n){e((function(){a(n)}))}));return[r,i]}var ie=d.createContext(null),ue=["component"],ce=["className"],le=["className"],se=function(e,n){var t=d.useContext(ie);if(!t){var o=e.component,i=void 0===o?"div":o,u=(0,s.Z)(e,ue);return d.createElement(i,(0,a.Z)({},u,{ref:n}))}var c=t.className,l=(0,s.Z)(t,ce),f=e.className,p=(0,s.Z)(e,le);return d.createElement(ie.Provider,{value:null},d.createElement(G,(0,a.Z)({ref:n,className:r()(c,f)},l,p)))},fe=d.forwardRef(se);fe.displayName="RawItem";var de=fe,pe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ve="responsive",me="invalidate";function he(e){return"+ ".concat(e.length," ...")}function ge(e,n){var t=e.prefixCls,o=void 0===t?"rc-overflow":t,i=e.data,u=void 0===i?[]:i,f=e.renderItem,p=e.renderRawItem,v=e.itemKey,m=e.itemWidth,h=void 0===m?10:m,g=e.ssr,y=e.style,b=e.className,w=e.maxCount,E=e.renderRest,C=e.renderRawRest,S=e.suffix,Z=e.component,N=void 0===Z?"div":Z,M=e.itemComponent,x=e.onVisibleChange,k=(0,s.Z)(e,pe),R="full"===g,I=re(),A=ae(I,null),P=(0,l.Z)(A,2),O=P[0],T=P[1],D=O||0,L=ae(I,new Map),_=(0,l.Z)(L,2),F=_[0],V=_[1],U=ae(I,0),H=(0,l.Z)(U,2),W=H[0],j=H[1],B=ae(I,0),Y=(0,l.Z)(B,2),X=Y[0],q=Y[1],Q=ae(I,0),$=(0,l.Z)(Q,2),J=$[0],ee=$[1],ne=(0,d.useState)(null),te=(0,l.Z)(ne,2),oe=te[0],ue=te[1],ce=(0,d.useState)(null),le=(0,l.Z)(ce,2),se=le[0],fe=le[1],de=d.useMemo((function(){return null===se&&R?Number.MAX_SAFE_INTEGER:se||0}),[se,O]),ge=(0,d.useState)(!1),ye=(0,l.Z)(ge,2),be=ye[0],we=ye[1],Ee="".concat(o,"-item"),Ce=Math.max(W,X),Se=w===ve,Ze=u.length&&Se,Ne=w===me,Me=Ze||"number"==typeof w&&u.length>w,xe=(0,d.useMemo)((function(){var e=u;return Ze?e=null===O&&R?u:u.slice(0,Math.min(u.length,D/h)):"number"==typeof w&&(e=u.slice(0,w)),e}),[u,h,O,w,Ze]),ke=(0,d.useMemo)((function(){return Ze?u.slice(de+1):u.slice(xe.length)}),[u,xe,Ze,de]),Re=(0,d.useCallback)((function(e,n){var t;return"function"==typeof v?v(e):null!==(t=v&&(null==e?void 0:e[v]))&&void 0!==t?t:n}),[v]),Ie=(0,d.useCallback)(f||function(e){return e},[f]);function Ae(e,n,t){(se!==e||void 0!==n&&n!==oe)&&(fe(e),t||(we(e<u.length-1),null==x||x(e)),void 0!==n&&ue(n))}function Pe(e,n){V((function(t){var o=new Map(t);return null===n?o.delete(e):o.set(e,n),o}))}function Oe(e){return F.get(Re(xe[e],e))}z((function(){if(D&&"number"==typeof Ce&&xe){var e=J,n=xe.length,t=n-1;if(!n)return void Ae(0,null);for(var o=0;o<n;o+=1){var r=Oe(o);if(R&&(r=r||0),void 0===r){Ae(o-1,void 0,!0);break}if(e+=r,0===t&&e<=D||o===t-1&&e+Oe(t)<=D){Ae(t,null);break}if(e+Ce>D){Ae(o-1,e-r-J+X);break}}S&&Oe(0)+J>D&&ue(null)}}),[D,F,X,J,Re,xe]);var Te=be&&!!ke.length,De={};null!==oe&&Ze&&(De={position:"absolute",left:oe,top:0});var Le,_e={prefixCls:Ee,responsive:Ze,component:M,invalidate:Ne},Fe=p?function(e,n){var t=Re(e,n);return d.createElement(ie.Provider,{key:t,value:(0,c.Z)((0,c.Z)({},_e),{},{order:n,item:e,itemKey:t,registerSize:Pe,display:n<=de})},p(e,n))}:function(e,n){var t=Re(e,n);return d.createElement(G,(0,a.Z)({},_e,{order:n,key:t,item:e,renderItem:Ie,itemKey:t,registerSize:Pe,display:n<=de}))},Ve={order:Te?de:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:function(e,n){q(n),j(X)},display:Te};if(C)C&&(Le=d.createElement(ie.Provider,{value:(0,c.Z)((0,c.Z)({},_e),Ve)},C(ke)));else{var Ue=E||he;Le=d.createElement(G,(0,a.Z)({},_e,Ve),"function"==typeof Ue?Ue(ke):Ue)}var He=d.createElement(N,(0,a.Z)({className:r()(!Ne&&o,b),style:y,ref:n},k),xe.map(Fe),Me?Le:null,S&&d.createElement(G,(0,a.Z)({},_e,{responsive:Se,responsiveDisabled:!Ze,order:de,className:"".concat(Ee,"-suffix"),registerSize:function(e,n){ee(n)},display:!0,style:De}),S));return Se&&(He=d.createElement(K.Z,{onResize:function(e,n){T(n.clientWidth)},disabled:!Ze},He)),He}var ye=d.forwardRef(ge);ye.displayName="Overflow",ye.Item=de,ye.RESPONSIVE=ve,ye.INVALIDATE=me;var be=ye,we=function(e,n){var t,o,a=e.prefixCls,i=e.id,u=e.inputElement,l=e.disabled,s=e.tabIndex,f=e.autoFocus,p=e.autoComplete,v=e.editable,m=e.activeDescendantId,h=e.value,g=e.maxLength,y=e.onKeyDown,b=e.onMouseDown,w=e.onChange,E=e.onPaste,C=e.onCompositionStart,Z=e.onCompositionEnd,N=e.open,M=e.attrs,x=u||d.createElement("input",null),k=x,R=k.ref,I=k.props,P=I.onKeyDown,O=I.onChange,T=I.onMouseDown,D=I.onCompositionStart,L=I.onCompositionEnd,_=I.style;return S(x.props),x=d.cloneElement(x,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},I),{},{id:i,ref:A(n,R),disabled:l,tabIndex:s,autoComplete:p||"off",autoFocus:f,className:r()("".concat(a,"-selection-search-input"),null===(t=x)||void 0===t||null===(o=t.props)||void 0===o?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":N||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":N?m:void 0},M),{},{value:v?h:"",maxLength:g,readOnly:!v,unselectable:v?null:"on",style:(0,c.Z)((0,c.Z)({},_),{},{opacity:v?null:0}),onKeyDown:function(e){y(e),P&&P(e)},onMouseDown:function(e){b(e),T&&T(e)},onChange:function(e){w(e),O&&O(e)},onCompositionStart:function(e){C(e),D&&D(e)},onCompositionEnd:function(e){Z(e),L&&L(e)},onPaste:E}))},Ee=d.forwardRef(we);Ee.displayName="Input";var Ce=Ee;function Se(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Ze="undefined"!=typeof window&&window.document&&window.document.documentElement;function Ne(e){return["string","number"].includes((0,f.Z)(e))}function Me(e){var n=void 0;return e&&(Ne(e.title)?n=e.title.toString():Ne(e.label)&&(n=e.label.toString())),n}function xe(e){var n;return null!==(n=e.key)&&void 0!==n?n:e.value}var ke=function(e){e.preventDefault(),e.stopPropagation()},Re=function(e){var n,t,o=e.id,a=e.prefixCls,i=e.values,c=e.open,s=e.searchValue,f=e.autoClearSearchValue,p=e.inputRef,v=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,y=e.autoFocus,b=e.autoComplete,w=e.activeDescendantId,E=e.tabIndex,C=e.removeIcon,S=e.maxTagCount,Z=e.maxTagTextLength,N=e.maxTagPlaceholder,M=void 0===N?function(e){return"+ ".concat(e.length," ...")}:N,x=e.tagRender,k=e.onToggleOpen,R=e.onRemove,I=e.onInputChange,A=e.onInputPaste,P=e.onInputKeyDown,O=e.onInputMouseDown,D=e.onInputCompositionStart,L=e.onInputCompositionEnd,_=d.useRef(null),F=(0,d.useState)(0),V=(0,l.Z)(F,2),U=V[0],K=V[1],W=(0,d.useState)(!1),z=(0,l.Z)(W,2),j=z[0],B=z[1],Y="".concat(a,"-selection"),X=c||"multiple"===h&&!1===f||"tags"===h?s:"",G="tags"===h||"multiple"===h&&!1===f||g&&(c||j);function q(e,n,t,o,a){return d.createElement("span",{className:r()("".concat(Y,"-item"),(0,u.Z)({},"".concat(Y,"-item-disabled"),t)),title:Me(e)},d.createElement("span",{className:"".concat(Y,"-item-content")},n),o&&d.createElement(T,{className:"".concat(Y,"-item-remove"),onMouseDown:ke,onClick:a,customizeIcon:C},"×"))}n=function(){K(_.current.scrollWidth)},t=[X],Ze?d.useLayoutEffect(n,t):d.useEffect(n,t);var Q=d.createElement("div",{className:"".concat(Y,"-search"),style:{width:U},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},d.createElement(Ce,{ref:p,open:c,prefixCls:a,id:o,inputElement:null,disabled:m,autoFocus:y,autoComplete:b,editable:G,activeDescendantId:w,value:X,onKeyDown:P,onMouseDown:O,onChange:I,onPaste:A,onCompositionStart:D,onCompositionEnd:L,tabIndex:E,attrs:H(e,!0)}),d.createElement("span",{ref:_,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},X," ")),$=d.createElement(be,{prefixCls:"".concat(Y,"-overflow"),data:i,renderItem:function(e){var n=e.disabled,t=e.label,o=e.value,r=!m&&!n,a=t;if("number"==typeof Z&&("string"==typeof t||"number"==typeof t)){var i=String(a);i.length>Z&&(a="".concat(i.slice(0,Z),"..."))}var u=function(n){n&&n.stopPropagation(),R(e)};return"function"==typeof x?function(e,n,t,o,r){return d.createElement("span",{onMouseDown:function(e){ke(e),k(!c)}},x({label:n,value:e,disabled:t,closable:o,onClose:r}))}(o,a,n,r,u):q(e,a,n,r,u)},renderRest:function(e){var n="function"==typeof M?M(e):M;return q({title:n},n,!1)},suffix:Q,itemKey:xe,maxCount:S});return d.createElement(d.Fragment,null,$,!i.length&&!X&&d.createElement("span",{className:"".concat(Y,"-placeholder")},v))},Ie=function(e){var n=e.inputElement,t=e.prefixCls,o=e.id,r=e.inputRef,a=e.disabled,i=e.autoFocus,u=e.autoComplete,c=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,v=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,y=e.activeValue,b=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,C=e.onInputChange,S=e.onInputPaste,Z=e.onInputCompositionStart,N=e.onInputCompositionEnd,M=e.title,x=d.useState(!1),k=(0,l.Z)(x,2),R=k[0],I=k[1],A="combobox"===s,P=A||h,O=p[0],T=g||"";A&&y&&!R&&(T=y),d.useEffect((function(){A&&I(!1)}),[A,y]);var D=!("combobox"!==s&&!f&&!h)&&!!T,L=void 0===M?Me(O):M;return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(t,"-selection-search")},d.createElement(Ce,{ref:r,prefixCls:t,id:o,open:f,inputElement:n,disabled:a,autoFocus:i,autoComplete:u,editable:P,activeDescendantId:c,value:T,onKeyDown:w,onMouseDown:E,onChange:function(e){I(!0),C(e)},onPaste:S,onCompositionStart:Z,onCompositionEnd:N,tabIndex:m,attrs:H(e,!0),maxLength:A?b:void 0})),!A&&O?d.createElement("span",{className:"".concat(t,"-selection-item"),title:L,style:D?{visibility:"hidden"}:void 0},O.label):null,function(){if(O)return null;var e=D?{visibility:"hidden"}:void 0;return d.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:e},v)}())};var Ae=function(e,n){var t=(0,d.useRef)(null),o=(0,d.useRef)(!1),r=e.prefixCls,i=e.open,u=e.mode,c=e.showSearch,s=e.tokenWithEnter,f=e.autoClearSearchValue,p=e.onSearch,v=e.onSearchSubmit,m=e.onToggleOpen,h=e.onInputKeyDown,g=e.domRef;d.useImperativeHandle(n,(function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}}));var y=L(0),b=(0,l.Z)(y,2),w=b[0],E=b[1],C=(0,d.useRef)(null),S=function(e){!1!==p(e,!0,o.current)&&m(!0)},Z={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==x.UP&&t!==x.DOWN||e.preventDefault(),h&&h(e),t!==x.ENTER||"tags"!==u||o.current||i||null==v||v(e.target.value),n=t,[x.ESC,x.SHIFT,x.BACKSPACE,x.TAB,x.WIN_KEY,x.ALT,x.META,x.WIN_KEY_RIGHT,x.CTRL,x.SEMICOLON,x.EQUALS,x.CAPS_LOCK,x.CONTEXT_MENU,x.F1,x.F2,x.F3,x.F4,x.F5,x.F6,x.F7,x.F8,x.F9,x.F10,x.F11,x.F12].includes(n)||m(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var n=e.target.value;if(s&&C.current&&/[\r\n]/.test(C.current)){var t=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,C.current)}C.current=null,S(n)},onInputPaste:function(e){var n=e.clipboardData.getData("text");C.current=n},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==u&&S(e.target.value)}},N="multiple"===u||"tags"===u?d.createElement(Re,(0,a.Z)({},e,Z)):d.createElement(Ie,(0,a.Z)({},e,Z));return d.createElement("div",{ref:g,className:"".concat(r,"-selector"),onClick:function(e){e.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){t.current.focus()})):t.current.focus())},onMouseDown:function(e){var n=w();e.target===t.current||n||"combobox"===u||e.preventDefault(),("combobox"===u||c&&n)&&i||(i&&!1!==f&&p("",!0,!1),m())}},N)},Pe=d.forwardRef(Ae);Pe.displayName="Selector";var Oe=Pe,Te=d.createContext(null),De=[];var Le,_e="data-rc-order",Fe="rc-util-key",Ve=new Map;function Ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):Fe}function He(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ke(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function We(e){return Array.from((Ve.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ze(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!m())return null;var t=n.csp,o=n.prepend,r=document.createElement("style");r.setAttribute(_e,Ke(o)),null!=t&&t.nonce&&(r.nonce=null==t?void 0:t.nonce),r.innerHTML=e;var a=He(n),i=a.firstChild;if(o){if("queue"===o){var u=We(a).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(_e))}));if(u.length)return a.insertBefore(r,u[u.length-1].nextSibling),r}a.insertBefore(r,i)}else a.appendChild(r);return r}function je(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=He(n);return We(t).find((function(t){return t.getAttribute(Ue(n))===e}))}function Be(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=je(e,n);if(t){var o=He(n);o.removeChild(t)}}function Ye(e,n){var t=Ve.get(e);if(!t||!function(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var t=n;t;){if(t===e)return!0;t=t.parentNode}return!1}(document,t)){var o=ze("",n),r=o.parentNode;Ve.set(e,r),e.removeChild(o)}}function Xe(e){var n=e.match(/^(.*)px$/),t=Number(null==n?void 0:n[1]);return Number.isNaN(t)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===Le){var n=document.createElement("div");n.style.width="100%",n.style.height="200px";var t=document.createElement("div"),o=t.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",t.appendChild(n),document.body.appendChild(t);var r=n.offsetWidth;t.style.overflow="scroll";var a=n.offsetWidth;r===a&&(a=t.clientWidth),document.body.removeChild(t),Le=r-a}return Le}():t}var Ge="rc-util-locker-".concat(Date.now()),qe=0;function Qe(e){var n=!!e,t=d.useState((function(){return qe+=1,"".concat(Ge,"_").concat(qe)})),o=(0,l.Z)(t,1)[0];g((function(){if(n){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var n=getComputedStyle(e,"::-webkit-scrollbar"),t=n.width,o=n.height;return{width:Xe(t),height:Xe(o)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;!function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ye(He(t),t);var o=je(n,t);if(o){var r,a,i;return null!==(r=t.csp)&&void 0!==r&&r.nonce&&o.nonce!==(null===(a=t.csp)||void 0===a?void 0:a.nonce)&&(o.nonce=null===(i=t.csp)||void 0===i?void 0:i.nonce),o.innerHTML!==e&&(o.innerHTML=e),o}var u=ze(e,t);u.setAttribute(Ue(t),n)}("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else Be(o);return function(){Be(o)}}),[n,o])}var $e=!1;var Je=function(e){return!1!==e&&(m()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},en=d.forwardRef((function(e,n){var t=e.open,o=e.autoLock,r=e.getContainer,a=(e.debug,e.autoDestroy),u=void 0===a||a,c=e.children,s=d.useState(t),f=(0,l.Z)(s,2),p=f[0],v=f[1],h=p||t;d.useEffect((function(){(u||t)&&v(t)}),[t,u]);var y=d.useState((function(){return Je(r)})),b=(0,l.Z)(y,2),w=b[0],E=b[1];d.useEffect((function(){var e=Je(r);E(null!=e?e:null)}));var C=function(e,n){var t=d.useState((function(){return m()?document.createElement("div"):null})),o=(0,l.Z)(t,1)[0],r=d.useRef(!1),a=d.useContext(Te),u=d.useState(De),c=(0,l.Z)(u,2),s=c[0],f=c[1],p=a||(r.current?void 0:function(e){f((function(n){return[e].concat((0,i.Z)(n))}))});function v(){o.parentElement||document.body.appendChild(o),r.current=!0}function h(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),r.current=!1}return g((function(){return e?a?a(v):v():h(),h}),[e]),g((function(){s.length&&(s.forEach((function(e){return e()})),f(De))}),[s]),[o,p]}(h&&!w),S=(0,l.Z)(C,2),Z=S[0],N=S[1],M=null!=w?w:Z;Qe(o&&t&&m()&&(M===Z||M===document.body));var x=null;c&&O(c)&&n&&(x=c.ref);var k=P(x,n);if(!h||!m()||void 0===w)return null;var R,I=!1===M||("boolean"==typeof R&&($e=R),$e),A=c;return n&&(A=d.cloneElement(c,{ref:k})),d.createElement(Te.Provider,{value:N},I?A:(0,q.createPortal)(A,M))}));var nn=en;function tn(e){return e instanceof HTMLElement||e instanceof SVGElement}function on(e){var n;return null==e||null===(n=e.getRootNode)||void 0===n?void 0:n.call(e)}function rn(e){return function(e){return on(e)!==(null==e?void 0:e.ownerDocument)}(e)?on(e):null}function an(e){var n=d.useRef();n.current=e;var t=d.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return t}var un=0;function cn(e){var n=d.useState("ssr-id"),t=(0,l.Z)(n,2),o=t[0],r=t[1],a=(0,c.Z)({},p).useId,i=null==a?void 0:a();return d.useEffect((function(){if(!a){var e=un;un+=1,r("rc_unique_".concat(e))}}),[]),e||(i||o)}var ln="undefined"!=typeof window&&window.document&&window.document.createElement?d.useLayoutEffect:d.useEffect,sn=function(e,n){var t=d.useRef(!0);ln((function(){return e(t.current)}),n),ln((function(){return t.current=!1,function(){t.current=!0}}),[])},fn=sn,dn=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},pn=d.createContext(null);function vn(e){return e?Array.isArray(e)?e:[e]:[]}function mn(e,n,t,o){return d.useMemo((function(){var r=vn(null!=t?t:n),a=vn(null!=o?o:n),i=new Set(r),u=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[i,u]}),[e,n,t,o])}function hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function gn(e,n,t,o){for(var r=t.points,a=Object.keys(e),i=0;i<a.length;i+=1){var u,c=a[i];if(hn(null===(u=e[c])||void 0===u?void 0:u.points,r,o))return"".concat(n,"-placement-").concat(c)}return""}function yn(e,n,t,o){return n||(t?{motionName:"".concat(e,"-").concat(t)}:o?{motionName:o}:null)}function bn(e){return e.ownerDocument.defaultView}function wn(e){for(var n=[],t=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];t;){var r=bn(t).getComputedStyle(t);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&n.push(t),t=t.parentElement}return n}function En(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?n:e}function Cn(e){return En(parseFloat(e),0)}function Sn(e,n){var t=(0,c.Z)({},e);return(n||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement)){var n=bn(e).getComputedStyle(e),o=n.overflow,r=n.overflowClipMargin,a=n.borderTopWidth,i=n.borderBottomWidth,u=n.borderLeftWidth,c=n.borderRightWidth,l=e.getBoundingClientRect(),s=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,v=Cn(a),m=Cn(i),h=Cn(u),g=Cn(c),y=En(Math.round(l.width/d*1e3)/1e3),b=En(Math.round(l.height/s*1e3)/1e3),w=(d-p-h-g)*y,E=(s-f-v-m)*b,C=v*b,S=m*b,Z=h*y,N=g*y,M=0,x=0;if("clip"===o){var k=Cn(r);M=k*y,x=k*b}var R=l.x+Z-M,I=l.y+C-x,A=R+l.width+2*M-Z-N-w,P=I+l.height+2*x-C-S-E;t.left=Math.max(t.left,R),t.top=Math.max(t.top,I),t.right=Math.min(t.right,A),t.bottom=Math.min(t.bottom,P)}})),t}function Zn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t="".concat(n),o=t.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(t)}function Nn(e,n){var t=n||[],o=(0,l.Z)(t,2),r=o[0],a=o[1];return[Zn(e.width,r),Zn(e.height,a)]}function Mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function xn(e,n){var t,o=n[0],r=n[1];return t="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:t}}function kn(e,n){var t={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===n?t[e]||"c":e})).join("")}function Rn(e,n,t,o,r,a,i){var u=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),s=(0,l.Z)(u,2),f=s[0],p=s[1],v=d.useRef(0),m=d.useMemo((function(){return n?wn(n):[]}),[n]),h=d.useRef({});e||(h.current={});var g=an((function(){if(n&&t&&e){var u,s=n,f=s.style.left,d=s.style.top,v=s.style.right,g=s.style.bottom,y=s.ownerDocument,b=bn(s),w=(0,c.Z)((0,c.Z)({},r[o]),a);if(s.style.left="0",s.style.top="0",s.style.right="auto",s.style.bottom="auto",Array.isArray(t))u={x:t[0],y:t[1],width:0,height:0};else{var E=t.getBoundingClientRect();u={x:E.x,y:E.y,width:E.width,height:E.height}}var C=s.getBoundingClientRect(),S=b.getComputedStyle(s),Z=S.width,N=S.height,M=y.documentElement,x=M.clientWidth,k=M.clientHeight,R=M.scrollWidth,I=M.scrollHeight,A=M.scrollTop,P=M.scrollLeft,O=C.height,T=C.width,D=u.height,L=u.width,_={left:0,top:0,right:x,bottom:k},F={left:-P,top:-A,right:R-P,bottom:I-A},V=w.htmlRegion,U="visible",H="visibleFirst";"scroll"!==V&&V!==H&&(V=U);var K=V===H,W=Sn(F,m),z=Sn(_,m),j=V===U?z:W,B=K?z:j;s.style.left="auto",s.style.top="auto",s.style.right="0",s.style.bottom="0";var Y=s.getBoundingClientRect();s.style.left=f,s.style.top=d,s.style.right=v,s.style.bottom=g;var X=En(Math.round(T/parseFloat(Z)*1e3)/1e3),G=En(Math.round(O/parseFloat(N)*1e3)/1e3);if(0===X||0===G||tn(t)&&!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var n=e.getBBox(),t=n.width,o=n.height;if(t||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),a=r.width,i=r.height;if(a||i)return!0}}return!1}(t))return;var q=w.offset,Q=w.targetOffset,$=Nn(C,q),J=(0,l.Z)($,2),ee=J[0],ne=J[1],te=Nn(u,Q),oe=(0,l.Z)(te,2),re=oe[0],ae=oe[1];u.x-=re,u.y-=ae;var ie=w.points||[],ue=(0,l.Z)(ie,2),ce=ue[0],le=Mn(ue[1]),se=Mn(ce),fe=xn(u,le),de=xn(C,se),pe=(0,c.Z)({},w),ve=fe.x-de.x+ee,me=fe.y-de.y+ne;function sn(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j,o=C.x+e,r=C.y+n,a=o+T,i=r+O,u=Math.max(o,t.left),c=Math.max(r,t.top),l=Math.min(a,t.right),s=Math.min(i,t.bottom);return Math.max(0,(l-u)*(s-c))}var he,ge,ye,be,we=sn(ve,me),Ee=sn(ve,me,z),Ce=xn(u,["t","l"]),Se=xn(C,["t","l"]),Ze=xn(u,["b","r"]),Ne=xn(C,["b","r"]),Me=w.overflow||{},xe=Me.adjustX,ke=Me.adjustY,Re=Me.shiftX,Ie=Me.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function fn(){he=C.y+me,ge=he+O,ye=C.x+ve,be=ye+T}fn();var Pe=Ae(ke),Oe=se[0]===le[0];if(Pe&&"t"===se[0]&&(ge>B.bottom||h.current.bt)){var Te=me;Oe?Te-=O-D:Te=Ce.y-Ne.y-ne;var De=sn(ve,Te),Le=sn(ve,Te,z);De>we||De===we&&(!K||Le>=Ee)?(h.current.bt=!0,me=Te,pe.points=[kn(se,0),kn(le,0)]):h.current.bt=!1}if(Pe&&"b"===se[0]&&(he<B.top||h.current.tb)){var _e=me;Oe?_e+=O-D:_e=Ze.y-Se.y-ne;var Fe=sn(ve,_e),Ve=sn(ve,_e,z);Fe>we||Fe===we&&(!K||Ve>=Ee)?(h.current.tb=!0,me=_e,pe.points=[kn(se,0),kn(le,0)]):h.current.tb=!1}var Ue=Ae(xe),He=se[1]===le[1];if(Ue&&"l"===se[1]&&(be>B.right||h.current.rl)){var Ke=ve;He?Ke-=T-L:Ke=Ce.x-Ne.x-ee;var We=sn(Ke,me),ze=sn(Ke,me,z);We>we||We===we&&(!K||ze>=Ee)?(h.current.rl=!0,ve=Ke,pe.points=[kn(se,1),kn(le,1)]):h.current.rl=!1}if(Ue&&"r"===se[1]&&(ye<B.left||h.current.lr)){var je=ve;He?je+=T-L:je=Ze.x-Se.x-ee;var Be=sn(je,me),Ye=sn(je,me,z);Be>we||Be===we&&(!K||Ye>=Ee)?(h.current.lr=!0,ve=je,pe.points=[kn(se,1),kn(le,1)]):h.current.lr=!1}fn();var Xe=!0===Re?0:Re;"number"==typeof Xe&&(ye<z.left&&(ve-=ye-z.left,u.x+L<z.left+Xe&&(ve+=u.x-z.left+L-Xe)),be>z.right&&(ve-=be-z.right,u.x>z.right-Xe&&(ve+=u.x-z.right+Xe)));var Ge=!0===Ie?0:Ie;"number"==typeof Ge&&(he<z.top&&(me-=he-z.top,u.y+D<z.top+Ge&&(me+=u.y-z.top+D-Ge)),ge>z.bottom&&(me-=ge-z.bottom,u.y>z.bottom-Ge&&(me+=u.y-z.bottom+Ge)));var qe=C.x+ve,Qe=qe+T,$e=C.y+me,Je=$e+O,en=u.x,nn=en+L,on=u.y,rn=on+D,an=(Math.max(qe,en)+Math.min(Qe,nn))/2-qe,un=(Math.max($e,on)+Math.min(Je,rn))/2-$e;null==i||i(n,pe);var cn=Y.right-C.x-(ve+C.width),ln=Y.bottom-C.y-(me+C.height);p({ready:!0,offsetX:ve/X,offsetY:me/G,offsetR:cn/X,offsetB:ln/G,arrowX:an/X,arrowY:un/G,scaleX:X,scaleY:G,align:pe})}})),y=function(){p((function(e){return(0,c.Z)((0,c.Z)({},e),{},{ready:!1})}))};return fn(y,[o]),fn((function(){e||y()}),[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&g()}))}]}function In(e,n,t,o){fn((function(){if(e&&n&&t){var r=t,a=wn(n),u=wn(r),c=bn(r),l=new Set([c].concat((0,i.Z)(a),(0,i.Z)(u)));function s(){o()}return l.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),c.addEventListener("resize",s,{passive:!0}),o(),function(){l.forEach((function(e){e.removeEventListener("scroll",s),c.removeEventListener("resize",s)}))}}}),[e,n,t])}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;var An={},Pn=[];function On(e,n){}function Tn(e,n){}function Dn(e,n,t){n||An[t]||(e(!1,t),An[t]=!0)}function Ln(e,n){Dn(On,e,n)}Ln.preMessage=function(e){Pn.push(e)},Ln.resetWarned=function(){An={}},Ln.noteOnce=function(e,n){Dn(Tn,e,n)};var _n=function(e){return+setTimeout(e,16)},Fn=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(_n=function(e){return window.requestAnimationFrame(e)},Fn=function(e){return window.cancelAnimationFrame(e)});var Vn=0,Un=new Map;function Hn(e){Un.delete(e)}var Kn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=Vn+=1;function o(n){if(0===n)Hn(t),e();else{var r=_n((function(){o(n-1)}));Un.set(t,r)}}return o(n),t};Kn.cancel=function(e){var n=Un.get(e);return Hn(n),Fn(n)};var Wn=Kn;function zn(e,n,t,o,r,a,i,u){var c=d.useRef(e),s=d.useRef(!1);c.current!==e&&(s.current=!0,c.current=e),d.useEffect((function(){var e=Wn((function(){s.current=!1}));return function(){Wn.cancel(e)}}),[e]),d.useEffect((function(){if(n&&o&&(!r||a)){var e=function(){var e=!1;return[function(n){var t=n.target;e=i(t)},function(n){var t=n.target;s.current||!c.current||e||i(t)||u(!1)}]},f=e(),d=(0,l.Z)(f,2),p=d[0],v=d[1],m=e(),h=(0,l.Z)(m,2),g=h[0],y=h[1],b=bn(o);b.addEventListener("mousedown",p),b.addEventListener("click",v),b.addEventListener("contextmenu",v);var w=rn(t);return w&&(w.addEventListener("mousedown",g),w.addEventListener("click",y),w.addEventListener("contextmenu",y)),function(){b.removeEventListener("mousedown",p),b.removeEventListener("click",v),b.removeEventListener("contextmenu",v),w&&(w.removeEventListener("mousedown",g),w.removeEventListener("click",y),w.removeEventListener("contextmenu",y))}}}),[n,t,o,r,a])}function jn(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof d.Component?q.findDOMNode(e):null}function Bn(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(n),t["Moz".concat(e)]="moz".concat(n),t["ms".concat(e)]="MS".concat(n),t["O".concat(e)]="o".concat(n.toLowerCase()),t}var Yn,Xn,Gn,qn=(Yn=m(),Xn="undefined"!=typeof window?window:{},Gn={animationend:Bn("Animation","AnimationEnd"),transitionend:Bn("Transition","TransitionEnd")},Yn&&("AnimationEvent"in Xn||delete Gn.animationend.animation,"TransitionEvent"in Xn||delete Gn.transitionend.transition),Gn),Qn={};if(m()){var $n=document.createElement("div");Qn=$n.style}var Jn={};function et(e){if(Jn[e])return Jn[e];var n=qn[e];if(n)for(var t=Object.keys(n),o=t.length,r=0;r<o;r+=1){var a=t[r];if(Object.prototype.hasOwnProperty.call(n,a)&&a in Qn)return Jn[e]=n[a],Jn[e]}return""}var nt=et("animationend"),tt=et("transitionend"),ot=!(!nt||!tt),rt=nt||"animationend",at=tt||"transitionend";function it(e,n){if(!e)return null;if("object"===(0,f.Z)(e)){var t=n.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[t]}return"".concat(e,"-").concat(n)}var ut="none",ct="appear",lt="enter",st="leave",ft="none",dt="prepare",pt="start",vt="active",mt="end",ht=function(e){return+setTimeout(e,16)},gt=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ht=function(e){return window.requestAnimationFrame(e)},gt=function(e){return window.cancelAnimationFrame(e)});var yt=0,bt=new Map;function wt(e){bt.delete(e)}var Et=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=yt+=1;function o(n){if(0===n)wt(t),e();else{var r=ht((function(){o(n-1)}));bt.set(t,r)}}return o(n),t};Et.cancel=function(e){var n=bt.get(e);return wt(n),gt(n)};var Ct=Et,St=m()?d.useLayoutEffect:d.useEffect,Zt=[dt,pt,vt,mt];function Nt(e){return e===vt||e===mt}var Mt=function(e,n){var t=b(ft),o=(0,l.Z)(t,2),r=o[0],a=o[1],i=function(){var e=d.useRef(null);function n(){Ct.cancel(e.current)}return d.useEffect((function(){return function(){n()}}),[]),[function t(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var a=Ct((function(){r<=1?o({isCanceled:function(){return a!==e.current}}):t(o,r-1)}));e.current=a},n]}(),u=(0,l.Z)(i,2),c=u[0],s=u[1];return St((function(){if(r!==ft&&r!==mt){var e=Zt.indexOf(r),t=Zt[e+1],o=n(r);false===o?a(t,!0):c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,r]),d.useEffect((function(){return function(){s()}}),[]),[function(){a(dt,!0)},r]};function xt(e,n,t,o){var r=o.motionEnter,a=void 0===r||r,i=o.motionAppear,s=void 0===i||i,f=o.motionLeave,p=void 0===f||f,v=o.motionDeadline,m=o.motionLeaveImmediately,h=o.onAppearPrepare,g=o.onEnterPrepare,y=o.onLeavePrepare,w=o.onAppearStart,E=o.onEnterStart,C=o.onLeaveStart,S=o.onAppearActive,Z=o.onEnterActive,N=o.onLeaveActive,M=o.onAppearEnd,x=o.onEnterEnd,k=o.onLeaveEnd,R=o.onVisibleChanged,I=b(),A=(0,l.Z)(I,2),P=A[0],O=A[1],T=b(ut),D=(0,l.Z)(T,2),L=D[0],_=D[1],F=b(null),V=(0,l.Z)(F,2),U=V[0],H=V[1],K=(0,d.useRef)(!1),W=(0,d.useRef)(null);function z(){return t()}var j=(0,d.useRef)(!1);function B(e){var n=z();if(!e||e.deadline||e.target===n){var t,o=j.current;L===ct&&o?t=null==M?void 0:M(n,e):L===lt&&o?t=null==x?void 0:x(n,e):L===st&&o&&(t=null==k?void 0:k(n,e)),L!==ut&&o&&!1!==t&&(_(ut,!0),H(null,!0))}}var Y=function(e){var n=(0,d.useRef)(),t=(0,d.useRef)(e);t.current=e;var o=d.useCallback((function(e){t.current(e)}),[]);function r(e){e&&(e.removeEventListener(at,o),e.removeEventListener(rt,o))}return d.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(at,o),e.addEventListener(rt,o),n.current=e)},r]}(B),X=(0,l.Z)(Y,1)[0],G=d.useMemo((function(){var e,n,t;switch(L){case ct:return e={},(0,u.Z)(e,dt,h),(0,u.Z)(e,pt,w),(0,u.Z)(e,vt,S),e;case lt:return n={},(0,u.Z)(n,dt,g),(0,u.Z)(n,pt,E),(0,u.Z)(n,vt,Z),n;case st:return t={},(0,u.Z)(t,dt,y),(0,u.Z)(t,pt,C),(0,u.Z)(t,vt,N),t;default:return{}}}),[L]),q=Mt(L,(function(e){if(e===dt){var n=G[dt];return!!n&&n(z())}var t;J in G&&H((null===(t=G[J])||void 0===t?void 0:t.call(G,z(),null))||null);return J===vt&&(X(z()),v>0&&(clearTimeout(W.current),W.current=setTimeout((function(){B({deadline:!0})}),v))),true})),Q=(0,l.Z)(q,2),$=Q[0],J=Q[1],ee=Nt(J);j.current=ee,St((function(){O(n);var t,o=K.current;(K.current=!0,e)&&(!o&&n&&s&&(t=ct),o&&n&&a&&(t=lt),(o&&!n&&p||!o&&m&&!n&&p)&&(t=st),t&&(_(t),$()))}),[n]),(0,d.useEffect)((function(){(L===ct&&!s||L===lt&&!a||L===st&&!p)&&_(ut)}),[s,a,p]),(0,d.useEffect)((function(){return function(){K.current=!1,clearTimeout(W.current)}}),[]);var ne=d.useRef(!1);(0,d.useEffect)((function(){P&&(ne.current=!0),void 0!==P&&L===ut&&((ne.current||P)&&(null==R||R(P)),ne.current=!0)}),[P,L]);var te=U;return G[dt]&&J===pt&&(te=(0,c.Z)({transition:"none"},te)),[L,J,te,null!=P?P:n]}var kt=t(15671),Rt=t(43144),It=t(60136),At=t(51630),Pt=function(e){(0,It.Z)(t,e);var n=(0,At.Z)(t);function t(){return(0,kt.Z)(this,t),n.apply(this,arguments)}return(0,Rt.Z)(t,[{key:"render",value:function(){return this.props.children}}]),t}(d.Component),Ot=Pt;var Tt=function(e){var n=e;function t(e){return!(!e.motionName||!n)}"object"===(0,f.Z)(e)&&(n=e.transitionSupport);var o=d.forwardRef((function(e,n){var o=e.visible,a=void 0===o||o,i=e.removeOnLeave,s=void 0===i||i,f=e.forceRender,p=e.children,v=e.motionName,m=e.leavedClassName,h=e.eventProps,g=t(e),y=(0,d.useRef)(),b=(0,d.useRef)();var w=xt(g,a,(function(){try{return y.current instanceof HTMLElement?y.current:jn(b.current)}catch(e){return null}}),e),E=(0,l.Z)(w,4),C=E[0],S=E[1],Z=E[2],N=E[3],M=d.useRef(N);N&&(M.current=!0);var x,k=d.useCallback((function(e){y.current=e,I(n,e)}),[n]),R=(0,c.Z)((0,c.Z)({},h),{},{visible:a});if(p)if(C!==ut&&t(e)){var A,P;S===dt?P="prepare":Nt(S)?P="active":S===pt&&(P="start"),x=p((0,c.Z)((0,c.Z)({},R),{},{className:r()(it(v,C),(A={},(0,u.Z)(A,it(v,"".concat(C,"-").concat(P)),P),(0,u.Z)(A,v,"string"==typeof v),A)),style:Z}),k)}else x=N?p((0,c.Z)({},R),k):!s&&M.current&&m?p((0,c.Z)((0,c.Z)({},R),{},{className:m}),k):f||!s&&!m?p((0,c.Z)((0,c.Z)({},R),{},{style:{display:"none"}}),k):null;else x=null;d.isValidElement(x)&&O(x)&&(x.ref||(x=d.cloneElement(x,{ref:k})));return d.createElement(Ot,{ref:b},x)}));return o.displayName="CSSMotion",o}(ot),Dt=t(97326),Lt="add",_t="keep",Ft="remove",Vt="removed";function Ut(e){var n;return n=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,c.Z)((0,c.Z)({},n),{},{key:String(n.key)})}function Ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Ut)}function Kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=[],o=0,r=n.length,a=Ht(e),i=Ht(n);a.forEach((function(e){for(var n=!1,a=o;a<r;a+=1){var u=i[a];if(u.key===e.key){o<a&&(t=t.concat(i.slice(o,a).map((function(e){return(0,c.Z)((0,c.Z)({},e),{},{status:Lt})}))),o=a),t.push((0,c.Z)((0,c.Z)({},u),{},{status:_t})),o+=1,n=!0;break}}n||t.push((0,c.Z)((0,c.Z)({},e),{},{status:Ft}))})),o<r&&(t=t.concat(i.slice(o).map((function(e){return(0,c.Z)((0,c.Z)({},e),{},{status:Lt})}))));var u={};t.forEach((function(e){var n=e.key;u[n]=(u[n]||0)+1}));var l=Object.keys(u).filter((function(e){return u[e]>1}));return l.forEach((function(e){(t=t.filter((function(n){var t=n.key,o=n.status;return t!==e||o!==Ft}))).forEach((function(n){n.key===e&&(n.status=_t)}))})),t}var Wt=["component","children","onVisibleChanged","onAllRemoved"],zt=["status"],jt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tt,t=function(e){(0,It.Z)(o,e);var t=(0,At.Z)(o);function o(){var e;(0,kt.Z)(this,o);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e=t.call.apply(t,[this].concat(r)),(0,u.Z)((0,Dt.Z)(e),"state",{keyEntities:[]}),(0,u.Z)((0,Dt.Z)(e),"removeKey",(function(n){var t=e.state.keyEntities.map((function(e){return e.key!==n?e:(0,c.Z)((0,c.Z)({},e),{},{status:Vt})}));return e.setState({keyEntities:t}),t.filter((function(e){return e.status!==Vt})).length})),e}return(0,Rt.Z)(o,[{key:"render",value:function(){var e=this,t=this.state.keyEntities,o=this.props,r=o.component,i=o.children,u=o.onVisibleChanged,c=o.onAllRemoved,l=(0,s.Z)(o,Wt),f=r||d.Fragment,p={};return jt.forEach((function(e){p[e]=l[e],delete l[e]})),delete l.keys,d.createElement(f,l,t.map((function(t){var o=t.status,r=(0,s.Z)(t,zt),l=o===Lt||o===_t;return d.createElement(n,(0,a.Z)({},p,{key:r.key,visible:l,eventProps:r,onVisibleChanged:function(n){(null==u||u(n,{key:r.key}),n)||0===e.removeKey(r.key)&&c&&c()}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=e.keys,o=n.keyEntities,r=Ht(t);return{keyEntities:Kt(o,r).filter((function(e){var n=o.find((function(n){var t=n.key;return e.key===t}));return!n||n.status!==Vt||e.status!==Ft}))}}}]),o}(d.Component);(0,u.Z)(t,"defaultProps",{component:"div"})}(ot);var Bt=Tt;function Yt(e,n,t){var o=d.useRef({});return"value"in o.current&&!t(o.current.condition,n)||(o.current.value=e(),o.current.condition=n),o.current.value}function Xt(e,n){"function"==typeof e?e(n):"object"===(0,f.Z)(e)&&e&&"current"in e&&(e.current=n)}function Gt(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o=n.filter((function(e){return e}));return o.length<=1?o[0]:function(e){n.forEach((function(n){Xt(n,e)}))}}function qt(e){var n=e.prefixCls,t=e.align,o=e.arrow,a=e.arrowPos,i=o||{},u=i.className,c=i.content,l=a.x,s=void 0===l?0:l,f=a.y,p=void 0===f?0:f,v=d.useRef();if(!t||!t.points)return null;var m={position:"absolute"};if(!1!==t.autoArrow){var h=t.points[0],g=t.points[1],y=h[0],b=h[1],w=g[0],E=g[1];y!==w&&["t","b"].includes(y)?"t"===y?m.top=0:m.bottom=0:m.top=p,b!==E&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=s}return d.createElement("div",{ref:v,className:r()("".concat(n,"-arrow"),u),style:m},c)}function Qt(e){var n=e.prefixCls,t=e.open,o=e.zIndex,i=e.mask,u=e.motion;return i?d.createElement(Bt,(0,a.Z)({},u,{motionAppear:!0,visible:t,removeOnLeave:!0}),(function(e){var t=e.className;return d.createElement("div",{style:{zIndex:o},className:r()("".concat(n,"-mask"),t)})})):null}var $t=d.memo((function(e){return e.children}),(function(e,n){return n.cache})),Jt=d.forwardRef((function(e,n){var t=e.popup,o=e.className,i=e.prefixCls,u=e.style,s=e.target,f=e.onVisibleChanged,p=e.open,v=e.keepDom,m=e.onClick,h=e.mask,g=e.arrow,y=e.arrowPos,b=e.align,w=e.motion,E=e.maskMotion,C=e.forceRender,S=e.getPopupContainer,Z=e.autoDestroy,N=e.portal,M=e.zIndex,x=e.onMouseEnter,k=e.onMouseLeave,R=e.ready,I=e.offsetX,A=e.offsetY,P=e.offsetR,O=e.offsetB,T=e.onAlign,D=e.onPrepare,L=e.stretch,_=e.targetWidth,F=e.targetHeight,V="function"==typeof t?t():t,U=p||v,H=(null==S?void 0:S.length)>0,W=d.useState(!S||!H),z=(0,l.Z)(W,2),j=z[0],B=z[1];if(fn((function(){!j&&H&&s&&B(!0)}),[j,H,s]),!j)return null;var Y="auto",X={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(R||!p){var G=b.points,q=b._experimental,Q=null==q?void 0:q.dynamicInset,$=Q&&"r"===G[0][1],J=Q&&"b"===G[0][0];$?(X.right=P,X.left=Y):(X.left=I,X.right=Y),J?(X.bottom=O,X.top=Y):(X.top=A,X.bottom=Y)}var ee={};return L&&(L.includes("height")&&F?ee.height=F:L.includes("minHeight")&&F&&(ee.minHeight=F),L.includes("width")&&_?ee.width=_:L.includes("minWidth")&&_&&(ee.minWidth=_)),p||(ee.pointerEvents="none"),d.createElement(N,{open:C||U,getContainer:S&&function(){return S(s)},autoDestroy:Z},d.createElement(Qt,{prefixCls:i,open:p,zIndex:M,mask:h,motion:E}),d.createElement(K.Z,{onResize:T,disabled:!p},(function(e){return d.createElement(Bt,(0,a.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},w,{onAppearPrepare:D,onEnterPrepare:D,visible:p,onVisibleChanged:function(e){var n;null==w||null===(n=w.onVisibleChanged)||void 0===n||n.call(w,e),f(e)}}),(function(t,a){var l=t.className,s=t.style,f=r()(i,l,o);return d.createElement("div",{ref:Gt(e,n,a),className:f,style:(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},X),ee),s),{},{boxSizing:"border-box",zIndex:M},u),onMouseEnter:x,onMouseLeave:k,onClick:m},g&&d.createElement(qt,{prefixCls:i,arrow:g,arrowPos:y,align:b}),d.createElement($t,{cache:!p},V))}))})))}));var eo=Jt,no=d.forwardRef((function(e,n){var t,o,r,a,i=e.children,u=e.getTriggerDOMNode,c=(t=i,!!("function"!=typeof(a=(0,k.isMemo)(t)?t.type.type:t.type)||null!==(o=a.prototype)&&void 0!==o&&o.render)&&!!("function"!=typeof t||null!==(r=t.prototype)&&void 0!==r&&r.render)),l=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return Yt((function(){return Gt.apply(void 0,n)}),n,(function(e,n){return e.length===n.length&&e.every((function(e,t){return e===n[t]}))}))}(d.useCallback((function(e){Xt(n,u?u(e):e)}),[u]),i.ref);return c?d.cloneElement(i,{ref:l}):i}));var to=no,oo=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var ro=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nn,n=d.forwardRef((function(n,t){var o=n.prefixCls,a=void 0===o?"rc-trigger-popup":o,i=n.children,u=n.action,f=void 0===u?"hover":u,p=n.showAction,v=n.hideAction,m=n.popupVisible,h=n.defaultPopupVisible,g=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,w=n.mouseLeaveDelay,E=void 0===w?.1:w,C=n.focusDelay,S=n.blurDelay,Z=n.mask,N=n.maskClosable,M=void 0===N||N,x=n.getPopupContainer,k=n.forceRender,R=n.autoDestroy,I=n.destroyPopupOnHide,A=n.popup,P=n.popupClassName,O=n.popupStyle,T=n.popupPlacement,D=n.builtinPlacements,L=void 0===D?{}:D,_=n.popupAlign,F=n.zIndex,V=n.stretch,U=n.getPopupClassNameFromAlign,H=n.alignPoint,W=n.onPopupClick,z=n.onPopupAlign,j=n.arrow,B=n.popupMotion,Y=n.maskMotion,X=n.popupTransitionName,G=n.popupAnimation,q=n.maskTransitionName,Q=n.maskAnimation,$=n.className,J=n.getTriggerDOMNode,ee=(0,s.Z)(n,oo),ne=R||I||!1,te=d.useState(!1),oe=(0,l.Z)(te,2),re=oe[0],ae=oe[1];fn((function(){ae(dn())}),[]);var ie=d.useRef({}),ue=d.useContext(pn),ce=d.useMemo((function(){return{registerSubPopup:function(e,n){ie.current[e]=n,null==ue||ue.registerSubPopup(e,n)}}}),[ue]),le=cn(),se=d.useState(null),fe=(0,l.Z)(se,2),de=fe[0],pe=fe[1],ve=an((function(e){tn(e)&&de!==e&&pe(e),null==ue||ue.registerSubPopup(le,e)})),me=d.useState(null),he=(0,l.Z)(me,2),ge=he[0],ye=he[1],be=an((function(e){tn(e)&&ge!==e&&ye(e)})),we=d.Children.only(i),Ee=(null==we?void 0:we.props)||{},Ce={},Se=an((function(e){var n,t,o=ge;return(null==o?void 0:o.contains(e))||(null===(n=rn(o))||void 0===n?void 0:n.host)===e||e===o||(null==de?void 0:de.contains(e))||(null===(t=rn(de))||void 0===t?void 0:t.host)===e||e===de||Object.values(ie.current).some((function(n){return(null==n?void 0:n.contains(e))||e===n}))})),Ze=yn(a,B,G,X),Ne=yn(a,Y,Q,q),Me=d.useState(h||!1),xe=(0,l.Z)(Me,2),ke=xe[0],Re=xe[1],Ie=null!=m?m:ke,Ae=an((function(e){void 0===m&&Re(e)}));fn((function(){Re(m||!1)}),[m]);var Pe=d.useRef(Ie);Pe.current=Ie;var Oe=an((function(e){Ie!==e&&(Ae(e),null==g||g(e))})),Te=d.useRef(),De=function(){clearTimeout(Te.current)},Le=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;De(),0===n?Oe(e):Te.current=setTimeout((function(){Oe(e)}),1e3*n)};d.useEffect((function(){return De}),[]);var _e=d.useState(!1),Fe=(0,l.Z)(_e,2),Ve=Fe[0],Ue=Fe[1];fn((function(e){e&&!Ie||Ue(!0)}),[Ie]);var He=d.useState(null),Ke=(0,l.Z)(He,2),We=Ke[0],ze=Ke[1],je=d.useState([0,0]),Be=(0,l.Z)(je,2),Ye=Be[0],Xe=Be[1],Ge=function(e){Xe([e.clientX,e.clientY])},qe=Rn(Ie,de,H?Ye:ge,T,L,_,z),Qe=(0,l.Z)(qe,11),$e=Qe[0],Je=Qe[1],en=Qe[2],nn=Qe[3],on=Qe[4],un=Qe[5],ln=Qe[6],sn=Qe[7],vn=Qe[8],hn=Qe[9],bn=Qe[10],wn=an((function(){Ve||bn()}));In(Ie,ge,de,wn),fn((function(){wn()}),[Ye,T]),fn((function(){!Ie||null!=L&&L[T]||wn()}),[JSON.stringify(_)]);var En=d.useMemo((function(){var e=gn(L,a,hn,H);return r()(e,null==U?void 0:U(hn))}),[hn,U,L,a,H]);d.useImperativeHandle(t,(function(){return{forceAlign:wn}}));fn((function(){We&&(bn(),We(),ze(null))}),[We]);var Cn=d.useState(0),Sn=(0,l.Z)(Cn,2),Zn=Sn[0],Nn=Sn[1],Mn=d.useState(0),xn=(0,l.Z)(Mn,2),kn=xn[0],An=xn[1],Pn=mn(re,f,p,v),On=(0,l.Z)(Pn,2),Tn=On[0],Dn=On[1],Ln=function(e,n,t,o){Ce[e]=function(r){var a;null==o||o(r),Le(n,t);for(var i=arguments.length,u=new Array(i>1?i-1:0),c=1;c<i;c++)u[c-1]=arguments[c];null===(a=Ee[e])||void 0===a||a.call.apply(a,[Ee,r].concat(u))}},_n=Tn.has("click"),Fn=Dn.has("click")||Dn.has("contextMenu");(_n||Fn)&&(Ce.onClick=function(e){var n;Pe.current&&Fn?Le(!1):!Pe.current&&_n&&(Ge(e),Le(!0));for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];null===(n=Ee.onClick)||void 0===n||n.call.apply(n,[Ee,e].concat(o))}),zn(Ie,Fn,ge,de,Z,M,Se,Le);var Vn,Un,Hn=Tn.has("hover"),Kn=Dn.has("hover");Hn&&(Ln("onMouseEnter",!0,b,(function(e){Ge(e)})),Vn=function(){(Ie||Ve)&&Le(!0,b)},H&&(Ce.onMouseMove=function(e){var n;null===(n=Ee.onMouseMove)||void 0===n||n.call(Ee,e)})),Kn&&(Ln("onMouseLeave",!1,E),Un=function(){Le(!1,E)}),Tn.has("focus")&&Ln("onFocus",!0,C),Dn.has("focus")&&Ln("onBlur",!1,S),Tn.has("contextMenu")&&(Ce.onContextMenu=function(e){var n;Pe.current&&Dn.has("contextMenu")?Le(!1):(Ge(e),Le(!0)),e.preventDefault();for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];null===(n=Ee.onContextMenu)||void 0===n||n.call.apply(n,[Ee,e].concat(o))}),$&&(Ce.className=r()(Ee.className,$));var Wn=(0,c.Z)((0,c.Z)({},Ee),Ce),jn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(jn[e]=function(){for(var n,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];null===(n=Wn[e])||void 0===n||n.call.apply(n,[Wn].concat(o)),ee[e].apply(ee,o)})}));var Bn=d.cloneElement(we,(0,c.Z)((0,c.Z)({},Wn),jn)),Yn={x:un,y:ln},Xn=j?(0,c.Z)({},!0!==j?j:{}):null;return d.createElement(d.Fragment,null,d.createElement(K.Z,{disabled:!Ie,ref:be,onResize:function(e,n){if(wn(),V){var t=n.getBoundingClientRect();Nn(t.width),An(t.height)}}},d.createElement(to,{getTriggerDOMNode:J},Bn)),d.createElement(pn.Provider,{value:ce},d.createElement(eo,{portal:e,ref:ve,prefixCls:a,popup:A,className:r()(P,En),style:O,target:ge,onMouseEnter:Vn,onMouseLeave:Un,zIndex:F,open:Ie,keepDom:Ve,onClick:W,mask:Z,motion:Ze,maskMotion:Ne,onVisibleChanged:function(e){Ue(!1),bn(),null==y||y(e)},onPrepare:function(){return new Promise((function(e){ze((function(){return e}))}))},forceRender:k,autoDestroy:ne,getPopupContainer:x,align:hn,arrow:Xn,arrowPos:Yn,ready:$e,offsetX:Je,offsetY:en,offsetR:nn,offsetB:on,onAlign:wn,stretch:V,targetWidth:Zn/sn,targetHeight:kn/vn})))}));return n}(nn),ao=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],io=function(e,n){var t=e.prefixCls,o=(e.disabled,e.visible),i=e.children,l=e.popupElement,f=e.animation,p=e.transitionName,v=e.dropdownStyle,m=e.dropdownClassName,h=e.direction,g=void 0===h?"ltr":h,y=e.placement,b=e.builtinPlacements,w=e.dropdownMatchSelectWidth,E=e.dropdownRender,C=e.dropdownAlign,S=e.getPopupContainer,Z=e.empty,N=e.getTriggerDOMNode,M=e.onPopupVisibleChange,x=e.onPopupMouseEnter,k=(0,s.Z)(e,ao),R="".concat(t,"-dropdown"),I=l;E&&(I=E(l));var A=d.useMemo((function(){return b||function(e){var n=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}}(w)}),[b,w]),P=f?"".concat(R,"-").concat(f):p,O="number"==typeof w,T=d.useMemo((function(){return O?null:!1===w?"minWidth":"width"}),[w,O]),D=v;O&&(D=(0,c.Z)((0,c.Z)({},D),{},{width:w}));var L=d.useRef(null);return d.useImperativeHandle(n,(function(){return{getPopupElement:function(){return L.current}}})),d.createElement(ro,(0,a.Z)({},k,{showAction:M?["click"]:[],hideAction:M?["click"]:[],popupPlacement:y||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:R,popupTransitionName:P,popup:d.createElement("div",{ref:L,onMouseEnter:x},I),stretch:T,popupAlign:C,popupVisible:o,getPopupContainer:S,popupClassName:r()(m,(0,u.Z)({},"".concat(R,"-empty"),Z)),popupStyle:D,getTriggerDOMNode:N,onPopupVisibleChange:M}),i)},uo=d.forwardRef(io);uo.displayName="SelectTrigger";var co=uo,lo=t(84506);function so(e,n){var t,o=e.key;return"value"in e&&(t=e.value),null!=o?o:void 0!==t?t:"rc-index-key-".concat(n)}function fo(e,n){var t=e||{},o=t.label||(n?"children":"label");return{label:o,value:t.value||"value",options:t.options||"options",groupLabel:t.groupLabel||o}}function po(e){var n=(0,c.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return N(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var vo=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],mo=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ho(e){return"tags"===e||"multiple"===e}var go=d.forwardRef((function(e,n){var t,o,p=e.id,v=e.prefixCls,m=e.className,h=e.showSearch,y=e.tagRender,b=e.direction,w=e.omitDomProps,C=e.displayValues,S=e.onDisplayValuesChange,Z=e.emptyOptions,N=e.notFoundContent,M=void 0===N?"Not Found":N,k=e.onClear,R=e.mode,I=e.disabled,A=e.loading,O=e.getInputElement,_=e.getRawInputElement,F=e.open,V=e.defaultOpen,U=e.onDropdownVisibleChange,H=e.activeValue,K=e.onActiveValueChange,W=e.activeDescendantId,z=e.searchValue,j=e.autoClearSearchValue,B=e.onSearch,Y=e.onSearchSplit,X=e.tokenSeparators,G=e.allowClear,q=e.suffixIcon,Q=e.clearIcon,$=e.OptionList,J=e.animation,ee=e.transitionName,ne=e.dropdownStyle,te=e.dropdownClassName,oe=e.dropdownMatchSelectWidth,re=e.dropdownRender,ae=e.dropdownAlign,ie=e.placement,ue=e.builtinPlacements,ce=e.getPopupContainer,le=e.showAction,se=void 0===le?[]:le,fe=e.onFocus,de=e.onBlur,pe=e.onKeyUp,ve=e.onKeyDown,me=e.onMouseDown,he=(0,s.Z)(e,vo),ge=ho(R),ye=(void 0!==h?h:ge)||"combobox"===R,be=(0,c.Z)({},he);mo.forEach((function(e){delete be[e]})),null==w||w.forEach((function(e){delete be[e]}));var we=d.useState(!1),Ee=(0,l.Z)(we,2),Ce=Ee[0],Se=Ee[1];d.useEffect((function(){Se(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]);var Ze=d.useRef(null),Ne=d.useRef(null),Me=d.useRef(null),xe=d.useRef(null),ke=d.useRef(null),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=d.useState(!1),t=(0,l.Z)(n,2),o=t[0],r=t[1],a=d.useRef(null),i=function(){window.clearTimeout(a.current)};return d.useEffect((function(){return i}),[]),[o,function(n,t){i(),a.current=window.setTimeout((function(){r(n),t&&t()}),e)},i]}(),Ie=(0,l.Z)(Re,3),Ae=Ie[0],Pe=Ie[1],Te=Ie[2];d.useImperativeHandle(n,(function(){var e,n;return{focus:null===(e=xe.current)||void 0===e?void 0:e.focus,blur:null===(n=xe.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=ke.current)||void 0===n?void 0:n.scrollTo(e)}}}));var De=d.useMemo((function(){var e;if("combobox"!==R)return z;var n=null===(e=C[0])||void 0===e?void 0:e.value;return"string"==typeof n||"number"==typeof n?String(n):""}),[z,R,C]),Le="combobox"===R&&"function"==typeof O&&O()||null,_e="function"==typeof _&&_(),Fe=P(Ne,null==_e||null===(t=_e.props)||void 0===t?void 0:t.ref),Ve=d.useState(!1),Ue=(0,l.Z)(Ve,2),He=Ue[0],Ke=Ue[1];g((function(){Ke(!0)}),[]);var We=E(!1,{defaultValue:V,value:F}),ze=(0,l.Z)(We,2),je=ze[0],Be=ze[1],Ye=!!He&&je,Xe=!M&&Z;(I||Xe&&Ye&&"combobox"===R)&&(Ye=!1);var Ge=!Xe&&Ye,qe=d.useCallback((function(e){var n=void 0!==e?e:!Ye;I||(Be(n),Ye!==n&&(null==U||U(n)))}),[I,Ye,Be,U]),Qe=d.useMemo((function(){return(X||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[X]),$e=function(e,n,t){var o=!0,r=e;null==K||K(null);var a=t?null:function(e,n){if(!n||!n.length)return null;var t=!1,o=function e(n,o){var r=(0,lo.Z)(o),a=r[0],u=r.slice(1);if(!a)return[n];var c=n.split(a);return t=t||c.length>1,c.reduce((function(n,t){return[].concat((0,i.Z)(n),(0,i.Z)(e(t,u)))}),[]).filter((function(e){return e}))}(e,n);return t?o:null}(e,X);return"combobox"!==R&&a&&(r="",null==Y||Y(a),qe(!1),o=!1),B&&De!==r&&B(r,{source:n?"typing":"effect"}),o};d.useEffect((function(){Ye||ge||"combobox"===R||$e("",!1,!1)}),[Ye]),d.useEffect((function(){je&&I&&Be(!1),I&&Pe(!1)}),[I]);var Je=L(),en=(0,l.Z)(Je,2),nn=en[0],tn=en[1],on=d.useRef(!1),rn=[];d.useEffect((function(){return function(){rn.forEach((function(e){return clearTimeout(e)})),rn.splice(0,rn.length)}}),[]);var an,un=d.useState({}),cn=(0,l.Z)(un,2)[1];_e&&(an=function(e){qe(e)}),function(e,n,t,o){var r=d.useRef(null);r.current={open:n,triggerOpen:t,customizedTrigger:o},d.useEffect((function(){function n(n){var t;if(null===(t=r.current)||void 0===t||!t.customizedTrigger){var o=n.target;o.shadowRoot&&n.composed&&(o=n.composedPath()[0]||o),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",n),function(){return window.removeEventListener("mousedown",n)}}),[])}((function(){var e;return[Ze.current,null===(e=Me.current)||void 0===e?void 0:e.getPopupElement()]}),Ge,qe,!!_e);var ln,sn=d.useMemo((function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:M,open:Ye,triggerOpen:Ge,id:p,showSearch:ye,multiple:ge,toggleOpen:qe})}),[e,M,Ge,Ye,p,ye,ge,qe]),fn=!!q||A;fn&&(ln=d.createElement(T,{className:r()("".concat(v,"-arrow"),(0,u.Z)({},"".concat(v,"-arrow-loading"),A)),customizeIcon:q,customizeIconProps:{loading:A,searchValue:De,open:Ye,focused:Ae,showSearch:ye}}));var dn,pn=function(e,n,t,o,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,c=d.useMemo((function(){return"object"===(0,f.Z)(o)?o.clearIcon:r||void 0}),[o,r]),l=d.useMemo((function(){return!(a||!o||!t.length&&!i||"combobox"===u&&""===i)}),[o,a,t.length,i,u]);return{allowClear:l,clearIcon:d.createElement(T,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(v,(function(){var e;null==k||k(),null===(e=xe.current)||void 0===e||e.focus(),S([],{type:"clear",values:C}),$e("",!1,!1)}),C,G,Q,I,De,R),vn=pn.allowClear,mn=pn.clearIcon,hn=d.createElement($,{ref:ke}),gn=r()(v,m,(o={},(0,u.Z)(o,"".concat(v,"-focused"),Ae),(0,u.Z)(o,"".concat(v,"-multiple"),ge),(0,u.Z)(o,"".concat(v,"-single"),!ge),(0,u.Z)(o,"".concat(v,"-allow-clear"),G),(0,u.Z)(o,"".concat(v,"-show-arrow"),fn),(0,u.Z)(o,"".concat(v,"-disabled"),I),(0,u.Z)(o,"".concat(v,"-loading"),A),(0,u.Z)(o,"".concat(v,"-open"),Ye),(0,u.Z)(o,"".concat(v,"-customize-input"),Le),(0,u.Z)(o,"".concat(v,"-show-search"),ye),o)),yn=d.createElement(co,{ref:Me,disabled:I,prefixCls:v,visible:Ge,popupElement:hn,animation:J,transitionName:ee,dropdownStyle:ne,dropdownClassName:te,direction:b,dropdownMatchSelectWidth:oe,dropdownRender:re,dropdownAlign:ae,placement:ie,builtinPlacements:ue,getPopupContainer:ce,empty:Z,getTriggerDOMNode:function(){return Ne.current},onPopupVisibleChange:an,onPopupMouseEnter:function(){cn({})}},_e?d.cloneElement(_e,{ref:Fe}):d.createElement(Oe,(0,a.Z)({},e,{domRef:Ne,prefixCls:v,inputElement:Le,ref:xe,id:p,showSearch:ye,autoClearSearchValue:j,mode:R,activeDescendantId:W,tagRender:y,values:C,open:Ye,onToggleOpen:qe,activeValue:H,searchValue:De,onSearch:$e,onSearchSubmit:function(e){e&&e.trim()&&B(e,{source:"submit"})},onRemove:function(e){var n=C.filter((function(n){return n!==e}));S(n,{type:"remove",values:[e]})},tokenWithEnter:Qe})));return dn=_e?yn:d.createElement("div",(0,a.Z)({className:gn},be,{ref:Ze,onMouseDown:function(e){var n,t=e.target,o=null===(n=Me.current)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(t)){var r=setTimeout((function(){var e,n=rn.indexOf(r);-1!==n&&rn.splice(n,1),Te(),Ce||o.contains(document.activeElement)||null===(e=xe.current)||void 0===e||e.focus()}));rn.push(r)}for(var a=arguments.length,i=new Array(a>1?a-1:0),u=1;u<a;u++)i[u-1]=arguments[u];null==me||me.apply(void 0,[e].concat(i))},onKeyDown:function(e){var n,t=nn(),o=e.which;if(o===x.ENTER&&("combobox"!==R&&e.preventDefault(),Ye||qe(!0)),tn(!!De),o===x.BACKSPACE&&!t&&ge&&!De&&C.length){for(var r=(0,i.Z)(C),a=null,u=r.length-1;u>=0;u-=1){var c=r[u];if(!c.disabled){r.splice(u,1),a=c;break}}a&&S(r,{type:"remove",values:[a]})}for(var l=arguments.length,s=new Array(l>1?l-1:0),f=1;f<l;f++)s[f-1]=arguments[f];Ye&&ke.current&&(n=ke.current).onKeyDown.apply(n,[e].concat(s)),null==ve||ve.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];var r;Ye&&ke.current&&(r=ke.current).onKeyUp.apply(r,[e].concat(t)),null==pe||pe.apply(void 0,[e].concat(t))},onFocus:function(){Pe(!0),I||(fe&&!on.current&&fe.apply(void 0,arguments),se.includes("focus")&&qe(!0)),on.current=!0},onBlur:function(){Pe(!1,(function(){on.current=!1,qe(!1)})),I||(De&&("tags"===R?B(De,{source:"submit"}):"multiple"===R&&B("",{source:"blur"})),de&&de.apply(void 0,arguments))}}),Ae&&!Ye&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(C.map((function(e){var n=e.label,t=e.value;return["number","string"].includes((0,f.Z)(n))?n:t})).join(", "))),yn,ln,vn&&mn),d.createElement(D.Provider,{value:sn},dn)}));var yo=go;function bo(e,n){return Se(e).join("").toUpperCase().includes(n)}var wo=0,Eo=m();function Co(e){var n=d.useState(),t=(0,l.Z)(n,2),o=t[0],r=t[1];return d.useEffect((function(){var e;r("rc_select_".concat((Eo?(e=wo,wo+=1):e="TEST_OR_SSR",e)))}),[]),e||o}function So(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=[];return d.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?t=t.concat(So(e)):(0,k.isFragment)(e)&&e.props?t=t.concat(So(e.props.children,n)):t.push(e))})),t}var Zo=["children","value"],No=["children"];function Mo(e){var n=e,t=n.key,o=n.props,r=o.children,a=o.value,i=(0,s.Z)(o,Zo);return(0,c.Z)({key:t,value:void 0!==a?a:t,children:r},i)}function xo(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return So(e).map((function(e,t){if(!d.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,a=o.key,i=o.props,u=i.children,l=(0,s.Z)(i,No);return n||!r?Mo(e):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===a?t:a,"__"),label:a},l),{},{options:xo(u)})})).filter((function(e){return e}))}function ko(e,n,t,o,r){return d.useMemo((function(){var a=e;!e&&(a=xo(n));var i=new Map,u=new Map,c=function(e,n,t){t&&"string"==typeof t&&e.set(n[t],n)};return function e(n){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=0;l<n.length;l+=1){var s=n[l];!s[t.options]||a?(i.set(s[t.value],s),c(u,s,t.label),c(u,s,o),c(u,s,r)):e(s[t.options],!0)}}(a),{options:a,valueOptions:i,labelOptions:u}}),[e,n,t,o,r])}function Ro(e){var n=d.useRef();n.current=e;var t=d.useCallback((function(){return n.current.apply(n,arguments)}),[]);return t}var Io=function(){return null};Io.isSelectOptGroup=!0;var Ao=Io,Po=function(){return null};Po.isSelectOption=!0;var Oo=Po;var To=t(73358),Do=d.createContext(null);var Lo=["disabled","title","children","style","className"];function _o(e){return"string"==typeof e||"number"==typeof e}var Fo=function(e,n){var t=d.useContext(D),o=t.prefixCls,f=t.id,p=t.open,v=t.multiple,m=t.mode,h=t.searchValue,g=t.toggleOpen,y=t.notFoundContent,b=t.onPopupScroll,w=d.useContext(Do),E=w.flattenOptions,C=w.onActiveValue,S=w.defaultActiveFirstOption,Z=w.onSelect,N=w.menuItemSelectedIcon,M=w.rawValues,k=w.fieldNames,I=w.virtual,A=w.direction,P=w.listHeight,O=w.listItemHeight,L="".concat(o,"-item"),_=R((function(){return E}),[p,E],(function(e,n){return n[0]&&e[1]!==n[1]})),F=d.useRef(null),V=function(e){e.preventDefault()},U=function(e){F.current&&F.current.scrollTo("number"==typeof e?{index:e}:e)},K=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=_.length,o=0;o<t;o+=1){var r=(e+o*n+t)%t,a=_[r],i=a.group,u=a.data;if(!i&&!u.disabled)return r}return-1},W=d.useState((function(){return K(0)})),z=(0,l.Z)(W,2),j=z[0],B=z[1],Y=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];B(e);var t={source:n?"keyboard":"mouse"},o=_[e];o?C(o.value,e,t):C(null,-1,t)};(0,d.useEffect)((function(){Y(!1!==S?K(0):-1)}),[_.length,h]);var X=d.useCallback((function(e){return M.has(e)&&"combobox"!==m}),[m,(0,i.Z)(M).toString(),M.size]);(0,d.useEffect)((function(){var e,n=setTimeout((function(){if(!v&&p&&1===M.size){var e=Array.from(M)[0],n=_.findIndex((function(n){return n.data.value===e}));-1!==n&&(Y(n),U(n))}}));p&&(null===(e=F.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(n)}}),[p,h,E.length]);var G=function(e){void 0!==e&&Z(e,{selected:!M.has(e)}),v||g(!1)};if(d.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case x.N:case x.P:case x.UP:case x.DOWN:var o=0;if(n===x.UP?o=-1:n===x.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===x.N?o=1:n===x.P&&(o=-1)),0!==o){var r=K(j+o,o);U(r),Y(r,!0)}break;case x.ENTER:var a=_[j];a&&!a.data.disabled?G(a.value):G(void 0),p&&e.preventDefault();break;case x.ESC:g(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){U(e)}}})),0===_.length)return d.createElement("div",{role:"listbox",id:"".concat(f,"_list"),className:"".concat(L,"-empty"),onMouseDown:V},y);var q=Object.keys(k).map((function(e){return k[e]})),Q=function(e){return e.label};function $(e,n){return{role:e.group?"presentation":"option",id:"".concat(f,"_list_").concat(n)}}var J=function(e){var n=_[e];if(!n)return null;var t=n.data||{},o=t.value,r=n.group,i=H(t,!0),u=Q(n);return n?d.createElement("div",(0,a.Z)({"aria-label":"string"!=typeof u||r?null:u},i,{key:e},$(n,e),{"aria-selected":X(o)}),o):null},ee={role:"listbox",id:"".concat(f,"_list")};return d.createElement(d.Fragment,null,I&&d.createElement("div",(0,a.Z)({},ee,{style:{height:0,width:0,overflow:"hidden"}}),J(j-1),J(j),J(j+1)),d.createElement(To.Z,{itemKey:"key",ref:F,data:_,height:P,itemHeight:O,fullHeight:!1,onMouseDown:V,onScroll:b,virtual:I,direction:A,innerProps:I?null:ee},(function(e,n){var t,o=e.group,i=e.groupOption,l=e.data,f=e.label,p=e.value,v=l.key;if(o){var m,h=null!==(m=l.title)&&void 0!==m?m:_o(f)?f.toString():void 0;return d.createElement("div",{className:r()(L,"".concat(L,"-group")),title:h},void 0!==f?f:v)}var g,y,b,w=l.disabled,E=l.title,C=(l.children,l.style),S=l.className,Z=(0,s.Z)(l,Lo),M=(g=Z,y=q,b=(0,c.Z)({},g),Array.isArray(y)&&y.forEach((function(e){delete b[e]})),b),x=X(p),k="".concat(L,"-option"),R=r()(L,k,S,(t={},(0,u.Z)(t,"".concat(k,"-grouped"),i),(0,u.Z)(t,"".concat(k,"-active"),j===n&&!w),(0,u.Z)(t,"".concat(k,"-disabled"),w),(0,u.Z)(t,"".concat(k,"-selected"),x),t)),A=Q(e),P=!N||"function"==typeof N||x,O="number"==typeof A?A:A||p,D=_o(O)?O.toString():void 0;return void 0!==E&&(D=E),d.createElement("div",(0,a.Z)({},H(M),I?{}:$(e,n),{"aria-selected":x,className:R,title:D,onMouseMove:function(){j===n||w||Y(n)},onClick:function(){w||G(p)},style:C}),d.createElement("div",{className:"".concat(k,"-content")},O),d.isValidElement(N)||x,P&&d.createElement(T,{className:"".concat(L,"-option-state"),customizeIcon:N,customizeIconProps:{isSelected:x}},x?"✓":null))})))},Vo=d.forwardRef(Fo);Vo.displayName="OptionList";var Uo=Vo;var Ho=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ko=["inputValue"];var Wo=d.forwardRef((function(e,n){var t=e.id,o=e.mode,r=e.prefixCls,p=void 0===r?"rc-select":r,v=e.backfill,m=e.fieldNames,h=e.inputValue,g=e.searchValue,y=e.onSearch,b=e.autoClearSearchValue,w=void 0===b||b,C=e.onSelect,S=e.onDeselect,Z=e.dropdownMatchSelectWidth,N=void 0===Z||Z,M=e.filterOption,x=e.filterSort,k=e.optionFilterProp,R=e.optionLabelProp,I=e.options,A=e.children,P=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,T=e.virtual,D=e.direction,L=e.listHeight,_=void 0===L?200:L,F=e.listItemHeight,V=void 0===F?20:F,U=e.value,H=e.defaultValue,K=e.labelInValue,W=e.onChange,z=(0,s.Z)(e,Ho),j=Co(t),B=ho(o),Y=!(I||!A),X=d.useMemo((function(){return(void 0!==M||"combobox"!==o)&&M}),[M,o]),G=d.useMemo((function(){return fo(m,Y)}),[JSON.stringify(m),Y]),q=E("",{value:void 0!==g?g:h,postState:function(e){return e||""}}),Q=(0,l.Z)(q,2),$=Q[0],J=Q[1],ee=ko(I,A,G,k,R),ne=ee.valueOptions,te=ee.labelOptions,oe=ee.options,re=d.useCallback((function(e){return Se(e).map((function(e){var n,t,o,r,a,i;(function(e){return!e||"object"!==(0,f.Z)(e)})(e)?n=e:(o=e.key,t=e.label,n=null!==(i=e.value)&&void 0!==i?i:o);var u,c=ne.get(n);c&&(void 0===t&&(t=null==c?void 0:c[R||G.label]),void 0===o&&(o=null!==(u=null==c?void 0:c.key)&&void 0!==u?u:n),r=null==c?void 0:c.disabled,a=null==c?void 0:c.title);return{label:t,value:n,key:o,disabled:r,title:a}}))}),[G,R,ne]),ae=E(H,{value:U}),ie=(0,l.Z)(ae,2),ue=ie[0],ce=ie[1],le=d.useMemo((function(){var e,n=re(ue);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=n[0])||void 0===e?void 0:e.value)?[]:n}),[ue,re,o]),se=function(e,n){var t=d.useRef({values:new Map,options:new Map});return[d.useMemo((function(){var o=t.current,r=o.values,a=o.options,i=e.map((function(e){var n;return void 0===e.label?(0,c.Z)((0,c.Z)({},e),{},{label:null===(n=r.get(e.value))||void 0===n?void 0:n.label}):e})),u=new Map,l=new Map;return i.forEach((function(e){u.set(e.value,e),l.set(e.value,n.get(e.value)||a.get(e.value))})),t.current.values=u,t.current.options=l,i}),[e,n]),d.useCallback((function(e){return n.get(e)||t.current.options.get(e)}),[n])]}(le,ne),fe=(0,l.Z)(se,2),de=fe[0],pe=fe[1],ve=d.useMemo((function(){if(!o&&1===de.length){var e=de[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return de.map((function(e){var n;return(0,c.Z)((0,c.Z)({},e),{},{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),[o,de]),me=d.useMemo((function(){return new Set(de.map((function(e){return e.value})))}),[de]);d.useEffect((function(){if("combobox"===o){var e,n=null===(e=de[0])||void 0===e?void 0:e.value;J(function(e){return null!=e}(n)?String(n):"")}}),[de]);var he=Ro((function(e,n){var t,o=null!=n?n:e;return t={},(0,u.Z)(t,G.value,e),(0,u.Z)(t,G.label,o),t})),ge=function(e,n,t,o,r){return d.useMemo((function(){if(!t||!1===o)return e;var a=n.options,i=n.label,l=n.value,s=[],f="function"==typeof o,d=t.toUpperCase(),p=f?o:function(e,n){return r?bo(n[r],d):n[a]?bo(n["children"!==i?i:"label"],d):bo(n[l],d)},v=f?function(e){return po(e)}:function(e){return e};return e.forEach((function(e){if(e[a])if(p(t,v(e)))s.push(e);else{var n=e[a].filter((function(e){return p(t,v(e))}));n.length&&s.push((0,c.Z)((0,c.Z)({},e),{},(0,u.Z)({},a,n)))}else p(t,v(e))&&s.push(e)})),s}),[e,o,r,t,n])}(d.useMemo((function(){if("tags"!==o)return oe;var e=(0,i.Z)(oe);return(0,i.Z)(de).sort((function(e,n){return e.value<n.value?-1:1})).forEach((function(n){var t=n.value;(function(e){return ne.has(e)})(t)||e.push(he(t,n.label))})),e}),[he,oe,ne,de,o]),G,$,X,k),ye=d.useMemo((function(){return"tags"!==o||!$||ge.some((function(e){return e[k||"value"]===$}))||ge.some((function(e){return e[G.value]===$}))?ge:[he($)].concat((0,i.Z)(ge))}),[he,k,o,ge,$,G]),be=d.useMemo((function(){return x?(0,i.Z)(ye).sort((function(e,n){return x(e,n)})):ye}),[ye,x]),we=d.useMemo((function(){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,o=n.childrenAsData,r=[],a=fo(t,!1),i=a.label,u=a.value,c=a.options,l=a.groupLabel;function s(e,n){e.forEach((function(e){if(n||!(c in e)){var t=e[u];r.push({key:so(e,r.length),groupOption:n,data:e,label:e[i],value:t})}else{var a=e[l];void 0===a&&o&&(a=e.label),r.push({key:so(e,r.length),group:!0,data:e,label:a}),s(e[c],!0)}}))}return s(e,!1),r}(be,{fieldNames:G,childrenAsData:Y})}),[be,G,Y]),Ee=function(e){var n=re(e);if(ce(n),W&&(n.length!==de.length||n.some((function(e,n){var t;return(null===(t=de[n])||void 0===t?void 0:t.value)!==(null==e?void 0:e.value)})))){var t=K?n:n.map((function(e){return e.value})),o=n.map((function(e){return po(pe(e.value))}));W(B?t:t[0],B?o:o[0])}},Ce=d.useState(null),Ze=(0,l.Z)(Ce,2),Ne=Ze[0],Me=Ze[1],xe=d.useState(0),ke=(0,l.Z)(xe,2),Re=ke[0],Ie=ke[1],Ae=void 0!==P?P:"combobox"!==o,Pe=d.useCallback((function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.source,a=void 0===r?"keyboard":r;Ie(n),v&&"combobox"===o&&null!==e&&"keyboard"===a&&Me(String(e))}),[v,o]),Oe=function(e,n,t){var o=function(){var n,t=pe(e);return[K?{label:null==t?void 0:t[G.label],value:e,key:null!==(n=null==t?void 0:t.key)&&void 0!==n?n:e}:e,po(t)]};if(n&&C){var r=o(),a=(0,l.Z)(r,2),i=a[0],u=a[1];C(i,u)}else if(!n&&S&&"clear"!==t){var c=o(),s=(0,l.Z)(c,2),f=s[0],d=s[1];S(f,d)}},Te=Ro((function(e,n){var t,r=!B||n.selected;t=r?B?[].concat((0,i.Z)(de),[e]):[e]:de.filter((function(n){return n.value!==e})),Ee(t),Oe(e,r),"combobox"===o?Me(""):ho&&!w||(J(""),Me(""))})),De=d.useMemo((function(){var e=!1!==T&&!1!==N;return(0,c.Z)((0,c.Z)({},ee),{},{flattenOptions:we,onActiveValue:Pe,defaultActiveFirstOption:Ae,onSelect:Te,menuItemSelectedIcon:O,rawValues:me,fieldNames:G,virtual:e,direction:D,listHeight:_,listItemHeight:V,childrenAsData:Y})}),[ee,we,Pe,Ae,Te,O,me,G,T,N,_,V,Y]);return d.createElement(Do.Provider,{value:De},d.createElement(yo,(0,a.Z)({},z,{id:j,prefixCls:p,ref:n,omitDomProps:Ko,mode:o,displayValues:ve,onDisplayValuesChange:function(e,n){Ee(e);var t=n.type,o=n.values;"remove"!==t&&"clear"!==t||o.forEach((function(e){Oe(e.value,!1,t)}))},direction:D,searchValue:$,onSearch:function(e,n){if(J(e),Me(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===o&&Ee(e),null==y||y(e));else{var t=(e||"").trim();if(t){var r=Array.from(new Set([].concat((0,i.Z)(me),[t])));Ee(r),Oe(t,!0),J("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var n=e;"tags"!==o&&(n=e.map((function(e){var n=te.get(e);return null==n?void 0:n.value})).filter((function(e){return void 0!==e})));var t=Array.from(new Set([].concat((0,i.Z)(me),(0,i.Z)(n))));Ee(t),t.forEach((function(e){Oe(e,!0)}))},dropdownMatchSelectWidth:N,OptionList:Uo,emptyOptions:!we.length,activeValue:Ne,activeDescendantId:"".concat(j,"_list_").concat(Re)})))}));var zo=Wo;zo.Option=Oo,zo.OptGroup=Ao;var jo=zo,Bo=t(10366),Yo=t(8745),Xo=t(33603),Go=t(9708),qo=t(53124),Qo=t(98866),$o=t(88258),Jo=t(98675),er=t(65223),nr=t(4173),tr=t(87244),or=t(13458),rr=t(78642),ar=t(46163),ir=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};const ur="SECRET_COMBOBOX_MODE_DO_NOT_USE",cr=(e,n)=>{var t,{prefixCls:o,bordered:a=!0,className:i,rootClassName:u,getPopupContainer:c,popupClassName:l,dropdownClassName:s,listHeight:f=256,placement:p,listItemHeight:v=24,size:m,disabled:h,notFoundContent:g,status:y,builtinPlacements:b,dropdownMatchSelectWidth:w,popupMatchSelectWidth:E,direction:C,style:S,allowClear:Z}=e,N=ir(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:M,getPrefixCls:x,renderEmpty:k,direction:R,virtual:I,popupMatchSelectWidth:A,popupOverflow:P,select:O}=d.useContext(qo.E_),T=x("select",o),D=x(),L=null!=C?C:R,{compactSize:_,compactItemClassnames:F}=(0,nr.ri)(T,L),[V,U]=(0,tr.Z)(T),H=d.useMemo((()=>{const{mode:e}=N;if("combobox"!==e)return e===ur?"combobox":e}),[N.mode]),K="multiple"===H||"tags"===H,W=(0,rr.Z)(N.suffixIcon,N.showArrow),z=null!==(t=null!=E?E:w)&&void 0!==t?t:A,{status:j,hasFeedback:B,isFormItemInput:Y,feedbackIcon:X}=d.useContext(er.aM),G=(0,Go.F)(j,y);let q;q=void 0!==g?g:"combobox"===H?null:(null==k?void 0:k("Select"))||d.createElement($o.Z,{componentName:"Select"});const{suffixIcon:Q,itemIcon:$,removeIcon:J,clearIcon:ee}=(0,ar.Z)(Object.assign(Object.assign({},N),{multiple:K,hasFeedback:B,feedbackIcon:X,showSuffixIcon:W,prefixCls:T,showArrow:N.showArrow,componentName:"Select"})),ne=!0===Z?{clearIcon:ee}:Z,te=(0,Bo.Z)(N,["suffixIcon","itemIcon"]),oe=r()(l||s,{[`${T}-dropdown-${L}`]:"rtl"===L},u,U),re=(0,Jo.Z)((e=>{var n;return null!==(n=null!=m?m:_)&&void 0!==n?n:e})),ae=d.useContext(Qo.Z),ie=null!=h?h:ae,ue=r()({[`${T}-lg`]:"large"===re,[`${T}-sm`]:"small"===re,[`${T}-rtl`]:"rtl"===L,[`${T}-borderless`]:!a,[`${T}-in-form-item`]:Y},(0,Go.Z)(T,G,B),F,null==O?void 0:O.className,i,u,U),ce=d.useMemo((()=>void 0!==p?p:"rtl"===L?"bottomRight":"bottomLeft"),[p,L]),le=(0,or.Z)(b,P);return V(d.createElement(jo,Object.assign({ref:n,virtual:I,showSearch:null==O?void 0:O.showSearch},te,{style:Object.assign(Object.assign({},null==O?void 0:O.style),S),dropdownMatchSelectWidth:z,builtinPlacements:le,transitionName:(0,Xo.m)(D,"slide-up",N.transitionName),listHeight:f,listItemHeight:v,mode:H,prefixCls:T,placement:ce,direction:L,suffixIcon:Q,menuItemSelectedIcon:$,removeIcon:J,allowClear:ne,notFoundContent:q,className:ue,getPopupContainer:c||M,dropdownClassName:oe,disabled:ie})))};const lr=d.forwardRef(cr),sr=(0,Yo.Z)(lr);lr.SECRET_COMBOBOX_MODE_DO_NOT_USE=ur,lr.Option=Oo,lr.OptGroup=Ao,lr._InternalPanelDoNotUseOrYouWillBeFired=sr;var fr=lr},41771:function(e,n){var t="function"==typeof Symbol&&Symbol.for,o=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case o:switch(e=e.type){case s:case f:case a:case u:case i:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case h:case m:case c:return e;default:return n}}case r:return n}}}function C(e){return E(e)===f}n.isFragment=function(e){return E(e)===a},n.isMemo=function(e){return E(e)===m}},47655:function(e,n,t){e.exports=t(41771)}}]); |