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

66 lines
226 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[5650],{84105:function(ot,be,r){"use strict";r.d(be,{Z:function(){return B}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},le=p,R=r(7657),T=function(re,ce){return h.createElement(R.Z,(0,C.Z)({},re,{ref:ce,icon:le}))},N=h.forwardRef(T),B=N},18785:function(ot,be,r){"use strict";r.d(be,{Z:function(){return B}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},le=p,R=r(7657),T=function(re,ce){return h.createElement(R.Z,(0,C.Z)({},re,{ref:ce,icon:le}))},N=h.forwardRef(T),B=N},73331:function(ot,be,r){"use strict";r.d(be,{Z:function(){return B}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},le=p,R=r(7657),T=function(re,ce){return h.createElement(R.Z,(0,C.Z)({},re,{ref:ce,icon:le}))},N=h.forwardRef(T),B=N},15277:function(ot,be,r){"use strict";r.d(be,{Z:function(){return B}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},le=p,R=r(7657),T=function(re,ce){return h.createElement(R.Z,(0,C.Z)({},re,{ref:ce,icon:le}))},N=h.forwardRef(T),B=N},33853:function(ot,be,r){"use strict";r.d(be,{Z:function(){return B}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},le=p,R=r(7657),T=function(re,ce){return h.createElement(R.Z,(0,C.Z)({},re,{ref:ce,icon:le}))},N=h.forwardRef(T),B=N},38819:function(ot,be,r){"use strict";r.d(be,{Z:function(){return B}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},le=p,R=r(7657),T=function(re,ce){return h.createElement(R.Z,(0,C.Z)({},re,{ref:ce,icon:le}))},N=h.forwardRef(T),B=N},47472:function(ot,be,r){"use strict";r.d(be,{Z:function(){return B}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},le=p,R=r(7657),T=function(re,ce){return h.createElement(R.Z,(0,C.Z)({},re,{ref:ce,icon:le}))},N=h.forwardRef(T),B=N},35593:function(ot,be,r){"use strict";r.d(be,{Z:function(){return Ue}});var C=r(44127),h=r(72071),p=r(6620),le=r(43403),R=r(92310),T=r.n(R),N=r(29301),B=r(76846),ae=r(96452),re=r(6089),ce=r(80402),Q=r(34280),d=r(49658),H=r(59301),xe=r(96663),we=r(77900),$e=r(8654);function Z(l){var m=l.prefixCls,o=l.align,S=l.arrow,I=l.arrowPos,W=S||{},_=W.className,V=W.content,de=I.x,ge=de===void 0?0:de,me=I.y,ye=me===void 0?0:me,Me=H.useRef();if(!o||!o.points)return null;var Pe={position:"absolute"};if(o.autoArrow!==!1){var Se=o.points[0],oe=o.points[1],De=Se[0],Ae=Se[1],We=oe[0],Xe=oe[1];De===We||!["t","b"].includes(De)?Pe.top=ye:De==="t"?Pe.top=0:Pe.bottom=0,Ae===Xe||!["l","r"].includes(Ae)?Pe.left=ge:Ae==="l"?Pe.left=0:Pe.right=0}return H.createElement("div",{ref:Me,className:T()("".concat(m,"-arrow"),_),style:Pe},V)}function ie(l){var m=l.prefixCls,o=l.open,S=l.zIndex,I=l.mask,W=l.motion;return I?H.createElement(we.default,(0,xe.Z)({},W,{motionAppear:!0,visible:o,removeOnLeave:!0}),function(_){var V=_.className;return H.createElement("div",{style:{zIndex:S},className:T()("".concat(m,"-mask"),V)})}):null}var F=H.memo(function(l){var m=l.children;return m},function(l,m){return m.cache}),ue=F,s=H.forwardRef(function(l,m){var o=l.popup,S=l.className,I=l.prefixCls,W=l.style,_=l.target,V=l.onVisibleChanged,de=l.open,ge=l.keepDom,me=l.fresh,ye=l.onClick,Me=l.mask,Pe=l.arrow,Se=l.arrowPos,oe=l.align,De=l.motion,Ae=l.maskMotion,We=l.forceRender,Xe=l.getPopupContainer,Ee=l.autoDestroy,Qe=l.portal,ut=l.zIndex,rt=l.onMouseEnter,Te=l.onMouseLeave,Ge=l.onPointerEnter,bt=l.ready,ct=l.offsetX,Dt=l.offsetY,yt=l.offsetR,lt=l.offsetB,Ye=l.onAlign,Je=l.onPrepare,gt=l.stretch,nt=l.targetWidth,xt=l.targetHeight,ft=typeof o=="function"?o():o,pt=de||ge,Tt=(Xe==null?void 0:Xe.length)>0,St=H.useState(!Xe||!Tt),Ht=(0,h.Z)(St,2),Pt=Ht[0],ht=Ht[1];if((0,Q.Z)(function(){!Pt&&Tt&&_&&ht(!0)},[Pt,Tt,_]),!Pt)return null;var Ke="auto",qe={left:"-1000vw",top:"-1000vh",right:Ke,bottom:Ke};if(bt||!de){var dt,Gt=oe.points,nn=oe.dynamicInset||((dt=oe._experimental)===null||dt===void 0?void 0:dt.dynamicInset),kt=nn&&Gt[0][1]==="r",rn=nn&&Gt[0][0]==="b";kt?(qe.right=yt,qe.left=Ke):(qe.left=ct,qe.right=Ke),rn?(qe.bottom=lt,qe.top=Ke):(qe.top=Dt,qe.bottom=Ke)}var zt={};return gt&&(gt.includes("height")&&xt?zt.height=xt:gt.includes("minHeight")&&xt&&(zt.minHeight=xt),gt.includes("width")&&nt?zt.width=nt:gt.includes("minWidth")&&nt&&(zt.minWidth=nt)),de||(zt.pointerEvents="none"),H.createElement(Qe,{open:We||pt,getContainer:Xe&&function(){return Xe(_)},autoDestroy:Ee},H.createElement(ie,{prefixCls:I,open:de,zIndex:ut,mask:Me,motion:Ae}),H.createElement(N.Z,{onResize:Ye,disabled:!de},function(Qt){return H.createElement(we.default,(0,xe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:We,leavedClassName:"".concat(I,"-hidden")},De,{onAppearPrepare:Je,onEnterPrepare:Je,visible:de,onVisibleChanged:function(Nt){var un;De==null||(un=De.onVisibleChanged)===null||un===void 0||un.call(De,Nt),V(Nt)}}),function(an,Nt){var un=an.className,Ct=an.style,dn=T()(I,un,S);return H.createElement("div",{ref:(0,$e.sQ)(Qt,m,Nt),className:dn,style:(0,C.Z)((0,C.Z)((0,C.Z)((0,C.Z)({"--arrow-x":"".concat(Se.x||0,"px"),"--arrow-y":"".concat(Se.y||0,"px")},qe),zt),Ct),{},{boxSizing:"border-box",zIndex:ut},W),onMouseEnter:rt,onMouseLeave:Te,onPointerEnter:Ge,onClick:ye},Pe&&H.createElement(Z,{prefixCls:I,arrow:Pe,arrowPos:Se,align:oe}),H.createElement(ue,{cache:!de&&!me},ft))})}))}),u=s,g=H.forwardRef(function(l,m){var o=l.children,S=l.getTriggerDOMNode,I=(0,$e.Yr)(o),W=H.useCallback(function(V){(0,$e.mH)(m,S?S(V):V)},[S]),_=(0,$e.x1)(W,o.ref);return I?H.cloneElement(o,{ref:_}):o}),f=g,X=H.createContext(null),K=X;function he(l){return l?Array.isArray(l)?l:[l]:[]}function U(l,m,o,S){return H.useMemo(function(){var I=he(o!=null?o:m),W=he(S!=null?S:m),_=new Set(I),V=new Set(W);return l&&(_.has("hover")&&(_.delete("hover"),_.add("click")),V.has("hover")&&(V.delete("hover"),V.add("click"))),[_,V]},[l,m,o,S])}var $=r(29194);function b(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;return o?l[0]===m[0]:l[0]===m[0]&&l[1]===m[1]}function P(l,m,o,S){for(var I=o.points,W=Object.keys(l),_=0;_<W.length;_+=1){var V,de=W[_];if(b((V=l[de])===null||V===void 0?void 0:V.points,I,S))return"".concat(m,"-placement-").concat(de)}return""}function i(l,m,o,S){return m||(o?{motionName:"".concat(l,"-").concat(o)}:S?{motionName:S}:null)}function E(l){return l.ownerDocument.defaultView}function w(l){for(var m=[],o=l==null?void 0:l.parentElement,S=["hidden","scroll","clip","auto"];o;){var I=E(o).getComputedStyle(o),W=I.overflowX,_=I.overflowY,V=I.overflow;[W,_,V].some(function(de){return S.includes(de)})&&m.push(o),o=o.parentElement}return m}function v(l){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(l)?m:l}function O(l){return v(parseFloat(l),0)}function Y(l,m){var o=(0,C.Z)({},l);return(m||[]).forEach(function(S){if(!(S instanceof HTMLBodyElement||S instanceof HTMLHtmlElement)){var I=E(S).getComputedStyle(S),W=I.overflow,_=I.overflowClipMargin,V=I.borderTopWidth,de=I.borderBottomWidth,ge=I.borderLeftWidth,me=I.borderRightWidth,ye=S.getBoundingClientRect(),Me=S.offsetHeight,Pe=S.clientHeight,Se=S.offsetWidth,oe=S.clientWidth,De=O(V),Ae=O(de),We=O(ge),Xe=O(me),Ee=v(Math.round(ye.width/Se*1e3)/1e3),Qe=v(Math.round(ye.height/Me*1e3)/1e3),ut=(Se-oe-We-Xe)*Ee,rt=(Me-Pe-De-Ae)*Qe,Te=De*Qe,Ge=Ae*Qe,bt=We*Ee,ct=Xe*Ee,Dt=0,yt=0;if(W==="clip"){var lt=O(_);Dt=lt*Ee,yt=lt*Qe}var Ye=ye.x+bt-Dt,Je=ye.y+Te-yt,gt=Ye+ye.width+2*Dt-bt-ct-ut,nt=Je+ye.height+2*yt-Te-Ge-rt;o.left=Math.max(o.left,Ye),o.top=Math.max(o.top,Je),o.right=Math.min(o.right,gt),o.bottom=Math.min(o.bottom,nt)}}),o}function G(l){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o="".concat(m),S=o.match(/^(.*)\%$/);return S?l*(parseFloat(S[1])/100):parseFloat(o)}function ee(l,m){var o=m||[],S=(0,h.Z)(o,2),I=S[0],W=S[1];return[G(l.width,I),G(l.height,W)]}function ve(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[l[0],l[1]]}function pe(l,m){var o=m[0],S=m[1],I,W;return o==="t"?W=l.y:o==="b"?W=l.y+l.height:W=l.y+l.height/2,S==="l"?I=l.x:S==="r"?I=l.x+l.width:I=l.x+l.width/2,{x:I,y:W}}function J(l,m){var o={t:"b",b:"t",l:"r",r:"l"};return l.map(function(S,I){return I===m?o[S]||"c":S}).join("")}function k(l,m,o,S,I,W,_){var V=H.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:I[S]||{}}),de=(0,h.Z)(V,2),ge=de[0],me=de[1],ye=H.useRef(0),Me=H.useMemo(function(){return m?w(m):[]},[m]),Pe=H.useRef({}),Se=function(){Pe.current={}};l||Se();var oe=(0,re.Z)(function(){if(m&&o&&l){let en=function(Ut,xn){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dn,cn=ft.x+Ut,tn=ft.y+xn,Xn=cn+dt,kn=tn+qe,Yn=Math.max(cn,Sn.left),qn=Math.max(tn,Sn.top),_n=Math.min(Xn,Sn.right),Fn=Math.min(kn,Sn.bottom);return Math.max(0,(_n-Yn)*(Fn-qn))},Dn=function(){_e=ft.y+M,at=_e+qe,mt=ft.x+j,Rt=mt+dt};var We,Xe,Ee=m,Qe=Ee.ownerDocument,ut=E(Ee),rt=ut.getComputedStyle(Ee),Te=rt.width,Ge=rt.height,bt=rt.position,ct=Ee.style.left,Dt=Ee.style.top,yt=Ee.style.right,lt=Ee.style.bottom,Ye=Ee.style.overflow,Je=(0,C.Z)((0,C.Z)({},I[S]),W),gt=Qe.createElement("div");(We=Ee.parentElement)===null||We===void 0||We.appendChild(gt),gt.style.left="".concat(Ee.offsetLeft,"px"),gt.style.top="".concat(Ee.offsetTop,"px"),gt.style.position=bt,gt.style.height="".concat(Ee.offsetHeight,"px"),gt.style.width="".concat(Ee.offsetWidth,"px"),Ee.style.left="0",Ee.style.top="0",Ee.style.right="auto",Ee.style.bottom="auto",Ee.style.overflow="hidden";var nt;if(Array.isArray(o))nt={x:o[0],y:o[1],width:0,height:0};else{var xt=o.getBoundingClientRect();nt={x:xt.x,y:xt.y,width:xt.width,height:xt.height}}var ft=Ee.getBoundingClientRect(),pt=Qe.documentElement,Tt=pt.clientWidth,St=pt.clientHeight,Ht=pt.scrollWidth,Pt=pt.scrollHeight,ht=pt.scrollTop,Ke=pt.scrollLeft,qe=ft.height,dt=ft.width,Gt=nt.height,nn=nt.width,kt={left:0,top:0,right:Tt,bottom:St},rn={left:-Ke,top:-ht,right:Ht-Ke,bottom:Pt-ht},zt=Je.htmlRegion,Qt="visible",an="visibleFirst";zt!=="scroll"&&zt!==an&&(zt=Qt);var Nt=zt===an,un=Y(rn,Me),Ct=Y(kt,Me),dn=zt===Qt?Ct:un,Kt=Nt?Ct:dn;Ee.style.left="auto",Ee.style.top="auto",Ee.style.right="0",Ee.style.bottom="0";var On=Ee.getBoundingClientRect();Ee.style.left=ct,Ee.style.top=Dt,Ee.style.right=yt,Ee.style.bottom=lt,Ee.style.overflow=Ye,(Xe=Ee.parentElement)===null||Xe===void 0||Xe.removeChild(gt);var fn=v(Math.round(dt/parseFloat(Te)*1e3)/1e3),on=v(Math.round(qe/parseFloat(Ge)*1e3)/1e3);if(fn===0||on===0||(0,B.Sh)(o)&&!(0,$.Z)(o))return;var Tn=Je.offset,At=Je.targetOffset,In=ee(ft,Tn),Nn=(0,h.Z)(In,2),Ft=Nn[0],ke=Nn[1],D=ee(nt,At),z=(0,h.Z)(D,2),te=z[0],fe=z[1];nt.x-=te,nt.y-=fe;var a=Je.points||[],e=(0,h.Z)(a,2),t=e[0],n=e[1],y=ve(n),c=ve(t),x=pe(nt,y),A=pe(ft,c),ne=(0,C.Z)({},Je),j=x.x-A.x+Ft,M=x.y-A.y+ke,L=en(j,M),q=en(j,M,Ct),Le=pe(nt,["t","l"]),Ne=pe(ft,["t","l"]),He=pe(nt,["b","r"]),Be=pe(ft,["b","r"]),Fe=Je.overflow||{},et=Fe.adjustX,it=Fe.adjustY,st=Fe.shiftX,wt=Fe.shiftY,se=function(xn){return typeof xn=="boolean"?xn:xn>=0},_e,at,mt,Rt;Dn();var Bt=se(it),Wt=c[0]===y[0];if(Bt&&c[0]==="t"&&(at>Kt.bottom||Pe.current.bt)){var Et=M;Wt?Et-=qe-Gt:Et=Le.y-Be.y-ke;var Ot=en(j,Et),It=en(j,Et,Ct);Ot>L||Ot===L&&(!Nt||It>=q)?(Pe.current.bt=!0,M=Et,ke=-ke,ne.points=[J(c,0),J(y,0)]):Pe.current.bt=!1}if(Bt&&c[0]==="b"&&(_e<Kt.top||Pe.current.tb)){var vt=M;Wt?vt+=qe-Gt:vt=He.y-Ne.y-ke;var sn=en(j,vt),hn=en(j,vt,Ct);sn>L||sn===L&&(!Nt||hn>=q)?(Pe.current.tb=!0,M=vt,ke=-ke,ne.points=[J(c,0),J(y,0)]):Pe.current.tb=!1}var ln=se(et),gn=c[1]===y[1];if(ln&&c[1]==="l"&&(Rt>Kt.right||Pe.current.rl)){var Jt=j;gn?Jt-=dt-nn:Jt=Le.x-Be.x-Ft;var Vt=en(Jt,M),_t=en(Jt,M,Ct);Vt>L||Vt===L&&(!Nt||_t>=q)?(Pe.current.rl=!0,j=Jt,Ft=-Ft,ne.points=[J(c,1),J(y,1)]):Pe.current.rl=!1}if(ln&&c[1]==="r"&&(mt<Kt.left||Pe.current.lr)){var mn=j;gn?mn+=dt-nn:mn=He.x-Ne.x-Ft;var bn=en(mn,M),yn=en(mn,M,Ct);bn>L||bn===L&&(!Nt||yn>=q)?(Pe.current.lr=!0,j=mn,Ft=-Ft,ne.points=[J(c,1),J(y,1)]):Pe.current.lr=!1}Dn();var Zt=st===!0?0:st;typeof Zt=="number"&&(mt<Ct.left&&(j-=mt-Ct.left-Ft,nt.x+nn<Ct.left+Zt&&(j+=nt.x-Ct.left+nn-Zt)),Rt>Ct.right&&(j-=Rt-Ct.right-Ft,nt.x>Ct.right-Zt&&(j+=nt.x-Ct.right+Zt)));var qt=wt===!0?0:wt;typeof qt=="number"&&(_e<Ct.top&&(M-=_e-Ct.top-ke,nt.y+Gt<Ct.top+qt&&(M+=nt.y-Ct.top+Gt-qt)),at>Ct.bottom&&(M-=at-Ct.bottom-ke,nt.y>Ct.bottom-qt&&(M+=nt.y-Ct.bottom+qt)));var pn=ft.x+j,Rn=pn+dt,vn=ft.y+M,$n=vn+qe,Mn=nt.x,Pn=Mn+nn,Wn=nt.y,zn=Wn+Gt,Kn=Math.max(pn,Mn),Zn=Math.min(Rn,Pn),Cn=(Kn+Zn)/2,Vn=Cn-pn,Ln=Math.max(vn,Wn),jn=Math.min($n,zn),Un=(Ln+jn)/2,An=Un-vn;_==null||_(m,ne);var Bn=On.right-ft.x-(j+ft.width),Hn=On.bottom-ft.y-(M+ft.height);me({ready:!0,offsetX:j/fn,offsetY:M/on,offsetR:Bn/fn,offsetB:Hn/on,arrowX:Vn/fn,arrowY:An/on,scaleX:fn,scaleY:on,align:ne})}}),De=function(){ye.current+=1;var Xe=ye.current;Promise.resolve().then(function(){ye.current===Xe&&oe()})},Ae=function(){me(function(Xe){return(0,C.Z)((0,C.Z)({},Xe),{},{ready:!1})})};return(0,Q.Z)(Ae,[S]),(0,Q.Z)(function(){l||Ae()},[l]),[ge.ready,ge.offsetX,ge.offsetY,ge.offsetR,ge.offsetB,ge.arrowX,ge.arrowY,ge.scaleX,ge.scaleY,ge.align,De]}var Ce=r(19127);function je(l,m,o,S,I){(0,Q.Z)(function(){if(l&&m&&o){let ye=function(){S(),I()};var W=m,_=o,V=w(W),de=w(_),ge=E(_),me=new Set([ge].concat((0,Ce.Z)(V),(0,Ce.Z)(de)));return me.forEach(function(Me){Me.addEventListener("scroll",ye,{passive:!0})}),ge.addEventListener("resize",ye,{passive:!0}),S(),function(){me.forEach(function(Me){Me.removeEventListener("scroll",ye),ge.removeEventListener("resize",ye)})}}},[l,m,o])}var Oe=r(48736),Ie=r(16089);function ze(l,m,o,S,I,W,_,V){var de=H.useRef(l),ge=H.useRef(!1);de.current!==l&&(ge.current=!0,de.current=l),H.useEffect(function(){var me=(0,Ie.Z)(function(){ge.current=!1});return function(){Ie.Z.cancel(me)}},[l]),H.useEffect(function(){if(m&&S&&(!I||W)){var me=function(){var bt=!1,ct=function(lt){var Ye=lt.target;bt=_(Ye)},Dt=function(lt){var Ye=lt.target;!ge.current&&de.current&&!bt&&!_(Ye)&&V(!1)};return[ct,Dt]},ye=me(),Me=(0,h.Z)(ye,2),Pe=Me[0],Se=Me[1],oe=me(),De=(0,h.Z)(oe,2),Ae=De[0],We=De[1],Xe=E(S);Xe.addEventListener("mousedown",Pe,!0),Xe.addEventListener("click",Se,!0),Xe.addEventListener("contextmenu",Se,!0);var Ee=(0,ae.A)(o);if(Ee&&(Ee.addEventListener("mousedown",Ae,!0),Ee.addEventListener("click",We,!0),Ee.addEventListener("contextmenu",We,!0)),0)var Qe,ut,rt,Te;return function(){Xe.removeEventListener("mousedown",Pe,!0),Xe.removeEventListener("click",Se,!0),Xe.removeEventListener("contextmenu",Se,!0),Ee&&(Ee.removeEventListener("mousedown",Ae,!0),Ee.removeEventListener("click",We,!0),Ee.removeEventListener("contextmenu",We,!0))}}},[m,o,S,I,W])}var Re=["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 Ve(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.Z,m=H.forwardRef(function(o,S){var I=o.prefixCls,W=I===void 0?"rc-trigger-popup":I,_=o.children,V=o.action,de=V===void 0?"hover":V,ge=o.showAction,me=o.hideAction,ye=o.popupVisible,Me=o.defaultPopupVisible,Pe=o.onPopupVisibleChange,Se=o.afterPopupVisibleChange,oe=o.mouseEnterDelay,De=o.mouseLeaveDelay,Ae=De===void 0?.1:De,We=o.focusDelay,Xe=o.blurDelay,Ee=o.mask,Qe=o.maskClosable,ut=Qe===void 0?!0:Qe,rt=o.getPopupContainer,Te=o.forceRender,Ge=o.autoDestroy,bt=o.destroyPopupOnHide,ct=o.popup,Dt=o.popupClassName,yt=o.popupStyle,lt=o.popupPlacement,Ye=o.builtinPlacements,Je=Ye===void 0?{}:Ye,gt=o.popupAlign,nt=o.zIndex,xt=o.stretch,ft=o.getPopupClassNameFromAlign,pt=o.fresh,Tt=o.alignPoint,St=o.onPopupClick,Ht=o.onPopupAlign,Pt=o.arrow,ht=o.popupMotion,Ke=o.maskMotion,qe=o.popupTransitionName,dt=o.popupAnimation,Gt=o.maskTransitionName,nn=o.maskAnimation,kt=o.className,rn=o.getTriggerDOMNode,zt=(0,p.Z)(o,Re),Qt=Ge||bt||!1,an=H.useState(!1),Nt=(0,h.Z)(an,2),un=Nt[0],Ct=Nt[1];(0,Q.Z)(function(){Ct((0,d.Z)())},[]);var dn=H.useRef({}),Kt=H.useContext(K),On=H.useMemo(function(){return{registerSubPopup:function(tt,Lt){dn.current[tt]=Lt,Kt==null||Kt.registerSubPopup(tt,Lt)}}},[Kt]),fn=(0,ce.Z)(),on=H.useState(null),Tn=(0,h.Z)(on,2),At=Tn[0],In=Tn[1],Nn=(0,re.Z)(function(Ze){(0,B.Sh)(Ze)&&At!==Ze&&In(Ze),Kt==null||Kt.registerSubPopup(fn,Ze)}),Ft=H.useState(null),ke=(0,h.Z)(Ft,2),D=ke[0],z=ke[1],te=H.useRef(null),fe=(0,re.Z)(function(Ze){(0,B.Sh)(Ze)&&D!==Ze&&(z(Ze),te.current=Ze)}),a=H.Children.only(_),e=(a==null?void 0:a.props)||{},t={},n=(0,re.Z)(function(Ze){var tt,Lt,Xt=D;return(Xt==null?void 0:Xt.contains(Ze))||((tt=(0,ae.A)(Xt))===null||tt===void 0?void 0:tt.host)===Ze||Ze===Xt||(At==null?void 0:At.contains(Ze))||((Lt=(0,ae.A)(At))===null||Lt===void 0?void 0:Lt.host)===Ze||Ze===At||Object.values(dn.current).some(function($t){return($t==null?void 0:$t.contains(Ze))||Ze===$t})}),y=i(W,ht,dt,qe),c=i(W,Ke,nn,Gt),x=H.useState(Me||!1),A=(0,h.Z)(x,2),ne=A[0],j=A[1],M=ye!=null?ye:ne,L=(0,re.Z)(function(Ze){ye===void 0&&j(Ze)});(0,Q.Z)(function(){j(ye||!1)},[ye]);var q=H.useRef(M);q.current=M;var Le=H.useRef([]);Le.current=[];var Ne=(0,re.Z)(function(Ze){var tt;L(Ze),((tt=Le.current[Le.current.length-1])!==null&&tt!==void 0?tt:M)!==Ze&&(Le.current.push(Ze),Pe==null||Pe(Ze))}),He=H.useRef(),Be=function(){clearTimeout(He.current)},Fe=function(tt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Be(),Lt===0?Ne(tt):He.current=setTimeout(function(){Ne(tt)},Lt*1e3)};H.useEffect(function(){return Be},[]);var et=H.useState(!1),it=(0,h.Z)(et,2),st=it[0],wt=it[1];(0,Q.Z)(function(Ze){(!Ze||M)&&wt(!0)},[M]);var se=H.useState(null),_e=(0,h.Z)(se,2),at=_e[0],mt=_e[1],Rt=H.useState([0,0]),Bt=(0,h.Z)(Rt,2),Wt=Bt[0],Et=Bt[1],Ot=function(tt){Et([tt.clientX,tt.clientY])},It=k(M,At,Tt?Wt:D,lt,Je,gt,Ht),vt=(0,h.Z)(It,11),sn=vt[0],hn=vt[1],ln=vt[2],gn=vt[3],Jt=vt[4],Vt=vt[5],_t=vt[6],mn=vt[7],bn=vt[8],yn=vt[9],Zt=vt[10],qt=U(un,de,ge,me),pn=(0,h.Z)(qt,2),Rn=pn[0],vn=pn[1],$n=Rn.has("click"),Mn=vn.has("click")||vn.has("contextMenu"),Pn=(0,re.Z)(function(){st||Zt()}),Wn=function(){q.current&&Tt&&Mn&&Fe(!1)};je(M,D,At,Pn,Wn),(0,Q.Z)(function(){Pn()},[Wt,lt]),(0,Q.Z)(function(){M&&!(Je!=null&&Je[lt])&&Pn()},[JSON.stringify(gt)]);var zn=H.useMemo(function(){var Ze=P(Je,W,yn,Tt);return T()(Ze,ft==null?void 0:ft(yn))},[yn,ft,Je,W,Tt]);H.useImperativeHandle(S,function(){return{nativeElement:te.current,forceAlign:Pn}});var Kn=H.useState(0),Zn=(0,h.Z)(Kn,2),Cn=Zn[0],Vn=Zn[1],Ln=H.useState(0),jn=(0,h.Z)(Ln,2),Un=jn[0],An=jn[1],Bn=function(){if(xt&&D){var tt=D.getBoundingClientRect();Vn(tt.width),An(tt.height)}},Hn=function(){Bn(),Pn()},en=function(tt){wt(!1),Zt(),Se==null||Se(tt)},Dn=function(){return new Promise(function(tt){Bn(),mt(function(){return tt})})};(0,Q.Z)(function(){at&&(Zt(),at(),mt(null))},[at]);function Ut(Ze,tt,Lt,Xt){t[Ze]=function($t){var Qn;Xt==null||Xt($t),Fe(tt,Lt);for(var er=arguments.length,tr=new Array(er>1?er-1:0),Jn=1;Jn<er;Jn++)tr[Jn-1]=arguments[Jn];(Qn=e[Ze])===null||Qn===void 0||Qn.call.apply(Qn,[e,$t].concat(tr))}}($n||Mn)&&(t.onClick=function(Ze){var tt;q.current&&Mn?Fe(!1):!q.current&&$n&&(Ot(Ze),Fe(!0));for(var Lt=arguments.length,Xt=new Array(Lt>1?Lt-1:0),$t=1;$t<Lt;$t++)Xt[$t-1]=arguments[$t];(tt=e.onClick)===null||tt===void 0||tt.call.apply(tt,[e,Ze].concat(Xt))}),ze(M,Mn,D,At,Ee,ut,n,Fe);var xn=Rn.has("hover"),Sn=vn.has("hover"),cn,tn;xn&&(Ut("onMouseEnter",!0,oe,function(Ze){Ot(Ze)}),Ut("onPointerEnter",!0,oe,function(Ze){Ot(Ze)}),cn=function(tt){(M||st)&&At!==null&&At!==void 0&&At.contains(tt.target)&&Fe(!0,oe)},Tt&&(t.onMouseMove=function(Ze){var tt;(tt=e.onMouseMove)===null||tt===void 0||tt.call(e,Ze)})),Sn&&(Ut("onMouseLeave",!1,Ae),Ut("onPointerLeave",!1,Ae),tn=function(){Fe(!1,Ae)}),Rn.has("focus")&&Ut("onFocus",!0,We),vn.has("focus")&&Ut("onBlur",!1,Xe),Rn.has("contextMenu")&&(t.onContextMenu=function(Ze){var tt;q.current&&vn.has("contextMenu")?Fe(!1):(Ot(Ze),Fe(!0)),Ze.preventDefault();for(var Lt=arguments.length,Xt=new Array(Lt>1?Lt-1:0),$t=1;$t<Lt;$t++)Xt[$t-1]=arguments[$t];(tt=e.onContextMenu)===null||tt===void 0||tt.call.apply(tt,[e,Ze].concat(Xt))}),kt&&(t.className=T()(e.className,kt));var Xn=(0,C.Z)((0,C.Z)({},e),t),kn={},Yn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yn.forEach(function(Ze){zt[Ze]&&(kn[Ze]=function(){for(var tt,Lt=arguments.length,Xt=new Array(Lt),$t=0;$t<Lt;$t++)Xt[$t]=arguments[$t];(tt=Xn[Ze])===null||tt===void 0||tt.call.apply(tt,[Xn].concat(Xt)),zt[Ze].apply(zt,Xt)})});var qn=H.cloneElement(a,(0,C.Z)((0,C.Z)({},Xn),kn)),_n={x:Vt,y:_t},Fn=Pt?(0,C.Z)({},Pt!==!0?Pt:{}):null;return H.createElement(H.Fragment,null,H.createElement(N.Z,{disabled:!M,ref:fe,onResize:Hn},H.createElement(f,{getTriggerDOMNode:rn},qn)),H.createElement(K.Provider,{value:On},H.createElement(u,{portal:l,ref:Nn,prefixCls:W,popup:ct,className:T()(Dt,zn),style:yt,target:D,onMouseEnter:cn,onMouseLeave:tn,onPointerEnter:cn,zIndex:nt,open:M,keepDom:st,fresh:pt,onClick:St,mask:Ee,motion:y,maskMotion:c,onVisibleChanged:en,onPrepare:Dn,forceRender:Te,autoDestroy:Qt,getPopupContainer:rt,align:yn,arrow:Fn,arrowPos:_n,ready:sn,offsetX:hn,offsetY:ln,offsetR:gn,offsetB:Jt,onAlign:Pn,stretch:xt,targetWidth:Cn/mn,targetHeight:Un/bn})))});return m}var Ue=Ve(le.Z)},65347:function(){"use strict"},60001:function(ot,be,r){"use strict";r.r(be),r.d(be,{default:function(){return Z}});var C=r(59301),h=r(89070),p={flex_box_center:"flex_box_center___DHrsr",flex_space_between:"flex_space_between___VeuX0",flex_box_vertical_center:"flex_box_vertical_center___gw9oR",flex_box_center_end:"flex_box_center_end___DyeB2",flex_box_column:"flex_box_column___b77m0",Selecttext:"Selecttext___F1tf1",Updatecount:"Updatecount___VMhwg",Spanradius:"Spanradius___FVSCg"},le=r(33555),R=r(65347),T=r(8591),N=r(66104),B=r(92832),ae=r(3113),re=r(3294),ce=r(955),Q=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,xe=(ie,F)=>{var ue={};for(var s in ie)d.call(ie,s)&&F.indexOf(s)<0&&(ue[s]=ie[s]);if(ie!=null&&Q)for(var s of Q(ie))F.indexOf(s)<0&&H.call(ie,s)&&(ue[s]=ie[s]);return ue},we=(ie,F,ue)=>new Promise((s,u)=>{var g=K=>{try{X(ue.next(K))}catch(he){u(he)}},f=K=>{try{X(ue.throw(K))}catch(he){u(he)}},X=K=>K.done?s(K.value):Promise.resolve(K.value).then(g,f);X((ue=ue.apply(ie,F)).next())});const $e=ie=>{var F=ie,{globalSetting:ue,loading:s,dispatch:u}=F,g=xe(F,["globalSetting","loading","dispatch"]);const[f,X]=(0,C.useState)(),[K,he]=(0,C.useState)(),[U,$]=(0,C.useState)(),[b,P]=(0,C.useState)(""),i=(0,C.useRef)(null),[E,w]=(0,C.useState)(""),{identifier:v,Teannameid:O}=(0,h.useParams)(),[Y,G]=(0,C.useState)("");(0,C.useEffect)(()=>{function J(){return we(this,null,function*(){var k,Ce,je,Oe;X(yield u({type:"competitions/getHeader",payload:{identifier:v}}));let Ie=yield u({type:"competitions/getTeamDetail",payload:{identifier:v,Teannameid:O}});Ie&&(he((k=Ie==null?void 0:Ie.data)==null?void 0:k.name),w(`${(Ce=re.Z)==null?void 0:Ce.IMG_SERVER}/${(je=Ie==null?void 0:Ie.data)==null?void 0:je.team_log}`),G((Oe=Ie==null?void 0:Ie.data)==null?void 0:Oe.team_log))})}v&&J()},[v]),(0,C.useEffect)(()=>{(0,ce.Dk)("\u5728\u7EBF\u7ADE\u8D5B")});function ee(){$(i.current.getCroppedCanvas().toDataURL())}function ve(){return we(this,null,function*(){var J,k;if(!K){T.ZP.info("\u961F\u4F0D\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}let Ce=yield u({type:"competitions/UpTeam",payload:{identifier:v,Teannameid:O,name:K,image:((k=(J=i==null?void 0:i.current)==null?void 0:J.getCroppedCanvas())==null?void 0:k.toDataURL("image/jpeg"))||""}});(Ce==null?void 0:Ce.status)===0&&(T.ZP.info("\u4FEE\u6539\u6210\u529F"),h.history.push(`/competitions/${v}/detail/enroll`))})}function pe(J){const k=J.target.files[0];if(k&&k.size>2*1024*1024){T.ZP.info("\u4EC5\u652F\u6301\u6587\u4EF6\u5927\u5C0F\u5C0F\u4E8E2M\u7684\u6587\u4EF6");return}var Ce=new FileReader;Ce.readAsBinaryString(k),Ce.onload=()=>{let je=btoa(Ce.result);w(`data:${k.type};base64,${je}`)},Ce.onerror=function(){}}return C.createElement("div",{className:"edu-container minH500"},C.createElement(N.Z,{className:"mt10",separator:">"},C.createElement(N.Z.Item,null,C.createElement(h.Link,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),C.createElement(N.Z.Item,null,C.createElement(h.Link,{to:`/competitions/${v}/`},f&&f.name,f&&f.sub_title?"-"+f&&f.sub_title:null)),C.createElement(N.Z.Item,null,C.createElement(h.Link,{to:`/competitions/${v}/detail/enroll`},"\u62A5\u540D")),C.createElement(N.Z.Item,null,"\u7F16\u8F91\u6218\u961F\u4FE1\u606F")),C.createElement("div",{className:p.Selecttext},"\u7F16\u8F91\u6218\u961F"),C.createElement("div",{className:p.Updatecount},C.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"\u961F\u540D\uFF1A",C.createElement("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"}},C.createElement(B.default,{placeholder:"\u8BF7\u8F93\u5165\u961F\u540D",value:K,maxLength:60,addonAfter:K!=null&&K.length?String(K&&K.length)+"/60":"0/60",onChange:J=>he(J.target.value)})),C.createElement("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"}},C.createElement("span",null,"LOGO\uFF1A"),C.createElement("label",{id:"uploadBtn",style:{color:"#4DACFF",cursor:"pointer"}},C.createElement("input",{type:"file",className:"sr-only",id:"inputImage",name:"file",accept:"image/*",onChange:pe,style:{display:"none"}}),"\u4E0A\u4F20LOGO"),"\xA0",C.createElement("span",null,"(\u652F\u6301jpg\u3001gif\u3001png\u683C\u5F0F\u7684\u56FE\u7247\uFF0C\u5EFA\u8BAE\u6587\u4EF6\u5C0F\u4E8E2M)")),C.createElement("div",{style:{marginTop:"15px",marginLeft:"8px",display:"flex"}},U?C.createElement("img",{className:p.Spanradius,src:U}):b?C.createElement("img",{className:p.Spanradius}):C.createElement("div",{className:p.Spanradius},K&&K.length>2?K&&K.substring(0,2):K),C.createElement(le.Z,{style:{width:"320px",height:"320px",marginLeft:"30px",background:"#EEEEEE"},src:E,guides:!1,ref:i,crop:ee}))),C.createElement("div",{style:{marginTop:"15px",marginBottom:"15px"}},C.createElement(ae.ZP,{type:"primary",onClick:()=>ve()},"\u786E\u5B9A"),C.createElement(ae.ZP,{style:{marginLeft:"15px"}},C.createElement(h.Link,{to:`/competitions/${v}/detail/enroll`},"\u53D6\u6D88"))))};var Z=(0,h.connect)(({loading:ie,globalSetting:F})=>({globalSetting:F,loading:ie.models.competitions}))($e)},36785:function(ot,be,r){"use strict";r.d(be,{o2:function(){return R},yT:function(){return T}});var C=r(19127),h=r(33166);const p=h.i.map(N=>`${N}-inverse`),le=["success","processing","error","default","warning"];function R(N){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,C.Z)(p),(0,C.Z)(h.i)).includes(N):h.i.includes(N)}function T(N){return le.includes(N)}},79676:function(ot,be,r){"use strict";r.d(be,{Z:function(){return T}});var C=r(19447);function h(N,B,ae,re){if(re===!1)return{adjustX:!1,adjustY:!1};const ce=re&&typeof re=="object"?re:{},Q={};switch(N){case"top":case"bottom":Q.shiftX=B.dropdownArrowOffset*2+ae;break;case"left":case"right":Q.shiftY=B.dropdownArrowOffsetVertical*2+ae;break}const d=Object.assign(Object.assign({},Q),ce);return d.shiftX||(d.adjustX=!0),d.shiftY||(d.adjustY=!0),d}const p={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},le={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},R=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function T(N){const{arrowWidth:B,autoAdjustOverflow:ae,arrowPointAtCenter:re,offset:ce,borderRadius:Q,visibleFirst:d}=N,H=B/2,xe={};return Object.keys(p).forEach(we=>{const $e=re&&le[we]||p[we],Z=Object.assign(Object.assign({},$e),{offset:[0,0]});switch(xe[we]=Z,R.has(we)&&(Z.autoArrow=!1),we){case"top":case"topLeft":case"topRight":Z.offset[1]=-H-ce;break;case"bottom":case"bottomLeft":case"bottomRight":Z.offset[1]=H+ce;break;case"left":case"leftTop":case"leftBottom":Z.offset[0]=-H-ce;break;case"right":case"rightTop":case"rightBottom":Z.offset[0]=H+ce;break}const ie=(0,C.fS)({contentRadius:Q,limitVerticalRadius:!0});if(re)switch(we){case"topLeft":case"bottomLeft":Z.offset[0]=-ie.dropdownArrowOffset-H;break;case"topRight":case"bottomRight":Z.offset[0]=ie.dropdownArrowOffset+H;break;case"leftTop":case"rightTop":Z.offset[1]=-ie.dropdownArrowOffset-H;break;case"leftBottom":case"rightBottom":Z.offset[1]=ie.dropdownArrowOffset+H;break}Z.overflow=h(we,ie,B,ae),d&&(Z.htmlRegion="visibleFirst")}),xe}},19080:function(ot,be,r){"use strict";r.d(be,{F:function(){return R},Z:function(){return le}});var C=r(92310),h=r.n(C);const p=null;function le(T,N,B){return h()({[`${T}-status-success`]:N==="success",[`${T}-status-warning`]:N==="warning",[`${T}-status-error`]:N==="error",[`${T}-status-validating`]:N==="validating",[`${T}-has-feedback`]:B})}const R=(T,N)=>N||T},66104:function(ot,be,r){"use strict";r.d(be,{Z:function(){return P}});var C=r(92310),h=r.n(C),p=r(11592),le=r(26112),R=r(59301),T=r(92343),N=r(36355),B=r(84105),ae=r(91857);const re=i=>{let{children:E}=i;const{getPrefixCls:w}=R.useContext(N.E_),v=w("breadcrumb");return R.createElement("li",{className:`${v}-separator`,"aria-hidden":"true"},E===""?E:E||"/")};re.__ANT_BREADCRUMB_SEPARATOR=!0;var ce=re,Q=function(i,E){var w={};for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&E.indexOf(v)<0&&(w[v]=i[v]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,v=Object.getOwnPropertySymbols(i);O<v.length;O++)E.indexOf(v[O])<0&&Object.prototype.propertyIsEnumerable.call(i,v[O])&&(w[v[O]]=i[v[O]]);return w};function d(i,E){if(i.title===void 0||i.title===null)return null;const w=Object.keys(E).join("|");return typeof i.title=="object"?i.title:String(i.title).replace(new RegExp(`:(${w})`,"g"),(v,O)=>E[O]||v)}function H(i,E,w,v){if(w==null)return null;const{className:O,onClick:Y}=E,G=Q(E,["className","onClick"]),ee=Object.assign(Object.assign({},(0,le.Z)(G,{data:!0,aria:!0})),{onClick:Y});return v!==void 0?R.createElement("a",Object.assign({},ee,{className:h()(`${i}-link`,O),href:v}),w):R.createElement("span",Object.assign({},ee,{className:h()(`${i}-link`,O)}),w)}function xe(i,E){return(v,O,Y,G,ee)=>{if(E)return E(v,O,Y,G);const ve=d(v,O);return H(i,v,ve,ee)}}var we=function(i,E){var w={};for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&E.indexOf(v)<0&&(w[v]=i[v]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,v=Object.getOwnPropertySymbols(i);O<v.length;O++)E.indexOf(v[O])<0&&Object.prototype.propertyIsEnumerable.call(i,v[O])&&(w[v[O]]=i[v[O]]);return w};const $e=i=>{const{prefixCls:E,separator:w="/",children:v,menu:O,overlay:Y,dropdownProps:G,href:ee}=i,pe=(J=>{if(O||Y){const k=Object.assign({},G);if(O){const Ce=O||{},{items:je}=Ce,Oe=we(Ce,["items"]);k.menu=Object.assign(Object.assign({},Oe),{items:je==null?void 0:je.map((Ie,ze)=>{var{key:Re,title:Ve,label:Ue,path:l}=Ie,m=we(Ie,["key","title","label","path"]);let o=Ue!=null?Ue:Ve;return l&&(o=R.createElement("a",{href:`${ee}${l}`},o)),Object.assign(Object.assign({},m),{key:Re!=null?Re:ze,label:o})})})}else Y&&(k.overlay=Y);return R.createElement(ae.Z,Object.assign({placement:"bottom"},k),R.createElement("span",{className:`${E}-overlay-link`},J,R.createElement(B.Z,null)))}return J})(v);return pe!=null?R.createElement(R.Fragment,null,R.createElement("li",null,pe),w&&R.createElement(ce,null,w)):null},Z=i=>{const{prefixCls:E,children:w,href:v}=i,O=we(i,["prefixCls","children","href"]),{getPrefixCls:Y}=R.useContext(N.E_),G=Y("breadcrumb",E);return R.createElement($e,Object.assign({},O,{prefixCls:G}),H(G,O,w,v))};Z.__ANT_BREADCRUMB_ITEM=!0;var ie=Z,F=r(17313),ue=r(83116),s=r(37613);const u=i=>{const{componentCls:E,iconCls:w}=i;return{[E]:Object.assign(Object.assign({},(0,F.Wf)(i)),{color:i.itemColor,fontSize:i.fontSize,[w]:{fontSize:i.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:i.linkColor,transition:`color ${i.motionDurationMid}`,padding:`0 ${i.paddingXXS}px`,borderRadius:i.borderRadiusSM,height:i.lineHeight*i.fontSize,display:"inline-block",marginInline:-i.marginXXS,"&:hover":{color:i.linkHoverColor,backgroundColor:i.colorBgTextHover}},(0,F.Qy)(i)),"li:last-child":{color:i.lastItemColor},[`${E}-separator`]:{marginInline:i.separatorMargin,color:i.separatorColor},[`${E}-link`]:{[`
> ${w} + span,
> ${w} + a
`]:{marginInlineStart:i.marginXXS}},[`${E}-overlay-link`]:{borderRadius:i.borderRadiusSM,height:i.lineHeight*i.fontSize,display:"inline-block",padding:`0 ${i.paddingXXS}px`,marginInline:-i.marginXXS,[`> ${w}`]:{marginInlineStart:i.marginXXS,fontSize:i.fontSizeIcon},"&:hover":{color:i.linkHoverColor,backgroundColor:i.colorBgTextHover,a:{color:i.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${i.componentCls}-rtl`]:{direction:"rtl"}})}};var g=(0,ue.Z)("Breadcrumb",i=>{const E=(0,s.TS)(i,{});return[u(E)]},i=>({itemColor:i.colorTextDescription,lastItemColor:i.colorText,iconFontSize:i.fontSize,linkColor:i.colorTextDescription,linkHoverColor:i.colorText,separatorColor:i.colorTextDescription,separatorMargin:i.marginXS})),f=function(i,E){var w={};for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&E.indexOf(v)<0&&(w[v]=i[v]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,v=Object.getOwnPropertySymbols(i);O<v.length;O++)E.indexOf(v[O])<0&&Object.prototype.propertyIsEnumerable.call(i,v[O])&&(w[v[O]]=i[v[O]]);return w};function X(i){const{breadcrumbName:E,children:w}=i,v=f(i,["breadcrumbName","children"]),O=Object.assign({title:E},v);return w&&(O.menu={items:w.map(Y=>{var{breadcrumbName:G}=Y,ee=f(Y,["breadcrumbName"]);return Object.assign(Object.assign({},ee),{title:G})})}),O}function K(i,E){return(0,R.useMemo)(()=>i||(E?E.map(X):null),[i,E])}var he=function(i,E){var w={};for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&E.indexOf(v)<0&&(w[v]=i[v]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,v=Object.getOwnPropertySymbols(i);O<v.length;O++)E.indexOf(v[O])<0&&Object.prototype.propertyIsEnumerable.call(i,v[O])&&(w[v[O]]=i[v[O]]);return w};const U=(i,E)=>{if(E===void 0)return E;let w=(E||"").replace(/^\//,"");return Object.keys(i).forEach(v=>{w=w.replace(`:${v}`,i[v])}),w},$=i=>{const{prefixCls:E,separator:w="/",style:v,className:O,rootClassName:Y,routes:G,items:ee,children:ve,itemRender:pe,params:J={}}=i,k=he(i,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ce,direction:je,breadcrumb:Oe}=R.useContext(N.E_);let Ie;const ze=Ce("breadcrumb",E),[Re,Ve]=g(ze),Ue=K(ee,G),l=xe(ze,pe);if(Ue&&Ue.length>0){const S=[],I=ee||G;Ie=Ue.map((W,_)=>{const{path:V,key:de,type:ge,menu:me,overlay:ye,onClick:Me,className:Pe,separator:Se,dropdownProps:oe}=W,De=U(J,V);De!==void 0&&S.push(De);const Ae=de!=null?de:_;if(ge==="separator")return R.createElement(ce,{key:Ae},Se);const We={},Xe=_===Ue.length-1;me?We.menu=me:ye&&(We.overlay=ye);let{href:Ee}=W;return S.length&&De!==void 0&&(Ee=`#/${S.join("/")}`),R.createElement($e,Object.assign({key:Ae},We,(0,le.Z)(W,{data:!0,aria:!0}),{className:Pe,dropdownProps:oe,href:Ee,separator:Xe?"":w,onClick:Me,prefixCls:ze}),l(W,J,I,S,Ee))})}else if(ve){const S=(0,p.Z)(ve).length;Ie=(0,p.Z)(ve).map((I,W)=>{if(!I)return I;const _=W===S-1;return(0,T.Tm)(I,{separator:_?"":w,key:W})})}const m=h()(ze,Oe==null?void 0:Oe.className,{[`${ze}-rtl`]:je==="rtl"},O,Y,Ve),o=Object.assign(Object.assign({},Oe==null?void 0:Oe.style),v);return Re(R.createElement("nav",Object.assign({className:m,style:o},k),R.createElement("ol",null,Ie)))};$.Item=ie,$.Separator=ce;var b=$,P=b},91857:function(ot,be,r){"use strict";var C=r(59301),h=r(38819),p=r(92310),le=r.n(p),R=r(31561),T=r(70425),N=r(18929),B=r(2738),ae=r(79676),re=r(53487),ce=r(92343),Q=r(36355),d=r(20834),H=r(40875),xe=r(88088),we=r(47211);const $e=null,Z=s=>{const{menu:u,arrow:g,prefixCls:f,children:X,trigger:K,disabled:he,dropdownRender:U,getPopupContainer:$,overlayClassName:b,rootClassName:P,open:i,onOpenChange:E,visible:w,onVisibleChange:v,mouseEnterDelay:O=.15,mouseLeaveDelay:Y=.1,autoAdjustOverflow:G=!0,placement:ee="",overlay:ve,transitionName:pe}=s,{getPopupContainer:J,getPrefixCls:k,direction:Ce}=C.useContext(Q.E_),je=C.useMemo(()=>{const me=k();return pe!==void 0?pe:ee.includes("top")?`${me}-slide-down`:`${me}-slide-up`},[k,ee,pe]),Oe=C.useMemo(()=>ee?ee.includes("Center")?ee.slice(0,ee.indexOf("Center")):ee:Ce==="rtl"?"bottomRight":"bottomLeft",[ee,Ce]),Ie=k("dropdown",f),[ze,Re]=(0,we.Z)(Ie),[,Ve]=(0,xe.Z)(),Ue=C.Children.only(X),l=(0,ce.Tm)(Ue,{className:le()(`${Ie}-trigger`,{[`${Ie}-rtl`]:Ce==="rtl"},Ue.props.className),disabled:he}),m=he?[]:K;let o;m&&m.includes("contextMenu")&&(o=!0);const[S,I]=(0,N.Z)(!1,{value:i!=null?i:w}),W=(0,T.useEvent)(me=>{E==null||E(me),v==null||v(me),I(me)}),_=le()(b,P,Re,{[`${Ie}-rtl`]:Ce==="rtl"}),V=(0,ae.Z)({arrowPointAtCenter:typeof g=="object"&&g.pointAtCenter,autoAdjustOverflow:G,offset:Ve.marginXXS,arrowWidth:g?Ve.sizePopupArrow:0,borderRadius:Ve.borderRadius}),de=C.useCallback(()=>{I(!1)},[]),ge=()=>{let me;return u!=null&&u.items?me=C.createElement(d.default,Object.assign({},u)):typeof ve=="function"?me=ve():me=ve,U&&(me=U(me)),me=C.Children.only(typeof me=="string"?C.createElement("span",null,me):me),C.createElement(H.J,{prefixCls:`${Ie}-menu`,expandIcon:C.createElement("span",{className:`${Ie}-menu-submenu-arrow`},C.createElement(h.Z,{className:`${Ie}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:de,validator:ye=>{let{mode:Me}=ye}},me)};return ze(C.createElement(R.Z,Object.assign({alignPoint:o},(0,B.Z)(s,["rootClassName"]),{mouseEnterDelay:O,mouseLeaveDelay:Y,visible:S,builtinPlacements:V,arrow:!!g,overlayClassName:_,prefixCls:Ie,getPopupContainer:$||J,transitionName:je,trigger:m,overlay:ge,placement:Oe,onVisibleChange:W}),l))};function ie(s){return Object.assign(Object.assign({},s),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const F=(0,re.Z)(Z,"dropdown",s=>s,ie),ue=s=>C.createElement(F,Object.assign({},s),C.createElement("span",null));Z._InternalPanelDoNotUseOrYouWillBeFired=ue,be.Z=Z},47211:function(ot,be,r){"use strict";r.d(be,{Z:function(){return ce}});var C=r(17313),h=r(13826),p=r(92899),le=r(29878),R=r(19447),T=r(83116),N=r(37613),ae=Q=>{const{componentCls:d,menuCls:H,colorError:xe,colorTextLightSolid:we}=Q,$e=`${H}-item`;return{[`${d}, ${d}-menu-submenu`]:{[`${H} ${$e}`]:{[`&${$e}-danger:not(${$e}-disabled)`]:{color:xe,"&:hover":{color:we,backgroundColor:xe}}}}}};const re=Q=>{const{componentCls:d,menuCls:H,zIndexPopup:xe,dropdownArrowDistance:we,sizePopupArrow:$e,antCls:Z,iconCls:ie,motionDurationMid:F,dropdownPaddingVertical:ue,fontSize:s,dropdownEdgeChildPadding:u,colorTextDisabled:g,fontSizeIcon:f,controlPaddingHorizontal:X,colorBgElevated:K}=Q;return[{[d]:Object.assign(Object.assign({},(0,C.Wf)(Q)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:xe,display:"block","&::before":{position:"absolute",insetBlock:-we+$e/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Z}-btn`]:{[`& > ${ie}-down, & > ${Z}-btn-icon > ${ie}-down`]:{fontSize:f}},[`${d}-wrap`]:{position:"relative",[`${Z}-btn > ${ie}-down`]:{fontSize:f},[`${ie}-down::before`]:{transition:`transform ${F}`}},[`${d}-wrap-open`]:{[`${ie}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Z}-slide-down-enter${Z}-slide-down-enter-active${d}-placement-bottomLeft,
&${Z}-slide-down-appear${Z}-slide-down-appear-active${d}-placement-bottomLeft,
&${Z}-slide-down-enter${Z}-slide-down-enter-active${d}-placement-bottom,
&${Z}-slide-down-appear${Z}-slide-down-appear-active${d}-placement-bottom,
&${Z}-slide-down-enter${Z}-slide-down-enter-active${d}-placement-bottomRight,
&${Z}-slide-down-appear${Z}-slide-down-appear-active${d}-placement-bottomRight`]:{animationName:h.fJ},[`&${Z}-slide-up-enter${Z}-slide-up-enter-active${d}-placement-topLeft,
&${Z}-slide-up-appear${Z}-slide-up-appear-active${d}-placement-topLeft,
&${Z}-slide-up-enter${Z}-slide-up-enter-active${d}-placement-top,
&${Z}-slide-up-appear${Z}-slide-up-appear-active${d}-placement-top,
&${Z}-slide-up-enter${Z}-slide-up-enter-active${d}-placement-topRight,
&${Z}-slide-up-appear${Z}-slide-up-appear-active${d}-placement-topRight`]:{animationName:h.Qt},[`&${Z}-slide-down-leave${Z}-slide-down-leave-active${d}-placement-bottomLeft,
&${Z}-slide-down-leave${Z}-slide-down-leave-active${d}-placement-bottom,
&${Z}-slide-down-leave${Z}-slide-down-leave-active${d}-placement-bottomRight`]:{animationName:h.Uw},[`&${Z}-slide-up-leave${Z}-slide-up-leave-active${d}-placement-topLeft,
&${Z}-slide-up-leave${Z}-slide-up-leave-active${d}-placement-top,
&${Z}-slide-up-leave${Z}-slide-up-leave-active${d}-placement-topRight`]:{animationName:h.ly}})},(0,R.ZP)(Q,{colorBg:K,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${d} ${H}`]:{position:"relative",margin:0},[`${H}-submenu-popup`]:{position:"absolute",zIndex:xe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${d}, ${d}-menu-submenu`]:{[H]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:K,backgroundClip:"padding-box",borderRadius:Q.borderRadiusLG,outline:"none",boxShadow:Q.boxShadowSecondary},(0,C.Qy)(Q)),{[`${H}-item-group-title`]:{padding:`${ue}px ${X}px`,color:Q.colorTextDescription,transition:`all ${F}`},[`${H}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${H}-item-icon`]:{minWidth:s,marginInlineEnd:Q.marginXS,fontSize:Q.fontSizeSM},[`${H}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${F}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${H}-item, ${H}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ue}px ${X}px`,color:Q.colorText,fontWeight:"normal",fontSize:s,lineHeight:Q.lineHeight,cursor:"pointer",transition:`all ${F}`,borderRadius:Q.borderRadiusSM,"&:hover, &-active":{backgroundColor:Q.controlItemBgHover}},(0,C.Qy)(Q)),{"&-selected":{color:Q.colorPrimary,backgroundColor:Q.controlItemBgActive,"&:hover, &-active":{backgroundColor:Q.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:K,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Q.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Q.colorSplit},[`${d}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Q.paddingXS,[`${d}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Q.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${H}-item-group-list`]:{margin:`0 ${Q.marginXS}px`,padding:0,listStyle:"none"},[`${H}-submenu-title`]:{paddingInlineEnd:X+Q.fontSizeSM},[`${H}-submenu-vertical`]:{position:"relative"},[`${H}-submenu${H}-submenu-disabled ${d}-menu-submenu-title`]:{[`&, ${d}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:K,cursor:"not-allowed"}},[`${H}-submenu-selected ${d}-menu-submenu-title`]:{color:Q.colorPrimary}})}},[(0,h.oN)(Q,"slide-up"),(0,h.oN)(Q,"slide-down"),(0,p.Fm)(Q,"move-up"),(0,p.Fm)(Q,"move-down"),(0,le._y)(Q,"zoom-big")]]};var ce=(0,T.Z)("Dropdown",(Q,d)=>{let{rootPrefixCls:H}=d;const{marginXXS:xe,sizePopupArrow:we,controlHeight:$e,fontSize:Z,lineHeight:ie,paddingXXS:F,componentCls:ue,borderRadiusLG:s}=Q,u=($e-Z*ie)/2,{dropdownArrowOffset:g}=(0,R.fS)({contentRadius:s}),f=(0,N.TS)(Q,{menuCls:`${ue}-menu`,rootPrefixCls:H,dropdownArrowDistance:we/2+xe,dropdownArrowOffset:g,dropdownPaddingVertical:u,dropdownEdgeChildPadding:F});return[re(f),ae(f)]},Q=>({zIndexPopup:Q.zIndexPopupBase+50}))},9432:function(ot,be,r){"use strict";r.d(be,{Z:function(){return ie},n:function(){return $e}});var C=r(19248),h=r(92310),p=r.n(h),le=r(93681),R=r(8654),T=r(59301),N=r(19080),B=r(36355),ae=r(1684),re=r(19716),ce=r(32441),Q=r(33234),d=r(59412),H=r(9937);function xe(F){return!!(F.prefix||F.suffix||F.allowClear)}var we=function(F,ue){var s={};for(var u in F)Object.prototype.hasOwnProperty.call(F,u)&&ue.indexOf(u)<0&&(s[u]=F[u]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,u=Object.getOwnPropertySymbols(F);g<u.length;g++)ue.indexOf(u[g])<0&&Object.prototype.propertyIsEnumerable.call(F,u[g])&&(s[u[g]]=F[u[g]]);return s};function $e(F,ue){if(!F)return;F.focus(ue);const{cursor:s}=ue||{};if(s){const u=F.value.length;switch(s){case"start":F.setSelectionRange(0,0);break;case"end":F.setSelectionRange(u,u);break;default:F.setSelectionRange(0,u);break}}}var ie=(0,T.forwardRef)((F,ue)=>{var s;const{prefixCls:u,bordered:g=!0,status:f,size:X,disabled:K,onBlur:he,onFocus:U,suffix:$,allowClear:b,addonAfter:P,addonBefore:i,className:E,style:w,styles:v,rootClassName:O,onChange:Y,classNames:G}=F,ee=we(F,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ve,direction:pe,input:J}=T.useContext(B.E_),k=ve("input",u),Ce=(0,T.useRef)(null),[je,Oe]=(0,H.ZP)(k),{compactSize:Ie,compactItemClassnames:ze}=(0,Q.ri)(k,pe),Re=(0,re.Z)(Me=>{var Pe;return(Pe=X!=null?X:Ie)!==null&&Pe!==void 0?Pe:Me}),Ve=T.useContext(ae.Z),Ue=K!=null?K:Ve,{status:l,hasFeedback:m,feedbackIcon:o}=(0,T.useContext)(ce.aM),S=(0,N.F)(l,f),I=xe(F)||!!m,W=(0,T.useRef)(I);(0,T.useEffect)(()=>{var Me;I&&W.current,W.current=I},[I]);const _=(0,d.Z)(Ce,!0),V=Me=>{_(),he==null||he(Me)},de=Me=>{_(),U==null||U(Me)},ge=Me=>{_(),Y==null||Y(Me)},me=(m||$)&&T.createElement(T.Fragment,null,$,m&&o);let ye;return typeof b=="object"&&(b!=null&&b.clearIcon)?ye=b:b&&(ye={clearIcon:T.createElement(C.Z,null)}),je(T.createElement(le.default,Object.assign({ref:(0,R.sQ)(ue,Ce),prefixCls:k,autoComplete:J==null?void 0:J.autoComplete},ee,{disabled:Ue,onBlur:V,onFocus:de,style:Object.assign(Object.assign({},J==null?void 0:J.style),w),styles:Object.assign(Object.assign({},J==null?void 0:J.styles),v),suffix:me,allowClear:ye,className:p()(E,O,ze,J==null?void 0:J.className),onChange:ge,addonAfter:P&&T.createElement(Q.BR,null,T.createElement(ce.Ux,{override:!0,status:!0},P)),addonBefore:i&&T.createElement(Q.BR,null,T.createElement(ce.Ux,{override:!0,status:!0},i)),classNames:Object.assign(Object.assign(Object.assign({},G),J==null?void 0:J.classNames),{input:p()({[`${k}-sm`]:Re==="small",[`${k}-lg`]:Re==="large",[`${k}-rtl`]:pe==="rtl",[`${k}-borderless`]:!g},!I&&(0,N.Z)(k,S),G==null?void 0:G.input,(s=J==null?void 0:J.classNames)===null||s===void 0?void 0:s.input,Oe)}),classes:{affixWrapper:p()({[`${k}-affix-wrapper-sm`]:Re==="small",[`${k}-affix-wrapper-lg`]:Re==="large",[`${k}-affix-wrapper-rtl`]:pe==="rtl",[`${k}-affix-wrapper-borderless`]:!g},(0,N.Z)(`${k}-affix-wrapper`,S,m),Oe),wrapper:p()({[`${k}-group-rtl`]:pe==="rtl"},Oe),group:p()({[`${k}-group-wrapper-sm`]:Re==="small",[`${k}-group-wrapper-lg`]:Re==="large",[`${k}-group-wrapper-rtl`]:pe==="rtl",[`${k}-group-wrapper-disabled`]:Ue},(0,N.Z)(`${k}-group-wrapper`,S,m),Oe)}})))})},1643:function(ot,be,r){"use strict";var C=r(19248),h=r(92310),p=r.n(h),le=r(9296),R=r(59301),T=r(19080),N=r(36355),B=r(1684),ae=r(19716),re=r(32441),ce=r(9432),Q=r(9937),d=function(xe,we){var $e={};for(var Z in xe)Object.prototype.hasOwnProperty.call(xe,Z)&&we.indexOf(Z)<0&&($e[Z]=xe[Z]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,Z=Object.getOwnPropertySymbols(xe);ie<Z.length;ie++)we.indexOf(Z[ie])<0&&Object.prototype.propertyIsEnumerable.call(xe,Z[ie])&&($e[Z[ie]]=xe[Z[ie]]);return $e};const H=(0,R.forwardRef)((xe,we)=>{const{prefixCls:$e,bordered:Z=!0,size:ie,disabled:F,status:ue,allowClear:s,showCount:u,classNames:g,rootClassName:f,className:X}=xe,K=d(xe,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:he,direction:U}=R.useContext(N.E_),$=(0,ae.Z)(ie),b=R.useContext(B.Z),P=F!=null?F:b,{status:i,hasFeedback:E,feedbackIcon:w}=R.useContext(re.aM),v=(0,T.F)(i,ue),O=R.useRef(null);R.useImperativeHandle(we,()=>{var pe;return{resizableTextArea:(pe=O.current)===null||pe===void 0?void 0:pe.resizableTextArea,focus:J=>{var k,Ce;(0,ce.n)((Ce=(k=O.current)===null||k===void 0?void 0:k.resizableTextArea)===null||Ce===void 0?void 0:Ce.textArea,J)},blur:()=>{var J;return(J=O.current)===null||J===void 0?void 0:J.blur()}}});const Y=he("input",$e);let G;typeof s=="object"&&(s!=null&&s.clearIcon)?G=s:s&&(G={clearIcon:R.createElement(C.Z,null)});const[ee,ve]=(0,Q.ZP)(Y);return ee(R.createElement(le.default,Object.assign({},K,{disabled:P,allowClear:G,className:p()(X,f),classes:{affixWrapper:p()(`${Y}-textarea-affix-wrapper`,{[`${Y}-affix-wrapper-rtl`]:U==="rtl",[`${Y}-affix-wrapper-borderless`]:!Z,[`${Y}-affix-wrapper-sm`]:$==="small",[`${Y}-affix-wrapper-lg`]:$==="large",[`${Y}-textarea-show-count`]:u},(0,T.Z)(`${Y}-affix-wrapper`,v),ve)},classNames:Object.assign(Object.assign({},g),{textarea:p()({[`${Y}-borderless`]:!Z,[`${Y}-sm`]:$==="small",[`${Y}-lg`]:$==="large"},(0,T.Z)(Y,v),ve,g==null?void 0:g.textarea)}),prefixCls:Y,suffix:E&&R.createElement("span",{className:`${Y}-textarea-suffix`},w),showCount:u,ref:O})))});be.Z=H},59412:function(ot,be,r){"use strict";r.d(be,{Z:function(){return h}});var C=r(59301);function h(p,le){const R=(0,C.useRef)([]),T=()=>{R.current.push(setTimeout(()=>{var N,B,ae,re;!((N=p.current)===null||N===void 0)&&N.input&&((B=p.current)===null||B===void 0?void 0:B.input.getAttribute("type"))==="password"&&(!((ae=p.current)===null||ae===void 0)&&ae.input.hasAttribute("value"))&&((re=p.current)===null||re===void 0||re.input.removeAttribute("value"))}))};return(0,C.useEffect)(()=>(le&&T(),()=>R.current.forEach(N=>{N&&clearTimeout(N)})),[]),T}},92832:function(ot,be,r){"use strict";r.d(be,{default:function(){return $}});var C=r(92310),h=r.n(C),p=r(59301),le=r(36355),R=r(32441),T=r(9937),B=b=>{const{getPrefixCls:P,direction:i}=(0,p.useContext)(le.E_),{prefixCls:E,className:w}=b,v=P("input-group",E),O=P("input"),[Y,G]=(0,T.ZP)(O),ee=h()(v,{[`${v}-lg`]:b.size==="large",[`${v}-sm`]:b.size==="small",[`${v}-compact`]:b.compact,[`${v}-rtl`]:i==="rtl"},G,w),ve=(0,p.useContext)(R.aM),pe=(0,p.useMemo)(()=>Object.assign(Object.assign({},ve),{isFormItemInput:!1}),[ve]);return Y(p.createElement("span",{className:ee,style:b.style,onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onFocus:b.onFocus,onBlur:b.onBlur},p.createElement(R.aM.Provider,{value:pe},b.children)))},ae=r(9432),re=r(73331),ce=r(15277),Q=r(2738),d=r(8654),H=r(59412),xe=function(b,P){var i={};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&P.indexOf(E)<0&&(i[E]=b[E]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,E=Object.getOwnPropertySymbols(b);w<E.length;w++)P.indexOf(E[w])<0&&Object.prototype.propertyIsEnumerable.call(b,E[w])&&(i[E[w]]=b[E[w]]);return i};const we=b=>b?p.createElement(ce.Z,null):p.createElement(re.Z,null),$e={click:"onClick",hover:"onMouseOver"};var ie=p.forwardRef((b,P)=>{const{visibilityToggle:i=!0}=b,E=typeof i=="object"&&i.visible!==void 0,[w,v]=(0,p.useState)(()=>E?i.visible:!1),O=(0,p.useRef)(null);p.useEffect(()=>{E&&v(i.visible)},[E,i]);const Y=(0,H.Z)(O),G=()=>{const{disabled:Ue}=b;Ue||(w&&Y(),v(l=>{var m;const o=!l;return typeof i=="object"&&((m=i.onVisibleChange)===null||m===void 0||m.call(i,o)),o}))},ee=Ue=>{const{action:l="click",iconRender:m=we}=b,o=$e[l]||"",S=m(w),I={[o]:G,className:`${Ue}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return p.cloneElement(p.isValidElement(S)?S:p.createElement("span",null,S),I)},{className:ve,prefixCls:pe,inputPrefixCls:J,size:k}=b,Ce=xe(b,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:je}=p.useContext(le.E_),Oe=je("input",J),Ie=je("input-password",pe),ze=i&&ee(Ie),Re=h()(Ie,ve,{[`${Ie}-${k}`]:!!k}),Ve=Object.assign(Object.assign({},(0,Q.Z)(Ce,["suffix","iconRender","visibilityToggle"])),{type:w?"text":"password",className:Re,prefixCls:Oe,suffix:ze});return k&&(Ve.size=k),p.createElement(ae.Z,Object.assign({ref:(0,d.sQ)(P,O)},Ve))}),F=r(47472),ue=r(92343),s=r(3113),u=r(19716),g=r(33234),f=function(b,P){var i={};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&P.indexOf(E)<0&&(i[E]=b[E]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,E=Object.getOwnPropertySymbols(b);w<E.length;w++)P.indexOf(E[w])<0&&Object.prototype.propertyIsEnumerable.call(b,E[w])&&(i[E[w]]=b[E[w]]);return i},K=p.forwardRef((b,P)=>{const{prefixCls:i,inputPrefixCls:E,className:w,size:v,suffix:O,enterButton:Y=!1,addonAfter:G,loading:ee,disabled:ve,onSearch:pe,onChange:J,onCompositionStart:k,onCompositionEnd:Ce}=b,je=f(b,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Oe,direction:Ie}=p.useContext(le.E_),ze=p.useRef(!1),Re=Oe("input-search",i),Ve=Oe("input",E),{compactSize:Ue}=(0,g.ri)(Re,Ie),l=(0,u.Z)(Se=>{var oe;return(oe=v!=null?v:Ue)!==null&&oe!==void 0?oe:Se}),m=p.useRef(null),o=Se=>{Se&&Se.target&&Se.type==="click"&&pe&&pe(Se.target.value,Se,{source:"clear"}),J&&J(Se)},S=Se=>{var oe;document.activeElement===((oe=m.current)===null||oe===void 0?void 0:oe.input)&&Se.preventDefault()},I=Se=>{var oe,De;pe&&pe((De=(oe=m.current)===null||oe===void 0?void 0:oe.input)===null||De===void 0?void 0:De.value,Se,{source:"input"})},W=Se=>{ze.current||ee||I(Se)},_=typeof Y=="boolean"?p.createElement(F.Z,null):null,V=`${Re}-button`;let de;const ge=Y||{},me=ge.type&&ge.type.__ANT_BUTTON===!0;me||ge.type==="button"?de=(0,ue.Tm)(ge,Object.assign({onMouseDown:S,onClick:Se=>{var oe,De;(De=(oe=ge==null?void 0:ge.props)===null||oe===void 0?void 0:oe.onClick)===null||De===void 0||De.call(oe,Se),I(Se)},key:"enterButton"},me?{className:V,size:l}:{})):de=p.createElement(s.ZP,{className:V,type:Y?"primary":void 0,size:l,disabled:ve,key:"enterButton",onMouseDown:S,onClick:I,loading:ee,icon:_},Y),G&&(de=[de,(0,ue.Tm)(G,{key:"addonAfter"})]);const ye=h()(Re,{[`${Re}-rtl`]:Ie==="rtl",[`${Re}-${l}`]:!!l,[`${Re}-with-button`]:!!Y},w),Me=Se=>{ze.current=!0,k==null||k(Se)},Pe=Se=>{ze.current=!1,Ce==null||Ce(Se)};return p.createElement(ae.Z,Object.assign({ref:(0,d.sQ)(m,P),onPressEnter:W},je,{size:l,onCompositionStart:Me,onCompositionEnd:Pe,prefixCls:Ve,addonAfter:de,suffix:O,onChange:o,className:ye,disabled:ve}))}),he=r(1643);const U=ae.Z;U.Group=B,U.Search=K,U.TextArea=he.Z,U.Password=ie;var $=U},9937:function(ot,be,r){"use strict";r.d(be,{M1:function(){return N},TM:function(){return ue},Xy:function(){return B},bi:function(){return ce},e5:function(){return F},ik:function(){return Q},nz:function(){return R},pU:function(){return T},s7:function(){return d},x0:function(){return re}});var C=r(17313),h=r(74207),p=r(37613),le=r(83116);const R=s=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:s,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),T=s=>({borderColor:s.hoverBorderColor}),N=s=>({borderColor:s.activeBorderColor,boxShadow:s.activeShadow,outline:0}),B=s=>({color:s.colorTextDisabled,backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},T((0,p.TS)(s,{hoverBorderColor:s.colorBorder})))}),ae=s=>{const{paddingBlockLG:u,fontSizeLG:g,lineHeightLG:f,borderRadiusLG:X,paddingInlineLG:K}=s;return{padding:`${u}px ${K}px`,fontSize:g,lineHeight:f,borderRadius:X}},re=s=>({padding:`${s.paddingBlockSM}px ${s.paddingInlineSM}px`,borderRadius:s.borderRadiusSM}),ce=(s,u)=>{const{componentCls:g,colorError:f,colorWarning:X,errorActiveShadow:K,warningActiveShadow:he,colorErrorBorderHover:U,colorWarningBorderHover:$}=s;return{[`&-status-error:not(${u}-disabled):not(${u}-borderless)${u}`]:{borderColor:f,"&:hover":{borderColor:U},"&:focus, &-focused":Object.assign({},N((0,p.TS)(s,{activeBorderColor:f,activeShadow:K}))),[`${g}-prefix, ${g}-suffix`]:{color:f}},[`&-status-warning:not(${u}-disabled):not(${u}-borderless)${u}`]:{borderColor:X,"&:hover":{borderColor:$},"&:focus, &-focused":Object.assign({},N((0,p.TS)(s,{activeBorderColor:X,activeShadow:he}))),[`${g}-prefix, ${g}-suffix`]:{color:X}}}},Q=s=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${s.paddingBlock}px ${s.paddingInline}px`,color:s.colorText,fontSize:s.fontSize,lineHeight:s.lineHeight,backgroundColor:s.colorBgContainer,backgroundImage:"none",borderWidth:s.lineWidth,borderStyle:s.lineType,borderColor:s.colorBorder,borderRadius:s.borderRadius,transition:`all ${s.motionDurationMid}`},R(s.colorTextPlaceholder)),{"&:hover":Object.assign({},T(s)),"&:focus, &-focused":Object.assign({},N(s)),"&-disabled, &[disabled]":Object.assign({},B(s)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:s.controlHeight,lineHeight:s.lineHeight,verticalAlign:"bottom",transition:`all ${s.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ae(s)),"&-sm":Object.assign({},re(s)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),d=s=>{const{componentCls:u,antCls:g}=s;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:s.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${u}, &-lg > ${u}-group-addon`]:Object.assign({},ae(s)),[`&-sm ${u}, &-sm > ${u}-group-addon`]:Object.assign({},re(s)),[`&-lg ${g}-select-single ${g}-select-selector`]:{height:s.controlHeightLG},[`&-sm ${g}-select-single ${g}-select-selector`]:{height:s.controlHeightSM},[`> ${u}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${u}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${s.paddingInline}px`,color:s.colorText,fontWeight:"normal",fontSize:s.fontSize,textAlign:"center",backgroundColor:s.colorFillAlter,border:`${s.lineWidth}px ${s.lineType} ${s.colorBorder}`,borderRadius:s.borderRadius,transition:`all ${s.motionDurationSlow}`,lineHeight:1,[`${g}-select`]:{margin:`-${s.paddingBlock+1}px -${s.paddingInline}px`,[`&${g}-select-single:not(${g}-select-customize-input)`]:{[`${g}-select-selector`]:{backgroundColor:"inherit",border:`${s.lineWidth}px ${s.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${g}-select-selector`]:{color:s.colorPrimary}}},[`${g}-cascader-picker`]:{margin:`-9px -${s.paddingInline}px`,backgroundColor:"transparent",[`${g}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${u}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${u}-search-with-button &`]:{zIndex:0}}},[`> ${u}:first-child, ${u}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${g}-select ${g}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${u}-affix-wrapper`]:{[`&:not(:first-child) ${u}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${u}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${u}:last-child, ${u}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${g}-select ${g}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${u}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${u}-search &`]:{borderStartStartRadius:s.borderRadius,borderEndStartRadius:s.borderRadius}},[`&:not(:first-child), ${u}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${u}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,C.dF)()),{[`${u}-group-addon, ${u}-group-wrap, > ${u}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:s.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${u}-affix-wrapper,
& > ${u}-number-affix-wrapper,
& > ${g}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-s.lineWidth,borderInlineEndWidth:s.lineWidth},[`${u}`]:{float:"none"},[`& > ${g}-select > ${g}-select-selector,
& > ${g}-select-auto-complete ${u},
& > ${g}-cascader-picker ${u},
& > ${u}-group-wrapper ${u}`]:{borderInlineEndWidth:s.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${g}-select-focused`]:{zIndex:1},[`& > ${g}-select > ${g}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${g}-select:first-child > ${g}-select-selector,
& > ${g}-select-auto-complete:first-child ${u},
& > ${g}-cascader-picker:first-child ${u}`]:{borderStartStartRadius:s.borderRadius,borderEndStartRadius:s.borderRadius},[`& > *:last-child,
& > ${g}-select:last-child > ${g}-select-selector,
& > ${g}-cascader-picker:last-child ${u},
& > ${g}-cascader-picker-focused:last-child ${u}`]:{borderInlineEndWidth:s.lineWidth,borderStartEndRadius:s.borderRadius,borderEndEndRadius:s.borderRadius},[`& > ${g}-select-auto-complete ${u}`]:{verticalAlign:"top"},[`${u}-group-wrapper + ${u}-group-wrapper`]:{marginInlineStart:-s.lineWidth,[`${u}-affix-wrapper`]:{borderRadius:0}},[`${u}-group-wrapper:not(:last-child)`]:{[`&${u}-search > ${u}-group`]:{[`& > ${u}-group-addon > ${u}-search-button`]:{borderRadius:0},[`& > ${u}`]:{borderStartStartRadius:s.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:s.borderRadius}}}})}},H=s=>{const{componentCls:u,controlHeightSM:g,lineWidth:f}=s,K=(g-f*2-16)/2;return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(s)),Q(s)),ce(s,u)),{'&[type="color"]':{height:s.controlHeight,[`&${u}-lg`]:{height:s.controlHeightLG},[`&${u}-sm`]:{height:g,paddingTop:K,paddingBottom:K}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},xe=s=>{const{componentCls:u}=s;return{[`${u}-clear-icon`]:{margin:0,color:s.colorTextQuaternary,fontSize:s.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${s.motionDurationSlow}`,"&:hover":{color:s.colorTextTertiary},"&:active":{color:s.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${s.inputAffixPadding}px`}}}},we=s=>{const{componentCls:u,inputAffixPadding:g,colorTextDescription:f,motionDurationSlow:X,colorIcon:K,colorIconHover:he,iconCls:U}=s;return{[`${u}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(s)),{display:"inline-flex",[`&:not(${u}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},T(s)),{zIndex:1,[`${u}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${u}[disabled]`]:{background:"transparent"}},[`> input${u}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${u}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:s.paddingXS}},"&-show-count-suffix":{color:f},"&-show-count-has-suffix":{marginInlineEnd:s.paddingXXS},"&-prefix":{marginInlineEnd:g},"&-suffix":{marginInlineStart:g}}}),xe(s)),{[`${U}${u}-password-icon`]:{color:K,cursor:"pointer",transition:`all ${X}`,"&:hover":{color:he}}}),ce(s,`${u}-affix-wrapper`))}},$e=s=>{const{componentCls:u,colorError:g,colorWarning:f,borderRadiusLG:X,borderRadiusSM:K}=s;return{[`${u}-group`]:Object.assign(Object.assign(Object.assign({},(0,C.Wf)(s)),d(s)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${u}-group-addon`]:{borderRadius:X,fontSize:s.fontSizeLG}},"&-sm":{[`${u}-group-addon`]:{borderRadius:K}},"&-status-error":{[`${u}-group-addon`]:{color:g,borderColor:g}},"&-status-warning":{[`${u}-group-addon`]:{color:f,borderColor:f}},"&-disabled":{[`${u}-group-addon`]:Object.assign({},B(s))},[`&:not(${u}-compact-first-item):not(${u}-compact-last-item)${u}-compact-item`]:{[`${u}, ${u}-group-addon`]:{borderRadius:0}},[`&:not(${u}-compact-last-item)${u}-compact-first-item`]:{[`${u}, ${u}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${u}-compact-first-item)${u}-compact-last-item`]:{[`${u}, ${u}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Z=s=>{const{componentCls:u,antCls:g}=s,f=`${u}-search`;return{[f]:{[`${u}`]:{"&:hover, &:focus":{borderColor:s.colorPrimaryHover,[`+ ${u}-group-addon ${f}-button:not(${g}-btn-primary)`]:{borderInlineStartColor:s.colorPrimaryHover}}},[`${u}-affix-wrapper`]:{borderRadius:0},[`${u}-lg`]:{lineHeight:s.lineHeightLG-2e-4},[`> ${u}-group`]:{[`> ${u}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${f}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:s.borderRadius,borderEndEndRadius:s.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${f}-button:not(${g}-btn-primary)`]:{color:s.colorTextDescription,"&:hover":{color:s.colorPrimaryHover},"&:active":{color:s.colorPrimaryActive},[`&${g}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${f}-button`]:{height:s.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${f}-button`]:{height:s.controlHeightLG},[`&-small ${f}-button`]:{height:s.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${u}-compact-item`]:{[`&:not(${u}-compact-last-item)`]:{[`${u}-group-addon`]:{[`${u}-search-button`]:{marginInlineEnd:-s.lineWidth,borderRadius:0}}},[`&:not(${u}-compact-first-item)`]:{[`${u},${u}-affix-wrapper`]:{borderRadius:0}},[`> ${u}-group-addon ${u}-search-button,
> ${u},
${u}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${u}-affix-wrapper-focused`]:{zIndex:2}}}}},ie=s=>{const{componentCls:u,paddingLG:g}=s,f=`${u}-textarea`;return{[f]:{position:"relative","&-show-count":{[`> ${u}`]:{height:"100%"},[`${u}-data-count`]:{position:"absolute",bottom:-s.fontSize*s.lineHeight,insetInlineEnd:0,color:s.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${u}`]:{paddingInlineEnd:g}},[`&-affix-wrapper${f}-has-feedback`]:{[`${u}`]:{paddingInlineEnd:g}},[`&-affix-wrapper${u}-affix-wrapper`]:{padding:0,[`> textarea${u}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${u}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${u}-clear-icon`]:{position:"absolute",insetInlineEnd:s.paddingXS,insetBlockStart:s.paddingXS},[`${f}-suffix`]:{position:"absolute",top:0,insetInlineEnd:s.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function F(s){return(0,p.TS)(s,{inputAffixPadding:s.paddingXXS})}const ue=s=>{const{controlHeight:u,fontSize:g,lineHeight:f,lineWidth:X,controlHeightSM:K,controlHeightLG:he,fontSizeLG:U,lineHeightLG:$,paddingSM:b,controlPaddingHorizontalSM:P,controlPaddingHorizontal:i,colorFillAlter:E,colorPrimaryHover:w,controlOutlineWidth:v,controlOutline:O,colorErrorOutline:Y,colorWarningOutline:G}=s;return{paddingBlock:Math.max(Math.round((u-g*f)/2*10)/10-X,3),paddingBlockSM:Math.max(Math.round((K-g*f)/2*10)/10-X,0),paddingBlockLG:Math.ceil((he-U*$)/2*10)/10-X,paddingInline:b-X,paddingInlineSM:P-X,paddingInlineLG:i-X,addonBg:E,activeBorderColor:w,hoverBorderColor:w,activeShadow:`0 0 0 ${v}px ${O}`,errorActiveShadow:`0 0 0 ${v}px ${Y}`,warningActiveShadow:`0 0 0 ${v}px ${G}`}};be.ZP=(0,le.Z)("Input",s=>{const u=(0,p.TS)(s,F(s));return[H(u),ie(u),we(u),$e(u),Z(u),(0,h.c)(u)]},ue)},45818:function(ot,be,r){"use strict";r.d(be,{D:function(){return F},Z:function(){return u}});var C=r(96663),h=r(59301),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},le=p,R=r(7657),T=function(f,X){return h.createElement(R.Z,(0,C.Z)({},f,{ref:X,icon:le}))},N=h.forwardRef(T),B=N,ae=r(33853),re=r(38819),ce=r(92310),Q=r.n(ce),d=r(2738),xe=g=>!isNaN(parseFloat(g))&&isFinite(g),we=r(36355),$e=r(84966),Z=function(g,f){var X={};for(var K in g)Object.prototype.hasOwnProperty.call(g,K)&&f.indexOf(K)<0&&(X[K]=g[K]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,K=Object.getOwnPropertySymbols(g);he<K.length;he++)f.indexOf(K[he])<0&&Object.prototype.propertyIsEnumerable.call(g,K[he])&&(X[K[he]]=g[K[he]]);return X};const ie={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},F=h.createContext({}),ue=(()=>{let g=0;return function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return g+=1,`${f}${g}`}})();var u=h.forwardRef((g,f)=>{const{prefixCls:X,className:K,trigger:he,children:U,defaultCollapsed:$=!1,theme:b="dark",style:P={},collapsible:i=!1,reverseArrow:E=!1,width:w=200,collapsedWidth:v=80,zeroWidthTriggerStyle:O,breakpoint:Y,onCollapse:G,onBreakpoint:ee}=g,ve=Z(g,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pe}=(0,h.useContext)($e.Gs),[J,k]=(0,h.useState)("collapsed"in g?g.collapsed:$),[Ce,je]=(0,h.useState)(!1);(0,h.useEffect)(()=>{"collapsed"in g&&k(g.collapsed)},[g.collapsed]);const Oe=(l,m)=>{"collapsed"in g||k(l),G==null||G(l,m)},Ie=(0,h.useRef)();Ie.current=l=>{je(l.matches),ee==null||ee(l.matches),J!==l.matches&&Oe(l.matches,"responsive")},(0,h.useEffect)(()=>{function l(o){return Ie.current(o)}let m;if(typeof window!="undefined"){const{matchMedia:o}=window;if(o&&Y&&Y in ie){m=o(`(max-width: ${ie[Y]})`);try{m.addEventListener("change",l)}catch(S){m.addListener(l)}l(m)}}return()=>{try{m==null||m.removeEventListener("change",l)}catch(o){m==null||m.removeListener(l)}}},[Y]),(0,h.useEffect)(()=>{const l=ue("ant-sider-");return pe.addSider(l),()=>pe.removeSider(l)},[]);const ze=()=>{Oe(!J,"clickTrigger")},{getPrefixCls:Re}=(0,h.useContext)(we.E_),Ve=()=>{const l=Re("layout-sider",X),m=(0,d.Z)(ve,["collapsed"]),o=J?v:w,S=xe(o)?`${o}px`:String(o),I=parseFloat(String(v||0))===0?h.createElement("span",{onClick:ze,className:Q()(`${l}-zero-width-trigger`,`${l}-zero-width-trigger-${E?"right":"left"}`),style:O},he||h.createElement(B,null)):null,V={expanded:E?h.createElement(re.Z,null):h.createElement(ae.Z,null),collapsed:E?h.createElement(ae.Z,null):h.createElement(re.Z,null)}[J?"collapsed":"expanded"],de=he!==null?I||h.createElement("div",{className:`${l}-trigger`,onClick:ze,style:{width:S}},he||V):null,ge=Object.assign(Object.assign({},P),{flex:`0 0 ${S}`,maxWidth:S,minWidth:S,width:S}),me=Q()(l,`${l}-${b}`,{[`${l}-collapsed`]:!!J,[`${l}-has-trigger`]:i&&he!==null&&!I,[`${l}-below`]:!!Ce,[`${l}-zero-width`]:parseFloat(S)===0},K);return h.createElement("aside",Object.assign({className:me},m,{style:ge,ref:f}),h.createElement("div",{className:`${l}-children`},U),i||Ce&&I?de:null)},Ue=h.useMemo(()=>({siderCollapsed:J}),[J]);return h.createElement(F.Provider,{value:Ue},Ve())})},84966:function(ot,be,r){"use strict";r.d(be,{VY:function(){return F},$_:function(){return ie},h4:function(){return Z},Gs:function(){return d},ZP:function(){return ue}});var C=r(19127),h=r(92310),p=r.n(h),le=r(2738),R=r(59301),T=r(36355),N=r(83116),ae=s=>{const{componentCls:u,bodyBg:g,lightSiderBg:f,lightTriggerBg:X,lightTriggerColor:K}=s;return{[`${u}-sider-light`]:{background:f,[`${u}-sider-trigger`]:{color:K,background:X},[`${u}-sider-zero-width-trigger`]:{color:K,background:X,border:`1px solid ${g}`,borderInlineStart:0}}}};const re=s=>{const{antCls:u,componentCls:g,colorText:f,triggerColor:X,footerBg:K,triggerBg:he,headerHeight:U,headerPadding:$,headerColor:b,footerPadding:P,triggerHeight:i,zeroTriggerHeight:E,zeroTriggerWidth:w,motionDurationMid:v,motionDurationSlow:O,fontSize:Y,borderRadius:G,bodyBg:ee,headerBg:ve,siderBg:pe}=s;return{[g]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ee,"&, *":{boxSizing:"border-box"},[`&${g}-has-sider`]:{flexDirection:"row",[`> ${g}, > ${g}-content`]:{width:0}},[`${g}-header, &${g}-footer`]:{flex:"0 0 auto"},[`${g}-sider`]:{position:"relative",minWidth:0,background:pe,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${u}-menu${u}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:i},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:i,color:X,lineHeight:`${i}px`,textAlign:"center",background:he,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:U,insetInlineEnd:-w,zIndex:1,width:w,height:E,color:X,fontSize:s.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pe,borderStartStartRadius:0,borderStartEndRadius:G,borderEndEndRadius:G,borderEndStartRadius:0,cursor:"pointer",transition:`background ${O} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${O}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-w,borderStartStartRadius:G,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:G}}}}},ae(s)),{"&-rtl":{direction:"rtl"}}),[`${g}-header`]:{height:U,padding:$,color:b,lineHeight:`${U}px`,background:ve,[`${u}-menu`]:{lineHeight:"inherit"}},[`${g}-footer`]:{padding:P,color:f,fontSize:Y,background:K},[`${g}-content`]:{flex:"auto",minHeight:0}}};var ce=(0,N.Z)("Layout",s=>[re(s)],s=>{const{colorBgLayout:u,controlHeight:g,controlHeightLG:f,colorText:X,controlHeightSM:K,marginXXS:he,colorTextLightSolid:U,colorBgContainer:$}=s,b=f*1.25;return{colorBgHeader:"#001529",colorBgBody:u,colorBgTrigger:"#002140",bodyBg:u,headerBg:"#001529",headerHeight:g*2,headerPadding:`0 ${b}px`,headerColor:X,footerPadding:`${K}px ${b}px`,footerBg:u,siderBg:"#001529",triggerHeight:f+he*2,triggerBg:"#002140",triggerColor:U,zeroTriggerWidth:f,zeroTriggerHeight:f,lightSiderBg:$,lightTriggerBg:$,lightTriggerColor:X}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Q=function(s,u){var g={};for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&u.indexOf(f)<0&&(g[f]=s[f]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,f=Object.getOwnPropertySymbols(s);X<f.length;X++)u.indexOf(f[X])<0&&Object.prototype.propertyIsEnumerable.call(s,f[X])&&(g[f[X]]=s[f[X]]);return g};const d=R.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function H(s){let{suffixCls:u,tagName:g,displayName:f}=s;return X=>R.forwardRef((he,U)=>R.createElement(X,Object.assign({ref:U,suffixCls:u,tagName:g},he)))}const xe=R.forwardRef((s,u)=>{const{prefixCls:g,suffixCls:f,className:X,tagName:K}=s,he=Q(s,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:U}=R.useContext(T.E_),$=U("layout",g),[b,P]=ce($),i=f?`${$}-${f}`:$;return b(R.createElement(K,Object.assign({className:p()(g||i,X,P),ref:u},he)))}),we=R.forwardRef((s,u)=>{const{direction:g}=R.useContext(T.E_),[f,X]=R.useState([]),{prefixCls:K,className:he,rootClassName:U,children:$,hasSider:b,tagName:P,style:i}=s,E=Q(s,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),w=(0,le.Z)(E,["suffixCls"]),{getPrefixCls:v,layout:O}=R.useContext(T.E_),Y=v("layout",K),[G,ee]=ce(Y),ve=p()(Y,{[`${Y}-has-sider`]:typeof b=="boolean"?b:f.length>0,[`${Y}-rtl`]:g==="rtl"},O==null?void 0:O.className,he,U,ee),pe=R.useMemo(()=>({siderHook:{addSider:J=>{X(k=>[].concat((0,C.Z)(k),[J]))},removeSider:J=>{X(k=>k.filter(Ce=>Ce!==J))}}}),[]);return G(R.createElement(d.Provider,{value:pe},R.createElement(P,Object.assign({ref:u,className:ve,style:Object.assign(Object.assign({},O==null?void 0:O.style),i)},w),$)))}),$e=H({tagName:"div",displayName:"Layout"})(we),Z=H({suffixCls:"header",tagName:"header",displayName:"Header"})(xe),ie=H({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(xe),F=H({suffixCls:"content",tagName:"main",displayName:"Content"})(xe);var ue=$e},40875:function(ot,be,r){"use strict";r.d(be,{J:function(){return T}});var C=r(59301),h=r(33234),p=r(70425),le=function(N,B){var ae={};for(var re in N)Object.prototype.hasOwnProperty.call(N,re)&&B.indexOf(re)<0&&(ae[re]=N[re]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,re=Object.getOwnPropertySymbols(N);ce<re.length;ce++)B.indexOf(re[ce])<0&&Object.prototype.propertyIsEnumerable.call(N,re[ce])&&(ae[re[ce]]=N[re[ce]]);return ae};const R=C.createContext(null),T=C.forwardRef((N,B)=>{const{children:ae}=N,re=le(N,["children"]),ce=C.useContext(R),Q=C.useMemo(()=>Object.assign(Object.assign({},ce),re),[ce,re.prefixCls,re.mode,re.selectable]);return C.createElement(R.Provider,{value:Q},C.createElement(h.BR,null,(0,p.supportNodeRef)(ae)?C.cloneElement(ae,{ref:B}):ae))});be.Z=R},20834:function(ot,be,r){"use strict";r.d(be,{default:function(){return Ue}});var C=r(15285),h=r(59301),p=r(45818),le=r(92310),R=r.n(le),T=r(36355),N=function(l,m){var o={};for(var S in l)Object.prototype.hasOwnProperty.call(l,S)&&m.indexOf(S)<0&&(o[S]=l[S]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,S=Object.getOwnPropertySymbols(l);I<S.length;I++)m.indexOf(S[I])<0&&Object.prototype.propertyIsEnumerable.call(l,S[I])&&(o[S[I]]=l[S[I]]);return o},ae=l=>{const{prefixCls:m,className:o,dashed:S}=l,I=N(l,["prefixCls","className","dashed"]),{getPrefixCls:W}=h.useContext(T.E_),_=W("menu",m),V=R()({[`${_}-item-divider-dashed`]:!!S},o);return h.createElement(C.iz,Object.assign({className:V},I))},re=r(11592),ce=r(2738),Q=r(6848),d=r(92343),xe=(0,h.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$e=l=>{var m;const{className:o,children:S,icon:I,title:W,danger:_}=l,{prefixCls:V,firstLevel:de,direction:ge,disableMenuItemTitleTooltip:me,inlineCollapsed:ye}=h.useContext(xe),Me=We=>{const Xe=h.createElement("span",{className:`${V}-title-content`},S);return(!I||(0,d.l$)(S)&&S.type==="span")&&S&&We&&de&&typeof S=="string"?h.createElement("div",{className:`${V}-inline-collapsed-noicon`},S.charAt(0)):Xe},{siderCollapsed:Pe}=h.useContext(p.D);let Se=W;typeof W=="undefined"?Se=de?S:"":W===!1&&(Se="");const oe={title:Se};!Pe&&!ye&&(oe.title=null,oe.open=!1);const De=(0,re.Z)(S).length;let Ae=h.createElement(C.ck,Object.assign({},(0,ce.Z)(l,["title","icon","danger"]),{className:R()({[`${V}-item-danger`]:_,[`${V}-item-only-child`]:(I?De+1:De)===1},o),title:typeof W=="string"?W:void 0}),(0,d.Tm)(I,{className:R()((0,d.l$)(I)?(m=I.props)===null||m===void 0?void 0:m.className:"",`${V}-item-icon`)}),Me(ye));return me||(Ae=h.createElement(Q.Z,Object.assign({},oe,{placement:ge==="rtl"?"left":"right",overlayClassName:`${V}-inline-collapsed-tooltip`}),Ae)),Ae},ie=l=>{var m;const{popupClassName:o,icon:S,title:I,theme:W}=l,_=h.useContext(xe),{prefixCls:V,inlineCollapsed:de,theme:ge}=_,me=(0,C.Xl)();let ye;if(!S)ye=de&&!me.length&&I&&typeof I=="string"?h.createElement("div",{className:`${V}-inline-collapsed-noicon`},I.charAt(0)):h.createElement("span",{className:`${V}-title-content`},I);else{const Pe=(0,d.l$)(I)&&I.type==="span";ye=h.createElement(h.Fragment,null,(0,d.Tm)(S,{className:R()((0,d.l$)(S)?(m=S.props)===null||m===void 0?void 0:m.className:"",`${V}-item-icon`)}),Pe?I:h.createElement("span",{className:`${V}-title-content`},I))}const Me=h.useMemo(()=>Object.assign(Object.assign({},_),{firstLevel:!1}),[_]);return h.createElement(xe.Provider,{value:Me},h.createElement(C.Wd,Object.assign({},(0,ce.Z)(l,["icon"]),{title:ye,popupClassName:R()(V,o,`${V}-${W||ge}`)})))},F=r(18785),ue=r(70425),s=r(62892),u=r(40875),g=function(l,m){var o={};for(var S in l)Object.prototype.hasOwnProperty.call(l,S)&&m.indexOf(S)<0&&(o[S]=l[S]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,S=Object.getOwnPropertySymbols(l);I<S.length;I++)m.indexOf(S[I])<0&&Object.prototype.propertyIsEnumerable.call(l,S[I])&&(o[S[I]]=l[S[I]]);return o};function f(l){return(l||[]).map((m,o)=>{if(m&&typeof m=="object"){const S=m,{label:I,children:W,key:_,type:V}=S,de=g(S,["label","children","key","type"]),ge=_!=null?_:`tmp-${o}`;return W||V==="group"?V==="group"?h.createElement(C.BW,Object.assign({key:ge},de,{title:I}),f(W)):h.createElement(ie,Object.assign({key:ge},de,{title:I}),f(W)):V==="divider"?h.createElement(ae,Object.assign({key:ge},de)):h.createElement($e,Object.assign({key:ge},de),I)}return null}).filter(m=>m)}function X(l){return h.useMemo(()=>l&&f(l),[l])}var K=r(64993),he=r(17313),U=r(8378),$=r(13826),b=r(29878),P=r(83116),i=r(37613),w=l=>{const{componentCls:m,motionDurationSlow:o,horizontalLineHeight:S,colorSplit:I,lineWidth:W,lineType:_,itemPaddingInline:V}=l;return{[`${m}-horizontal`]:{lineHeight:S,border:0,borderBottom:`${W}px ${_} ${I}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${m}-item, ${m}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:V},[`> ${m}-item:hover,
> ${m}-item-active,
> ${m}-submenu ${m}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${m}-item, ${m}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${m}-submenu-arrow`]:{display:"none"}}}},O=l=>{let{componentCls:m,menuArrowOffset:o}=l;return{[`${m}-rtl`]:{direction:"rtl"},[`${m}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${m}-rtl${m}-vertical,
${m}-submenu-rtl ${m}-vertical`]:{[`${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${o})`},"&::after":{transform:`rotate(45deg) translateY(${o})`}}}}};const Y=l=>Object.assign({},(0,he.oN)(l));var ee=(l,m)=>{const{componentCls:o,itemColor:S,itemSelectedColor:I,groupTitleColor:W,itemBg:_,subMenuItemBg:V,itemSelectedBg:de,activeBarHeight:ge,activeBarWidth:me,activeBarBorderWidth:ye,motionDurationSlow:Me,motionEaseInOut:Pe,motionEaseOut:Se,itemPaddingInline:oe,motionDurationMid:De,itemHoverColor:Ae,lineType:We,colorSplit:Xe,itemDisabledColor:Ee,dangerItemColor:Qe,dangerItemHoverColor:ut,dangerItemSelectedColor:rt,dangerItemActiveBg:Te,dangerItemSelectedBg:Ge,itemHoverBg:bt,itemActiveBg:ct,menuSubMenuBg:Dt,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:lt,horizontalItemBorderRadius:Ye,horizontalItemHoverBg:Je,popupBg:gt}=l;return{[`${o}-${m}, ${o}-${m} > ${o}`]:{color:S,background:_,[`&${o}-root:focus-visible`]:Object.assign({},Y(l)),[`${o}-item-group-title`]:{color:W},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:I}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${Ee} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:Ae}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:bt},"&:active":{backgroundColor:ct}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:bt},"&:active":{backgroundColor:ct}}},[`${o}-item-danger`]:{color:Qe,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:ut}},[`&${o}-item:active`]:{background:Te}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:I,[`&${o}-item-danger`]:{color:rt},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:de,[`&${o}-item-danger`]:{backgroundColor:Ge}},[`${o}-item, ${o}-submenu-title`]:{[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},Y(l))},[`&${o}-submenu > ${o}`]:{backgroundColor:Dt},[`&${o}-popup > ${o}`]:{backgroundColor:gt},[`&${o}-horizontal`]:Object.assign(Object.assign({},m==="dark"?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:ye,marginTop:-ye,marginBottom:0,borderRadius:Ye,"&::after":{position:"absolute",insetInline:oe,bottom:0,borderBottom:`${ge}px solid transparent`,transition:`border-color ${Me} ${Pe}`,content:'""'},"&:hover, &-active, &-open":{background:Je,"&::after":{borderBottomWidth:ge,borderBottomColor:yt}},"&-selected":{color:yt,backgroundColor:lt,"&:hover":{backgroundColor:lt},"&::after":{borderBottomWidth:ge,borderBottomColor:yt}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${ye}px ${We} ${Xe}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:V},[`${o}-item, ${o}-submenu-title`]:ye&&me?{width:`calc(100% + ${ye}px)`}:{},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${me}px solid ${I}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${De} ${Se}`,`opacity ${De} ${Se}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:rt}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${De} ${Pe}`,`opacity ${De} ${Pe}`].join(",")}}}}}};const ve=l=>{const{componentCls:m,itemHeight:o,itemMarginInline:S,padding:I,menuArrowSize:W,marginXS:_,itemMarginBlock:V}=l,de=I+W+_;return{[`${m}-item`]:{position:"relative",overflow:"hidden"},[`${m}-item, ${m}-submenu-title`]:{height:o,lineHeight:`${o}px`,paddingInline:I,overflow:"hidden",textOverflow:"ellipsis",marginInline:S,marginBlock:V,width:`calc(100% - ${S*2}px)`},[`> ${m}-item,
> ${m}-submenu > ${m}-submenu-title`]:{height:o,lineHeight:`${o}px`},[`${m}-item-group-list ${m}-submenu-title,
${m}-submenu-title`]:{paddingInlineEnd:de}}};var J=l=>{const{componentCls:m,iconCls:o,itemHeight:S,colorTextLightSolid:I,dropdownWidth:W,controlHeightLG:_,motionDurationMid:V,motionEaseOut:de,paddingXL:ge,itemMarginInline:me,fontSizeLG:ye,motionDurationSlow:Me,paddingXS:Pe,boxShadowSecondary:Se,collapsedWidth:oe,collapsedIconSize:De}=l,Ae={height:S,lineHeight:`${S}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[m]:{"&-inline, &-vertical":Object.assign({[`&${m}-root`]:{boxShadow:"none"}},ve(l))},[`${m}-submenu-popup`]:{[`${m}-vertical`]:Object.assign(Object.assign({},ve(l)),{boxShadow:Se})}},{[`${m}-submenu-popup ${m}-vertical${m}-sub`]:{minWidth:W,maxHeight:`calc(100vh - ${_*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${m}-inline`]:{width:"100%",[`&${m}-root`]:{[`${m}-item, ${m}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Me}`,`background ${Me}`,`padding ${V} ${de}`].join(","),[`> ${m}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${m}-sub${m}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${m}-submenu > ${m}-submenu-title`]:Ae,[`& ${m}-item-group-title`]:{paddingInlineStart:ge}},[`${m}-item`]:Ae}},{[`${m}-inline-collapsed`]:{width:oe,[`&${m}-root`]:{[`${m}-item, ${m}-submenu ${m}-submenu-title`]:{[`> ${m}-inline-collapsed-noicon`]:{fontSize:ye,textAlign:"center"}}},[`> ${m}-item,
> ${m}-item-group > ${m}-item-group-list > ${m}-item,
> ${m}-item-group > ${m}-item-group-list > ${m}-submenu > ${m}-submenu-title,
> ${m}-submenu > ${m}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ye/2}px - ${me}px)`,textOverflow:"clip",[`
${m}-submenu-arrow,
${m}-submenu-expand-icon
`]:{opacity:0},[`${m}-item-icon, ${o}`]:{margin:0,fontSize:De,lineHeight:`${S}px`,"+ span":{display:"inline-block",opacity:0}}},[`${m}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${m}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:I}},[`${m}-item-group-title`]:Object.assign(Object.assign({},he.vS),{paddingInline:Pe})}}]};const k=l=>{const{componentCls:m,motionDurationSlow:o,motionDurationMid:S,motionEaseInOut:I,motionEaseOut:W,iconCls:_,iconSize:V,iconMarginInlineEnd:de}=l;return{[`${m}-item, ${m}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${I}`].join(","),[`${m}-item-icon, ${_}`]:{minWidth:V,fontSize:V,transition:[`font-size ${S} ${W}`,`margin ${o} ${I}`,`color ${o}`].join(","),"+ span":{marginInlineStart:de,opacity:1,transition:[`opacity ${o} ${I}`,`margin ${o}`,`color ${o}`].join(",")}},[`${m}-item-icon`]:Object.assign({},(0,he.Ro)()),[`&${m}-item-only-child`]:{[`> ${_}, > ${m}-item-icon`]:{marginInlineEnd:0}}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${m}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ce=l=>{const{componentCls:m,motionDurationSlow:o,motionEaseInOut:S,borderRadius:I,menuArrowSize:W,menuArrowOffset:_}=l;return{[`${m}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:l.margin,width:W,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${S}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:W*.6,height:W*.15,backgroundColor:"currentcolor",borderRadius:I,transition:[`background ${o} ${S}`,`transform ${o} ${S}`,`top ${o} ${S}`,`color ${o} ${S}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${_})`},"&::after":{transform:`rotate(-45deg) translateY(${_})`}}}}},je=l=>{const{antCls:m,componentCls:o,fontSize:S,motionDurationSlow:I,motionDurationMid:W,motionEaseInOut:_,paddingXS:V,padding:de,colorSplit:ge,lineWidth:me,zIndexPopup:ye,borderRadiusLG:Me,subMenuItemBorderRadius:Pe,menuArrowSize:Se,menuArrowOffset:oe,lineType:De,menuPanelMaskInset:Ae,groupTitleLineHeight:We,groupTitleFontSize:Xe}=l;return[{"":{[`${o}`]:Object.assign(Object.assign({},(0,he.dF)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(l)),(0,he.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:S,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${I} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:l.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${V}px ${de}px`,fontSize:Xe,lineHeight:We,transition:`all ${I}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${I} ${_}`,`background ${I} ${_}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${I} ${_}`,`background ${I} ${_}`,`padding ${W} ${_}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${I} ${_}`,`padding ${I} ${_}`].join(",")},[`${o}-title-content`]:{transition:`color ${I}`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ge,borderStyle:De,borderWidth:0,borderTopWidth:me,marginBlock:me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),k(l)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${S*2}px ${de}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ye,borderRadius:Me,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ae}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ae},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:l.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:l.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:l.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:l.paddingXS},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:Me},k(l)),Ce(l)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:Pe},[`${o}-submenu-title::after`]:{transition:`transform ${I} ${_}`}})}}),Ce(l)),{[`&-inline-collapsed ${o}-submenu-arrow,
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${oe})`},"&::after":{transform:`rotate(45deg) translateX(-${oe})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(-${Se*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${oe})`},"&::before":{transform:`rotate(45deg) translateX(${oe})`}}})},{[`${m}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]};var Oe=(l,m)=>(0,P.Z)("Menu",S=>{if(m===!1)return[];const{colorBgElevated:I,colorPrimary:W,colorTextLightSolid:_,controlHeightLG:V,fontSize:de,darkItemColor:ge,darkDangerItemColor:me,darkItemBg:ye,darkSubMenuItemBg:Me,darkItemSelectedColor:Pe,darkItemSelectedBg:Se,darkDangerItemSelectedBg:oe,darkItemHoverBg:De,darkGroupTitleColor:Ae,darkItemHoverColor:We,darkItemDisabledColor:Xe,darkDangerItemHoverColor:Ee,darkDangerItemSelectedColor:Qe,darkDangerItemActiveBg:ut}=S,rt=de/7*5,Te=(0,i.TS)(S,{menuArrowSize:rt,menuHorizontalHeight:V*1.15,menuArrowOffset:`${rt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:I}),Ge=(0,i.TS)(Te,{itemColor:ge,itemHoverColor:We,groupTitleColor:Ae,itemSelectedColor:Pe,itemBg:ye,popupBg:ye,subMenuItemBg:Me,itemActiveBg:"transparent",itemSelectedBg:Se,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:De,itemDisabledColor:Xe,dangerItemColor:me,dangerItemHoverColor:Ee,dangerItemSelectedColor:Qe,dangerItemActiveBg:ut,dangerItemSelectedBg:oe,menuSubMenuBg:Me,horizontalItemSelectedColor:_,horizontalItemSelectedBg:W});return[je(Te),w(Te),J(Te),ee(Te,"light"),ee(Ge,"dark"),O(Te),(0,U.Z)(Te),(0,$.oN)(Te,"slide-up"),(0,$.oN)(Te,"slide-down"),(0,b._y)(Te,"zoom-big")]},S=>{const{colorPrimary:I,colorError:W,colorTextDisabled:_,colorErrorBg:V,colorText:de,colorTextDescription:ge,colorBgContainer:me,colorFillAlter:ye,colorFillContent:Me,lineWidth:Pe,lineWidthBold:Se,controlItemBgActive:oe,colorBgTextHover:De,controlHeightLG:Ae,lineHeight:We,colorBgElevated:Xe,marginXXS:Ee,padding:Qe,fontSize:ut,controlHeightSM:rt,fontSizeLG:Te,colorTextLightSolid:Ge,colorErrorHover:bt}=S,ct=new K.C(Ge).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:S.zIndexPopupBase+50,radiusItem:S.borderRadiusLG,itemBorderRadius:S.borderRadiusLG,radiusSubMenuItem:S.borderRadiusSM,subMenuItemBorderRadius:S.borderRadiusSM,colorItemText:de,itemColor:de,colorItemTextHover:de,itemHoverColor:de,colorItemTextHoverHorizontal:I,horizontalItemHoverColor:I,colorGroupTitle:ge,groupTitleColor:ge,colorItemTextSelected:I,itemSelectedColor:I,colorItemTextSelectedHorizontal:I,horizontalItemSelectedColor:I,colorItemBg:me,itemBg:me,colorItemBgHover:De,itemHoverBg:De,colorItemBgActive:Me,itemActiveBg:oe,colorSubItemBg:ye,subMenuItemBg:ye,colorItemBgSelected:oe,itemSelectedBg:oe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Se,activeBarHeight:Se,colorActiveBarBorderSize:Pe,activeBarBorderWidth:Pe,colorItemTextDisabled:_,itemDisabledColor:_,colorDangerItemText:W,dangerItemColor:W,colorDangerItemTextHover:W,dangerItemHoverColor:W,colorDangerItemTextSelected:W,dangerItemSelectedColor:W,colorDangerItemBgActive:V,dangerItemActiveBg:V,colorDangerItemBgSelected:V,dangerItemSelectedBg:V,itemMarginInline:S.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ae,groupTitleLineHeight:We,collapsedWidth:Ae*2,popupBg:Xe,itemMarginBlock:Ee,itemPaddingInline:Qe,horizontalLineHeight:`${Ae*1.15}px`,iconSize:ut,iconMarginInlineEnd:rt-ut,collapsedIconSize:Te,groupTitleFontSize:ut,darkItemDisabledColor:new K.C(Ge).setAlpha(.25).toRgbString(),darkItemColor:ct,darkDangerItemColor:W,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ge,darkItemSelectedBg:I,darkDangerItemSelectedBg:W,darkItemHoverBg:"transparent",darkGroupTitleColor:ct,darkItemHoverColor:Ge,darkDangerItemHoverColor:bt,darkDangerItemSelectedColor:Ge,darkDangerItemActiveBg:W}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(l),Ie=function(l,m){var o={};for(var S in l)Object.prototype.hasOwnProperty.call(l,S)&&m.indexOf(S)<0&&(o[S]=l[S]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,S=Object.getOwnPropertySymbols(l);I<S.length;I++)m.indexOf(S[I])<0&&Object.prototype.propertyIsEnumerable.call(l,S[I])&&(o[S[I]]=l[S[I]]);return o},Re=(0,h.forwardRef)((l,m)=>{var o,S;const I=h.useContext(u.Z),W=I||{},{getPrefixCls:_,getPopupContainer:V,direction:de,menu:ge}=h.useContext(T.E_),me=_(),{prefixCls:ye,className:Me,style:Pe,theme:Se="light",expandIcon:oe,_internalDisableMenuItemTitleTooltip:De,inlineCollapsed:Ae,siderCollapsed:We,items:Xe,children:Ee,rootClassName:Qe,mode:ut,selectable:rt,onClick:Te,overflowedIndicatorPopupClassName:Ge}=l,bt=Ie(l,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ct=(0,ce.Z)(bt,["collapsedWidth"]),Dt=X(Xe)||Ee;(o=W.validator)===null||o===void 0||o.call(W,{mode:ut});const yt=(0,ue.useEvent)(function(){var Ht;Te==null||Te.apply(void 0,arguments),(Ht=W.onClick)===null||Ht===void 0||Ht.call(W)}),lt=W.mode||ut,Ye=rt!=null?rt:W.selectable,Je=h.useMemo(()=>We!==void 0?We:Ae,[Ae,We]),gt={horizontal:{motionName:`${me}-slide-up`},inline:(0,s.Z)(me),other:{motionName:`${me}-zoom-big`}},nt=_("menu",ye||W.prefixCls),[xt,ft]=Oe(nt,!I),pt=R()(`${nt}-${Se}`,ge==null?void 0:ge.className,Me);let Tt;if(typeof oe=="function")Tt=oe;else if(oe===null||oe===!1)Tt=null;else if(W.expandIcon===null||W.expandIcon===!1)Tt=null;else{const Ht=oe!=null?oe:W.expandIcon;Tt=(0,d.Tm)(Ht,{className:R()(`${nt}-submenu-expand-icon`,(0,d.l$)(Ht)?(S=Ht.props)===null||S===void 0?void 0:S.className:"")})}const St=h.useMemo(()=>({prefixCls:nt,inlineCollapsed:Je||!1,direction:de,firstLevel:!0,theme:Se,mode:lt,disableMenuItemTitleTooltip:De}),[nt,Je,de,De,Se]);return xt(h.createElement(u.Z.Provider,{value:null},h.createElement(xe.Provider,{value:St},h.createElement(C.ZP,Object.assign({getPopupContainer:V,overflowedIndicator:h.createElement(F.Z,null),overflowedIndicatorPopupClassName:R()(nt,`${nt}-${Se}`,Ge),mode:lt,selectable:Ye,onClick:yt},ct,{inlineCollapsed:Je,style:Object.assign(Object.assign({},ge==null?void 0:ge.style),Pe),className:pt,prefixCls:nt,direction:de,defaultMotions:gt,expandIcon:Tt,ref:m,rootClassName:R()(Qe,ft)}),Dt))))});const Ve=(0,h.forwardRef)((l,m)=>{const o=(0,h.useRef)(null),S=h.useContext(p.D);return(0,h.useImperativeHandle)(m,()=>({menu:o.current,focus:I=>{var W;(W=o.current)===null||W===void 0||W.focus(I)}})),h.createElement(Re,Object.assign({ref:o},l,S))});Ve.Item=$e,Ve.SubMenu=ie,Ve.Divider=ae,Ve.ItemGroup=C.BW;var Ue=Ve},8378:function(ot,be){"use strict";const r=C=>({[C.componentCls]:{[`${C.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${C.motionDurationMid} ${C.motionEaseInOut},
opacity ${C.motionDurationMid} ${C.motionEaseInOut} !important`}},[`${C.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${C.motionDurationMid} ${C.motionEaseInOut},
opacity ${C.motionDurationMid} ${C.motionEaseInOut} !important`}}});be.Z=r},92899:function(ot,be,r){"use strict";r.d(be,{Fm:function(){return Q}});var C=r(93083),h=r(95406);const p=new C.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),le=new C.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),R=new C.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T=new C.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N=new C.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),B=new C.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ae=new C.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),re=new C.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ce={"move-up":{inKeyframes:ae,outKeyframes:re},"move-down":{inKeyframes:p,outKeyframes:le},"move-left":{inKeyframes:R,outKeyframes:T},"move-right":{inKeyframes:N,outKeyframes:B}},Q=(d,H)=>{const{antCls:xe}=d,we=`${xe}-${H}`,{inKeyframes:$e,outKeyframes:Z}=ce[H];return[(0,h.R)(we,$e,Z,d.motionDurationMid),{[`
${we}-enter,
${we}-appear
`]:{opacity:0,animationTimingFunction:d.motionEaseOutCirc},[`${we}-leave`]:{animationTimingFunction:d.motionEaseInOutCirc}}]}},13826:function(ot,be,r){"use strict";r.d(be,{Qt:function(){return R},Uw:function(){return le},fJ:function(){return p},ly:function(){return T},oN:function(){return Q}});var C=r(93083),h=r(95406);const p=new C.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),le=new C.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),R=new C.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),T=new C.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),N=new C.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),B=new C.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ae=new C.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),re=new C.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ce={"slide-up":{inKeyframes:p,outKeyframes:le},"slide-down":{inKeyframes:R,outKeyframes:T},"slide-left":{inKeyframes:N,outKeyframes:B},"slide-right":{inKeyframes:ae,outKeyframes:re}},Q=(d,H)=>{const{antCls:xe}=d,we=`${xe}-${H}`,{inKeyframes:$e,outKeyframes:Z}=ce[H];return[(0,h.R)(we,$e,Z,d.motionDurationMid),{[`
${we}-enter,
${we}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:d.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${we}-leave`]:{animationTimingFunction:d.motionEaseInQuint}}]}},19447:function(ot,be,r){"use strict";r.d(be,{ZP:function(){return R},fS:function(){return p},qN:function(){return h}});var C=r(47585);const h=8;function p(T){const N=h,{contentRadius:B,limitVerticalRadius:ae}=T,re=B>12?B+2:12;return{dropdownArrowOffset:re,dropdownArrowOffsetVertical:ae?N:re}}function le(T,N){return T?N:{}}function R(T,N){const{componentCls:B,sizePopupArrow:ae,borderRadiusXS:re,borderRadiusOuter:ce,boxShadowPopoverArrow:Q}=T,{colorBg:d,contentRadius:H=T.borderRadiusLG,limitVerticalRadius:xe,arrowDistance:we=0,arrowPlacement:$e={left:!0,right:!0,top:!0,bottom:!0}}=N,{dropdownArrowOffsetVertical:Z,dropdownArrowOffset:ie}=p({contentRadius:H,limitVerticalRadius:xe});return{[B]:Object.assign(Object.assign(Object.assign(Object.assign({[`${B}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,C.r)(ae,re,ce,d,Q)),{"&:before":{background:d}})]},le(!!$e.top,{[[`&-placement-top ${B}-arrow`,`&-placement-topLeft ${B}-arrow`,`&-placement-topRight ${B}-arrow`].join(",")]:{bottom:we,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${B}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${B}-arrow`]:{left:{_skip_check_:!0,value:ie}},[`&-placement-topRight ${B}-arrow`]:{right:{_skip_check_:!0,value:ie}}})),le(!!$e.bottom,{[[`&-placement-bottom ${B}-arrow`,`&-placement-bottomLeft ${B}-arrow`,`&-placement-bottomRight ${B}-arrow`].join(",")]:{top:we,transform:"translateY(-100%)"},[`&-placement-bottom ${B}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${B}-arrow`]:{left:{_skip_check_:!0,value:ie}},[`&-placement-bottomRight ${B}-arrow`]:{right:{_skip_check_:!0,value:ie}}})),le(!!$e.left,{[[`&-placement-left ${B}-arrow`,`&-placement-leftTop ${B}-arrow`,`&-placement-leftBottom ${B}-arrow`].join(",")]:{right:{_skip_check_:!0,value:we},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${B}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${B}-arrow`]:{top:Z},[`&-placement-leftBottom ${B}-arrow`]:{bottom:Z}})),le(!!$e.right,{[[`&-placement-right ${B}-arrow`,`&-placement-rightTop ${B}-arrow`,`&-placement-rightBottom ${B}-arrow`].join(",")]:{left:{_skip_check_:!0,value:we},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${B}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${B}-arrow`]:{top:Z},[`&-placement-rightBottom ${B}-arrow`]:{bottom:Z}}))}}},47585:function(ot,be,r){"use strict";r.d(be,{r:function(){return C}});const C=(h,p,le,R,T)=>{const N=h/2,B=0,ae=N,re=le*1/Math.sqrt(2),ce=N-le*(1-1/Math.sqrt(2)),Q=N-p*(1/Math.sqrt(2)),d=le*(Math.sqrt(2)-1)+p*(1/Math.sqrt(2)),H=2*N-Q,xe=d,we=2*N-re,$e=ce,Z=2*N-B,ie=ae,F=N*Math.sqrt(2)+le*(Math.sqrt(2)-2),ue=le*(Math.sqrt(2)-1);return{pointerEvents:"none",width:h,height:h,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:h,height:h/2,background:R,clipPath:{_multi_value_:!0,value:[`polygon(${ue}px 100%, 50% ${ue}px, ${2*N-ue}px 100%, ${ue}px 100%)`,`path('M ${B} ${ae} A ${le} ${le} 0 0 0 ${re} ${ce} L ${Q} ${d} A ${p} ${p} 0 0 1 ${H} ${xe} L ${we} ${$e} A ${le} ${le} 0 0 0 ${Z} ${ie} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:F,height:F,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${p}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:T,zIndex:0,background:"transparent"}}}},33166:function(ot,be,r){"use strict";r.d(be,{i:function(){return C}});const C=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(ot,be,r){"use strict";r.d(be,{Z:function(){return h}});var C=r(33166);function h(p,le){return C.i.reduce((R,T)=>{const N=p[`${T}1`],B=p[`${T}3`],ae=p[`${T}6`],re=p[`${T}7`];return Object.assign(Object.assign({},R),le(T,{lightColor:N,lightBorderColor:B,darkColor:ae,textColor:re}))},{})}},6848:function(ot,be,r){"use strict";r.d(be,{Z:function(){return he}});var C=r(59301),h=r(92310),p=r.n(h),le=r(55477),R=r(18929),T=r(62892),N=r(79676),B=r(92343),ae=r(36355),re=r(33234),ce=r(88088),Q=r(17313),d=r(29878),H=r(19447),xe=r(45157),we=r(37613),$e=r(83116);const Z=U=>{const{componentCls:$,tooltipMaxWidth:b,tooltipColor:P,tooltipBg:i,tooltipBorderRadius:E,zIndexPopup:w,controlHeight:v,boxShadowSecondary:O,paddingSM:Y,paddingXS:G,tooltipRadiusOuter:ee}=U;return[{[$]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Q.Wf)(U)),{position:"absolute",zIndex:w,display:"block",width:"max-content",maxWidth:b,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${$}-inner`]:{minWidth:v,minHeight:v,padding:`${Y/2}px ${G}px`,color:P,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:E,boxShadow:O,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${$}-inner`]:{borderRadius:Math.min(E,H.qN)}},[`${$}-content`]:{position:"relative"}}),(0,xe.Z)(U,(ve,pe)=>{let{darkColor:J}=pe;return{[`&${$}-${ve}`]:{[`${$}-inner`]:{backgroundColor:J},[`${$}-arrow`]:{"--antd-arrow-background-color":J}}}})),{"&-rtl":{direction:"rtl"}})},(0,H.ZP)((0,we.TS)(U,{borderRadiusOuter:ee}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:E,limitVerticalRadius:!0}),{[`${$}-pure`]:{position:"relative",maxWidth:"none",margin:U.sizePopupArrow}}]};var ie=(U,$)=>(0,$e.Z)("Tooltip",P=>{if($===!1)return[];const{borderRadius:i,colorTextLightSolid:E,colorBgDefault:w,borderRadiusOuter:v}=P,O=(0,we.TS)(P,{tooltipMaxWidth:250,tooltipColor:E,tooltipBorderRadius:i,tooltipBg:w,tooltipRadiusOuter:v>4?4:v});return[Z(O),(0,d._y)(P,"zoom-big-fast")]},P=>{let{zIndexPopupBase:i,colorBgSpotlight:E}=P;return{zIndexPopup:i+70,colorBgDefault:E}},{resetStyle:!1})(U),F=r(36785);function ue(U,$){const b=(0,F.o2)($),P=p()({[`${U}-${$}`]:$&&b}),i={},E={};return $&&!b&&(i.background=$,E["--antd-arrow-background-color"]=$),{className:P,overlayStyle:i,arrowStyle:E}}var u=U=>{const{prefixCls:$,className:b,placement:P="top",title:i,color:E,overlayInnerStyle:w}=U,{getPrefixCls:v}=C.useContext(ae.E_),O=v("tooltip",$),[Y,G]=ie(O,!0),ee=ue(O,E),ve=ee.arrowStyle,pe=Object.assign(Object.assign({},w),ee.overlayStyle),J=p()(G,O,`${O}-pure`,`${O}-placement-${P}`,b,ee.className);return Y(C.createElement("div",{className:J,style:ve},C.createElement("div",{className:`${O}-arrow`}),C.createElement(le.G,Object.assign({},U,{className:G,prefixCls:O,overlayInnerStyle:pe}),i)))},g=function(U,$){var b={};for(var P in U)Object.prototype.hasOwnProperty.call(U,P)&&$.indexOf(P)<0&&(b[P]=U[P]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,P=Object.getOwnPropertySymbols(U);i<P.length;i++)$.indexOf(P[i])<0&&Object.prototype.propertyIsEnumerable.call(U,P[i])&&(b[P[i]]=U[P[i]]);return b};const f=(U,$)=>{const b={},P=Object.assign({},U);return $.forEach(i=>{U&&i in U&&(b[i]=U[i],delete P[i])}),{picked:b,omitted:P}};function X(U,$){const b=U.type;if((b.__ANT_BUTTON===!0||U.type==="button")&&U.props.disabled||b.__ANT_SWITCH===!0&&(U.props.disabled||U.props.loading)||b.__ANT_RADIO===!0&&U.props.disabled){const{picked:P,omitted:i}=f(U.props.style,["position","left","right","top","bottom","float","display","zIndex"]),E=Object.assign(Object.assign({display:"inline-block"},P),{cursor:"not-allowed",width:U.props.block?"100%":void 0}),w=Object.assign(Object.assign({},i),{pointerEvents:"none"}),v=(0,B.Tm)(U,{style:w,className:null});return C.createElement("span",{style:E,className:p()(U.props.className,`${$}-disabled-compatible-wrapper`)},v)}return U}const K=C.forwardRef((U,$)=>{var b,P;const{prefixCls:i,openClassName:E,getTooltipContainer:w,overlayClassName:v,color:O,overlayInnerStyle:Y,children:G,afterOpenChange:ee,afterVisibleChange:ve,destroyTooltipOnHide:pe,arrow:J=!0,title:k,overlay:Ce,builtinPlacements:je,arrowPointAtCenter:Oe=!1,autoAdjustOverflow:Ie=!0}=U,ze=!!J,[,Re]=(0,ce.Z)(),{getPopupContainer:Ve,getPrefixCls:Ue,direction:l}=C.useContext(ae.E_),m=C.useRef(null),o=()=>{var lt;(lt=m.current)===null||lt===void 0||lt.forceAlign()};C.useImperativeHandle($,()=>({forceAlign:o,forcePopupAlign:()=>{o()}}));const[S,I]=(0,R.Z)(!1,{value:(b=U.open)!==null&&b!==void 0?b:U.visible,defaultValue:(P=U.defaultOpen)!==null&&P!==void 0?P:U.defaultVisible}),W=!k&&!Ce&&k!==0,_=lt=>{var Ye,Je;I(W?!1:lt),W||((Ye=U.onOpenChange)===null||Ye===void 0||Ye.call(U,lt),(Je=U.onVisibleChange)===null||Je===void 0||Je.call(U,lt))},V=C.useMemo(()=>{var lt,Ye;let Je=Oe;return typeof J=="object"&&(Je=(Ye=(lt=J.pointAtCenter)!==null&&lt!==void 0?lt:J.arrowPointAtCenter)!==null&&Ye!==void 0?Ye:Oe),je||(0,N.Z)({arrowPointAtCenter:Je,autoAdjustOverflow:Ie,arrowWidth:ze?Re.sizePopupArrow:0,borderRadius:Re.borderRadius,offset:Re.marginXXS,visibleFirst:!0})},[Oe,J,je,Re]),de=C.useMemo(()=>k===0?k:Ce||k||"",[Ce,k]),ge=C.createElement(re.BR,null,typeof de=="function"?de():de),{getPopupContainer:me,placement:ye="top",mouseEnterDelay:Me=.1,mouseLeaveDelay:Pe=.1,overlayStyle:Se,rootClassName:oe}=U,De=g(U,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ae=Ue("tooltip",i),We=Ue(),Xe=U["data-popover-inject"];let Ee=S;!("open"in U)&&!("visible"in U)&&W&&(Ee=!1);const Qe=X((0,B.l$)(G)&&!(0,B.M2)(G)?G:C.createElement("span",null,G),Ae),ut=Qe.props,rt=!ut.className||typeof ut.className=="string"?p()(ut.className,E||`${Ae}-open`):ut.className,[Te,Ge]=ie(Ae,!Xe),bt=ue(Ae,O),ct=bt.arrowStyle,Dt=Object.assign(Object.assign({},Y),bt.overlayStyle),yt=p()(v,{[`${Ae}-rtl`]:l==="rtl"},bt.className,oe,Ge);return Te(C.createElement(le.Z,Object.assign({},De,{showArrow:ze,placement:ye,mouseEnterDelay:Me,mouseLeaveDelay:Pe,prefixCls:Ae,overlayClassName:yt,overlayStyle:Object.assign(Object.assign({},ct),Se),getTooltipContainer:me||w||Ve,ref:m,builtinPlacements:V,overlay:ge,visible:Ee,onVisibleChange:_,afterVisibleChange:ee!=null?ee:ve,overlayInnerStyle:Dt,arrowContent:C.createElement("span",{className:`${Ae}-arrow-content`}),motion:{motionName:(0,T.m)(We,"zoom-big-fast",U.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!pe}),Ee?(0,B.Tm)(Qe,{className:rt}):Qe))});K._InternalPanelDoNotUseOrYouWillBeFired=u;var he=K},21639:function(ot){(function(be,r){ot.exports=r()})(this,function(){"use strict";function be(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(a,y).enumerable})),t.push.apply(t,n)}return t}function r(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?be(Object(t),!0).forEach(function(n){N(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):be(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function C(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function h(a){var e=C(a,"string");return typeof e=="symbol"?e:e+""}function p(a){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(a)}function le(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function R(a,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,h(n.key),n)}}function T(a,e,t){return e&&R(a.prototype,e),t&&R(a,t),Object.defineProperty(a,"prototype",{writable:!1}),a}function N(a,e,t){return e=h(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function B(a){return ae(a)||re(a)||ce(a)||d()}function ae(a){if(Array.isArray(a))return Q(a)}function re(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function ce(a,e){if(a){if(typeof a=="string")return Q(a,e);var t=Object.prototype.toString.call(a).slice(8,-1);if(t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set")return Array.from(a);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Q(a,e)}}function Q(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=a[t];return n}function d(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=typeof window!="undefined"&&typeof window.document!="undefined",xe=H?window:{},we=H&&xe.document.documentElement?"ontouchstart"in xe.document.documentElement:!1,$e=H?"PointerEvent"in xe:!1,Z="cropper",ie="all",F="crop",ue="move",s="zoom",u="e",g="w",f="s",X="n",K="ne",he="nw",U="se",$="sw",b="".concat(Z,"-crop"),P="".concat(Z,"-disabled"),i="".concat(Z,"-hidden"),E="".concat(Z,"-hide"),w="".concat(Z,"-invisible"),v="".concat(Z,"-modal"),O="".concat(Z,"-move"),Y="".concat(Z,"Action"),G="".concat(Z,"Preview"),ee="crop",ve="move",pe="none",J="crop",k="cropend",Ce="cropmove",je="cropstart",Oe="dblclick",Ie=we?"touchstart":"mousedown",ze=we?"touchmove":"mousemove",Re=we?"touchend touchcancel":"mouseup",Ve=$e?"pointerdown":Ie,Ue=$e?"pointermove":ze,l=$e?"pointerup pointercancel":Re,m="ready",o="resize",S="wheel",I="zoom",W="image/jpeg",_=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,V=/^data:/,de=/^data:image\/jpeg;base64,/,ge=/^img|canvas$/i,me=200,ye=100,Me={viewMode:0,dragMode:ee,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:me,minContainerHeight:ye,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Pe='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',Se=Number.isNaN||xe.isNaN;function oe(a){return typeof a=="number"&&!Se(a)}var De=function(e){return e>0&&e<1/0};function Ae(a){return typeof a=="undefined"}function We(a){return p(a)==="object"&&a!==null}var Xe=Object.prototype.hasOwnProperty;function Ee(a){if(!We(a))return!1;try{var e=a.constructor,t=e.prototype;return e&&t&&Xe.call(t,"isPrototypeOf")}catch(n){return!1}}function Qe(a){return typeof a=="function"}var ut=Array.prototype.slice;function rt(a){return Array.from?Array.from(a):ut.call(a)}function Te(a,e){return a&&Qe(e)&&(Array.isArray(a)||oe(a.length)?rt(a).forEach(function(t,n){e.call(a,t,n,a)}):We(a)&&Object.keys(a).forEach(function(t){e.call(a,a[t],t,a)})),a}var Ge=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),y=1;y<t;y++)n[y-1]=arguments[y];return We(e)&&n.length>0&&n.forEach(function(c){We(c)&&Object.keys(c).forEach(function(x){e[x]=c[x]})}),e},bt=/\.\d*(?:0|9){12}\d*$/;function ct(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return bt.test(a)?Math.round(a*e)/e:a}var Dt=/^width|height|left|top|marginLeft|marginTop$/;function yt(a,e){var t=a.style;Te(e,function(n,y){Dt.test(y)&&oe(n)&&(n="".concat(n,"px")),t[y]=n})}function lt(a,e){return a.classList?a.classList.contains(e):a.className.indexOf(e)>-1}function Ye(a,e){if(e){if(oe(a.length)){Te(a,function(n){Ye(n,e)});return}if(a.classList){a.classList.add(e);return}var t=a.className.trim();t?t.indexOf(e)<0&&(a.className="".concat(t," ").concat(e)):a.className=e}}function Je(a,e){if(e){if(oe(a.length)){Te(a,function(t){Je(t,e)});return}if(a.classList){a.classList.remove(e);return}a.className.indexOf(e)>=0&&(a.className=a.className.replace(e,""))}}function gt(a,e,t){if(e){if(oe(a.length)){Te(a,function(n){gt(n,e,t)});return}t?Ye(a,e):Je(a,e)}}var nt=/([a-z\d])([A-Z])/g;function xt(a){return a.replace(nt,"$1-$2").toLowerCase()}function ft(a,e){return We(a[e])?a[e]:a.dataset?a.dataset[e]:a.getAttribute("data-".concat(xt(e)))}function pt(a,e,t){We(t)?a[e]=t:a.dataset?a.dataset[e]=t:a.setAttribute("data-".concat(xt(e)),t)}function Tt(a,e){if(We(a[e]))try{delete a[e]}catch(t){a[e]=void 0}else if(a.dataset)try{delete a.dataset[e]}catch(t){a.dataset[e]=void 0}else a.removeAttribute("data-".concat(xt(e)))}var St=/\s\s*/,Ht=function(){var a=!1;if(H){var e=!1,t=function(){},n=Object.defineProperty({},"once",{get:function(){return a=!0,e},set:function(c){e=c}});xe.addEventListener("test",t,n),xe.removeEventListener("test",t,n)}return a}();function Pt(a,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=t;e.trim().split(St).forEach(function(c){if(!Ht){var x=a.listeners;x&&x[c]&&x[c][t]&&(y=x[c][t],delete x[c][t],Object.keys(x[c]).length===0&&delete x[c],Object.keys(x).length===0&&delete a.listeners)}a.removeEventListener(c,y,n)})}function ht(a,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=t;e.trim().split(St).forEach(function(c){if(n.once&&!Ht){var x=a.listeners,A=x===void 0?{}:x;y=function(){delete A[c][t],a.removeEventListener(c,y,n);for(var j=arguments.length,M=new Array(j),L=0;L<j;L++)M[L]=arguments[L];t.apply(a,M)},A[c]||(A[c]={}),A[c][t]&&a.removeEventListener(c,A[c][t],n),A[c][t]=y,a.listeners=A}a.addEventListener(c,y,n)})}function Ke(a,e,t){var n;return Qe(Event)&&Qe(CustomEvent)?n=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,t)),a.dispatchEvent(n)}function qe(a){var e=a.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var dt=xe.location,Gt=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function nn(a){var e=a.match(Gt);return e!==null&&(e[1]!==dt.protocol||e[2]!==dt.hostname||e[3]!==dt.port)}function kt(a){var e="timestamp=".concat(new Date().getTime());return a+(a.indexOf("?")===-1?"?":"&")+e}function rn(a){var e=a.rotate,t=a.scaleX,n=a.scaleY,y=a.translateX,c=a.translateY,x=[];oe(y)&&y!==0&&x.push("translateX(".concat(y,"px)")),oe(c)&&c!==0&&x.push("translateY(".concat(c,"px)")),oe(e)&&e!==0&&x.push("rotate(".concat(e,"deg)")),oe(t)&&t!==1&&x.push("scaleX(".concat(t,")")),oe(n)&&n!==1&&x.push("scaleY(".concat(n,")"));var A=x.length?x.join(" "):"none";return{WebkitTransform:A,msTransform:A,transform:A}}function zt(a){var e=r({},a),t=0;return Te(a,function(n,y){delete e[y],Te(e,function(c){var x=Math.abs(n.startX-c.startX),A=Math.abs(n.startY-c.startY),ne=Math.abs(n.endX-c.endX),j=Math.abs(n.endY-c.endY),M=Math.sqrt(x*x+A*A),L=Math.sqrt(ne*ne+j*j),q=(L-M)/M;Math.abs(q)>Math.abs(t)&&(t=q)})}),t}function Qt(a,e){var t=a.pageX,n=a.pageY,y={endX:t,endY:n};return e?y:r({startX:t,startY:n},y)}function an(a){var e=0,t=0,n=0;return Te(a,function(y){var c=y.startX,x=y.startY;e+=c,t+=x,n+=1}),e/=n,t/=n,{pageX:e,pageY:t}}function Nt(a){var e=a.aspectRatio,t=a.height,n=a.width,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",c=De(n),x=De(t);if(c&&x){var A=t*e;y==="contain"&&A>n||y==="cover"&&A<n?t=n/e:n=t*e}else c?t=n/e:x&&(n=t*e);return{width:n,height:t}}function un(a){var e=a.width,t=a.height,n=a.degree;if(n=Math.abs(n)%180,n===90)return{width:t,height:e};var y=n%90*Math.PI/180,c=Math.sin(y),x=Math.cos(y),A=e*x+t*c,ne=e*c+t*x;return n>90?{width:ne,height:A}:{width:A,height:ne}}function Ct(a,e,t,n){var y=e.aspectRatio,c=e.naturalWidth,x=e.naturalHeight,A=e.rotate,ne=A===void 0?0:A,j=e.scaleX,M=j===void 0?1:j,L=e.scaleY,q=L===void 0?1:L,Le=t.aspectRatio,Ne=t.naturalWidth,He=t.naturalHeight,Be=n.fillColor,Fe=Be===void 0?"transparent":Be,et=n.imageSmoothingEnabled,it=et===void 0?!0:et,st=n.imageSmoothingQuality,wt=st===void 0?"low":st,se=n.maxWidth,_e=se===void 0?1/0:se,at=n.maxHeight,mt=at===void 0?1/0:at,Rt=n.minWidth,Bt=Rt===void 0?0:Rt,Wt=n.minHeight,Et=Wt===void 0?0:Wt,Ot=document.createElement("canvas"),It=Ot.getContext("2d"),vt=Nt({aspectRatio:Le,width:_e,height:mt}),sn=Nt({aspectRatio:Le,width:Bt,height:Et},"cover"),hn=Math.min(vt.width,Math.max(sn.width,Ne)),ln=Math.min(vt.height,Math.max(sn.height,He)),gn=Nt({aspectRatio:y,width:_e,height:mt}),Jt=Nt({aspectRatio:y,width:Bt,height:Et},"cover"),Vt=Math.min(gn.width,Math.max(Jt.width,c)),_t=Math.min(gn.height,Math.max(Jt.height,x)),mn=[-Vt/2,-_t/2,Vt,_t];return Ot.width=ct(hn),Ot.height=ct(ln),It.fillStyle=Fe,It.fillRect(0,0,hn,ln),It.save(),It.translate(hn/2,ln/2),It.rotate(ne*Math.PI/180),It.scale(M,q),It.imageSmoothingEnabled=it,It.imageSmoothingQuality=wt,It.drawImage.apply(It,[a].concat(B(mn.map(function(bn){return Math.floor(ct(bn))})))),It.restore(),Ot}var dn=String.fromCharCode;function Kt(a,e,t){var n="";t+=e;for(var y=e;y<t;y+=1)n+=dn(a.getUint8(y));return n}var On=/^data:.*,/;function fn(a){var e=a.replace(On,""),t=atob(e),n=new ArrayBuffer(t.length),y=new Uint8Array(n);return Te(y,function(c,x){y[x]=t.charCodeAt(x)}),n}function on(a,e){for(var t=[],n=8192,y=new Uint8Array(a);y.length>0;)t.push(dn.apply(null,rt(y.subarray(0,n)))),y=y.subarray(n);return"data:".concat(e,";base64,").concat(btoa(t.join("")))}function Tn(a){var e=new DataView(a),t;try{var n,y,c;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var x=e.byteLength,A=2;A+1<x;){if(e.getUint8(A)===255&&e.getUint8(A+1)===225){y=A;break}A+=1}if(y){var ne=y+4,j=y+10;if(Kt(e,ne,4)==="Exif"){var M=e.getUint16(j);if(n=M===18761,(n||M===19789)&&e.getUint16(j+2,n)===42){var L=e.getUint32(j+4,n);L>=8&&(c=j+L)}}}if(c){var q=e.getUint16(c,n),Le,Ne;for(Ne=0;Ne<q;Ne+=1)if(Le=c+Ne*12+2,e.getUint16(Le,n)===274){Le+=8,t=e.getUint16(Le,n),e.setUint16(Le,1,n);break}}}catch(He){t=1}return t}function At(a){var e=0,t=1,n=1;switch(a){case 2:t=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,t=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:t,scaleY:n}}var In={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,y=this.cropper,c=Number(t.minContainerWidth),x=Number(t.minContainerHeight);Ye(y,i),Je(e,i);var A={width:Math.max(n.offsetWidth,c>=0?c:me),height:Math.max(n.offsetHeight,x>=0?x:ye)};this.containerData=A,yt(y,{width:A.width,height:A.height}),Ye(e,i),Je(y,i)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,y=Math.abs(t.rotate)%180===90,c=y?t.naturalHeight:t.naturalWidth,x=y?t.naturalWidth:t.naturalHeight,A=c/x,ne=e.width,j=e.height;e.height*A>e.width?n===3?ne=e.height*A:j=e.width/A:n===3?j=e.width/A:ne=e.height*A;var M={aspectRatio:A,naturalWidth:c,naturalHeight:x,width:ne,height:j};this.canvasData=M,this.limited=n===1||n===2,this.limitCanvas(!0,!0),M.width=Math.min(Math.max(M.width,M.minWidth),M.maxWidth),M.height=Math.min(Math.max(M.height,M.minHeight),M.maxHeight),M.left=(e.width-M.width)/2,M.top=(e.height-M.height)/2,M.oldLeft=M.left,M.oldTop=M.top,this.initialCanvasData=Ge({},M)},limitCanvas:function(e,t){var n=this.options,y=this.containerData,c=this.canvasData,x=this.cropBoxData,A=n.viewMode,ne=c.aspectRatio,j=this.cropped&&x;if(e){var M=Number(n.minCanvasWidth)||0,L=Number(n.minCanvasHeight)||0;A>1?(M=Math.max(M,y.width),L=Math.max(L,y.height),A===3&&(L*ne>M?M=L*ne:L=M/ne)):A>0&&(M?M=Math.max(M,j?x.width:0):L?L=Math.max(L,j?x.height:0):j&&(M=x.width,L=x.height,L*ne>M?M=L*ne:L=M/ne));var q=Nt({aspectRatio:ne,width:M,height:L});M=q.width,L=q.height,c.minWidth=M,c.minHeight=L,c.maxWidth=1/0,c.maxHeight=1/0}if(t)if(A>(j?0:1)){var Le=y.width-c.width,Ne=y.height-c.height;c.minLeft=Math.min(0,Le),c.minTop=Math.min(0,Ne),c.maxLeft=Math.max(0,Le),c.maxTop=Math.max(0,Ne),j&&this.limited&&(c.minLeft=Math.min(x.left,x.left+(x.width-c.width)),c.minTop=Math.min(x.top,x.top+(x.height-c.height)),c.maxLeft=x.left,c.maxTop=x.top,A===2&&(c.width>=y.width&&(c.minLeft=Math.min(0,Le),c.maxLeft=Math.max(0,Le)),c.height>=y.height&&(c.minTop=Math.min(0,Ne),c.maxTop=Math.max(0,Ne))))}else c.minLeft=-c.width,c.minTop=-c.height,c.maxLeft=y.width,c.maxTop=y.height},renderCanvas:function(e,t){var n=this.canvasData,y=this.imageData;if(t){var c=un({width:y.naturalWidth*Math.abs(y.scaleX||1),height:y.naturalHeight*Math.abs(y.scaleY||1),degree:y.rotate||0}),x=c.width,A=c.height,ne=n.width*(x/n.naturalWidth),j=n.height*(A/n.naturalHeight);n.left-=(ne-n.width)/2,n.top-=(j-n.height)/2,n.width=ne,n.height=j,n.aspectRatio=x/A,n.naturalWidth=x,n.naturalHeight=A,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,yt(this.canvas,Ge({width:n.width,height:n.height},rn({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,y=n.naturalWidth*(t.width/t.naturalWidth),c=n.naturalHeight*(t.height/t.naturalHeight);Ge(n,{width:y,height:c,left:(t.width-y)/2,top:(t.height-c)/2}),yt(this.image,Ge({width:n.width,height:n.height},rn(Ge({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,y=Number(e.autoCropArea)||.8,c={width:t.width,height:t.height};n&&(t.height*n>t.width?c.height=c.width/n:c.width=c.height*n),this.cropBoxData=c,this.limitCropBox(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.width=Math.max(c.minWidth,c.width*y),c.height=Math.max(c.minHeight,c.height*y),c.left=t.left+(t.width-c.width)/2,c.top=t.top+(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCropBoxData=Ge({},c)},limitCropBox:function(e,t){var n=this.options,y=this.containerData,c=this.canvasData,x=this.cropBoxData,A=this.limited,ne=n.aspectRatio;if(e){var j=Number(n.minCropBoxWidth)||0,M=Number(n.minCropBoxHeight)||0,L=A?Math.min(y.width,c.width,c.width+c.left,y.width-c.left):y.width,q=A?Math.min(y.height,c.height,c.height+c.top,y.height-c.top):y.height;j=Math.min(j,y.width),M=Math.min(M,y.height),ne&&(j&&M?M*ne>j?M=j/ne:j=M*ne:j?M=j/ne:M&&(j=M*ne),q*ne>L?q=L/ne:L=q*ne),x.minWidth=Math.min(j,L),x.minHeight=Math.min(M,q),x.maxWidth=L,x.maxHeight=q}t&&(A?(x.minLeft=Math.max(0,c.left),x.minTop=Math.max(0,c.top),x.maxLeft=Math.min(y.width,c.left+c.width)-x.width,x.maxTop=Math.min(y.height,c.top+c.height)-x.height):(x.minLeft=0,x.minTop=0,x.maxLeft=y.width-x.width,x.maxTop=y.height-x.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&pt(this.face,Y,n.width>=t.width&&n.height>=t.height?ue:ie),yt(this.cropBox,Ge({width:n.width,height:n.height},rn({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Ke(this.element,J,this.getData())}},Nn={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,y=t?this.crossOriginUrl:this.url,c=e.alt||"The image to preview",x=document.createElement("img");if(t&&(x.crossOrigin=t),x.src=y,x.alt=c,this.viewBox.appendChild(x),this.viewBoxImage=x,!!n){var A=n;typeof n=="string"?A=e.ownerDocument.querySelectorAll(n):n.querySelector&&(A=[n]),this.previews=A,Te(A,function(ne){var j=document.createElement("img");pt(ne,G,{width:ne.offsetWidth,height:ne.offsetHeight,html:ne.innerHTML}),t&&(j.crossOrigin=t),j.src=y,j.alt=c,j.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',ne.innerHTML="",ne.appendChild(j)})}},resetPreview:function(){Te(this.previews,function(e){var t=ft(e,G);yt(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Tt(e,G)})},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,y=n.width,c=n.height,x=e.width,A=e.height,ne=n.left-t.left-e.left,j=n.top-t.top-e.top;!this.cropped||this.disabled||(yt(this.viewBoxImage,Ge({width:x,height:A},rn(Ge({translateX:-ne,translateY:-j},e)))),Te(this.previews,function(M){var L=ft(M,G),q=L.width,Le=L.height,Ne=q,He=Le,Be=1;y&&(Be=q/y,He=c*Be),c&&He>Le&&(Be=Le/c,Ne=y*Be,He=Le),yt(M,{width:Ne,height:He}),yt(M.getElementsByTagName("img")[0],Ge({width:x*Be,height:A*Be},rn(Ge({translateX:-ne*Be,translateY:-j*Be},e))))}))}},Ft={bind:function(){var e=this.element,t=this.options,n=this.cropper;Qe(t.cropstart)&&ht(e,je,t.cropstart),Qe(t.cropmove)&&ht(e,Ce,t.cropmove),Qe(t.cropend)&&ht(e,k,t.cropend),Qe(t.crop)&&ht(e,J,t.crop),Qe(t.zoom)&&ht(e,I,t.zoom),ht(n,Ve,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&ht(n,S,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ht(n,Oe,this.onDblclick=this.dblclick.bind(this)),ht(e.ownerDocument,Ue,this.onCropMove=this.cropMove.bind(this)),ht(e.ownerDocument,l,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&ht(window,o,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;Qe(t.cropstart)&&Pt(e,je,t.cropstart),Qe(t.cropmove)&&Pt(e,Ce,t.cropmove),Qe(t.cropend)&&Pt(e,k,t.cropend),Qe(t.crop)&&Pt(e,J,t.crop),Qe(t.zoom)&&Pt(e,I,t.zoom),Pt(n,Ve,this.onCropStart),t.zoomable&&t.zoomOnWheel&&Pt(n,S,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Pt(n,Oe,this.onDblclick),Pt(e.ownerDocument,Ue,this.onCropMove),Pt(e.ownerDocument,l,this.onCropEnd),t.responsive&&Pt(window,o,this.onResize)}},ke={resize:function(){if(!this.disabled){var e=this.options,t=this.container,n=this.containerData,y=t.offsetWidth/n.width,c=t.offsetHeight/n.height,x=Math.abs(y-1)>Math.abs(c-1)?y:c;if(x!==1){var A,ne;e.restore&&(A=this.getCanvasData(),ne=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(Te(A,function(j,M){A[M]=j*x})),this.setCropBoxData(Te(ne,function(j,M){ne[M]=j*x})))}}},dblclick:function(){this.disabled||this.options.dragMode===pe||this.setDragMode(lt(this.dragBox,b)?ve:ee)},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,y=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?y=e.deltaY>0?1:-1:e.wheelDelta?y=-e.wheelDelta/120:e.detail&&(y=e.detail>0?1:-1),this.zoom(-y*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(oe(t)&&t!==1||oe(n)&&n!==0||e.ctrlKey))){var y=this.options,c=this.pointers,x;e.changedTouches?Te(e.changedTouches,function(A){c[A.identifier]=Qt(A)}):c[e.pointerId||0]=Qt(e),Object.keys(c).length>1&&y.zoomable&&y.zoomOnTouch?x=s:x=ft(e.target,Y),_.test(x)&&Ke(this.element,je,{originalEvent:e,action:x})!==!1&&(e.preventDefault(),this.action=x,this.cropping=!1,x===F&&(this.cropping=!0,Ye(this.dragBox,v)))}},cropMove:function(e){var t=this.action;if(!(this.disabled||!t)){var n=this.pointers;e.preventDefault(),Ke(this.element,Ce,{originalEvent:e,action:t})!==!1&&(e.changedTouches?Te(e.changedTouches,function(y){Ge(n[y.identifier]||{},Qt(y,!0))}):Ge(n[e.pointerId||0]||{},Qt(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?Te(e.changedTouches,function(y){delete n[y.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,gt(this.dragBox,v,this.cropped&&this.options.modal)),Ke(this.element,k,{originalEvent:e,action:t}))}}},D={change:function(e){var t=this.options,n=this.canvasData,y=this.containerData,c=this.cropBoxData,x=this.pointers,A=this.action,ne=t.aspectRatio,j=c.left,M=c.top,L=c.width,q=c.height,Le=j+L,Ne=M+q,He=0,Be=0,Fe=y.width,et=y.height,it=!0,st;!ne&&e.shiftKey&&(ne=L&&q?L/q:1),this.limited&&(He=c.minLeft,Be=c.minTop,Fe=He+Math.min(y.width,n.width,n.left+n.width),et=Be+Math.min(y.height,n.height,n.top+n.height));var wt=x[Object.keys(x)[0]],se={x:wt.endX-wt.startX,y:wt.endY-wt.startY},_e=function(mt){switch(mt){case u:Le+se.x>Fe&&(se.x=Fe-Le);break;case g:j+se.x<He&&(se.x=He-j);break;case X:M+se.y<Be&&(se.y=Be-M);break;case f:Ne+se.y>et&&(se.y=et-Ne);break}};switch(A){case ie:j+=se.x,M+=se.y;break;case u:if(se.x>=0&&(Le>=Fe||ne&&(M<=Be||Ne>=et))){it=!1;break}_e(u),L+=se.x,L<0&&(A=g,L=-L,j-=L),ne&&(q=L/ne,M+=(c.height-q)/2);break;case X:if(se.y<=0&&(M<=Be||ne&&(j<=He||Le>=Fe))){it=!1;break}_e(X),q-=se.y,M+=se.y,q<0&&(A=f,q=-q,M-=q),ne&&(L=q*ne,j+=(c.width-L)/2);break;case g:if(se.x<=0&&(j<=He||ne&&(M<=Be||Ne>=et))){it=!1;break}_e(g),L-=se.x,j+=se.x,L<0&&(A=u,L=-L,j-=L),ne&&(q=L/ne,M+=(c.height-q)/2);break;case f:if(se.y>=0&&(Ne>=et||ne&&(j<=He||Le>=Fe))){it=!1;break}_e(f),q+=se.y,q<0&&(A=X,q=-q,M-=q),ne&&(L=q*ne,j+=(c.width-L)/2);break;case K:if(ne){if(se.y<=0&&(M<=Be||Le>=Fe)){it=!1;break}_e(X),q-=se.y,M+=se.y,L=q*ne}else _e(X),_e(u),se.x>=0?Le<Fe?L+=se.x:se.y<=0&&M<=Be&&(it=!1):L+=se.x,se.y<=0?M>Be&&(q-=se.y,M+=se.y):(q-=se.y,M+=se.y);L<0&&q<0?(A=$,q=-q,L=-L,M-=q,j-=L):L<0?(A=he,L=-L,j-=L):q<0&&(A=U,q=-q,M-=q);break;case he:if(ne){if(se.y<=0&&(M<=Be||j<=He)){it=!1;break}_e(X),q-=se.y,M+=se.y,L=q*ne,j+=c.width-L}else _e(X),_e(g),se.x<=0?j>He?(L-=se.x,j+=se.x):se.y<=0&&M<=Be&&(it=!1):(L-=se.x,j+=se.x),se.y<=0?M>Be&&(q-=se.y,M+=se.y):(q-=se.y,M+=se.y);L<0&&q<0?(A=U,q=-q,L=-L,M-=q,j-=L):L<0?(A=K,L=-L,j-=L):q<0&&(A=$,q=-q,M-=q);break;case $:if(ne){if(se.x<=0&&(j<=He||Ne>=et)){it=!1;break}_e(g),L-=se.x,j+=se.x,q=L/ne}else _e(f),_e(g),se.x<=0?j>He?(L-=se.x,j+=se.x):se.y>=0&&Ne>=et&&(it=!1):(L-=se.x,j+=se.x),se.y>=0?Ne<et&&(q+=se.y):q+=se.y;L<0&&q<0?(A=K,q=-q,L=-L,M-=q,j-=L):L<0?(A=U,L=-L,j-=L):q<0&&(A=he,q=-q,M-=q);break;case U:if(ne){if(se.x>=0&&(Le>=Fe||Ne>=et)){it=!1;break}_e(u),L+=se.x,q=L/ne}else _e(f),_e(u),se.x>=0?Le<Fe?L+=se.x:se.y>=0&&Ne>=et&&(it=!1):L+=se.x,se.y>=0?Ne<et&&(q+=se.y):q+=se.y;L<0&&q<0?(A=he,q=-q,L=-L,M-=q,j-=L):L<0?(A=$,L=-L,j-=L):q<0&&(A=K,q=-q,M-=q);break;case ue:this.move(se.x,se.y),it=!1;break;case s:this.zoom(zt(x),e),it=!1;break;case F:if(!se.x||!se.y){it=!1;break}st=qe(this.cropper),j=wt.startX-st.left,M=wt.startY-st.top,L=c.minWidth,q=c.minHeight,se.x>0?A=se.y>0?U:K:se.x<0&&(j-=L,A=se.y>0?$:he),se.y<0&&(M-=q),this.cropped||(Je(this.cropBox,i),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}it&&(c.width=L,c.height=q,c.left=j,c.top=M,this.action=A,this.renderCropBox()),Te(x,function(at){at.startX=at.endX,at.startY=at.endY})}},z={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ye(this.dragBox,v),Je(this.cropBox,i),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Ge({},this.initialImageData),this.canvasData=Ge({},this.initialCanvasData),this.cropBoxData=Ge({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Ge(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Je(this.dragBox,v),Ye(this.cropBox,i)),this},replace:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,Te(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Je(this.cropper,P)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ye(this.cropper,P)),this},destroy:function(){var e=this.element;return e[Z]?(e[Z]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,y=n.left,c=n.top;return this.moveTo(Ae(e)?e:y+Number(e),Ae(t)?t:c+Number(t))},moveTo:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,y=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(oe(e)&&(n.left=e,y=!0),oe(t)&&(n.top=t,y=!0),y&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var y=this.options,c=this.canvasData,x=c.width,A=c.height,ne=c.naturalWidth,j=c.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&y.zoomable){var M=ne*e,L=j*e;if(Ke(this.element,I,{ratio:e,oldRatio:x/ne,originalEvent:n})===!1)return this;if(n){var q=this.pointers,Le=qe(this.cropper),Ne=q&&Object.keys(q).length?an(q):{pageX:n.pageX,pageY:n.pageY};c.left-=(M-x)*((Ne.pageX-Le.left-c.left)/x),c.top-=(L-A)*((Ne.pageY-Le.top-c.top)/A)}else Ee(t)&&oe(t.x)&&oe(t.y)?(c.left-=(M-x)*((t.x-c.left)/x),c.top-=(L-A)*((t.y-c.top)/A)):(c.left-=(M-x)/2,c.top-=(L-A)/2);c.width=M,c.height=L,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),oe(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,oe(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(oe(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,y=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(oe(e)&&(n.scaleX=e,y=!0),oe(t)&&(n.scaleY=t,y=!0),y&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.options,n=this.imageData,y=this.canvasData,c=this.cropBoxData,x;if(this.ready&&this.cropped){x={x:c.left-y.left,y:c.top-y.top,width:c.width,height:c.height};var A=n.width/n.naturalWidth;if(Te(x,function(M,L){x[L]=M/A}),e){var ne=Math.round(x.y+x.height),j=Math.round(x.x+x.width);x.x=Math.round(x.x),x.y=Math.round(x.y),x.width=j-x.x,x.height=ne-x.y}}else x={x:0,y:0,width:0,height:0};return t.rotatable&&(x.rotate=n.rotate||0),t.scalable&&(x.scaleX=n.scaleX||1,x.scaleY=n.scaleY||1),x},setData:function(e){var t=this.options,n=this.imageData,y=this.canvasData,c={};if(this.ready&&!this.disabled&&Ee(e)){var x=!1;t.rotatable&&oe(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,x=!0),t.scalable&&(oe(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,x=!0),oe(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,x=!0)),x&&this.renderCanvas(!0,!0);var A=n.width/n.naturalWidth;oe(e.x)&&(c.left=e.x*A+y.left),oe(e.y)&&(c.top=e.y*A+y.top),oe(e.width)&&(c.width=e.width*A),oe(e.height)&&(c.height=e.height*A),this.setCropBoxData(c)}return this},getContainerData:function(){return this.ready?Ge({},this.containerData):{}},getImageData:function(){return this.sized?Ge({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&Te(["left","top","width","height","naturalWidth","naturalHeight"],function(n){t[n]=e[n]}),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&Ee(e)&&(oe(e.left)&&(t.left=e.left),oe(e.top)&&(t.top=e.top),oe(e.width)?(t.width=e.width,t.height=e.width/n):oe(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,t;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(e){var t=this.cropBoxData,n=this.options.aspectRatio,y,c;return this.ready&&this.cropped&&!this.disabled&&Ee(e)&&(oe(e.left)&&(t.left=e.left),oe(e.top)&&(t.top=e.top),oe(e.width)&&e.width!==t.width&&(y=!0,t.width=e.width),oe(e.height)&&e.height!==t.height&&(c=!0,t.height=e.height),n&&(y?t.height=t.width/n:c&&(t.width=t.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=Ct(this.image,this.imageData,t,e);if(!this.cropped)return n;var y=this.getData(e.rounded),c=y.x,x=y.y,A=y.width,ne=y.height,j=n.width/Math.floor(t.naturalWidth);j!==1&&(c*=j,x*=j,A*=j,ne*=j);var M=A/ne,L=Nt({aspectRatio:M,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),q=Nt({aspectRatio:M,width:e.minWidth||0,height:e.minHeight||0},"cover"),Le=Nt({aspectRatio:M,width:e.width||(j!==1?n.width:A),height:e.height||(j!==1?n.height:ne)}),Ne=Le.width,He=Le.height;Ne=Math.min(L.width,Math.max(q.width,Ne)),He=Math.min(L.height,Math.max(q.height,He));var Be=document.createElement("canvas"),Fe=Be.getContext("2d");Be.width=ct(Ne),Be.height=ct(He),Fe.fillStyle=e.fillColor||"transparent",Fe.fillRect(0,0,Ne,He);var et=e.imageSmoothingEnabled,it=et===void 0?!0:et,st=e.imageSmoothingQuality;Fe.imageSmoothingEnabled=it,st&&(Fe.imageSmoothingQuality=st);var wt=n.width,se=n.height,_e=c,at=x,mt,Rt,Bt,Wt,Et,Ot;_e<=-A||_e>wt?(_e=0,mt=0,Bt=0,Et=0):_e<=0?(Bt=-_e,_e=0,mt=Math.min(wt,A+_e),Et=mt):_e<=wt&&(Bt=0,mt=Math.min(A,wt-_e),Et=mt),mt<=0||at<=-ne||at>se?(at=0,Rt=0,Wt=0,Ot=0):at<=0?(Wt=-at,at=0,Rt=Math.min(se,ne+at),Ot=Rt):at<=se&&(Wt=0,Rt=Math.min(ne,se-at),Ot=Rt);var It=[_e,at,mt,Rt];if(Et>0&&Ot>0){var vt=Ne/A;It.push(Bt*vt,Wt*vt,Et*vt,Ot*vt)}return Fe.drawImage.apply(Fe,[n].concat(B(It.map(function(sn){return Math.floor(ct(sn))})))),Be},setAspectRatio:function(e){var t=this.options;return!this.disabled&&!Ae(e)&&(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,y=this.face;if(this.ready&&!this.disabled){var c=e===ee,x=t.movable&&e===ve;e=c||x?e:pe,t.dragMode=e,pt(n,Y,e),gt(n,b,c),gt(n,O,x),t.cropBoxMovable||(pt(y,Y,e),gt(y,b,c),gt(y,O,x))}return this}},te=xe.Cropper,fe=function(){function a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(le(this,a),!e||!ge.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=Ge({},Me,Ee(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return T(a,[{key:"init",value:function(){var t=this.element,n=t.tagName.toLowerCase(),y;if(!t[Z]){if(t[Z]=this,n==="img"){if(this.isImg=!0,y=t.getAttribute("src")||"",this.originalUrl=y,!y)return;y=t.src}else n==="canvas"&&window.HTMLCanvasElement&&(y=t.toDataURL());this.load(y)}}},{key:"load",value:function(t){var n=this;if(t){this.url=t,this.imageData={};var y=this.element,c=this.options;if(!c.rotatable&&!c.scalable&&(c.checkOrientation=!1),!c.checkOrientation||!window.ArrayBuffer){this.clone();return}if(V.test(t)){de.test(t)?this.read(fn(t)):this.clone();return}var x=new XMLHttpRequest,A=this.clone.bind(this);this.reloading=!0,this.xhr=x,x.onabort=A,x.onerror=A,x.ontimeout=A,x.onprogress=function(){x.getResponseHeader("content-type")!==W&&x.abort()},x.onload=function(){n.read(x.response)},x.onloadend=function(){n.reloading=!1,n.xhr=null},c.checkCrossOrigin&&nn(t)&&y.crossOrigin&&(t=kt(t)),x.open("GET",t,!0),x.responseType="arraybuffer",x.withCredentials=y.crossOrigin==="use-credentials",x.send()}}},{key:"read",value:function(t){var n=this.options,y=this.imageData,c=Tn(t),x=0,A=1,ne=1;if(c>1){this.url=on(t,W);var j=At(c);x=j.rotate,A=j.scaleX,ne=j.scaleY}n.rotatable&&(y.rotate=x),n.scalable&&(y.scaleX=A,y.scaleY=ne),this.clone()}},{key:"clone",value:function(){var t=this.element,n=this.url,y=t.crossOrigin,c=n;this.options.checkCrossOrigin&&nn(n)&&(y||(y="anonymous"),c=kt(n)),this.crossOrigin=y,this.crossOriginUrl=c;var x=document.createElement("img");y&&(x.crossOrigin=y),x.src=c||n,x.alt=t.alt||"The image to crop",this.image=x,x.onload=this.start.bind(this),x.onerror=this.stop.bind(this),Ye(x,E),t.parentNode.insertBefore(x,t.nextSibling)}},{key:"start",value:function(){var t=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var y=xe.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(xe.navigator.userAgent),c=function(j,M){Ge(t.imageData,{naturalWidth:j,naturalHeight:M,aspectRatio:j/M}),t.initialImageData=Ge({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(n.naturalWidth&&!y){c(n.naturalWidth,n.naturalHeight);return}var x=document.createElement("img"),A=document.body||document.documentElement;this.sizingImage=x,x.onload=function(){c(x.width,x.height),y||A.removeChild(x)},x.src=n.src,y||(x.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",A.appendChild(x))}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var t=this.element,n=this.options,y=this.image,c=t.parentNode,x=document.createElement("div");x.innerHTML=Pe;var A=x.querySelector(".".concat(Z,"-container")),ne=A.querySelector(".".concat(Z,"-canvas")),j=A.querySelector(".".concat(Z,"-drag-box")),M=A.querySelector(".".concat(Z,"-crop-box")),L=M.querySelector(".".concat(Z,"-face"));this.container=c,this.cropper=A,this.canvas=ne,this.dragBox=j,this.cropBox=M,this.viewBox=A.querySelector(".".concat(Z,"-view-box")),this.face=L,ne.appendChild(y),Ye(t,i),c.insertBefore(A,t.nextSibling),Je(y,E),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,Ye(M,i),n.guides||Ye(M.getElementsByClassName("".concat(Z,"-dashed")),i),n.center||Ye(M.getElementsByClassName("".concat(Z,"-center")),i),n.background&&Ye(A,"".concat(Z,"-bg")),n.highlight||Ye(L,w),n.cropBoxMovable&&(Ye(L,O),pt(L,Y,ie)),n.cropBoxResizable||(Ye(M.getElementsByClassName("".concat(Z,"-line")),i),Ye(M.getElementsByClassName("".concat(Z,"-point")),i)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),Qe(n.ready)&&ht(t,m,n.ready,{once:!0}),Ke(t,m)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),Je(this.element,i)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=te,a}},{key:"setDefaults",value:function(t){Ge(Me,Ee(t)&&t)}}])}();return Ge(fe.prototype,In,Nn,Ft,ke,D,z),fe})},31561:function(ot,be,r){"use strict";r.d(be,{Z:function(){return g}});var C=r(96663),h=r(90493),p=r(72071),le=r(6620),R=r(35593),T=r(92310),N=r.n(T),B=r(8654),ae=r(59301),re=r(10228),ce=r(16089),Q=re.Z.ESC,d=re.Z.TAB;function H(f){var X=f.visible,K=f.triggerRef,he=f.onVisibleChange,U=f.autoFocus,$=f.overlayRef,b=ae.useRef(!1),P=function(){if(X){var v,O;(v=K.current)===null||v===void 0||(O=v.focus)===null||O===void 0||O.call(v),he==null||he(!1)}},i=function(){var v;return(v=$.current)!==null&&v!==void 0&&v.focus?($.current.focus(),b.current=!0,!0):!1},E=function(v){switch(v.keyCode){case Q:P();break;case d:{var O=!1;b.current||(O=i()),O?v.preventDefault():P();break}}};ae.useEffect(function(){return X?(window.addEventListener("keydown",E),U&&(0,ce.Z)(i,3),function(){window.removeEventListener("keydown",E),b.current=!1}):function(){b.current=!1}},[X])}var xe=(0,ae.forwardRef)(function(f,X){var K=f.overlay,he=f.arrow,U=f.prefixCls,$=(0,ae.useMemo)(function(){var P;return typeof K=="function"?P=K():P=K,P},[K]),b=(0,B.sQ)(X,$==null?void 0:$.ref);return ae.createElement(ae.Fragment,null,he&&ae.createElement("div",{className:"".concat(U,"-arrow")}),ae.cloneElement($,{ref:(0,B.Yr)($)?b:void 0}))}),we=xe,$e={adjustX:1,adjustY:1},Z=[0,0],ie={topLeft:{points:["bl","tl"],overflow:$e,offset:[0,-4],targetOffset:Z},top:{points:["bc","tc"],overflow:$e,offset:[0,-4],targetOffset:Z},topRight:{points:["br","tr"],overflow:$e,offset:[0,-4],targetOffset:Z},bottomLeft:{points:["tl","bl"],overflow:$e,offset:[0,4],targetOffset:Z},bottom:{points:["tc","bc"],overflow:$e,offset:[0,4],targetOffset:Z},bottomRight:{points:["tr","br"],overflow:$e,offset:[0,4],targetOffset:Z}},F=ie,ue=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function s(f,X){var K,he=f.arrow,U=he===void 0?!1:he,$=f.prefixCls,b=$===void 0?"rc-dropdown":$,P=f.transitionName,i=f.animation,E=f.align,w=f.placement,v=w===void 0?"bottomLeft":w,O=f.placements,Y=O===void 0?F:O,G=f.getPopupContainer,ee=f.showAction,ve=f.hideAction,pe=f.overlayClassName,J=f.overlayStyle,k=f.visible,Ce=f.trigger,je=Ce===void 0?["hover"]:Ce,Oe=f.autoFocus,Ie=f.overlay,ze=f.children,Re=f.onVisibleChange,Ve=(0,le.Z)(f,ue),Ue=ae.useState(),l=(0,p.Z)(Ue,2),m=l[0],o=l[1],S="visible"in f?k:m,I=ae.useRef(null),W=ae.useRef(null),_=ae.useRef(null);ae.useImperativeHandle(X,function(){return I.current});var V=function(De){o(De),Re==null||Re(De)};H({visible:S,triggerRef:_,onVisibleChange:V,autoFocus:Oe,overlayRef:W});var de=function(De){var Ae=f.onOverlayClick;o(!1),Ae&&Ae(De)},ge=function(){return ae.createElement(we,{ref:W,overlay:Ie,prefixCls:b,arrow:U})},me=function(){return typeof Ie=="function"?ge:ge()},ye=function(){var De=f.minOverlayWidthMatchTrigger,Ae=f.alignPoint;return"minOverlayWidthMatchTrigger"in f?De:!Ae},Me=function(){var De=f.openClassName;return De!==void 0?De:"".concat(b,"-open")},Pe=ae.cloneElement(ze,{className:N()((K=ze.props)===null||K===void 0?void 0:K.className,S&&Me()),ref:(0,B.Yr)(ze)?(0,B.sQ)(_,ze.ref):void 0}),Se=ve;return!Se&&je.indexOf("contextMenu")!==-1&&(Se=["click"]),ae.createElement(R.Z,(0,C.Z)({builtinPlacements:Y},Ve,{prefixCls:b,ref:I,popupClassName:N()(pe,(0,h.Z)({},"".concat(b,"-show-arrow"),U)),popupStyle:J,action:je,showAction:ee,hideAction:Se,popupPlacement:v,popupAlign:E,popupTransitionName:P,popupAnimation:i,popupVisible:S,stretch:ye()?"minWidth":"",popup:me(),onPopupVisibleChange:V,onPopupClick:de,getPopupContainer:G}),Pe)}var u=ae.forwardRef(s),g=u},93681:function(ot,be,r){"use strict";r.r(be),r.d(be,{BaseInput:function(){return re},default:function(){return ie}});var C=r(96663),h=r(44127),p=r(90493),le=r(20135),R=r(92310),T=r.n(R),N=r(59301),B=r(5643),ae=function(ue){var s,u,g=ue.inputElement,f=ue.prefixCls,X=ue.prefix,K=ue.suffix,he=ue.addonBefore,U=ue.addonAfter,$=ue.className,b=ue.style,P=ue.disabled,i=ue.readOnly,E=ue.focused,w=ue.triggerFocus,v=ue.allowClear,O=ue.value,Y=ue.handleReset,G=ue.hidden,ee=ue.classes,ve=ue.classNames,pe=ue.dataAttrs,J=ue.styles,k=ue.components,Ce=(k==null?void 0:k.affixWrapper)||"span",je=(k==null?void 0:k.groupWrapper)||"span",Oe=(k==null?void 0:k.wrapper)||"span",Ie=(k==null?void 0:k.groupAddon)||"span",ze=(0,N.useRef)(null),Re=function(ge){var me;(me=ze.current)!==null&&me!==void 0&&me.contains(ge.target)&&(w==null||w())},Ve=function(){var ge;if(!v)return null;var me=!P&&!i&&O,ye="".concat(f,"-clear-icon"),Me=(0,le.Z)(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"\u2716";return N.createElement("span",{onClick:Y,onMouseDown:function(Se){return Se.preventDefault()},className:T()(ye,(ge={},(0,p.Z)(ge,"".concat(ye,"-hidden"),!me),(0,p.Z)(ge,"".concat(ye,"-has-suffix"),!!K),ge)),role:"button",tabIndex:-1},Me)},Ue=(0,N.cloneElement)(g,{value:O,hidden:G,className:T()((s=g.props)===null||s===void 0?void 0:s.className,!(0,B.X3)(ue)&&!(0,B.He)(ue)&&$)||null,style:(0,h.Z)((0,h.Z)({},(u=g.props)===null||u===void 0?void 0:u.style),!(0,B.X3)(ue)&&!(0,B.He)(ue)?b:{})});if((0,B.X3)(ue)){var l,m="".concat(f,"-affix-wrapper"),o=T()(m,(l={},(0,p.Z)(l,"".concat(m,"-disabled"),P),(0,p.Z)(l,"".concat(m,"-focused"),E),(0,p.Z)(l,"".concat(m,"-readonly"),i),(0,p.Z)(l,"".concat(m,"-input-with-clear-btn"),K&&v&&O),l),!(0,B.He)(ue)&&$,ee==null?void 0:ee.affixWrapper,ve==null?void 0:ve.affixWrapper),S=(K||v)&&N.createElement("span",{className:T()("".concat(f,"-suffix"),ve==null?void 0:ve.suffix),style:J==null?void 0:J.suffix},Ve(),K);Ue=N.createElement(Ce,(0,C.Z)({className:o,style:(0,h.Z)((0,h.Z)({},(0,B.He)(ue)?void 0:b),J==null?void 0:J.affixWrapper),hidden:!(0,B.He)(ue)&&G,onClick:Re},pe==null?void 0:pe.affixWrapper,{ref:ze}),X&&N.createElement("span",{className:T()("".concat(f,"-prefix"),ve==null?void 0:ve.prefix),style:J==null?void 0:J.prefix},X),(0,N.cloneElement)(g,{value:O,hidden:null}),S)}if((0,B.He)(ue)){var I="".concat(f,"-group"),W="".concat(I,"-addon"),_=T()("".concat(f,"-wrapper"),I,ee==null?void 0:ee.wrapper),V=T()("".concat(f,"-group-wrapper"),$,ee==null?void 0:ee.group);return N.createElement(je,{className:V,style:b,hidden:G},N.createElement(Oe,{className:_},he&&N.createElement(Ie,{className:W},he),(0,N.cloneElement)(Ue,{hidden:null}),U&&N.createElement(Ie,{className:W},U)))}return Ue},re=ae,ce=r(19127),Q=r(72071),d=r(6620),H=r(18929),xe=r(2738),we=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],$e=(0,N.forwardRef)(function(F,ue){var s=F.autoComplete,u=F.onChange,g=F.onFocus,f=F.onBlur,X=F.onPressEnter,K=F.onKeyDown,he=F.prefixCls,U=he===void 0?"rc-input":he,$=F.disabled,b=F.htmlSize,P=F.className,i=F.maxLength,E=F.suffix,w=F.showCount,v=F.type,O=v===void 0?"text":v,Y=F.classes,G=F.classNames,ee=F.styles,ve=(0,d.Z)(F,we),pe=(0,H.Z)(F.defaultValue,{value:F.value}),J=(0,Q.Z)(pe,2),k=J[0],Ce=J[1],je=(0,N.useState)(!1),Oe=(0,Q.Z)(je,2),Ie=Oe[0],ze=Oe[1],Re=(0,N.useRef)(null),Ve=function(V){Re.current&&(0,B.nH)(Re.current,V)};(0,N.useImperativeHandle)(ue,function(){return{focus:Ve,blur:function(){var V;(V=Re.current)===null||V===void 0||V.blur()},setSelectionRange:function(V,de,ge){var me;(me=Re.current)===null||me===void 0||me.setSelectionRange(V,de,ge)},select:function(){var V;(V=Re.current)===null||V===void 0||V.select()},input:Re.current}}),(0,N.useEffect)(function(){ze(function(_){return _&&$?!1:_})},[$]);var Ue=function(V){F.value===void 0&&Ce(V.target.value),Re.current&&(0,B.rJ)(Re.current,V,u)},l=function(V){X&&V.key==="Enter"&&X(V),K==null||K(V)},m=function(V){ze(!0),g==null||g(V)},o=function(V){ze(!1),f==null||f(V)},S=function(V){Ce(""),Ve(),Re.current&&(0,B.rJ)(Re.current,V,u)},I=function(){var V=(0,xe.Z)(F,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return N.createElement("input",(0,C.Z)({autoComplete:s},V,{onChange:Ue,onFocus:m,onBlur:o,onKeyDown:l,className:T()(U,(0,p.Z)({},"".concat(U,"-disabled"),$),G==null?void 0:G.input),style:ee==null?void 0:ee.input,ref:Re,size:b,type:O}))},W=function(){var V=Number(i)>0;if(E||w){var de=(0,B.D7)(k),ge=(0,ce.Z)(de).length,me=(0,le.Z)(w)==="object"?w.formatter({value:de,count:ge,maxLength:i}):"".concat(ge).concat(V?" / ".concat(i):"");return N.createElement(N.Fragment,null,!!w&&N.createElement("span",{className:T()("".concat(U,"-show-count-suffix"),(0,p.Z)({},"".concat(U,"-show-count-has-suffix"),!!E),G==null?void 0:G.count),style:(0,h.Z)({},ee==null?void 0:ee.count)},me),E)}return null};return N.createElement(re,(0,C.Z)({},ve,{prefixCls:U,className:P,inputElement:I(),handleReset:S,value:(0,B.D7)(k),focused:Ie,triggerFocus:Ve,suffix:W(),disabled:$,classes:Y,classNames:G,styles:ee}))}),Z=$e,ie=Z},5643:function(ot,be,r){"use strict";r.d(be,{D7:function(){return R},He:function(){return C},X3:function(){return h},nH:function(){return le},rJ:function(){return p}});function C(T){return!!(T.addonBefore||T.addonAfter)}function h(T){return!!(T.prefix||T.suffix||T.allowClear)}function p(T,N,B,ae){if(B){var re=N;if(N.type==="click"){var ce=T.cloneNode(!0);re=Object.create(N,{target:{value:ce},currentTarget:{value:ce}}),ce.value="",B(re);return}if(ae!==void 0){re=Object.create(N,{target:{value:T},currentTarget:{value:T}}),T.value=ae,B(re);return}B(re)}}function le(T,N){if(T){T.focus(N);var B=N||{},ae=B.cursor;if(ae){var re=T.value.length;switch(ae){case"start":T.setSelectionRange(0,0);break;case"end":T.setSelectionRange(re,re);break;default:T.setSelectionRange(0,re)}}}}function R(T){return typeof T=="undefined"||T===null?"":String(T)}},15285:function(ot,be,r){"use strict";r.d(be,{iz:function(){return Kt},ck:function(){return Ye},BW:function(){return dn},sN:function(){return Ye},Wd:function(){return Qt},ZP:function(){return ke},Xl:function(){return K}});var C=r(96663),h=r(90493),p=r(44127),le=r(19127),R=r(72071),T=r(6620),N=r(92310),B=r.n(N),ae=r(11780),re=r(18929),ce=r(13697),Q=r(48736),d=r(59301),H=r(4676),xe=d.createContext(null);function we(D,z){return D===void 0?null:"".concat(D,"-").concat(z)}function $e(D){var z=d.useContext(xe);return we(z,D)}var Z=r(80547),ie=["children","locked"],F=d.createContext(null);function ue(D,z){var te=(0,p.Z)({},D);return Object.keys(z).forEach(function(fe){var a=z[fe];a!==void 0&&(te[fe]=a)}),te}function s(D){var z=D.children,te=D.locked,fe=(0,T.Z)(D,ie),a=d.useContext(F),e=(0,Z.Z)(function(){return ue(a,fe)},[a,fe],function(t,n){return!te&&(t[0]!==n[0]||!(0,ce.Z)(t[1],n[1],!0))});return d.createElement(F.Provider,{value:e},z)}var u=[],g=d.createContext(null);function f(){return d.useContext(g)}var X=d.createContext(u);function K(D){var z=d.useContext(X);return d.useMemo(function(){return D!==void 0?[].concat((0,le.Z)(z),[D]):z},[z,D])}var he=d.createContext(null),U=d.createContext({}),$=U,b=r(29194);function P(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,b.Z)(D)){var te=D.nodeName.toLowerCase(),fe=["input","select","textarea","button"].includes(te)||D.isContentEditable||te==="a"&&!!D.getAttribute("href"),a=D.getAttribute("tabindex"),e=Number(a),t=null;return a&&!Number.isNaN(e)?t=e:fe&&t===null&&(t=0),fe&&D.disabled&&(t=null),t!==null&&(t>=0||z&&t<0)}return!1}function i(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=(0,le.Z)(D.querySelectorAll("*")).filter(function(fe){return P(fe,z)});return P(D,z)&&te.unshift(D),te}var E=null;function w(){E=document.activeElement}function v(){E=null}function O(){if(E)try{E.focus()}catch(D){}}function Y(D,z){if(z.keyCode===9){var te=i(D),fe=te[z.shiftKey?0:te.length-1],a=fe===document.activeElement||D===document.activeElement;if(a){var e=te[z.shiftKey?te.length-1:0];e.focus(),z.preventDefault()}}}var G=r(10228),ee=r(16089),ve=G.Z.LEFT,pe=G.Z.RIGHT,J=G.Z.UP,k=G.Z.DOWN,Ce=G.Z.ENTER,je=G.Z.ESC,Oe=G.Z.HOME,Ie=G.Z.END,ze=[J,k,ve,pe];function Re(D,z,te,fe){var a,e,t,n,y="prev",c="next",x="children",A="parent";if(D==="inline"&&fe===Ce)return{inlineTrigger:!0};var ne=(a={},(0,h.Z)(a,J,y),(0,h.Z)(a,k,c),a),j=(e={},(0,h.Z)(e,ve,te?c:y),(0,h.Z)(e,pe,te?y:c),(0,h.Z)(e,k,x),(0,h.Z)(e,Ce,x),e),M=(t={},(0,h.Z)(t,J,y),(0,h.Z)(t,k,c),(0,h.Z)(t,Ce,x),(0,h.Z)(t,je,A),(0,h.Z)(t,ve,te?x:A),(0,h.Z)(t,pe,te?A:x),t),L={inline:ne,horizontal:j,vertical:M,inlineSub:ne,horizontalSub:M,verticalSub:M},q=(n=L["".concat(D).concat(z?"":"Sub")])===null||n===void 0?void 0:n[fe];switch(q){case y:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case A:return{offset:-1,sibling:!1};case x:return{offset:1,sibling:!1};default:return null}}function Ve(D){for(var z=D;z;){if(z.getAttribute("data-menu-list"))return z;z=z.parentElement}return null}function Ue(D,z){for(var te=D||document.activeElement;te;){if(z.has(te))return te;te=te.parentElement}return null}function l(D,z){var te=i(D,!0);return te.filter(function(fe){return z.has(fe)})}function m(D,z,te){var fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!D)return null;var a=l(D,z),e=a.length,t=a.findIndex(function(n){return te===n});return fe<0?t===-1?t=e-1:t-=1:fe>0&&(t+=1),t=(t+e)%e,a[t]}var o=function(z,te){var fe=new Set,a=new Map,e=new Map;return z.forEach(function(t){var n=document.querySelector("[data-menu-id='".concat(we(te,t),"']"));n&&(fe.add(n),e.set(n,t),a.set(t,n))}),{elements:fe,key2element:a,element2key:e}};function S(D,z,te,fe,a,e,t,n,y,c){var x=d.useRef(),A=d.useRef();A.current=z;var ne=function(){ee.Z.cancel(x.current)};return d.useEffect(function(){return function(){ne()}},[]),function(j){var M=j.which;if([].concat(ze,[Ce,je,Oe,Ie]).includes(M)){var L=e(),q=o(L,fe),Le=q,Ne=Le.elements,He=Le.key2element,Be=Le.element2key,Fe=He.get(z),et=Ue(Fe,Ne),it=Be.get(et),st=Re(D,t(it,!0).length===1,te,M);if(!st&&M!==Oe&&M!==Ie)return;(ze.includes(M)||[Oe,Ie].includes(M))&&j.preventDefault();var wt=function(Et){if(Et){var Ot=Et,It=Et.querySelector("a");It!=null&&It.getAttribute("href")&&(Ot=It);var vt=Be.get(Et);n(vt),ne(),x.current=(0,ee.Z)(function(){A.current===vt&&Ot.focus()})}};if([Oe,Ie].includes(M)||st.sibling||!et){var se;!et||D==="inline"?se=a.current:se=Ve(et);var _e,at=l(se,Ne);M===Oe?_e=at[0]:M===Ie?_e=at[at.length-1]:_e=m(se,Ne,et,st.offset),wt(_e)}else if(st.inlineTrigger)y(it);else if(st.offset>0)y(it,!0),ne(),x.current=(0,ee.Z)(function(){q=o(L,fe);var Wt=et.getAttribute("aria-controls"),Et=document.getElementById(Wt),Ot=m(Et,q.elements);wt(Ot)},5);else if(st.offset<0){var mt=t(it,!0),Rt=mt[mt.length-2],Bt=He.get(Rt);y(Rt,!1),wt(Bt)}}c==null||c(j)}}function I(D){Promise.resolve().then(D)}var W="__RC_UTIL_PATH_SPLIT__",_=function(z){return z.join(W)},V=function(z){return z.split(W)},de="rc-menu-more";function ge(){var D=d.useState({}),z=(0,R.Z)(D,2),te=z[1],fe=(0,d.useRef)(new Map),a=(0,d.useRef)(new Map),e=d.useState([]),t=(0,R.Z)(e,2),n=t[0],y=t[1],c=(0,d.useRef)(0),x=(0,d.useRef)(!1),A=function(){x.current||te({})},ne=(0,d.useCallback)(function(He,Be){var Fe=_(Be);a.current.set(Fe,He),fe.current.set(He,Fe),c.current+=1;var et=c.current;I(function(){et===c.current&&A()})},[]),j=(0,d.useCallback)(function(He,Be){var Fe=_(Be);a.current.delete(Fe),fe.current.delete(He)},[]),M=(0,d.useCallback)(function(He){y(He)},[]),L=(0,d.useCallback)(function(He,Be){var Fe=fe.current.get(He)||"",et=V(Fe);return Be&&n.includes(et[0])&&et.unshift(de),et},[n]),q=(0,d.useCallback)(function(He,Be){return He.some(function(Fe){var et=L(Fe,!0);return et.includes(Be)})},[L]),Le=function(){var Be=(0,le.Z)(fe.current.keys());return n.length&&Be.push(de),Be},Ne=(0,d.useCallback)(function(He){var Be="".concat(fe.current.get(He)).concat(W),Fe=new Set;return(0,le.Z)(a.current.keys()).forEach(function(et){et.startsWith(Be)&&Fe.add(a.current.get(et))}),Fe},[]);return d.useEffect(function(){return function(){x.current=!0}},[]),{registerPath:ne,unregisterPath:j,refreshOverflowKeys:M,isSubPathKey:q,getKeyPath:L,getKeys:Le,getSubPathKeys:Ne}}function me(D){var z=d.useRef(D);z.current=D;var te=d.useCallback(function(){for(var fe,a=arguments.length,e=new Array(a),t=0;t<a;t++)e[t]=arguments[t];return(fe=z.current)===null||fe===void 0?void 0:fe.call.apply(fe,[z].concat(e))},[]);return D?te:void 0}var ye=Math.random().toFixed(5).toString().slice(2),Me=0;function Pe(D){var z=(0,re.Z)(D,{value:D}),te=(0,R.Z)(z,2),fe=te[0],a=te[1];return d.useEffect(function(){Me+=1;var e="".concat(ye,"-").concat(Me);a("rc-menu-uuid-".concat(e))},[]),fe}var Se=r(52884),oe=r(95727),De=r(65711),Ae=r(85745),We=r(2738),Xe=r(8654);function Ee(D,z,te,fe){var a=d.useContext(F),e=a.activeKey,t=a.onActive,n=a.onInactive,y={active:e===D};return z||(y.onMouseEnter=function(c){te==null||te({key:D,domEvent:c}),t(D)},y.onMouseLeave=function(c){fe==null||fe({key:D,domEvent:c}),n(D)}),y}function Qe(D){var z=d.useContext(F),te=z.mode,fe=z.rtl,a=z.inlineIndent;if(te!=="inline")return null;var e=D;return fe?{paddingRight:e*a}:{paddingLeft:e*a}}function ut(D){var z=D.icon,te=D.props,fe=D.children,a;return z===null||z===!1?null:(typeof z=="function"?a=d.createElement(z,(0,p.Z)({},te)):typeof z!="boolean"&&(a=z),a||fe||null)}var rt=["item"];function Te(D){var z=D.item,te=(0,T.Z)(D,rt);return Object.defineProperty(te,"item",{get:function(){return(0,Q.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),z}}),te}var Ge=["title","attribute","elementRef"],bt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ct=["active"],Dt=function(D){(0,De.Z)(te,D);var z=(0,Ae.Z)(te);function te(){return(0,Se.Z)(this,te),z.apply(this,arguments)}return(0,oe.Z)(te,[{key:"render",value:function(){var a=this.props,e=a.title,t=a.attribute,n=a.elementRef,y=(0,T.Z)(a,Ge),c=(0,We.Z)(y,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Q.ZP)(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(ae.Z.Item,(0,C.Z)({},t,{title:typeof e=="string"?e:void 0},c,{ref:n}))}}]),te}(d.Component),yt=d.forwardRef(function(D,z){var te,fe=D.style,a=D.className,e=D.eventKey,t=D.warnKey,n=D.disabled,y=D.itemIcon,c=D.children,x=D.role,A=D.onMouseEnter,ne=D.onMouseLeave,j=D.onClick,M=D.onKeyDown,L=D.onFocus,q=(0,T.Z)(D,bt),Le=$e(e),Ne=d.useContext(F),He=Ne.prefixCls,Be=Ne.onItemClick,Fe=Ne.disabled,et=Ne.overflowDisabled,it=Ne.itemIcon,st=Ne.selectedKeys,wt=Ne.onActive,se=d.useContext($),_e=se._internalRenderMenuItem,at="".concat(He,"-item"),mt=d.useRef(),Rt=d.useRef(),Bt=Fe||n,Wt=(0,Xe.x1)(z,Rt),Et=K(e),Ot=function(Zt){return{key:e,keyPath:(0,le.Z)(Et).reverse(),item:mt.current,domEvent:Zt}},It=y||it,vt=Ee(e,Bt,A,ne),sn=vt.active,hn=(0,T.Z)(vt,ct),ln=st.includes(e),gn=Qe(Et.length),Jt=function(Zt){if(!Bt){var qt=Ot(Zt);j==null||j(Te(qt)),Be(qt)}},Vt=function(Zt){if(M==null||M(Zt),Zt.which===G.Z.ENTER){var qt=Ot(Zt);j==null||j(Te(qt)),Be(qt)}},_t=function(Zt){wt(e),L==null||L(Zt)},mn={};D.role==="option"&&(mn["aria-selected"]=ln);var bn=d.createElement(Dt,(0,C.Z)({ref:mt,elementRef:Wt,role:x===null?"none":x||"menuitem",tabIndex:n?null:-1,"data-menu-id":et&&Le?null:Le},q,hn,mn,{component:"li","aria-disabled":n,style:(0,p.Z)((0,p.Z)({},gn),fe),className:B()(at,(te={},(0,h.Z)(te,"".concat(at,"-active"),sn),(0,h.Z)(te,"".concat(at,"-selected"),ln),(0,h.Z)(te,"".concat(at,"-disabled"),Bt),te),a),onClick:Jt,onKeyDown:Vt,onFocus:_t}),c,d.createElement(ut,{props:(0,p.Z)((0,p.Z)({},D),{},{isSelected:ln}),icon:It}));return _e&&(bn=_e(bn,D,{selected:ln})),bn});function lt(D,z){var te=D.eventKey,fe=f(),a=K(te);return d.useEffect(function(){if(fe)return fe.registerPath(te,a),function(){fe.unregisterPath(te,a)}},[a]),fe?null:d.createElement(yt,(0,C.Z)({},D,{ref:z}))}var Ye=d.forwardRef(lt),Je=["className","children"],gt=function(z,te){var fe=z.className,a=z.children,e=(0,T.Z)(z,Je),t=d.useContext(F),n=t.prefixCls,y=t.mode,c=t.rtl;return d.createElement("ul",(0,C.Z)({className:B()(n,c&&"".concat(n,"-rtl"),"".concat(n,"-sub"),"".concat(n,"-").concat(y==="inline"?"inline":"vertical"),fe),role:"menu"},e,{"data-menu-list":!0,ref:te}),a)},nt=d.forwardRef(gt);nt.displayName="SubMenuList";var xt=nt,ft=r(11592);function pt(D,z){return(0,ft.Z)(D).map(function(te,fe){if(d.isValidElement(te)){var a,e,t=te.key,n=(a=(e=te.props)===null||e===void 0?void 0:e.eventKey)!==null&&a!==void 0?a:t,y=n==null;y&&(n="tmp_key-".concat([].concat((0,le.Z)(z),[fe]).join("-")));var c={key:n,eventKey:n};return d.cloneElement(te,c)}return te})}var Tt=r(35593),St={adjustX:1,adjustY:1},Ht={topLeft:{points:["bl","tl"],overflow:St},topRight:{points:["br","tr"],overflow:St},bottomLeft:{points:["tl","bl"],overflow:St},bottomRight:{points:["tr","br"],overflow:St},leftTop:{points:["tr","tl"],overflow:St},leftBottom:{points:["br","bl"],overflow:St},rightTop:{points:["tl","tr"],overflow:St},rightBottom:{points:["bl","br"],overflow:St}},Pt={topLeft:{points:["bl","tl"],overflow:St},topRight:{points:["br","tr"],overflow:St},bottomLeft:{points:["tl","bl"],overflow:St},bottomRight:{points:["tr","br"],overflow:St},rightTop:{points:["tr","tl"],overflow:St},rightBottom:{points:["br","bl"],overflow:St},leftTop:{points:["tl","tr"],overflow:St},leftBottom:{points:["bl","br"],overflow:St}},ht=null;function Ke(D,z,te){if(z)return z;if(te)return te[D]||te.other}var qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function dt(D){var z=D.prefixCls,te=D.visible,fe=D.children,a=D.popup,e=D.popupStyle,t=D.popupClassName,n=D.popupOffset,y=D.disabled,c=D.mode,x=D.onVisibleChange,A=d.useContext(F),ne=A.getPopupContainer,j=A.rtl,M=A.subMenuOpenDelay,L=A.subMenuCloseDelay,q=A.builtinPlacements,Le=A.triggerSubMenuAction,Ne=A.forceSubMenuRender,He=A.rootClassName,Be=A.motion,Fe=A.defaultMotions,et=d.useState(!1),it=(0,R.Z)(et,2),st=it[0],wt=it[1],se=j?(0,p.Z)((0,p.Z)({},Pt),q):(0,p.Z)((0,p.Z)({},Ht),q),_e=qe[c],at=Ke(c,Be,Fe),mt=d.useRef(at);c!=="inline"&&(mt.current=at);var Rt=(0,p.Z)((0,p.Z)({},mt.current),{},{leavedClassName:"".concat(z,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Bt=d.useRef();return d.useEffect(function(){return Bt.current=(0,ee.Z)(function(){wt(te)}),function(){ee.Z.cancel(Bt.current)}},[te]),d.createElement(Tt.Z,{prefixCls:z,popupClassName:B()("".concat(z,"-popup"),(0,h.Z)({},"".concat(z,"-rtl"),j),t,He),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:ne,builtinPlacements:se,popupPlacement:_e,popupVisible:st,popup:a,popupStyle:e,popupAlign:n&&{offset:n},action:y?[]:[Le],mouseEnterDelay:M,mouseLeaveDelay:L,onPopupVisibleChange:x,forceRender:Ne,popupMotion:Rt,fresh:!0},fe)}var Gt=r(77900);function nn(D){var z=D.id,te=D.open,fe=D.keyPath,a=D.children,e="inline",t=d.useContext(F),n=t.prefixCls,y=t.forceSubMenuRender,c=t.motion,x=t.defaultMotions,A=t.mode,ne=d.useRef(!1);ne.current=A===e;var j=d.useState(!ne.current),M=(0,R.Z)(j,2),L=M[0],q=M[1],Le=ne.current?te:!1;d.useEffect(function(){ne.current&&q(!1)},[A]);var Ne=(0,p.Z)({},Ke(e,c,x));fe.length>1&&(Ne.motionAppear=!1);var He=Ne.onVisibleChanged;return Ne.onVisibleChanged=function(Be){return!ne.current&&!Be&&q(!0),He==null?void 0:He(Be)},L?null:d.createElement(s,{mode:e,locked:!ne.current},d.createElement(Gt.default,(0,C.Z)({visible:Le},Ne,{forceRender:y,removeOnLeave:!1,leavedClassName:"".concat(n,"-hidden")}),function(Be){var Fe=Be.className,et=Be.style;return d.createElement(xt,{id:z,className:Fe,style:et},a)}))}var kt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rn=["active"],zt=function(z){var te,fe=z.style,a=z.className,e=z.title,t=z.eventKey,n=z.warnKey,y=z.disabled,c=z.internalPopupClose,x=z.children,A=z.itemIcon,ne=z.expandIcon,j=z.popupClassName,M=z.popupOffset,L=z.popupStyle,q=z.onClick,Le=z.onMouseEnter,Ne=z.onMouseLeave,He=z.onTitleClick,Be=z.onTitleMouseEnter,Fe=z.onTitleMouseLeave,et=(0,T.Z)(z,kt),it=$e(t),st=d.useContext(F),wt=st.prefixCls,se=st.mode,_e=st.openKeys,at=st.disabled,mt=st.overflowDisabled,Rt=st.activeKey,Bt=st.selectedKeys,Wt=st.itemIcon,Et=st.expandIcon,Ot=st.onItemClick,It=st.onOpenChange,vt=st.onActive,sn=d.useContext($),hn=sn._internalRenderSubMenuItem,ln=d.useContext(he),gn=ln.isSubPathKey,Jt=K(),Vt="".concat(wt,"-submenu"),_t=at||y,mn=d.useRef(),bn=d.useRef(),yn=A!=null?A:Wt,Zt=ne!=null?ne:Et,qt=_e.includes(t),pn=!mt&&qt,Rn=gn(Bt,t),vn=Ee(t,_t,Be,Fe),$n=vn.active,Mn=(0,T.Z)(vn,rn),Pn=d.useState(!1),Wn=(0,R.Z)(Pn,2),zn=Wn[0],Kn=Wn[1],Zn=function(tn){_t||Kn(tn)},Cn=function(tn){Zn(!0),Le==null||Le({key:t,domEvent:tn})},Vn=function(tn){Zn(!1),Ne==null||Ne({key:t,domEvent:tn})},Ln=d.useMemo(function(){return $n||(se!=="inline"?zn||gn([Rt],t):!1)},[se,$n,Rt,zn,t,gn]),jn=Qe(Jt.length),Un=function(tn){_t||(He==null||He({key:t,domEvent:tn}),se==="inline"&&It(t,!qt))},An=me(function(cn){q==null||q(Te(cn)),Ot(cn)}),Bn=function(tn){se!=="inline"&&It(t,tn)},Hn=function(){vt(t)},en=it&&"".concat(it,"-popup"),Dn=d.createElement("div",(0,C.Z)({role:"menuitem",style:jn,className:"".concat(Vt,"-title"),tabIndex:_t?null:-1,ref:mn,title:typeof e=="string"?e:null,"data-menu-id":mt&&it?null:it,"aria-expanded":pn,"aria-haspopup":!0,"aria-controls":en,"aria-disabled":_t,onClick:Un,onFocus:Hn},Mn),e,d.createElement(ut,{icon:se!=="horizontal"?Zt:void 0,props:(0,p.Z)((0,p.Z)({},z),{},{isOpen:pn,isSubMenu:!0})},d.createElement("i",{className:"".concat(Vt,"-arrow")}))),Ut=d.useRef(se);if(se!=="inline"&&Jt.length>1?Ut.current="vertical":Ut.current=se,!mt){var xn=Ut.current;Dn=d.createElement(dt,{mode:xn,prefixCls:Vt,visible:!c&&pn&&se!=="inline",popupClassName:j,popupOffset:M,popupStyle:L,popup:d.createElement(s,{mode:xn==="horizontal"?"vertical":xn},d.createElement(xt,{id:en,ref:bn},x)),disabled:_t,onVisibleChange:Bn},Dn)}var Sn=d.createElement(ae.Z.Item,(0,C.Z)({role:"none"},et,{component:"li",style:fe,className:B()(Vt,"".concat(Vt,"-").concat(se),a,(te={},(0,h.Z)(te,"".concat(Vt,"-open"),pn),(0,h.Z)(te,"".concat(Vt,"-active"),Ln),(0,h.Z)(te,"".concat(Vt,"-selected"),Rn),(0,h.Z)(te,"".concat(Vt,"-disabled"),_t),te)),onMouseEnter:Cn,onMouseLeave:Vn}),Dn,!mt&&d.createElement(nn,{id:en,open:pn,keyPath:Jt},x));return hn&&(Sn=hn(Sn,z,{selected:Rn,active:Ln,open:pn,disabled:_t})),d.createElement(s,{onItemClick:An,mode:se==="horizontal"?"vertical":se,itemIcon:yn,expandIcon:Zt},Sn)};function Qt(D){var z=D.eventKey,te=D.children,fe=K(z),a=pt(te,fe),e=f();d.useEffect(function(){if(e)return e.registerPath(z,fe),function(){e.unregisterPath(z,fe)}},[fe]);var t;return e?t=a:t=d.createElement(zt,D,a),d.createElement(X.Provider,{value:fe},t)}var an=r(20135),Nt=["className","title","eventKey","children"],un=["children"],Ct=function(z){var te=z.className,fe=z.title,a=z.eventKey,e=z.children,t=(0,T.Z)(z,Nt),n=d.useContext(F),y=n.prefixCls,c="".concat(y,"-item-group");return d.createElement("li",(0,C.Z)({role:"presentation"},t,{onClick:function(A){return A.stopPropagation()},className:B()(c,te)}),d.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof fe=="string"?fe:void 0},fe),d.createElement("ul",{role:"group",className:"".concat(c,"-list")},e))};function dn(D){var z=D.children,te=(0,T.Z)(D,un),fe=K(te.eventKey),a=pt(z,fe),e=f();return e?a:d.createElement(Ct,(0,We.Z)(te,["warnKey"]),a)}function Kt(D){var z=D.className,te=D.style,fe=d.useContext(F),a=fe.prefixCls,e=f();return e?null:d.createElement("li",{role:"separator",className:B()("".concat(a,"-item-divider"),z),style:te})}var On=["label","children","key","type"];function fn(D){return(D||[]).map(function(z,te){if(z&&(0,an.Z)(z)==="object"){var fe=z,a=fe.label,e=fe.children,t=fe.key,n=fe.type,y=(0,T.Z)(fe,On),c=t!=null?t:"tmp-".concat(te);return e||n==="group"?n==="group"?d.createElement(dn,(0,C.Z)({key:c},y,{title:a}),fn(e)):d.createElement(Qt,(0,C.Z)({key:c},y,{title:a}),fn(e)):n==="divider"?d.createElement(Kt,(0,C.Z)({key:c},y)):d.createElement(Ye,(0,C.Z)({key:c},y),a)}return null}).filter(function(z){return z})}function on(D,z,te){var fe=D;return z&&(fe=fn(z)),pt(fe,te)}var Tn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],At=[],In=d.forwardRef(function(D,z){var te,fe,a=D,e=a.prefixCls,t=e===void 0?"rc-menu":e,n=a.rootClassName,y=a.style,c=a.className,x=a.tabIndex,A=x===void 0?0:x,ne=a.items,j=a.children,M=a.direction,L=a.id,q=a.mode,Le=q===void 0?"vertical":q,Ne=a.inlineCollapsed,He=a.disabled,Be=a.disabledOverflow,Fe=a.subMenuOpenDelay,et=Fe===void 0?.1:Fe,it=a.subMenuCloseDelay,st=it===void 0?.1:it,wt=a.forceSubMenuRender,se=a.defaultOpenKeys,_e=a.openKeys,at=a.activeKey,mt=a.defaultActiveFirst,Rt=a.selectable,Bt=Rt===void 0?!0:Rt,Wt=a.multiple,Et=Wt===void 0?!1:Wt,Ot=a.defaultSelectedKeys,It=a.selectedKeys,vt=a.onSelect,sn=a.onDeselect,hn=a.inlineIndent,ln=hn===void 0?24:hn,gn=a.motion,Jt=a.defaultMotions,Vt=a.triggerSubMenuAction,_t=Vt===void 0?"hover":Vt,mn=a.builtinPlacements,bn=a.itemIcon,yn=a.expandIcon,Zt=a.overflowedIndicator,qt=Zt===void 0?"...":Zt,pn=a.overflowedIndicatorPopupClassName,Rn=a.getPopupContainer,vn=a.onClick,$n=a.onOpenChange,Mn=a.onKeyDown,Pn=a.openAnimation,Wn=a.openTransitionName,zn=a._internalRenderMenuItem,Kn=a._internalRenderSubMenuItem,Zn=(0,T.Z)(a,Tn),Cn=d.useMemo(function(){return on(j,ne,At)},[j,ne]),Vn=d.useState(!1),Ln=(0,R.Z)(Vn,2),jn=Ln[0],Un=Ln[1],An=d.useRef(),Bn=Pe(L),Hn=M==="rtl",en=(0,re.Z)(se,{value:_e,postState:function(Mt){return Mt||At}}),Dn=(0,R.Z)(en,2),Ut=Dn[0],xn=Dn[1],Sn=function(Mt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function wn(){xn(Mt),$n==null||$n(Mt)}jt?(0,H.flushSync)(wn):wn()},cn=d.useState(Ut),tn=(0,R.Z)(cn,2),Xn=tn[0],kn=tn[1],Yn=d.useRef(!1),qn=d.useMemo(function(){return(Le==="inline"||Le==="vertical")&&Ne?["vertical",Ne]:[Le,!1]},[Le,Ne]),_n=(0,R.Z)(qn,2),Fn=_n[0],Ze=_n[1],tt=Fn==="inline",Lt=d.useState(Fn),Xt=(0,R.Z)(Lt,2),$t=Xt[0],Qn=Xt[1],er=d.useState(Ze),tr=(0,R.Z)(er,2),Jn=tr[0],xr=tr[1];d.useEffect(function(){Qn(Fn),xr(Ze),Yn.current&&(tt?xn(Xn):Sn(At))},[Fn,Ze]);var Sr=d.useState(0),dr=(0,R.Z)(Sr,2),ar=dr[0],wr=dr[1],sr=ar>=Cn.length-1||$t!=="horizontal"||Be;d.useEffect(function(){tt&&kn(Ut)},[Ut]),d.useEffect(function(){return Yn.current=!0,function(){Yn.current=!1}},[]);var Gn=ge(),fr=Gn.registerPath,mr=Gn.unregisterPath,Er=Gn.refreshOverflowKeys,vr=Gn.isSubPathKey,$r=Gn.getKeyPath,hr=Gn.getKeys,Or=Gn.getSubPathKeys,Ir=d.useMemo(function(){return{registerPath:fr,unregisterPath:mr}},[fr,mr]),Rr=d.useMemo(function(){return{isSubPathKey:vr}},[vr]);d.useEffect(function(){Er(sr?At:Cn.slice(ar+1).map(function(Yt){return Yt.key}))},[ar,sr]);var Mr=(0,re.Z)(at||mt&&((te=Cn[0])===null||te===void 0?void 0:te.key),{value:at}),gr=(0,R.Z)(Mr,2),nr=gr[0],lr=gr[1],Pr=me(function(Yt){lr(Yt)}),Dr=me(function(){lr(void 0)});(0,d.useImperativeHandle)(z,function(){return{list:An.current,focus:function(Mt){var jt,wn=hr(),En=o(wn,Bn),ir=En.elements,cr=En.key2element,Wr=En.element2key,yr=l(An.current,ir),Cr=nr!=null?nr:yr[0]?Wr.get(yr[0]):(jt=Cn.find(function(Kr){return!Kr.props.disabled}))===null||jt===void 0?void 0:jt.key,rr=cr.get(Cr);if(Cr&&rr){var ur;rr==null||(ur=rr.focus)===null||ur===void 0||ur.call(rr,Mt)}}}});var Tr=(0,re.Z)(Ot||[],{value:It,postState:function(Mt){return Array.isArray(Mt)?Mt:Mt==null?At:[Mt]}}),pr=(0,R.Z)(Tr,2),or=pr[0],Nr=pr[1],Ar=function(Mt){if(Bt){var jt=Mt.key,wn=or.includes(jt),En;Et?wn?En=or.filter(function(cr){return cr!==jt}):En=[].concat((0,le.Z)(or),[jt]):En=[jt],Nr(En);var ir=(0,p.Z)((0,p.Z)({},Mt),{},{selectedKeys:En});wn?sn==null||sn(ir):vt==null||vt(ir)}!Et&&Ut.length&&$t!=="inline"&&Sn(At)},Br=me(function(Yt){vn==null||vn(Te(Yt)),Ar(Yt)}),br=me(function(Yt,Mt){var jt=Ut.filter(function(En){return En!==Yt});if(Mt)jt.push(Yt);else if($t!=="inline"){var wn=Or(Yt);jt=jt.filter(function(En){return!wn.has(En)})}(0,ce.Z)(Ut,jt,!0)||Sn(jt,!0)}),zr=function(Mt,jt){var wn=jt!=null?jt:!Ut.includes(Mt);br(Mt,wn)},Zr=S($t,nr,Hn,Bn,An,hr,$r,lr,zr,Mn);d.useEffect(function(){Un(!0)},[]);var Lr=d.useMemo(function(){return{_internalRenderMenuItem:zn,_internalRenderSubMenuItem:Kn}},[zn,Kn]),jr=$t!=="horizontal"||Be?Cn:Cn.map(function(Yt,Mt){return d.createElement(s,{key:Yt.key,overflowDisabled:Mt>ar},Yt)}),Hr=d.createElement(ae.Z,(0,C.Z)({id:L,ref:An,prefixCls:"".concat(t,"-overflow"),component:"ul",itemComponent:Ye,className:B()(t,"".concat(t,"-root"),"".concat(t,"-").concat($t),c,(fe={},(0,h.Z)(fe,"".concat(t,"-inline-collapsed"),Jn),(0,h.Z)(fe,"".concat(t,"-rtl"),Hn),fe),n),dir:M,style:y,role:"menu",tabIndex:A,data:jr,renderRawItem:function(Mt){return Mt},renderRawRest:function(Mt){var jt=Mt.length,wn=jt?Cn.slice(-jt):null;return d.createElement(Qt,{eventKey:de,title:qt,disabled:sr,internalPopupClose:jt===0,popupClassName:pn},wn)},maxCount:$t!=="horizontal"||Be?ae.Z.INVALIDATE:ae.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Mt){wr(Mt)},onKeyDown:Zr},Zn));return d.createElement($.Provider,{value:Lr},d.createElement(xe.Provider,{value:Bn},d.createElement(s,{prefixCls:t,rootClassName:n,mode:$t,openKeys:Ut,rtl:Hn,disabled:He,motion:jn?gn:null,defaultMotions:jn?Jt:null,activeKey:nr,onActive:Pr,onInactive:Dr,selectedKeys:or,inlineIndent:ln,subMenuOpenDelay:et,subMenuCloseDelay:st,forceSubMenuRender:wt,builtinPlacements:mn,triggerSubMenuAction:_t,getPopupContainer:Rn,itemIcon:bn,expandIcon:yn,onItemClick:Br,onOpenChange:br},d.createElement(he.Provider,{value:Rr},Hr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(g.Provider,{value:Ir},Cn)))))}),Nn=In,Ft=Nn;Ft.Item=Ye,Ft.SubMenu=Qt,Ft.ItemGroup=dn,Ft.Divider=Kt;var ke=Ft},11780:function(ot,be,r){"use strict";r.d(be,{Z:function(){return w}});var C=r(96663),h=r(44127),p=r(72071),le=r(6620),R=r(59301),T=r(92310),N=r.n(T),B=r(29301),ae=r(34280),re=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ce=void 0;function Q(v,O){var Y=v.prefixCls,G=v.invalidate,ee=v.item,ve=v.renderItem,pe=v.responsive,J=v.responsiveDisabled,k=v.registerSize,Ce=v.itemKey,je=v.className,Oe=v.style,Ie=v.children,ze=v.display,Re=v.order,Ve=v.component,Ue=Ve===void 0?"div":Ve,l=(0,le.Z)(v,re),m=pe&&!ze;function o(V){k(Ce,V)}R.useEffect(function(){return function(){o(null)}},[]);var S=ve&&ee!==ce?ve(ee,{index:Re}):Ie,I;G||(I={opacity:m?0:1,height:m?0:ce,overflowY:m?"hidden":ce,order:pe?Re:ce,pointerEvents:m?"none":ce,position:m?"absolute":ce});var W={};m&&(W["aria-hidden"]=!0);var _=R.createElement(Ue,(0,C.Z)({className:N()(!G&&Y,je),style:(0,h.Z)((0,h.Z)({},I),Oe)},W,l,{ref:O}),S);return pe&&(_=R.createElement(B.Z,{onResize:function(de){var ge=de.offsetWidth;o(ge)},disabled:J},_)),_}var d=R.forwardRef(Q);d.displayName="Item";var H=d,xe=r(6089),we=r(4676),$e=r(16089);function Z(v){if(typeof MessageChannel=="undefined")(0,$e.Z)(v);else{var O=new MessageChannel;O.port1.onmessage=function(){return v()},O.port2.postMessage(void 0)}}function ie(){var v=R.useRef(null),O=function(G){v.current||(v.current=[],Z(function(){(0,we.unstable_batchedUpdates)(function(){v.current.forEach(function(ee){ee()}),v.current=null})})),v.current.push(G)};return O}function F(v,O){var Y=R.useState(O),G=(0,p.Z)(Y,2),ee=G[0],ve=G[1],pe=(0,xe.Z)(function(J){v(function(){ve(J)})});return[ee,pe]}var ue=R.createContext(null),s=["component"],u=["className"],g=["className"],f=function(O,Y){var G=R.useContext(ue);if(!G){var ee=O.component,ve=ee===void 0?"div":ee,pe=(0,le.Z)(O,s);return R.createElement(ve,(0,C.Z)({},pe,{ref:Y}))}var J=G.className,k=(0,le.Z)(G,u),Ce=O.className,je=(0,le.Z)(O,g);return R.createElement(ue.Provider,{value:null},R.createElement(H,(0,C.Z)({ref:Y,className:N()(J,Ce)},k,je)))},X=R.forwardRef(f);X.displayName="RawItem";var K=X,he=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],U="responsive",$="invalidate";function b(v){return"+ ".concat(v.length," ...")}function P(v,O){var Y=v.prefixCls,G=Y===void 0?"rc-overflow":Y,ee=v.data,ve=ee===void 0?[]:ee,pe=v.renderItem,J=v.renderRawItem,k=v.itemKey,Ce=v.itemWidth,je=Ce===void 0?10:Ce,Oe=v.ssr,Ie=v.style,ze=v.className,Re=v.maxCount,Ve=v.renderRest,Ue=v.renderRawRest,l=v.suffix,m=v.component,o=m===void 0?"div":m,S=v.itemComponent,I=v.onVisibleChange,W=(0,le.Z)(v,he),_=Oe==="full",V=ie(),de=F(V,null),ge=(0,p.Z)(de,2),me=ge[0],ye=ge[1],Me=me||0,Pe=F(V,new Map),Se=(0,p.Z)(Pe,2),oe=Se[0],De=Se[1],Ae=F(V,0),We=(0,p.Z)(Ae,2),Xe=We[0],Ee=We[1],Qe=F(V,0),ut=(0,p.Z)(Qe,2),rt=ut[0],Te=ut[1],Ge=F(V,0),bt=(0,p.Z)(Ge,2),ct=bt[0],Dt=bt[1],yt=(0,R.useState)(null),lt=(0,p.Z)(yt,2),Ye=lt[0],Je=lt[1],gt=(0,R.useState)(null),nt=(0,p.Z)(gt,2),xt=nt[0],ft=nt[1],pt=R.useMemo(function(){return xt===null&&_?Number.MAX_SAFE_INTEGER:xt||0},[xt,me]),Tt=(0,R.useState)(!1),St=(0,p.Z)(Tt,2),Ht=St[0],Pt=St[1],ht="".concat(G,"-item"),Ke=Math.max(Xe,rt),qe=Re===U,dt=ve.length&&qe,Gt=Re===$,nn=dt||typeof Re=="number"&&ve.length>Re,kt=(0,R.useMemo)(function(){var ke=ve;return dt?me===null&&_?ke=ve:ke=ve.slice(0,Math.min(ve.length,Me/je)):typeof Re=="number"&&(ke=ve.slice(0,Re)),ke},[ve,je,me,Re,dt]),rn=(0,R.useMemo)(function(){return dt?ve.slice(pt+1):ve.slice(kt.length)},[ve,kt,dt,pt]),zt=(0,R.useCallback)(function(ke,D){var z;return typeof k=="function"?k(ke):(z=k&&(ke==null?void 0:ke[k]))!==null&&z!==void 0?z:D},[k]),Qt=(0,R.useCallback)(pe||function(ke){return ke},[pe]);function an(ke,D,z){xt===ke&&(D===void 0||D===Ye)||(ft(ke),z||(Pt(ke<ve.length-1),I==null||I(ke)),D!==void 0&&Je(D))}function Nt(ke,D){ye(D.clientWidth)}function un(ke,D){De(function(z){var te=new Map(z);return D===null?te.delete(ke):te.set(ke,D),te})}function Ct(ke,D){Te(D),Ee(rt)}function dn(ke,D){Dt(D)}function Kt(ke){return oe.get(zt(kt[ke],ke))}(0,ae.Z)(function(){if(Me&&typeof Ke=="number"&&kt){var ke=ct,D=kt.length,z=D-1;if(!D){an(0,null);return}for(var te=0;te<D;te+=1){var fe=Kt(te);if(_&&(fe=fe||0),fe===void 0){an(te-1,void 0,!0);break}if(ke+=fe,z===0&&ke<=Me||te===z-1&&ke+Kt(z)<=Me){an(z,null);break}else if(ke+Ke>Me){an(te-1,ke-fe-ct+rt);break}}l&&Kt(0)+ct>Me&&Je(null)}},[Me,oe,rt,ct,zt,kt]);var On=Ht&&!!rn.length,fn={};Ye!==null&&dt&&(fn={position:"absolute",left:Ye,top:0});var on={prefixCls:ht,responsive:dt,component:S,invalidate:Gt},Tn=J?function(ke,D){var z=zt(ke,D);return R.createElement(ue.Provider,{key:z,value:(0,h.Z)((0,h.Z)({},on),{},{order:D,item:ke,itemKey:z,registerSize:un,display:D<=pt})},J(ke,D))}:function(ke,D){var z=zt(ke,D);return R.createElement(H,(0,C.Z)({},on,{order:D,key:z,item:ke,renderItem:Qt,itemKey:z,registerSize:un,display:D<=pt}))},At={order:On?pt:Number.MAX_SAFE_INTEGER,className:"".concat(ht,"-rest"),registerSize:Ct,display:On},In=Ve||b,Nn=Ue?R.createElement(ue.Provider,{value:(0,h.Z)((0,h.Z)({},on),At)},Ue(rn)):R.createElement(H,(0,C.Z)({},on,At),typeof In=="function"?In(rn):In),Ft=R.createElement(o,(0,C.Z)({className:N()(!Gt&&G,ze),style:Ie,ref:O},W),kt.map(Tn),nn?Nn:null,l&&R.createElement(H,(0,C.Z)({},on,{responsive:qe,responsiveDisabled:!dt,order:pt,className:"".concat(ht,"-suffix"),registerSize:dn,display:!0,style:fn}),l));return qe?R.createElement(B.Z,{onResize:Nt,disabled:!dt},Ft):Ft}var i=R.forwardRef(P);i.displayName="Overflow",i.Item=K,i.RESPONSIVE=U,i.INVALIDATE=$;var E=i,w=E},29301:function(ot,be,r){"use strict";r.d(be,{Z:function(){return $}});var C=r(96663),h=r(59301),p=r(11592),le=r(48736),R=r(44127),T=r(20135),N=r(76846),B=r(8654),ae=h.createContext(null);function re(b){var P=b.children,i=b.onBatchResize,E=h.useRef(0),w=h.useRef([]),v=h.useContext(ae),O=h.useCallback(function(Y,G,ee){E.current+=1;var ve=E.current;w.current.push({size:Y,element:G,data:ee}),Promise.resolve().then(function(){ve===E.current&&(i==null||i(w.current),w.current=[])}),v==null||v(Y,G,ee)},[i,v]);return h.createElement(ae.Provider,{value:O},P)}var ce=r(76374),Q=new Map;function d(b){b.forEach(function(P){var i,E=P.target;(i=Q.get(E))===null||i===void 0||i.forEach(function(w){return w(E)})})}var H=new ce.Z(d),xe=null,we=null;function $e(b,P){Q.has(b)||(Q.set(b,new Set),H.observe(b)),Q.get(b).add(P)}function Z(b,P){Q.has(b)&&(Q.get(b).delete(P),Q.get(b).size||(H.unobserve(b),Q.delete(b)))}var ie=r(52884),F=r(95727),ue=r(65711),s=r(85745),u=function(b){(0,ue.Z)(i,b);var P=(0,s.Z)(i);function i(){return(0,ie.Z)(this,i),P.apply(this,arguments)}return(0,F.Z)(i,[{key:"render",value:function(){return this.props.children}}]),i}(h.Component);function g(b,P){var i=b.children,E=b.disabled,w=h.useRef(null),v=h.useRef(null),O=h.useContext(ae),Y=typeof i=="function",G=Y?i(w):i,ee=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ve=!Y&&h.isValidElement(G)&&(0,B.Yr)(G),pe=ve?(0,B.C4)(G):null,J=(0,B.x1)(pe,w),k=function(){var Ie;return(0,N.ZP)(w.current)||(w.current&&(0,T.Z)(w.current)==="object"?(0,N.ZP)((Ie=w.current)===null||Ie===void 0?void 0:Ie.nativeElement):null)||(0,N.ZP)(v.current)};h.useImperativeHandle(P,function(){return k()});var Ce=h.useRef(b);Ce.current=b;var je=h.useCallback(function(Oe){var Ie=Ce.current,ze=Ie.onResize,Re=Ie.data,Ve=Oe.getBoundingClientRect(),Ue=Ve.width,l=Ve.height,m=Oe.offsetWidth,o=Oe.offsetHeight,S=Math.floor(Ue),I=Math.floor(l);if(ee.current.width!==S||ee.current.height!==I||ee.current.offsetWidth!==m||ee.current.offsetHeight!==o){var W={width:S,height:I,offsetWidth:m,offsetHeight:o};ee.current=W;var _=m===Math.round(Ue)?Ue:m,V=o===Math.round(l)?l:o,de=(0,R.Z)((0,R.Z)({},W),{},{offsetWidth:_,offsetHeight:V});O==null||O(de,Oe,Re),ze&&Promise.resolve().then(function(){ze(de,Oe)})}},[]);return h.useEffect(function(){var Oe=k();return Oe&&!E&&$e(Oe,je),function(){return Z(Oe,je)}},[w.current,E]),h.createElement(u,{ref:v},ve?h.cloneElement(G,{ref:J}):G)}var f=h.forwardRef(g),X=f,K="rc-observer-key";function he(b,P){var i=b.children,E=typeof i=="function"?[i]:(0,p.Z)(i);return E.map(function(w,v){var O=(w==null?void 0:w.key)||"".concat(K,"-").concat(v);return h.createElement(X,(0,C.Z)({},b,{key:O,ref:v===0?P:void 0}),w)})}var U=h.forwardRef(he);U.Collection=re;var $=U},9296:function(ot,be,r){"use strict";r.r(be),r.d(be,{ResizableTextArea:function(){return he},default:function(){return E}});var C=r(96663),h=r(44127),p=r(90493),le=r(20135),R=r(72071),T=r(6620),N=r(19127),B=r(92310),ae=r.n(B),re=r(93681),ce=r(5643),Q=r(18929),d=r(59301),H=r(29301),xe=r(34280),we=r(16089),$e=`
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;
`,Z=["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"],ie={},F;function ue(w){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=w.getAttribute("id")||w.getAttribute("data-reactid")||w.getAttribute("name");if(v&&ie[O])return ie[O];var Y=window.getComputedStyle(w),G=Y.getPropertyValue("box-sizing")||Y.getPropertyValue("-moz-box-sizing")||Y.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(Y.getPropertyValue("padding-bottom"))+parseFloat(Y.getPropertyValue("padding-top")),ve=parseFloat(Y.getPropertyValue("border-bottom-width"))+parseFloat(Y.getPropertyValue("border-top-width")),pe=Z.map(function(k){return"".concat(k,":").concat(Y.getPropertyValue(k))}).join(";"),J={sizingStyle:pe,paddingSize:ee,borderSize:ve,boxSizing:G};return v&&O&&(ie[O]=J),J}function s(w){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),w.getAttribute("wrap")?F.setAttribute("wrap",w.getAttribute("wrap")):F.removeAttribute("wrap");var G=ue(w,v),ee=G.paddingSize,ve=G.borderSize,pe=G.boxSizing,J=G.sizingStyle;F.setAttribute("style","".concat(J,";").concat($e)),F.value=w.value||w.placeholder||"";var k=void 0,Ce=void 0,je,Oe=F.scrollHeight;if(pe==="border-box"?Oe+=ve:pe==="content-box"&&(Oe-=ee),O!==null||Y!==null){F.value=" ";var Ie=F.scrollHeight-ee;O!==null&&(k=Ie*O,pe==="border-box"&&(k=k+ee+ve),Oe=Math.max(k,Oe)),Y!==null&&(Ce=Ie*Y,pe==="border-box"&&(Ce=Ce+ee+ve),je=Oe>Ce?"":"hidden",Oe=Math.min(Ce,Oe))}var ze={height:Oe,overflowY:je,resize:"none"};return k&&(ze.minHeight=k),Ce&&(ze.maxHeight=Ce),ze}var u=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],g=0,f=1,X=2,K=d.forwardRef(function(w,v){var O=w,Y=O.prefixCls,G=O.onPressEnter,ee=O.defaultValue,ve=O.value,pe=O.autoSize,J=O.onResize,k=O.className,Ce=O.style,je=O.disabled,Oe=O.onChange,Ie=O.onInternalAutoSize,ze=(0,T.Z)(O,u),Re=(0,Q.Z)(ee,{value:ve,postState:function(Te){return Te!=null?Te:""}}),Ve=(0,R.Z)(Re,2),Ue=Ve[0],l=Ve[1],m=function(Te){l(Te.target.value),Oe==null||Oe(Te)},o=d.useRef();d.useImperativeHandle(v,function(){return{textArea:o.current}});var S=d.useMemo(function(){return pe&&(0,le.Z)(pe)==="object"?[pe.minRows,pe.maxRows]:[]},[pe]),I=(0,R.Z)(S,2),W=I[0],_=I[1],V=!!pe,de=function(){try{if(document.activeElement===o.current){var Te=o.current,Ge=Te.selectionStart,bt=Te.selectionEnd,ct=Te.scrollTop;o.current.setSelectionRange(Ge,bt),o.current.scrollTop=ct}}catch(Dt){}},ge=d.useState(X),me=(0,R.Z)(ge,2),ye=me[0],Me=me[1],Pe=d.useState(),Se=(0,R.Z)(Pe,2),oe=Se[0],De=Se[1],Ae=function(){Me(g)};(0,xe.Z)(function(){V&&Ae()},[ve,W,_,V]),(0,xe.Z)(function(){if(ye===g)Me(f);else if(ye===f){var rt=s(o.current,!1,W,_);Me(X),De(rt)}else de()},[ye]);var We=d.useRef(),Xe=function(){we.Z.cancel(We.current)},Ee=function(Te){ye===X&&(J==null||J(Te),pe&&(Xe(),We.current=(0,we.Z)(function(){Ae()})))};d.useEffect(function(){return Xe},[]);var Qe=V?oe:null,ut=(0,h.Z)((0,h.Z)({},Ce),Qe);return(ye===g||ye===f)&&(ut.overflowY="hidden",ut.overflowX="hidden"),d.createElement(H.Z,{onResize:Ee,disabled:!(pe||J)},d.createElement("textarea",(0,C.Z)({},ze,{ref:o,style:ut,className:ae()(Y,k,(0,p.Z)({},"".concat(Y,"-disabled"),je)),disabled:je,value:Ue,onChange:m})))}),he=K,U=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function $(w,v){return(0,N.Z)(w||"").slice(0,v).join("")}function b(w,v,O,Y){var G=O;return w?G=$(O,Y):(0,N.Z)(v||"").length<O.length&&(0,N.Z)(O||"").length>Y&&(G=v),G}var P=d.forwardRef(function(w,v){var O,Y=w.defaultValue,G=w.value,ee=w.onFocus,ve=w.onBlur,pe=w.onChange,J=w.allowClear,k=w.maxLength,Ce=w.onCompositionStart,je=w.onCompositionEnd,Oe=w.suffix,Ie=w.prefixCls,ze=Ie===void 0?"rc-textarea":Ie,Re=w.classes,Ve=w.showCount,Ue=w.className,l=w.style,m=w.disabled,o=w.hidden,S=w.classNames,I=w.styles,W=w.onResize,_=(0,T.Z)(w,U),V=(0,Q.Z)(Y,{value:G,defaultValue:Y}),de=(0,R.Z)(V,2),ge=de[0],me=de[1],ye=(0,d.useRef)(null),Me=d.useState(!1),Pe=(0,R.Z)(Me,2),Se=Pe[0],oe=Pe[1],De=d.useState(!1),Ae=(0,R.Z)(De,2),We=Ae[0],Xe=Ae[1],Ee=d.useRef(),Qe=d.useRef(0),ut=d.useState(null),rt=(0,R.Z)(ut,2),Te=rt[0],Ge=rt[1],bt=function(){var Ke;(Ke=ye.current)===null||Ke===void 0||Ke.textArea.focus()};(0,d.useImperativeHandle)(v,function(){return{resizableTextArea:ye.current,focus:bt,blur:function(){var Ke;(Ke=ye.current)===null||Ke===void 0||Ke.textArea.blur()}}}),(0,d.useEffect)(function(){oe(function(ht){return!m&&ht})},[m]);var ct=Number(k)>0,Dt=function(Ke){Xe(!0),Ee.current=ge,Qe.current=Ke.currentTarget.selectionStart,Ce==null||Ce(Ke)},yt=function(Ke){Xe(!1);var qe=Ke.currentTarget.value;if(ct){var dt,Gt=Qe.current>=k+1||Qe.current===((dt=Ee.current)===null||dt===void 0?void 0:dt.length);qe=b(Gt,Ee.current,qe,k)}qe!==ge&&(me(qe),(0,ce.rJ)(Ke.currentTarget,Ke,pe,qe)),je==null||je(Ke)},lt=function(Ke){var qe=Ke.target.value;if(!We&&ct){var dt=Ke.target.selectionStart>=k+1||Ke.target.selectionStart===qe.length||!Ke.target.selectionStart;qe=b(dt,ge,qe,k)}me(qe),(0,ce.rJ)(Ke.currentTarget,Ke,pe,qe)},Ye=function(Ke){var qe=_.onPressEnter,dt=_.onKeyDown;Ke.key==="Enter"&&qe&&qe(Ke),dt==null||dt(Ke)},Je=function(Ke){oe(!0),ee==null||ee(Ke)},gt=function(Ke){oe(!1),ve==null||ve(Ke)},nt=function(Ke){var qe;me(""),bt(),(0,ce.rJ)((qe=ye.current)===null||qe===void 0?void 0:qe.textArea,Ke,pe)},xt=(0,ce.D7)(ge);!We&&ct&&G==null&&(xt=$(xt,k));var ft=Oe,pt;if(Ve){var Tt=(0,N.Z)(xt).length;(0,le.Z)(Ve)==="object"?pt=Ve.formatter({value:xt,count:Tt,maxLength:k}):pt="".concat(Tt).concat(ct?" / ".concat(k):""),ft=d.createElement(d.Fragment,null,ft,d.createElement("span",{className:ae()("".concat(ze,"-data-count"),S==null?void 0:S.count),style:I==null?void 0:I.count},pt))}var St=function(Ke){var qe;W==null||W(Ke),(qe=ye.current)!==null&&qe!==void 0&&qe.textArea.style.height&&Ge(!0)},Ht=!_.autoSize&&!Ve&&!J,Pt=d.createElement(re.BaseInput,{value:xt,allowClear:J,handleReset:nt,suffix:ft,prefixCls:ze,classes:{affixWrapper:ae()(Re==null?void 0:Re.affixWrapper,(O={},(0,p.Z)(O,"".concat(ze,"-show-count"),Ve),(0,p.Z)(O,"".concat(ze,"-textarea-allow-clear"),J),O))},disabled:m,focused:Se,className:Ue,style:(0,h.Z)((0,h.Z)({},l),Te&&!Ht?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pt=="string"?pt:void 0}},hidden:o,inputElement:d.createElement(he,(0,C.Z)({},_,{onKeyDown:Ye,onChange:lt,onFocus:Je,onBlur:gt,onCompositionStart:Dt,onCompositionEnd:yt,className:S==null?void 0:S.textarea,style:(0,h.Z)((0,h.Z)({},I==null?void 0:I.textarea),{},{resize:l==null?void 0:l.resize}),disabled:m,prefixCls:ze,onResize:St,ref:ye}))});return Pt}),i=P,E=i},55477:function(ot,be,r){"use strict";r.d(be,{G:function(){return d},Z:function(){return $e}});var C=r(96663),h=r(44127),p=r(6620),le=r(35593),R=r(59301),T={shiftX:64,adjustY:1},N={adjustX:1,shiftY:!0},B=[0,0],ae={left:{points:["cr","cl"],overflow:N,offset:[-4,0],targetOffset:B},right:{points:["cl","cr"],overflow:N,offset:[4,0],targetOffset:B},top:{points:["bc","tc"],overflow:T,offset:[0,-4],targetOffset:B},bottom:{points:["tc","bc"],overflow:T,offset:[0,4],targetOffset:B},topLeft:{points:["bl","tl"],overflow:T,offset:[0,-4],targetOffset:B},leftTop:{points:["tr","tl"],overflow:N,offset:[-4,0],targetOffset:B},topRight:{points:["br","tr"],overflow:T,offset:[0,-4],targetOffset:B},rightTop:{points:["tl","tr"],overflow:N,offset:[4,0],targetOffset:B},bottomRight:{points:["tr","br"],overflow:T,offset:[0,4],targetOffset:B},rightBottom:{points:["bl","br"],overflow:N,offset:[4,0],targetOffset:B},bottomLeft:{points:["tl","bl"],overflow:T,offset:[0,4],targetOffset:B},leftBottom:{points:["br","bl"],overflow:N,offset:[-4,0],targetOffset:B}},re=null,ce=r(92310),Q=r.n(ce);function d(Z){var ie=Z.children,F=Z.prefixCls,ue=Z.id,s=Z.overlayInnerStyle,u=Z.className,g=Z.style;return R.createElement("div",{className:Q()("".concat(F,"-content"),u),style:g},R.createElement("div",{className:"".concat(F,"-inner"),id:ue,role:"tooltip",style:s},typeof ie=="function"?ie():ie))}var H=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],xe=function(ie,F){var ue=ie.overlayClassName,s=ie.trigger,u=s===void 0?["hover"]:s,g=ie.mouseEnterDelay,f=g===void 0?0:g,X=ie.mouseLeaveDelay,K=X===void 0?.1:X,he=ie.overlayStyle,U=ie.prefixCls,$=U===void 0?"rc-tooltip":U,b=ie.children,P=ie.onVisibleChange,i=ie.afterVisibleChange,E=ie.transitionName,w=ie.animation,v=ie.motion,O=ie.placement,Y=O===void 0?"right":O,G=ie.align,ee=G===void 0?{}:G,ve=ie.destroyTooltipOnHide,pe=ve===void 0?!1:ve,J=ie.defaultVisible,k=ie.getTooltipContainer,Ce=ie.overlayInnerStyle,je=ie.arrowContent,Oe=ie.overlay,Ie=ie.id,ze=ie.showArrow,Re=ze===void 0?!0:ze,Ve=(0,p.Z)(ie,H),Ue=(0,R.useRef)(null);(0,R.useImperativeHandle)(F,function(){return Ue.current});var l=(0,h.Z)({},Ve);"visible"in ie&&(l.popupVisible=ie.visible);var m=function(){return R.createElement(d,{key:"content",prefixCls:$,id:Ie,overlayInnerStyle:Ce},Oe)};return R.createElement(le.Z,(0,C.Z)({popupClassName:ue,prefixCls:$,popup:m,action:u,builtinPlacements:ae,popupPlacement:Y,ref:Ue,popupAlign:ee,getPopupContainer:k,onPopupVisibleChange:P,afterPopupVisibleChange:i,popupTransitionName:E,popupAnimation:w,popupMotion:v,defaultPopupVisible:J,autoDestroy:pe,mouseLeaveDelay:K,popupStyle:he,mouseEnterDelay:f,arrow:Re},l),b)},we=(0,R.forwardRef)(xe),$e=we},49658:function(ot,be){"use strict";be.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var r=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(r)||/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(r==null?void 0:r.substr(0,4))}},33555:function(ot,be,r){"use strict";var C;C={value:!0},be.Z=void 0;var h=T(r(59301)),p=R(r(12708)),le=R(r(21639));function R(s){return s&&s.__esModule?s:{default:s}}function T(s){if(s&&s.__esModule)return s;var u={};if(s!=null){for(var g in s)if(Object.prototype.hasOwnProperty.call(s,g)){var f=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(s,g):{};f.get||f.set?Object.defineProperty(u,g,f):u[g]=s[g]}}return u.default=s,u}function N(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(g){return typeof g}:N=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},N(s)}function B(s,u,g){return u in s?Object.defineProperty(s,u,{value:g,enumerable:!0,configurable:!0,writable:!0}):s[u]=g,s}function ae(){return ae=Object.assign||function(s){for(var u=1;u<arguments.length;u++){var g=arguments[u];for(var f in g)Object.prototype.hasOwnProperty.call(g,f)&&(s[f]=g[f])}return s},ae.apply(this,arguments)}function re(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function ce(s,u){for(var g=0;g<u.length;g++){var f=u[g];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}function Q(s,u,g){return u&&ce(s.prototype,u),g&&ce(s,g),s}function d(s,u){return u&&(N(u)==="object"||typeof u=="function")?u:H(s)}function H(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function xe(s){return xe=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},xe(s)}function we(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),u&&$e(s,u)}function $e(s,u){return $e=Object.setPrototypeOf||function(f,X){return f.__proto__=X,f},$e(s,u)}var Z=["dragMode","aspectRatio","data","crop","viewMode","preview","responsive","restore","checkCrossOrigin","checkOrientation","modal","guides","center","highlight","background","autoCrop","autoCropArea","movable","rotatable","scalable","zoomable","zoomOnTouch","zoomOnWheel","wheelZoomRatio","cropBoxMovable","cropBoxResizable","toggleDragModeOnDblclick","minContainerWidth","minContainerHeight","minCanvasWidth","minCanvasHeight","minCropBoxWidth","minCropBoxHeight","ready","cropstart","cropmove","cropend","zoom"],ie=Z.slice(4),F=function(s){we(u,s);function u(){return re(this,u),d(this,xe(u).apply(this,arguments))}return Q(u,[{key:"componentDidMount",value:function(){var f=this,X=Object.keys(this.props).filter(function(K){return Z.indexOf(K)!==-1}).reduce(function(K,he){return ae({},K,B({},he,f.props[he]))},{});this.cropper=new le.default(this.img,X)}},{key:"UNSAFE_componentWillReceiveProps",value:function(f){var X=this;f.src!==this.props.src&&this.cropper.reset().clear().replace(f.src),f.aspectRatio!==this.props.aspectRatio&&this.setAspectRatio(f.aspectRatio),f.data!==this.props.data&&this.setData(f.data),f.dragMode!==this.props.dragMode&&this.setDragMode(f.dragMode),f.cropBoxData!==this.props.cropBoxData&&this.setCropBoxData(f.cropBoxData),f.canvasData!==this.props.canvasData&&this.setCanvasData(f.canvasData),f.moveTo!==this.props.moveTo&&(f.moveTo.length>1?this.moveTo(f.moveTo[0],f.moveTo[1]):this.moveTo(f.moveTo[0])),f.zoomTo!==this.props.zoomTo&&this.zoomTo(f.zoomTo),f.rotateTo!==this.props.rotateTo&&this.rotateTo(f.rotateTo),f.scaleX!==this.props.scaleX&&this.scaleX(f.scaleX),f.scaleY!==this.props.scaleY&&this.scaleY(f.scaleY),f.enable!==this.props.enable&&(f.enable?this.enable():this.disable()),Object.keys(f).forEach(function(K){var he=f[K]!==X.props[K],U=ie.indexOf(K)!==-1;if(typeof f[K]=="function"&&typeof X.props[K]=="function"&&(he=f[K].toString()!==X.props[K].toString()),he&&U)throw new Error("prop: ".concat(K," can't be change after componentDidMount"))})}},{key:"componentWillUnmount",value:function(){this.img&&(this.cropper.destroy(),delete this.img,delete this.cropper)}},{key:"setDragMode",value:function(f){return this.cropper.setDragMode(f)}},{key:"setAspectRatio",value:function(f){return this.cropper.setAspectRatio(f)}},{key:"getCroppedCanvas",value:function(f){return this.cropper.getCroppedCanvas(f)}},{key:"setCropBoxData",value:function(f){return this.cropper.setCropBoxData(f)}},{key:"getCropBoxData",value:function(){return this.cropper.getCropBoxData()}},{key:"setCanvasData",value:function(f){return this.cropper.setCanvasData(f)}},{key:"getCanvasData",value:function(){return this.cropper.getCanvasData()}},{key:"getImageData",value:function(){return this.cropper.getImageData()}},{key:"getContainerData",value:function(){return this.cropper.getContainerData()}},{key:"setData",value:function(f){return this.cropper.setData(f)}},{key:"getData",value:function(f){return this.cropper.getData(f)}},{key:"crop",value:function(){return this.cropper.crop()}},{key:"move",value:function(f,X){return this.cropper.move(f,X)}},{key:"moveTo",value:function(f,X){return this.cropper.moveTo(f,X)}},{key:"zoom",value:function(f){return this.cropper.zoom(f)}},{key:"zoomTo",value:function(f){return this.cropper.zoomTo(f)}},{key:"rotate",value:function(f){return this.cropper.rotate(f)}},{key:"rotateTo",value:function(f){return this.cropper.rotateTo(f)}},{key:"enable",value:function(){return this.cropper.enable()}},{key:"disable",value:function(){return this.cropper.disable()}},{key:"reset",value:function(){return this.cropper.reset()}},{key:"clear",value:function(){return this.cropper.clear()}},{key:"replace",value:function(f,X){return this.cropper.replace(f,X)}},{key:"scale",value:function(f,X){return this.cropper.scale(f,X)}},{key:"scaleX",value:function(f){return this.cropper.scaleX(f)}},{key:"scaleY",value:function(f){return this.cropper.scaleY(f)}},{key:"render",value:function(){var f=this,X=this.props,K=X.src,he=X.alt,U=X.crossOrigin,$=X.style,b=X.className;return h.default.createElement("div",{style:$,className:b},h.default.createElement("img",{crossOrigin:U,ref:function(i){f.img=i},src:K,alt:he===void 0?"picture":he,style:{opacity:0}}))}}]),u}(h.Component);F.propTypes={style:p.default.object,className:p.default.string,crossOrigin:p.default.string,src:p.default.string,alt:p.default.string,aspectRatio:p.default.number,dragMode:p.default.oneOf(["crop","move","none"]),data:p.default.shape({x:p.default.number,y:p.default.number,width:p.default.number,height:p.default.number,rotate:p.default.number,scaleX:p.default.number,scaleY:p.default.number}),scaleX:p.default.number,scaleY:p.default.number,enable:p.default.bool,cropBoxData:p.default.shape({left:p.default.number,top:p.default.number,width:p.default.number,height:p.default.number}),canvasData:p.default.shape({left:p.default.number,top:p.default.number,width:p.default.number,height:p.default.number}),zoomTo:p.default.number,moveTo:p.default.arrayOf(p.default.number),rotateTo:p.default.number,viewMode:p.default.oneOf([0,1,2,3]),preview:p.default.string,responsive:p.default.bool,restore:p.default.bool,checkCrossOrigin:p.default.bool,checkOrientation:p.default.bool,modal:p.default.bool,guides:p.default.bool,center:p.default.bool,highlight:p.default.bool,background:p.default.bool,autoCrop:p.default.bool,autoCropArea:p.default.number,movable:p.default.bool,rotatable:p.default.bool,scalable:p.default.bool,zoomable:p.default.bool,zoomOnTouch:p.default.bool,zoomOnWheel:p.default.bool,wheelZoomRatio:p.default.number,cropBoxMovable:p.default.bool,cropBoxResizable:p.default.bool,toggleDragModeOnDblclick:p.default.bool,minContainerWidth:p.default.number,minContainerHeight:p.default.number,minCanvasWidth:p.default.number,minCanvasHeight:p.default.number,minCropBoxWidth:p.default.number,minCropBoxHeight:p.default.number,ready:p.default.func,cropstart:p.default.func,cropmove:p.default.func,cropend:p.default.func,crop:p.default.func,zoom:p.default.func},F.defaultProps={src:null,dragMode:"crop",data:null,scaleX:1,scaleY:1,enable:!0,zoomTo:1,rotateTo:0};var ue=F;be.Z=ue},76374:function(ot,be,r){"use strict";var C=function(){if(typeof Map!="undefined")return Map;function $(b,P){var i=-1;return b.some(function(E,w){return E[0]===P?(i=w,!0):!1}),i}return function(){function b(){this.__entries__=[]}return Object.defineProperty(b.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),b.prototype.get=function(P){var i=$(this.__entries__,P),E=this.__entries__[i];return E&&E[1]},b.prototype.set=function(P,i){var E=$(this.__entries__,P);~E?this.__entries__[E][1]=i:this.__entries__.push([P,i])},b.prototype.delete=function(P){var i=this.__entries__,E=$(i,P);~E&&i.splice(E,1)},b.prototype.has=function(P){return!!~$(this.__entries__,P)},b.prototype.clear=function(){this.__entries__.splice(0)},b.prototype.forEach=function(P,i){i===void 0&&(i=null);for(var E=0,w=this.__entries__;E<w.length;E++){var v=w[E];P.call(i,v[1],v[0])}},b}()}(),h=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,p=function(){return typeof r.g!="undefined"&&r.g.Math===Math?r.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),le=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(p):function($){return setTimeout(function(){return $(Date.now())},1e3/60)}}(),R=2;function T($,b){var P=!1,i=!1,E=0;function w(){P&&(P=!1,$()),i&&O()}function v(){le(w)}function O(){var Y=Date.now();if(P){if(Y-E<R)return;i=!0}else P=!0,i=!1,setTimeout(v,b);E=Y}return O}var N=20,B=["top","right","bottom","left","width","height","size","weight"],ae=typeof MutationObserver!="undefined",re=function(){function $(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=T(this.refresh.bind(this),N)}return $.prototype.addObserver=function(b){~this.observers_.indexOf(b)||this.observers_.push(b),this.connected_||this.connect_()},$.prototype.removeObserver=function(b){var P=this.observers_,i=P.indexOf(b);~i&&P.splice(i,1),!P.length&&this.connected_&&this.disconnect_()},$.prototype.refresh=function(){var b=this.updateObservers_();b&&this.refresh()},$.prototype.updateObservers_=function(){var b=this.observers_.filter(function(P){return P.gatherActive(),P.hasActive()});return b.forEach(function(P){return P.broadcastActive()}),b.length>0},$.prototype.connect_=function(){!h||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ae?(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)},$.prototype.disconnect_=function(){!h||!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)},$.prototype.onTransitionEnd_=function(b){var P=b.propertyName,i=P===void 0?"":P,E=B.some(function(w){return!!~i.indexOf(w)});E&&this.refresh()},$.getInstance=function(){return this.instance_||(this.instance_=new $),this.instance_},$.instance_=null,$}(),ce=function($,b){for(var P=0,i=Object.keys(b);P<i.length;P++){var E=i[P];Object.defineProperty($,E,{value:b[E],enumerable:!1,writable:!1,configurable:!0})}return $},Q=function($){var b=$&&$.ownerDocument&&$.ownerDocument.defaultView;return b||p},d=u(0,0,0,0);function H($){return parseFloat($)||0}function xe($){for(var b=[],P=1;P<arguments.length;P++)b[P-1]=arguments[P];return b.reduce(function(i,E){var w=$["border-"+E+"-width"];return i+H(w)},0)}function we($){for(var b=["top","right","bottom","left"],P={},i=0,E=b;i<E.length;i++){var w=E[i],v=$["padding-"+w];P[w]=H(v)}return P}function $e($){var b=$.getBBox();return u(0,0,b.width,b.height)}function Z($){var b=$.clientWidth,P=$.clientHeight;if(!b&&!P)return d;var i=Q($).getComputedStyle($),E=we(i),w=E.left+E.right,v=E.top+E.bottom,O=H(i.width),Y=H(i.height);if(i.boxSizing==="border-box"&&(Math.round(O+w)!==b&&(O-=xe(i,"left","right")+w),Math.round(Y+v)!==P&&(Y-=xe(i,"top","bottom")+v)),!F($)){var G=Math.round(O+w)-b,ee=Math.round(Y+v)-P;Math.abs(G)!==1&&(O-=G),Math.abs(ee)!==1&&(Y-=ee)}return u(E.left,E.top,O,Y)}var ie=function(){return typeof SVGGraphicsElement!="undefined"?function($){return $ instanceof Q($).SVGGraphicsElement}:function($){return $ instanceof Q($).SVGElement&&typeof $.getBBox=="function"}}();function F($){return $===Q($).document.documentElement}function ue($){return h?ie($)?$e($):Z($):d}function s($){var b=$.x,P=$.y,i=$.width,E=$.height,w=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,v=Object.create(w.prototype);return ce(v,{x:b,y:P,width:i,height:E,top:P,right:b+i,bottom:E+P,left:b}),v}function u($,b,P,i){return{x:$,y:b,width:P,height:i}}var g=function(){function $(b){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=u(0,0,0,0),this.target=b}return $.prototype.isActive=function(){var b=ue(this.target);return this.contentRect_=b,b.width!==this.broadcastWidth||b.height!==this.broadcastHeight},$.prototype.broadcastRect=function(){var b=this.contentRect_;return this.broadcastWidth=b.width,this.broadcastHeight=b.height,b},$}(),f=function(){function $(b,P){var i=s(P);ce(this,{target:b,contentRect:i})}return $}(),X=function(){function $(b,P,i){if(this.activeObservations_=[],this.observations_=new C,typeof b!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=b,this.controller_=P,this.callbackCtx_=i}return $.prototype.observe=function(b){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(b instanceof Q(b).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(b)||(P.set(b,new g(b)),this.controller_.addObserver(this),this.controller_.refresh())}},$.prototype.unobserve=function(b){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(b instanceof Q(b).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(b)&&(P.delete(b),P.size||this.controller_.removeObserver(this))}},$.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},$.prototype.gatherActive=function(){var b=this;this.clearActive(),this.observations_.forEach(function(P){P.isActive()&&b.activeObservations_.push(P)})},$.prototype.broadcastActive=function(){if(this.hasActive()){var b=this.callbackCtx_,P=this.activeObservations_.map(function(i){return new f(i.target,i.broadcastRect())});this.callback_.call(b,P,b),this.clearActive()}},$.prototype.clearActive=function(){this.activeObservations_.splice(0)},$.prototype.hasActive=function(){return this.activeObservations_.length>0},$}(),K=typeof WeakMap!="undefined"?new WeakMap:new C,he=function(){function $(b){if(!(this instanceof $))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var P=re.getInstance(),i=new X(b,P,this);K.set(this,i)}return $}();["observe","unobserve","disconnect"].forEach(function($){he.prototype[$]=function(){var b;return(b=K.get(this))[$].apply(b,arguments)}});var U=function(){return typeof p.ResizeObserver!="undefined"?p.ResizeObserver:he}();be.Z=U}}]);