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__Graduations__Lists__Sett...

15 lines
126 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5022],{65352:function(Mn,Dt,o){o.d(Dt,{Z:function(){return v}});var ae=o(77321),C=o(52487),w=o(74416),q=o(43403),P=o(92310),te=o.n(P),_=o(29301),de=o(76846),Z=o(96452),n=o(6089),ve=o(80402),i=o(34280),ie=o(49658),u=o(59301),nt=o(72308),Ye=o(77900),lt=o(8654);function Jt(r){var l=r.prefixCls,a=r.align,s=r.arrow,m=r.arrowPos,h=s||{},b=h.className,A=h.content,O=m.x,F=O===void 0?0:O,B=m.y,L=B===void 0?0:B,H=u.useRef();if(!a||!a.points)return null;var p={position:"absolute"};if(a.autoArrow!==!1){var V=a.points[0],be=a.points[1],ge=V[0],ee=V[1],Ce=be[0],pe=be[1];ge===Ce||!["t","b"].includes(ge)?p.top=L:ge==="t"?p.top=0:p.bottom=0,ee===pe||!["l","r"].includes(ee)?p.left=F:ee==="l"?p.left=0:p.right=0}return u.createElement("div",{ref:H,className:te()("".concat(l,"-arrow"),b),style:p},A)}function Zt(r){var l=r.prefixCls,a=r.open,s=r.zIndex,m=r.mask,h=r.motion;return m?u.createElement(Ye.default,(0,nt.Z)({},h,{motionAppear:!0,visible:a,removeOnLeave:!0}),function(b){var A=b.className;return u.createElement("div",{style:{zIndex:s},className:te()("".concat(l,"-mask"),A)})}):null}var ne=u.memo(function(r){var l=r.children;return l},function(r,l){return l.cache}),M=ne,Ct=u.forwardRef(function(r,l){var a=r.popup,s=r.className,m=r.prefixCls,h=r.style,b=r.target,A=r.onVisibleChanged,O=r.open,F=r.keepDom,B=r.fresh,L=r.onClick,H=r.mask,p=r.arrow,V=r.arrowPos,be=r.align,ge=r.motion,ee=r.maskMotion,Ce=r.forceRender,pe=r.getPopupContainer,Fe=r.autoDestroy,Te=r.portal,Q=r.zIndex,Qe=r.onMouseEnter,At=r.onMouseLeave,Ut=r.onPointerEnter,Lt=r.onPointerDownCapture,en=r.ready,Ee=r.offsetX,Ie=r.offsetY,ut=r.offsetR,dt=r.offsetB,wt=r.onAlign,St=r.onPrepare,at=r.stretch,Rt=r.targetWidth,Le=r.targetHeight,cn=typeof a=="function"?a():a,st=O||F,Bt=(pe==null?void 0:pe.length)>0,gt=u.useState(!pe||!Bt),nn=(0,C.Z)(gt,2),Rn=nn[0],dn=nn[1];if((0,i.Z)(function(){!Rn&&Bt&&b&&dn(!0)},[Rn,Bt,b]),!Rn)return null;var It="auto",Vt={left:"-1000vw",top:"-1000vh",right:It,bottom:It};if(en||!O){var Nt,zt=be.points,yt=be.dynamicInset||((Nt=be._experimental)===null||Nt===void 0?void 0:Nt.dynamicInset),Wt=yt&&zt[0][1]==="r",on=yt&&zt[0][0]==="b";Wt?(Vt.right=ut,Vt.left=It):(Vt.left=Ee,Vt.right=It),on?(Vt.bottom=dt,Vt.top=It):(Vt.top=Ie,Vt.bottom=It)}var Ue={};return at&&(at.includes("height")&&Le?Ue.height=Le:at.includes("minHeight")&&Le&&(Ue.minHeight=Le),at.includes("width")&&Rt?Ue.width=Rt:at.includes("minWidth")&&Rt&&(Ue.minWidth=Rt)),O||(Ue.pointerEvents="none"),u.createElement(Te,{open:Ce||st,getContainer:pe&&function(){return pe(b)},autoDestroy:Fe},u.createElement(Zt,{prefixCls:m,open:O,zIndex:Q,mask:H,motion:ee}),u.createElement(_.Z,{onResize:wt,disabled:!O},function(t){return u.createElement(Ye.default,(0,nt.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ce,leavedClassName:"".concat(m,"-hidden")},ge,{onAppearPrepare:St,onEnterPrepare:St,visible:O,onVisibleChanged:function(E){var d;ge==null||(d=ge.onVisibleChanged)===null||d===void 0||d.call(ge,E),A(E)}}),function(e,E){var d=e.className,N=e.style,T=te()(m,d,s);return u.createElement("div",{ref:(0,lt.sQ)(t,l,E),className:T,style:(0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)({"--arrow-x":"".concat(V.x||0,"px"),"--arrow-y":"".concat(V.y||0,"px")},Vt),Ue),N),{},{boxSizing:"border-box",zIndex:Q},h),onMouseEnter:Qe,onMouseLeave:At,onPointerEnter:Ut,onClick:L,onPointerDownCapture:Lt},p&&u.createElement(Jt,{prefixCls:m,arrow:p,arrowPos:V,align:be}),u.createElement(M,{cache:!O&&!B},cn))})}))}),_e=Ct,$=u.forwardRef(function(r,l){var a=r.children,s=r.getTriggerDOMNode,m=(0,lt.Yr)(a),h=u.useCallback(function(A){(0,lt.mH)(l,s?s(A):A)},[s]),b=(0,lt.x1)(h,(0,lt.C4)(a));return m?u.cloneElement(a,{ref:b}):a}),je=$,ze=u.createContext(null),Je=ze;function ot(r){return r?Array.isArray(r)?r:[r]:[]}function Et(r,l,a,s){return u.useMemo(function(){var m=ot(a!=null?a:l),h=ot(s!=null?s:l),b=new Set(m),A=new Set(h);return r&&(b.has("hover")&&(b.delete("hover"),b.add("click")),A.has("hover")&&(A.delete("hover"),A.add("click"))),[b,A]},[r,l,a,s])}var g=o(29194);function c(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;return a?r[0]===l[0]:r[0]===l[0]&&r[1]===l[1]}function S(r,l,a,s){for(var m=a.points,h=Object.keys(r),b=0;b<h.length;b+=1){var A,O=h[b];if(c((A=r[O])===null||A===void 0?void 0:A.points,m,s))return"".concat(l,"-placement-").concat(O)}return""}function R(r,l,a,s){return l||(a?{motionName:"".concat(r,"-").concat(a)}:s?{motionName:s}:null)}function y(r){return r.ownerDocument.defaultView}function J(r){for(var l=[],a=r==null?void 0:r.parentElement,s=["hidden","scroll","clip","auto"];a;){var m=y(a).getComputedStyle(a),h=m.overflowX,b=m.overflowY,A=m.overflow;[h,b,A].some(function(O){return s.includes(O)})&&l.push(a),a=a.parentElement}return l}function f(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(r)?l:r}function j(r){return f(parseFloat(r),0)}function oe(r,l){var a=(0,ae.Z)({},r);return(l||[]).forEach(function(s){if(!(s instanceof HTMLBodyElement||s instanceof HTMLHtmlElement)){var m=y(s).getComputedStyle(s),h=m.overflow,b=m.overflowClipMargin,A=m.borderTopWidth,O=m.borderBottomWidth,F=m.borderLeftWidth,B=m.borderRightWidth,L=s.getBoundingClientRect(),H=s.offsetHeight,p=s.clientHeight,V=s.offsetWidth,be=s.clientWidth,ge=j(A),ee=j(O),Ce=j(F),pe=j(B),Fe=f(Math.round(L.width/V*1e3)/1e3),Te=f(Math.round(L.height/H*1e3)/1e3),Q=(V-be-Ce-pe)*Fe,Qe=(H-p-ge-ee)*Te,At=ge*Te,Ut=ee*Te,Lt=Ce*Fe,en=pe*Fe,Ee=0,Ie=0;if(h==="clip"){var ut=j(b);Ee=ut*Fe,Ie=ut*Te}var dt=L.x+Lt-Ee,wt=L.y+At-Ie,St=dt+L.width+2*Ee-Lt-en-Q,at=wt+L.height+2*Ie-At-Ut-Qe;a.left=Math.max(a.left,dt),a.top=Math.max(a.top,wt),a.right=Math.min(a.right,St),a.bottom=Math.min(a.bottom,at)}}),a}function I(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a="".concat(l),s=a.match(/^(.*)\%$/);return s?r*(parseFloat(s[1])/100):parseFloat(a)}function re(r,l){var a=l||[],s=(0,C.Z)(a,2),m=s[0],h=s[1];return[I(r.width,m),I(r.height,h)]}function me(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[r[0],r[1]]}function Y(r,l){var a=l[0],s=l[1],m,h;return a==="t"?h=r.y:a==="b"?h=r.y+r.height:h=r.y+r.height/2,s==="l"?m=r.x:s==="r"?m=r.x+r.width:m=r.x+r.width/2,{x:m,y:h}}function he(r,l){var a={t:"b",b:"t",l:"r",r:"l"};return r.map(function(s,m){return m===l?a[s]||"c":s}).join("")}function se(r,l,a,s,m,h,b){var A=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:m[s]||{}}),O=(0,C.Z)(A,2),F=O[0],B=O[1],L=u.useRef(0),H=u.useMemo(function(){return l?J(l):[]},[l]),p=u.useRef({}),V=function(){p.current={}};r||V();var be=(0,n.Z)(function(){if(l&&a&&r){let pn=function(Ke,we){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce,Mt=gt.x+Ke,Yt=gt.y+we,Vn=Mt+Wt,Bn=Yt+yt,Hn=Math.max(Mt,De.left),U=Math.max(Yt,De.top),Pe=Math.min(Vn,De.right),kt=Math.min(Bn,De.bottom);return Math.max(0,(Pe-Hn)*(kt-U))},Ze=function(){rn=gt.y+Ve,We=rn+yt,Se=gt.x+Be,$e=Se+Wt};var Ce,pe,Fe,Te,Q=l,Qe=Q.ownerDocument,At=y(Q),Ut=At.getComputedStyle(Q),Lt=Ut.width,en=Ut.height,Ee=Ut.position,Ie=Q.style.left,ut=Q.style.top,dt=Q.style.right,wt=Q.style.bottom,St=Q.style.overflow,at=(0,ae.Z)((0,ae.Z)({},m[s]),h),Rt=Qe.createElement("div");(Ce=Q.parentElement)===null||Ce===void 0||Ce.appendChild(Rt),Rt.style.left="".concat(Q.offsetLeft,"px"),Rt.style.top="".concat(Q.offsetTop,"px"),Rt.style.position=Ee,Rt.style.height="".concat(Q.offsetHeight,"px"),Rt.style.width="".concat(Q.offsetWidth,"px"),Q.style.left="0",Q.style.top="0",Q.style.right="auto",Q.style.bottom="auto",Q.style.overflow="hidden";var Le;if(Array.isArray(a))Le={x:a[0],y:a[1],width:0,height:0};else{var cn,st,Bt=a.getBoundingClientRect();Bt.x=(cn=Bt.x)!==null&&cn!==void 0?cn:Bt.left,Bt.y=(st=Bt.y)!==null&&st!==void 0?st:Bt.top,Le={x:Bt.x,y:Bt.y,width:Bt.width,height:Bt.height}}var gt=Q.getBoundingClientRect();gt.x=(pe=gt.x)!==null&&pe!==void 0?pe:gt.left,gt.y=(Fe=gt.y)!==null&&Fe!==void 0?Fe:gt.top;var nn=Qe.documentElement,Rn=nn.clientWidth,dn=nn.clientHeight,It=nn.scrollWidth,Vt=nn.scrollHeight,Nt=nn.scrollTop,zt=nn.scrollLeft,yt=gt.height,Wt=gt.width,on=Le.height,Ue=Le.width,t={left:0,top:0,right:Rn,bottom:dn},e={left:-zt,top:-Nt,right:It-zt,bottom:Vt-Nt},E=at.htmlRegion,d="visible",N="visibleFirst";E!=="scroll"&&E!==N&&(E=d);var T=E===N,k=oe(e,H),z=oe(t,H),ce=E===d?z:k,ue=T?z:ce;Q.style.left="auto",Q.style.top="auto",Q.style.right="0",Q.style.bottom="0";var G=Q.getBoundingClientRect();Q.style.left=Ie,Q.style.top=ut,Q.style.right=dt,Q.style.bottom=wt,Q.style.overflow=St,(Te=Q.parentElement)===null||Te===void 0||Te.removeChild(Rt);var fe=f(Math.round(Wt/parseFloat(Lt)*1e3)/1e3),Re=f(Math.round(yt/parseFloat(en)*1e3)/1e3);if(fe===0||Re===0||(0,de.Sh)(a)&&!(0,g.Z)(a))return;var X=at.offset,Ae=at.targetOffset,K=re(gt,X),W=(0,C.Z)(K,2),ye=W[0],Me=W[1],xt=re(Le,Ae),qe=(0,C.Z)(xt,2),ct=qe[0],Ne=qe[1];Le.x-=ct,Le.y-=Ne;var jt=at.points||[],Ht=(0,C.Z)(jt,2),Ot=Ht[0],Kt=Ht[1],it=me(Kt),tt=me(Ot),Tt=Y(Le,it),vt=Y(gt,tt),bt=(0,ae.Z)({},at),Be=Tt.x-vt.x+ye,Ve=Tt.y-vt.y+Me,pt=pn(Be,Ve),ft=pn(Be,Ve,z),xe=Y(Le,["t","l"]),ke=Y(gt,["t","l"]),tn=Y(Le,["b","r"]),mn=Y(gt,["b","r"]),ln=at.overflow||{},Gt=ln.adjustX,En=ln.adjustY,Qt=ln.shiftX,bn=ln.shiftY,yn=function(we){return typeof we=="boolean"?we:we>=0},rn,We,Se,$e;Ze();var mt=yn(En),D=tt[0]===it[0];if(mt&&tt[0]==="t"&&(We>ue.bottom||p.current.bt)){var x=Ve;D?x-=yt-on:x=xe.y-mn.y-Me;var le=pn(Be,x),He=pn(Be,x,z);le>pt||le===pt&&(!T||He>=ft)?(p.current.bt=!0,Ve=x,Me=-Me,bt.points=[he(tt,0),he(it,0)]):p.current.bt=!1}if(mt&&tt[0]==="b"&&(rn<ue.top||p.current.tb)){var Oe=Ve;D?Oe+=yt-on:Oe=tn.y-ke.y-Me;var an=pn(Be,Oe),sn=pn(Be,Oe,z);an>pt||an===pt&&(!T||sn>=ft)?(p.current.tb=!0,Ve=Oe,Me=-Me,bt.points=[he(tt,0),he(it,0)]):p.current.tb=!1}var xn=yn(Gt),Dn=tt[1]===it[1];if(xn&&tt[1]==="l"&&($e>ue.right||p.current.rl)){var _t=Be;Dn?_t-=Wt-Ue:_t=xe.x-mn.x-ye;var Nn=pn(_t,Ve),An=pn(_t,Ve,z);Nn>pt||Nn===pt&&(!T||An>=ft)?(p.current.rl=!0,Be=_t,ye=-ye,bt.points=[he(tt,1),he(it,1)]):p.current.rl=!1}if(xn&&tt[1]==="r"&&(Se<ue.left||p.current.lr)){var hn=Be;Dn?hn+=Wt-Ue:hn=tn.x-ke.x-ye;var Sn=pn(hn,Ve),wn=pn(hn,Ve,z);Sn>pt||Sn===pt&&(!T||wn>=ft)?(p.current.lr=!0,Be=hn,ye=-ye,bt.points=[he(tt,1),he(it,1)]):p.current.lr=!1}Ze();var qt=Qt===!0?0:Qt;typeof qt=="number"&&(Se<z.left&&(Be-=Se-z.left-ye,Le.x+Ue<z.left+qt&&(Be+=Le.x-z.left+Ue-qt)),$e>z.right&&(Be-=$e-z.right-ye,Le.x>z.right-qt&&(Be+=Le.x-z.right+qt)));var gn=bn===!0?0:bn;typeof gn=="number"&&(rn<z.top&&(Ve-=rn-z.top-Me,Le.y+on<z.top+gn&&(Ve+=Le.y-z.top+on-gn)),We>z.bottom&&(Ve-=We-z.bottom-Me,Le.y>z.bottom-gn&&(Ve+=Le.y-z.bottom+gn)));var Ln=gt.x+Be,On=Ln+Wt,vn=gt.y+Ve,Pn=vn+yt,kn=Le.x,Tn=kn+Ue,$n=Le.y,Zn=$n+on,tr=Math.max(Ln,kn),Qn=Math.min(On,Tn),Gn=(tr+Qn)/2,nr=Gn-Ln,qn=Math.max(vn,$n),Xn=Math.min(Pn,Zn),Kn=(qn+Xn)/2,Yn=Kn-vn;b==null||b(l,bt);var _n=G.right-gt.x-(Be+gt.width),Xt=G.bottom-gt.y-(Ve+gt.height);fe===1&&(Be=Math.round(Be),_n=Math.round(_n)),Re===1&&(Ve=Math.round(Ve),Xt=Math.round(Xt));var er={ready:!0,offsetX:Be/fe,offsetY:Ve/Re,offsetR:_n/fe,offsetB:Xt/Re,arrowX:nr/fe,arrowY:Yn/Re,scaleX:fe,scaleY:Re,align:bt};B(er)}}),ge=function(){L.current+=1;var pe=L.current;Promise.resolve().then(function(){L.current===pe&&be()})},ee=function(){B(function(pe){return(0,ae.Z)((0,ae.Z)({},pe),{},{ready:!1})})};return(0,i.Z)(ee,[s]),(0,i.Z)(function(){r||ee()},[r]),[F.ready,F.offsetX,F.offsetY,F.offsetR,F.offsetB,F.arrowX,F.arrowY,F.scaleX,F.scaleY,F.align,ge]}var rt=o(80702);function Ge(r,l,a,s,m){(0,i.Z)(function(){if(r&&l&&a){let L=function(){s(),m()};var h=l,b=a,A=J(h),O=J(b),F=y(b),B=new Set([F].concat((0,rt.Z)(A),(0,rt.Z)(O)));return B.forEach(function(H){H.addEventListener("scroll",L,{passive:!0})}),F.addEventListener("resize",L,{passive:!0}),s(),function(){B.forEach(function(H){H.removeEventListener("scroll",L),F.removeEventListener("resize",L)})}}},[r,l,a])}var Xe=o(48736);function et(r,l,a,s,m,h,b,A){var O=u.useRef(r);O.current=r;var F=u.useRef(!1);u.useEffect(function(){if(l&&s&&(!m||h)){var L=function(){F.current=!1},H=function(Fe){var Te;O.current&&!b(((Te=Fe.composedPath)===null||Te===void 0||(Te=Te.call(Fe))===null||Te===void 0?void 0:Te[0])||Fe.target)&&!F.current&&A(!1)},p=y(s);p.addEventListener("pointerdown",L,!0),p.addEventListener("mousedown",H,!0),p.addEventListener("contextmenu",H,!0);var V=(0,Z.A)(a);if(V&&(V.addEventListener("mousedown",H,!0),V.addEventListener("contextmenu",H,!0)),0)var be,ge,ee,Ce;return function(){p.removeEventListener("pointerdown",L,!0),p.removeEventListener("mousedown",H,!0),p.removeEventListener("contextmenu",H,!0),V&&(V.removeEventListener("mousedown",H,!0),V.removeEventListener("contextmenu",H,!0))}}},[l,a,s,m,h]);function B(){F.current=!0}return B}var $t=["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"];function Pt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q.Z,l=u.forwardRef(function(a,s){var m=a.prefixCls,h=m===void 0?"rc-trigger-popup":m,b=a.children,A=a.action,O=A===void 0?"hover":A,F=a.showAction,B=a.hideAction,L=a.popupVisible,H=a.defaultPopupVisible,p=a.onPopupVisibleChange,V=a.afterPopupVisibleChange,be=a.mouseEnterDelay,ge=a.mouseLeaveDelay,ee=ge===void 0?.1:ge,Ce=a.focusDelay,pe=a.blurDelay,Fe=a.mask,Te=a.maskClosable,Q=Te===void 0?!0:Te,Qe=a.getPopupContainer,At=a.forceRender,Ut=a.autoDestroy,Lt=a.destroyPopupOnHide,en=a.popup,Ee=a.popupClassName,Ie=a.popupStyle,ut=a.popupPlacement,dt=a.builtinPlacements,wt=dt===void 0?{}:dt,St=a.popupAlign,at=a.zIndex,Rt=a.stretch,Le=a.getPopupClassNameFromAlign,cn=a.fresh,st=a.alignPoint,Bt=a.onPopupClick,gt=a.onPopupAlign,nn=a.arrow,Rn=a.popupMotion,dn=a.maskMotion,It=a.popupTransitionName,Vt=a.popupAnimation,Nt=a.maskTransitionName,zt=a.maskAnimation,yt=a.className,Wt=a.getTriggerDOMNode,on=(0,w.Z)(a,$t),Ue=Ut||Lt||!1,t=u.useState(!1),e=(0,C.Z)(t,2),E=e[0],d=e[1];(0,i.Z)(function(){d((0,ie.Z)())},[]);var N=u.useRef({}),T=u.useContext(Je),k=u.useMemo(function(){return{registerSubPopup:function(Pe,kt){N.current[Pe]=kt,T==null||T.registerSubPopup(Pe,kt)}}},[T]),z=(0,ve.Z)(),ce=u.useState(null),ue=(0,C.Z)(ce,2),G=ue[0],fe=ue[1],Re=u.useRef(null),X=(0,n.Z)(function(U){Re.current=U,(0,de.Sh)(U)&&G!==U&&fe(U),T==null||T.registerSubPopup(z,U)}),Ae=u.useState(null),K=(0,C.Z)(Ae,2),W=K[0],ye=K[1],Me=u.useRef(null),xt=(0,n.Z)(function(U){(0,de.Sh)(U)&&W!==U&&(ye(U),Me.current=U)}),qe=u.Children.only(b),ct=(qe==null?void 0:qe.props)||{},Ne={},jt=(0,n.Z)(function(U){var Pe,kt,fn=W;return(fn==null?void 0:fn.contains(U))||((Pe=(0,Z.A)(fn))===null||Pe===void 0?void 0:Pe.host)===U||U===fn||(G==null?void 0:G.contains(U))||((kt=(0,Z.A)(G))===null||kt===void 0?void 0:kt.host)===U||U===G||Object.values(N.current).some(function(un){return(un==null?void 0:un.contains(U))||U===un})}),Ht=R(h,Rn,Vt,It),Ot=R(h,dn,zt,Nt),Kt=u.useState(H||!1),it=(0,C.Z)(Kt,2),tt=it[0],Tt=it[1],vt=L!=null?L:tt,bt=(0,n.Z)(function(U){L===void 0&&Tt(U)});(0,i.Z)(function(){Tt(L||!1)},[L]);var Be=u.useRef(vt);Be.current=vt;var Ve=u.useRef([]);Ve.current=[];var pt=(0,n.Z)(function(U){var Pe;bt(U),((Pe=Ve.current[Ve.current.length-1])!==null&&Pe!==void 0?Pe:vt)!==U&&(Ve.current.push(U),p==null||p(U))}),ft=u.useRef(),xe=function(){clearTimeout(ft.current)},ke=function(Pe){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;xe(),kt===0?pt(Pe):ft.current=setTimeout(function(){pt(Pe)},kt*1e3)};u.useEffect(function(){return xe},[]);var tn=u.useState(!1),mn=(0,C.Z)(tn,2),ln=mn[0],Gt=mn[1];(0,i.Z)(function(U){(!U||vt)&&Gt(!0)},[vt]);var En=u.useState(null),Qt=(0,C.Z)(En,2),bn=Qt[0],yn=Qt[1],rn=u.useState(null),We=(0,C.Z)(rn,2),Se=We[0],$e=We[1],mt=function(Pe){$e([Pe.clientX,Pe.clientY])},D=se(vt,G,st&&Se!==null?Se:W,ut,wt,St,gt),x=(0,C.Z)(D,11),le=x[0],He=x[1],Oe=x[2],an=x[3],sn=x[4],xn=x[5],Dn=x[6],_t=x[7],Nn=x[8],An=x[9],hn=x[10],Sn=Et(E,O,F,B),wn=(0,C.Z)(Sn,2),qt=wn[0],gn=wn[1],Ln=qt.has("click"),On=gn.has("click")||gn.has("contextMenu"),vn=(0,n.Z)(function(){ln||hn()}),Pn=function(){Be.current&&st&&On&&ke(!1)};Ge(vt,W,G,vn,Pn),(0,i.Z)(function(){vn()},[Se,ut]),(0,i.Z)(function(){vt&&!(wt!=null&&wt[ut])&&vn()},[JSON.stringify(St)]);var kn=u.useMemo(function(){var U=S(wt,h,An,st);return te()(U,Le==null?void 0:Le(An))},[An,Le,wt,h,st]);u.useImperativeHandle(s,function(){return{nativeElement:Me.current,popupElement:Re.current,forceAlign:vn}});var Tn=u.useState(0),$n=(0,C.Z)(Tn,2),Zn=$n[0],tr=$n[1],Qn=u.useState(0),Gn=(0,C.Z)(Qn,2),nr=Gn[0],qn=Gn[1],Xn=function(){if(Rt&&W){var Pe=W.getBoundingClientRect();tr(Pe.width),qn(Pe.height)}},Kn=function(){Xn(),vn()},Yn=function(Pe){Gt(!1),hn(),V==null||V(Pe)},_n=function(){return new Promise(function(Pe){Xn(),yn(function(){return Pe})})};(0,i.Z)(function(){bn&&(hn(),bn(),yn(null))},[bn]);function Xt(U,Pe,kt,fn){Ne[U]=function(un){var jn;fn==null||fn(un),ke(Pe,kt);for(var Wn=arguments.length,or=new Array(Wn>1?Wn-1:0),ir=1;ir<Wn;ir++)or[ir-1]=arguments[ir];(jn=ct[U])===null||jn===void 0||jn.call.apply(jn,[ct,un].concat(or))}}(Ln||On)&&(Ne.onClick=function(U){var Pe;Be.current&&On?ke(!1):!Be.current&&Ln&&(mt(U),ke(!0));for(var kt=arguments.length,fn=new Array(kt>1?kt-1:0),un=1;un<kt;un++)fn[un-1]=arguments[un];(Pe=ct.onClick)===null||Pe===void 0||Pe.call.apply(Pe,[ct,U].concat(fn))});var er=et(vt,On,W,G,Fe,Q,jt,ke),pn=qt.has("hover"),Ze=gn.has("hover"),Ke,we;pn&&(Xt("onMouseEnter",!0,be,function(U){mt(U)}),Xt("onPointerEnter",!0,be,function(U){mt(U)}),Ke=function(Pe){(vt||ln)&&G!==null&&G!==void 0&&G.contains(Pe.target)&&ke(!0,be)},st&&(Ne.onMouseMove=function(U){var Pe;(Pe=ct.onMouseMove)===null||Pe===void 0||Pe.call(ct,U)})),Ze&&(Xt("onMouseLeave",!1,ee),Xt("onPointerLeave",!1,ee),we=function(){ke(!1,ee)}),qt.has("focus")&&Xt("onFocus",!0,Ce),gn.has("focus")&&Xt("onBlur",!1,pe),qt.has("contextMenu")&&(Ne.onContextMenu=function(U){var Pe;Be.current&&gn.has("contextMenu")?ke(!1):(mt(U),ke(!0)),U.preventDefault();for(var kt=arguments.length,fn=new Array(kt>1?kt-1:0),un=1;un<kt;un++)fn[un-1]=arguments[un];(Pe=ct.onContextMenu)===null||Pe===void 0||Pe.call.apply(Pe,[ct,U].concat(fn))}),yt&&(Ne.className=te()(ct.className,yt));var De=(0,ae.Z)((0,ae.Z)({},ct),Ne),Mt={},Yt=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yt.forEach(function(U){on[U]&&(Mt[U]=function(){for(var Pe,kt=arguments.length,fn=new Array(kt),un=0;un<kt;un++)fn[un]=arguments[un];(Pe=De[U])===null||Pe===void 0||Pe.call.apply(Pe,[De].concat(fn)),on[U].apply(on,fn)})});var Vn=u.cloneElement(qe,(0,ae.Z)((0,ae.Z)({},De),Mt)),Bn={x:xn,y:Dn},Hn=nn?(0,ae.Z)({},nn!==!0?nn:{}):null;return u.createElement(u.Fragment,null,u.createElement(_.Z,{disabled:!vt,ref:xt,onResize:Kn},u.createElement(je,{getTriggerDOMNode:Wt},Vn)),u.createElement(Je.Provider,{value:k},u.createElement(_e,{portal:r,ref:X,prefixCls:h,popup:en,className:te()(Ee,kn),style:Ie,target:W,onMouseEnter:Ke,onMouseLeave:we,onPointerEnter:Ke,zIndex:at,open:vt,keepDom:ln,fresh:cn,onClick:Bt,onPointerDownCapture:er,mask:Fe,motion:Ht,maskMotion:Ot,onVisibleChanged:Yn,onPrepare:_n,forceRender:At,autoDestroy:Ue,getPopupContainer:Qe,align:An,arrow:Hn,arrowPos:Bn,ready:le,offsetX:He,offsetY:Oe,offsetR:an,offsetB:sn,onAlign:vn,stretch:Rt,targetWidth:Zn/_t,targetHeight:nr/Nn})))});return l}var v=Pt(q.Z)},68127:function(Mn,Dt,o){o.r(Dt),o.d(Dt,{default:function(){return lt}});var ae=o(59301),C={flex_box_center:"flex_box_center___cEivK",flex_space_between:"flex_space_between___IFGZ3",flex_box_vertical_center:"flex_box_vertical_center___A29Xo",flex_box_center_end:"flex_box_center_end___gcDCE",flex_box_column:"flex_box_column___N3CZq",wrap:"wrap___D5wZy",title:"title___ip7DS",gray:"gray___X6m0z",btn:"btn___l4Im_",formWrap:"formWrap___TpXQq",radio:"radio___zMm2t"},w=o(28284),q=o(458),P=o(6767),te=o(37568),_=o(82326),de=o(47889),Z=o(77019),n=o(71411),ve=o(99571),i=o(24092),ie=o(71570),u=o(59301),nt=(Jt,Zt,ne)=>new Promise((M,Ct)=>{var _e=ze=>{try{je(ne.next(ze))}catch(Je){Ct(Je)}},$=ze=>{try{je(ne.throw(ze))}catch(Je){Ct(Je)}},je=ze=>ze.done?M(ze.value):Promise.resolve(ze.value).then(_e,$);je((ne=ne.apply(Jt,Zt)).next())});const Ye=({graduations:Jt,dispatch:Zt})=>{const ne=(0,ie.useParams)(),[M,Ct]=(0,ae.useState)([]),[_e,$]=(0,ae.useState)([]),[je,ze]=(0,ae.useState)([]),[Je,ot]=(0,ae.useState)(!0),[Et,g]=(0,ae.useState)(!1),[c]=w.default.useForm(),[S,R]=(0,ae.useState)(!1),y=(0,ae.useRef)(null),J=(0,ae.useRef)(1);(0,ae.useEffect)(()=>{f()},[]);const f=()=>nt(void 0,null,function*(){ot(!0);const I=yield(0,i.ZP)(`/api/graduations/${ne==null?void 0:ne.id}.json`,{method:"get"});if(I.status===0){ze((I==null?void 0:I.graduation_years)||[]);const{school_id:re,department_id:me="",name:Y,year:he,code_effect_range:se,join_audit:rt,school_name:Ge}=(I==null?void 0:I.graduation)||{};yield oe(re),c.setFieldsValue({year:he,school_id:re,department_id:me,name:Y,code_effect_range:se,join_audit:rt}),Ct([{id:re,name:Ge}])}ot(!1)}),j=(I,re=500)=>{R(!0),clearTimeout(y.current),y.current=setTimeout(()=>nt(void 0,null,function*(){J.current+=1;const me=J.current,Y=yield(0,i.ZP)("/api/schools/search.json",{method:"get",params:{keyword:I,display_aliases:!0}});Y.status===0&&J.current===me&&(Ct((Y==null?void 0:Y.schools)||[]),R(!1))}),re)},oe=I=>nt(void 0,null,function*(){if(!I)return;const re=yield(0,i.ZP)(`/api/schools/${I}/departments/for_option.json`,{method:"get",params:{page:1,limit:9999}});re.status===0&&$((re==null?void 0:re.departments)||[])});return u.createElement("div",{className:C.wrap},u.createElement("div",{className:C.title},"\u57FA\u7840\u8BBE\u7F6E"),u.createElement(q.Z,{loading:Je,active:!0},u.createElement(w.default,{colon:!1,form:c,size:"large",className:C.formWrap,onValuesChange:I=>{I.school_id&&(oe(I.school_id),c.setFieldValue("department_id",""))},onFinish:I=>nt(void 0,null,function*(){g(!0),(yield(0,i.ZP)(`/api/graduations/${ne==null?void 0:ne.id}.json`,{method:"put",body:I})).status===0&&(P.ZP.success("\u4FDD\u5B58\u6210\u529F\uFF01\u60A8\u8BBE\u7F6E\u7684\u5185\u5BB9\u5DF2\u6210\u529F\u4FDD\u5B58\u3002"),Zt({type:"graduations/getGraduationsDetails",payload:{id:ne==null?void 0:ne.id}})),g(!1)})},u.createElement(w.default.Item,{name:"name",label:"\u6BD5\u4E1A\u8BBE\u8BA1\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u4E1A\u8BBE\u8BA1\u540D\u79F0"},{max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u4E1A\u8BBE\u8BA1\u540D\u79F0"}]},u.createElement(te.default,{showCount:!0,maxLength:60,size:"large"})),u.createElement(w.default.Item,{name:"year",label:"\u9009\u62E9\u5C4A\u522B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},u.createElement(_.default,{size:"large"},je.map(I=>u.createElement(_.default.Option,{key:I},I)))),u.createElement(w.default.Item,{name:"school_id",label:"\u5B66\u6821",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},u.createElement(_.default,{showSearch:!0,filterOption:!1,onSearch:I=>{j(I)},loading:S,size:"large",style:{width:344}},M.map(I=>u.createElement(_.default.Option,{value:I.id,key:I.id},I.name)))),u.createElement(w.default.Item,{name:"department_id",label:"\u5B66\u9662",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u9662"}]},u.createElement(_.default,{showSearch:!0,optionFilterProp:"children"},_e.map(I=>u.createElement(_.default.Option,{value:I.id,key:I.id},I.name)))),u.createElement(w.default.Item,{name:"code_effect_range",label:"\u9080\u8BF7\u7801\u8BBE\u7F6E",className:C.radio,rules:[{required:!0}]},u.createElement(de.ZP.Group,null,u.createElement(de.ZP,{className:"mr30",value:0},u.createElement("div",{className:"c-black font14"},"\u5BF9\u6240\u6709\u89D2\u8272\u542F\u7528"),u.createElement("div",{className:C.gray},"\u9009\u4E2D\u540E\u6240\u6709\u7528\u6237\u53EF\u4EE5\u901A\u8FC7"),u.createElement("div",{className:C.gray},"\u9080\u8BF7\u7801\u52A0\u5165\u6BD5\u8BBE")),u.createElement(de.ZP,{className:"mr30",value:2},u.createElement("div",{className:"c-black font14"},"\u5BF9\u5B66\u751F\u505C\u7528"),u.createElement("div",{className:C.gray},"\u9009\u4E2D\u540E\u7528\u6237\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0"),u.createElement("div",{className:C.gray},"\u5165\u6BD5\u8BBE\u65F6\uFF0C\u9080\u8BF7\u7801\u65E0\u6548")),u.createElement(de.ZP,{className:"mr30",value:1},u.createElement("div",{className:"c-black font14"},"\u5BF9\u7BA1\u7406\u5458\u505C\u7528"),u.createElement("div",{className:C.gray},"\u9009\u4E2D\u540E\u7528\u6237\u4EE5\u7BA1\u7406\u5458\u8EAB\u4EFD"),u.createElement("div",{className:C.gray},"\u52A0\u5165\u6BD5\u8BBE\u65F6\uFF0C\u9080\u8BF7\u7801\u65E0\u6548")),u.createElement(de.ZP,{value:3},u.createElement("div",{className:"c-black font14"},"\u5BF9\u6240\u6709\u89D2\u8272\u505C\u7528"),u.createElement("div",{className:C.gray},"\u9009\u4E2D\u540E\u672C\u9080\u8BF7\u7801\u5931\u6548\uFF0C\u7528"),u.createElement("div",{className:C.gray},"\u6237\u4E0D\u80FD\u4E3B\u52A8\u52A0\u5165\u6BD5\u8BBE")))),u.createElement(Z.Z,{align:"middle",style:{marginLeft:110,marginTop:30}},u.createElement(w.default.Item,{name:"join_audit",valuePropName:"checked",noStyle:!0},u.createElement(n.Z,null)),u.createElement("span",{className:"c-black font14 ml10"},"\u4F7F\u7528\u9080\u8BF7\u7801\u52A0\u5165\u7684\u5B66\u751F\u9700\u8981\u5BA1\u6838"))),u.createElement(ve.ZP,{type:"primary",onClick:()=>c.submit(),loading:Et,className:C.btn},"\u4FDD\u5B58\u8BBE\u7F6E")))};var lt=(0,ie.connect)(({graduations:Jt})=>({graduations:Jt}))(Ye)},16632:function(Mn,Dt,o){var ae=o(72308),C=o(77321),w=o(49618),q=o(52487),P=o(74416),te=o(92310),_=o.n(te),de=o(18929),Z=o(59301),n=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],ve=(0,Z.forwardRef)(function(i,ie){var u=i.prefixCls,nt=u===void 0?"rc-checkbox":u,Ye=i.className,lt=i.style,Jt=i.checked,Zt=i.disabled,ne=i.defaultChecked,M=ne===void 0?!1:ne,Ct=i.type,_e=Ct===void 0?"checkbox":Ct,$=i.title,je=i.onChange,ze=(0,P.Z)(i,n),Je=(0,Z.useRef)(null),ot=(0,Z.useRef)(null),Et=(0,de.Z)(M,{value:Jt}),g=(0,q.Z)(Et,2),c=g[0],S=g[1];(0,Z.useImperativeHandle)(ie,function(){return{focus:function(f){var j;(j=Je.current)===null||j===void 0||j.focus(f)},blur:function(){var f;(f=Je.current)===null||f===void 0||f.blur()},input:Je.current,nativeElement:ot.current}});var R=_()(nt,Ye,(0,w.Z)((0,w.Z)({},"".concat(nt,"-checked"),c),"".concat(nt,"-disabled"),Zt)),y=function(f){Zt||("checked"in i||S(f.target.checked),je==null||je({target:(0,C.Z)((0,C.Z)({},i),{},{type:_e,checked:f.target.checked}),stopPropagation:function(){f.stopPropagation()},preventDefault:function(){f.preventDefault()},nativeEvent:f.nativeEvent}))};return Z.createElement("span",{className:R,title:$,style:lt,ref:ot},Z.createElement("input",(0,ae.Z)({},ze,{className:"".concat(nt,"-input"),ref:Je,onChange:y,disabled:Zt,checked:!!c,type:_e})),Z.createElement("span",{className:"".concat(nt,"-inner")}))});Dt.Z=ve},66003:function(Mn,Dt,o){o.d(Dt,{Z:function(){return _}});var ae=o(74416),C=o(77321),w=o(62853),q=o(59301),P=["show"];function te(de,Z){if(!Z.max)return!0;var n=Z.strategy(de);return n<=Z.max}function _(de,Z){return q.useMemo(function(){var n={};Z&&(n.show=(0,w.Z)(Z)==="object"&&Z.formatter?Z.formatter:!!Z),n=(0,C.Z)((0,C.Z)({},n),de);var ve=n,i=ve.show,ie=(0,ae.Z)(ve,P);return(0,C.Z)((0,C.Z)({},ie),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:ie.strategy||function(u){return u.length}})},[de,Z])}},36901:function(Mn,Dt,o){o.r(Dt),o.d(Dt,{BaseInput:function(){return n},default:function(){return ne}});var ae=o(77321),C=o(72308),w=o(49618),q=o(62853),P=o(92310),te=o.n(P),_=o(59301),de=o(30292),Z=_.forwardRef(function(M,Ct){var _e,$,je,ze=M.inputElement,Je=M.children,ot=M.prefixCls,Et=M.prefix,g=M.suffix,c=M.addonBefore,S=M.addonAfter,R=M.className,y=M.style,J=M.disabled,f=M.readOnly,j=M.focused,oe=M.triggerFocus,I=M.allowClear,re=M.value,me=M.handleReset,Y=M.hidden,he=M.classes,se=M.classNames,rt=M.dataAttrs,Ge=M.styles,Xe=M.components,et=M.onClear,$t=Je!=null?Je:ze,Pt=(Xe==null?void 0:Xe.affixWrapper)||"span",v=(Xe==null?void 0:Xe.groupWrapper)||"span",r=(Xe==null?void 0:Xe.wrapper)||"span",l=(Xe==null?void 0:Xe.groupAddon)||"span",a=(0,_.useRef)(null),s=function(Fe){var Te;(Te=a.current)!==null&&Te!==void 0&&Te.contains(Fe.target)&&(oe==null||oe())},m=(0,de.X3)(M),h=(0,_.cloneElement)($t,{value:re,className:te()((_e=$t.props)===null||_e===void 0?void 0:_e.className,!m&&(se==null?void 0:se.variant))||null}),b=(0,_.useRef)(null);if(_.useImperativeHandle(Ct,function(){return{nativeElement:b.current||a.current}}),m){var A=null;if(I){var O=!J&&!f&&re,F="".concat(ot,"-clear-icon"),B=(0,q.Z)(I)==="object"&&I!==null&&I!==void 0&&I.clearIcon?I.clearIcon:"\u2716";A=_.createElement("button",{type:"button",tabIndex:-1,onClick:function(Fe){me==null||me(Fe),et==null||et()},onMouseDown:function(Fe){return Fe.preventDefault()},className:te()(F,(0,w.Z)((0,w.Z)({},"".concat(F,"-hidden"),!O),"".concat(F,"-has-suffix"),!!g))},B)}var L="".concat(ot,"-affix-wrapper"),H=te()(L,(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},"".concat(ot,"-disabled"),J),"".concat(L,"-disabled"),J),"".concat(L,"-focused"),j),"".concat(L,"-readonly"),f),"".concat(L,"-input-with-clear-btn"),g&&I&&re),he==null?void 0:he.affixWrapper,se==null?void 0:se.affixWrapper,se==null?void 0:se.variant),p=(g||I)&&_.createElement("span",{className:te()("".concat(ot,"-suffix"),se==null?void 0:se.suffix),style:Ge==null?void 0:Ge.suffix},A,g);h=_.createElement(Pt,(0,C.Z)({className:H,style:Ge==null?void 0:Ge.affixWrapper,onClick:s},rt==null?void 0:rt.affixWrapper,{ref:a}),Et&&_.createElement("span",{className:te()("".concat(ot,"-prefix"),se==null?void 0:se.prefix),style:Ge==null?void 0:Ge.prefix},Et),h,p)}if((0,de.He)(M)){var V="".concat(ot,"-group"),be="".concat(V,"-addon"),ge="".concat(V,"-wrapper"),ee=te()("".concat(ot,"-wrapper"),V,he==null?void 0:he.wrapper,se==null?void 0:se.wrapper),Ce=te()(ge,(0,w.Z)({},"".concat(ge,"-disabled"),J),he==null?void 0:he.group,se==null?void 0:se.groupWrapper);h=_.createElement(v,{className:Ce,ref:b},_.createElement(r,{className:ee},c&&_.createElement(l,{className:be},c),h,S&&_.createElement(l,{className:be},S)))}return _.cloneElement(h,{className:te()(($=h.props)===null||$===void 0?void 0:$.className,R)||null,style:(0,ae.Z)((0,ae.Z)({},(je=h.props)===null||je===void 0?void 0:je.style),y),hidden:Y})}),n=Z,ve=o(80702),i=o(52487),ie=o(74416),u=o(18929),nt=o(2738),Ye=o(66003),lt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Jt=(0,_.forwardRef)(function(M,Ct){var _e=M.autoComplete,$=M.onChange,je=M.onFocus,ze=M.onBlur,Je=M.onPressEnter,ot=M.onKeyDown,Et=M.onKeyUp,g=M.prefixCls,c=g===void 0?"rc-input":g,S=M.disabled,R=M.htmlSize,y=M.className,J=M.maxLength,f=M.suffix,j=M.showCount,oe=M.count,I=M.type,re=I===void 0?"text":I,me=M.classes,Y=M.classNames,he=M.styles,se=M.onCompositionStart,rt=M.onCompositionEnd,Ge=(0,ie.Z)(M,lt),Xe=(0,_.useState)(!1),et=(0,i.Z)(Xe,2),$t=et[0],Pt=et[1],v=(0,_.useRef)(!1),r=(0,_.useRef)(!1),l=(0,_.useRef)(null),a=(0,_.useRef)(null),s=function(Ie){l.current&&(0,de.nH)(l.current,Ie)},m=(0,u.Z)(M.defaultValue,{value:M.value}),h=(0,i.Z)(m,2),b=h[0],A=h[1],O=b==null?"":String(b),F=(0,_.useState)(null),B=(0,i.Z)(F,2),L=B[0],H=B[1],p=(0,Ye.Z)(oe,j),V=p.max||J,be=p.strategy(O),ge=!!V&&be>V;(0,_.useImperativeHandle)(Ct,function(){var Ee;return{focus:s,blur:function(){var ut;(ut=l.current)===null||ut===void 0||ut.blur()},setSelectionRange:function(ut,dt,wt){var St;(St=l.current)===null||St===void 0||St.setSelectionRange(ut,dt,wt)},select:function(){var ut;(ut=l.current)===null||ut===void 0||ut.select()},input:l.current,nativeElement:((Ee=a.current)===null||Ee===void 0?void 0:Ee.nativeElement)||l.current}}),(0,_.useEffect)(function(){r.current&&(r.current=!1),Pt(function(Ee){return Ee&&S?!1:Ee})},[S]);var ee=function(Ie,ut,dt){var wt=ut;if(!v.current&&p.exceedFormatter&&p.max&&p.strategy(ut)>p.max){if(wt=p.exceedFormatter(ut,{max:p.max}),ut!==wt){var St,at;H([((St=l.current)===null||St===void 0?void 0:St.selectionStart)||0,((at=l.current)===null||at===void 0?void 0:at.selectionEnd)||0])}}else if(dt.source==="compositionEnd")return;A(wt),l.current&&(0,de.rJ)(l.current,Ie,$,wt)};(0,_.useEffect)(function(){if(L){var Ee;(Ee=l.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,(0,ve.Z)(L))}},[L]);var Ce=function(Ie){ee(Ie,Ie.target.value,{source:"change"})},pe=function(Ie){v.current=!1,ee(Ie,Ie.currentTarget.value,{source:"compositionEnd"}),rt==null||rt(Ie)},Fe=function(Ie){Je&&Ie.key==="Enter"&&!r.current&&(r.current=!0,Je(Ie)),ot==null||ot(Ie)},Te=function(Ie){Ie.key==="Enter"&&(r.current=!1),Et==null||Et(Ie)},Q=function(Ie){Pt(!0),je==null||je(Ie)},Qe=function(Ie){r.current&&(r.current=!1),Pt(!1),ze==null||ze(Ie)},At=function(Ie){A(""),s(),l.current&&(0,de.rJ)(l.current,Ie,$)},Ut=ge&&"".concat(c,"-out-of-range"),Lt=function(){var Ie=(0,nt.Z)(M,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return _.createElement("input",(0,C.Z)({autoComplete:_e},Ie,{onChange:Ce,onFocus:Q,onBlur:Qe,onKeyDown:Fe,onKeyUp:Te,className:te()(c,(0,w.Z)({},"".concat(c,"-disabled"),S),Y==null?void 0:Y.input),style:he==null?void 0:he.input,ref:l,size:R,type:re,onCompositionStart:function(dt){v.current=!0,se==null||se(dt)},onCompositionEnd:pe}))},en=function(){var Ie=Number(V)>0;if(f||p.show){var ut=p.showFormatter?p.showFormatter({value:O,count:be,maxLength:V}):"".concat(be).concat(Ie?" / ".concat(V):"");return _.createElement(_.Fragment,null,p.show&&_.createElement("span",{className:te()("".concat(c,"-show-count-suffix"),(0,w.Z)({},"".concat(c,"-show-count-has-suffix"),!!f),Y==null?void 0:Y.count),style:(0,ae.Z)({},he==null?void 0:he.count)},ut),f)}return null};return _.createElement(n,(0,C.Z)({},Ge,{prefixCls:c,className:te()(y,Ut),handleReset:At,value:O,focused:$t,triggerFocus:s,suffix:en(),disabled:S,classes:me,classNames:Y,styles:he}),Lt())}),Zt=Jt,ne=Zt},30292:function(Mn,Dt,o){o.d(Dt,{He:function(){return ae},X3:function(){return C},nH:function(){return P},rJ:function(){return q}});function ae(te){return!!(te.addonBefore||te.addonAfter)}function C(te){return!!(te.prefix||te.suffix||te.allowClear)}function w(te,_,de){var Z=_.cloneNode(!0),n=Object.create(te,{target:{value:Z},currentTarget:{value:Z}});return Z.value=de,typeof _.selectionStart=="number"&&typeof _.selectionEnd=="number"&&(Z.selectionStart=_.selectionStart,Z.selectionEnd=_.selectionEnd),Z.setSelectionRange=function(){_.setSelectionRange.apply(_,arguments)},n}function q(te,_,de,Z){if(de){var n=_;if(_.type==="click"){n=w(_,te,""),de(n);return}if(te.type!=="file"&&Z!==void 0){n=w(_,te,Z),de(n);return}de(n)}}function P(te,_){if(te){te.focus(_);var de=_||{},Z=de.cursor;if(Z){var n=te.value.length;switch(Z){case"start":te.setSelectionRange(0,0);break;case"end":te.setSelectionRange(n,n);break;default:te.setSelectionRange(0,n)}}}}},11780:function(Mn,Dt,o){o.d(Dt,{Z:function(){return J}});var ae=o(72308),C=o(77321),w=o(52487),q=o(74416),P=o(59301),te=o(92310),_=o.n(te),de=o(29301),Z=o(34280),n=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ve=void 0;function i(f,j){var oe=f.prefixCls,I=f.invalidate,re=f.item,me=f.renderItem,Y=f.responsive,he=f.responsiveDisabled,se=f.registerSize,rt=f.itemKey,Ge=f.className,Xe=f.style,et=f.children,$t=f.display,Pt=f.order,v=f.component,r=v===void 0?"div":v,l=(0,q.Z)(f,n),a=Y&&!$t;function s(O){se(rt,O)}P.useEffect(function(){return function(){s(null)}},[]);var m=me&&re!==ve?me(re,{index:Pt}):et,h;I||(h={opacity:a?0:1,height:a?0:ve,overflowY:a?"hidden":ve,order:Y?Pt:ve,pointerEvents:a?"none":ve,position:a?"absolute":ve});var b={};a&&(b["aria-hidden"]=!0);var A=P.createElement(r,(0,ae.Z)({className:_()(!I&&oe,Ge),style:(0,C.Z)((0,C.Z)({},h),Xe)},b,l,{ref:j}),m);return Y&&(A=P.createElement(de.Z,{onResize:function(F){var B=F.offsetWidth;s(B)},disabled:he},A)),A}var ie=P.forwardRef(i);ie.displayName="Item";var u=ie,nt=o(6089),Ye=o(4676),lt=o(16089);function Jt(f){if(typeof MessageChannel=="undefined")(0,lt.Z)(f);else{var j=new MessageChannel;j.port1.onmessage=function(){return f()},j.port2.postMessage(void 0)}}function Zt(){var f=P.useRef(null),j=function(I){f.current||(f.current=[],Jt(function(){(0,Ye.unstable_batchedUpdates)(function(){f.current.forEach(function(re){re()}),f.current=null})})),f.current.push(I)};return j}function ne(f,j){var oe=P.useState(j),I=(0,w.Z)(oe,2),re=I[0],me=I[1],Y=(0,nt.Z)(function(he){f(function(){me(he)})});return[re,Y]}var M=P.createContext(null),Ct=["component"],_e=["className"],$=["className"],je=function(j,oe){var I=P.useContext(M);if(!I){var re=j.component,me=re===void 0?"div":re,Y=(0,q.Z)(j,Ct);return P.createElement(me,(0,ae.Z)({},Y,{ref:oe}))}var he=I.className,se=(0,q.Z)(I,_e),rt=j.className,Ge=(0,q.Z)(j,$);return P.createElement(M.Provider,{value:null},P.createElement(u,(0,ae.Z)({ref:oe,className:_()(he,rt)},se,Ge)))},ze=P.forwardRef(je);ze.displayName="RawItem";var Je=ze,ot=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Et="responsive",g="invalidate";function c(f){return"+ ".concat(f.length," ...")}function S(f,j){var oe=f.prefixCls,I=oe===void 0?"rc-overflow":oe,re=f.data,me=re===void 0?[]:re,Y=f.renderItem,he=f.renderRawItem,se=f.itemKey,rt=f.itemWidth,Ge=rt===void 0?10:rt,Xe=f.ssr,et=f.style,$t=f.className,Pt=f.maxCount,v=f.renderRest,r=f.renderRawRest,l=f.suffix,a=f.component,s=a===void 0?"div":a,m=f.itemComponent,h=f.onVisibleChange,b=(0,q.Z)(f,ot),A=Xe==="full",O=Zt(),F=ne(O,null),B=(0,w.Z)(F,2),L=B[0],H=B[1],p=L||0,V=ne(O,new Map),be=(0,w.Z)(V,2),ge=be[0],ee=be[1],Ce=ne(O,0),pe=(0,w.Z)(Ce,2),Fe=pe[0],Te=pe[1],Q=ne(O,0),Qe=(0,w.Z)(Q,2),At=Qe[0],Ut=Qe[1],Lt=ne(O,0),en=(0,w.Z)(Lt,2),Ee=en[0],Ie=en[1],ut=(0,P.useState)(null),dt=(0,w.Z)(ut,2),wt=dt[0],St=dt[1],at=(0,P.useState)(null),Rt=(0,w.Z)(at,2),Le=Rt[0],cn=Rt[1],st=P.useMemo(function(){return Le===null&&A?Number.MAX_SAFE_INTEGER:Le||0},[Le,L]),Bt=(0,P.useState)(!1),gt=(0,w.Z)(Bt,2),nn=gt[0],Rn=gt[1],dn="".concat(I,"-item"),It=Math.max(Fe,At),Vt=Pt===Et,Nt=me.length&&Vt,zt=Pt===g,yt=Nt||typeof Pt=="number"&&me.length>Pt,Wt=(0,P.useMemo)(function(){var K=me;return Nt?L===null&&A?K=me:K=me.slice(0,Math.min(me.length,p/Ge)):typeof Pt=="number"&&(K=me.slice(0,Pt)),K},[me,Ge,L,Pt,Nt]),on=(0,P.useMemo)(function(){return Nt?me.slice(st+1):me.slice(Wt.length)},[me,Wt,Nt,st]),Ue=(0,P.useCallback)(function(K,W){var ye;return typeof se=="function"?se(K):(ye=se&&(K==null?void 0:K[se]))!==null&&ye!==void 0?ye:W},[se]),t=(0,P.useCallback)(Y||function(K){return K},[Y]);function e(K,W,ye){Le===K&&(W===void 0||W===wt)||(cn(K),ye||(Rn(K<me.length-1),h==null||h(K)),W!==void 0&&St(W))}function E(K,W){H(W.clientWidth)}function d(K,W){ee(function(ye){var Me=new Map(ye);return W===null?Me.delete(K):Me.set(K,W),Me})}function N(K,W){Ut(W),Te(At)}function T(K,W){Ie(W)}function k(K){return ge.get(Ue(Wt[K],K))}(0,Z.Z)(function(){if(p&&typeof It=="number"&&Wt){var K=Ee,W=Wt.length,ye=W-1;if(!W){e(0,null);return}for(var Me=0;Me<W;Me+=1){var xt=k(Me);if(A&&(xt=xt||0),xt===void 0){e(Me-1,void 0,!0);break}if(K+=xt,ye===0&&K<=p||Me===ye-1&&K+k(ye)<=p){e(ye,null);break}else if(K+It>p){e(Me-1,K-xt-Ee+At);break}}l&&k(0)+Ee>p&&St(null)}},[p,ge,At,Ee,Ue,Wt]);var z=nn&&!!on.length,ce={};wt!==null&&Nt&&(ce={position:"absolute",left:wt,top:0});var ue={prefixCls:dn,responsive:Nt,component:m,invalidate:zt},G=he?function(K,W){var ye=Ue(K,W);return P.createElement(M.Provider,{key:ye,value:(0,C.Z)((0,C.Z)({},ue),{},{order:W,item:K,itemKey:ye,registerSize:d,display:W<=st})},he(K,W))}:function(K,W){var ye=Ue(K,W);return P.createElement(u,(0,ae.Z)({},ue,{order:W,key:ye,item:K,renderItem:t,itemKey:ye,registerSize:d,display:W<=st}))},fe={order:z?st:Number.MAX_SAFE_INTEGER,className:"".concat(dn,"-rest"),registerSize:N,display:z},Re=v||c,X=r?P.createElement(M.Provider,{value:(0,C.Z)((0,C.Z)({},ue),fe)},r(on)):P.createElement(u,(0,ae.Z)({},ue,fe),typeof Re=="function"?Re(on):Re),Ae=P.createElement(s,(0,ae.Z)({className:_()(!zt&&I,$t),style:et,ref:j},b),Wt.map(G),yt?X:null,l&&P.createElement(u,(0,ae.Z)({},ue,{responsive:Vt,responsiveDisabled:!Nt,order:st,className:"".concat(dn,"-suffix"),registerSize:T,display:!0,style:ce}),l));return Vt?P.createElement(de.Z,{onResize:E,disabled:!Nt},Ae):Ae}var R=P.forwardRef(S);R.displayName="Overflow",R.Item=Je,R.RESPONSIVE=Et,R.INVALIDATE=g;var y=R,J=y},29301:function(Mn,Dt,o){o.d(Dt,{Z:function(){return g}});var ae=o(72308),C=o(59301),w=o(11592),q=o(48736),P=o(77321),te=o(62853),_=o(76846),de=o(8654),Z=C.createContext(null);function n(c){var S=c.children,R=c.onBatchResize,y=C.useRef(0),J=C.useRef([]),f=C.useContext(Z),j=C.useCallback(function(oe,I,re){y.current+=1;var me=y.current;J.current.push({size:oe,element:I,data:re}),Promise.resolve().then(function(){me===y.current&&(R==null||R(J.current),J.current=[])}),f==null||f(oe,I,re)},[R,f]);return C.createElement(Z.Provider,{value:j},S)}var ve=o(76374),i=new Map;function ie(c){c.forEach(function(S){var R,y=S.target;(R=i.get(y))===null||R===void 0||R.forEach(function(J){return J(y)})})}var u=new ve.Z(ie),nt=null,Ye=null;function lt(c,S){i.has(c)||(i.set(c,new Set),u.observe(c)),i.get(c).add(S)}function Jt(c,S){i.has(c)&&(i.get(c).delete(S),i.get(c).size||(u.unobserve(c),i.delete(c)))}var Zt=o(96949),ne=o(55090),M=o(77205),Ct=o(38793),_e=function(c){(0,M.Z)(R,c);var S=(0,Ct.Z)(R);function R(){return(0,Zt.Z)(this,R),S.apply(this,arguments)}return(0,ne.Z)(R,[{key:"render",value:function(){return this.props.children}}]),R}(C.Component);function $(c,S){var R=c.children,y=c.disabled,J=C.useRef(null),f=C.useRef(null),j=C.useContext(Z),oe=typeof R=="function",I=oe?R(J):R,re=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),me=!oe&&C.isValidElement(I)&&(0,de.Yr)(I),Y=me?(0,de.C4)(I):null,he=(0,de.x1)(Y,J),se=function(){var et;return(0,_.ZP)(J.current)||(J.current&&(0,te.Z)(J.current)==="object"?(0,_.ZP)((et=J.current)===null||et===void 0?void 0:et.nativeElement):null)||(0,_.ZP)(f.current)};C.useImperativeHandle(S,function(){return se()});var rt=C.useRef(c);rt.current=c;var Ge=C.useCallback(function(Xe){var et=rt.current,$t=et.onResize,Pt=et.data,v=Xe.getBoundingClientRect(),r=v.width,l=v.height,a=Xe.offsetWidth,s=Xe.offsetHeight,m=Math.floor(r),h=Math.floor(l);if(re.current.width!==m||re.current.height!==h||re.current.offsetWidth!==a||re.current.offsetHeight!==s){var b={width:m,height:h,offsetWidth:a,offsetHeight:s};re.current=b;var A=a===Math.round(r)?r:a,O=s===Math.round(l)?l:s,F=(0,P.Z)((0,P.Z)({},b),{},{offsetWidth:A,offsetHeight:O});j==null||j(F,Xe,Pt),$t&&Promise.resolve().then(function(){$t(F,Xe)})}},[]);return C.useEffect(function(){var Xe=se();return Xe&&!y&&lt(Xe,Ge),function(){return Jt(Xe,Ge)}},[J.current,y]),C.createElement(_e,{ref:f},me?C.cloneElement(I,{ref:he}):I)}var je=C.forwardRef($),ze=je,Je="rc-observer-key";function ot(c,S){var R=c.children,y=typeof R=="function"?[R]:(0,w.Z)(R);return y.map(function(J,f){var j=(J==null?void 0:J.key)||"".concat(Je,"-").concat(f);return C.createElement(ze,(0,ae.Z)({},c,{key:j,ref:f===0?S:void 0}),J)})}var Et=C.forwardRef(ot);Et.Collection=n;var g=Et},69582:function(Mn,Dt,o){o.d(Dt,{ZP:function(){return _}});var ae=o(52487),C=o(59301),w=o(47273),q=0,P=(0,w.Z)();function te(){var de;return P?(de=q,q+=1):de="TEST_OR_SSR",de}function _(de){var Z=C.useState(),n=(0,ae.Z)(Z,2),ve=n[0],i=n[1];return C.useEffect(function(){i("rc_select_".concat(te()))},[]),de||ve}},45560:function(Mn,Dt,o){o.d(Dt,{Ac:function(){return ge},Xo:function(){return Ce},Wx:function(){return Fe},ZP:function(){return Ue},lk:function(){return ne}});var ae=o(72308),C=o(80702),w=o(49618),q=o(77321),P=o(52487),te=o(74416),_=o(62853),de=o(18929),Z=o(48736),n=o(59301),ve=o(92310),i=o.n(ve),ie=o(34280),u=o(49658),nt=o(8654),Ye=function(e){var E=e.className,d=e.customizeIcon,N=e.customizeIconProps,T=e.children,k=e.onMouseDown,z=e.onClick,ce=typeof d=="function"?d(N):d;return n.createElement("span",{className:E,onMouseDown:function(G){G.preventDefault(),k==null||k(G)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:z,"aria-hidden":!0},ce!==void 0?ce:n.createElement("span",{className:i()(E.split(/\s+/).map(function(ue){return"".concat(ue,"-icon")}))},T))},lt=Ye,Jt=function(e,E,d,N,T){var k=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,z=arguments.length>6?arguments[6]:void 0,ce=arguments.length>7?arguments[7]:void 0,ue=n.useMemo(function(){if((0,_.Z)(N)==="object")return N.clearIcon;if(T)return T},[N,T]),G=n.useMemo(function(){return!!(!k&&N&&(d.length||z)&&!(ce==="combobox"&&z===""))},[N,k,d.length,z,ce]);return{allowClear:G,clearIcon:n.createElement(lt,{className:"".concat(e,"-clear"),onMouseDown:E,customizeIcon:ue},"\xD7")}},Zt=n.createContext(null);function ne(){return n.useContext(Zt)}function M(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=n.useState(!1),E=(0,P.Z)(e,2),d=E[0],N=E[1],T=n.useRef(null),k=function(){window.clearTimeout(T.current)};n.useEffect(function(){return k},[]);var z=function(ue,G){k(),T.current=window.setTimeout(function(){N(ue),G&&G()},t)};return[d,z,k]}function Ct(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=n.useRef(null),E=n.useRef(null);n.useEffect(function(){return function(){window.clearTimeout(E.current)}},[]);function d(N){(N||e.current===null)&&(e.current=N),window.clearTimeout(E.current),E.current=window.setTimeout(function(){e.current=null},t)}return[function(){return e.current},d]}function _e(t,e,E,d){var N=n.useRef(null);N.current={open:e,triggerOpen:E,customizedTrigger:d},n.useEffect(function(){function T(k){var z;if(!((z=N.current)!==null&&z!==void 0&&z.customizedTrigger)){var ce=k.target;ce.shadowRoot&&k.composed&&(ce=k.composedPath()[0]||ce),N.current.open&&t().filter(function(ue){return ue}).every(function(ue){return!ue.contains(ce)&&ue!==ce})&&N.current.triggerOpen(!1)}}return window.addEventListener("mousedown",T),function(){return window.removeEventListener("mousedown",T)}},[])}var $=o(10228);function je(t){return t&&![$.Z.ESC,$.Z.SHIFT,$.Z.BACKSPACE,$.Z.TAB,$.Z.WIN_KEY,$.Z.ALT,$.Z.META,$.Z.WIN_KEY_RIGHT,$.Z.CTRL,$.Z.SEMICOLON,$.Z.EQUALS,$.Z.CAPS_LOCK,$.Z.CONTEXT_MENU,$.Z.F1,$.Z.F2,$.Z.F3,$.Z.F4,$.Z.F5,$.Z.F6,$.Z.F7,$.Z.F8,$.Z.F9,$.Z.F10,$.Z.F11,$.Z.F12].includes(t)}var ze=o(26112),Je=o(11780),ot=function(e,E){var d,N=e.prefixCls,T=e.id,k=e.inputElement,z=e.disabled,ce=e.tabIndex,ue=e.autoFocus,G=e.autoComplete,fe=e.editable,Re=e.activeDescendantId,X=e.value,Ae=e.maxLength,K=e.onKeyDown,W=e.onMouseDown,ye=e.onChange,Me=e.onPaste,xt=e.onCompositionStart,qe=e.onCompositionEnd,ct=e.onBlur,Ne=e.open,jt=e.attrs,Ht=k||n.createElement("input",null),Ot=Ht,Kt=Ot.ref,it=Ot.props,tt=it.onKeyDown,Tt=it.onChange,vt=it.onMouseDown,bt=it.onCompositionStart,Be=it.onCompositionEnd,Ve=it.onBlur,pt=it.style;return(0,Z.Kp)(!("maxLength"in Ht.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ht=n.cloneElement(Ht,(0,q.Z)((0,q.Z)((0,q.Z)({type:"search"},it),{},{id:T,ref:(0,nt.sQ)(E,Kt),disabled:z,tabIndex:ce,autoComplete:G||"off",autoFocus:ue,className:i()("".concat(N,"-selection-search-input"),(d=Ht)===null||d===void 0||(d=d.props)===null||d===void 0?void 0:d.className),role:"combobox","aria-expanded":Ne||!1,"aria-haspopup":"listbox","aria-owns":"".concat(T,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(T,"_list"),"aria-activedescendant":Ne?Re:void 0},jt),{},{value:fe?X:"",maxLength:Ae,readOnly:!fe,unselectable:fe?null:"on",style:(0,q.Z)((0,q.Z)({},pt),{},{opacity:fe?null:0}),onKeyDown:function(xe){K(xe),tt&&tt(xe)},onMouseDown:function(xe){W(xe),vt&&vt(xe)},onChange:function(xe){ye(xe),Tt&&Tt(xe)},onCompositionStart:function(xe){xt(xe),bt&&bt(xe)},onCompositionEnd:function(xe){qe(xe),Be&&Be(xe)},onPaste:Me,onBlur:function(xe){ct(xe),Ve&&Ve(xe)}})),Ht},Et=n.forwardRef(ot),g=Et;function c(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}var S=typeof window!="undefined"&&window.document&&window.document.documentElement,R=S;function y(t){return t!=null}function J(t){return!t&&t!==0}function f(t){return["string","number"].includes((0,_.Z)(t))}function j(t){var e=void 0;return t&&(f(t.title)?e=t.title.toString():f(t.label)&&(e=t.label.toString())),e}function oe(t,e){R?n.useLayoutEffect(t,e):n.useEffect(t,e)}function I(t){var e;return(e=t.key)!==null&&e!==void 0?e:t.value}var re=function(e){e.preventDefault(),e.stopPropagation()},me=function(e){var E=e.id,d=e.prefixCls,N=e.values,T=e.open,k=e.searchValue,z=e.autoClearSearchValue,ce=e.inputRef,ue=e.placeholder,G=e.disabled,fe=e.mode,Re=e.showSearch,X=e.autoFocus,Ae=e.autoComplete,K=e.activeDescendantId,W=e.tabIndex,ye=e.removeIcon,Me=e.maxTagCount,xt=e.maxTagTextLength,qe=e.maxTagPlaceholder,ct=qe===void 0?function(mt){return"+ ".concat(mt.length," ...")}:qe,Ne=e.tagRender,jt=e.onToggleOpen,Ht=e.onRemove,Ot=e.onInputChange,Kt=e.onInputPaste,it=e.onInputKeyDown,tt=e.onInputMouseDown,Tt=e.onInputCompositionStart,vt=e.onInputCompositionEnd,bt=e.onInputBlur,Be=n.useRef(null),Ve=(0,n.useState)(0),pt=(0,P.Z)(Ve,2),ft=pt[0],xe=pt[1],ke=(0,n.useState)(!1),tn=(0,P.Z)(ke,2),mn=tn[0],ln=tn[1],Gt="".concat(d,"-selection"),En=T||fe==="multiple"&&z===!1||fe==="tags"?k:"",Qt=fe==="tags"||fe==="multiple"&&z===!1||Re&&(T||mn);oe(function(){xe(Be.current.scrollWidth)},[En]);var bn=function(D,x,le,He,Oe){return n.createElement("span",{title:j(D),className:i()("".concat(Gt,"-item"),(0,w.Z)({},"".concat(Gt,"-item-disabled"),le))},n.createElement("span",{className:"".concat(Gt,"-item-content")},x),He&&n.createElement(lt,{className:"".concat(Gt,"-item-remove"),onMouseDown:re,onClick:Oe,customizeIcon:ye},"\xD7"))},yn=function(D,x,le,He,Oe,an){var sn=function(Dn){re(Dn),jt(!T)};return n.createElement("span",{onMouseDown:sn},Ne({label:x,value:D,disabled:le,closable:He,onClose:Oe,isMaxTag:!!an}))},rn=function(D){var x=D.disabled,le=D.label,He=D.value,Oe=!G&&!x,an=le;if(typeof xt=="number"&&(typeof le=="string"||typeof le=="number")){var sn=String(an);sn.length>xt&&(an="".concat(sn.slice(0,xt),"..."))}var xn=function(_t){_t&&_t.stopPropagation(),Ht(D)};return typeof Ne=="function"?yn(He,an,x,Oe,xn):bn(D,an,x,Oe,xn)},We=function(D){if(!N.length)return null;var x=typeof ct=="function"?ct(D):ct;return typeof Ne=="function"?yn(void 0,x,!1,!1,void 0,!0):bn({title:x},x,!1)},Se=n.createElement("div",{className:"".concat(Gt,"-search"),style:{width:ft},onFocus:function(){ln(!0)},onBlur:function(){ln(!1)}},n.createElement(g,{ref:ce,open:T,prefixCls:d,id:E,inputElement:null,disabled:G,autoFocus:X,autoComplete:Ae,editable:Qt,activeDescendantId:K,value:En,onKeyDown:it,onMouseDown:tt,onChange:Ot,onPaste:Kt,onCompositionStart:Tt,onCompositionEnd:vt,onBlur:bt,tabIndex:W,attrs:(0,ze.Z)(e,!0)}),n.createElement("span",{ref:Be,className:"".concat(Gt,"-search-mirror"),"aria-hidden":!0},En,"\xA0")),$e=n.createElement(Je.Z,{prefixCls:"".concat(Gt,"-overflow"),data:N,renderItem:rn,renderRest:We,suffix:Se,itemKey:I,maxCount:Me});return n.createElement("span",{className:"".concat(Gt,"-wrap")},$e,!N.length&&!En&&n.createElement("span",{className:"".concat(Gt,"-placeholder")},ue))},Y=me,he=function(e){var E=e.inputElement,d=e.prefixCls,N=e.id,T=e.inputRef,k=e.disabled,z=e.autoFocus,ce=e.autoComplete,ue=e.activeDescendantId,G=e.mode,fe=e.open,Re=e.values,X=e.placeholder,Ae=e.tabIndex,K=e.showSearch,W=e.searchValue,ye=e.activeValue,Me=e.maxLength,xt=e.onInputKeyDown,qe=e.onInputMouseDown,ct=e.onInputChange,Ne=e.onInputPaste,jt=e.onInputCompositionStart,Ht=e.onInputCompositionEnd,Ot=e.onInputBlur,Kt=e.title,it=n.useState(!1),tt=(0,P.Z)(it,2),Tt=tt[0],vt=tt[1],bt=G==="combobox",Be=bt||K,Ve=Re[0],pt=W||"";bt&&ye&&!Tt&&(pt=ye),n.useEffect(function(){bt&&vt(!1)},[bt,ye]);var ft=G!=="combobox"&&!fe&&!K?!1:!!pt,xe=Kt===void 0?j(Ve):Kt,ke=n.useMemo(function(){return Ve?null:n.createElement("span",{className:"".concat(d,"-selection-placeholder"),style:ft?{visibility:"hidden"}:void 0},X)},[Ve,ft,X,d]);return n.createElement("span",{className:"".concat(d,"-selection-wrap")},n.createElement("span",{className:"".concat(d,"-selection-search")},n.createElement(g,{ref:T,prefixCls:d,id:N,open:fe,inputElement:E,disabled:k,autoFocus:z,autoComplete:ce,editable:Be,activeDescendantId:ue,value:pt,onKeyDown:xt,onMouseDown:qe,onChange:function(mn){vt(!0),ct(mn)},onPaste:Ne,onCompositionStart:jt,onCompositionEnd:Ht,onBlur:Ot,tabIndex:Ae,attrs:(0,ze.Z)(e,!0),maxLength:bt?Me:void 0})),!bt&&Ve?n.createElement("span",{className:"".concat(d,"-selection-item"),title:xe,style:ft?{visibility:"hidden"}:void 0},Ve.label):null,ke)},se=he,rt=function(e,E){var d=(0,n.useRef)(null),N=(0,n.useRef)(!1),T=e.prefixCls,k=e.open,z=e.mode,ce=e.showSearch,ue=e.tokenWithEnter,G=e.disabled,fe=e.prefix,Re=e.autoClearSearchValue,X=e.onSearch,Ae=e.onSearchSubmit,K=e.onToggleOpen,W=e.onInputKeyDown,ye=e.onInputBlur,Me=e.domRef;n.useImperativeHandle(E,function(){return{focus:function(xe){d.current.focus(xe)},blur:function(){d.current.blur()}}});var xt=Ct(0),qe=(0,P.Z)(xt,2),ct=qe[0],Ne=qe[1],jt=function(xe){var ke=xe.which,tn=d.current instanceof HTMLTextAreaElement;!tn&&k&&(ke===$.Z.UP||ke===$.Z.DOWN)&&xe.preventDefault(),W&&W(xe),ke===$.Z.ENTER&&z==="tags"&&!N.current&&!k&&(Ae==null||Ae(xe.target.value)),!(tn&&!k&&~[$.Z.UP,$.Z.DOWN,$.Z.LEFT,$.Z.RIGHT].indexOf(ke))&&je(ke)&&K(!0)},Ht=function(){Ne(!0)},Ot=(0,n.useRef)(null),Kt=function(xe){X(xe,!0,N.current)!==!1&&K(!0)},it=function(){N.current=!0},tt=function(xe){N.current=!1,z!=="combobox"&&Kt(xe.target.value)},Tt=function(xe){var ke=xe.target.value;if(ue&&Ot.current&&/[\r\n]/.test(Ot.current)){var tn=Ot.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ke=ke.replace(tn,Ot.current)}Ot.current=null,Kt(ke)},vt=function(xe){var ke=xe.clipboardData,tn=ke==null?void 0:ke.getData("text");Ot.current=tn||""},bt=function(xe){var ke=xe.target;if(ke!==d.current){var tn=document.body.style.msTouchAction!==void 0;tn?setTimeout(function(){d.current.focus()}):d.current.focus()}},Be=function(xe){var ke=ct();xe.target!==d.current&&!ke&&!(z==="combobox"&&G)&&xe.preventDefault(),(z!=="combobox"&&(!ce||!ke)||!k)&&(k&&Re!==!1&&X("",!0,!1),K())},Ve={inputRef:d,onInputKeyDown:jt,onInputMouseDown:Ht,onInputChange:Tt,onInputPaste:vt,onInputCompositionStart:it,onInputCompositionEnd:tt,onInputBlur:ye},pt=z==="multiple"||z==="tags"?n.createElement(Y,(0,ae.Z)({},e,Ve)):n.createElement(se,(0,ae.Z)({},e,Ve));return n.createElement("div",{ref:Me,className:"".concat(T,"-selector"),onClick:bt,onMouseDown:Be},fe&&n.createElement("div",{className:"".concat(T,"-prefix")},fe),pt)},Ge=n.forwardRef(rt),Xe=Ge,et=o(65352),$t=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Pt=function(e){var E=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"}}},v=function(e,E){var d=e.prefixCls,N=e.disabled,T=e.visible,k=e.children,z=e.popupElement,ce=e.animation,ue=e.transitionName,G=e.dropdownStyle,fe=e.dropdownClassName,Re=e.direction,X=Re===void 0?"ltr":Re,Ae=e.placement,K=e.builtinPlacements,W=e.dropdownMatchSelectWidth,ye=e.dropdownRender,Me=e.dropdownAlign,xt=e.getPopupContainer,qe=e.empty,ct=e.getTriggerDOMNode,Ne=e.onPopupVisibleChange,jt=e.onPopupMouseEnter,Ht=(0,te.Z)(e,$t),Ot="".concat(d,"-dropdown"),Kt=z;ye&&(Kt=ye(z));var it=n.useMemo(function(){return K||Pt(W)},[K,W]),tt=ce?"".concat(Ot,"-").concat(ce):ue,Tt=typeof W=="number",vt=n.useMemo(function(){return Tt?null:W===!1?"minWidth":"width"},[W,Tt]),bt=G;Tt&&(bt=(0,q.Z)((0,q.Z)({},bt),{},{width:W}));var Be=n.useRef(null);return n.useImperativeHandle(E,function(){return{getPopupElement:function(){var pt;return(pt=Be.current)===null||pt===void 0?void 0:pt.popupElement}}}),n.createElement(et.Z,(0,ae.Z)({},Ht,{showAction:Ne?["click"]:[],hideAction:Ne?["click"]:[],popupPlacement:Ae||(X==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:it,prefixCls:Ot,popupTransitionName:tt,popup:n.createElement("div",{onMouseEnter:jt},Kt),ref:Be,stretch:vt,popupAlign:Me,popupVisible:T,getPopupContainer:xt,popupClassName:i()(fe,(0,w.Z)({},"".concat(Ot,"-empty"),qe)),popupStyle:bt,getTriggerDOMNode:ct,onPopupVisibleChange:Ne}),k)},r=n.forwardRef(v),l=r,a=o(68413);function s(t,e){var E=t.key,d;return"value"in t&&(d=t.value),E!=null?E:d!==void 0?d:"rc-index-key-".concat(e)}function m(t){return typeof t!="undefined"&&!Number.isNaN(t)}function h(t,e){var E=t||{},d=E.label,N=E.value,T=E.options,k=E.groupLabel,z=d||(e?"children":"label");return{label:z,value:N||"value",options:T||"options",groupLabel:k||z}}function b(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=e.fieldNames,d=e.childrenAsData,N=[],T=h(E,!1),k=T.label,z=T.value,ce=T.options,ue=T.groupLabel;function G(fe,Re){Array.isArray(fe)&&fe.forEach(function(X){if(Re||!(ce in X)){var Ae=X[z];N.push({key:s(X,N.length),groupOption:Re,data:X,label:X[k],value:Ae})}else{var K=X[ue];K===void 0&&d&&(K=X.label),N.push({key:s(X,N.length),group:!0,data:X,label:K}),G(X[ce],!0)}})}return G(t,!1),N}function A(t){var e=(0,q.Z)({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,Z.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}var O=function(e,E,d){if(!E||!E.length)return null;var N=!1,T=function z(ce,ue){var G=(0,a.Z)(ue),fe=G[0],Re=G.slice(1);if(!fe)return[ce];var X=ce.split(fe);return N=N||X.length>1,X.reduce(function(Ae,K){return[].concat((0,C.Z)(Ae),(0,C.Z)(z(K,Re)))},[]).filter(Boolean)},k=T(e,E);return N?typeof d!="undefined"?k.slice(0,d):k:null},F=n.createContext(null),B=F;function L(t){var e=t.visible,E=t.values;if(!e)return null;var d=50;return n.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(E.slice(0,d).map(function(N){var T=N.label,k=N.value;return["number","string"].includes((0,_.Z)(T))?T:k}).join(", ")),E.length>d?", ...":null)}var H=["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"],p=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],V=function(e){return e==="tags"||e==="multiple"},be=n.forwardRef(function(t,e){var E,d=t.id,N=t.prefixCls,T=t.className,k=t.showSearch,z=t.tagRender,ce=t.direction,ue=t.omitDomProps,G=t.displayValues,fe=t.onDisplayValuesChange,Re=t.emptyOptions,X=t.notFoundContent,Ae=X===void 0?"Not Found":X,K=t.onClear,W=t.mode,ye=t.disabled,Me=t.loading,xt=t.getInputElement,qe=t.getRawInputElement,ct=t.open,Ne=t.defaultOpen,jt=t.onDropdownVisibleChange,Ht=t.activeValue,Ot=t.onActiveValueChange,Kt=t.activeDescendantId,it=t.searchValue,tt=t.autoClearSearchValue,Tt=t.onSearch,vt=t.onSearchSplit,bt=t.tokenSeparators,Be=t.allowClear,Ve=t.prefix,pt=t.suffixIcon,ft=t.clearIcon,xe=t.OptionList,ke=t.animation,tn=t.transitionName,mn=t.dropdownStyle,ln=t.dropdownClassName,Gt=t.dropdownMatchSelectWidth,En=t.dropdownRender,Qt=t.dropdownAlign,bn=t.placement,yn=t.builtinPlacements,rn=t.getPopupContainer,We=t.showAction,Se=We===void 0?[]:We,$e=t.onFocus,mt=t.onBlur,D=t.onKeyUp,x=t.onKeyDown,le=t.onMouseDown,He=(0,te.Z)(t,H),Oe=V(W),an=(k!==void 0?k:Oe)||W==="combobox",sn=(0,q.Z)({},He);p.forEach(function(Ft){delete sn[Ft]}),ue==null||ue.forEach(function(Ft){delete sn[Ft]});var xn=n.useState(!1),Dn=(0,P.Z)(xn,2),_t=Dn[0],Nn=Dn[1];n.useEffect(function(){Nn((0,u.Z)())},[]);var An=n.useRef(null),hn=n.useRef(null),Sn=n.useRef(null),wn=n.useRef(null),qt=n.useRef(null),gn=n.useRef(!1),Ln=M(),On=(0,P.Z)(Ln,3),vn=On[0],Pn=On[1],kn=On[2];n.useImperativeHandle(e,function(){var Ft,ht;return{focus:(Ft=wn.current)===null||Ft===void 0?void 0:Ft.focus,blur:(ht=wn.current)===null||ht===void 0?void 0:ht.blur,scrollTo:function(Fn){var Cn;return(Cn=qt.current)===null||Cn===void 0?void 0:Cn.scrollTo(Fn)},nativeElement:An.current||hn.current}});var Tn=n.useMemo(function(){var Ft;if(W!=="combobox")return it;var ht=(Ft=G[0])===null||Ft===void 0?void 0:Ft.value;return typeof ht=="string"||typeof ht=="number"?String(ht):""},[it,W,G]),$n=W==="combobox"&&typeof xt=="function"&&xt()||null,Zn=typeof qe=="function"&&qe(),tr=(0,nt.x1)(hn,Zn==null||(E=Zn.props)===null||E===void 0?void 0:E.ref),Qn=n.useState(!1),Gn=(0,P.Z)(Qn,2),nr=Gn[0],qn=Gn[1];(0,ie.Z)(function(){qn(!0)},[]);var Xn=(0,de.Z)(!1,{defaultValue:Ne,value:ct}),Kn=(0,P.Z)(Xn,2),Yn=Kn[0],_n=Kn[1],Xt=nr?Yn:!1,er=!Ae&&Re;(ye||er&&Xt&&W==="combobox")&&(Xt=!1);var pn=er?!1:Xt,Ze=n.useCallback(function(Ft){var ht=Ft!==void 0?Ft:!Xt;ye||(_n(ht),Xt!==ht&&(jt==null||jt(ht)))},[ye,Xt,_n,jt]),Ke=n.useMemo(function(){return(bt||[]).some(function(Ft){return[`
`,`\r
`].includes(Ft)})},[bt]),we=n.useContext(B)||{},De=we.maxCount,Mt=we.rawValues,Yt=function(ht,zn,Fn){if(!(Oe&&m(De)&&(Mt==null?void 0:Mt.size)>=De)){var Cn=!0,In=ht;Ot==null||Ot(null);var Jn=O(ht,bt,m(De)?De-Mt.size:void 0),Un=Fn?null:Jn;return W!=="combobox"&&Un&&(In="",vt==null||vt(Un),Ze(!1),Cn=!1),Tt&&Tn!==In&&Tt(In,{source:zn?"typing":"effect"}),Cn}},Vn=function(ht){!ht||!ht.trim()||Tt(ht,{source:"submit"})};n.useEffect(function(){!Xt&&!Oe&&W!=="combobox"&&Yt("",!1,!1)},[Xt]),n.useEffect(function(){Yn&&ye&&_n(!1),ye&&!gn.current&&Pn(!1)},[ye]);var Bn=Ct(),Hn=(0,P.Z)(Bn,2),U=Hn[0],Pe=Hn[1],kt=n.useRef(!1),fn=function(ht){var zn=U(),Fn=ht.key,Cn=Fn==="Enter";if(Cn&&(W!=="combobox"&&ht.preventDefault(),Xt||Ze(!0)),Pe(!!Tn),Fn==="Backspace"&&!zn&&Oe&&!Tn&&G.length){for(var In=(0,C.Z)(G),Jn=null,Un=In.length-1;Un>=0;Un-=1){var rr=In[Un];if(!rr.disabled){In.splice(Un,1),Jn=rr;break}}Jn&&fe(In,{type:"remove",values:[Jn]})}for(var ur=arguments.length,ar=new Array(ur>1?ur-1:0),sr=1;sr<ur;sr++)ar[sr-1]=arguments[sr];if(Xt&&(!Cn||!kt.current)){var cr;Cn&&(kt.current=!0),(cr=qt.current)===null||cr===void 0||cr.onKeyDown.apply(cr,[ht].concat(ar))}x==null||x.apply(void 0,[ht].concat(ar))},un=function(ht){for(var zn=arguments.length,Fn=new Array(zn>1?zn-1:0),Cn=1;Cn<zn;Cn++)Fn[Cn-1]=arguments[Cn];if(Xt){var In;(In=qt.current)===null||In===void 0||In.onKeyUp.apply(In,[ht].concat(Fn))}ht.key==="Enter"&&(kt.current=!1),D==null||D.apply(void 0,[ht].concat(Fn))},jn=function(ht){var zn=G.filter(function(Fn){return Fn!==ht});fe(zn,{type:"remove",values:[ht]})},Wn=function(){kt.current=!1},or=n.useRef(!1),ir=function(){Pn(!0),ye||($e&&!or.current&&$e.apply(void 0,arguments),Se.includes("focus")&&Ze(!0)),or.current=!0},yr=function(){gn.current=!0,Pn(!1,function(){or.current=!1,gn.current=!1,Ze(!1)}),!ye&&(Tn&&(W==="tags"?Tt(Tn,{source:"submit"}):W==="multiple"&&Tt("",{source:"blur"})),mt&&mt.apply(void 0,arguments))},lr=[];n.useEffect(function(){return function(){lr.forEach(function(Ft){return clearTimeout(Ft)}),lr.splice(0,lr.length)}},[]);var Sr=function(ht){var zn,Fn=ht.target,Cn=(zn=Sn.current)===null||zn===void 0?void 0:zn.getPopupElement();if(Cn&&Cn.contains(Fn)){var In=setTimeout(function(){var ur=lr.indexOf(In);if(ur!==-1&&lr.splice(ur,1),kn(),!_t&&!Cn.contains(document.activeElement)){var ar;(ar=wn.current)===null||ar===void 0||ar.focus()}});lr.push(In)}for(var Jn=arguments.length,Un=new Array(Jn>1?Jn-1:0),rr=1;rr<Jn;rr++)Un[rr-1]=arguments[rr];le==null||le.apply(void 0,[ht].concat(Un))},br=n.useState({}),pr=(0,P.Z)(br,2),Cr=pr[1];function Er(){Cr({})}var dr;Zn&&(dr=function(ht){Ze(ht)}),_e(function(){var Ft;return[An.current,(Ft=Sn.current)===null||Ft===void 0?void 0:Ft.getPopupElement()]},pn,Ze,!!Zn);var wr=n.useMemo(function(){return(0,q.Z)((0,q.Z)({},t),{},{notFoundContent:Ae,open:Xt,triggerOpen:pn,id:d,showSearch:an,multiple:Oe,toggleOpen:Ze})},[t,Ae,pn,Xt,d,an,Oe,Ze]),vr=!!pt||Me,mr;vr&&(mr=n.createElement(lt,{className:i()("".concat(N,"-arrow"),(0,w.Z)({},"".concat(N,"-arrow-loading"),Me)),customizeIcon:pt,customizeIconProps:{loading:Me,searchValue:Tn,open:Xt,focused:vn,showSearch:an}}));var Rr=function(){var ht;K==null||K(),(ht=wn.current)===null||ht===void 0||ht.focus(),fe([],{type:"clear",values:G}),Yt("",!1,!1)},hr=Jt(N,Rr,G,Be,ft,ye,Tn,W),xr=hr.allowClear,Zr=hr.clearIcon,Mr=n.createElement(xe,{ref:qt}),Dr=i()(N,T,(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},"".concat(N,"-focused"),vn),"".concat(N,"-multiple"),Oe),"".concat(N,"-single"),!Oe),"".concat(N,"-allow-clear"),Be),"".concat(N,"-show-arrow"),vr),"".concat(N,"-disabled"),ye),"".concat(N,"-loading"),Me),"".concat(N,"-open"),Xt),"".concat(N,"-customize-input"),$n),"".concat(N,"-show-search"),an)),gr=n.createElement(l,{ref:Sn,disabled:ye,prefixCls:N,visible:pn,popupElement:Mr,animation:ke,transitionName:tn,dropdownStyle:mn,dropdownClassName:ln,direction:ce,dropdownMatchSelectWidth:Gt,dropdownRender:En,dropdownAlign:Qt,placement:bn,builtinPlacements:yn,getPopupContainer:rn,empty:Re,getTriggerDOMNode:function(ht){return hn.current||ht},onPopupVisibleChange:dr,onPopupMouseEnter:Er},Zn?n.cloneElement(Zn,{ref:tr}):n.createElement(Xe,(0,ae.Z)({},t,{domRef:hn,prefixCls:N,inputElement:$n,ref:wn,id:d,prefix:Ve,showSearch:an,autoClearSearchValue:tt,mode:W,activeDescendantId:Kt,tagRender:z,values:G,open:Xt,onToggleOpen:Ze,activeValue:Ht,searchValue:Tn,onSearch:Yt,onSearchSubmit:Vn,onRemove:jn,tokenWithEnter:Ke,onInputBlur:Wn}))),fr;return Zn?fr=gr:fr=n.createElement("div",(0,ae.Z)({className:Dr},sn,{ref:An,onMouseDown:Sr,onKeyDown:fn,onKeyUp:un,onFocus:ir,onBlur:yr}),n.createElement(L,{visible:vn&&!Xt,values:G}),gr,mr,xr&&Zr),n.createElement(Zt.Provider,{value:wr},fr)}),ge=be,ee=function(){return null};ee.isSelectOptGroup=!0;var Ce=ee,pe=function(){return null};pe.isSelectOption=!0;var Fe=pe,Te=o(80547),Q=o(2738),Qe=o(45680);function At(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ut=["disabled","title","children","style","className"];function Lt(t){return typeof t=="string"||typeof t=="number"}var en=function(e,E){var d=ne(),N=d.prefixCls,T=d.id,k=d.open,z=d.multiple,ce=d.mode,ue=d.searchValue,G=d.toggleOpen,fe=d.notFoundContent,Re=d.onPopupScroll,X=n.useContext(B),Ae=X.maxCount,K=X.flattenOptions,W=X.onActiveValue,ye=X.defaultActiveFirstOption,Me=X.onSelect,xt=X.menuItemSelectedIcon,qe=X.rawValues,ct=X.fieldNames,Ne=X.virtual,jt=X.direction,Ht=X.listHeight,Ot=X.listItemHeight,Kt=X.optionRender,it="".concat(N,"-item"),tt=(0,Te.Z)(function(){return K},[k,K],function(We,Se){return Se[0]&&We[1]!==Se[1]}),Tt=n.useRef(null),vt=n.useMemo(function(){return z&&m(Ae)&&(qe==null?void 0:qe.size)>=Ae},[z,Ae,qe==null?void 0:qe.size]),bt=function(Se){Se.preventDefault()},Be=function(Se){var $e;($e=Tt.current)===null||$e===void 0||$e.scrollTo(typeof Se=="number"?{index:Se}:Se)},Ve=n.useCallback(function(We){return ce==="combobox"?!1:qe.has(We)},[ce,(0,C.Z)(qe).toString(),qe.size]),pt=function(Se){for(var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,mt=tt.length,D=0;D<mt;D+=1){var x=(Se+D*$e+mt)%mt,le=tt[x]||{},He=le.group,Oe=le.data;if(!He&&!(Oe!=null&&Oe.disabled)&&(Ve(Oe.value)||!vt))return x}return-1},ft=n.useState(function(){return pt(0)}),xe=(0,P.Z)(ft,2),ke=xe[0],tn=xe[1],mn=function(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;tn(Se);var mt={source:$e?"keyboard":"mouse"},D=tt[Se];if(!D){W(null,-1,mt);return}W(D.value,Se,mt)};(0,n.useEffect)(function(){mn(ye!==!1?pt(0):-1)},[tt.length,ue]);var ln=n.useCallback(function(We){return ce==="combobox"?String(We).toLowerCase()===ue.toLowerCase():qe.has(We)},[ce,ue,(0,C.Z)(qe).toString(),qe.size]);(0,n.useEffect)(function(){var We=setTimeout(function(){if(!z&&k&&qe.size===1){var $e=Array.from(qe)[0],mt=tt.findIndex(function(D){var x=D.data;return x.value===$e});mt!==-1&&(mn(mt),Be(mt))}});if(k){var Se;(Se=Tt.current)===null||Se===void 0||Se.scrollTo(void 0)}return function(){return clearTimeout(We)}},[k,ue]);var Gt=function(Se){Se!==void 0&&Me(Se,{selected:!qe.has(Se)}),z||G(!1)};if(n.useImperativeHandle(E,function(){return{onKeyDown:function(Se){var $e=Se.which,mt=Se.ctrlKey;switch($e){case $.Z.N:case $.Z.P:case $.Z.UP:case $.Z.DOWN:{var D=0;if($e===$.Z.UP?D=-1:$e===$.Z.DOWN?D=1:At()&&mt&&($e===$.Z.N?D=1:$e===$.Z.P&&(D=-1)),D!==0){var x=pt(ke+D,D);Be(x),mn(x,!0)}break}case $.Z.TAB:case $.Z.ENTER:{var le,He=tt[ke];He&&!(He!=null&&(le=He.data)!==null&&le!==void 0&&le.disabled)&&!vt?Gt(He.value):Gt(void 0),k&&Se.preventDefault();break}case $.Z.ESC:G(!1),k&&Se.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Se){Be(Se)}}}),tt.length===0)return n.createElement("div",{role:"listbox",id:"".concat(T,"_list"),className:"".concat(it,"-empty"),onMouseDown:bt},fe);var En=Object.keys(ct).map(function(We){return ct[We]}),Qt=function(Se){return Se.label};function bn(We,Se){var $e=We.group;return{role:$e?"presentation":"option",id:"".concat(T,"_list_").concat(Se)}}var yn=function(Se){var $e=tt[Se];if(!$e)return null;var mt=$e.data||{},D=mt.value,x=$e.group,le=(0,ze.Z)(mt,!0),He=Qt($e);return $e?n.createElement("div",(0,ae.Z)({"aria-label":typeof He=="string"&&!x?He:null},le,{key:Se},bn($e,Se),{"aria-selected":ln(D)}),D):null},rn={role:"listbox",id:"".concat(T,"_list")};return n.createElement(n.Fragment,null,Ne&&n.createElement("div",(0,ae.Z)({},rn,{style:{height:0,width:0,overflow:"hidden"}}),yn(ke-1),yn(ke),yn(ke+1)),n.createElement(Qe.Z,{itemKey:"key",ref:Tt,data:tt,height:Ht,itemHeight:Ot,fullHeight:!1,onMouseDown:bt,onScroll:Re,virtual:Ne,direction:jt,innerProps:Ne?null:rn},function(We,Se){var $e=We.group,mt=We.groupOption,D=We.data,x=We.label,le=We.value,He=D.key;if($e){var Oe,an=(Oe=D.title)!==null&&Oe!==void 0?Oe:Lt(x)?x.toString():void 0;return n.createElement("div",{className:i()(it,"".concat(it,"-group"),D.className),title:an},x!==void 0?x:He)}var sn=D.disabled,xn=D.title,Dn=D.children,_t=D.style,Nn=D.className,An=(0,te.Z)(D,Ut),hn=(0,Q.Z)(An,En),Sn=Ve(le),wn=sn||!Sn&&vt,qt="".concat(it,"-option"),gn=i()(it,qt,Nn,(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},"".concat(qt,"-grouped"),mt),"".concat(qt,"-active"),ke===Se&&!wn),"".concat(qt,"-disabled"),wn),"".concat(qt,"-selected"),Sn)),Ln=Qt(We),On=!xt||typeof xt=="function"||Sn,vn=typeof Ln=="number"?Ln:Ln||le,Pn=Lt(vn)?vn.toString():void 0;return xn!==void 0&&(Pn=xn),n.createElement("div",(0,ae.Z)({},(0,ze.Z)(hn),Ne?{}:bn(We,Se),{"aria-selected":ln(le),className:gn,title:Pn,onMouseMove:function(){ke===Se||wn||mn(Se)},onClick:function(){wn||Gt(le)},style:_t}),n.createElement("div",{className:"".concat(qt,"-content")},typeof Kt=="function"?Kt(We,{index:Se}):vn),n.isValidElement(xt)||Sn,On&&n.createElement(lt,{className:"".concat(it,"-option-state"),customizeIcon:xt,customizeIconProps:{value:le,disabled:wn,isSelected:Sn}},Sn?"\u2713":null))}))},Ee=n.forwardRef(en),Ie=Ee,ut=function(t,e){var E=n.useRef({values:new Map,options:new Map}),d=n.useMemo(function(){var T=E.current,k=T.values,z=T.options,ce=t.map(function(fe){if(fe.label===void 0){var Re;return(0,q.Z)((0,q.Z)({},fe),{},{label:(Re=k.get(fe.value))===null||Re===void 0?void 0:Re.label})}return fe}),ue=new Map,G=new Map;return ce.forEach(function(fe){ue.set(fe.value,fe),G.set(fe.value,e.get(fe.value)||z.get(fe.value))}),E.current.values=ue,E.current.options=G,ce},[t,e]),N=n.useCallback(function(T){return e.get(T)||E.current.options.get(T)},[e]);return[d,N]};function dt(t,e){return c(t).join("").toUpperCase().includes(e)}var wt=function(t,e,E,d,N){return n.useMemo(function(){if(!E||d===!1)return t;var T=e.options,k=e.label,z=e.value,ce=[],ue=typeof d=="function",G=E.toUpperCase(),fe=ue?d:function(X,Ae){return N?dt(Ae[N],G):Ae[T]?dt(Ae[k!=="children"?k:"label"],G):dt(Ae[z],G)},Re=ue?function(X){return A(X)}:function(X){return X};return t.forEach(function(X){if(X[T]){var Ae=fe(E,Re(X));if(Ae)ce.push(X);else{var K=X[T].filter(function(W){return fe(E,Re(W))});K.length&&ce.push((0,q.Z)((0,q.Z)({},X),{},(0,w.Z)({},T,K)))}return}fe(E,Re(X))&&ce.push(X)}),ce},[t,d,N,E,e])},St=o(69582),at=o(11592),Rt=["children","value"],Le=["children"];function cn(t){var e=t,E=e.key,d=e.props,N=d.children,T=d.value,k=(0,te.Z)(d,Rt);return(0,q.Z)({key:E,value:T!==void 0?T:E,children:N},k)}function st(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,at.Z)(t).map(function(E,d){if(!n.isValidElement(E)||!E.type)return null;var N=E,T=N.type.isSelectOptGroup,k=N.key,z=N.props,ce=z.children,ue=(0,te.Z)(z,Le);return e||!T?cn(E):(0,q.Z)((0,q.Z)({key:"__RC_SELECT_GRP__".concat(k===null?d:k,"__"),label:k},ue),{},{options:st(ce)})}).filter(function(E){return E})}var Bt=function(e,E,d,N,T){return n.useMemo(function(){var k=e,z=!e;z&&(k=st(E));var ce=new Map,ue=new Map,G=function(X,Ae,K){K&&typeof K=="string"&&X.set(Ae[K],Ae)},fe=function Re(X){for(var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=0;K<X.length;K+=1){var W=X[K];!W[d.options]||Ae?(ce.set(W[d.value],W),G(ue,W,d.label),G(ue,W,N),G(ue,W,T)):Re(W[d.options],!0)}};return fe(k),{options:k,valueOptions:ce,labelOptions:ue}},[e,E,d,N,T])},gt=Bt;function nn(t){var e=n.useRef();e.current=t;var E=n.useCallback(function(){return e.current.apply(e,arguments)},[]);return E}function Rn(t){var e=t.mode,E=t.options,d=t.children,N=t.backfill,T=t.allowClear,k=t.placeholder,z=t.getInputElement,ce=t.showSearch,ue=t.onSearch,G=t.defaultOpen,fe=t.autoFocus,Re=t.labelInValue,X=t.value,Ae=t.inputValue,K=t.optionLabelProp,W=isMultiple(e),ye=ce!==void 0?ce:W||e==="combobox",Me=E||convertChildrenToData(d);if(warning(e!=="tags"||Me.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var xt=Me.some(function(Ne){return Ne.options?Ne.options.some(function(jt){return typeof("value"in jt?jt.value:jt.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});warning(!xt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!K,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!N,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!z||!T||!k,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ue&&!ye&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!G||fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),X!=null){var qe=toArray(X);warning(!Re||qe.every(function(Ne){return _typeof(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!W||Array.isArray(X),"`value` should be array when `mode` is `multiple` or `tags`")}if(d){var ct=null;toNodeArray(d).some(function(Ne){if(!React.isValidElement(Ne)||!Ne.type)return!1;var jt=Ne,Ht=jt.type;if(Ht.isSelectOption)return!1;if(Ht.isSelectOptGroup){var Ot=toNodeArray(Ne.props.children).every(function(Kt){return!React.isValidElement(Kt)||!Ne.type||Kt.type.isSelectOption?!0:(ct=Kt.type,!1)});return!Ot}return ct=Ht,!0}),ct&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ct.displayName||ct.name||ct,"`.")),warning(Ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function dn(t,e){if(t){var E=function d(N){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=0;k<N.length;k++){var z=N[k];if(z[e==null?void 0:e.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!T&&Array.isArray(z[e==null?void 0:e.options])&&d(z[e==null?void 0:e.options],!0))break}};E(t)}}var It=null,Vt=["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"],Nt=["inputValue"];function zt(t){return!t||(0,_.Z)(t)!=="object"}var yt=n.forwardRef(function(t,e){var E=t.id,d=t.mode,N=t.prefixCls,T=N===void 0?"rc-select":N,k=t.backfill,z=t.fieldNames,ce=t.inputValue,ue=t.searchValue,G=t.onSearch,fe=t.autoClearSearchValue,Re=fe===void 0?!0:fe,X=t.onSelect,Ae=t.onDeselect,K=t.dropdownMatchSelectWidth,W=K===void 0?!0:K,ye=t.filterOption,Me=t.filterSort,xt=t.optionFilterProp,qe=t.optionLabelProp,ct=t.options,Ne=t.optionRender,jt=t.children,Ht=t.defaultActiveFirstOption,Ot=t.menuItemSelectedIcon,Kt=t.virtual,it=t.direction,tt=t.listHeight,Tt=tt===void 0?200:tt,vt=t.listItemHeight,bt=vt===void 0?20:vt,Be=t.labelRender,Ve=t.value,pt=t.defaultValue,ft=t.labelInValue,xe=t.onChange,ke=t.maxCount,tn=(0,te.Z)(t,Vt),mn=(0,St.ZP)(E),ln=V(d),Gt=!!(!ct&&jt),En=n.useMemo(function(){return ye===void 0&&d==="combobox"?!1:ye},[ye,d]),Qt=n.useMemo(function(){return h(z,Gt)},[JSON.stringify(z),Gt]),bn=(0,de.Z)("",{value:ue!==void 0?ue:ce,postState:function(Ke){return Ke||""}}),yn=(0,P.Z)(bn,2),rn=yn[0],We=yn[1],Se=gt(ct,jt,Qt,xt,qe),$e=Se.valueOptions,mt=Se.labelOptions,D=Se.options,x=n.useCallback(function(Ze){var Ke=c(Ze);return Ke.map(function(we){var De,Mt,Yt,Vn,Bn;if(zt(we))De=we;else{var Hn;Yt=we.key,Mt=we.label,De=(Hn=we.value)!==null&&Hn!==void 0?Hn:Yt}var U=$e.get(De);if(U){var Pe;if(Mt===void 0&&(Mt=U==null?void 0:U[qe||Qt.label]),Yt===void 0&&(Yt=(Pe=U==null?void 0:U.key)!==null&&Pe!==void 0?Pe:De),Vn=U==null?void 0:U.disabled,Bn=U==null?void 0:U.title,0)var kt}return{label:Mt,value:De,key:Yt,disabled:Vn,title:Bn}})},[Qt,qe,$e]),le=(0,de.Z)(pt,{value:Ve}),He=(0,P.Z)(le,2),Oe=He[0],an=He[1],sn=n.useMemo(function(){var Ze,Ke=ln&&Oe===null?[]:Oe,we=x(Ke);return d==="combobox"&&J((Ze=we[0])===null||Ze===void 0?void 0:Ze.value)?[]:we},[Oe,x,d,ln]),xn=ut(sn,$e),Dn=(0,P.Z)(xn,2),_t=Dn[0],Nn=Dn[1],An=n.useMemo(function(){if(!d&&_t.length===1){var Ze=_t[0];if(Ze.value===null&&(Ze.label===null||Ze.label===void 0))return[]}return _t.map(function(Ke){var we;return(0,q.Z)((0,q.Z)({},Ke),{},{label:(we=typeof Be=="function"?Be(Ke):Ke.label)!==null&&we!==void 0?we:Ke.value})})},[d,_t,Be]),hn=n.useMemo(function(){return new Set(_t.map(function(Ze){return Ze.value}))},[_t]);n.useEffect(function(){if(d==="combobox"){var Ze,Ke=(Ze=_t[0])===null||Ze===void 0?void 0:Ze.value;We(y(Ke)?String(Ke):"")}},[_t]);var Sn=nn(function(Ze,Ke){var we=Ke!=null?Ke:Ze;return(0,w.Z)((0,w.Z)({},Qt.value,Ze),Qt.label,we)}),wn=n.useMemo(function(){if(d!=="tags")return D;var Ze=(0,C.Z)(D),Ke=function(De){return $e.has(De)};return(0,C.Z)(_t).sort(function(we,De){return we.value<De.value?-1:1}).forEach(function(we){var De=we.value;Ke(De)||Ze.push(Sn(De,we.label))}),Ze},[Sn,D,$e,_t,d]),qt=wt(wn,Qt,rn,En,xt),gn=n.useMemo(function(){return d!=="tags"||!rn||qt.some(function(Ze){return Ze[xt||"value"]===rn})||qt.some(function(Ze){return Ze[Qt.value]===rn})?qt:[Sn(rn)].concat((0,C.Z)(qt))},[Sn,xt,d,qt,rn,Qt]),Ln=function Ze(Ke){var we=(0,C.Z)(Ke).sort(function(De,Mt){return Me(De,Mt,{searchValue:rn})});return we.map(function(De){return Array.isArray(De.options)?(0,q.Z)((0,q.Z)({},De),{},{options:De.options.length>0?Ze(De.options):De.options}):De})},On=n.useMemo(function(){return Me?Ln(gn):gn},[gn,Me,rn]),vn=n.useMemo(function(){return b(On,{fieldNames:Qt,childrenAsData:Gt})},[On,Qt,Gt]),Pn=function(Ke){var we=x(Ke);if(an(we),xe&&(we.length!==_t.length||we.some(function(Yt,Vn){var Bn;return((Bn=_t[Vn])===null||Bn===void 0?void 0:Bn.value)!==(Yt==null?void 0:Yt.value)}))){var De=ft?we:we.map(function(Yt){return Yt.value}),Mt=we.map(function(Yt){return A(Nn(Yt.value))});xe(ln?De:De[0],ln?Mt:Mt[0])}},kn=n.useState(null),Tn=(0,P.Z)(kn,2),$n=Tn[0],Zn=Tn[1],tr=n.useState(0),Qn=(0,P.Z)(tr,2),Gn=Qn[0],nr=Qn[1],qn=Ht!==void 0?Ht:d!=="combobox",Xn=n.useCallback(function(Ze,Ke){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De=we.source,Mt=De===void 0?"keyboard":De;nr(Ke),k&&d==="combobox"&&Ze!==null&&Mt==="keyboard"&&Zn(String(Ze))},[k,d]),Kn=function(Ke,we,De){var Mt=function(){var jn,Wn=Nn(Ke);return[ft?{label:Wn==null?void 0:Wn[Qt.label],value:Ke,key:(jn=Wn==null?void 0:Wn.key)!==null&&jn!==void 0?jn:Ke}:Ke,A(Wn)]};if(we&&X){var Yt=Mt(),Vn=(0,P.Z)(Yt,2),Bn=Vn[0],Hn=Vn[1];X(Bn,Hn)}else if(!we&&Ae&&De!=="clear"){var U=Mt(),Pe=(0,P.Z)(U,2),kt=Pe[0],fn=Pe[1];Ae(kt,fn)}},Yn=nn(function(Ze,Ke){var we,De=ln?Ke.selected:!0;De?we=ln?[].concat((0,C.Z)(_t),[Ze]):[Ze]:we=_t.filter(function(Mt){return Mt.value!==Ze}),Pn(we),Kn(Ze,De),d==="combobox"?Zn(""):(!V||Re)&&(We(""),Zn(""))}),_n=function(Ke,we){Pn(Ke);var De=we.type,Mt=we.values;(De==="remove"||De==="clear")&&Mt.forEach(function(Yt){Kn(Yt.value,!1,De)})},Xt=function(Ke,we){if(We(Ke),Zn(null),we.source==="submit"){var De=(Ke||"").trim();if(De){var Mt=Array.from(new Set([].concat((0,C.Z)(hn),[De])));Pn(Mt),Kn(De,!0),We("")}return}we.source!=="blur"&&(d==="combobox"&&Pn(Ke),G==null||G(Ke))},er=function(Ke){var we=Ke;d!=="tags"&&(we=Ke.map(function(Mt){var Yt=mt.get(Mt);return Yt==null?void 0:Yt.value}).filter(function(Mt){return Mt!==void 0}));var De=Array.from(new Set([].concat((0,C.Z)(hn),(0,C.Z)(we))));Pn(De),De.forEach(function(Mt){Kn(Mt,!0)})},pn=n.useMemo(function(){var Ze=Kt!==!1&&W!==!1;return(0,q.Z)((0,q.Z)({},Se),{},{flattenOptions:vn,onActiveValue:Xn,defaultActiveFirstOption:qn,onSelect:Yn,menuItemSelectedIcon:Ot,rawValues:hn,fieldNames:Qt,virtual:Ze,direction:it,listHeight:Tt,listItemHeight:bt,childrenAsData:Gt,maxCount:ke,optionRender:Ne})},[ke,Se,vn,Xn,qn,Yn,Ot,hn,Qt,Kt,W,it,Tt,bt,Gt,Ne]);return n.createElement(B.Provider,{value:pn},n.createElement(ge,(0,ae.Z)({},tn,{id:mn,prefixCls:T,ref:e,omitDomProps:Nt,mode:d,displayValues:An,onDisplayValuesChange:_n,direction:it,searchValue:rn,onSearch:Xt,autoClearSearchValue:Re,onSearchSplit:er,dropdownMatchSelectWidth:W,OptionList:Ie,emptyOptions:!vn.length,activeValue:$n,activeDescendantId:"".concat(mn,"_list_").concat(Gn)})))}),Wt=yt;Wt.Option=Fe,Wt.OptGroup=Ce;var on=Wt,Ue=on},63158:function(Mn,Dt,o){var ae=o(72308),C=o(49618),w=o(52487),q=o(74416),P=o(59301),te=o(92310),_=o.n(te),de=o(18929),Z=o(10228),n=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=P.forwardRef(function(i,ie){var u,nt=i.prefixCls,Ye=nt===void 0?"rc-switch":nt,lt=i.className,Jt=i.checked,Zt=i.defaultChecked,ne=i.disabled,M=i.loadingIcon,Ct=i.checkedChildren,_e=i.unCheckedChildren,$=i.onClick,je=i.onChange,ze=i.onKeyDown,Je=(0,q.Z)(i,n),ot=(0,de.Z)(!1,{value:Jt,defaultValue:Zt}),Et=(0,w.Z)(ot,2),g=Et[0],c=Et[1];function S(f,j){var oe=g;return ne||(oe=f,c(oe),je==null||je(oe,j)),oe}function R(f){f.which===Z.Z.LEFT?S(!1,f):f.which===Z.Z.RIGHT&&S(!0,f),ze==null||ze(f)}function y(f){var j=S(!g,f);$==null||$(j,f)}var J=_()(Ye,lt,(u={},(0,C.Z)(u,"".concat(Ye,"-checked"),g),(0,C.Z)(u,"".concat(Ye,"-disabled"),ne),u));return P.createElement("button",(0,ae.Z)({},Je,{type:"button",role:"switch","aria-checked":g,disabled:ne,className:J,ref:ie,onKeyDown:R,onClick:y}),M,P.createElement("span",{className:"".concat(Ye,"-inner")},P.createElement("span",{className:"".concat(Ye,"-inner-checked")},Ct),P.createElement("span",{className:"".concat(Ye,"-inner-unchecked")},_e)))});ve.displayName="Switch",Dt.Z=ve},22711:function(Mn,Dt,o){o.r(Dt),o.d(Dt,{ResizableTextArea:function(){return Et},default:function(){return R}});var ae=o(72308),C=o(49618),w=o(77321),q=o(80702),P=o(52487),te=o(74416),_=o(92310),de=o.n(_),Z=o(36901),n=o(66003),ve=o(30292),i=o(18929),ie=o(59301),u=o(62853),nt=o(29301),Ye=o(34280),lt=o(16089),Jt=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Zt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ne={},M;function Ct(y){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=y.getAttribute("id")||y.getAttribute("data-reactid")||y.getAttribute("name");if(J&&ne[f])return ne[f];var j=window.getComputedStyle(y),oe=j.getPropertyValue("box-sizing")||j.getPropertyValue("-moz-box-sizing")||j.getPropertyValue("-webkit-box-sizing"),I=parseFloat(j.getPropertyValue("padding-bottom"))+parseFloat(j.getPropertyValue("padding-top")),re=parseFloat(j.getPropertyValue("border-bottom-width"))+parseFloat(j.getPropertyValue("border-top-width")),me=Zt.map(function(he){return"".concat(he,":").concat(j.getPropertyValue(he))}).join(";"),Y={sizingStyle:me,paddingSize:I,borderSize:re,boxSizing:oe};return J&&f&&(ne[f]=Y),Y}function _e(y){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;M||(M=document.createElement("textarea"),M.setAttribute("tab-index","-1"),M.setAttribute("aria-hidden","true"),M.setAttribute("name","hiddenTextarea"),document.body.appendChild(M)),y.getAttribute("wrap")?M.setAttribute("wrap",y.getAttribute("wrap")):M.removeAttribute("wrap");var oe=Ct(y,J),I=oe.paddingSize,re=oe.borderSize,me=oe.boxSizing,Y=oe.sizingStyle;M.setAttribute("style","".concat(Y,";").concat(Jt)),M.value=y.value||y.placeholder||"";var he=void 0,se=void 0,rt,Ge=M.scrollHeight;if(me==="border-box"?Ge+=re:me==="content-box"&&(Ge-=I),f!==null||j!==null){M.value=" ";var Xe=M.scrollHeight-I;f!==null&&(he=Xe*f,me==="border-box"&&(he=he+I+re),Ge=Math.max(he,Ge)),j!==null&&(se=Xe*j,me==="border-box"&&(se=se+I+re),rt=Ge>se?"":"hidden",Ge=Math.min(se,Ge))}var et={height:Ge,overflowY:rt,resize:"none"};return he&&(et.minHeight=he),se&&(et.maxHeight=se),et}var $=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],je=0,ze=1,Je=2,ot=ie.forwardRef(function(y,J){var f=y,j=f.prefixCls,oe=f.defaultValue,I=f.value,re=f.autoSize,me=f.onResize,Y=f.className,he=f.style,se=f.disabled,rt=f.onChange,Ge=f.onInternalAutoSize,Xe=(0,te.Z)(f,$),et=(0,i.Z)(oe,{value:I,postState:function(Qe){return Qe!=null?Qe:""}}),$t=(0,P.Z)(et,2),Pt=$t[0],v=$t[1],r=function(Qe){v(Qe.target.value),rt==null||rt(Qe)},l=ie.useRef();ie.useImperativeHandle(J,function(){return{textArea:l.current}});var a=ie.useMemo(function(){return re&&(0,u.Z)(re)==="object"?[re.minRows,re.maxRows]:[]},[re]),s=(0,P.Z)(a,2),m=s[0],h=s[1],b=!!re,A=function(){try{if(document.activeElement===l.current){var Qe=l.current,At=Qe.selectionStart,Ut=Qe.selectionEnd,Lt=Qe.scrollTop;l.current.setSelectionRange(At,Ut),l.current.scrollTop=Lt}}catch(en){}},O=ie.useState(Je),F=(0,P.Z)(O,2),B=F[0],L=F[1],H=ie.useState(),p=(0,P.Z)(H,2),V=p[0],be=p[1],ge=function(){L(je)};(0,Ye.Z)(function(){b&&ge()},[I,m,h,b]),(0,Ye.Z)(function(){if(B===je)L(ze);else if(B===ze){var Q=_e(l.current,!1,m,h);L(Je),be(Q)}else A()},[B]);var ee=ie.useRef(),Ce=function(){lt.Z.cancel(ee.current)},pe=function(Qe){B===Je&&(me==null||me(Qe),re&&(Ce(),ee.current=(0,lt.Z)(function(){ge()})))};ie.useEffect(function(){return Ce},[]);var Fe=b?V:null,Te=(0,w.Z)((0,w.Z)({},he),Fe);return(B===je||B===ze)&&(Te.overflowY="hidden",Te.overflowX="hidden"),ie.createElement(nt.Z,{onResize:pe,disabled:!(re||me)},ie.createElement("textarea",(0,ae.Z)({},Xe,{ref:l,style:Te,className:de()(j,Y,(0,C.Z)({},"".concat(j,"-disabled"),se)),disabled:se,value:Pt,onChange:r})))}),Et=ot,g=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],c=ie.forwardRef(function(y,J){var f,j=y.defaultValue,oe=y.value,I=y.onFocus,re=y.onBlur,me=y.onChange,Y=y.allowClear,he=y.maxLength,se=y.onCompositionStart,rt=y.onCompositionEnd,Ge=y.suffix,Xe=y.prefixCls,et=Xe===void 0?"rc-textarea":Xe,$t=y.showCount,Pt=y.count,v=y.className,r=y.style,l=y.disabled,a=y.hidden,s=y.classNames,m=y.styles,h=y.onResize,b=y.onClear,A=y.onPressEnter,O=y.readOnly,F=y.autoSize,B=y.onKeyDown,L=(0,te.Z)(y,g),H=(0,i.Z)(j,{value:oe,defaultValue:j}),p=(0,P.Z)(H,2),V=p[0],be=p[1],ge=V==null?"":String(V),ee=ie.useState(!1),Ce=(0,P.Z)(ee,2),pe=Ce[0],Fe=Ce[1],Te=ie.useRef(!1),Q=ie.useState(null),Qe=(0,P.Z)(Q,2),At=Qe[0],Ut=Qe[1],Lt=(0,ie.useRef)(null),en=(0,ie.useRef)(null),Ee=function(){var t;return(t=en.current)===null||t===void 0?void 0:t.textArea},Ie=function(){Ee().focus()};(0,ie.useImperativeHandle)(J,function(){var Ue;return{resizableTextArea:en.current,focus:Ie,blur:function(){Ee().blur()},nativeElement:((Ue=Lt.current)===null||Ue===void 0?void 0:Ue.nativeElement)||Ee()}}),(0,ie.useEffect)(function(){Fe(function(Ue){return!l&&Ue})},[l]);var ut=ie.useState(null),dt=(0,P.Z)(ut,2),wt=dt[0],St=dt[1];ie.useEffect(function(){if(wt){var Ue;(Ue=Ee()).setSelectionRange.apply(Ue,(0,q.Z)(wt))}},[wt]);var at=(0,n.Z)(Pt,$t),Rt=(f=at.max)!==null&&f!==void 0?f:he,Le=Number(Rt)>0,cn=at.strategy(ge),st=!!Rt&&cn>Rt,Bt=function(t,e){var E=e;!Te.current&&at.exceedFormatter&&at.max&&at.strategy(e)>at.max&&(E=at.exceedFormatter(e,{max:at.max}),e!==E&&St([Ee().selectionStart||0,Ee().selectionEnd||0])),be(E),(0,ve.rJ)(t.currentTarget,t,me,E)},gt=function(t){Te.current=!0,se==null||se(t)},nn=function(t){Te.current=!1,Bt(t,t.currentTarget.value),rt==null||rt(t)},Rn=function(t){Bt(t,t.target.value)},dn=function(t){t.key==="Enter"&&A&&A(t),B==null||B(t)},It=function(t){Fe(!0),I==null||I(t)},Vt=function(t){Fe(!1),re==null||re(t)},Nt=function(t){be(""),Ie(),(0,ve.rJ)(Ee(),t,me)},zt=Ge,yt;at.show&&(at.showFormatter?yt=at.showFormatter({value:ge,count:cn,maxLength:Rt}):yt="".concat(cn).concat(Le?" / ".concat(Rt):""),zt=ie.createElement(ie.Fragment,null,zt,ie.createElement("span",{className:de()("".concat(et,"-data-count"),s==null?void 0:s.count),style:m==null?void 0:m.count},yt)));var Wt=function(t){var e;h==null||h(t),(e=Ee())!==null&&e!==void 0&&e.style.height&&Ut(!0)},on=!F&&!$t&&!Y;return ie.createElement(Z.BaseInput,{ref:Lt,value:ge,allowClear:Y,handleReset:Nt,suffix:zt,prefixCls:et,classNames:(0,w.Z)((0,w.Z)({},s),{},{affixWrapper:de()(s==null?void 0:s.affixWrapper,(0,C.Z)((0,C.Z)({},"".concat(et,"-show-count"),$t),"".concat(et,"-textarea-allow-clear"),Y))}),disabled:l,focused:pe,className:de()(v,st&&"".concat(et,"-out-of-range")),style:(0,w.Z)((0,w.Z)({},r),At&&!on?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof yt=="string"?yt:void 0}},hidden:a,readOnly:O,onClear:b},ie.createElement(Et,(0,ae.Z)({},L,{autoSize:F,maxLength:he,onKeyDown:dn,onChange:Rn,onFocus:It,onBlur:Vt,onCompositionStart:gt,onCompositionEnd:nn,className:de()(s==null?void 0:s.textarea),style:(0,w.Z)((0,w.Z)({},m==null?void 0:m.textarea),{},{resize:r==null?void 0:r.resize}),disabled:l,prefixCls:et,onResize:Wt,ref:en,readOnly:O})))}),S=c,R=S},29125:function(Mn,Dt,o){o.d(Dt,{G:function(){return q},Z:function(){return Jt}});var ae=o(92310),C=o.n(ae),w=o(59301);function q(Zt){var ne=Zt.children,M=Zt.prefixCls,Ct=Zt.id,_e=Zt.overlayInnerStyle,$=Zt.bodyClassName,je=Zt.className,ze=Zt.style;return w.createElement("div",{className:C()("".concat(M,"-content"),je),style:ze},w.createElement("div",{className:C()("".concat(M,"-inner"),$),id:Ct,role:"tooltip",style:_e},typeof ne=="function"?ne():ne))}var P=o(72308),te=o(77321),_=o(74416),de=o(65352),Z={shiftX:64,adjustY:1},n={adjustX:1,shiftY:!0},ve=[0,0],i={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:ve},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:ve},top:{points:["bc","tc"],overflow:Z,offset:[0,-4],targetOffset:ve},bottom:{points:["tc","bc"],overflow:Z,offset:[0,4],targetOffset:ve},topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-4],targetOffset:ve},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:ve},topRight:{points:["br","tr"],overflow:Z,offset:[0,-4],targetOffset:ve},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:ve},bottomRight:{points:["tr","br"],overflow:Z,offset:[0,4],targetOffset:ve},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:ve},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,4],targetOffset:ve},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:ve}},ie=null,u=o(80402),nt=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Ye=function(ne,M){var Ct=ne.overlayClassName,_e=ne.trigger,$=_e===void 0?["hover"]:_e,je=ne.mouseEnterDelay,ze=je===void 0?0:je,Je=ne.mouseLeaveDelay,ot=Je===void 0?.1:Je,Et=ne.overlayStyle,g=ne.prefixCls,c=g===void 0?"rc-tooltip":g,S=ne.children,R=ne.onVisibleChange,y=ne.afterVisibleChange,J=ne.transitionName,f=ne.animation,j=ne.motion,oe=ne.placement,I=oe===void 0?"right":oe,re=ne.align,me=re===void 0?{}:re,Y=ne.destroyTooltipOnHide,he=Y===void 0?!1:Y,se=ne.defaultVisible,rt=ne.getTooltipContainer,Ge=ne.overlayInnerStyle,Xe=ne.arrowContent,et=ne.overlay,$t=ne.id,Pt=ne.showArrow,v=Pt===void 0?!0:Pt,r=ne.classNames,l=ne.styles,a=(0,_.Z)(ne,nt),s=(0,u.Z)($t),m=(0,w.useRef)(null);(0,w.useImperativeHandle)(M,function(){return m.current});var h=(0,te.Z)({},a);"visible"in ne&&(h.popupVisible=ne.visible);var b=function(){return w.createElement(q,{key:"content",prefixCls:c,id:s,bodyClassName:r==null?void 0:r.body,overlayInnerStyle:(0,te.Z)((0,te.Z)({},Ge),l==null?void 0:l.body)},et)},A=function(){var F=w.Children.only(S),B=(F==null?void 0:F.props)||{},L=(0,te.Z)((0,te.Z)({},B),{},{"aria-describedby":et?s:null});return w.cloneElement(S,L)};return w.createElement(de.Z,(0,P.Z)({popupClassName:C()(Ct,r==null?void 0:r.root),prefixCls:c,popup:b,action:$,builtinPlacements:i,popupPlacement:I,ref:m,popupAlign:me,getPopupContainer:rt,onPopupVisibleChange:R,afterPopupVisibleChange:y,popupTransitionName:J,popupAnimation:f,popupMotion:j,defaultPopupVisible:se,autoDestroy:he,mouseLeaveDelay:ot,popupStyle:(0,te.Z)((0,te.Z)({},Et),l==null?void 0:l.root),mouseEnterDelay:ze,arrow:v},h),A())},lt=(0,w.forwardRef)(Ye),Jt=lt},49658:function(Mn,Dt){Dt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var o=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(o)||/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(o==null?void 0:o.substr(0,4))}},45680:function(Mn,Dt,o){o.d(Dt,{Z:function(){return Pt}});var ae=o(72308),C=o(62853),w=o(77321),q=o(49618),P=o(52487),te=o(74416),_=o(92310),de=o.n(_),Z=o(29301),n=o(70425),ve=o(34280),i=o(59301),ie=o(4676),u=i.forwardRef(function(v,r){var l=v.height,a=v.offsetY,s=v.offsetX,m=v.children,h=v.prefixCls,b=v.onInnerResize,A=v.innerProps,O=v.rtl,F=v.extra,B={},L={display:"flex",flexDirection:"column"};return a!==void 0&&(B={height:l,position:"relative",overflow:"hidden"},L=(0,w.Z)((0,w.Z)({},L),{},(0,q.Z)((0,q.Z)((0,q.Z)((0,q.Z)((0,q.Z)({transform:"translateY(".concat(a,"px)")},O?"marginRight":"marginLeft",-s),"position","absolute"),"left",0),"right",0),"top",0))),i.createElement("div",{style:B},i.createElement(Z.Z,{onResize:function(p){var V=p.offsetHeight;V&&b&&b()}},i.createElement("div",(0,ae.Z)({style:L,className:de()((0,q.Z)({},"".concat(h,"-holder-inner"),h)),ref:r},A),m,F)))});u.displayName="Filler";var nt=u;function Ye(v){var r=v.children,l=v.setRef,a=i.useCallback(function(s){l(s)},[]);return i.cloneElement(r,{ref:a})}function lt(v,r,l,a,s,m,h,b){var A=b.getKey;return v.slice(r,l+1).map(function(O,F){var B=r+F,L=h(O,B,{style:{width:a},offsetX:s}),H=A(O);return i.createElement(Ye,{key:H,setRef:function(V){return m(O,V)}},L)})}function Jt(v,r,l,a){var s=l-v,m=r-l,h=Math.min(s,m)*2;if(a<=h){var b=Math.floor(a/2);return a%2?l+b+1:l-b}return s>m?l-(a-m):l+(a-s)}function Zt(v,r,l){var a=v.length,s=r.length,m,h;if(a===0&&s===0)return null;a<s?(m=v,h=r):(m=r,h=v);var b={__EMPTY_ITEM__:!0};function A(p){return p!==void 0?l(p):b}for(var O=null,F=Math.abs(a-s)!==1,B=0;B<h.length;B+=1){var L=A(m[B]),H=A(h[B]);if(L!==H){O=B,F=F||L!==A(h[B+1]);break}}return O===null?null:{index:O,multiple:F}}function ne(v,r,l){var a=i.useState(v),s=(0,P.Z)(a,2),m=s[0],h=s[1],b=i.useState(null),A=(0,P.Z)(b,2),O=A[0],F=A[1];return i.useEffect(function(){var B=Zt(m||[],v||[],r);(B==null?void 0:B.index)!==void 0&&(l==null||l(B.index),F(v[B.index])),h(v)},[v]),[O]}var M=o(16089),Ct=(typeof navigator=="undefined"?"undefined":(0,C.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),_e=Ct,$=function(v,r,l,a){var s=(0,i.useRef)(!1),m=(0,i.useRef)(null);function h(){clearTimeout(m.current),s.current=!0,m.current=setTimeout(function(){s.current=!1},50)}var b=(0,i.useRef)({top:v,bottom:r,left:l,right:a});return b.current.top=v,b.current.bottom=r,b.current.left=l,b.current.right=a,function(A,O){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,B=A?O<0&&b.current.left||O>0&&b.current.right:O<0&&b.current.top||O>0&&b.current.bottom;return F&&B?(clearTimeout(m.current),s.current=!1):(!B||s.current)&&h(),!s.current&&B}};function je(v,r,l,a,s,m,h){var b=(0,i.useRef)(0),A=(0,i.useRef)(null),O=(0,i.useRef)(null),F=(0,i.useRef)(!1),B=$(r,l,a,s);function L(ee,Ce){if(M.Z.cancel(A.current),!B(!1,Ce)){var pe=ee;if(!pe._virtualHandled)pe._virtualHandled=!0;else return;b.current+=Ce,O.current=Ce,_e||pe.preventDefault(),A.current=(0,M.Z)(function(){var Fe=F.current?10:1;h(b.current*Fe,!1),b.current=0})}}function H(ee,Ce){h(Ce,!0),_e||ee.preventDefault()}var p=(0,i.useRef)(null),V=(0,i.useRef)(null);function be(ee){if(v){M.Z.cancel(V.current),V.current=(0,M.Z)(function(){p.current=null},2);var Ce=ee.deltaX,pe=ee.deltaY,Fe=ee.shiftKey,Te=Ce,Q=pe;(p.current==="sx"||!p.current&&Fe&&pe&&!Ce)&&(Te=pe,Q=0,p.current="sx");var Qe=Math.abs(Te),At=Math.abs(Q);p.current===null&&(p.current=m&&Qe>At?"x":"y"),p.current==="y"?L(ee,Q):H(ee,Te)}}function ge(ee){v&&(F.current=ee.detail===O.current)}return[be,ge]}function ze(v,r,l,a){var s=i.useMemo(function(){return[new Map,[]]},[v,l.id,a]),m=(0,P.Z)(s,2),h=m[0],b=m[1],A=function(F){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F,L=h.get(F),H=h.get(B);if(L===void 0||H===void 0)for(var p=v.length,V=b.length;V<p;V+=1){var be,ge=v[V],ee=r(ge);h.set(ee,V);var Ce=(be=l.get(ee))!==null&&be!==void 0?be:a;if(b[V]=(b[V-1]||0)+Ce,ee===F&&(L=V),ee===B&&(H=V),L!==void 0&&H!==void 0)break}return{top:b[L-1]||0,bottom:b[H]}};return A}var Je=o(96949),ot=o(55090),Et=function(){function v(){(0,Je.Z)(this,v),(0,q.Z)(this,"maps",void 0),(0,q.Z)(this,"id",0),(0,q.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ot.Z)(v,[{key:"set",value:function(l,a){this.maps[l]=a,this.id+=1,this.diffKeys.add(l)}},{key:"get",value:function(l){return this.maps[l]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),v}(),g=Et;function c(v){var r=parseFloat(v);return isNaN(r)?0:r}function S(v,r,l){var a=i.useState(0),s=(0,P.Z)(a,2),m=s[0],h=s[1],b=(0,i.useRef)(new Map),A=(0,i.useRef)(new g),O=(0,i.useRef)(0);function F(){O.current+=1}function B(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;F();var p=function(){var ge=!1;b.current.forEach(function(ee,Ce){if(ee&&ee.offsetParent){var pe=ee.offsetHeight,Fe=getComputedStyle(ee),Te=Fe.marginTop,Q=Fe.marginBottom,Qe=c(Te),At=c(Q),Ut=pe+Qe+At;A.current.get(Ce)!==Ut&&(A.current.set(Ce,Ut),ge=!0)}}),ge&&h(function(ee){return ee+1})};if(H)p();else{O.current+=1;var V=O.current;Promise.resolve().then(function(){V===O.current&&p()})}}function L(H,p){var V=v(H),be=b.current.get(V);p?(b.current.set(V,p),B()):b.current.delete(V),!be!=!p&&(p?r==null||r(H):l==null||l(H))}return(0,i.useEffect)(function(){return F},[]),[L,B,A.current,m]}var R=14/15;function y(v,r,l){var a=(0,i.useRef)(!1),s=(0,i.useRef)(0),m=(0,i.useRef)(0),h=(0,i.useRef)(null),b=(0,i.useRef)(null),A,O=function(H){if(a.current){var p=Math.ceil(H.touches[0].pageX),V=Math.ceil(H.touches[0].pageY),be=s.current-p,ge=m.current-V,ee=Math.abs(be)>Math.abs(ge);ee?s.current=p:m.current=V;var Ce=l(ee,ee?be:ge,!1,H);Ce&&H.preventDefault(),clearInterval(b.current),Ce&&(b.current=setInterval(function(){ee?be*=R:ge*=R;var pe=Math.floor(ee?be:ge);(!l(ee,pe,!0)||Math.abs(pe)<=.1)&&clearInterval(b.current)},16))}},F=function(){a.current=!1,A()},B=function(H){A(),H.touches.length===1&&!a.current&&(a.current=!0,s.current=Math.ceil(H.touches[0].pageX),m.current=Math.ceil(H.touches[0].pageY),h.current=H.target,h.current.addEventListener("touchmove",O,{passive:!1}),h.current.addEventListener("touchend",F,{passive:!0}))};A=function(){h.current&&(h.current.removeEventListener("touchmove",O),h.current.removeEventListener("touchend",F))},(0,ve.Z)(function(){return v&&r.current.addEventListener("touchstart",B,{passive:!0}),function(){var L;(L=r.current)===null||L===void 0||L.removeEventListener("touchstart",B),A(),clearInterval(b.current)}},[v])}function J(v){return Math.floor(Math.pow(v,.5))}function f(v,r){var l="touches"in v?v.touches[0]:v;return l[r?"pageX":"pageY"]-window[r?"scrollX":"scrollY"]}function j(v,r,l){i.useEffect(function(){var a=r.current;if(v&&a){var s=!1,m,h,b=function(){M.Z.cancel(m)},A=function L(){b(),m=(0,M.Z)(function(){l(h),L()})},O=function(H){if(!(H.target.draggable||H.button!==0)){var p=H;p._virtualHandled||(p._virtualHandled=!0,s=!0)}},F=function(){s=!1,b()},B=function(H){if(s){var p=f(H,!1),V=a.getBoundingClientRect(),be=V.top,ge=V.bottom;if(p<=be){var ee=be-p;h=-J(ee),A()}else if(p>=ge){var Ce=p-ge;h=J(Ce),A()}else b()}};return a.addEventListener("mousedown",O),a.ownerDocument.addEventListener("mouseup",F),a.ownerDocument.addEventListener("mousemove",B),function(){a.removeEventListener("mousedown",O),a.ownerDocument.removeEventListener("mouseup",F),a.ownerDocument.removeEventListener("mousemove",B),b()}}},[v])}var oe=10;function I(v,r,l,a,s,m,h,b){var A=i.useRef(),O=i.useState(null),F=(0,P.Z)(O,2),B=F[0],L=F[1];return(0,ve.Z)(function(){if(B&&B.times<oe){if(!v.current){L(function(at){return(0,w.Z)({},at)});return}m();var H=B.targetAlign,p=B.originAlign,V=B.index,be=B.offset,ge=v.current.clientHeight,ee=!1,Ce=H,pe=null;if(ge){for(var Fe=H||p,Te=0,Q=0,Qe=0,At=Math.min(r.length-1,V),Ut=0;Ut<=At;Ut+=1){var Lt=s(r[Ut]);Q=Te;var en=l.get(Lt);Qe=Q+(en===void 0?a:en),Te=Qe}for(var Ee=Fe==="top"?be:ge-be,Ie=At;Ie>=0;Ie-=1){var ut=s(r[Ie]),dt=l.get(ut);if(dt===void 0){ee=!0;break}if(Ee-=dt,Ee<=0)break}switch(Fe){case"top":pe=Q-be;break;case"bottom":pe=Qe-ge+be;break;default:{var wt=v.current.scrollTop,St=wt+ge;Q<wt?Ce="top":Qe>St&&(Ce="bottom")}}pe!==null&&h(pe),pe!==B.lastTop&&(ee=!0)}ee&&L((0,w.Z)((0,w.Z)({},B),{},{times:B.times+1,targetAlign:Ce,lastTop:pe}))}},[B,v.current]),function(H){if(H==null){b();return}if(M.Z.cancel(A.current),typeof H=="number")h(H);else if(H&&(0,C.Z)(H)==="object"){var p,V=H.align;"index"in H?p=H.index:p=r.findIndex(function(ee){return s(ee)===H.key});var be=H.offset,ge=be===void 0?0:be;L({times:0,index:p,offset:ge,originAlign:V})}}}var re=i.forwardRef(function(v,r){var l=v.prefixCls,a=v.rtl,s=v.scrollOffset,m=v.scrollRange,h=v.onStartMove,b=v.onStopMove,A=v.onScroll,O=v.horizontal,F=v.spinSize,B=v.containerSize,L=v.style,H=v.thumbStyle,p=v.showScrollBar,V=i.useState(!1),be=(0,P.Z)(V,2),ge=be[0],ee=be[1],Ce=i.useState(null),pe=(0,P.Z)(Ce,2),Fe=pe[0],Te=pe[1],Q=i.useState(null),Qe=(0,P.Z)(Q,2),At=Qe[0],Ut=Qe[1],Lt=!a,en=i.useRef(),Ee=i.useRef(),Ie=i.useState(p),ut=(0,P.Z)(Ie,2),dt=ut[0],wt=ut[1],St=i.useRef(),at=function(){p===!0||p===!1||(clearTimeout(St.current),wt(!0),St.current=setTimeout(function(){wt(!1)},3e3))},Rt=m-B||0,Le=B-F||0,cn=i.useMemo(function(){if(s===0||Rt===0)return 0;var Nt=s/Rt;return Nt*Le},[s,Rt,Le]),st=function(zt){zt.stopPropagation(),zt.preventDefault()},Bt=i.useRef({top:cn,dragging:ge,pageY:Fe,startTop:At});Bt.current={top:cn,dragging:ge,pageY:Fe,startTop:At};var gt=function(zt){ee(!0),Te(f(zt,O)),Ut(Bt.current.top),h(),zt.stopPropagation(),zt.preventDefault()};i.useEffect(function(){var Nt=function(on){on.preventDefault()},zt=en.current,yt=Ee.current;return zt.addEventListener("touchstart",Nt,{passive:!1}),yt.addEventListener("touchstart",gt,{passive:!1}),function(){zt.removeEventListener("touchstart",Nt),yt.removeEventListener("touchstart",gt)}},[]);var nn=i.useRef();nn.current=Rt;var Rn=i.useRef();Rn.current=Le,i.useEffect(function(){if(ge){var Nt,zt=function(on){var Ue=Bt.current,t=Ue.dragging,e=Ue.pageY,E=Ue.startTop;M.Z.cancel(Nt);var d=en.current.getBoundingClientRect(),N=B/(O?d.width:d.height);if(t){var T=(f(on,O)-e)*N,k=E;!Lt&&O?k-=T:k+=T;var z=nn.current,ce=Rn.current,ue=ce?k/ce:0,G=Math.ceil(ue*z);G=Math.max(G,0),G=Math.min(G,z),Nt=(0,M.Z)(function(){A(G,O)})}},yt=function(){ee(!1),b()};return window.addEventListener("mousemove",zt,{passive:!0}),window.addEventListener("touchmove",zt,{passive:!0}),window.addEventListener("mouseup",yt,{passive:!0}),window.addEventListener("touchend",yt,{passive:!0}),function(){window.removeEventListener("mousemove",zt),window.removeEventListener("touchmove",zt),window.removeEventListener("mouseup",yt),window.removeEventListener("touchend",yt),M.Z.cancel(Nt)}}},[ge]),i.useEffect(function(){return at(),function(){clearTimeout(St.current)}},[s]),i.useImperativeHandle(r,function(){return{delayHidden:at}});var dn="".concat(l,"-scrollbar"),It={position:"absolute",visibility:dt?null:"hidden"},Vt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return O?(It.height=8,It.left=0,It.right=0,It.bottom=0,Vt.height="100%",Vt.width=F,Lt?Vt.left=cn:Vt.right=cn):(It.width=8,It.top=0,It.bottom=0,Lt?It.right=0:It.left=0,Vt.width="100%",Vt.height=F,Vt.top=cn),i.createElement("div",{ref:en,className:de()(dn,(0,q.Z)((0,q.Z)((0,q.Z)({},"".concat(dn,"-horizontal"),O),"".concat(dn,"-vertical"),!O),"".concat(dn,"-visible"),dt)),style:(0,w.Z)((0,w.Z)({},It),L),onMouseDown:st,onMouseMove:at},i.createElement("div",{ref:Ee,className:de()("".concat(dn,"-thumb"),(0,q.Z)({},"".concat(dn,"-thumb-moving"),ge)),style:(0,w.Z)((0,w.Z)({},Vt),H),onMouseDown:gt}))}),me=re,Y=20;function he(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=v/r*v;return isNaN(l)&&(l=0),l=Math.max(l,Y),Math.floor(l)}var se=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],rt=[],Ge={overflowY:"auto",overflowAnchor:"none"};function Xe(v,r){var l=v.prefixCls,a=l===void 0?"rc-virtual-list":l,s=v.className,m=v.height,h=v.itemHeight,b=v.fullHeight,A=b===void 0?!0:b,O=v.style,F=v.data,B=v.children,L=v.itemKey,H=v.virtual,p=v.direction,V=v.scrollWidth,be=v.component,ge=be===void 0?"div":be,ee=v.onScroll,Ce=v.onVirtualScroll,pe=v.onVisibleChange,Fe=v.innerProps,Te=v.extraRender,Q=v.styles,Qe=v.showScrollBar,At=Qe===void 0?"optional":Qe,Ut=(0,te.Z)(v,se),Lt=i.useCallback(function(D){return typeof L=="function"?L(D):D==null?void 0:D[L]},[L]),en=S(Lt,null,null),Ee=(0,P.Z)(en,4),Ie=Ee[0],ut=Ee[1],dt=Ee[2],wt=Ee[3],St=!!(H!==!1&&m&&h),at=i.useMemo(function(){return Object.values(dt.maps).reduce(function(D,x){return D+x},0)},[dt.id,dt.maps]),Rt=St&&F&&(Math.max(h*F.length,at)>m||!!V),Le=p==="rtl",cn=de()(a,(0,q.Z)({},"".concat(a,"-rtl"),Le),s),st=F||rt,Bt=(0,i.useRef)(),gt=(0,i.useRef)(),nn=(0,i.useRef)(),Rn=(0,i.useState)(0),dn=(0,P.Z)(Rn,2),It=dn[0],Vt=dn[1],Nt=(0,i.useState)(0),zt=(0,P.Z)(Nt,2),yt=zt[0],Wt=zt[1],on=(0,i.useState)(!1),Ue=(0,P.Z)(on,2),t=Ue[0],e=Ue[1],E=function(){e(!0)},d=function(){e(!1)},N={getKey:Lt};function T(D){Vt(function(x){var le;typeof D=="function"?le=D(x):le=D;var He=it(le);return Bt.current.scrollTop=He,He})}var k=(0,i.useRef)({start:0,end:st.length}),z=(0,i.useRef)(),ce=ne(st,Lt),ue=(0,P.Z)(ce,1),G=ue[0];z.current=G;var fe=i.useMemo(function(){if(!St)return{scrollHeight:void 0,start:0,end:st.length-1,offset:void 0};if(!Rt){var D;return{scrollHeight:((D=gt.current)===null||D===void 0?void 0:D.offsetHeight)||0,start:0,end:st.length-1,offset:void 0}}for(var x=0,le,He,Oe,an=st.length,sn=0;sn<an;sn+=1){var xn=st[sn],Dn=Lt(xn),_t=dt.get(Dn),Nn=x+(_t===void 0?h:_t);Nn>=It&&le===void 0&&(le=sn,He=x),Nn>It+m&&Oe===void 0&&(Oe=sn),x=Nn}return le===void 0&&(le=0,He=0,Oe=Math.ceil(m/h)),Oe===void 0&&(Oe=st.length-1),Oe=Math.min(Oe+1,st.length-1),{scrollHeight:x,start:le,end:Oe,offset:He}},[Rt,St,It,st,wt,m]),Re=fe.scrollHeight,X=fe.start,Ae=fe.end,K=fe.offset;k.current.start=X,k.current.end=Ae,i.useLayoutEffect(function(){var D=dt.getRecord();if(D.size===1){var x=Array.from(D)[0],le=st[X];if(le){var He=Lt(le);if(He===x){var Oe=dt.get(x),an=Oe-h;T(function(sn){return sn+an})}}}dt.resetRecord()},[Re]);var W=i.useState({width:0,height:m}),ye=(0,P.Z)(W,2),Me=ye[0],xt=ye[1],qe=function(x){xt({width:x.offsetWidth,height:x.offsetHeight})},ct=(0,i.useRef)(),Ne=(0,i.useRef)(),jt=i.useMemo(function(){return he(Me.width,V)},[Me.width,V]),Ht=i.useMemo(function(){return he(Me.height,Re)},[Me.height,Re]),Ot=Re-m,Kt=(0,i.useRef)(Ot);Kt.current=Ot;function it(D){var x=D;return Number.isNaN(Kt.current)||(x=Math.min(x,Kt.current)),x=Math.max(x,0),x}var tt=It<=0,Tt=It>=Ot,vt=yt<=0,bt=yt>=V,Be=$(tt,Tt,vt,bt),Ve=function(){return{x:Le?-yt:yt,y:It}},pt=(0,i.useRef)(Ve()),ft=(0,n.zX)(function(D){if(Ce){var x=(0,w.Z)((0,w.Z)({},Ve()),D);(pt.current.x!==x.x||pt.current.y!==x.y)&&(Ce(x),pt.current=x)}});function xe(D,x){var le=D;x?((0,ie.flushSync)(function(){Wt(le)}),ft()):T(le)}function ke(D){var x=D.currentTarget.scrollTop;x!==It&&T(x),ee==null||ee(D),ft()}var tn=function(x){var le=x,He=V?V-Me.width:0;return le=Math.max(le,0),le=Math.min(le,He),le},mn=(0,n.zX)(function(D,x){x?((0,ie.flushSync)(function(){Wt(function(le){var He=le+(Le?-D:D);return tn(He)})}),ft()):T(function(le){var He=le+D;return He})}),ln=je(St,tt,Tt,vt,bt,!!V,mn),Gt=(0,P.Z)(ln,2),En=Gt[0],Qt=Gt[1];y(St,Bt,function(D,x,le,He){var Oe=He;return Be(D,x,le)?!1:!Oe||!Oe._virtualHandled?(Oe&&(Oe._virtualHandled=!0),En({preventDefault:function(){},deltaX:D?x:0,deltaY:D?0:x}),!0):!1}),j(Rt,Bt,function(D){T(function(x){return x+D})}),(0,ve.Z)(function(){function D(le){var He=tt&&le.detail<0,Oe=Tt&&le.detail>0;St&&!He&&!Oe&&le.preventDefault()}var x=Bt.current;return x.addEventListener("wheel",En,{passive:!1}),x.addEventListener("DOMMouseScroll",Qt,{passive:!0}),x.addEventListener("MozMousePixelScroll",D,{passive:!1}),function(){x.removeEventListener("wheel",En),x.removeEventListener("DOMMouseScroll",Qt),x.removeEventListener("MozMousePixelScroll",D)}},[St,tt,Tt]),(0,ve.Z)(function(){if(V){var D=tn(yt);Wt(D),ft({x:D})}},[Me.width,V]);var bn=function(){var x,le;(x=ct.current)===null||x===void 0||x.delayHidden(),(le=Ne.current)===null||le===void 0||le.delayHidden()},yn=I(Bt,st,dt,h,Lt,function(){return ut(!0)},T,bn);i.useImperativeHandle(r,function(){return{nativeElement:nn.current,getScrollInfo:Ve,scrollTo:function(x){function le(He){return He&&(0,C.Z)(He)==="object"&&("left"in He||"top"in He)}le(x)?(x.left!==void 0&&Wt(tn(x.left)),yn(x.top)):yn(x)}}}),(0,ve.Z)(function(){if(pe){var D=st.slice(X,Ae+1);pe(D,st)}},[X,Ae,st]);var rn=ze(st,Lt,dt,h),We=Te==null?void 0:Te({start:X,end:Ae,virtual:Rt,offsetX:yt,offsetY:K,rtl:Le,getSize:rn}),Se=lt(st,X,Ae,V,yt,Ie,B,N),$e=null;m&&($e=(0,w.Z)((0,q.Z)({},A?"height":"maxHeight",m),Ge),St&&($e.overflowY="hidden",V&&($e.overflowX="hidden"),t&&($e.pointerEvents="none")));var mt={};return Le&&(mt.dir="rtl"),i.createElement("div",(0,ae.Z)({ref:nn,style:(0,w.Z)((0,w.Z)({},O),{},{position:"relative"}),className:cn},mt,Ut),i.createElement(Z.Z,{onResize:qe},i.createElement(ge,{className:"".concat(a,"-holder"),style:$e,ref:Bt,onScroll:ke,onMouseEnter:bn},i.createElement(nt,{prefixCls:a,height:Re,offsetX:yt,offsetY:K,scrollWidth:V,onInnerResize:ut,ref:gt,innerProps:Fe,rtl:Le,extra:We},Se))),Rt&&Re>m&&i.createElement(me,{ref:ct,prefixCls:a,scrollOffset:It,scrollRange:Re,rtl:Le,onScroll:xe,onStartMove:E,onStopMove:d,spinSize:Ht,containerSize:Me.height,style:Q==null?void 0:Q.verticalScrollBar,thumbStyle:Q==null?void 0:Q.verticalScrollBarThumb,showScrollBar:At}),Rt&&V>Me.width&&i.createElement(me,{ref:Ne,prefixCls:a,scrollOffset:yt,scrollRange:V,rtl:Le,onScroll:xe,onStartMove:E,onStopMove:d,spinSize:jt,containerSize:Me.width,horizontal:!0,style:Q==null?void 0:Q.horizontalScrollBar,thumbStyle:Q==null?void 0:Q.horizontalScrollBarThumb,showScrollBar:At}))}var et=i.forwardRef(Xe);et.displayName="List";var $t=et,Pt=$t},76374:function(Mn,Dt,o){var ae=function(){if(typeof Map!="undefined")return Map;function g(c,S){var R=-1;return c.some(function(y,J){return y[0]===S?(R=J,!0):!1}),R}return function(){function c(){this.__entries__=[]}return Object.defineProperty(c.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),c.prototype.get=function(S){var R=g(this.__entries__,S),y=this.__entries__[R];return y&&y[1]},c.prototype.set=function(S,R){var y=g(this.__entries__,S);~y?this.__entries__[y][1]=R:this.__entries__.push([S,R])},c.prototype.delete=function(S){var R=this.__entries__,y=g(R,S);~y&&R.splice(y,1)},c.prototype.has=function(S){return!!~g(this.__entries__,S)},c.prototype.clear=function(){this.__entries__.splice(0)},c.prototype.forEach=function(S,R){R===void 0&&(R=null);for(var y=0,J=this.__entries__;y<J.length;y++){var f=J[y];S.call(R,f[1],f[0])}},c}()}(),C=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,w=function(){return typeof o.g!="undefined"&&o.g.Math===Math?o.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),q=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(w):function(g){return setTimeout(function(){return g(Date.now())},1e3/60)}}(),P=2;function te(g,c){var S=!1,R=!1,y=0;function J(){S&&(S=!1,g()),R&&j()}function f(){q(J)}function j(){var oe=Date.now();if(S){if(oe-y<P)return;R=!0}else S=!0,R=!1,setTimeout(f,c);y=oe}return j}var _=20,de=["top","right","bottom","left","width","height","size","weight"],Z=typeof MutationObserver!="undefined",n=function(){function g(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=te(this.refresh.bind(this),_)}return g.prototype.addObserver=function(c){~this.observers_.indexOf(c)||this.observers_.push(c),this.connected_||this.connect_()},g.prototype.removeObserver=function(c){var S=this.observers_,R=S.indexOf(c);~R&&S.splice(R,1),!S.length&&this.connected_&&this.disconnect_()},g.prototype.refresh=function(){var c=this.updateObservers_();c&&this.refresh()},g.prototype.updateObservers_=function(){var c=this.observers_.filter(function(S){return S.gatherActive(),S.hasActive()});return c.forEach(function(S){return S.broadcastActive()}),c.length>0},g.prototype.connect_=function(){!C||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Z?(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)},g.prototype.disconnect_=function(){!C||!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)},g.prototype.onTransitionEnd_=function(c){var S=c.propertyName,R=S===void 0?"":S,y=de.some(function(J){return!!~R.indexOf(J)});y&&this.refresh()},g.getInstance=function(){return this.instance_||(this.instance_=new g),this.instance_},g.instance_=null,g}(),ve=function(g,c){for(var S=0,R=Object.keys(c);S<R.length;S++){var y=R[S];Object.defineProperty(g,y,{value:c[y],enumerable:!1,writable:!1,configurable:!0})}return g},i=function(g){var c=g&&g.ownerDocument&&g.ownerDocument.defaultView;return c||w},ie=_e(0,0,0,0);function u(g){return parseFloat(g)||0}function nt(g){for(var c=[],S=1;S<arguments.length;S++)c[S-1]=arguments[S];return c.reduce(function(R,y){var J=g["border-"+y+"-width"];return R+u(J)},0)}function Ye(g){for(var c=["top","right","bottom","left"],S={},R=0,y=c;R<y.length;R++){var J=y[R],f=g["padding-"+J];S[J]=u(f)}return S}function lt(g){var c=g.getBBox();return _e(0,0,c.width,c.height)}function Jt(g){var c=g.clientWidth,S=g.clientHeight;if(!c&&!S)return ie;var R=i(g).getComputedStyle(g),y=Ye(R),J=y.left+y.right,f=y.top+y.bottom,j=u(R.width),oe=u(R.height);if(R.boxSizing==="border-box"&&(Math.round(j+J)!==c&&(j-=nt(R,"left","right")+J),Math.round(oe+f)!==S&&(oe-=nt(R,"top","bottom")+f)),!ne(g)){var I=Math.round(j+J)-c,re=Math.round(oe+f)-S;Math.abs(I)!==1&&(j-=I),Math.abs(re)!==1&&(oe-=re)}return _e(y.left,y.top,j,oe)}var Zt=function(){return typeof SVGGraphicsElement!="undefined"?function(g){return g instanceof i(g).SVGGraphicsElement}:function(g){return g instanceof i(g).SVGElement&&typeof g.getBBox=="function"}}();function ne(g){return g===i(g).document.documentElement}function M(g){return C?Zt(g)?lt(g):Jt(g):ie}function Ct(g){var c=g.x,S=g.y,R=g.width,y=g.height,J=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,f=Object.create(J.prototype);return ve(f,{x:c,y:S,width:R,height:y,top:S,right:c+R,bottom:y+S,left:c}),f}function _e(g,c,S,R){return{x:g,y:c,width:S,height:R}}var $=function(){function g(c){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_e(0,0,0,0),this.target=c}return g.prototype.isActive=function(){var c=M(this.target);return this.contentRect_=c,c.width!==this.broadcastWidth||c.height!==this.broadcastHeight},g.prototype.broadcastRect=function(){var c=this.contentRect_;return this.broadcastWidth=c.width,this.broadcastHeight=c.height,c},g}(),je=function(){function g(c,S){var R=Ct(S);ve(this,{target:c,contentRect:R})}return g}(),ze=function(){function g(c,S,R){if(this.activeObservations_=[],this.observations_=new ae,typeof c!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=c,this.controller_=S,this.callbackCtx_=R}return g.prototype.observe=function(c){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(c instanceof i(c).Element))throw new TypeError('parameter 1 is not of type "Element".');var S=this.observations_;S.has(c)||(S.set(c,new $(c)),this.controller_.addObserver(this),this.controller_.refresh())}},g.prototype.unobserve=function(c){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(c instanceof i(c).Element))throw new TypeError('parameter 1 is not of type "Element".');var S=this.observations_;S.has(c)&&(S.delete(c),S.size||this.controller_.removeObserver(this))}},g.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},g.prototype.gatherActive=function(){var c=this;this.clearActive(),this.observations_.forEach(function(S){S.isActive()&&c.activeObservations_.push(S)})},g.prototype.broadcastActive=function(){if(this.hasActive()){var c=this.callbackCtx_,S=this.activeObservations_.map(function(R){return new je(R.target,R.broadcastRect())});this.callback_.call(c,S,c),this.clearActive()}},g.prototype.clearActive=function(){this.activeObservations_.splice(0)},g.prototype.hasActive=function(){return this.activeObservations_.length>0},g}(),Je=typeof WeakMap!="undefined"?new WeakMap:new ae,ot=function(){function g(c){if(!(this instanceof g))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var S=n.getInstance(),R=new ze(c,S,this);Je.set(this,R)}return g}();["observe","unobserve","disconnect"].forEach(function(g){ot.prototype[g]=function(){var c;return(c=Je.get(this))[g].apply(c,arguments)}});var Et=function(){return typeof w.ResizeObserver!="undefined"?w.ResizeObserver:ot}();Dt.Z=Et},16722:function(Mn,Dt,o){o.d(Dt,{Z:function(){return de}});const ae=Z=>typeof Z=="object"&&Z!=null&&Z.nodeType===1,C=(Z,n)=>(!n||Z!=="hidden")&&Z!=="visible"&&Z!=="clip",w=(Z,n)=>{if(Z.clientHeight<Z.scrollHeight||Z.clientWidth<Z.scrollWidth){const ve=getComputedStyle(Z,null);return C(ve.overflowY,n)||C(ve.overflowX,n)||(i=>{const ie=(u=>{if(!u.ownerDocument||!u.ownerDocument.defaultView)return null;try{return u.ownerDocument.defaultView.frameElement}catch(nt){return null}})(i);return!!ie&&(ie.clientHeight<i.scrollHeight||ie.clientWidth<i.scrollWidth)})(Z)}return!1},q=(Z,n,ve,i,ie,u,nt,Ye)=>u<Z&&nt>n||u>Z&&nt<n?0:u<=Z&&Ye<=ve||nt>=n&&Ye>=ve?u-Z-i:nt>n&&Ye<ve||u<Z&&Ye>ve?nt-n+ie:0,P=Z=>{const n=Z.parentElement;return n==null?Z.getRootNode().host||null:n},te=(Z,n)=>{var ve,i,ie,u;if(typeof document=="undefined")return[];const{scrollMode:nt,block:Ye,inline:lt,boundary:Jt,skipOverflowHiddenElements:Zt}=n,ne=typeof Jt=="function"?Jt:me=>me!==Jt;if(!ae(Z))throw new TypeError("Invalid target");const M=document.scrollingElement||document.documentElement,Ct=[];let _e=Z;for(;ae(_e)&&ne(_e);){if(_e=P(_e),_e===M){Ct.push(_e);break}_e!=null&&_e===document.body&&w(_e)&&!w(document.documentElement)||_e!=null&&w(_e,Zt)&&Ct.push(_e)}const $=(i=(ve=window.visualViewport)==null?void 0:ve.width)!=null?i:innerWidth,je=(u=(ie=window.visualViewport)==null?void 0:ie.height)!=null?u:innerHeight,{scrollX:ze,scrollY:Je}=window,{height:ot,width:Et,top:g,right:c,bottom:S,left:R}=Z.getBoundingClientRect(),{top:y,right:J,bottom:f,left:j}=(me=>{const Y=window.getComputedStyle(me);return{top:parseFloat(Y.scrollMarginTop)||0,right:parseFloat(Y.scrollMarginRight)||0,bottom:parseFloat(Y.scrollMarginBottom)||0,left:parseFloat(Y.scrollMarginLeft)||0}})(Z);let oe=Ye==="start"||Ye==="nearest"?g-y:Ye==="end"?S+f:g+ot/2-y+f,I=lt==="center"?R+Et/2-j+J:lt==="end"?c+J:R-j;const re=[];for(let me=0;me<Ct.length;me++){const Y=Ct[me],{height:he,width:se,top:rt,right:Ge,bottom:Xe,left:et}=Y.getBoundingClientRect();if(nt==="if-needed"&&g>=0&&R>=0&&S<=je&&c<=$&&(Y===M&&!w(Y)||g>=rt&&S<=Xe&&R>=et&&c<=Ge))return re;const $t=getComputedStyle(Y),Pt=parseInt($t.borderLeftWidth,10),v=parseInt($t.borderTopWidth,10),r=parseInt($t.borderRightWidth,10),l=parseInt($t.borderBottomWidth,10);let a=0,s=0;const m="offsetWidth"in Y?Y.offsetWidth-Y.clientWidth-Pt-r:0,h="offsetHeight"in Y?Y.offsetHeight-Y.clientHeight-v-l:0,b="offsetWidth"in Y?Y.offsetWidth===0?0:se/Y.offsetWidth:0,A="offsetHeight"in Y?Y.offsetHeight===0?0:he/Y.offsetHeight:0;if(M===Y)a=Ye==="start"?oe:Ye==="end"?oe-je:Ye==="nearest"?q(Je,Je+je,je,v,l,Je+oe,Je+oe+ot,ot):oe-je/2,s=lt==="start"?I:lt==="center"?I-$/2:lt==="end"?I-$:q(ze,ze+$,$,Pt,r,ze+I,ze+I+Et,Et),a=Math.max(0,a+Je),s=Math.max(0,s+ze);else{a=Ye==="start"?oe-rt-v:Ye==="end"?oe-Xe+l+h:Ye==="nearest"?q(rt,Xe,he,v,l+h,oe,oe+ot,ot):oe-(rt+he/2)+h/2,s=lt==="start"?I-et-Pt:lt==="center"?I-(et+se/2)+m/2:lt==="end"?I-Ge+r+m:q(et,Ge,se,Pt,r+m,I,I+Et,Et);const{scrollLeft:O,scrollTop:F}=Y;a=A===0?0:Math.max(0,Math.min(F+a/A,Y.scrollHeight-he/A+h)),s=b===0?0:Math.max(0,Math.min(O+s/b,Y.scrollWidth-se/b+m)),oe+=F-a,I+=O-s}re.push({el:Y,top:a,left:s})}return re},_=Z=>Z===!1?{block:"end",inline:"nearest"}:(n=>n===Object(n)&&Object.keys(n).length!==0)(Z)?Z:{block:"start",inline:"nearest"};function de(Z,n){if(!Z.isConnected||!(ie=>{let u=ie;for(;u&&u.parentNode;){if(u.parentNode===document)return!0;u=u.parentNode instanceof ShadowRoot?u.parentNode.host:u.parentNode}return!1})(Z))return;const ve=(ie=>{const u=window.getComputedStyle(ie);return{top:parseFloat(u.scrollMarginTop)||0,right:parseFloat(u.scrollMarginRight)||0,bottom:parseFloat(u.scrollMarginBottom)||0,left:parseFloat(u.scrollMarginLeft)||0}})(Z);if((ie=>typeof ie=="object"&&typeof ie.behavior=="function")(n))return n.behavior(te(Z,n));const i=typeof n=="boolean"||n==null?void 0:n.behavior;for(const{el:ie,top:u,left:nt}of te(Z,_(n))){const Ye=u-ve.top+ve.bottom,lt=nt-ve.left+ve.right;ie.scroll({top:Ye,left:lt,behavior:i})}}}}]);