import{r,ao as So,J as cn,K as Z,a5 as Xe,a6 as bo,a0 as fe,v as ne,ap as Co,aj as yo,W as yt,aq as xo,P as ie,a3 as J,T as De,V as ct,ar as $o,as as Io,at as wo,_ as Te,au as Eo,av as Oo,ab as Ot,aw as Mt,ax as Mo,ay as Po,az as Do,L as Kt,M as Gt,O as Rt,ac as ke,S as Nt,aA as Ro,aB as No,aC as Ut,aD as wn,ae as wt,X as xt,Y as He,s as Je,f as R,aa as $t,w as zo,an as To,D as Ho,Z as pt,aE as Lo,aF as _o,aG as jo,aH as Bo,af as Ct,aI as un,aJ as En,aK as Vo,aL as Ao,aM as Fo,aN as Wo,aO as Ko,A as Go,aP as Uo,aQ as Xo,aR as dn,a8 as Jo,aS as Yo,ag as qo,h as Qo,aT as mn,aU as Vt,C as Zo,aV as pn,R as ko}from"./index-9600e7d5.js";import{C as ei}from"./setWebPageTitle-364a3db0.js";const ti=(e,t)=>{const i=r.useContext(So),n=r.useMemo(()=>{var a;const s=t||cn[e],l=(a=i==null?void 0:i[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),l||{})},[e,t,i]),o=r.useMemo(()=>{const a=i==null?void 0:i.locale;return i!=null&&i.exist&&!a?cn.locale:a},[i]);return[n,o]},On=ti;var ni=`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`,oi=`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`,ii="".concat(ni," ").concat(oi).split(/[\s\n]+/),ri="aria-",ai="data-";function fn(e,t){return e.indexOf(t)===0}function Pt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i;t===!1?i={aria:!0,data:!0,attr:!0}:t===!0?i={aria:!0}:i=Z({},t);var n={};return Object.keys(e).forEach(function(o){(i.aria&&(o==="role"||fn(o,ri))||i.data&&fn(o,ai)||i.attr&&ii.includes(o))&&(n[o]=e[o])}),n}const li=new Xe("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),si=new Xe("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ci=new Xe("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ui=new Xe("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),di=new Xe("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mi=new Xe("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pi=new Xe("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fi=new Xe("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),gi={"move-up":{inKeyframes:pi,outKeyframes:fi},"move-down":{inKeyframes:li,outKeyframes:si},"move-left":{inKeyframes:ci,outKeyframes:ui},"move-right":{inKeyframes:di,outKeyframes:mi}},gn=(e,t)=>{const{antCls:i}=e,n=`${i}-${t}`,{inKeyframes:o,outKeyframes:a}=gi[t];return[bo(n,o,a,e.motionDurationMid),{[`
        ${n}-enter,
        ${n}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Mn=r.createContext(null);function hi(){return r.useContext(Mn)}function vi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=r.useState(!1),i=fe(t,2),n=i[0],o=i[1],a=r.useRef(null),s=function(){window.clearTimeout(a.current)};r.useEffect(function(){return s},[]);var l=function(c,m){s(),a.current=window.setTimeout(function(){o(c),m&&m()},e)};return[n,l,s]}function Pn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=r.useRef(null),i=r.useRef(null);r.useEffect(function(){return function(){window.clearTimeout(i.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(i.current),i.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function Si(e,t,i,n){var o=r.useRef(null);o.current={open:t,triggerOpen:i,customizedTrigger:n},r.useEffect(function(){function a(s){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var d=s.target;d.shadowRoot&&s.composed&&(d=s.composedPath()[0]||d),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(d)&&c!==d})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}var Dt=function(t){var i=t.className,n=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,s=t.onClick,l=t.children,d;return typeof n=="function"?d=n(o):d=n,r.createElement("span",{className:i,onMouseDown:function(m){m.preventDefault(),a&&a(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},d!==void 0?d:r.createElement("span",{className:ne(i.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},l))},bi=function(t,i){var n,o,a=t.prefixCls,s=t.id,l=t.inputElement,d=t.disabled,c=t.tabIndex,m=t.autoFocus,u=t.autoComplete,p=t.editable,f=t.activeDescendantId,g=t.value,h=t.maxLength,b=t.onKeyDown,S=t.onMouseDown,v=t.onChange,C=t.onPaste,M=t.onCompositionStart,E=t.onCompositionEnd,H=t.open,oe=t.attrs,O=l||r.createElement("input",null),L=O,y=L.ref,V=L.props,q=V.onKeyDown,I=V.onChange,_=V.onMouseDown,T=V.onCompositionStart,P=V.onCompositionEnd,W=V.style;return Co(!("maxLength"in O.props)),O=r.cloneElement(O,Z(Z(Z({type:"search"},V),{},{id:s,ref:yo(i,y),disabled:d,tabIndex:c,autoComplete:u||"off",autoFocus:m,className:ne("".concat(a,"-selection-search-input"),(n=O)===null||n===void 0||(o=n.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":H,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":f},oe),{},{value:p?g:"",maxLength:h,readOnly:!p,unselectable:p?null:"on",style:Z(Z({},W),{},{opacity:p?null:0}),onKeyDown:function($){b($),q&&q($)},onMouseDown:function($){S($),_&&_($)},onChange:function($){v($),I&&I($)},onCompositionStart:function($){M($),T&&T($)},onCompositionEnd:function($){E($),P&&P($)},onPaste:C})),O},Xt=r.forwardRef(bi);Xt.displayName="Input";function Dn(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Ci=typeof window<"u"&&window.document&&window.document.documentElement,yi=Ci;function xi(e){return e!=null}function hn(e){return["string","number"].includes(yt(e))}function Rn(e){var t=void 0;return e&&(hn(e.title)?t=e.title.toString():hn(e.label)&&(t=e.label.toString())),t}function $i(e,t){yi?r.useLayoutEffect(e,t):r.useEffect(e,t)}function Ii(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var vn=function(t){t.preventDefault(),t.stopPropagation()},wi=function(t){var i=t.id,n=t.prefixCls,o=t.values,a=t.open,s=t.searchValue,l=t.autoClearSearchValue,d=t.inputRef,c=t.placeholder,m=t.disabled,u=t.mode,p=t.showSearch,f=t.autoFocus,g=t.autoComplete,h=t.activeDescendantId,b=t.tabIndex,S=t.removeIcon,v=t.maxTagCount,C=t.maxTagTextLength,M=t.maxTagPlaceholder,E=M===void 0?function(A){return"+ ".concat(A.length," ...")}:M,H=t.tagRender,oe=t.onToggleOpen,O=t.onRemove,L=t.onInputChange,y=t.onInputPaste,V=t.onInputKeyDown,q=t.onInputMouseDown,I=t.onInputCompositionStart,_=t.onInputCompositionEnd,T=r.useRef(null),P=r.useState(0),W=fe(P,2),j=W[0],$=W[1],ge=r.useState(!1),ee=fe(ge,2),Se=ee[0],de=ee[1],ue="".concat(n,"-selection"),be=a||u==="multiple"&&l===!1||u==="tags"?s:"",w=u==="tags"||u==="multiple"&&l===!1||p&&(a||Se);$i(function(){$(T.current.scrollWidth)},[be]);function x(A,se,ae,pe,K){return r.createElement("span",{className:ne("".concat(ue,"-item"),ie({},"".concat(ue,"-item-disabled"),ae)),title:Rn(A)},r.createElement("span",{className:"".concat(ue,"-item-content")},se),pe&&r.createElement(Dt,{className:"".concat(ue,"-item-remove"),onMouseDown:vn,onClick:K,customizeIcon:S},"×"))}function N(A,se,ae,pe,K){var Y=function(me){vn(me),oe(!a)};return r.createElement("span",{onMouseDown:Y},H({label:se,value:A,disabled:ae,closable:pe,onClose:K}))}function k(A){var se=A.disabled,ae=A.label,pe=A.value,K=!m&&!se,Y=ae;if(typeof C=="number"&&(typeof ae=="string"||typeof ae=="number")){var le=String(Y);le.length>C&&(Y="".concat(le.slice(0,C),"..."))}var me=function(Ae){Ae&&Ae.stopPropagation(),O(A)};return typeof H=="function"?N(pe,Y,se,K,me):x(A,Y,se,K,me)}function te(A){var se=typeof E=="function"?E(A):E;return x({title:se},se,!1)}var U=r.createElement("div",{className:"".concat(ue,"-search"),style:{width:j},onFocus:function(){de(!0)},onBlur:function(){de(!1)}},r.createElement(Xt,{ref:d,open:a,prefixCls:n,id:i,inputElement:null,disabled:m,autoFocus:f,autoComplete:g,editable:w,activeDescendantId:h,value:be,onKeyDown:V,onMouseDown:q,onChange:L,onPaste:y,onCompositionStart:I,onCompositionEnd:_,tabIndex:b,attrs:Pt(t,!0)}),r.createElement("span",{ref:T,className:"".concat(ue,"-search-mirror"),"aria-hidden":!0},be," ")),re=r.createElement(xo,{prefixCls:"".concat(ue,"-overflow"),data:o,renderItem:k,renderRest:te,suffix:U,itemKey:Ii,maxCount:v});return r.createElement(r.Fragment,null,re,!o.length&&!be&&r.createElement("span",{className:"".concat(ue,"-placeholder")},c))},Ei=function(t){var i=t.inputElement,n=t.prefixCls,o=t.id,a=t.inputRef,s=t.disabled,l=t.autoFocus,d=t.autoComplete,c=t.activeDescendantId,m=t.mode,u=t.open,p=t.values,f=t.placeholder,g=t.tabIndex,h=t.showSearch,b=t.searchValue,S=t.activeValue,v=t.maxLength,C=t.onInputKeyDown,M=t.onInputMouseDown,E=t.onInputChange,H=t.onInputPaste,oe=t.onInputCompositionStart,O=t.onInputCompositionEnd,L=r.useState(!1),y=fe(L,2),V=y[0],q=y[1],I=m==="combobox",_=I||h,T=p[0],P=b||"";I&&S&&!V&&(P=S),r.useEffect(function(){I&&q(!1)},[I,S]);var W=m!=="combobox"&&!u&&!h?!1:!!P,j=Rn(T),$=function(){if(T)return null;var ee=W?{visibility:"hidden"}:void 0;return r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:ee},f)};return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(Xt,{ref:a,prefixCls:n,id:o,open:u,inputElement:i,disabled:s,autoFocus:l,autoComplete:d,editable:_,activeDescendantId:c,value:P,onKeyDown:C,onMouseDown:M,onChange:function(ee){q(!0),E(ee)},onPaste:H,onCompositionStart:oe,onCompositionEnd:O,tabIndex:g,attrs:Pt(t,!0),maxLength:I?v:void 0})),!I&&T&&!W&&r.createElement("span",{className:"".concat(n,"-selection-item"),title:j},T.label),$())};function Oi(e){return![J.ESC,J.SHIFT,J.BACKSPACE,J.TAB,J.WIN_KEY,J.ALT,J.META,J.WIN_KEY_RIGHT,J.CTRL,J.SEMICOLON,J.EQUALS,J.CAPS_LOCK,J.CONTEXT_MENU,J.F1,J.F2,J.F3,J.F4,J.F5,J.F6,J.F7,J.F8,J.F9,J.F10,J.F11,J.F12].includes(e)}var Mi=function(t,i){var n=r.useRef(null),o=r.useRef(!1),a=t.prefixCls,s=t.open,l=t.mode,d=t.showSearch,c=t.tokenWithEnter,m=t.autoClearSearchValue,u=t.onSearch,p=t.onSearchSubmit,f=t.onToggleOpen,g=t.onInputKeyDown,h=t.domRef;r.useImperativeHandle(i,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var b=Pn(0),S=fe(b,2),v=S[0],C=S[1],M=function(W){var j=W.which;(j===J.UP||j===J.DOWN)&&W.preventDefault(),g&&g(W),j===J.ENTER&&l==="tags"&&!o.current&&!s&&(p==null||p(W.target.value)),Oi(j)&&f(!0)},E=function(){C(!0)},H=r.useRef(null),oe=function(W){u(W,!0,o.current)!==!1&&f(!0)},O=function(){o.current=!0},L=function(W){o.current=!1,l!=="combobox"&&oe(W.target.value)},y=function(W){var j=W.target.value;if(c&&H.current&&/[\r\n]/.test(H.current)){var $=H.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace($,H.current)}H.current=null,oe(j)},V=function(W){var j=W.clipboardData,$=j.getData("text");H.current=$},q=function(W){var j=W.target;if(j!==n.current){var $=document.body.style.msTouchAction!==void 0;$?setTimeout(function(){n.current.focus()}):n.current.focus()}},I=function(W){var j=v();W.target!==n.current&&!j&&l!=="combobox"&&W.preventDefault(),(l!=="combobox"&&(!d||!j)||!s)&&(s&&m!==!1&&u("",!0,!1),f())},_={inputRef:n,onInputKeyDown:M,onInputMouseDown:E,onInputChange:y,onInputPaste:V,onInputCompositionStart:O,onInputCompositionEnd:L},T=l==="multiple"||l==="tags"?r.createElement(wi,De({},t,_)):r.createElement(Ei,De({},t,_));return r.createElement("div",{ref:h,className:"".concat(a,"-selector"),onClick:q,onMouseDown:I},T)},Nn=r.forwardRef(Mi);Nn.displayName="Selector";var Pi=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Di=function(t){var i=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:i,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:i,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:i,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:i,adjustY:1},htmlRegion:"scroll"}}},Ri=function(t,i){var n=t.prefixCls;t.disabled;var o=t.visible,a=t.children,s=t.popupElement,l=t.containerWidth,d=t.animation,c=t.transitionName,m=t.dropdownStyle,u=t.dropdownClassName,p=t.direction,f=p===void 0?"ltr":p,g=t.placement,h=t.dropdownMatchSelectWidth,b=t.dropdownRender,S=t.dropdownAlign,v=t.getPopupContainer,C=t.empty,M=t.getTriggerDOMNode,E=t.onPopupVisibleChange,H=t.onPopupMouseEnter,oe=ct(t,Pi),O="".concat(n,"-dropdown"),L=s;b&&(L=b(s));var y=r.useMemo(function(){return Di(h)},[h]),V=d?"".concat(O,"-").concat(d):c,q=r.useRef(null);r.useImperativeHandle(i,function(){return{getPopupElement:function(){return q.current}}});var I=Z({minWidth:l},m);return typeof h=="number"?I.width=h:h&&(I.width=l),r.createElement($o,De({},oe,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:g||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:y,prefixCls:O,popupTransitionName:V,popup:r.createElement("div",{ref:q,onMouseEnter:H},L),popupAlign:S,popupVisible:o,getPopupContainer:v,popupClassName:ne(u,ie({},"".concat(O,"-empty"),C)),popupStyle:I,getTriggerDOMNode:M,onPopupVisibleChange:E}),a)},zn=r.forwardRef(Ri);zn.displayName="SelectTrigger";function Sn(e,t){var i=e.key,n;return"value"in e&&(n=e.value),i??(n!==void 0?n:"rc-index-key-".concat(t))}function Tn(e,t){var i=e||{},n=i.label,o=i.value,a=i.options;return{label:n||(t?"children":"label"),value:o||"value",options:a||"options"}}function Ni(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.fieldNames,n=t.childrenAsData,o=[],a=Tn(i,!1),s=a.label,l=a.value,d=a.options;function c(m,u){m.forEach(function(p){var f=p[s];if(u||!(d in p)){var g=p[l];o.push({key:Sn(p,o.length),groupOption:u,data:p,label:f,value:g})}else{var h=f;h===void 0&&n&&(h=p.label),o.push({key:Sn(p,o.length),group:!0,data:p,label:h}),c(p[d],!0)}})}return c(e,!1),o}function At(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Io(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function zi(e,t){if(!t||!t.length)return null;var i=!1;function n(a,s){var l=wo(s),d=l[0],c=l.slice(1);if(!d)return[a];var m=a.split(d);return i=i||m.length>1,m.reduce(function(u,p){return[].concat(Te(u),Te(n(p,c)))},[]).filter(function(u){return u})}var o=n(e,t);return i?o:null}var Ti=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Hi=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ft(e){return e==="tags"||e==="multiple"}var Li=r.forwardRef(function(e,t){var i,n,o=e.id,a=e.prefixCls,s=e.className,l=e.showSearch,d=e.tagRender,c=e.direction,m=e.omitDomProps,u=e.displayValues,p=e.onDisplayValuesChange,f=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,b=e.onClear,S=e.mode,v=e.disabled,C=e.loading,M=e.getInputElement,E=e.getRawInputElement,H=e.open,oe=e.defaultOpen,O=e.onDropdownVisibleChange,L=e.activeValue,y=e.onActiveValueChange,V=e.activeDescendantId,q=e.searchValue,I=e.autoClearSearchValue,_=e.onSearch,T=e.onSearchSplit,P=e.tokenSeparators,W=e.allowClear,j=e.showArrow,$=e.inputIcon,ge=e.clearIcon,ee=e.OptionList,Se=e.animation,de=e.transitionName,ue=e.dropdownStyle,be=e.dropdownClassName,w=e.dropdownMatchSelectWidth,x=e.dropdownRender,N=e.dropdownAlign,k=e.placement,te=e.getPopupContainer,U=e.showAction,re=U===void 0?[]:U,A=e.onFocus,se=e.onBlur,ae=e.onKeyUp,pe=e.onKeyDown,K=e.onMouseDown,Y=ct(e,Ti),le=Ft(S),me=(l!==void 0?l:le)||S==="combobox",je=Z({},Y);Hi.forEach(function(X){delete je[X]}),m==null||m.forEach(function(X){delete je[X]});var Ae=r.useState(!1),Ie=fe(Ae,2),Me=Ie[0],at=Ie[1];r.useEffect(function(){at(Eo())},[]);var Re=r.useRef(null),Be=r.useRef(null),Ne=r.useRef(null),Pe=r.useRef(null),we=r.useRef(null),gt=vi(),Fe=fe(gt,3),G=Fe[0],ce=Fe[1],Ee=Fe[2];r.useImperativeHandle(t,function(){var X,B;return{focus:(X=Pe.current)===null||X===void 0?void 0:X.focus,blur:(B=Pe.current)===null||B===void 0?void 0:B.blur,scrollTo:function(ze){var Ce;return(Ce=we.current)===null||Ce===void 0?void 0:Ce.scrollTo(ze)}}});var ye=r.useMemo(function(){var X;if(S!=="combobox")return q;var B=(X=u[0])===null||X===void 0?void 0:X.value;return typeof B=="string"||typeof B=="number"?String(B):""},[q,S,u]),Le=S==="combobox"&&typeof M=="function"&&M()||null,Ve=typeof E=="function"&&E(),Ke=Oo(Be,Ve==null||(i=Ve.props)===null||i===void 0?void 0:i.ref),ut=Ot(void 0,{defaultValue:oe,value:H}),Ye=fe(ut,2),et=Ye[0],qe=Ye[1],xe=et,It=!h&&f;(v||It&&xe&&S==="combobox")&&(xe=!1);var tt=It?!1:xe,D=r.useCallback(function(X){var B=X!==void 0?X:!xe;v||(qe(B),xe!==B&&(O==null||O(B)))},[v,xe,qe,O]),F=r.useMemo(function(){return(P||[]).some(function(X){return[`
`,`\r
`].includes(X)})},[P]),z=function(B,Oe,ze){var Ce=!0,_e=B;y==null||y(null);var We=ze?null:zi(B,P);return S!=="combobox"&&We&&(_e="",T==null||T(We),D(!1),Ce=!1),_&&ye!==_e&&_(_e,{source:Oe?"typing":"effect"}),Ce},Q=function(B){!B||!B.trim()||_(B,{source:"submit"})};r.useEffect(function(){!xe&&!le&&S!=="combobox"&&z("",!1,!1)},[xe]),r.useEffect(function(){et&&v&&qe(!1),v&&ce(!1)},[v]);var he=Pn(),ve=fe(he,2),Qe=ve[0],Ge=ve[1],lt=function(B){var Oe=Qe(),ze=B.which;if(ze===J.ENTER&&(S!=="combobox"&&B.preventDefault(),xe||D(!0)),Ge(!!ye),ze===J.BACKSPACE&&!Oe&&le&&!ye&&u.length){for(var Ce=Te(u),_e=null,We=Ce.length-1;We>=0;We-=1){var vt=Ce[We];if(!vt.disabled){Ce.splice(We,1),_e=vt;break}}_e&&p(Ce,{type:"remove",values:[_e]})}for(var ot=arguments.length,dt=new Array(ot>1?ot-1:0),it=1;it<ot;it++)dt[it-1]=arguments[it];if(xe&&we.current){var sn;(sn=we.current).onKeyDown.apply(sn,[B].concat(dt))}pe==null||pe.apply(void 0,[B].concat(dt))},$e=function(B){for(var Oe=arguments.length,ze=new Array(Oe>1?Oe-1:0),Ce=1;Ce<Oe;Ce++)ze[Ce-1]=arguments[Ce];if(xe&&we.current){var _e;(_e=we.current).onKeyUp.apply(_e,[B].concat(ze))}ae==null||ae.apply(void 0,[B].concat(ze))},nt=function(B){var Oe=u.filter(function(ze){return ze!==B});p(Oe,{type:"remove",values:[B]})},ht=r.useRef(!1),Tt=function(){ce(!0),v||(A&&!ht.current&&A.apply(void 0,arguments),re.includes("focus")&&D(!0)),ht.current=!0},kt=function(){ce(!1,function(){ht.current=!1,D(!1)}),!v&&(ye&&(S==="tags"?_(ye,{source:"submit"}):S==="multiple"&&_("",{source:"blur"})),se&&se.apply(void 0,arguments))},Ue=[];r.useEffect(function(){return function(){Ue.forEach(function(X){return clearTimeout(X)}),Ue.splice(0,Ue.length)}},[]);var Ze=function(B){var Oe,ze=B.target,Ce=(Oe=Ne.current)===null||Oe===void 0?void 0:Oe.getPopupElement();if(Ce&&Ce.contains(ze)){var _e=setTimeout(function(){var dt=Ue.indexOf(_e);if(dt!==-1&&Ue.splice(dt,1),Ee(),!Me&&!Ce.contains(document.activeElement)){var it;(it=Pe.current)===null||it===void 0||it.focus()}});Ue.push(_e)}for(var We=arguments.length,vt=new Array(We>1?We-1:0),ot=1;ot<We;ot++)vt[ot-1]=arguments[ot];K==null||K.apply(void 0,[B].concat(vt))},lo=r.useState(null),en=fe(lo,2),tn=en[0],so=en[1],co=r.useState({}),uo=fe(co,2),mo=uo[1];function po(){mo({})}Mt(function(){if(tt){var X,B=Math.ceil((X=Re.current)===null||X===void 0?void 0:X.offsetWidth);tn!==B&&!Number.isNaN(B)&&so(B)}},[tt]);var nn;Ve&&(nn=function(B){D(B)}),Si(function(){var X;return[Re.current,(X=Ne.current)===null||X===void 0?void 0:X.getPopupElement()]},tt,D,!!Ve);var fo=r.useMemo(function(){return Z(Z({},e),{},{notFoundContent:h,open:xe,triggerOpen:tt,id:o,showSearch:me,multiple:le,toggleOpen:D})},[e,h,tt,xe,o,me,le,D]),on=j!==void 0?j:C||!le&&S!=="combobox",rn;on&&(rn=r.createElement(Dt,{className:ne("".concat(a,"-arrow"),ie({},"".concat(a,"-arrow-loading"),C)),customizeIcon:$,customizeIconProps:{loading:C,searchValue:ye,open:xe,focused:G,showSearch:me}}));var an,go=function(){var B;b==null||b(),(B=Pe.current)===null||B===void 0||B.focus(),p([],{type:"clear",values:u}),z("",!1,!1)};!v&&W&&(u.length||ye)&&!(S==="combobox"&&ye==="")&&(an=r.createElement(Dt,{className:"".concat(a,"-clear"),onMouseDown:go,customizeIcon:ge},"×"));var ho=r.createElement(ee,{ref:we}),vo=ne(a,s,(n={},ie(n,"".concat(a,"-focused"),G),ie(n,"".concat(a,"-multiple"),le),ie(n,"".concat(a,"-single"),!le),ie(n,"".concat(a,"-allow-clear"),W),ie(n,"".concat(a,"-show-arrow"),on),ie(n,"".concat(a,"-disabled"),v),ie(n,"".concat(a,"-loading"),C),ie(n,"".concat(a,"-open"),xe),ie(n,"".concat(a,"-customize-input"),Le),ie(n,"".concat(a,"-show-search"),me),n)),ln=r.createElement(zn,{ref:Ne,disabled:v,prefixCls:a,visible:tt,popupElement:ho,containerWidth:tn,animation:Se,transitionName:de,dropdownStyle:ue,dropdownClassName:be,direction:c,dropdownMatchSelectWidth:w,dropdownRender:x,dropdownAlign:N,placement:k,getPopupContainer:te,empty:f,getTriggerDOMNode:function(){return Be.current},onPopupVisibleChange:nn,onPopupMouseEnter:po},Ve?r.cloneElement(Ve,{ref:Ke}):r.createElement(Nn,De({},e,{domRef:Be,prefixCls:a,inputElement:Le,ref:Pe,id:o,showSearch:me,autoClearSearchValue:I,mode:S,activeDescendantId:V,tagRender:d,values:u,open:xe,onToggleOpen:D,activeValue:L,searchValue:ye,onSearch:z,onSearchSubmit:Q,onRemove:nt,tokenWithEnter:F}))),Ht;return Ve?Ht=ln:Ht=r.createElement("div",De({className:vo},je,{ref:Re,onMouseDown:Ze,onKeyDown:lt,onKeyUp:$e,onFocus:Tt,onBlur:kt}),G&&!xe&&r.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(u.map(function(X){var B=X.label,Oe=X.value;return["number","string"].includes(yt(B))?B:Oe}).join(", "))),ln,rn,an),r.createElement(Mn.Provider,{value:fo},Ht)});const _i=function(e,t){var i=r.useRef({values:new Map,options:new Map}),n=r.useMemo(function(){var a=i.current,s=a.values,l=a.options,d=e.map(function(u){if(u.label===void 0){var p;return Z(Z({},u),{},{label:(p=s.get(u.value))===null||p===void 0?void 0:p.label})}return u}),c=new Map,m=new Map;return d.forEach(function(u){c.set(u.value,u),m.set(u.value,t.get(u.value)||l.get(u.value))}),i.current.values=c,i.current.options=m,d},[e,t]),o=r.useCallback(function(a){return t.get(a)||i.current.options.get(a)},[t]);return[n,o]};function Lt(e,t){return Dn(e).join("").toUpperCase().includes(t)}const ji=function(e,t,i,n,o){return r.useMemo(function(){if(!i||n===!1)return e;var a=t.options,s=t.label,l=t.value,d=[],c=typeof n=="function",m=i.toUpperCase(),u=c?n:function(f,g){return o?Lt(g[o],m):g[a]?Lt(g[s!=="children"?s:"label"],m):Lt(g[l],m)},p=c?function(f){return At(f)}:function(f){return f};return e.forEach(function(f){if(f[a]){var g=u(i,p(f));if(g)d.push(f);else{var h=f[a].filter(function(b){return u(i,p(b))});h.length&&d.push(Z(Z({},f),{},ie({},a,h)))}return}u(i,p(f))&&d.push(f)}),d},[e,n,o,i,t])};var bn=0,Bi=Mo();function Vi(){var e;return Bi?(e=bn,bn+=1):e="TEST_OR_SSR",e}function Ai(e){var t=r.useState(),i=fe(t,2),n=i[0],o=i[1];return r.useEffect(function(){o("rc_select_".concat(Vi()))},[]),e||n}var Fi=["children","value"],Wi=["children"];function Ki(e){var t=e,i=t.key,n=t.props,o=n.children,a=n.value,s=ct(n,Fi);return Z({key:i,value:a!==void 0?a:i,children:o},s)}function Hn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Po(e).map(function(i,n){if(!r.isValidElement(i)||!i.type)return null;var o=i,a=o.type.isSelectOptGroup,s=o.key,l=o.props,d=l.children,c=ct(l,Wi);return t||!a?Ki(i):Z(Z({key:"__RC_SELECT_GRP__".concat(s===null?n:s,"__"),label:s},c),{},{options:Hn(d)})}).filter(function(i){return i})}function Gi(e,t,i,n,o){return r.useMemo(function(){var a=e,s=!e;s&&(a=Hn(t));var l=new Map,d=new Map,c=function(p,f,g){g&&typeof g=="string"&&p.set(f[g],f)};function m(u){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=0;f<u.length;f+=1){var g=u[f];!g[i.options]||p?(l.set(g[i.value],g),c(d,g,i.label),c(d,g,n),c(d,g,o)):m(g[i.options],!0)}}return m(a),{options:a,valueOptions:l,labelOptions:d}},[e,t,i,n,o])}function Cn(e){var t=r.useRef();t.current=e;var i=r.useCallback(function(){return t.current.apply(t,arguments)},[]);return i}var Jt=function(){return null};Jt.isSelectOptGroup=!0;var Yt=function(){return null};Yt.isSelectOption=!0;var Ln=r.forwardRef(function(e,t){var i=e.height,n=e.offset,o=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,d={},c={display:"flex",flexDirection:"column"};return n!==void 0&&(d={height:i,position:"relative",overflow:"hidden"},c=Z(Z({},c),{},{transform:"translateY(".concat(n,"px)"),position:"absolute",left:0,right:0,top:0})),r.createElement("div",{style:d},r.createElement(Do,{onResize:function(u){var p=u.offsetHeight;p&&s&&s()}},r.createElement("div",De({style:c,className:ne(ie({},"".concat(a,"-holder-inner"),a)),ref:t},l),o)))});Ln.displayName="Filler";var Ui=20;function yn(e){return"touches"in e?e.touches[0].pageY:e.pageY}var Xi=function(e){Kt(i,e);var t=Gt(i);function i(){var n;Rt(this,i);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=t.call.apply(t,[this].concat(a)),n.moveRaf=null,n.scrollbarRef=r.createRef(),n.thumbRef=r.createRef(),n.visibleTimeout=null,n.state={dragging:!1,pageY:null,startTop:null,visible:!1},n.delayHidden=function(){clearTimeout(n.visibleTimeout),n.setState({visible:!0}),n.visibleTimeout=setTimeout(function(){n.setState({visible:!1})},2e3)},n.onScrollbarTouchStart=function(l){l.preventDefault()},n.onContainerMouseDown=function(l){l.stopPropagation(),l.preventDefault()},n.patchEvents=function(){window.addEventListener("mousemove",n.onMouseMove),window.addEventListener("mouseup",n.onMouseUp),n.thumbRef.current.addEventListener("touchmove",n.onMouseMove),n.thumbRef.current.addEventListener("touchend",n.onMouseUp)},n.removeEvents=function(){var l;window.removeEventListener("mousemove",n.onMouseMove),window.removeEventListener("mouseup",n.onMouseUp),(l=n.scrollbarRef.current)===null||l===void 0||l.removeEventListener("touchstart",n.onScrollbarTouchStart),n.thumbRef.current&&(n.thumbRef.current.removeEventListener("touchstart",n.onMouseDown),n.thumbRef.current.removeEventListener("touchmove",n.onMouseMove),n.thumbRef.current.removeEventListener("touchend",n.onMouseUp)),ke.cancel(n.moveRaf)},n.onMouseDown=function(l){var d=n.props.onStartMove;n.setState({dragging:!0,pageY:yn(l),startTop:n.getTop()}),d(),n.patchEvents(),l.stopPropagation(),l.preventDefault()},n.onMouseMove=function(l){var d=n.state,c=d.dragging,m=d.pageY,u=d.startTop,p=n.props.onScroll;if(ke.cancel(n.moveRaf),c){var f=yn(l)-m,g=u+f,h=n.getEnableScrollRange(),b=n.getEnableHeightRange(),S=b?g/b:0,v=Math.ceil(S*h);n.moveRaf=ke(function(){p(v)})}},n.onMouseUp=function(){var l=n.props.onStopMove;n.setState({dragging:!1}),l(),n.removeEvents()},n.getSpinHeight=function(){var l=n.props,d=l.height,c=l.count,m=d/c*10;return m=Math.max(m,Ui),m=Math.min(m,d/2),Math.floor(m)},n.getEnableScrollRange=function(){var l=n.props,d=l.scrollHeight,c=l.height;return d-c||0},n.getEnableHeightRange=function(){var l=n.props.height,d=n.getSpinHeight();return l-d||0},n.getTop=function(){var l=n.props.scrollTop,d=n.getEnableScrollRange(),c=n.getEnableHeightRange();if(l===0||d===0)return 0;var m=l/d;return m*c},n.showScroll=function(){var l=n.props,d=l.height,c=l.scrollHeight;return c>d},n}return Nt(i,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,a=o.dragging,s=o.visible,l=this.props.prefixCls,d=this.getSpinHeight(),c=this.getTop(),m=this.showScroll(),u=m&&s;return r.createElement("div",{ref:this.scrollbarRef,className:ne("".concat(l,"-scrollbar"),ie({},"".concat(l,"-scrollbar-show"),m)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:u?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:ne("".concat(l,"-scrollbar-thumb"),ie({},"".concat(l,"-scrollbar-thumb-moving"),a)),style:{width:"100%",height:d,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),i}(r.Component);function Ji(e){var t=e.children,i=e.setRef,n=r.useCallback(function(o){i(o)},[]);return r.cloneElement(t,{ref:n})}function Yi(e,t,i,n,o,a){var s=a.getKey;return e.slice(t,i+1).map(function(l,d){var c=t+d,m=o(l,c,{}),u=s(l);return r.createElement(Ji,{key:u,setRef:function(f){return n(l,f)}},m)})}var qi=function(){function e(){Rt(this,e),this.maps=void 0,this.maps=Object.create(null)}return Nt(e,[{key:"set",value:function(i,n){this.maps[i]=n}},{key:"get",value:function(i){return this.maps[i]}}]),e}();function Qi(e,t,i){var n=r.useState(0),o=fe(n,2),a=o[0],s=o[1],l=r.useRef(new Map),d=r.useRef(new qi),c=r.useRef();function m(){ke.cancel(c.current)}function u(){m(),c.current=ke(function(){l.current.forEach(function(f,g){if(f&&f.offsetParent){var h=Ro(f),b=h.offsetHeight;d.current.get(g)!==b&&d.current.set(g,h.offsetHeight)}}),s(function(f){return f+1})})}function p(f,g){var h=e(f),b=l.current.get(h);g?(l.current.set(h,g),u()):l.current.delete(h),!b!=!g&&(g?t==null||t(f):i==null||i(f))}return r.useEffect(function(){return m},[]),[p,u,d.current,a]}function Zi(e,t,i,n,o,a,s,l){var d=r.useRef();return function(c){if(c==null){l();return}if(ke.cancel(d.current),typeof c=="number")s(c);else if(c&&yt(c)==="object"){var m,u=c.align;"index"in c?m=c.index:m=t.findIndex(function(h){return o(h)===c.key});var p=c.offset,f=p===void 0?0:p,g=function h(b,S){if(!(b<0||!e.current)){var v=e.current.clientHeight,C=!1,M=S;if(v){for(var E=S||u,H=0,oe=0,O=0,L=Math.min(t.length,m),y=0;y<=L;y+=1){var V=o(t[y]);oe=H;var q=i.get(V);O=oe+(q===void 0?n:q),H=O,y===m&&q===void 0&&(C=!0)}var I=null;switch(E){case"top":I=oe-f;break;case"bottom":I=O-v+f;break;default:{var _=e.current.scrollTop,T=_+v;oe<_?M="top":O>T&&(M="bottom")}}I!==null&&I!==e.current.scrollTop&&s(I)}d.current=ke(function(){C&&a(),h(b-1,M)},2)}};g(3)}}}function ki(e,t,i){var n=e.length,o=t.length,a,s;if(n===0&&o===0)return null;n<o?(a=e,s=t):(a=t,s=e);var l={__EMPTY_ITEM__:!0};function d(g){return g!==void 0?i(g):l}for(var c=null,m=Math.abs(n-o)!==1,u=0;u<s.length;u+=1){var p=d(a[u]),f=d(s[u]);if(p!==f){c=u,m=m||p!==d(s[u+1]);break}}return c===null?null:{index:c,multiple:m}}function er(e,t,i){var n=r.useState(e),o=fe(n,2),a=o[0],s=o[1],l=r.useState(null),d=fe(l,2),c=d[0],m=d[1];return r.useEffect(function(){var u=ki(a||[],e||[],t);(u==null?void 0:u.index)!==void 0&&(i==null||i(u.index),m(e[u.index])),s(e)},[e]),[c]}var tr=(typeof navigator>"u"?"undefined":yt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const _n=function(e,t){var i=r.useRef(!1),n=r.useRef(null);function o(){clearTimeout(n.current),i.current=!0,n.current=setTimeout(function(){i.current=!1},50)}var a=r.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=s<0&&a.current.top||s>0&&a.current.bottom;return l&&d?(clearTimeout(n.current),i.current=!1):(!d||i.current)&&o(),!i.current&&d}};function nr(e,t,i,n){var o=r.useRef(0),a=r.useRef(null),s=r.useRef(null),l=r.useRef(!1),d=_n(t,i);function c(u){if(e){ke.cancel(a.current);var p=u.deltaY;o.current+=p,s.current=p,!d(p)&&(tr||u.preventDefault(),a.current=ke(function(){var f=l.current?10:1;n(o.current*f),o.current=0}))}}function m(u){e&&(l.current=u.detail===s.current)}return[c,m]}var or=14/15;function ir(e,t,i){var n=r.useRef(!1),o=r.useRef(0),a=r.useRef(null),s=r.useRef(null),l,d=function(p){if(n.current){var f=Math.ceil(p.touches[0].pageY),g=o.current-f;o.current=f,i(g)&&p.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){g*=or,(!i(g,!0)||Math.abs(g)<=.1)&&clearInterval(s.current)},16)}},c=function(){n.current=!1,l()},m=function(p){l(),p.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",d),a.current.addEventListener("touchend",c))};l=function(){a.current&&(a.current.removeEventListener("touchmove",d),a.current.removeEventListener("touchend",c))},Mt(function(){return e&&t.current.addEventListener("touchstart",m),function(){var u;(u=t.current)===null||u===void 0||u.removeEventListener("touchstart",m),l(),clearInterval(s.current)}},[e])}var rr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],ar=[],lr={overflowY:"auto",overflowAnchor:"none"};function sr(e,t){var i=e.prefixCls,n=i===void 0?"rc-virtual-list":i,o=e.className,a=e.height,s=e.itemHeight,l=e.fullHeight,d=l===void 0?!0:l,c=e.style,m=e.data,u=e.children,p=e.itemKey,f=e.virtual,g=e.component,h=g===void 0?"div":g,b=e.onScroll,S=e.onVisibleChange,v=e.innerProps,C=ct(e,rr),M=!!(f!==!1&&a&&s),E=M&&m&&s*m.length>a,H=r.useState(0),oe=fe(H,2),O=oe[0],L=oe[1],y=r.useState(!1),V=fe(y,2),q=V[0],I=V[1],_=ne(n,o),T=m||ar,P=r.useRef(),W=r.useRef(),j=r.useRef(),$=r.useCallback(function(G){return typeof p=="function"?p(G):G==null?void 0:G[p]},[p]),ge={getKey:$};function ee(G){L(function(ce){var Ee;typeof G=="function"?Ee=G(ce):Ee=G;var ye=me(Ee);return P.current.scrollTop=ye,ye})}var Se=r.useRef({start:0,end:T.length}),de=r.useRef(),ue=er(T,$),be=fe(ue,1),w=be[0];de.current=w;var x=Qi($,null,null),N=fe(x,4),k=N[0],te=N[1],U=N[2],re=N[3],A=r.useMemo(function(){if(!M)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!E){var G;return{scrollHeight:((G=W.current)===null||G===void 0?void 0:G.offsetHeight)||0,start:0,end:T.length-1,offset:void 0}}for(var ce=0,Ee,ye,Le,Ve=T.length,Ke=0;Ke<Ve;Ke+=1){var ut=T[Ke],Ye=$(ut),et=U.get(Ye),qe=ce+(et===void 0?s:et);qe>=O&&Ee===void 0&&(Ee=Ke,ye=ce),qe>O+a&&Le===void 0&&(Le=Ke),ce=qe}return Ee===void 0&&(Ee=0,ye=0,Le=Math.ceil(a/s)),Le===void 0&&(Le=T.length-1),Le=Math.min(Le+1,T.length),{scrollHeight:ce,start:Ee,end:Le,offset:ye}},[E,M,O,T,re,a]),se=A.scrollHeight,ae=A.start,pe=A.end,K=A.offset;Se.current.start=ae,Se.current.end=pe;var Y=se-a,le=r.useRef(Y);le.current=Y;function me(G){var ce=G;return Number.isNaN(le.current)||(ce=Math.min(ce,le.current)),ce=Math.max(ce,0),ce}var je=O<=0,Ae=O>=Y,Ie=_n(je,Ae);function Me(G){var ce=G;ee(ce)}function at(G){var ce=G.currentTarget.scrollTop;ce!==O&&ee(ce),b==null||b(G)}var Re=nr(M,je,Ae,function(G){ee(function(ce){var Ee=ce+G;return Ee})}),Be=fe(Re,2),Ne=Be[0],Pe=Be[1];ir(M,P,function(G,ce){return Ie(G,ce)?!1:(Ne({preventDefault:function(){},deltaY:G}),!0)}),Mt(function(){function G(ce){M&&ce.preventDefault()}return P.current.addEventListener("wheel",Ne),P.current.addEventListener("DOMMouseScroll",Pe),P.current.addEventListener("MozMousePixelScroll",G),function(){P.current&&(P.current.removeEventListener("wheel",Ne),P.current.removeEventListener("DOMMouseScroll",Pe),P.current.removeEventListener("MozMousePixelScroll",G))}},[M]);var we=Zi(P,T,U,s,$,te,ee,function(){var G;(G=j.current)===null||G===void 0||G.delayHidden()});r.useImperativeHandle(t,function(){return{scrollTo:we}}),Mt(function(){if(S){var G=T.slice(ae,pe+1);S(G,T)}},[ae,pe,T]);var gt=Yi(T,ae,pe,k,u,ge),Fe=null;return a&&(Fe=Z(ie({},d?"height":"maxHeight",a),lr),M&&(Fe.overflowY="hidden",q&&(Fe.pointerEvents="none"))),r.createElement("div",De({style:Z(Z({},c),{},{position:"relative"}),className:_},C),r.createElement(h,{className:"".concat(n,"-holder"),style:Fe,ref:P,onScroll:at},r.createElement(Ln,{prefixCls:n,height:se,offset:K,onInnerResize:te,ref:W,innerProps:v},gt)),M&&r.createElement(Xi,{ref:j,prefixCls:n,scrollTop:O,height:a,scrollHeight:se,count:T.length,onScroll:Me,onStartMove:function(){I(!0)},onStopMove:function(){I(!1)}}))}var jn=r.forwardRef(sr);jn.displayName="List";var Bn=r.createContext(null);function cr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ur=["disabled","title","children","style","className"];function xn(e){return typeof e=="string"||typeof e=="number"}var dr=function(t,i){var n=hi(),o=n.prefixCls,a=n.id,s=n.open,l=n.multiple,d=n.mode,c=n.searchValue,m=n.toggleOpen,u=n.notFoundContent,p=n.onPopupScroll,f=r.useContext(Bn),g=f.flattenOptions,h=f.onActiveValue,b=f.defaultActiveFirstOption,S=f.onSelect,v=f.menuItemSelectedIcon,C=f.rawValues,M=f.fieldNames,E=f.virtual,H=f.listHeight,oe=f.listItemHeight,O="".concat(o,"-item"),L=No(function(){return g},[s,g],function(w,x){return x[0]&&w[1]!==x[1]}),y=r.useRef(null),V=function(x){x.preventDefault()},q=function(x){y.current&&y.current.scrollTo(typeof x=="number"?{index:x}:x)},I=function(x){for(var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=L.length,te=0;te<k;te+=1){var U=(x+te*N+k)%k,re=L[U],A=re.group,se=re.data;if(!A&&!se.disabled)return U}return-1},_=r.useState(function(){return I(0)}),T=fe(_,2),P=T[0],W=T[1],j=function(x){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;W(x);var k={source:N?"keyboard":"mouse"},te=L[x];if(!te){h(null,-1,k);return}h(te.value,x,k)};r.useEffect(function(){j(b!==!1?I(0):-1)},[L.length,c]);var $=r.useCallback(function(w){return C.has(w)&&d!=="combobox"},[d,Te(C).toString(),C.size]);r.useEffect(function(){var w=setTimeout(function(){if(!l&&s&&C.size===1){var N=Array.from(C)[0],k=L.findIndex(function(te){var U=te.data;return U.value===N});k!==-1&&(j(k),q(k))}});if(s){var x;(x=y.current)===null||x===void 0||x.scrollTo(void 0)}return function(){return clearTimeout(w)}},[s,c,g.length]);var ge=function(x){x!==void 0&&S(x,{selected:!C.has(x)}),l||m(!1)};if(r.useImperativeHandle(i,function(){return{onKeyDown:function(x){var N=x.which,k=x.ctrlKey;switch(N){case J.N:case J.P:case J.UP:case J.DOWN:{var te=0;if(N===J.UP?te=-1:N===J.DOWN?te=1:cr()&&k&&(N===J.N?te=1:N===J.P&&(te=-1)),te!==0){var U=I(P+te,te);q(U),j(U,!0)}break}case J.ENTER:{var re=L[P];re&&!re.data.disabled?ge(re.value):ge(void 0),s&&x.preventDefault();break}case J.ESC:m(!1),s&&x.stopPropagation()}},onKeyUp:function(){},scrollTo:function(x){q(x)}}}),L.length===0)return r.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(O,"-empty"),onMouseDown:V},u);var ee=Object.keys(M).map(function(w){return M[w]}),Se=function(x){return x.label};function de(w,x){var N=w.group;return{role:N?"presentation":"option",id:"".concat(a,"_list_").concat(x)}}var ue=function(x){var N=L[x];if(!N)return null;var k=N.data||{},te=k.value,U=N.group,re=Pt(k,!0),A=Se(N);return N?r.createElement("div",De({"aria-label":typeof A=="string"&&!U?A:null},re,{key:x},de(N,x),{"aria-selected":$(te)}),te):null},be={role:"listbox",id:"".concat(a,"_list")};return r.createElement(r.Fragment,null,E&&r.createElement("div",De({},be,{style:{height:0,width:0,overflow:"hidden"}}),ue(P-1),ue(P),ue(P+1)),r.createElement(jn,{itemKey:"key",ref:y,data:L,height:H,itemHeight:oe,fullHeight:!1,onMouseDown:V,onScroll:p,virtual:E,innerProps:E?null:be},function(w,x){var N,k=w.group,te=w.groupOption,U=w.data,re=w.label,A=w.value,se=U.key;if(k){var ae,pe=(ae=U.title)!==null&&ae!==void 0?ae:xn(re)?re.toString():void 0;return r.createElement("div",{className:ne(O,"".concat(O,"-group")),title:pe},re!==void 0?re:se)}var K=U.disabled,Y=U.title;U.children;var le=U.style,me=U.className,je=ct(U,ur),Ae=Ut(je,ee),Ie=$(A),Me="".concat(O,"-option"),at=ne(O,Me,me,(N={},ie(N,"".concat(Me,"-grouped"),te),ie(N,"".concat(Me,"-active"),P===x&&!K),ie(N,"".concat(Me,"-disabled"),K),ie(N,"".concat(Me,"-selected"),Ie),N)),Re=Se(w),Be=!v||typeof v=="function"||Ie,Ne=typeof Re=="number"?Re:Re||A,Pe=xn(Ne)?Ne.toString():void 0;return Y!==void 0&&(Pe=Y),r.createElement("div",De({},Pt(Ae),E?{}:de(w,x),{"aria-selected":Ie,className:at,title:Pe,onMouseMove:function(){P===x||K||j(x)},onClick:function(){K||ge(A)},style:le}),r.createElement("div",{className:"".concat(Me,"-content")},Ne),r.isValidElement(v)||Ie,Be&&r.createElement(Dt,{className:"".concat(O,"-option-state"),customizeIcon:v,customizeIconProps:{isSelected:Ie}},Ie?"✓":null))}))},Vn=r.forwardRef(dr);Vn.displayName="OptionList";var mr=["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"],pr=["inputValue"];function fr(e){return!e||yt(e)!=="object"}var gr=r.forwardRef(function(e,t){var i=e.id,n=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,s=e.backfill,l=e.fieldNames,d=e.inputValue,c=e.searchValue,m=e.onSearch,u=e.autoClearSearchValue,p=u===void 0?!0:u,f=e.onSelect,g=e.onDeselect,h=e.dropdownMatchSelectWidth,b=h===void 0?!0:h,S=e.filterOption,v=e.filterSort,C=e.optionFilterProp,M=e.optionLabelProp,E=e.options,H=e.children,oe=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,L=e.virtual,y=e.listHeight,V=y===void 0?200:y,q=e.listItemHeight,I=q===void 0?20:q,_=e.value,T=e.defaultValue,P=e.labelInValue,W=e.onChange,j=ct(e,mr),$=Ai(i),ge=Ft(n),ee=!!(!E&&H),Se=r.useMemo(function(){return S===void 0&&n==="combobox"?!1:S},[S,n]),de=r.useMemo(function(){return Tn(l,ee)},[JSON.stringify(l),ee]),ue=Ot("",{value:c!==void 0?c:d,postState:function(F){return F||""}}),be=fe(ue,2),w=be[0],x=be[1],N=Gi(E,H,de,C,M),k=N.valueOptions,te=N.labelOptions,U=N.options,re=r.useCallback(function(D){var F=Dn(D);return F.map(function(z){var Q,he,ve,Qe,Ge;if(fr(z))Q=z;else{var lt;ve=z.key,he=z.label,Q=(lt=z.value)!==null&&lt!==void 0?lt:ve}var $e=k.get(Q);if($e){var nt;he===void 0&&(he=$e==null?void 0:$e[M||de.label]),ve===void 0&&(ve=(nt=$e==null?void 0:$e.key)!==null&&nt!==void 0?nt:Q),Qe=$e==null?void 0:$e.disabled,Ge=$e==null?void 0:$e.title}return{label:he,value:Q,key:ve,disabled:Qe,title:Ge}})},[de,M,k]),A=Ot(T,{value:_}),se=fe(A,2),ae=se[0],pe=se[1],K=r.useMemo(function(){var D,F=re(ae);return n==="combobox"&&!((D=F[0])!==null&&D!==void 0&&D.value)?[]:F},[ae,re,n]),Y=_i(K,k),le=fe(Y,2),me=le[0],je=le[1],Ae=r.useMemo(function(){if(!n&&me.length===1){var D=me[0];if(D.value===null&&(D.label===null||D.label===void 0))return[]}return me.map(function(F){var z;return Z(Z({},F),{},{label:(z=F.label)!==null&&z!==void 0?z:F.value})})},[n,me]),Ie=r.useMemo(function(){return new Set(me.map(function(D){return D.value}))},[me]);r.useEffect(function(){if(n==="combobox"){var D,F=(D=me[0])===null||D===void 0?void 0:D.value;x(xi(F)?String(F):"")}},[me]);var Me=Cn(function(D,F){var z,Q=F??D;return z={},ie(z,de.value,D),ie(z,de.label,Q),z}),at=r.useMemo(function(){if(n!=="tags")return U;var D=Te(U),F=function(Q){return k.has(Q)};return Te(me).sort(function(z,Q){return z.value<Q.value?-1:1}).forEach(function(z){var Q=z.value;F(Q)||D.push(Me(Q,z.label))}),D},[Me,U,k,me,n]),Re=ji(at,de,w,Se,C),Be=r.useMemo(function(){return n!=="tags"||!w||Re.some(function(D){return D[C||"value"]===w})?Re:[Me(w)].concat(Te(Re))},[Me,C,n,Re,w]),Ne=r.useMemo(function(){return v?Te(Be).sort(function(D,F){return v(D,F)}):Be},[Be,v]),Pe=r.useMemo(function(){return Ni(Ne,{fieldNames:de,childrenAsData:ee})},[Ne,de,ee]),we=function(F){var z=re(F);if(pe(z),W&&(z.length!==me.length||z.some(function(ve,Qe){var Ge;return((Ge=me[Qe])===null||Ge===void 0?void 0:Ge.value)!==(ve==null?void 0:ve.value)}))){var Q=P?z:z.map(function(ve){return ve.value}),he=z.map(function(ve){return At(je(ve.value))});W(ge?Q:Q[0],ge?he:he[0])}},gt=r.useState(null),Fe=fe(gt,2),G=Fe[0],ce=Fe[1],Ee=r.useState(0),ye=fe(Ee,2),Le=ye[0],Ve=ye[1],Ke=oe!==void 0?oe:n!=="combobox",ut=r.useCallback(function(D,F){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=z.source,he=Q===void 0?"keyboard":Q;Ve(F),s&&n==="combobox"&&D!==null&&he==="keyboard"&&ce(String(D))},[s,n]),Ye=function(F,z,Q){var he=function(){var Ue,Ze=je(F);return[P?{label:Ze==null?void 0:Ze[de.label],value:F,key:(Ue=Ze==null?void 0:Ze.key)!==null&&Ue!==void 0?Ue:F}:F,At(Ze)]};if(z&&f){var ve=he(),Qe=fe(ve,2),Ge=Qe[0],lt=Qe[1];f(Ge,lt)}else if(!z&&g&&Q!=="clear"){var $e=he(),nt=fe($e,2),ht=nt[0],Tt=nt[1];g(ht,Tt)}},et=Cn(function(D,F){var z,Q=ge?F.selected:!0;Q?z=ge?[].concat(Te(me),[D]):[D]:z=me.filter(function(he){return he.value!==D}),we(z),Ye(D,Q),n==="combobox"?ce(""):(!Ft||p)&&(x(""),ce(""))}),qe=function(F,z){we(F);var Q=z.type,he=z.values;(Q==="remove"||Q==="clear")&&he.forEach(function(ve){Ye(ve.value,!1,Q)})},xe=function(F,z){if(x(F),ce(null),z.source==="submit"){var Q=(F||"").trim();if(Q){var he=Array.from(new Set([].concat(Te(Ie),[Q])));we(he),Ye(Q,!0),x("")}return}z.source!=="blur"&&(n==="combobox"&&we(F),m==null||m(F))},It=function(F){var z=F;n!=="tags"&&(z=F.map(function(he){var ve=te.get(he);return ve==null?void 0:ve.value}).filter(function(he){return he!==void 0}));var Q=Array.from(new Set([].concat(Te(Ie),Te(z))));we(Q),Q.forEach(function(he){Ye(he,!0)})},tt=r.useMemo(function(){var D=L!==!1&&b!==!1;return Z(Z({},N),{},{flattenOptions:Pe,onActiveValue:ut,defaultActiveFirstOption:Ke,onSelect:et,menuItemSelectedIcon:O,rawValues:Ie,fieldNames:de,virtual:D,listHeight:V,listItemHeight:I,childrenAsData:ee})},[N,Pe,ut,Ke,et,O,Ie,de,L,b,V,I,ee]);return r.createElement(Bn.Provider,{value:tt},r.createElement(Li,De({},j,{id:$,prefixCls:a,ref:t,omitDomProps:pr,mode:n,displayValues:Ae,onDisplayValuesChange:qe,searchValue:w,onSearch:xe,autoClearSearchValue:p,onSearchSplit:It,dropdownMatchSelectWidth:b,OptionList:Vn,emptyOptions:!Pe.length,activeValue:G,activeDescendantId:"".concat($,"_list_").concat(Le)})))}),qt=gr;qt.Option=Yt;qt.OptGroup=Jt;const hr=()=>{const[,e]=wn(),t=new wt(e.colorBgBase);let i={};return t.toHsl().l<.5&&(i={opacity:.65}),r.createElement("svg",{style:i,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},vr=hr,Sr=()=>{const[,e]=wn(),{colorFill:t,colorFillTertiary:i,colorFillQuaternary:n,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=r.useMemo(()=>({borderColor:new wt(t).onBackground(o).toHexShortString(),shadowColor:new wt(i).onBackground(o).toHexShortString(),contentColor:new wt(n).onBackground(o).toHexShortString()}),[t,i,n,o]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:a},r.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"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},br=Sr,Cr=e=>{const{componentCls:t,margin:i,marginXS:n,marginXL:o,fontSize:a,lineHeight:s}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:i},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},yr=xt("Empty",e=>{const{componentCls:t,controlHeightLG:i}=e,n=He(e,{emptyImgCls:`${t}-img`,emptyImgHeight:i*2.5,emptyImgHeightMD:i,emptyImgHeightSM:i*.875});return[Cr(n)]});var xr=globalThis&&globalThis.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i};const An=r.createElement(vr,null),Fn=r.createElement(br,null),Qt=e=>{var{className:t,rootClassName:i,prefixCls:n,image:o=An,description:a,children:s,imageStyle:l}=e,d=xr(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:m}=r.useContext(Je),u=c("empty",n),[p,f]=yr(u),[g]=On("Empty"),h=typeof a<"u"?a:g==null?void 0:g.description,b=typeof h=="string"?h:"empty";let S=null;return typeof o=="string"?S=r.createElement("img",{alt:b,src:o}):S=o,p(r.createElement("div",Object.assign({className:ne(f,u,{[`${u}-normal`]:o===Fn,[`${u}-rtl`]:m==="rtl"},t,i)},d),r.createElement("div",{className:`${u}-image`,style:l},S),h&&r.createElement("div",{className:`${u}-description`},h),s&&r.createElement("div",{className:`${u}-footer`},s)))};Qt.PRESENTED_IMAGE_DEFAULT=An;Qt.PRESENTED_IMAGE_SIMPLE=Fn;const St=Qt,$r=e=>{const{componentName:t}=e,{getPrefixCls:i}=r.useContext(Je),n=i("empty");switch(t){case"Table":case"List":return R.createElement(St,{image:St.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return R.createElement(St,{image:St.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});default:return R.createElement(St,null)}},Wn=$r;function Ir(e,t,i){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:i})}const wr=(e,t)=>t||e;var Er={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const Or=Er;var Kn=function(t,i){return r.createElement($t,Z(Z({},t),{},{ref:i,icon:Or}))};Kn.displayName="CheckOutlined";const Mr=r.forwardRef(Kn);var Pr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Dr=Pr;var Gn=function(t,i){return r.createElement($t,Z(Z({},t),{},{ref:i,icon:Dr}))};Gn.displayName="DownOutlined";const Rr=r.forwardRef(Gn);var Nr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const zr=Nr;var Un=function(t,i){return r.createElement($t,Z(Z({},t),{},{ref:i,icon:zr}))};Un.displayName="SearchOutlined";const Tr=r.forwardRef(Un);function Hr(e){let{suffixIcon:t,clearIcon:i,menuItemSelectedIcon:n,removeIcon:o,loading:a,multiple:s,hasFeedback:l,prefixCls:d,showArrow:c,feedbackIcon:m}=e;const u=i??r.createElement(ei,null),p=b=>r.createElement(r.Fragment,null,c!==!1&&b,l&&m);let f=null;if(t!==void 0)f=p(t);else if(a)f=p(r.createElement(To,{spin:!0}));else{const b=`${d}-suffix`;f=S=>{let{open:v,showSearch:C}=S;return p(v&&C?r.createElement(Tr,{className:b}):r.createElement(Rr,{className:b}))}}let g=null;n!==void 0?g=n:s?g=r.createElement(Mr,null):g=null;let h=null;return o!==void 0?h=o:h=r.createElement(zo,null),{clearIcon:u,suffixIcon:f,itemIcon:g,removeIcon:h}}function Lr(e,t,i){return function(o){const{prefixCls:a,style:s}=o,l=r.useRef(null),[d,c]=r.useState(0),[m,u]=r.useState(0),[p,f]=Ot(!1,{value:o.open}),{getPrefixCls:g}=r.useContext(Je),h=g(t||"select",a);return r.useEffect(()=>{if(f(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(v=>{const C=v[0].target;c(C.offsetHeight+8),u(C.offsetWidth)}),S=setInterval(()=>{var v;const C=i?`.${i(h)}`:`.${h}-dropdown`,M=(v=l.current)===null||v===void 0?void 0:v.querySelector(C);M&&(clearInterval(S),b.observe(M))},10);return()=>{clearInterval(S),b.disconnect()}}},[]),r.createElement(Ho,{theme:{token:{motionDurationFast:"0.01s",motionDurationMid:"0.01s",motionDurationSlow:"0.01s"}}},r.createElement("div",{ref:l,style:{paddingBottom:d,position:"relative",width:"fit-content",minWidth:m}},r.createElement(e,Object.assign({},o,{style:Object.assign(Object.assign({},s),{margin:0}),open:p,visible:p,getPopupContainer:()=>l.current}))))}}const $n=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},_r=e=>{const{antCls:t,componentCls:i}=e,n=`${i}-item`;return[{[`${i}-dropdown`]:Object.assign(Object.assign({},pt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
            &${t}-slide-up-enter${t}-slide-up-enter-active${i}-dropdown-placement-bottomLeft,
            &${t}-slide-up-appear${t}-slide-up-appear-active${i}-dropdown-placement-bottomLeft
          `]:{animationName:Lo},[`
            &${t}-slide-up-enter${t}-slide-up-enter-active${i}-dropdown-placement-topLeft,
            &${t}-slide-up-appear${t}-slide-up-appear-active${i}-dropdown-placement-topLeft
          `]:{animationName:_o},[`&${t}-slide-up-leave${t}-slide-up-leave-active${i}-dropdown-placement-bottomLeft`]:{animationName:jo},[`&${t}-slide-up-leave${t}-slide-up-leave-active${i}-dropdown-placement-topLeft`]:{animationName:Bo},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${n}-empty`]:Object.assign(Object.assign({},$n(e)),{color:e.colorTextDisabled}),[`${n}`]:Object.assign(Object.assign({},$n(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign(Object.assign({flex:"auto"},Ct),{"> *":Object.assign({},Ct)}),"&-state":{flex:"none"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${n}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},un(e,"slide-up"),un(e,"slide-down"),gn(e,"move-up"),gn(e,"move-down")]},jr=_r,mt=2;function Xn(e){let{controlHeightSM:t,controlHeight:i,lineWidth:n}=e;const o=(i-t)/2-n,a=Math.ceil(o/2);return[o,a]}function _t(e,t){const{componentCls:i,iconCls:n}=e,o=`${i}-selection-overflow`,a=e.controlHeightSM,[s]=Xn(e),l=t?`${i}-${t}`:"";return{[`${i}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${i}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${s-mt}px ${mt*2}px`,borderRadius:e.borderRadius,[`${i}-show-search&`]:{cursor:"text"},[`${i}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${mt}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[`
        &${i}-show-arrow ${i}-selector,
        &${i}-allow-clear ${i}-selector
      `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${i}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:mt,marginBottom:mt,lineHeight:`${a-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:mt*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${i}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},En()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${i}-selection-search`]:{marginInlineStart:0}},[`${i}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-s,[`
          &-input,
          &-mirror
        `]:{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${i}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function Br(e){const{componentCls:t}=e,i=He(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,n]=Xn(e);return[_t(e),_t(i,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:n}}},_t(He(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function jt(e,t){const{componentCls:i,inputPaddingHorizontalBase:n,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,s=Math.ceil(e.fontSize*1.25),l=t?`${i}-${t}`:"";return{[`${i}-single${l}`]:{fontSize:e.fontSize,[`${i}-selector`]:Object.assign(Object.assign({},pt(e)),{display:"flex",borderRadius:o,[`${i}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%"}},[`
          ${i}-selection-item,
          ${i}-selection-placeholder
        `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${i}-selection-item`]:{position:"relative",userSelect:"none"},[`${i}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${i}-selection-item:after`,`${i}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${i}-show-arrow ${i}-selection-item,
        &${i}-show-arrow ${i}-selection-placeholder
      `]:{paddingInlineEnd:s},[`&${i}-open ${i}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${i}-customize-input)`]:{[`${i}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${n}px`,[`${i}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${i}-customize-input`]:{[`${i}-selector`]:{"&:after":{display:"none"},[`${i}-selection-search`]:{position:"static",width:"100%"},[`${i}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${n}px`,"&:after":{display:"none"}}}}}}}function Vr(e){const{componentCls:t}=e,i=e.controlPaddingHorizontalSM-e.lineWidth;return[jt(e),jt(He(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:i,insetInlineEnd:i},[`${t}-selector`]:{padding:`0 ${i}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:i+e.fontSize*1.5},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.fontSize*1.5}}}},jt(He(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Ar=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},Bt=function(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:n,borderHoverColor:o,outlineColor:a,antCls:s}=t,l=i?{[`${n}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${n}-disabled):not(${n}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${n}-focused& ${n}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,outline:0},[`&:hover ${n}-selector`]:{borderColor:o}})}}},Fr=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Wr=e=>{const{componentCls:t,inputPaddingHorizontalBase:i,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},pt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},Ar(e)),Fr(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Ct),{"> *":Object.assign({lineHeight:"inherit"},Ct)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Ct),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},En()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:i+e.fontSize+e.paddingXXS}}}},Kr=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},Wr(e),Vr(e),Br(e),jr(e),{[`${t}-rtl`]:{direction:"rtl"}},Bt(t,He(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Bt(`${t}-status-error`,He(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Bt(`${t}-status-warning`,He(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Vo(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Gr=xt("Select",(e,t)=>{let{rootPrefixCls:i}=t;const n=He(e,{rootPrefixCls:i,inputPaddingHorizontalBase:e.paddingSM-1});return[Kr(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));function Ur(e){return e??!0}var Xr=globalThis&&globalThis.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i};const Jn="SECRET_COMBOBOX_MODE_DO_NOT_USE",Jr=(e,t)=>{var{prefixCls:i,bordered:n=!0,className:o,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:d,listHeight:c=256,placement:m,listItemHeight:u=24,size:p,disabled:f,notFoundContent:g,status:h,showArrow:b}=e,S=Xr(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]);const{getPopupContainer:v,getPrefixCls:C,renderEmpty:M,direction:E,virtual:H,dropdownMatchSelectWidth:oe,select:O}=r.useContext(Je),L=r.useContext(Ao),y=C("select",i),V=C(),{compactSize:q,compactItemClassnames:I}=Fo(y,E),[_,T]=Gr(y),P=r.useMemo(()=>{const{mode:pe}=S;if(pe!=="combobox")return pe===Jn?"combobox":pe},[S.mode]),W=P==="multiple"||P==="tags",j=Ur(b),{status:$,hasFeedback:ge,isFormItemInput:ee,feedbackIcon:Se}=r.useContext(Wo),de=wr($,h);let ue;g!==void 0?ue=g:P==="combobox"?ue=null:ue=(M==null?void 0:M("Select"))||r.createElement(Wn,{componentName:"Select"});const{suffixIcon:be,itemIcon:w,removeIcon:x,clearIcon:N}=Hr(Object.assign(Object.assign({},S),{multiple:W,hasFeedback:ge,feedbackIcon:Se,showArrow:j,prefixCls:y})),k=Ut(S,["suffixIcon","itemIcon"]),te=ne(l||d,{[`${y}-dropdown-${E}`]:E==="rtl"},a,T),U=q||p||L,re=r.useContext(Ko),A=f??re,se=ne({[`${y}-lg`]:U==="large",[`${y}-sm`]:U==="small",[`${y}-rtl`]:E==="rtl",[`${y}-borderless`]:!n,[`${y}-in-form-item`]:ee},Ir(y,de,ge),I,o,a,T),ae=()=>m!==void 0?m:E==="rtl"?"bottomRight":"bottomLeft";return _(r.createElement(qt,Object.assign({ref:t,virtual:H,dropdownMatchSelectWidth:oe,showSearch:O==null?void 0:O.showSearch},k,{transitionName:Go(V,Uo(m),S.transitionName),listHeight:c,listItemHeight:u,mode:P,prefixCls:y,placement:ae(),direction:E,inputIcon:be,menuItemSelectedIcon:w,removeIcon:x,clearIcon:N,notFoundContent:ue,className:se,getPopupContainer:s||v,dropdownClassName:te,showArrow:ge||j,disabled:A})))},ft=r.forwardRef(Jr),Yr=Lr(ft);ft.SECRET_COMBOBOX_MODE_DO_NOT_USE=Jn;ft.Option=Yt;ft.OptGroup=Jt;ft._InternalPanelDoNotUseOrYouWillBeFired=Yr;const zt=ft;function qr(){const[,e]=r.useReducer(t=>t+1,0);return e}function Yn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=r.useRef({}),i=qr(),n=Xo();return r.useEffect(()=>{const o=n.subscribe(a=>{t.current=a,e&&i()});return()=>n.unsubscribe(o)},[]),t.current}const Qr=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),qn=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Zr=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),kr=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},qn(He(e,{inputBorderHoverColor:e.colorBorder})))}),ea=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:i,lineHeightLG:n,borderRadiusLG:o,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:i,lineHeight:n,borderRadius:o}},Qn=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),ta=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Qr(e.colorTextPlaceholder)),{"&:hover":Object.assign({},qn(e)),"&:focus, &-focused":Object.assign({},Zr(e)),"&-disabled, &[disabled]":Object.assign({},kr(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ea(e)),"&-sm":Object.assign({},Qn(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}});function na(e){return He(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}function oa(e,t,i){var n=i||{},o=n.noTrailing,a=o===void 0?!1:o,s=n.noLeading,l=s===void 0?!1:s,d=n.debounceMode,c=d===void 0?void 0:d,m,u=!1,p=0;function f(){m&&clearTimeout(m)}function g(b){var S=b||{},v=S.upcomingOnly,C=v===void 0?!1:v;f(),u=!C}function h(){for(var b=arguments.length,S=new Array(b),v=0;v<b;v++)S[v]=arguments[v];var C=this,M=Date.now()-p;if(u)return;function E(){p=Date.now(),t.apply(C,S)}function H(){m=void 0}!l&&c&&!m&&E(),f(),c===void 0&&M>e?l?(p=Date.now(),a||(m=setTimeout(c?H:E,e))):E():a!==!0&&(m=setTimeout(c?H:E,c===void 0?e-M:e))}return h.cancel=g,h}function ia(e,t,i){var n=i||{},o=n.atBegin,a=o===void 0?!1:o;return oa(e,t,{debounceMode:a!==!1})}var ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const aa=ra;var Zn=function(t,i){return r.createElement($t,Z(Z({},t),{},{ref:i,icon:aa}))};Zn.displayName="DoubleLeftOutlined";const la=r.forwardRef(Zn);var sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const ca=sa;var kn=function(t,i){return r.createElement($t,Z(Z({},t),{},{ref:i,icon:ca}))};kn.displayName="DoubleRightOutlined";const ua=r.forwardRef(kn);var st={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const da={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var eo=function(e){Kt(i,e);var t=Gt(i);function i(){var n;Rt(this,i);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=t.call.apply(t,[this].concat(a)),n.state={goInputText:""},n.getValidValue=function(){var l=n.state.goInputText;return!l||Number.isNaN(l)?void 0:Number(l)},n.buildOptionText=function(l){return"".concat(l," ").concat(n.props.locale.items_per_page)},n.changeSize=function(l){n.props.changeSize(Number(l))},n.handleChange=function(l){n.setState({goInputText:l.target.value})},n.handleBlur=function(l){var d=n.props,c=d.goButton,m=d.quickGo,u=d.rootPrefixCls,p=n.state.goInputText;c||p===""||(n.setState({goInputText:""}),!(l.relatedTarget&&(l.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||l.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&m(n.getValidValue()))},n.go=function(l){var d=n.state.goInputText;d!==""&&(l.keyCode===st.ENTER||l.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return Nt(i,[{key:"getPageSizeOptions",value:function(){var o=this.props,a=o.pageSize,s=o.pageSizeOptions;return s.some(function(l){return l.toString()===a.toString()})?s:s.concat([a.toString()]).sort(function(l,d){var c=Number.isNaN(Number(l))?0:Number(l),m=Number.isNaN(Number(d))?0:Number(d);return c-m})}},{key:"render",value:function(){var o=this,a=this.props,s=a.pageSize,l=a.locale,d=a.rootPrefixCls,c=a.changeSize,m=a.quickGo,u=a.goButton,p=a.selectComponentClass,f=a.buildOptionText,g=a.selectPrefixCls,h=a.disabled,b=this.state.goInputText,S="".concat(d,"-options"),v=p,C=null,M=null,E=null;if(!c&&!m)return null;var H=this.getPageSizeOptions();if(c&&v){var oe=H.map(function(O,L){return R.createElement(v.Option,{key:L,value:O.toString()},(f||o.buildOptionText)(O))});C=R.createElement(v,{disabled:h,prefixCls:g,showSearch:!1,className:"".concat(S,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(s||H[0]).toString(),onChange:this.changeSize,getPopupContainer:function(L){return L.parentNode},"aria-label":l.page_size,defaultOpen:!1},oe)}return m&&(u&&(E=typeof u=="boolean"?R.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(S,"-quick-jumper-button")},l.jump_to_confirm):R.createElement("span",{onClick:this.go,onKeyUp:this.go},u)),M=R.createElement("div",{className:"".concat(S,"-quick-jumper")},l.jump_to,R.createElement("input",{disabled:h,type:"text",value:b,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":l.page}),l.page,E)),R.createElement("li",{className:"".concat(S)},C,M)}}]),i}(R.Component);eo.defaultProps={pageSizeOptions:["10","20","50","100"]};var bt=function(t){var i,n=t.rootPrefixCls,o=t.page,a=t.active,s=t.className,l=t.showTitle,d=t.onClick,c=t.onKeyPress,m=t.itemRender,u="".concat(n,"-item"),p=ne(u,"".concat(u,"-").concat(o),(i={},ie(i,"".concat(u,"-active"),a),ie(i,"".concat(u,"-disabled"),!o),ie(i,t.className,s),i)),f=function(){d(o)},g=function(b){c(b,d,o)};return R.createElement("li",{title:l?o.toString():null,className:p,onClick:f,onKeyPress:g,tabIndex:0},m(o,"page",R.createElement("a",{rel:"nofollow"},o)))};function Wt(){}function In(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var ma=function(t,i,n){return n};function rt(e,t,i){var n=typeof e>"u"?t.pageSize:e;return Math.floor((i.total-1)/n)+1}var to=function(e){Kt(i,e);var t=Gt(i);function i(n){var o;Rt(this,i),o=t.call(this,n),o.paginationNode=R.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(rt(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,m){var u=o.props.prefixCls,p=c||R.createElement("button",{type:"button","aria-label":m,className:"".concat(u,"-item-link")});return typeof c=="function"&&(p=R.createElement(c,Z({},o.props))),p},o.isValid=function(c){var m=o.props.total;return In(c)&&c!==o.state.current&&In(m)&&m>0},o.shouldDisplayQuickJumper=function(){var c=o.props,m=c.showQuickJumper,u=c.total,p=o.state.pageSize;return u<=p?!1:m},o.handleKeyDown=function(c){(c.keyCode===st.ARROW_UP||c.keyCode===st.ARROW_DOWN)&&c.preventDefault()},o.handleKeyUp=function(c){var m=o.getValidValue(c),u=o.state.currentInputValue;m!==u&&o.setState({currentInputValue:m}),c.keyCode===st.ENTER?o.handleChange(m):c.keyCode===st.ARROW_UP?o.handleChange(m-1):c.keyCode===st.ARROW_DOWN&&o.handleChange(m+1)},o.handleBlur=function(c){var m=o.getValidValue(c);o.handleChange(m)},o.changePageSize=function(c){var m=o.state.current,u=rt(c,o.state,o.props);m=m>u?u:m,u===0&&(m=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:m,currentInputValue:m})),o.props.onShowSizeChange(m,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(m,c)},o.handleChange=function(c){var m=o.props,u=m.disabled,p=m.onChange,f=o.state,g=f.pageSize,h=f.current,b=f.currentInputValue;if(o.isValid(c)&&!u){var S=rt(void 0,o.state,o.props),v=c;return c>S?v=S:c<1&&(v=1),"current"in o.props||o.setState({current:v}),v!==b&&o.setState({currentInputValue:v}),p(v,g),v}return h},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<rt(void 0,o.state,o.props)},o.runIfEnter=function(c,m){if(c.key==="Enter"||c.charCode===13){for(var u=arguments.length,p=new Array(u>2?u-2:0),f=2;f<u;f++)p[f-2]=arguments[f];m.apply(void 0,p)}},o.runIfEnterPrev=function(c){o.runIfEnter(c,o.prev)},o.runIfEnterNext=function(c){o.runIfEnter(c,o.next)},o.runIfEnterJumpPrev=function(c){o.runIfEnter(c,o.jumpPrev)},o.runIfEnterJumpNext=function(c){o.runIfEnter(c,o.jumpNext)},o.handleGoTO=function(c){(c.keyCode===st.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue)},o.renderPrev=function(c){var m=o.props,u=m.prevIcon,p=m.itemRender,f=p(c,"prev",o.getItemIcon(u,"prev page")),g=!o.hasPrev();return r.isValidElement(f)?r.cloneElement(f,{disabled:g}):f},o.renderNext=function(c){var m=o.props,u=m.nextIcon,p=m.itemRender,f=p(c,"next",o.getItemIcon(u,"next page")),g=!o.hasNext();return r.isValidElement(f)?r.cloneElement(f,{disabled:g}):f};var a=n.onChange!==Wt,s="current"in n;s&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=n.defaultCurrent;"current"in n&&(l=n.current);var d=n.defaultPageSize;return"pageSize"in n&&(d=n.pageSize),l=Math.min(l,rt(d,void 0,n)),o.state={current:l,currentInputValue:l,pageSize:d},o}return Nt(i,[{key:"componentDidUpdate",value:function(o,a){var s=this.props.prefixCls;if(a.current!==this.state.current&&this.paginationNode.current){var l=this.paginationNode.current.querySelector(".".concat(s,"-item-").concat(a.current));if(l&&document.activeElement===l){var d;l==null||(d=l.blur)===null||d===void 0||d.call(l)}}}},{key:"getValidValue",value:function(o){var a=o.target.value,s=rt(void 0,this.state,this.props),l=this.state.currentInputValue,d;return a===""?d=a:Number.isNaN(Number(a))?d=l:a>=s?d=s:d=Number(a),d}},{key:"getShowSizeChanger",value:function(){var o=this.props,a=o.showSizeChanger,s=o.total,l=o.totalBoundaryShowSizeChanger;return typeof a<"u"?a:s>l}},{key:"render",value:function(){var o=this,a=this.props,s=a.prefixCls,l=a.className,d=a.style,c=a.disabled,m=a.hideOnSinglePage,u=a.total,p=a.locale,f=a.showQuickJumper,g=a.showLessItems,h=a.showTitle,b=a.showTotal,S=a.simple,v=a.itemRender,C=a.showPrevNextJumpers,M=a.jumpPrevIcon,E=a.jumpNextIcon,H=a.selectComponentClass,oe=a.selectPrefixCls,O=a.pageSizeOptions,L=this.state,y=L.current,V=L.pageSize,q=L.currentInputValue;if(m===!0&&u<=V)return null;var I=rt(void 0,this.state,this.props),_=[],T=null,P=null,W=null,j=null,$=null,ge=f&&f.goButton,ee=g?1:2,Se=y-1>0?y-1:0,de=y+1<I?y+1:I,ue=Object.keys(this.props).reduce(function(K,Y){return(Y.substr(0,5)==="data-"||Y.substr(0,5)==="aria-"||Y==="role")&&(K[Y]=o.props[Y]),K},{}),be=b&&R.createElement("li",{className:"".concat(s,"-total-text")},b(u,[u===0?0:(y-1)*V+1,y*V>u?u:y*V]));if(S)return ge&&(typeof ge=="boolean"?$=R.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},p.jump_to_confirm):$=R.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ge),$=R.createElement("li",{title:h?"".concat(p.jump_to).concat(y,"/").concat(I):null,className:"".concat(s,"-simple-pager")},$)),R.createElement("ul",De({className:ne(s,"".concat(s,"-simple"),ie({},"".concat(s,"-disabled"),c),l),style:d,ref:this.paginationNode},ue),be,R.createElement("li",{title:h?p.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ne("".concat(s,"-prev"),ie({},"".concat(s,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Se)),R.createElement("li",{title:h?"".concat(y,"/").concat(I):null,className:"".concat(s,"-simple-pager")},R.createElement("input",{type:"text",value:q,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),R.createElement("span",{className:"".concat(s,"-slash")},"/"),I),R.createElement("li",{title:h?p.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ne("".concat(s,"-next"),ie({},"".concat(s,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(de)),$);if(I<=3+ee*2){var w={locale:p,rootPrefixCls:s,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:h,itemRender:v};I||_.push(R.createElement(bt,De({},w,{key:"noPager",page:1,className:"".concat(s,"-item-disabled")})));for(var x=1;x<=I;x+=1){var N=y===x;_.push(R.createElement(bt,De({},w,{key:x,page:x,active:N})))}}else{var k=g?p.prev_3:p.prev_5,te=g?p.next_3:p.next_5;C&&(T=R.createElement("li",{title:h?k:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ne("".concat(s,"-jump-prev"),ie({},"".concat(s,"-jump-prev-custom-icon"),!!M))},v(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(M,"prev page"))),P=R.createElement("li",{title:h?te:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ne("".concat(s,"-jump-next"),ie({},"".concat(s,"-jump-next-custom-icon"),!!E))},v(this.getJumpNextPage(),"jump-next",this.getItemIcon(E,"next page")))),j=R.createElement(bt,{locale:p,last:!0,rootPrefixCls:s,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:I,page:I,active:!1,showTitle:h,itemRender:v}),W=R.createElement(bt,{locale:p,rootPrefixCls:s,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:h,itemRender:v});var U=Math.max(1,y-ee),re=Math.min(y+ee,I);y-1<=ee&&(re=1+ee*2),I-y<=ee&&(U=I-ee*2);for(var A=U;A<=re;A+=1){var se=y===A;_.push(R.createElement(bt,{locale:p,rootPrefixCls:s,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:A,page:A,active:se,showTitle:h,itemRender:v}))}y-1>=ee*2&&y!==1+2&&(_[0]=r.cloneElement(_[0],{className:"".concat(s,"-item-after-jump-prev")}),_.unshift(T)),I-y>=ee*2&&y!==I-2&&(_[_.length-1]=r.cloneElement(_[_.length-1],{className:"".concat(s,"-item-before-jump-next")}),_.push(P)),U!==1&&_.unshift(W),re!==I&&_.push(j)}var ae=!this.hasPrev()||!I,pe=!this.hasNext()||!I;return R.createElement("ul",De({className:ne(s,l,ie({},"".concat(s,"-disabled"),c)),style:d,ref:this.paginationNode},ue),be,R.createElement("li",{title:h?p.prev_page:null,onClick:this.prev,tabIndex:ae?null:0,onKeyPress:this.runIfEnterPrev,className:ne("".concat(s,"-prev"),ie({},"".concat(s,"-disabled"),ae)),"aria-disabled":ae},this.renderPrev(Se)),_,R.createElement("li",{title:h?p.next_page:null,onClick:this.next,tabIndex:pe?null:0,onKeyPress:this.runIfEnterNext,className:ne("".concat(s,"-next"),ie({},"".concat(s,"-disabled"),pe)),"aria-disabled":pe},this.renderNext(de)),R.createElement(eo,{disabled:c,locale:p,rootPrefixCls:s,selectComponentClass:H,selectPrefixCls:oe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:V,pageSizeOptions:O,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var s={};if("current"in o&&(s.current=o.current,o.current!==a.current&&(s.currentInputValue=s.current)),"pageSize"in o&&o.pageSize!==a.pageSize){var l=a.current,d=rt(o.pageSize,a,o);l=l>d?d:l,"current"in o||(s.current=l,s.currentInputValue=l),s.pageSize=o.pageSize}return s}}]),i}(R.Component);to.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Wt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Wt,locale:da,style:{},itemRender:ma,totalBoundaryShowSizeChanger:50};const no=e=>r.createElement(zt,Object.assign({},e,{size:"small"})),oo=e=>r.createElement(zt,Object.assign({},e,{size:"middle"}));no.Option=zt.Option;oo.Option=zt.Option;const pa=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent"}},[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1},[`${t}-simple-pager`]:{color:e.colorTextDisabled}}}},fa=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent"},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:e.paginationMiniOptionsSizeChangerTop},["&-quick-jumper"]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:Object.assign(Object.assign({},Qn(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ga=e=>{const{componentCls:t}=e;return{[`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},ha=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},dn(e))},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},dn(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},ta(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},va=e=>{const{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Jo(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},Sa=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),va(e)),ha(e)),ga(e)),fa(e)),pa(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ba=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Ca=xt("Pagination",e=>{const t=He(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},na(e));return[Sa(t),e.wireframe&&ba(t)]});var ya=globalThis&&globalThis.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i};const xa=e=>{var{prefixCls:t,selectPrefixCls:i,className:n,rootClassName:o,size:a,locale:s,selectComponentClass:l,responsive:d,showSizeChanger:c}=e,m=ya(e,["prefixCls","selectPrefixCls","className","rootClassName","size","locale","selectComponentClass","responsive","showSizeChanger"]);const{xs:u}=Yn(d),{getPrefixCls:p,direction:f,pagination:g={}}=r.useContext(Je),h=p("pagination",t),[b,S]=Ca(h),v=c??g.showSizeChanger,C=()=>{const L=r.createElement("span",{className:`${h}-item-ellipsis`},"•••");let y=r.createElement("button",{className:`${h}-item-link`,type:"button",tabIndex:-1},r.createElement(qo,null)),V=r.createElement("button",{className:`${h}-item-link`,type:"button",tabIndex:-1},r.createElement(Qo,null)),q=r.createElement("a",{className:`${h}-item-link`},r.createElement("div",{className:`${h}-item-container`},r.createElement(la,{className:`${h}-item-link-icon`}),L)),I=r.createElement("a",{className:`${h}-item-link`},r.createElement("div",{className:`${h}-item-container`},r.createElement(ua,{className:`${h}-item-link-icon`}),L));return f==="rtl"&&([y,V]=[V,y],[q,I]=[I,q]),{prevIcon:y,nextIcon:V,jumpPrevIcon:q,jumpNextIcon:I}},[M]=On("Pagination",Yo),E=Object.assign(Object.assign({},M),s),H=a==="small"||!!(u&&!a&&d),oe=p("select",i),O=ne({[`${h}-mini`]:H,[`${h}-rtl`]:f==="rtl"},n,o,S);return b(r.createElement(to,Object.assign({},C(),m,{prefixCls:h,selectPrefixCls:oe,className:O,selectComponentClass:l||(H?no:oo),locale:E,showSizeChanger:v})))},$a=xa,Ia=new Xe("antSpinMove",{to:{opacity:1}}),wa=new Xe("antRotate",{to:{transform:"rotate(405deg)"}}),Ea=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},pt(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ia,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:wa,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),Oa=xt("Spin",e=>{const t=He(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[Ea(t)]},{contentHeight:400});var Ma=globalThis&&globalThis.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i};let Et=null;function Pa(e,t){const{indicator:i}=t,n=`${e}-dot`;return i===null?null:mn(i)?Vt(i,{className:ne(i.props.className,n)}):mn(Et)?Vt(Et,{className:ne(Et.props.className,n)}):r.createElement("span",{className:ne(n,`${e}-dot-spin`)},r.createElement("i",{className:`${e}-dot-item`}),r.createElement("i",{className:`${e}-dot-item`}),r.createElement("i",{className:`${e}-dot-item`}),r.createElement("i",{className:`${e}-dot-item`}))}function Da(e,t){return!!e&&!!t&&!isNaN(Number(t))}const Ra=e=>{const{spinPrefixCls:t,spinning:i=!0,delay:n=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:d,style:c,children:m,hashId:u}=e,p=Ma(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[f,g]=r.useState(()=>i&&!Da(i,n));r.useEffect(()=>{if(i){const E=ia(n,()=>{g(!0)});return E(),()=>{var H;(H=E==null?void 0:E.cancel)===null||H===void 0||H.call(E)}}g(!1)},[n,i]);const h=r.useMemo(()=>typeof m<"u",[m]),{direction:b}=r.useContext(Je),S=ne(t,{[`${t}-sm`]:s==="small",[`${t}-lg`]:s==="large",[`${t}-spinning`]:f,[`${t}-show-text`]:!!l,[`${t}-rtl`]:b==="rtl"},o,a,u),v=ne(`${t}-container`,{[`${t}-blur`]:f}),C=Ut(p,["indicator","prefixCls"]),M=r.createElement("div",Object.assign({},C,{style:c,className:S,"aria-live":"polite","aria-busy":f}),Pa(t,e),l?r.createElement("div",{className:`${t}-text`},l):null);return h?r.createElement("div",Object.assign({},C,{className:ne(`${t}-nested-loading`,d,u)}),f&&r.createElement("div",{key:"loading"},M),r.createElement("div",{className:v,key:"container"},m)):M},io=e=>{const{prefixCls:t}=e,{getPrefixCls:i}=r.useContext(Je),n=i("spin",t),[o,a]=Oa(n),s=Object.assign(Object.assign({},e),{spinPrefixCls:n,hashId:a});return o(r.createElement(Ra,Object.assign({},s)))};io.setDefaultIndicator=e=>{Et=e};const Na=io;function za(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const i=t<0||arguments.length<=t?void 0:arguments[t];i&&Object.keys(i).forEach(n=>{const o=i[n];o!==void 0&&(e[n]=o)})}return e}var ro=globalThis&&globalThis.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i};const Ta=e=>{var{prefixCls:t,className:i,avatar:n,title:o,description:a}=e,s=ro(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=r.useContext(Je),d=l("list",t),c=ne(`${d}-item-meta`,i),m=R.createElement("div",{className:`${d}-item-meta-content`},o&&R.createElement("h4",{className:`${d}-item-meta-title`},o),a&&R.createElement("div",{className:`${d}-item-meta-description`},a));return R.createElement("div",Object.assign({},s,{className:c}),n&&R.createElement("div",{className:`${d}-item-meta-avatar`},n),(o||a)&&m)},Ha=(e,t)=>{var{prefixCls:i,children:n,actions:o,extra:a,className:s,colStyle:l}=e,d=ro(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:c,itemLayout:m}=r.useContext(Zt),{getPrefixCls:u}=r.useContext(Je),p=()=>{let v;return r.Children.forEach(n,C=>{typeof C=="string"&&(v=!0)}),v&&r.Children.count(n)>1},f=()=>m==="vertical"?!!a:!p(),g=u("list",i),h=o&&o.length>0&&R.createElement("ul",{className:`${g}-item-action`,key:"actions"},o.map((v,C)=>R.createElement("li",{key:`${g}-item-action-${C}`},v,C!==o.length-1&&R.createElement("em",{className:`${g}-item-action-split`})))),b=c?"div":"li",S=R.createElement(b,Object.assign({},d,c?{}:{ref:t},{className:ne(`${g}-item`,{[`${g}-item-no-flex`]:!f()},s)}),m==="vertical"&&a?[R.createElement("div",{className:`${g}-item-main`,key:"content"},n,h),R.createElement("div",{className:`${g}-item-extra`,key:"extra"},a)]:[n,h,Vt(a,{key:"extra"})]);return c?R.createElement(Zo,{ref:t,flex:1,style:l},S):S},ao=r.forwardRef(Ha);ao.Meta=Ta;const La=ao,_a=e=>{const{listBorderedCls:t,componentCls:i,paddingLG:n,margin:o,padding:a,listItemPaddingSM:s,marginLG:l,borderRadiusLG:d}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:n},[`${i}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:s}},[`${t}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:`${a}px ${n}px`}}}},ja=e=>{const{componentCls:t,screenSM:i,screenMD:n,marginLG:o,marginSM:a,margin:s}=e;return{[`@media screen and (max-width:${n})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${i})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${s}px`}}}}}},Ba=e=>{const{componentCls:t,antCls:i,controlHeight:n,minHeight:o,paddingSM:a,marginLG:s,padding:l,listItemPadding:d,colorPrimary:c,listItemPaddingSM:m,listItemPaddingLG:u,paddingXS:p,margin:f,colorText:g,colorTextDescription:h,motionDurationSlow:b,lineWidth:S}=e,v={};return["start","center","end"].forEach(C=>{v[`&-align-${C}`]={textAlign:C}}),{[`${t}`]:Object.assign(Object.assign({},pt(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:s},v),{[`${i}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:d,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${b}`,["&:hover"]:{color:c}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${p}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${i}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:l,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:a,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${i}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:u},[`${t}-sm ${t}-item`]:{padding:m},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Va=xt("List",e=>{const t=He(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px 0`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Ba(t),_a(t),ja(t)]},{contentWidth:220});var Aa=globalThis&&globalThis.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i};const Zt=r.createContext({});Zt.Consumer;function Fa(e){var t,{pagination:i=!1,prefixCls:n,bordered:o=!1,split:a=!0,className:s,rootClassName:l,children:d,itemLayout:c,loadMore:m,grid:u,dataSource:p=[],size:f,header:g,footer:h,loading:b=!1,rowKey:S,renderItem:v,locale:C}=e,M=Aa(e,["pagination","prefixCls","bordered","split","className","rootClassName","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const E=i&&typeof i=="object"?i:{},[H,oe]=r.useState(E.defaultCurrent||1),[O,L]=r.useState(E.defaultPageSize||10),{getPrefixCls:y,renderEmpty:V,direction:q}=r.useContext(Je),I={current:1,total:0},_=K=>(Y,le)=>{oe(Y),L(le),i&&i[K]&&i[K](Y,le)},T=_("onChange"),P=_("onShowSizeChange"),W=(K,Y)=>{if(!v)return null;let le;return typeof S=="function"?le=S(K):S?le=K[S]:le=K.key,le||(le=`list-item-${Y}`),r.createElement(r.Fragment,{key:le},v(K,Y))},j=()=>!!(m||i||h),$=y("list",n),[ge,ee]=Va($);let Se=b;typeof Se=="boolean"&&(Se={spinning:Se});const de=Se&&Se.spinning;let ue="";switch(f){case"large":ue="lg";break;case"small":ue="sm";break}const be=ne($,{[`${$}-vertical`]:c==="vertical",[`${$}-${ue}`]:ue,[`${$}-split`]:a,[`${$}-bordered`]:o,[`${$}-loading`]:de,[`${$}-grid`]:!!u,[`${$}-something-after-last-item`]:j(),[`${$}-rtl`]:q==="rtl"},s,l,ee),w=za(I,{total:p.length,current:H,pageSize:O},i||{}),x=Math.ceil(w.total/w.pageSize);w.current>x&&(w.current=x);const N=i?r.createElement("div",{className:ne(`${$}-pagination`,`${$}-pagination-align-${(t=w==null?void 0:w.align)!==null&&t!==void 0?t:"end"}`)},r.createElement($a,Object.assign({},w,{onChange:T,onShowSizeChange:P}))):null;let k=Te(p);i&&p.length>(w.current-1)*w.pageSize&&(k=Te(p).splice((w.current-1)*w.pageSize,w.pageSize));const te=Object.keys(u||{}).some(K=>["xs","sm","md","lg","xl","xxl"].includes(K)),U=Yn(te),re=r.useMemo(()=>{for(let K=0;K<pn.length;K+=1){const Y=pn[K];if(U[Y])return Y}},[U]),A=r.useMemo(()=>{if(!u)return;const K=re&&u[re]?u[re]:u.column;if(K)return{width:`${100/K}%`,maxWidth:`${100/K}%`}},[u==null?void 0:u.column,re]);let se=de&&r.createElement("div",{style:{minHeight:53}});if(k.length>0){const K=k.map((Y,le)=>W(Y,le));se=u?r.createElement(ko,{gutter:u.gutter},r.Children.map(K,Y=>r.createElement("div",{key:Y==null?void 0:Y.key,style:A},Y))):r.createElement("ul",{className:`${$}-items`},K)}else!d&&!de&&(se=r.createElement("div",{className:`${$}-empty-text`},C&&C.emptyText||(V==null?void 0:V("List"))||r.createElement(Wn,{componentName:"List"})));const ae=w.position||"bottom",pe=r.useMemo(()=>({grid:u,itemLayout:c}),[JSON.stringify(u),c]);return ge(r.createElement(Zt.Provider,{value:pe},r.createElement("div",Object.assign({className:be},M),(ae==="top"||ae==="both")&&N,g&&r.createElement("div",{className:`${$}-header`},g),r.createElement(Na,Object.assign({},Se),se,d),h&&r.createElement("div",{className:`${$}-footer`},h),m||(ae==="bottom"||ae==="both")&&N)))}Fa.Item=La;export{Fa as L,ia as d,Pt as p,On as u};