You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__HttpStatus__UserAgents.f...

1 line
100 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6034],{65030:function(e,t,n){n.d(t,{Z:function(){return X}});var r=n(33885),o=n(42978),i=n(75931),a=n(43403),u=n(92310),l=n.n(u),c=n(29301),s=n(76846),f=n(96452),d=n(6089),v=n(80402),p=n(34280),m=n(49658),h=n(59301),g=n(54476),b=n(77900),y=n(8654);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,u=i.content,c=o.x,s=void 0===c?0:c,f=o.y,d=void 0===f?0:f,v=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],b=m[0],y=m[1],w=g[0],Z=g[1];b!==w&&["t","b"].includes(b)?"t"===b?p.top=0:p.bottom=0:p.top=d,y!==Z&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=s}return h.createElement("div",{ref:v,className:l()("".concat(t,"-arrow"),a),style:p},u)}function Z(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(b.default,(0,g.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}var E=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var x=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,u=e.style,s=e.target,f=e.onVisibleChanged,d=e.open,v=e.keepDom,m=e.fresh,x=e.onClick,C=e.mask,S=e.arrow,M=e.arrowPos,R=e.align,N=e.motion,k=e.maskMotion,_=e.forceRender,P=e.getPopupContainer,I=e.autoDestroy,D=e.portal,O=e.zIndex,T=e.onMouseEnter,A=e.onMouseLeave,z=e.onPointerEnter,L=e.onPointerDownCapture,j=e.ready,V=e.offsetX,H=e.offsetY,F=e.offsetR,B=e.offsetB,W=e.onAlign,K=e.onPrepare,Y=e.stretch,X=e.targetWidth,U=e.targetHeight,G="function"==typeof n?n():n,q=d||v,J=(null==P?void 0:P.length)>0,Q=h.useState(!P||!J),$=(0,o.Z)(Q,2),ee=$[0],te=$[1];if((0,p.Z)((function(){!ee&&J&&s&&te(!0)}),[ee,J,s]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(j||!d){var oe,ie=R.points,ae=R.dynamicInset||(null===(oe=R._experimental)||void 0===oe?void 0:oe.dynamicInset),ue=ae&&"r"===ie[0][1],le=ae&&"b"===ie[0][0];ue?(re.right=F,re.left=ne):(re.left=V,re.right=ne),le?(re.bottom=B,re.top=ne):(re.top=H,re.bottom=ne)}var ce={};return Y&&(Y.includes("height")&&U?ce.height=U:Y.includes("minHeight")&&U&&(ce.minHeight=U),Y.includes("width")&&X?ce.width=X:Y.includes("minWidth")&&X&&(ce.minWidth=X)),d||(ce.pointerEvents="none"),h.createElement(D,{open:_||q,getContainer:P&&function(){return P(s)},autoDestroy:I},h.createElement(Z,{prefixCls:a,open:d,zIndex:O,mask:C,motion:k}),h.createElement(c.Z,{onResize:W,disabled:!d},(function(e){return h.createElement(b.default,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(a,"-hidden")},N,{onAppearPrepare:K,onEnterPrepare:K,visible:d,onVisibleChanged:function(e){var t;null==N||null===(t=N.onVisibleChanged)||void 0===t||t.call(N,e),f(e)}}),(function(n,o){var c=n.className,s=n.style,f=l()(a,c,i);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(M.x||0,"px"),"--arrow-y":"".concat(M.y||0,"px")},re),ce),s),{},{boxSizing:"border-box",zIndex:O},u),onMouseEnter:T,onMouseLeave:A,onPointerEnter:z,onClick:x,onPointerDownCapture:L},S&&h.createElement(w,{prefixCls:a,arrow:S,arrowPos:M,align:R}),h.createElement(E,{cache:!d&&!m},G))}))})))}));var C=h.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),i=h.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(i,(0,y.C4)(n));return o?h.cloneElement(n,{ref:a}):n})),S=h.createContext(null);function M(e){return e?Array.isArray(e)?e:[e]:[]}function R(e,t,n,r){return h.useMemo((function(){var o=M(null!=n?n:t),i=M(null!=r?r:t),a=new Set(o),u=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[a,u]}),[e,t,n,r])}var N=n(29194);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u,l=i[a];if(k(null===(u=e[l])||void 0===u?void 0:u.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function P(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function D(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=I(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function T(e){return O(parseFloat(e),0)}function A(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,u=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),s=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,v=e.clientWidth,p=T(i),m=T(a),h=T(u),g=T(l),b=O(Math.round(c.width/d*1e3)/1e3),y=O(Math.round(c.height/s*1e3)/1e3),w=(d-v-h-g)*b,Z=(s-f-p-m)*y,E=p*y,x=m*y,C=h*b,S=g*b,M=0,R=0;if("clip"===r){var N=T(o);M=N*b,R=N*y}var k=c.x+C-M,_=c.y+E-R,P=k+c.width+2*M-C-S-w,D=_+c.height+2*R-E-x-Z;n.left=Math.max(n.left,k),n.top=Math.max(n.top,_),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,D)}})),n}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function L(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[z(e.width,i),z(e.height,a)]}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function V(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function H(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function F(e,t,n,i,a,u,l){var c=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),f=(0,o.Z)(c,2),v=f[0],m=f[1],g=h.useRef(0),b=h.useMemo((function(){return t?D(t):[]}),[t]),y=h.useRef({});e||(y.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var c,f,d,v,p,h=t,g=h.ownerDocument,w=I(h),Z=w.getComputedStyle(h).position,E=h.style.left,x=h.style.top,C=h.style.right,S=h.style.bottom,M=h.style.overflow,R=(0,r.Z)((0,r.Z)({},a[i]),u),k=g.createElement("div");if(null===(c=h.parentElement)||void 0===c||c.appendChild(k),k.style.left="".concat(h.offsetLeft,"px"),k.style.top="".concat(h.offsetTop,"px"),k.style.position=Z,k.style.height="".concat(h.offsetHeight,"px"),k.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var _,P,D=n.getBoundingClientRect();D.x=null!==(_=D.x)&&void 0!==_?_:D.left,D.y=null!==(P=D.y)&&void 0!==P?P:D.top,p={x:D.x,y:D.y,width:D.width,height:D.height}}var T=h.getBoundingClientRect(),z=w.getComputedStyle(h),F=z.height,B=z.width;T.x=null!==(f=T.x)&&void 0!==f?f:T.left,T.y=null!==(d=T.y)&&void 0!==d?d:T.top;var W=g.documentElement,K=W.clientWidth,Y=W.clientHeight,X=W.scrollWidth,U=W.scrollHeight,G=W.scrollTop,q=W.scrollLeft,J=T.height,Q=T.width,$=p.height,ee=p.width,te={left:0,top:0,right:K,bottom:Y},ne={left:-q,top:-G,right:X-q,bottom:U-G},re=R.htmlRegion,oe="visible",ie="visibleFirst";"scroll"!==re&&re!==ie&&(re=oe);var ae=re===ie,ue=A(ne,b),le=A(te,b),ce=re===oe?le:ue,se=ae?le:ce;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var fe=h.getBoundingClientRect();h.style.left=E,h.style.top=x,h.style.right=C,h.style.bottom=S,h.style.overflow=M,null===(v=h.parentElement)||void 0===v||v.removeChild(k);var de=O(Math.round(Q/parseFloat(B)*1e3)/1e3),ve=O(Math.round(J/parseFloat(F)*1e3)/1e3);if(0===de||0===ve||(0,s.Sh)(n)&&!(0,N.Z)(n))return;var pe=R.offset,me=R.targetOffset,he=L(T,pe),ge=(0,o.Z)(he,2),be=ge[0],ye=ge[1],we=L(p,me),Ze=(0,o.Z)(we,2),Ee=Ze[0],xe=Ze[1];p.x-=Ee,p.y-=xe;var Ce=R.points||[],Se=(0,o.Z)(Ce,2),Me=Se[0],Re=j(Se[1]),Ne=j(Me),ke=V(p,Re),_e=V(T,Ne),Pe=(0,r.Z)({},R),Ie=ke.x-_e.x+be,De=ke.y-_e.y+ye;function Mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce,r=T.x+e,o=T.y+t,i=r+Q,a=o+J,u=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),s=Math.min(a,n.bottom);return Math.max(0,(c-u)*(s-l))}var Oe,Te,Ae,ze,Le=Mt(Ie,De),je=Mt(Ie,De,le),Ve=V(p,["t","l"]),He=V(T,["t","l"]),Fe=V(p,["b","r"]),Be=V(T,["b","r"]),We=R.overflow||{},Ke=We.adjustX,Ye=We.adjustY,Xe=We.shiftX,Ue=We.shiftY,Ge=function(e){return"boolean"==typeof e?e:e>=0};function Rt(){Oe=T.y+De,Te=Oe+J,Ae=T.x+Ie,ze=Ae+Q}Rt();var qe=Ge(Ye),Je=Ne[0]===Re[0];if(qe&&"t"===Ne[0]&&(Te>se.bottom||y.current.bt)){var Qe=De;Je?Qe-=J-$:Qe=Ve.y-Be.y-ye;var $e=Mt(Ie,Qe),et=Mt(Ie,Qe,le);$e>Le||$e===Le&&(!ae||et>=je)?(y.current.bt=!0,De=Qe,ye=-ye,Pe.points=[H(Ne,0),H(Re,0)]):y.current.bt=!1}if(qe&&"b"===Ne[0]&&(Oe<se.top||y.current.tb)){var tt=De;Je?tt+=J-$:tt=Fe.y-He.y-ye;var nt=Mt(Ie,tt),rt=Mt(Ie,tt,le);nt>Le||nt===Le&&(!ae||rt>=je)?(y.current.tb=!0,De=tt,ye=-ye,Pe.points=[H(Ne,0),H(Re,0)]):y.current.tb=!1}var ot=Ge(Ke),it=Ne[1]===Re[1];if(ot&&"l"===Ne[1]&&(ze>se.right||y.current.rl)){var at=Ie;it?at-=Q-ee:at=Ve.x-Be.x-be;var ut=Mt(at,De),lt=Mt(at,De,le);ut>Le||ut===Le&&(!ae||lt>=je)?(y.current.rl=!0,Ie=at,be=-be,Pe.points=[H(Ne,1),H(Re,1)]):y.current.rl=!1}if(ot&&"r"===Ne[1]&&(Ae<se.left||y.current.lr)){var ct=Ie;it?ct+=Q-ee:ct=Fe.x-He.x-be;var st=Mt(ct,De),ft=Mt(ct,De,le);st>Le||st===Le&&(!ae||ft>=je)?(y.current.lr=!0,Ie=ct,be=-be,Pe.points=[H(Ne,1),H(Re,1)]):y.current.lr=!1}Rt();var dt=!0===Xe?0:Xe;"number"==typeof dt&&(Ae<le.left&&(Ie-=Ae-le.left-be,p.x+ee<le.left+dt&&(Ie+=p.x-le.left+ee-dt)),ze>le.right&&(Ie-=ze-le.right-be,p.x>le.right-dt&&(Ie+=p.x-le.right+dt)));var vt=!0===Ue?0:Ue;"number"==typeof vt&&(Oe<le.top&&(De-=Oe-le.top-ye,p.y+$<le.top+vt&&(De+=p.y-le.top+$-vt)),Te>le.bottom&&(De-=Te-le.bottom-ye,p.y>le.bottom-vt&&(De+=p.y-le.bottom+vt)));var pt=T.x+Ie,mt=pt+Q,ht=T.y+De,gt=ht+J,bt=p.x,yt=bt+ee,wt=p.y,Zt=wt+$,Et=(Math.max(pt,bt)+Math.min(mt,yt))/2-pt,xt=(Math.max(ht,wt)+Math.min(gt,Zt))/2-ht;null==l||l(t,Pe);var Ct=fe.right-T.x-(Ie+T.width),St=fe.bottom-T.y-(De+T.height);1===de&&(Ie=Math.round(Ie),Ct=Math.round(Ct)),1===ve&&(De=Math.round(De),St=Math.round(St)),m({ready:!0,offsetX:Ie/de,offsetY:De/ve,offsetR:Ct/de,offsetB:St/ve,arrowX:Et/de,arrowY:xt/ve,scaleX:de,scaleY:ve,align:Pe})}})),Z=function(){m((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,p.Z)(Z,[i]),(0,p.Z)((function(){e||Z()}),[e]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&w()}))}]}var B=n(94480);function W(e,t,n,r,o){(0,p.Z)((function(){if(e&&t&&n){var i=n,a=D(t),u=D(i),l=I(i),c=new Set([l].concat((0,B.Z)(a),(0,B.Z)(u)));function s(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),l.addEventListener("resize",s,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",s),l.removeEventListener("resize",s)}))}}}),[e,t,n])}n(48736);function K(e,t,n,r,o,i,a,u){var l=h.useRef(e);l.current=e;var c=h.useRef(!1);return h.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){c.current=!1},s=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||u(!1)},d=I(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",s,!0),d.addEventListener("contextmenu",s,!0);var v=(0,f.A)(n);return v&&(v.addEventListener("mousedown",s,!0),v.addEventListener("contextmenu",s,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",s,!0),d.removeEventListener("contextmenu",s,!0),v&&(v.removeEventListener("mousedown",s,!0),v.removeEventListener("contextmenu",s,!0))}}}),[t,n,r,o,i]),function(){c.current=!0}}var Y=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,u=void 0===a?"rc-trigger-popup":a,g=t.children,b=t.action,y=void 0===b?"hover":b,w=t.showAction,Z=t.hideAction,E=t.popupVisible,M=t.defaultPopupVisible,N=t.onPopupVisibleChange,k=t.afterPopupVisibleChange,I=t.mouseEnterDelay,D=t.mouseLeaveDelay,O=void 0===D?.1:D,T=t.focusDelay,A=t.blurDelay,z=t.mask,L=t.maskClosable,j=void 0===L||L,V=t.getPopupContainer,H=t.forceRender,B=t.autoDestroy,X=t.destroyPopupOnHide,U=t.popup,G=t.popupClassName,q=t.popupStyle,J=t.popupPlacement,Q=t.builtinPlacements,$=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,ue=t.onPopupAlign,le=t.arrow,ce=t.popupMotion,se=t.maskMotion,fe=t.popupTransitionName,de=t.popupAnimation,ve=t.maskTransitionName,pe=t.maskAnimation,me=t.className,he=t.getTriggerDOMNode,ge=(0,i.Z)(t,Y),be=B||X||!1,ye=h.useState(!1),we=(0,o.Z)(ye,2),Ze=we[0],Ee=we[1];(0,p.Z)((function(){Ee((0,m.Z)())}),[]);var xe=h.useRef({}),Ce=h.useContext(S),Se=h.useMemo((function(){return{registerSubPopup:function(e,t){xe.current[e]=t,null==Ce||Ce.registerSubPopup(e,t)}}}),[Ce]),Me=(0,v.Z)(),Re=h.useState(null),Ne=(0,o.Z)(Re,2),ke=Ne[0],_e=Ne[1],Pe=h.useRef(null),Ie=(0,d.Z)((function(e){Pe.current=e,(0,s.Sh)(e)&&ke!==e&&_e(e),null==Ce||Ce.registerSubPopup(Me,e)})),De=h.useState(null),Oe=(0,o.Z)(De,2),Te=Oe[0],Ae=Oe[1],ze=h.useRef(null),Le=(0,d.Z)((function(e){(0,s.Sh)(e)&&Te!==e&&(Ae(e),ze.current=e)})),je=h.Children.only(g),Ve=(null==je?void 0:je.props)||{},He={},Fe=(0,d.Z)((function(e){var t,n,r=Te;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==ke?void 0:ke.contains(e))||(null===(n=(0,f.A)(ke))||void 0===n?void 0:n.host)===e||e===ke||Object.values(xe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Be=P(u,ce,de,fe),We=P(u,se,pe,ve),Ke=h.useState(M||!1),Ye=(0,o.Z)(Ke,2),Xe=Ye[0],Ue=Ye[1],Ge=null!=E?E:Xe,qe=(0,d.Z)((function(e){void 0===E&&Ue(e)}));(0,p.Z)((function(){Ue(E||!1)}),[E]);var Je=h.useRef(Ge);Je.current=Ge;var Qe=h.useRef([]);Qe.current=[];var $e=(0,d.Z)((function(e){var t;qe(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:Ge)!==e&&(Qe.current.push(e),null==N||N(e))})),et=h.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?$e(e):et.current=setTimeout((function(){$e(e)}),1e3*t)};h.useEffect((function(){return tt}),[]);var rt=h.useState(!1),ot=(0,o.Z)(rt,2),it=ot[0],at=ot[1];(0,p.Z)((function(e){e&&!Ge||at(!0)}),[Ge]);var ut=h.useState(null),lt=(0,o.Z)(ut,2),ct=lt[0],st=lt[1],ft=h.useState(null),dt=(0,o.Z)(ft,2),vt=dt[0],pt=dt[1],mt=function(e){pt([e.clientX,e.clientY])},ht=F(Ge,ke,ie&&null!==vt?vt:Te,J,$,ee,ue),gt=(0,o.Z)(ht,11),bt=gt[0],yt=gt[1],wt=gt[2],Zt=gt[3],Et=gt[4],xt=gt[5],Ct=gt[6],St=gt[7],Mt=gt[8],Rt=gt[9],Nt=gt[10],kt=R(Ze,y,w,Z),_t=(0,o.Z)(kt,2),Pt=_t[0],It=_t[1],Dt=Pt.has("click"),Ot=It.has("click")||It.has("contextMenu"),Tt=(0,d.Z)((function(){it||Nt()}));W(Ge,Te,ke,Tt,(function(){Je.current&&ie&&Ot&&nt(!1)})),(0,p.Z)((function(){Tt()}),[vt,J]),(0,p.Z)((function(){!Ge||null!=$&&$[J]||Tt()}),[JSON.stringify(ee)]);var At=h.useMemo((function(){var e=_($,u,Rt,ie);return l()(e,null==re?void 0:re(Rt))}),[Rt,re,$,u,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:ze.current,popupElement:Pe.current,forceAlign:Tt}}));var zt=h.useState(0),Lt=(0,o.Z)(zt,2),jt=Lt[0],Vt=Lt[1],Ht=h.useState(0),Ft=(0,o.Z)(Ht,2),Bt=Ft[0],Wt=Ft[1],Kt=function(){if(ne&&Te){var e=Te.getBoundingClientRect();Vt(e.width),Wt(e.height)}};function Yt(e,t,n,r){He[e]=function(o){var i;null==r||r(o),nt(t,n);for(var a=arguments.length,u=new Array(a>1?a-1:0),l=1;l<a;l++)u[l-1]=arguments[l];null===(i=Ve[e])||void 0===i||i.call.apply(i,[Ve,o].concat(u))}}(0,p.Z)((function(){ct&&(Nt(),ct(),st(null))}),[ct]),(Dt||Ot)&&(He.onClick=function(e){var t;Je.current&&Ot?nt(!1):!Je.current&&Dt&&(mt(e),nt(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ve.onClick)||void 0===t||t.call.apply(t,[Ve,e].concat(r))});var Xt,Ut,Gt=K(Ge,Ot,Te,ke,z,j,Fe,nt),qt=Pt.has("hover"),Jt=It.has("hover");qt&&(Yt("onMouseEnter",!0,I,(function(e){mt(e)})),Yt("onPointerEnter",!0,I,(function(e){mt(e)})),Xt=function(e){(Ge||it)&&null!=ke&&ke.contains(e.target)&&nt(!0,I)},ie&&(He.onMouseMove=function(e){var t;null===(t=Ve.onMouseMove)||void 0===t||t.call(Ve,e)})),Jt&&(Yt("onMouseLeave",!1,O),Yt("onPointerLeave",!1,O),Ut=function(){nt(!1,O)}),Pt.has("focus")&&Yt("onFocus",!0,T),It.has("focus")&&Yt("onBlur",!1,A),Pt.has("contextMenu")&&(He.onContextMenu=function(e){var t;Je.current&&It.has("contextMenu")?nt(!1):(mt(e),nt(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ve.onContextMenu)||void 0===t||t.call.apply(t,[Ve,e].concat(r))}),me&&(He.className=l()(Ve.className,me));var Qt=h.useRef(!1);Qt.current||(Qt.current=H||Ge||it);var $t=(0,r.Z)((0,r.Z)({},Ve),He),en={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ge[e]&&(en[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=$t[e])||void 0===t||t.call.apply(t,[$t].concat(r)),ge[e].apply(ge,r)})}));var tn=h.cloneElement(je,(0,r.Z)((0,r.Z)({},$t),en)),nn={x:xt,y:Ct},rn=le?(0,r.Z)({},!0!==le?le:{}):null;return h.createElement(h.Fragment,null,h.createElement(c.Z,{disabled:!Ge,ref:Le,onResize:function(){Kt(),Tt()}},h.createElement(C,{getTriggerDOMNode:he},tn)),Qt.current&&h.createElement(S.Provider,{value:Se},h.createElement(x,{portal:e,ref:Ie,prefixCls:u,popup:U,className:l()(G,At),style:q,target:Te,onMouseEnter:Xt,onMouseLeave:Ut,onPointerEnter:Xt,zIndex:te,open:Ge,keepDom:it,fresh:oe,onClick:ae,onPointerDownCapture:Gt,mask:z,motion:Be,maskMotion:We,onVisibleChanged:function(e){at(!1),Nt(),null==k||k(e)},onPrepare:function(){return new Promise((function(e){Kt(),st((function(){return e}))}))},forceRender:H,autoDestroy:be,getPopupContainer:V,align:Rt,arrow:rn,arrowPos:nn,ready:bt,offsetX:yt,offsetY:wt,offsetR:Zt,offsetB:Et,onAlign:Tt,stretch:ne,targetWidth:jt/St,targetHeight:Bt/Mt})))}));return t}(a.Z)},87247:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var r=n(7557),o=n.n(r),i=n(41498),a=n.n(i),u=n(79800),l=n.n(u),c=n(59301),s=n(37712);var f=function(e){var t=e.item,n=e.type,r=e.page;return(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"},children:[(0,s.jsx)("span",{style:{flex:"1"},children:1===r?n+1:n+1+20*(r-1)}),(0,s.jsx)("span",{style:{flex:"1"},children:t.login||"--"}),(0,s.jsx)("span",{style:{flex:"2"},children:t.name||"--"}),(0,s.jsx)("span",{style:{flex:"2"},children:t.register_info||"--"}),(0,s.jsx)("span",{style:{flex:"1"},children:t.competition_info||"--"}),(0,s.jsx)("span",{style:{flex:"2"},children:t.ip||"--"}),(0,s.jsx)("span",{style:{flex:"2"},children:t.username||"--"})]})},d=n(13747),v=n(56565),p=n(43170);var m=function(e){(0,v.useParams)();var t=(0,c.useState)(1),n=l()(t,2),r=n[0],i=n[1],u=(0,c.useState)(20),m=l()(u,2),h=m[0],g=(m[1],(0,c.useState)()),b=l()(g,2),y=b[0],w=b[1],Z=(0,c.useState)(),E=l()(Z,2),x=E[0],C=E[1];return(0,c.useEffect)((function(){function e(){return(e=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/user_agents.json",{method:"get",params:{page:r,per_page:h}});case 2:0===(t=e.sent).status&&(w(t.data.user_agents),C(t.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[r]),(0,s.jsx)("div",{className:"edu-container minH500",children:(0,s.jsxs)("div",{className:"educontent mb20 persmstyle",style:{width:"1200px",marginTop:"26px"},children:[(0,s.jsxs)("div",{style:{display:"flex",background:"#ffffff",height:"60px",alignItems:"center",padding:"0px 15px"},children:[(0,s.jsxs)("span",{children:["引流总人数:",x&&x.agents_count||"0"]}),(0,s.jsxs)("span",{style:{marginLeft:"20px"},children:["竞赛成功报名:",x&&x.action_count||"0"]})]}),(0,s.jsxs)("div",{style:{marginTop:"1px",background:"#ffffff"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"},children:[(0,s.jsx)("span",{style:{flex:"1"},children:"序号"}),(0,s.jsx)("span",{style:{flex:"1"},children:"代理人登录名"}),(0,s.jsx)("span",{style:{flex:"2"},children:"代理人姓名"}),(0,s.jsx)("span",{style:{flex:"2"},children:"注册情况"}),(0,s.jsx)("span",{style:{flex:"1"},children:"竞赛报名"}),(0,s.jsx)("span",{style:{flex:"2"},children:"IP"}),(0,s.jsx)("span",{style:{flex:"2"},children:"引流人姓名"})]}),(0,s.jsx)("div",{style:{border:"1px solid #fafafa",minHeight:"400px"},children:y&&y.map((function(e,t){return(0,s.jsx)(f,{page:r,item:e,type:t})}))})]}),x&&x.agents_count>20?(0,s.jsx)("div",{style:{justifyContent:"center",display:"flex",marginTop:"20px"},children:(0,s.jsx)(d.Z,{defaultCurrent:1,defaultPageSize:20,onChange:function(e,t){return i(e)},total:x&&x.agents_count})}):""]})})}},83836:function(e,t,n){n.d(t,{Z:function(){return T}});var r=n(54476),o=n(33885),i=n(42978),a=n(75931),u=n(59301),l=n(92310),c=n.n(l),s=n(29301),f=n(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],v=void 0;function p(e,t){var n=e.prefixCls,i=e.invalidate,l=e.item,f=e.renderItem,p=e.responsive,m=e.responsiveDisabled,h=e.registerSize,g=e.itemKey,b=e.className,y=e.style,w=e.children,Z=e.display,E=e.order,x=e.component,C=void 0===x?"div":x,S=(0,a.Z)(e,d),M=p&&!Z;function R(e){h(g,e)}u.useEffect((function(){return function(){R(null)}}),[]);var N,k=f&&l!==v?f(l,{index:E}):w;i||(N={opacity:M?0:1,height:M?0:v,overflowY:M?"hidden":v,order:p?E:v,pointerEvents:M?"none":v,position:M?"absolute":v});var _={};M&&(_["aria-hidden"]=!0);var P=u.createElement(C,(0,r.Z)({className:c()(!i&&n,b),style:(0,o.Z)((0,o.Z)({},N),y)},_,S,{ref:t}),k);return p&&(P=u.createElement(s.Z,{onResize:function(e){R(e.offsetWidth)},disabled:m},P)),P}var m=u.forwardRef(p);m.displayName="Item";var h=m,g=n(6089),b=n(4676),y=n(16089);function w(){var e=u.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,b.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function Z(e,t){var n=u.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,g.Z)((function(t){e((function(){a(t)}))}))]}var E=u.createContext(null),x=["component"],C=["className"],S=["className"],M=function(e,t){var n=u.useContext(E);if(!n){var o=e.component,i=void 0===o?"div":o,l=(0,a.Z)(e,x);return u.createElement(i,(0,r.Z)({},l,{ref:t}))}var s=n.className,f=(0,a.Z)(n,C),d=e.className,v=(0,a.Z)(e,S);return u.createElement(E.Provider,{value:null},u.createElement(h,(0,r.Z)({ref:t,className:c()(s,d)},f,v)))},R=u.forwardRef(M);R.displayName="RawItem";var N=R,k=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],_="responsive",P="invalidate";function I(e){return"+ ".concat(e.length," ...")}function D(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,d=e.data,v=void 0===d?[]:d,p=e.renderItem,m=e.renderRawItem,g=e.itemKey,b=e.itemWidth,y=void 0===b?10:b,x=e.ssr,C=e.style,S=e.className,M=e.maxCount,R=e.renderRest,N=e.renderRawRest,D=e.prefix,O=e.suffix,T=e.component,A=void 0===T?"div":T,z=e.itemComponent,L=e.onVisibleChange,j=(0,a.Z)(e,k),V="full"===x,H=w(),F=Z(H,null),B=(0,i.Z)(F,2),W=B[0],K=B[1],Y=W||0,X=Z(H,new Map),U=(0,i.Z)(X,2),G=U[0],q=U[1],J=Z(H,0),Q=(0,i.Z)(J,2),$=Q[0],ee=Q[1],te=Z(H,0),ne=(0,i.Z)(te,2),re=ne[0],oe=ne[1],ie=Z(H,0),ae=(0,i.Z)(ie,2),ue=ae[0],le=ae[1],ce=Z(H,0),se=(0,i.Z)(ce,2),fe=se[0],de=se[1],ve=(0,u.useState)(null),pe=(0,i.Z)(ve,2),me=pe[0],he=pe[1],ge=(0,u.useState)(null),be=(0,i.Z)(ge,2),ye=be[0],we=be[1],Ze=u.useMemo((function(){return null===ye&&V?Number.MAX_SAFE_INTEGER:ye||0}),[ye,W]),Ee=(0,u.useState)(!1),xe=(0,i.Z)(Ee,2),Ce=xe[0],Se=xe[1],Me="".concat(l,"-item"),Re=Math.max($,re),Ne=M===_,ke=v.length&&Ne,_e=M===P,Pe=ke||"number"==typeof M&&v.length>M,Ie=(0,u.useMemo)((function(){var e=v;return ke?e=null===W&&V?v:v.slice(0,Math.min(v.length,Y/y)):"number"==typeof M&&(e=v.slice(0,M)),e}),[v,y,W,M,ke]),De=(0,u.useMemo)((function(){return ke?v.slice(Ze+1):v.slice(Ie.length)}),[v,Ie,ke,Ze]),Oe=(0,u.useCallback)((function(e,t){var n;return"function"==typeof g?g(e):null!==(n=g&&(null==e?void 0:e[g]))&&void 0!==n?n:t}),[g]),Te=(0,u.useCallback)(p||function(e){return e},[p]);function Ae(e,t,n){(ye!==e||void 0!==t&&t!==me)&&(we(e),n||(Se(e<v.length-1),null==L||L(e)),void 0!==t&&he(t))}function ze(e,t){q((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Le(e){return G.get(Oe(Ie[e],e))}(0,f.Z)((function(){if(Y&&"number"==typeof Re&&Ie){var e=ue+fe,t=Ie.length,n=t-1;if(!t)return void Ae(0,null);for(var r=0;r<t;r+=1){var o=Le(r);if(V&&(o=o||0),void 0===o){Ae(r-1,void 0,!0);break}if(e+=o,0===n&&e<=Y||r===n-1&&e+Le(n)<=Y){Ae(n,null);break}if(e+Re>Y){Ae(r-1,e-o-fe+re);break}}O&&Le(0)+fe>Y&&he(null)}}),[Y,G,re,ue,fe,Oe,Ie]);var je=Ce&&!!De.length,Ve={};null!==me&&ke&&(Ve={position:"absolute",left:me,top:0});var He={prefixCls:Me,responsive:ke,component:z,invalidate:_e},Fe=m?function(e,t){var n=Oe(e,t);return u.createElement(E.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},He),{},{order:t,item:e,itemKey:n,registerSize:ze,display:t<=Ze})},m(e,t))}:function(e,t){var n=Oe(e,t);return u.createElement(h,(0,r.Z)({},He,{order:t,key:n,item:e,renderItem:Te,itemKey:n,registerSize:ze,display:t<=Ze}))},Be={order:je?Ze:Number.MAX_SAFE_INTEGER,className:"".concat(Me,"-rest"),registerSize:function(e,t){oe(t),ee(re)},display:je},We=R||I,Ke=N?u.createElement(E.Provider,{value:(0,o.Z)((0,o.Z)({},He),Be)},N(De)):u.createElement(h,(0,r.Z)({},He,Be),"function"==typeof We?We(De):We),Ye=u.createElement(A,(0,r.Z)({className:c()(!_e&&l,S),style:C,ref:t},j),D&&u.createElement(h,(0,r.Z)({},He,{responsive:Ne,responsiveDisabled:!ke,order:-1,className:"".concat(Me,"-prefix"),registerSize:function(e,t){le(t)},display:!0}),D),Ie.map(Fe),Pe?Ke:null,O&&u.createElement(h,(0,r.Z)({},He,{responsive:Ne,responsiveDisabled:!ke,order:Ze,className:"".concat(Me,"-suffix"),registerSize:function(e,t){de(t)},display:!0,style:Ve}),O));return Ne?u.createElement(s.Z,{onResize:function(e,t){K(t.clientWidth)},disabled:!ke},Ye):Ye}var O=u.forwardRef(D);O.displayName="Overflow",O.Item=N,O.RESPONSIVE=_,O.INVALIDATE=P;var T=O},23425:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(20068),o=n(54476),i=n(76190),a=n(33885),u=n(42978),l=n(92310),c=n.n(l),s=n(18929),f=n(10228),d=n(26112),v=(n(48736),n(59301)),p=n(17119),m=[10,20,50,100];var h=function(e){var t=e.pageSizeOptions,n=void 0===t?m:t,r=e.locale,o=e.changeSize,i=e.pageSize,a=e.goButton,l=e.quickGo,c=e.rootPrefixCls,s=e.disabled,d=e.buildOptionText,p=e.showSizeChanger,h=e.sizeChangerRender,g=v.useState(""),b=(0,u.Z)(g,2),y=b[0],w=b[1],Z=function(){return!y||Number.isNaN(y)?void 0:Number(y)},E="function"==typeof d?d:function(e){return"".concat(e," ").concat(r.items_per_page)},x=function(e){""!==y&&(e.keyCode!==f.Z.ENTER&&"click"!==e.type||(w(""),null==l||l(Z())))},C="".concat(c,"-options");if(!p&&!l)return null;var S=null,M=null,R=null;return p&&h&&(S=h({disabled:s,size:i,onSizeChange:function(e){null==o||o(Number(e))},"aria-label":r.page_size,className:"".concat(C,"-size-changer"),options:(n.some((function(e){return e.toString()===i.toString()}))?n:n.concat([i]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:E(e),value:e}}))})),l&&(a&&(R="boolean"==typeof a?v.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:s,className:"".concat(C,"-quick-jumper-button")},r.jump_to_confirm):v.createElement("span",{onClick:x,onKeyUp:x},a)),M=v.createElement("div",{className:"".concat(C,"-quick-jumper")},r.jump_to,v.createElement("input",{disabled:s,type:"text",value:y,onChange:function(e){w(e.target.value)},onKeyUp:x,onBlur:function(e){a||""===y||(w(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(Z()))},"aria-label":r.page}),r.page,R)),v.createElement("li",{className:C},S,M)};var g=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,i=e.className,a=e.showTitle,u=e.onClick,l=e.onKeyPress,s=e.itemRender,f="".concat(t,"-item"),d=c()(f,"".concat(f,"-").concat(n),(0,r.Z)((0,r.Z)({},"".concat(f,"-active"),o),"".concat(f,"-disabled"),!n),i),p=s(n,"page",v.createElement("a",{rel:"nofollow"},n));return p?v.createElement("li",{title:a?String(n):null,className:d,onClick:function(){u(n)},onKeyDown:function(e){l(e,u,n)},tabIndex:0},p):null},b=function(e,t,n){return n};function y(){}function w(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var E=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,l=e.selectPrefixCls,m=void 0===l?"rc-select":l,E=e.className,x=e.current,C=e.defaultCurrent,S=void 0===C?1:C,M=e.total,R=void 0===M?0:M,N=e.pageSize,k=e.defaultPageSize,_=void 0===k?10:k,P=e.onChange,I=void 0===P?y:P,D=e.hideOnSinglePage,O=e.align,T=e.showPrevNextJumpers,A=void 0===T||T,z=e.showQuickJumper,L=e.showLessItems,j=e.showTitle,V=void 0===j||j,H=e.onShowSizeChange,F=void 0===H?y:H,B=e.locale,W=void 0===B?p.Z:B,K=e.style,Y=e.totalBoundaryShowSizeChanger,X=void 0===Y?50:Y,U=e.disabled,G=e.simple,q=e.showTotal,J=e.showSizeChanger,Q=void 0===J?R>X:J,$=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?b:te,re=e.jumpPrevIcon,oe=e.jumpNextIcon,ie=e.prevIcon,ae=e.nextIcon,ue=v.useRef(null),le=(0,s.Z)(10,{value:N,defaultValue:_}),ce=(0,u.Z)(le,2),se=ce[0],fe=ce[1],de=(0,s.Z)(1,{value:x,defaultValue:S,postState:function(e){return Math.max(1,Math.min(e,Z(void 0,se,R)))}}),ve=(0,u.Z)(de,2),pe=ve[0],me=ve[1],he=v.useState(pe),ge=(0,u.Z)(he,2),be=ge[0],ye=ge[1];(0,v.useEffect)((function(){ye(pe)}),[pe]);var we=Math.max(1,pe-(L?3:5)),Ze=Math.min(Z(void 0,se,R),pe+(L?3:5));function Ee(t,r){var o=t||v.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(o=v.createElement(t,(0,a.Z)({},e))),o}function xe(e){var t=e.target.value,n=Z(void 0,se,R);return""===t?t:Number.isNaN(Number(t))?be:t>=n?n:Number(t)}var Ce=R>se&&z;function Se(e){var t=xe(e);switch(t!==be&&ye(t),e.keyCode){case f.Z.ENTER:Me(t);break;case f.Z.UP:Me(t-1);break;case f.Z.DOWN:Me(t+1)}}function Me(e){if(function(e){return w(e)&&e!==pe&&w(R)&&R>0}(e)&&!U){var t=Z(void 0,se,R),n=e;return e>t?n=t:e<1&&(n=1),n!==be&&ye(n),me(n),null==I||I(n,se),n}return pe}var Re=pe>1,Ne=pe<Z(void 0,se,R);function ke(){Re&&Me(pe-1)}function _e(){Ne&&Me(pe+1)}function Pe(){Me(we)}function Ie(){Me(Ze)}function De(e,t){if("Enter"===e.key||e.charCode===f.Z.ENTER||e.keyCode===f.Z.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function Oe(e){"click"!==e.type&&e.keyCode!==f.Z.ENTER||Me(be)}var Te=null,Ae=(0,d.Z)(e,{aria:!0,data:!0}),ze=q&&v.createElement("li",{className:"".concat(n,"-total-text")},q(R,[0===R?0:(pe-1)*se+1,pe*se>R?R:pe*se])),Le=null,je=Z(void 0,se,R);if(D&&R<=se)return null;var Ve=[],He={rootPrefixCls:n,onClick:Me,onKeyPress:De,showTitle:V,itemRender:ne,page:-1},Fe=pe-1>0?pe-1:0,Be=pe+1<je?pe+1:je,We=z&&z.goButton,Ke="object"===(0,i.Z)(G)?G.readOnly:!G,Ye=We,Xe=null;G&&(We&&(Ye="boolean"==typeof We?v.createElement("button",{type:"button",onClick:Oe,onKeyUp:Oe},W.jump_to_confirm):v.createElement("span",{onClick:Oe,onKeyUp:Oe},We),Ye=v.createElement("li",{title:V?"".concat(W.jump_to).concat(pe,"/").concat(je):null,className:"".concat(n,"-simple-pager")},Ye)),Xe=v.createElement("li",{title:V?"".concat(pe,"/").concat(je):null,className:"".concat(n,"-simple-pager")},Ke?be:v.createElement("input",{type:"text","aria-label":W.jump_to,value:be,disabled:U,onKeyDown:function(e){e.keyCode!==f.Z.UP&&e.keyCode!==f.Z.DOWN||e.preventDefault()},onKeyUp:Se,onChange:Se,onBlur:function(e){Me(xe(e))},size:3}),v.createElement("span",{className:"".concat(n,"-slash")},"/"),je));var Ue=L?1:2;if(je<=3+2*Ue){je||Ve.push(v.createElement(g,(0,o.Z)({},He,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Ge=1;Ge<=je;Ge+=1)Ve.push(v.createElement(g,(0,o.Z)({},He,{key:Ge,page:Ge,active:pe===Ge})))}else{var qe=L?W.prev_3:W.prev_5,Je=L?W.next_3:W.next_5,Qe=ne(we,"jump-prev",Ee(re,"prev page")),$e=ne(Ze,"jump-next",Ee(oe,"next page"));A&&(Te=Qe?v.createElement("li",{title:V?qe:null,key:"prev",onClick:Pe,tabIndex:0,onKeyDown:function(e){De(e,Pe)},className:c()("".concat(n,"-jump-prev"),(0,r.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!re))},Qe):null,Le=$e?v.createElement("li",{title:V?Je:null,key:"next",onClick:Ie,tabIndex:0,onKeyDown:function(e){De(e,Ie)},className:c()("".concat(n,"-jump-next"),(0,r.Z)({},"".concat(n,"-jump-next-custom-icon"),!!oe))},$e):null);var et=Math.max(1,pe-Ue),tt=Math.min(pe+Ue,je);pe-1<=Ue&&(tt=1+2*Ue),je-pe<=Ue&&(et=je-2*Ue);for(var nt=et;nt<=tt;nt+=1)Ve.push(v.createElement(g,(0,o.Z)({},He,{key:nt,page:nt,active:pe===nt})));if(pe-1>=2*Ue&&3!==pe&&(Ve[0]=v.cloneElement(Ve[0],{className:c()("".concat(n,"-item-after-jump-prev"),Ve[0].props.className)}),Ve.unshift(Te)),je-pe>=2*Ue&&pe!==je-2){var rt=Ve[Ve.length-1];Ve[Ve.length-1]=v.cloneElement(rt,{className:c()("".concat(n,"-item-before-jump-next"),rt.props.className)}),Ve.push(Le)}1!==et&&Ve.unshift(v.createElement(g,(0,o.Z)({},He,{key:1,page:1}))),tt!==je&&Ve.push(v.createElement(g,(0,o.Z)({},He,{key:je,page:je})))}var ot=function(e){var t=ne(e,"prev",Ee(ie,"prev page"));return v.isValidElement(t)?v.cloneElement(t,{disabled:!Re}):t}(Fe);if(ot){var it=!Re||!je;ot=v.createElement("li",{title:V?W.prev_page:null,onClick:ke,tabIndex:it?null:0,onKeyDown:function(e){De(e,ke)},className:c()("".concat(n,"-prev"),(0,r.Z)({},"".concat(n,"-disabled"),it)),"aria-disabled":it},ot)}var at,ut,lt=function(e){var t=ne(e,"next",Ee(ae,"next page"));return v.isValidElement(t)?v.cloneElement(t,{disabled:!Ne}):t}(Be);lt&&(G?(at=!Ne,ut=Re?0:null):ut=(at=!Ne||!je)?null:0,lt=v.createElement("li",{title:V?W.next_page:null,onClick:_e,tabIndex:ut,onKeyDown:function(e){De(e,_e)},className:c()("".concat(n,"-next"),(0,r.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},lt));var ct=c()(n,E,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(n,"-start"),"start"===O),"".concat(n,"-center"),"center"===O),"".concat(n,"-end"),"end"===O),"".concat(n,"-simple"),G),"".concat(n,"-disabled"),U));return v.createElement("ul",(0,o.Z)({className:ct,style:K,ref:ue},Ae),ze,ot,G?Xe:Ve,lt,v.createElement(h,{locale:W,rootPrefixCls:n,disabled:U,selectPrefixCls:m,changeSize:function(e){var t=Z(e,se,R),n=pe>t&&0!==t?t:pe;fe(e),ye(n),null==F||F(pe,e),me(n),null==I||I(n,e)},pageSize:se,pageSizeOptions:ee,quickGo:Ce?Me:null,goButton:Ye,showSizeChanger:Q,sizeChangerRender:$}))}},29301:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(54476),o=n(59301),i=n(11592),a=(n(48736),n(33885)),u=n(76190),l=n(76846),c=n(8654),s=o.createContext(null);var f=n(76374),d=new Map;var v=new f.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=d.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var p=n(67732),m=n(83652),h=n(42403),g=n(158),b=function(e){(0,h.Z)(n,e);var t=(0,g.Z)(n);function n(){return(0,p.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function y(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),f=o.useRef(null),p=o.useContext(s),m="function"==typeof n,h=m?n(i):n,g=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!m&&o.isValidElement(h)&&(0,c.Yr)(h),w=y?(0,c.C4)(h):null,Z=(0,c.x1)(w,i),E=function(){var e;return(0,l.ZP)(i.current)||(i.current&&"object"===(0,u.Z)(i.current)?(0,l.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.ZP)(f.current)};o.useImperativeHandle(t,(function(){return E()}));var x=o.useRef(e);x.current=e;var C=o.useCallback((function(e){var t=x.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,u=o.height,l=e.offsetWidth,c=e.offsetHeight,s=Math.floor(i),f=Math.floor(u);if(g.current.width!==s||g.current.height!==f||g.current.offsetWidth!==l||g.current.offsetHeight!==c){var d={width:s,height:f,offsetWidth:l,offsetHeight:c};g.current=d;var v=l===Math.round(i)?i:l,m=c===Math.round(u)?u:c,h=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:v,offsetHeight:m});null==p||p(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return o.useEffect((function(){var e,t,n=E();return n&&!r&&(e=n,t=C,d.has(e)||(d.set(e,new Set),v.observe(e)),d.get(e).add(t)),function(){return function(e,t){d.has(e)&&(d.get(e).delete(t),d.get(e).size||(v.unobserve(e),d.delete(e)))}(n,C)}}),[i.current,r]),o.createElement(b,{ref:f},y?o.cloneElement(h,{ref:Z}):h)}var w=o.forwardRef(y);function Z(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(w,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var E=o.forwardRef(Z);E.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(s),u=o.useCallback((function(e,t,o){r.current+=1;var u=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){u===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(s.Provider,{value:u},t)};var x=E},6551:function(e,t,n){n.d(t,{ZP:function(){return l}});var r=n(42978),o=n(59301),i=n(47273),a=0,u=(0,i.Z)();function l(e){var t=o.useState(),n=(0,r.Z)(t,2),i=n[0],l=n[1];return o.useEffect((function(){var e;l("rc_select_".concat((u?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},37463:function(e,t,n){n.d(t,{Ac:function(){return ee},Xo:function(){return ne},Wx:function(){return oe},ZP:function(){return Se},lk:function(){return w}});var r=n(54476),o=n(94480),i=n(20068),a=n(33885),u=n(42978),l=n(75931),c=n(76190),s=n(18929),f=n(48736),d=n(59301),v=n(92310),p=n.n(v),m=n(34280),h=n(49658),g=n(8654),b=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,u="function"==typeof n?n(r):n;return d.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==u?u:d.createElement("span",{className:p()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},o))},y=d.createContext(null);function w(){return d.useContext(y)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return d.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var E=n(10228);var x=n(26112),C=n(83836);var S=function(e,t,n){var r=(0,a.Z)((0,a.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})})),r},M=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],R=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,i=e.autoFocus,u=e.autoComplete,c=e.editable,s=e.activeDescendantId,v=e.value,m=e.open,h=e.attrs,b=(0,l.Z)(e,M),y=o||d.createElement("input",null),w=y,Z=w.ref,E=w.props;return(0,f.Kp)(!("maxLength"in y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),y=d.cloneElement(y,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},S(b,E,!0)),{},{id:r,ref:(0,g.sQ)(t,Z),autoComplete:u||"off",autoFocus:i,className:p()("".concat(n,"-selection-search-input"),null==E?void 0:E.className),role:"combobox","aria-expanded":m||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":m?s:void 0},h),{},{value:c?v:"",readOnly:!c,unselectable:c?null:"on",style:(0,a.Z)((0,a.Z)({},E.style),{},{opacity:c?null:0})}))};var N=d.forwardRef(R);function k(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var _="undefined"!=typeof window&&window.document&&window.document.documentElement;function P(e){return["string","number"].includes((0,c.Z)(e))}function I(e){var t=void 0;return e&&(P(e.title)?t=e.title.toString():P(e.label)&&(t=e.label.toString())),t}function D(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var O=function(e){e.preventDefault(),e.stopPropagation()},T=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,f=e.inputRef,v=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,y=e.autoFocus,w=e.autoComplete,Z=e.activeDescendantId,E=e.tabIndex,S=e.removeIcon,M=e.maxTagCount,R=e.maxTagTextLength,k=e.maxTagPlaceholder,P=void 0===k?function(e){return"+ ".concat(e.length," ...")}:k,T=e.tagRender,A=e.onToggleOpen,z=e.onRemove,L=e.onInputChange,j=e.onInputPaste,V=e.onInputKeyDown,H=e.onInputMouseDown,F=e.onInputCompositionStart,B=e.onInputCompositionEnd,W=e.onInputBlur,K=d.useRef(null),Y=(0,d.useState)(0),X=(0,u.Z)(Y,2),U=X[0],G=X[1],q=(0,d.useState)(!1),J=(0,u.Z)(q,2),Q=J[0],$=J[1],ee="".concat(o,"-selection"),te=l||"multiple"===h&&!1===s||"tags"===h?c:"",ne="tags"===h||"multiple"===h&&!1===s||g&&(l||Q);t=function(){G(K.current.scrollWidth)},n=[te],_?d.useLayoutEffect(t,n):d.useEffect(t,n);var re=function(e,t,n,r,o){return d.createElement("span",{title:I(e),className:p()("".concat(ee,"-item"),(0,i.Z)({},"".concat(ee,"-item-disabled"),n))},d.createElement("span",{className:"".concat(ee,"-item-content")},t),r&&d.createElement(b,{className:"".concat(ee,"-item-remove"),onMouseDown:O,onClick:o,customizeIcon:S},"×"))},oe=function(e,t,n,r,o,i){return d.createElement("span",{onMouseDown:function(e){O(e),A(!l)}},T({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},ie=d.createElement("div",{className:"".concat(ee,"-search"),style:{width:U},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},d.createElement(N,{ref:f,open:l,prefixCls:o,id:r,inputElement:null,disabled:m,autoFocus:y,autoComplete:w,editable:ne,activeDescendantId:Z,value:te,onKeyDown:V,onMouseDown:H,onChange:L,onPaste:j,onCompositionStart:F,onCompositionEnd:B,onBlur:W,tabIndex:E,attrs:(0,x.Z)(e,!0)}),d.createElement("span",{ref:K,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},te," ")),ae=d.createElement(C.Z,{prefixCls:"".concat(ee,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!m&&!t,i=n;if("number"==typeof R&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>R&&(i="".concat(a.slice(0,R),"..."))}var u=function(t){t&&t.stopPropagation(),z(e)};return"function"==typeof T?oe(r,i,t,o,u):re(e,i,t,o,u)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof P?P(e):P;return"function"==typeof T?oe(void 0,t,!1,!1,void 0,!0):re({title:t},t,!1)},suffix:ie,itemKey:D,maxCount:M});return d.createElement("span",{className:"".concat(ee,"-wrap")},ae,!a.length&&!te&&d.createElement("span",{className:"".concat(ee,"-placeholder")},v))},A=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,f=e.open,v=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,Z=e.onInputMouseDown,E=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,M=e.onInputCompositionEnd,R=e.onInputBlur,k=e.title,_=d.useState(!1),P=(0,u.Z)(_,2),D=P[0],O=P[1],T="combobox"===s,A=T||h,z=v[0],L=g||"";T&&b&&!D&&(L=b),d.useEffect((function(){T&&O(!1)}),[T,b]);var j=!("combobox"!==s&&!f&&!h)&&!!L,V=void 0===k?I(z):k,H=d.useMemo((function(){return z?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)}),[z,j,p,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(N,{ref:o,prefixCls:n,id:r,open:f,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:A,activeDescendantId:c,value:L,onKeyDown:w,onMouseDown:Z,onChange:function(e){O(!0),E(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:M,onBlur:R,tabIndex:m,attrs:(0,x.Z)(e,!0),maxLength:T?y:void 0})),!T&&z?d.createElement("span",{className:"".concat(n,"-selection-item"),title:V,style:j?{visibility:"hidden"}:void 0},z.label):null,H)},z=function(e,t){var n=(0,d.useRef)(null),o=(0,d.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,f=e.disabled,v=e.prefix,p=e.autoClearSearchValue,m=e.onSearch,h=e.onSearchSubmit,g=e.onToggleOpen,b=e.onInputKeyDown,y=e.onInputBlur,w=e.domRef;d.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var x=Z(0),C=(0,u.Z)(x,2),S=C[0],M=C[1],R=(0,d.useRef)(null),N=function(e){!1!==m(e,!0,o.current)&&g(!0)},k={inputRef:n,onInputKeyDown:function(e){var t,r=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!a||r!==E.Z.UP&&r!==E.Z.DOWN||e.preventDefault(),b&&b(e),r!==E.Z.ENTER||"tags"!==l||o.current||a||null==h||h(e.target.value),i&&!a&&~[E.Z.UP,E.Z.DOWN,E.Z.LEFT,E.Z.RIGHT].indexOf(r))||(t=r)&&![E.Z.ESC,E.Z.SHIFT,E.Z.BACKSPACE,E.Z.TAB,E.Z.WIN_KEY,E.Z.ALT,E.Z.META,E.Z.WIN_KEY_RIGHT,E.Z.CTRL,E.Z.SEMICOLON,E.Z.EQUALS,E.Z.CAPS_LOCK,E.Z.CONTEXT_MENU,E.Z.F1,E.Z.F2,E.Z.F3,E.Z.F4,E.Z.F5,E.Z.F6,E.Z.F7,E.Z.F8,E.Z.F9,E.Z.F10,E.Z.F11,E.Z.F12].includes(t)&&g(!0)},onInputMouseDown:function(){M(!0)},onInputChange:function(e){var t=e.target.value;if(s&&R.current&&/[\r\n]/.test(R.current)){var n=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,R.current)}R.current=null,N(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");R.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&N(e.target.value)},onInputBlur:y},_="multiple"===l||"tags"===l?d.createElement(T,(0,r.Z)({},e,k)):d.createElement(A,(0,r.Z)({},e,k));return d.createElement("div",{ref:w,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===l&&f||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==p&&m("",!0,!1),g())}},v&&d.createElement("div",{className:"".concat(i,"-prefix")},v),_)};var L=d.forwardRef(z),j=n(65030),V=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),u=e.children,c=e.popupElement,s=e.animation,f=e.transitionName,v=e.dropdownStyle,m=e.dropdownClassName,h=e.direction,g=void 0===h?"ltr":h,b=e.placement,y=e.builtinPlacements,w=e.dropdownMatchSelectWidth,Z=e.dropdownRender,E=e.dropdownAlign,x=e.getPopupContainer,C=e.empty,S=e.getTriggerDOMNode,M=e.onPopupVisibleChange,R=e.onPopupMouseEnter,N=(0,l.Z)(e,V),k="".concat(n,"-dropdown"),_=c;Z&&(_=Z(c));var P=d.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(w)}),[y,w]),I=s?"".concat(k,"-").concat(s):f,D="number"==typeof w,O=d.useMemo((function(){return D?null:!1===w?"minWidth":"width"}),[w,D]),T=v;D&&(T=(0,a.Z)((0,a.Z)({},T),{},{width:w}));var A=d.useRef(null);return d.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=A.current)||void 0===e?void 0:e.popupElement}}})),d.createElement(j.Z,(0,r.Z)({},N,{showAction:M?["click"]:[],hideAction:M?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:k,popupTransitionName:I,popup:d.createElement("div",{onMouseEnter:R},_),ref:A,stretch:O,popupAlign:E,popupVisible:o,getPopupContainer:x,popupClassName:p()(m,(0,i.Z)({},"".concat(k,"-empty"),C)),popupStyle:T,getTriggerDOMNode:S,onPopupVisibleChange:M}),u)};var F=d.forwardRef(H),B=n(66712);function W(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function K(e){return void 0!==e&&!Number.isNaN(e)}function Y(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function X(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var U=d.createContext(null);function G(e){var t=e.visible,n=e.values;if(!t)return null;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,c.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var q=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],J=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Q=function(e){return"tags"===e||"multiple"===e},$=d.forwardRef((function(e,t){var n,f=e.id,v=e.prefixCls,w=e.className,E=e.showSearch,x=e.tagRender,C=e.direction,S=e.omitDomProps,M=e.displayValues,R=e.onDisplayValuesChange,N=e.emptyOptions,k=e.notFoundContent,_=void 0===k?"Not Found":k,P=e.onClear,I=e.mode,D=e.disabled,O=e.loading,T=e.getInputElement,A=e.getRawInputElement,z=e.open,j=e.defaultOpen,V=e.onDropdownVisibleChange,H=e.activeValue,W=e.onActiveValueChange,Y=e.activeDescendantId,X=e.searchValue,$=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,re=e.allowClear,oe=e.prefix,ie=e.suffixIcon,ae=e.clearIcon,ue=e.OptionList,le=e.animation,ce=e.transitionName,se=e.dropdownStyle,fe=e.dropdownClassName,de=e.dropdownMatchSelectWidth,ve=e.dropdownRender,pe=e.dropdownAlign,me=e.placement,he=e.builtinPlacements,ge=e.getPopupContainer,be=e.showAction,ye=void 0===be?[]:be,we=e.onFocus,Ze=e.onBlur,Ee=e.onKeyUp,xe=e.onKeyDown,Ce=e.onMouseDown,Se=(0,l.Z)(e,q),Me=Q(I),Re=(void 0!==E?E:Me)||"combobox"===I,Ne=(0,a.Z)({},Se);J.forEach((function(e){delete Ne[e]})),null==S||S.forEach((function(e){delete Ne[e]}));var ke=d.useState(!1),_e=(0,u.Z)(ke,2),Pe=_e[0],Ie=_e[1];d.useEffect((function(){Ie((0,h.Z)())}),[]);var De=d.useRef(null),Oe=d.useRef(null),Te=d.useRef(null),Ae=d.useRef(null),ze=d.useRef(null),Le=d.useRef(!1),je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=d.useState(!1),n=(0,u.Z)(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};return d.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),Ve=(0,u.Z)(je,3),He=Ve[0],Fe=Ve[1],Be=Ve[2];d.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Ae.current)||void 0===e?void 0:e.focus,blur:null===(t=Ae.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ze.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:De.current||Oe.current}}));var We=d.useMemo((function(){var e;if("combobox"!==I)return X;var t=null===(e=M[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[X,I,M]),Ke="combobox"===I&&"function"==typeof T&&T()||null,Ye="function"==typeof A&&A(),Xe=(0,g.x1)(Oe,null==Ye||null===(n=Ye.props)||void 0===n?void 0:n.ref),Ue=d.useState(!1),Ge=(0,u.Z)(Ue,2),qe=Ge[0],Je=Ge[1];(0,m.Z)((function(){Je(!0)}),[]);var Qe=(0,s.Z)(!1,{defaultValue:j,value:z}),$e=(0,u.Z)(Qe,2),et=$e[0],tt=$e[1],nt=!!qe&&et,rt=!_&&N;(D||rt&&nt&&"combobox"===I)&&(nt=!1);var ot=!rt&&nt,it=d.useCallback((function(e){var t=void 0!==e?e:!nt;D||(tt(t),nt!==t&&(null==V||V(t)))}),[D,nt,tt,V]),at=d.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),ut=d.useContext(U)||{},lt=ut.maxCount,ct=ut.rawValues,st=function(e,t,n){if(!(Me&&K(lt)&&(null==ct?void 0:ct.size)>=lt)){var r=!0,i=e;null==W||W(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,i=function e(t,n){var i=(0,B.Z)(n),a=i[0],u=i.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce((function(t,n){return[].concat((0,o.Z)(t),(0,o.Z)(e(n,u)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?i.slice(0,n):i:null}(e,ne,K(lt)?lt-ct.size:void 0),u=n?null:a;return"combobox"!==I&&u&&(i="",null==te||te(u),it(!1),r=!1),ee&&We!==i&&ee(i,{source:t?"typing":"effect"}),r}};d.useEffect((function(){nt||Me||"combobox"===I||st("",!1,!1)}),[nt]),d.useEffect((function(){et&&D&&tt(!1),D&&!Le.current&&Fe(!1)}),[D]);var ft=Z(),dt=(0,u.Z)(ft,2),vt=dt[0],pt=dt[1],mt=d.useRef(!1),ht=d.useRef(!1),gt=[];d.useEffect((function(){return function(){gt.forEach((function(e){return clearTimeout(e)})),gt.splice(0,gt.length)}}),[]);var bt,yt=d.useState({}),wt=(0,u.Z)(yt,2)[1];Ye&&(bt=function(e){it(e)}),function(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[De.current,null===(e=Te.current)||void 0===e?void 0:e.getPopupElement()]}),ot,it,!!Ye);var Zt,Et=d.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:_,open:nt,triggerOpen:ot,id:f,showSearch:Re,multiple:Me,toggleOpen:it})}),[e,_,ot,nt,f,Re,Me,it]),xt=!!ie||O;xt&&(Zt=d.createElement(b,{className:p()("".concat(v,"-arrow"),(0,i.Z)({},"".concat(v,"-arrow-loading"),O)),customizeIcon:ie,customizeIconProps:{loading:O,searchValue:We,open:nt,focused:He,showSearch:Re}}));var Ct,St=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=d.useMemo((function(){return"object"===(0,c.Z)(r)?r.clearIcon:o||void 0}),[r,o]),s=d.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===u&&""===a)}),[r,i,n.length,a,u]);return{allowClear:s,clearIcon:d.createElement(b,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(v,(function(){var e;null==P||P(),null===(e=Ae.current)||void 0===e||e.focus(),R([],{type:"clear",values:M}),st("",!1,!1)}),M,re,ae,D,We,I),Mt=St.allowClear,Rt=St.clearIcon,Nt=d.createElement(ue,{ref:ze}),kt=p()(v,w,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(v,"-focused"),He),"".concat(v,"-multiple"),Me),"".concat(v,"-single"),!Me),"".concat(v,"-allow-clear"),re),"".concat(v,"-show-arrow"),xt),"".concat(v,"-disabled"),D),"".concat(v,"-loading"),O),"".concat(v,"-open"),nt),"".concat(v,"-customize-input"),Ke),"".concat(v,"-show-search"),Re)),_t=d.createElement(F,{ref:Te,disabled:D,prefixCls:v,visible:ot,popupElement:Nt,animation:le,transitionName:ce,dropdownStyle:se,dropdownClassName:fe,direction:C,dropdownMatchSelectWidth:de,dropdownRender:ve,dropdownAlign:pe,placement:me,builtinPlacements:he,getPopupContainer:ge,empty:N,getTriggerDOMNode:function(e){return Oe.current||e},onPopupVisibleChange:bt,onPopupMouseEnter:function(){wt({})}},Ye?d.cloneElement(Ye,{ref:Xe}):d.createElement(L,(0,r.Z)({},e,{domRef:Oe,prefixCls:v,inputElement:Ke,ref:Ae,id:f,prefix:oe,showSearch:Re,autoClearSearchValue:$,mode:I,activeDescendantId:Y,tagRender:x,values:M,open:nt,onToggleOpen:it,activeValue:H,searchValue:We,onSearch:st,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=M.filter((function(t){return t!==e}));R(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){mt.current=!1}})));return Ct=Ye?_t:d.createElement("div",(0,r.Z)({className:kt},Ne,{ref:De,onMouseDown:function(e){var t,n=e.target,r=null===(t=Te.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=gt.indexOf(o);-1!==t&&gt.splice(t,1),Be(),Pe||r.contains(document.activeElement)||null===(e=Ae.current)||void 0===e||e.focus()}));gt.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];null==Ce||Ce.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=vt(),r=e.key,i="Enter"===r;if(i&&("combobox"!==I&&e.preventDefault(),nt||it(!0)),pt(!!We),"Backspace"===r&&!n&&Me&&!We&&M.length){for(var a=(0,o.Z)(M),u=null,l=a.length-1;l>=0;l-=1){var c=a[l];if(!c.disabled){a.splice(l,1),u=c;break}}u&&R(a,{type:"remove",values:[u]})}for(var s=arguments.length,f=new Array(s>1?s-1:0),d=1;d<s;d++)f[d-1]=arguments[d];!nt||i&&mt.current||(i&&(mt.current=!0),null===(t=ze.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(f))),null==xe||xe.apply(void 0,[e].concat(f))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;nt&&(null===(o=ze.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(mt.current=!1),null==Ee||Ee.apply(void 0,[e].concat(n))},onFocus:function(){Fe(!0),D||(we&&!ht.current&&we.apply(void 0,arguments),ye.includes("focus")&&it(!0)),ht.current=!0},onBlur:function(){Le.current=!0,Fe(!1,(function(){ht.current=!1,Le.current=!1,it(!1)})),D||(We&&("tags"===I?ee(We,{source:"submit"}):"multiple"===I&&ee("",{source:"blur"})),Ze&&Ze.apply(void 0,arguments))}}),d.createElement(G,{visible:He&&!nt,values:M}),_t,Zt,Mt&&Rt),d.createElement(y.Provider,{value:Et},Ct)}));var ee=$,te=function(){return null};te.isSelectOptGroup=!0;var ne=te,re=function(){return null};re.isSelectOption=!0;var oe=re,ie=n(80547),ae=n(2738),ue=n(48911);var le=["disabled","title","children","style","className"];function ce(e){return"string"==typeof e||"number"==typeof e}var se=function(e,t){var n=w(),a=n.prefixCls,c=n.id,s=n.open,f=n.multiple,v=n.mode,m=n.searchValue,h=n.toggleOpen,g=n.notFoundContent,y=n.onPopupScroll,Z=d.useContext(U),C=Z.maxCount,S=Z.flattenOptions,M=Z.onActiveValue,R=Z.defaultActiveFirstOption,N=Z.onSelect,k=Z.menuItemSelectedIcon,_=Z.rawValues,P=Z.fieldNames,I=Z.virtual,D=Z.direction,O=Z.listHeight,T=Z.listItemHeight,A=Z.optionRender,z="".concat(a,"-item"),L=(0,ie.Z)((function(){return S}),[s,S],(function(e,t){return t[0]&&e[1]!==t[1]})),j=d.useRef(null),V=d.useMemo((function(){return f&&K(C)&&(null==_?void 0:_.size)>=C}),[f,C,null==_?void 0:_.size]),H=function(e){e.preventDefault()},F=function(e){var t;null===(t=j.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},B=d.useCallback((function(e){return"combobox"!==v&&_.has(e)}),[v,(0,o.Z)(_).toString(),_.size]),W=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=L.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=L[o]||{},a=i.group,u=i.data;if(!a&&(null==u||!u.disabled)&&(B(u.value)||!V))return o}return-1},Y=d.useState((function(){return W(0)})),X=(0,u.Z)(Y,2),G=X[0],q=X[1],J=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=L[e];r?M(r.value,e,n):M(null,-1,n)};(0,d.useEffect)((function(){J(!1!==R?W(0):-1)}),[L.length,m]);var Q=d.useCallback((function(e){return"combobox"===v?String(e).toLowerCase()===m.toLowerCase():_.has(e)}),[v,m,(0,o.Z)(_).toString(),_.size]);(0,d.useEffect)((function(){var e,t=setTimeout((function(){if(!f&&s&&1===_.size){var e=Array.from(_)[0],t=L.findIndex((function(t){var n=t.data;return m?String(n.value).startsWith(m):n.value===e}));-1!==t&&(J(t),F(t))}}));s&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,m]);var $=function(e){void 0!==e&&N(e,{selected:!_.has(e)}),f||h(!1)};if(d.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case E.Z.N:case E.Z.P:case E.Z.UP:case E.Z.DOWN:var r=0;if(t===E.Z.UP?r=-1:t===E.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===E.Z.N?r=1:t===E.Z.P&&(r=-1)),0!==r){var o=W(G+r,r);F(o),J(o,!0)}break;case E.Z.TAB:case E.Z.ENTER:var i,a=L[G];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||V?$(void 0):$(a.value),s&&e.preventDefault();break;case E.Z.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}})),0===L.length)return d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(z,"-empty"),onMouseDown:H},g);var ee=Object.keys(P).map((function(e){return P[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var re=function(e){var t=L[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=(0,x.Z)(n,!0),u=te(t);return t?d.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof u||i?null:u},a,{key:e},ne(t,e),{"aria-selected":Q(o)}),o):null},oe={role:"listbox",id:"".concat(c,"_list")};return d.createElement(d.Fragment,null,I&&d.createElement("div",(0,r.Z)({},oe,{style:{height:0,width:0,overflow:"hidden"}}),re(G-1),re(G),re(G+1)),d.createElement(ue.Z,{itemKey:"key",ref:j,data:L,height:O,itemHeight:T,fullHeight:!1,onMouseDown:H,onScroll:y,virtual:I,direction:D,innerProps:I?null:oe},(function(e,t){var n=e.group,o=e.groupOption,a=e.data,u=e.label,c=e.value,s=a.key;if(n){var f,v=null!==(f=a.title)&&void 0!==f?f:ce(u)?u.toString():void 0;return d.createElement("div",{className:p()(z,"".concat(z,"-group"),a.className),title:v},void 0!==u?u:s)}var m=a.disabled,h=a.title,g=(a.children,a.style),y=a.className,w=(0,l.Z)(a,le),Z=(0,ae.Z)(w,ee),E=B(c),C=m||!E&&V,S="".concat(z,"-option"),M=p()(z,S,y,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(S,"-grouped"),o),"".concat(S,"-active"),G===t&&!C),"".concat(S,"-disabled"),C),"".concat(S,"-selected"),E)),R=te(e),N=!k||"function"==typeof k||E,_="number"==typeof R?R:R||c,P=ce(_)?_.toString():void 0;return void 0!==h&&(P=h),d.createElement("div",(0,r.Z)({},(0,x.Z)(Z),I?{}:ne(e,t),{"aria-selected":Q(c),className:M,title:P,onMouseMove:function(){G===t||C||J(t)},onClick:function(){C||$(c)},style:g}),d.createElement("div",{className:"".concat(S,"-content")},"function"==typeof A?A(e,{index:t}):_),d.isValidElement(k)||E,N&&d.createElement(b,{className:"".concat(z,"-option-state"),customizeIcon:k,customizeIconProps:{value:c,disabled:C,isSelected:E}},E?"✓":null))})))};var fe=d.forwardRef(se);function de(e,t){return k(e).join("").toUpperCase().includes(t)}var ve=n(6551),pe=n(11592),me=["children","value"],he=["children"];function ge(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,u=(0,l.Z)(r,me);return(0,a.Z)({key:n,value:void 0!==i?i:n,children:o},u)}function be(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,pe.Z)(e).map((function(e,n){if(!d.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,u=r.props,c=u.children,s=(0,l.Z)(u,he);return t||!o?ge(e):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:be(c)})})).filter((function(e){return e}))}var ye=function(e,t,n,r,o){return d.useMemo((function(){var i=e;!e&&(i=be(t));var a=new Map,u=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var s=t[c];!s[n.options]||i?(a.set(s[n.value],s),l(u,s,n.label),l(u,s,r),l(u,s,o)):e(s[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:u}}),[e,t,n,r,o])};function we(e){var t=d.useRef();t.current=e;var n=d.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Ze=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ee=["inputValue"];var xe=d.forwardRef((function(e,t){var n=e.id,f=e.mode,v=e.prefixCls,p=void 0===v?"rc-select":v,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,y=e.onSearch,w=e.autoClearSearchValue,Z=void 0===w||w,E=e.onSelect,x=e.onDeselect,C=e.dropdownMatchSelectWidth,S=void 0===C||C,M=e.filterOption,R=e.filterSort,N=e.optionFilterProp,_=e.optionLabelProp,P=e.options,I=e.optionRender,D=e.children,O=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,A=e.virtual,z=e.direction,L=e.listHeight,j=void 0===L?200:L,V=e.listItemHeight,H=void 0===V?20:V,F=e.labelRender,B=e.value,K=e.defaultValue,G=e.labelInValue,q=e.onChange,J=e.maxCount,$=(0,l.Z)(e,Ze),te=(0,ve.ZP)(n),ne=Q(f),re=!(P||!D),oe=d.useMemo((function(){return(void 0!==M||"combobox"!==f)&&M}),[M,f]),ie=d.useMemo((function(){return Y(h,re)}),[JSON.stringify(h),re]),ae=(0,s.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),ue=(0,u.Z)(ae,2),le=ue[0],ce=ue[1],se=ye(P,D,ie,N,_),pe=se.valueOptions,me=se.labelOptions,he=se.options,ge=d.useCallback((function(e){return k(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==(0,c.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var u,l=pe.get(t);l&&(void 0===n&&(n=null==l?void 0:l[_||ie.label]),void 0===r&&(r=null!==(u=null==l?void 0:l.key)&&void 0!==u?u:t),o=null==l?void 0:l.disabled,i=null==l?void 0:l.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[ie,_,pe]),be=(0,s.Z)(K,{value:B}),xe=(0,u.Z)(be,2),Ce=xe[0],Se=xe[1],Me=d.useMemo((function(){var e,t=ge(ne&&null===Ce?[]:Ce);return"combobox"===f&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Ce,ge,f,ne]),Re=function(e,t){var n=d.useRef({values:new Map,options:new Map});return[d.useMemo((function(){var r=n.current,o=r.values,i=r.options,u=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return u.forEach((function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=c,u}),[e,t]),d.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(Me,pe),Ne=(0,u.Z)(Re,2),ke=Ne[0],_e=Ne[1],Pe=d.useMemo((function(){if(!f&&1===ke.length){var e=ke[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ke.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t="function"==typeof F?F(e):e.label)&&void 0!==t?t:e.value})}))}),[f,ke,F]),Ie=d.useMemo((function(){return new Set(ke.map((function(e){return e.value})))}),[ke]);d.useEffect((function(){if("combobox"===f){var e,t=null===(e=ke[0])||void 0===e?void 0:e.value;ce(function(e){return null!=e}(t)?String(t):"")}}),[ke]);var De=we((function(e,t){var n=null!=t?t:e;return(0,i.Z)((0,i.Z)({},ie.value,e),ie.label,n)})),Oe=function(e,t,n,r,o){return d.useMemo((function(){if(!n||!1===r)return e;var u=t.options,l=t.label,c=t.value,s=[],f="function"==typeof r,d=n.toUpperCase(),v=f?r:function(e,t){return o?de(t[o],d):t[u]?de(t["children"!==l?l:"label"],d):de(t[c],d)},p=f?function(e){return X(e)}:function(e){return e};return e.forEach((function(e){if(e[u])if(v(n,p(e)))s.push(e);else{var t=e[u].filter((function(e){return v(n,p(e))}));t.length&&s.push((0,a.Z)((0,a.Z)({},e),{},(0,i.Z)({},u,t)))}else v(n,p(e))&&s.push(e)})),s}),[e,r,o,n,t])}(d.useMemo((function(){if("tags"!==f)return he;var e=(0,o.Z)(he);return(0,o.Z)(ke).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return pe.has(e)})(n)||e.push(De(n,t.label))})),e}),[De,he,pe,ke,f]),ie,le,oe,N),Te=d.useMemo((function(){return"tags"!==f||!le||Oe.some((function(e){return e[N||"value"]===le}))||Oe.some((function(e){return e[ie.value]===le}))?Oe:[De(le)].concat((0,o.Z)(Oe))}),[De,N,f,Oe,le,ie]),Ae=function e(t){return(0,o.Z)(t).sort((function(e,t){return R(e,t,{searchValue:le})})).map((function(t){return Array.isArray(t.options)?(0,a.Z)((0,a.Z)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},ze=d.useMemo((function(){return R?Ae(Te):Te}),[Te,R,le]),Le=d.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Y(n,!1),a=i.label,u=i.value,l=i.options,c=i.groupLabel;function s(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(l in e)){var n=e[u];o.push({key:W(e,o.length),groupOption:t,data:e,label:e[a],value:n})}else{var i=e[c];void 0===i&&r&&(i=e.label),o.push({key:W(e,o.length),group:!0,data:e,label:i}),s(e[l],!0)}}))}return s(e,!1),o}(ze,{fieldNames:ie,childrenAsData:re})}),[ze,ie,re]),je=function(e){var t=ge(e);if(Se(t),q&&(t.length!==ke.length||t.some((function(e,t){var n;return(null===(n=ke[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=G?t:t.map((function(e){return e.value})),r=t.map((function(e){return X(_e(e.value))}));q(ne?n:n[0],ne?r:r[0])}},Ve=d.useState(null),He=(0,u.Z)(Ve,2),Fe=He[0],Be=He[1],We=d.useState(0),Ke=(0,u.Z)(We,2),Ye=Ke[0],Xe=Ke[1],Ue=void 0!==O?O:"combobox"!==f,Ge=d.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Xe(t),m&&"combobox"===f&&null!==e&&"keyboard"===o&&Be(String(e))}),[m,f]),qe=function(e,t,n){var r=function(){var t,n=_e(e);return[G?{label:null==n?void 0:n[ie.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,X(n)]};if(t&&E){var o=r(),i=(0,u.Z)(o,2),a=i[0],l=i[1];E(a,l)}else if(!t&&x&&"clear"!==n){var c=r(),s=(0,u.Z)(c,2),f=s[0],d=s[1];x(f,d)}},Je=we((function(e,t){var n,r=!ne||t.selected;n=r?ne?[].concat((0,o.Z)(ke),[e]):[e]:ke.filter((function(t){return t.value!==e})),je(n),qe(e,r),"combobox"===f?Be(""):Q&&!Z||(ce(""),Be(""))})),Qe=d.useMemo((function(){var e=!1!==A&&!1!==S;return(0,a.Z)((0,a.Z)({},se),{},{flattenOptions:Le,onActiveValue:Ge,defaultActiveFirstOption:Ue,onSelect:Je,menuItemSelectedIcon:T,rawValues:Ie,fieldNames:ie,virtual:e,direction:z,listHeight:j,listItemHeight:H,childrenAsData:re,maxCount:J,optionRender:I})}),[J,se,Le,Ge,Ue,Je,T,Ie,ie,A,S,z,j,H,re,I]);return d.createElement(U.Provider,{value:Qe},d.createElement(ee,(0,r.Z)({},$,{id:te,prefixCls:p,ref:t,omitDomProps:Ee,mode:f,displayValues:Pe,onDisplayValuesChange:function(e,t){je(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){qe(e.value,!1,n)}))},direction:z,searchValue:le,onSearch:function(e,t){if(ce(e),Be(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===f&&je(e),null==y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,o.Z)(Ie),[n])));je(r),qe(n,!0),ce("")}}},autoClearSearchValue:Z,onSearchSplit:function(e){var t=e;"tags"!==f&&(t=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,o.Z)(Ie),(0,o.Z)(t))));je(n),n.forEach((function(e){qe(e,!0)}))},dropdownMatchSelectWidth:S,OptionList:fe,emptyOptions:!Le.length,activeValue:Fe,activeDescendantId:"".concat(te,"_list_").concat(Ye)})))}));var Ce=xe;Ce.Option=oe,Ce.OptGroup=ne;var Se=Ce},49658:function(e,t){t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},48911:function(e,t,n){n.d(t,{Z:function(){return L}});var r=n(54476),o=n(76190),i=n(33885),a=n(20068),u=n(42978),l=n(75931),c=n(92310),s=n.n(c),f=n(29301),d=n(70425),v=n(34280),p=n(59301),m=n(4676),h=p.forwardRef((function(e,t){var n=e.height,o=e.offsetY,u=e.offsetX,l=e.children,c=e.prefixCls,d=e.onInnerResize,v=e.innerProps,m=e.rtl,h=e.extra,g={},b={display:"flex",flexDirection:"column"};return void 0!==o&&(g={height:n,position:"relative",overflow:"hidden"},b=(0,i.Z)((0,i.Z)({},b),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(o,"px)")},m?"marginRight":"marginLeft",-u),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:g},p.createElement(f.Z,{onResize:function(e){e.offsetHeight&&d&&d()}},p.createElement("div",(0,r.Z)({style:b,className:s()((0,a.Z)({},"".concat(c,"-holder-inner"),c)),ref:t},v),l,h)))}));h.displayName="Filler";var g=h;function b(e){var t=e.children,n=e.setRef,r=p.useCallback((function(e){n(e)}),[]);return p.cloneElement(t,{ref:r})}function y(e,t,n){var r=p.useState(e),o=(0,u.Z)(r,2),i=o[0],a=o[1],l=p.useState(null),c=(0,u.Z)(l,2),s=c[0],f=c[1];return p.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var u={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):u}for(var c=null,s=1!==Math.abs(i-a),f=0;f<o.length;f+=1){var d=l(r[f]);if(d!==l(o[f])){c=f,s=s||d!==l(o[f+1]);break}}return null===c?null:{index:c,multiple:s}}(i||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),f(e[r.index])),a(e)}),[e]),[s]}var w=n(16089),Z="object"===("undefined"==typeof navigator?"undefined":(0,o.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),E=function(e,t,n,r){var o=(0,p.useRef)(!1),i=(0,p.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout((function(){o.current=!1}),50)}var u=(0,p.useRef)({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&u.current.left||t>0&&u.current.right:t<0&&u.current.top||t>0&&u.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||a(),!o.current&&r}};function x(e,t,n,r,o,i,a){var u=(0,p.useRef)(0),l=(0,p.useRef)(null),c=(0,p.useRef)(null),s=(0,p.useRef)(!1),f=E(t,n,r,o);var d=(0,p.useRef)(null),v=(0,p.useRef)(null);return[function(t){if(e){w.Z.cancel(v.current),v.current=(0,w.Z)((function(){d.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,p=n,m=r;("sx"===d.current||!d.current&&o&&r&&!n)&&(p=r,m=0,d.current="sx");var h=Math.abs(p),g=Math.abs(m);null===d.current&&(d.current=i&&h>g?"x":"y"),"y"===d.current?function(e,t){if(w.Z.cancel(l.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,u.current+=t,c.current=t,Z||n.preventDefault(),l.current=(0,w.Z)((function(){var e=s.current?10:1;a(u.current*e,!1),u.current=0})))}}(t,m):function(e,t){a(t,!0),Z||e.preventDefault()}(t,p)}},function(t){e&&(s.current=t.detail===c.current)}]}var C=n(67732),S=n(83652),M=function(){function e(){(0,C.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,S.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function R(e){var t=parseFloat(e);return isNaN(t)?0:t}var N=14/15;function k(e){return Math.floor(Math.pow(e,.5))}function _(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var P=p.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,f=e.onStopMove,d=e.onScroll,v=e.horizontal,m=e.spinSize,h=e.containerSize,g=e.style,b=e.thumbStyle,y=e.showScrollBar,Z=p.useState(!1),E=(0,u.Z)(Z,2),x=E[0],C=E[1],S=p.useState(null),M=(0,u.Z)(S,2),R=M[0],N=M[1],k=p.useState(null),P=(0,u.Z)(k,2),I=P[0],D=P[1],O=!r,T=p.useRef(),A=p.useRef(),z=p.useState(y),L=(0,u.Z)(z,2),j=L[0],V=L[1],H=p.useRef(),F=function(){!0!==y&&!1!==y&&(clearTimeout(H.current),V(!0),H.current=setTimeout((function(){V(!1)}),3e3))},B=l-h||0,W=h-m||0,K=p.useMemo((function(){return 0===o||0===B?0:o/B*W}),[o,B,W]),Y=p.useRef({top:K,dragging:x,pageY:R,startTop:I});Y.current={top:K,dragging:x,pageY:R,startTop:I};var X=function(e){C(!0),N(_(e,v)),D(Y.current.top),c(),e.stopPropagation(),e.preventDefault()};p.useEffect((function(){var e=function(e){e.preventDefault()},t=T.current,n=A.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",X,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",X)}}),[]);var U=p.useRef();U.current=B;var G=p.useRef();G.current=W,p.useEffect((function(){if(x){var e,t=function(t){var n=Y.current,r=n.dragging,o=n.pageY,i=n.startTop;w.Z.cancel(e);var a=T.current.getBoundingClientRect(),u=h/(v?a.width:a.height);if(r){var l=(_(t,v)-o)*u,c=i;!O&&v?c-=l:c+=l;var s=U.current,f=G.current,p=f?c/f:0,m=Math.ceil(p*s);m=Math.max(m,0),m=Math.min(m,s),e=(0,w.Z)((function(){d(m,v)}))}},n=function(){C(!1),f()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),w.Z.cancel(e)}}}),[x]),p.useEffect((function(){return F(),function(){clearTimeout(H.current)}}),[o]),p.useImperativeHandle(t,(function(){return{delayHidden:F}}));var q="".concat(n,"-scrollbar"),J={position:"absolute",visibility:j?null:"hidden"},Q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return v?(Object.assign(J,{height:8,left:0,right:0,bottom:0}),Object.assign(Q,(0,a.Z)({height:"100%",width:m},O?"left":"right",K))):(Object.assign(J,(0,a.Z)({width:8,top:0,bottom:0},O?"right":"left",0)),Object.assign(Q,{width:"100%",height:m,top:K})),p.createElement("div",{ref:T,className:s()(q,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(q,"-horizontal"),v),"".concat(q,"-vertical"),!v),"".concat(q,"-visible"),j)),style:(0,i.Z)((0,i.Z)({},J),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:F},p.createElement("div",{ref:A,className:s()("".concat(q,"-thumb"),(0,a.Z)({},"".concat(q,"-thumb-moving"),x)),style:(0,i.Z)((0,i.Z)({},Q),b),onMouseDown:X}))}));function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var D=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],O=[],T={overflowY:"auto",overflowAnchor:"none"};function A(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,h=e.className,Z=e.height,C=e.itemHeight,S=e.fullHeight,A=void 0===S||S,z=e.style,L=e.data,j=e.children,V=e.itemKey,H=e.virtual,F=e.direction,B=e.scrollWidth,W=e.component,K=void 0===W?"div":W,Y=e.onScroll,X=e.onVirtualScroll,U=e.onVisibleChange,G=e.innerProps,q=e.extraRender,J=e.styles,Q=e.showScrollBar,$=void 0===Q?"optional":Q,ee=(0,l.Z)(e,D),te=p.useCallback((function(e){return"function"==typeof V?V(e):null==e?void 0:e[V]}),[V]),ne=function(e,t,n){var r=p.useState(0),o=(0,u.Z)(r,2),i=o[0],a=o[1],l=(0,p.useRef)(new Map),c=(0,p.useRef)(new M),s=(0,p.useRef)(0);function f(){s.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){var e=!1;l.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,u=r+R(i)+R(a);c.current.get(n)!==u&&(c.current.set(n,u),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then((function(){n===s.current&&t()}))}}return(0,p.useEffect)((function(){return f}),[]),[function(r,o){var i=e(r),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},d,c.current,i]}(te,null,null),re=(0,u.Z)(ne,4),oe=re[0],ie=re[1],ae=re[2],ue=re[3],le=!(!1===H||!Z||!C),ce=p.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),se=le&&L&&(Math.max(C*L.length,ce)>Z||!!B),fe="rtl"===F,de=s()(c,(0,a.Z)({},"".concat(c,"-rtl"),fe),h),ve=L||O,pe=(0,p.useRef)(),me=(0,p.useRef)(),he=(0,p.useRef)(),ge=(0,p.useState)(0),be=(0,u.Z)(ge,2),ye=be[0],we=be[1],Ze=(0,p.useState)(0),Ee=(0,u.Z)(Ze,2),xe=Ee[0],Ce=Ee[1],Se=(0,p.useState)(!1),Me=(0,u.Z)(Se,2),Re=Me[0],Ne=Me[1],ke=function(){Ne(!0)},_e=function(){Ne(!1)},Pe={getKey:te};function Ie(e){we((function(t){var n=function(e){var t=e;Number.isNaN(Je.current)||(t=Math.min(t,Je.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return pe.current.scrollTop=n,n}))}var De=(0,p.useRef)({start:0,end:ve.length}),Oe=(0,p.useRef)(),Te=y(ve,te),Ae=(0,u.Z)(Te,1)[0];Oe.current=Ae;var ze=p.useMemo((function(){if(!le)return{scrollHeight:void 0,start:0,end:ve.length-1,offset:void 0};var e;if(!se)return{scrollHeight:(null===(e=me.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:ve.length-1,offset:void 0};for(var t,n,r,o=0,i=ve.length,a=0;a<i;a+=1){var u=ve[a],l=te(u),c=ae.get(l),s=o+(void 0===c?C:c);s>=ye&&void 0===t&&(t=a,n=o),s>ye+Z&&void 0===r&&(r=a),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(Z/C)),void 0===r&&(r=ve.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ve.length-1),offset:n}}),[se,le,ye,ve,ue,Z]),Le=ze.scrollHeight,je=ze.start,Ve=ze.end,He=ze.offset;De.current.start=je,De.current.end=Ve,p.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=ve[je];if(r&&void 0===n)if(te(r)===t){var o=ae.get(t)-C;Ie((function(e){return e+o}))}}ae.resetRecord()}),[Le]);var Fe=p.useState({width:0,height:Z}),Be=(0,u.Z)(Fe,2),We=Be[0],Ke=Be[1],Ye=(0,p.useRef)(),Xe=(0,p.useRef)(),Ue=p.useMemo((function(){return I(We.width,B)}),[We.width,B]),Ge=p.useMemo((function(){return I(We.height,Le)}),[We.height,Le]),qe=Le-Z,Je=(0,p.useRef)(qe);Je.current=qe;var Qe=ye<=0,$e=ye>=qe,et=xe<=0,tt=xe>=B,nt=E(Qe,$e,et,tt),rt=function(){return{x:fe?-xe:xe,y:ye}},ot=(0,p.useRef)(rt()),it=(0,d.zX)((function(e){if(X){var t=(0,i.Z)((0,i.Z)({},rt()),e);ot.current.x===t.x&&ot.current.y===t.y||(X(t),ot.current=t)}}));function at(e,t){var n=e;t?((0,m.flushSync)((function(){Ce(n)})),it()):Ie(n)}var ut=function(e){var t=e,n=B?B-We.width:0;return t=Math.max(t,0),t=Math.min(t,n)},lt=(0,d.zX)((function(e,t){t?((0,m.flushSync)((function(){Ce((function(t){return ut(t+(fe?-e:e))}))})),it()):Ie((function(t){return t+e}))})),ct=x(le,Qe,$e,et,tt,!!B,lt),st=(0,u.Z)(ct,2),ft=st[0],dt=st[1];!function(e,t,n){var r,o=(0,p.useRef)(!1),i=(0,p.useRef)(0),a=(0,p.useRef)(0),u=(0,p.useRef)(null),l=(0,p.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),u=i.current-t,c=a.current-r,s=Math.abs(u)>Math.abs(c);s?i.current=t:a.current=r;var f=n(s,s?u:c,!1,e);f&&e.preventDefault(),clearInterval(l.current),f&&(l.current=setInterval((function(){s?u*=N:c*=N;var e=Math.floor(s?u:c);(!n(s,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},s=function(){o.current=!1,r()},f=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),u.current=e.target,u.current.addEventListener("touchmove",c,{passive:!1}),u.current.addEventListener("touchend",s,{passive:!0}))};r=function(){u.current&&(u.current.removeEventListener("touchmove",c),u.current.removeEventListener("touchend",s))},(0,v.Z)((function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(l.current)}}),[e])}(le,pe,(function(e,t,n,r){var o=r;return!nt(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),ft({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){p.useEffect((function(){var r=t.current;if(e&&r){var o,i,a=!1,u=function(){w.Z.cancel(o)},l=function e(){u(),o=(0,w.Z)((function(){n(i),e()}))},c=function(){a=!1,u()},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},f=function(e){if(a){var t=_(e,!1),n=r.getBoundingClientRect(),o=n.top,c=n.bottom;t<=o?(i=-k(o-t),l()):t>=c?(i=k(t-c),l()):u()}};return r.addEventListener("mousedown",s),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",s),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),u()}}}),[e])}(se,pe,(function(e){Ie((function(t){return t+e}))})),(0,v.Z)((function(){function e(e){var t=Qe&&e.detail<0,n=$e&&e.detail>0;!le||t||n||e.preventDefault()}var t=pe.current;return t.addEventListener("wheel",ft,{passive:!1}),t.addEventListener("DOMMouseScroll",dt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",ft),t.removeEventListener("DOMMouseScroll",dt),t.removeEventListener("MozMousePixelScroll",e)}}),[le,Qe,$e]),(0,v.Z)((function(){if(B){var e=ut(xe);Ce(e),it({x:e})}}),[We.width,B]);var vt=function(){var e,t;null===(e=Ye.current)||void 0===e||e.delayHidden(),null===(t=Xe.current)||void 0===t||t.delayHidden()},pt=function(e,t,n,r,a,l,c,s){var f=p.useRef(),d=p.useState(null),m=(0,u.Z)(d,2),h=m[0],g=m[1];return(0,v.Z)((function(){if(h&&h.times<10){if(!e.current)return void g((function(e){return(0,i.Z)({},e)}));l();var o=h.targetAlign,u=h.originAlign,s=h.index,f=h.offset,d=e.current.clientHeight,v=!1,p=o,m=null;if(d){for(var b=o||u,y=0,w=0,Z=0,E=Math.min(t.length-1,s),x=0;x<=E;x+=1){var C=a(t[x]);w=y;var S=n.get(C);y=Z=w+(void 0===S?r:S)}for(var M="top"===b?f:d-f,R=E;R>=0;R-=1){var N=a(t[R]),k=n.get(N);if(void 0===k){v=!0;break}if((M-=k)<=0)break}switch(b){case"top":m=w-f;break;case"bottom":m=Z-d+f;break;default:var _=e.current.scrollTop;w<_?p="top":Z>_+d&&(p="bottom")}null!==m&&c(m),m!==h.lastTop&&(v=!0)}v&&g((0,i.Z)((0,i.Z)({},h),{},{times:h.times+1,targetAlign:p,lastTop:m}))}}),[h,e.current]),function(e){if(null!=e){if(w.Z.cancel(f.current),"number"==typeof e)c(e);else if(e&&"object"===(0,o.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var i=e.offset;g({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else s()}}(pe,ve,ae,C,te,(function(){return ie(!0)}),Ie,vt);p.useImperativeHandle(t,(function(){return{nativeElement:he.current,getScrollInfo:rt,scrollTo:function(e){var t;(t=e)&&"object"===(0,o.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ce(ut(e.left)),pt(e.top)):pt(e)}}})),(0,v.Z)((function(){if(U){var e=ve.slice(je,Ve+1);U(e,ve)}}),[je,Ve,ve]);var mt=function(e,t,n,r){var o=p.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),i=(0,u.Z)(o,2),a=i[0],l=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,u=a.get(o),c=a.get(i);if(void 0===u||void 0===c)for(var s=e.length,f=l.length;f<s;f+=1){var d,v=e[f],p=t(v);a.set(p,f);var m=null!==(d=n.get(p))&&void 0!==d?d:r;if(l[f]=(l[f-1]||0)+m,p===o&&(u=f),p===i&&(c=f),void 0!==u&&void 0!==c)break}return{top:l[u-1]||0,bottom:l[c]}}}(ve,te,ae,C),ht=null==q?void 0:q({start:je,end:Ve,virtual:se,offsetX:xe,offsetY:He,rtl:fe,getSize:mt}),gt=function(e,t,n,r,o,i,a,u){var l=u.getKey;return e.slice(t,n+1).map((function(e,n){var u=a(e,t+n,{style:{width:r},offsetX:o}),c=l(e);return p.createElement(b,{key:c,setRef:function(t){return i(e,t)}},u)}))}(ve,je,Ve,B,xe,oe,j,Pe),bt=null;Z&&(bt=(0,i.Z)((0,a.Z)({},A?"height":"maxHeight",Z),T),le&&(bt.overflowY="hidden",B&&(bt.overflowX="hidden"),Re&&(bt.pointerEvents="none")));var yt={};return fe&&(yt.dir="rtl"),p.createElement("div",(0,r.Z)({ref:he,style:(0,i.Z)((0,i.Z)({},z),{},{position:"relative"}),className:de},yt,ee),p.createElement(f.Z,{onResize:function(e){Ke({width:e.offsetWidth,height:e.offsetHeight})}},p.createElement(K,{className:"".concat(c,"-holder"),style:bt,ref:pe,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ye&&Ie(t),null==Y||Y(e),it()},onMouseEnter:vt},p.createElement(g,{prefixCls:c,height:Le,offsetX:xe,offsetY:He,scrollWidth:B,onInnerResize:ie,ref:me,innerProps:G,rtl:fe,extra:ht},gt))),se&&Le>Z&&p.createElement(P,{ref:Ye,prefixCls:c,scrollOffset:ye,scrollRange:Le,rtl:fe,onScroll:at,onStartMove:ke,onStopMove:_e,spinSize:Ge,containerSize:We.height,style:null==J?void 0:J.verticalScrollBar,thumbStyle:null==J?void 0:J.verticalScrollBarThumb,showScrollBar:$}),se&&B>We.width&&p.createElement(P,{ref:Xe,prefixCls:c,scrollOffset:xe,scrollRange:B,rtl:fe,onScroll:at,onStartMove:ke,onStopMove:_e,spinSize:Ue,containerSize:We.width,horizontal:!0,style:null==J?void 0:J.horizontalScrollBar,thumbStyle:null==J?void 0:J.horizontalScrollBarThumb,showScrollBar:$}))}var z=p.forwardRef(A);z.displayName="List";var L=z},76374:function(e,t,n){var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function u(){a(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),s=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=b(0,0,0,0);function v(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+v(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=v(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=v(r.width),l=v(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=p(r,"left","right")+i),Math.round(l+a)!==n&&(l-=p(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(u+i)-t,s=Math.round(l+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(s)&&(l-=s)}return b(o.left,o.top,u,l)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return o?h(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):m(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,a,u,l,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(u.prototype),s(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);s(this,{target:e,contentRect:c})},Z=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new Z(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:x;t.Z=C}}]);