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__Engineering__index.c515f...

1 line
70 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3006],{65030:function(e,t,n){n.d(t,{Z:function(){return X}});var r=n(33885),o=n(42978),i=n(75931),a=n(43403),l=n(92310),u=n.n(l),s=n(29301),c=n(76846),f=n(96452),d=n(6089),v=n(80402),p=n(34280),m=n(49658),h=n(59301),g=n(54476),y=n(77900),b=n(8654);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=void 0===s?0:s,f=o.y,d=void 0===f?0:f,v=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],y=m[0],b=m[1],w=g[0],Z=g[1];y!==w&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=d,b!==Z&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return h.createElement("div",{ref:v,className:u()("".concat(t,"-arrow"),a),style:p},l)}function Z(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(y.default,(0,g.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:u()("".concat(t,"-mask"),n)})})):null}var E=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var x=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,c=e.target,f=e.onVisibleChanged,d=e.open,v=e.keepDom,m=e.fresh,x=e.onClick,C=e.mask,k=e.arrow,M=e.arrowPos,A=e.align,N=e.motion,R=e.maskMotion,P=e.forceRender,S=e.getPopupContainer,_=e.autoDestroy,I=e.portal,O=e.zIndex,D=e.onMouseEnter,K=e.onMouseLeave,T=e.onPointerEnter,L=e.onPointerDownCapture,j=e.ready,z=e.offsetX,V=e.offsetY,B=e.offsetR,W=e.offsetB,Y=e.onAlign,H=e.onPrepare,F=e.stretch,X=e.targetWidth,G=e.targetHeight,U="function"==typeof n?n():n,q=d||v,Q=(null==S?void 0:S.length)>0,J=h.useState(!S||!Q),$=(0,o.Z)(J,2),ee=$[0],te=$[1];if((0,p.Z)((function(){!ee&&Q&&c&&te(!0)}),[ee,Q,c]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(j||!d){var oe,ie=A.points,ae=A.dynamicInset||(null===(oe=A._experimental)||void 0===oe?void 0:oe.dynamicInset),le=ae&&"r"===ie[0][1],ue=ae&&"b"===ie[0][0];le?(re.right=B,re.left=ne):(re.left=z,re.right=ne),ue?(re.bottom=W,re.top=ne):(re.top=V,re.bottom=ne)}var se={};return F&&(F.includes("height")&&G?se.height=G:F.includes("minHeight")&&G&&(se.minHeight=G),F.includes("width")&&X?se.width=X:F.includes("minWidth")&&X&&(se.minWidth=X)),d||(se.pointerEvents="none"),h.createElement(I,{open:P||q,getContainer:S&&function(){return S(c)},autoDestroy:_},h.createElement(Z,{prefixCls:a,open:d,zIndex:O,mask:C,motion:R}),h.createElement(s.Z,{onResize:Y,disabled:!d},(function(e){return h.createElement(y.default,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:P,leavedClassName:"".concat(a,"-hidden")},N,{onAppearPrepare:H,onEnterPrepare:H,visible:d,onVisibleChanged:function(e){var t;null==N||null===(t=N.onVisibleChanged)||void 0===t||t.call(N,e),f(e)}}),(function(n,o){var s=n.className,c=n.style,f=u()(a,s,i);return h.createElement("div",{ref:(0,b.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(M.x||0,"px"),"--arrow-y":"".concat(M.y||0,"px")},re),se),c),{},{boxSizing:"border-box",zIndex:O},l),onMouseEnter:D,onMouseLeave:K,onPointerEnter:T,onClick:x,onPointerDownCapture:L},k&&h.createElement(w,{prefixCls:a,arrow:k,arrowPos:M,align:A}),h.createElement(E,{cache:!d&&!m},U))}))})))}));var C=h.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,b.Yr)(n),i=h.useCallback((function(e){(0,b.mH)(t,r?r(e):e)}),[r]),a=(0,b.x1)(i,(0,b.C4)(n));return o?h.cloneElement(n,{ref:a}):n})),k=h.createContext(null);function M(e){return e?Array.isArray(e)?e:[e]:[]}function A(e,t,n,r){return h.useMemo((function(){var o=M(null!=n?n:t),i=M(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}var N=n(29194);function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function P(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,u=i[a];if(R(null===(l=e[u])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(u)}return""}function S(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function _(e){return e.ownerDocument.defaultView}function I(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=_(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function D(e){return O(parseFloat(e),0)}function K(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=_(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,u=t.borderRightWidth,s=e.getBoundingClientRect(),c=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,v=e.clientWidth,p=D(i),m=D(a),h=D(l),g=D(u),y=O(Math.round(s.width/d*1e3)/1e3),b=O(Math.round(s.height/c*1e3)/1e3),w=(d-v-h-g)*y,Z=(c-f-p-m)*b,E=p*b,x=m*b,C=h*y,k=g*y,M=0,A=0;if("clip"===r){var N=D(o);M=N*y,A=N*b}var R=s.x+C-M,P=s.y+E-A,S=R+s.width+2*M-C-k-w,I=P+s.height+2*A-E-x-Z;n.left=Math.max(n.left,R),n.top=Math.max(n.top,P),n.right=Math.min(n.right,S),n.bottom=Math.min(n.bottom,I)}})),n}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function L(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[T(e.width,i),T(e.height,a)]}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function z(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function V(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function B(e,t,n,i,a,l,u){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),f=(0,o.Z)(s,2),v=f[0],m=f[1],g=h.useRef(0),y=h.useMemo((function(){return t?I(t):[]}),[t]),b=h.useRef({});e||(b.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var s,f,d,v,p,h=t,g=h.ownerDocument,w=_(h),Z=w.getComputedStyle(h).position,E=h.style.left,x=h.style.top,C=h.style.right,k=h.style.bottom,M=h.style.overflow,A=(0,r.Z)((0,r.Z)({},a[i]),l),R=g.createElement("div");if(null===(s=h.parentElement)||void 0===s||s.appendChild(R),R.style.left="".concat(h.offsetLeft,"px"),R.style.top="".concat(h.offsetTop,"px"),R.style.position=Z,R.style.height="".concat(h.offsetHeight,"px"),R.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var P,S,I=n.getBoundingClientRect();I.x=null!==(P=I.x)&&void 0!==P?P:I.left,I.y=null!==(S=I.y)&&void 0!==S?S:I.top,p={x:I.x,y:I.y,width:I.width,height:I.height}}var D=h.getBoundingClientRect(),T=w.getComputedStyle(h),B=T.height,W=T.width;D.x=null!==(f=D.x)&&void 0!==f?f:D.left,D.y=null!==(d=D.y)&&void 0!==d?d:D.top;var Y=g.documentElement,H=Y.clientWidth,F=Y.clientHeight,X=Y.scrollWidth,G=Y.scrollHeight,U=Y.scrollTop,q=Y.scrollLeft,Q=D.height,J=D.width,$=p.height,ee=p.width,te={left:0,top:0,right:H,bottom:F},ne={left:-q,top:-U,right:X-q,bottom:G-U},re=A.htmlRegion,oe="visible",ie="visibleFirst";"scroll"!==re&&re!==ie&&(re=oe);var ae=re===ie,le=K(ne,y),ue=K(te,y),se=re===oe?ue:le,ce=ae?ue:se;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var fe=h.getBoundingClientRect();h.style.left=E,h.style.top=x,h.style.right=C,h.style.bottom=k,h.style.overflow=M,null===(v=h.parentElement)||void 0===v||v.removeChild(R);var de=O(Math.round(J/parseFloat(W)*1e3)/1e3),ve=O(Math.round(Q/parseFloat(B)*1e3)/1e3);if(0===de||0===ve||(0,c.Sh)(n)&&!(0,N.Z)(n))return;var pe=A.offset,me=A.targetOffset,he=L(D,pe),ge=(0,o.Z)(he,2),ye=ge[0],be=ge[1],we=L(p,me),Ze=(0,o.Z)(we,2),Ee=Ze[0],xe=Ze[1];p.x-=Ee,p.y-=xe;var Ce=A.points||[],ke=(0,o.Z)(Ce,2),Me=ke[0],Ae=j(ke[1]),Ne=j(Me),Re=z(p,Ae),Pe=z(D,Ne),Se=(0,r.Z)({},A),_e=Re.x-Pe.x+ye,Ie=Re.y-Pe.y+be;function Mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se,r=D.x+e,o=D.y+t,i=r+J,a=o+Q,l=Math.max(r,n.left),u=Math.max(o,n.top),s=Math.min(i,n.right),c=Math.min(a,n.bottom);return Math.max(0,(s-l)*(c-u))}var Oe,De,Ke,Te,Le=Mt(_e,Ie),je=Mt(_e,Ie,ue),ze=z(p,["t","l"]),Ve=z(D,["t","l"]),Be=z(p,["b","r"]),We=z(D,["b","r"]),Ye=A.overflow||{},He=Ye.adjustX,Fe=Ye.adjustY,Xe=Ye.shiftX,Ge=Ye.shiftY,Ue=function(e){return"boolean"==typeof e?e:e>=0};function At(){Oe=D.y+Ie,De=Oe+Q,Ke=D.x+_e,Te=Ke+J}At();var qe=Ue(Fe),Qe=Ne[0]===Ae[0];if(qe&&"t"===Ne[0]&&(De>ce.bottom||b.current.bt)){var Je=Ie;Qe?Je-=Q-$:Je=ze.y-We.y-be;var $e=Mt(_e,Je),et=Mt(_e,Je,ue);$e>Le||$e===Le&&(!ae||et>=je)?(b.current.bt=!0,Ie=Je,be=-be,Se.points=[V(Ne,0),V(Ae,0)]):b.current.bt=!1}if(qe&&"b"===Ne[0]&&(Oe<ce.top||b.current.tb)){var tt=Ie;Qe?tt+=Q-$:tt=Be.y-Ve.y-be;var nt=Mt(_e,tt),rt=Mt(_e,tt,ue);nt>Le||nt===Le&&(!ae||rt>=je)?(b.current.tb=!0,Ie=tt,be=-be,Se.points=[V(Ne,0),V(Ae,0)]):b.current.tb=!1}var ot=Ue(He),it=Ne[1]===Ae[1];if(ot&&"l"===Ne[1]&&(Te>ce.right||b.current.rl)){var at=_e;it?at-=J-ee:at=ze.x-We.x-ye;var lt=Mt(at,Ie),ut=Mt(at,Ie,ue);lt>Le||lt===Le&&(!ae||ut>=je)?(b.current.rl=!0,_e=at,ye=-ye,Se.points=[V(Ne,1),V(Ae,1)]):b.current.rl=!1}if(ot&&"r"===Ne[1]&&(Ke<ce.left||b.current.lr)){var st=_e;it?st+=J-ee:st=Be.x-Ve.x-ye;var ct=Mt(st,Ie),ft=Mt(st,Ie,ue);ct>Le||ct===Le&&(!ae||ft>=je)?(b.current.lr=!0,_e=st,ye=-ye,Se.points=[V(Ne,1),V(Ae,1)]):b.current.lr=!1}At();var dt=!0===Xe?0:Xe;"number"==typeof dt&&(Ke<ue.left&&(_e-=Ke-ue.left-ye,p.x+ee<ue.left+dt&&(_e+=p.x-ue.left+ee-dt)),Te>ue.right&&(_e-=Te-ue.right-ye,p.x>ue.right-dt&&(_e+=p.x-ue.right+dt)));var vt=!0===Ge?0:Ge;"number"==typeof vt&&(Oe<ue.top&&(Ie-=Oe-ue.top-be,p.y+$<ue.top+vt&&(Ie+=p.y-ue.top+$-vt)),De>ue.bottom&&(Ie-=De-ue.bottom-be,p.y>ue.bottom-vt&&(Ie+=p.y-ue.bottom+vt)));var pt=D.x+_e,mt=pt+J,ht=D.y+Ie,gt=ht+Q,yt=p.x,bt=yt+ee,wt=p.y,Zt=wt+$,Et=(Math.max(pt,yt)+Math.min(mt,bt))/2-pt,xt=(Math.max(ht,wt)+Math.min(gt,Zt))/2-ht;null==u||u(t,Se);var Ct=fe.right-D.x-(_e+D.width),kt=fe.bottom-D.y-(Ie+D.height);1===de&&(_e=Math.round(_e),Ct=Math.round(Ct)),1===ve&&(Ie=Math.round(Ie),kt=Math.round(kt)),m({ready:!0,offsetX:_e/de,offsetY:Ie/ve,offsetR:Ct/de,offsetB:kt/ve,arrowX:Et/de,arrowY:xt/ve,scaleX:de,scaleY:ve,align:Se})}})),Z=function(){m((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,p.Z)(Z,[i]),(0,p.Z)((function(){e||Z()}),[e]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&w()}))}]}var W=n(94480);function Y(e,t,n,r,o){(0,p.Z)((function(){if(e&&t&&n){var i=n,a=I(t),l=I(i),u=_(i),s=new Set([u].concat((0,W.Z)(a),(0,W.Z)(l)));function c(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),u.addEventListener("resize",c,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",c),u.removeEventListener("resize",c)}))}}}),[e,t,n])}n(48736);function H(e,t,n,r,o,i,a,l){var u=h.useRef(e);u.current=e;var s=h.useRef(!1);return h.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){s.current=!1},c=function(e){var t;!u.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||s.current||l(!1)},d=_(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0);var v=(0,f.A)(n);return v&&(v.addEventListener("mousedown",c,!0),v.addEventListener("contextmenu",c,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0),v&&(v.removeEventListener("mousedown",c,!0),v.removeEventListener("contextmenu",c,!0))}}}),[t,n,r,o,i]),function(){s.current=!0}}var F=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,l=void 0===a?"rc-trigger-popup":a,g=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,Z=t.hideAction,E=t.popupVisible,M=t.defaultPopupVisible,N=t.onPopupVisibleChange,R=t.afterPopupVisibleChange,_=t.mouseEnterDelay,I=t.mouseLeaveDelay,O=void 0===I?.1:I,D=t.focusDelay,K=t.blurDelay,T=t.mask,L=t.maskClosable,j=void 0===L||L,z=t.getPopupContainer,V=t.forceRender,W=t.autoDestroy,X=t.destroyPopupOnHide,G=t.popup,U=t.popupClassName,q=t.popupStyle,Q=t.popupPlacement,J=t.builtinPlacements,$=void 0===J?{}:J,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,le=t.onPopupAlign,ue=t.arrow,se=t.popupMotion,ce=t.maskMotion,fe=t.popupTransitionName,de=t.popupAnimation,ve=t.maskTransitionName,pe=t.maskAnimation,me=t.className,he=t.getTriggerDOMNode,ge=(0,i.Z)(t,F),ye=W||X||!1,be=h.useState(!1),we=(0,o.Z)(be,2),Ze=we[0],Ee=we[1];(0,p.Z)((function(){Ee((0,m.Z)())}),[]);var xe=h.useRef({}),Ce=h.useContext(k),ke=h.useMemo((function(){return{registerSubPopup:function(e,t){xe.current[e]=t,null==Ce||Ce.registerSubPopup(e,t)}}}),[Ce]),Me=(0,v.Z)(),Ae=h.useState(null),Ne=(0,o.Z)(Ae,2),Re=Ne[0],Pe=Ne[1],Se=h.useRef(null),_e=(0,d.Z)((function(e){Se.current=e,(0,c.Sh)(e)&&Re!==e&&Pe(e),null==Ce||Ce.registerSubPopup(Me,e)})),Ie=h.useState(null),Oe=(0,o.Z)(Ie,2),De=Oe[0],Ke=Oe[1],Te=h.useRef(null),Le=(0,d.Z)((function(e){(0,c.Sh)(e)&&De!==e&&(Ke(e),Te.current=e)})),je=h.Children.only(g),ze=(null==je?void 0:je.props)||{},Ve={},Be=(0,d.Z)((function(e){var t,n,r=De;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Re?void 0:Re.contains(e))||(null===(n=(0,f.A)(Re))||void 0===n?void 0:n.host)===e||e===Re||Object.values(xe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),We=S(l,se,de,fe),Ye=S(l,ce,pe,ve),He=h.useState(M||!1),Fe=(0,o.Z)(He,2),Xe=Fe[0],Ge=Fe[1],Ue=null!=E?E:Xe,qe=(0,d.Z)((function(e){void 0===E&&Ge(e)}));(0,p.Z)((function(){Ge(E||!1)}),[E]);var Qe=h.useRef(Ue);Qe.current=Ue;var Je=h.useRef([]);Je.current=[];var $e=(0,d.Z)((function(e){var t;qe(e),(null!==(t=Je.current[Je.current.length-1])&&void 0!==t?t:Ue)!==e&&(Je.current.push(e),null==N||N(e))})),et=h.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?$e(e):et.current=setTimeout((function(){$e(e)}),1e3*t)};h.useEffect((function(){return tt}),[]);var rt=h.useState(!1),ot=(0,o.Z)(rt,2),it=ot[0],at=ot[1];(0,p.Z)((function(e){e&&!Ue||at(!0)}),[Ue]);var lt=h.useState(null),ut=(0,o.Z)(lt,2),st=ut[0],ct=ut[1],ft=h.useState(null),dt=(0,o.Z)(ft,2),vt=dt[0],pt=dt[1],mt=function(e){pt([e.clientX,e.clientY])},ht=B(Ue,Re,ie&&null!==vt?vt:De,Q,$,ee,le),gt=(0,o.Z)(ht,11),yt=gt[0],bt=gt[1],wt=gt[2],Zt=gt[3],Et=gt[4],xt=gt[5],Ct=gt[6],kt=gt[7],Mt=gt[8],At=gt[9],Nt=gt[10],Rt=A(Ze,b,w,Z),Pt=(0,o.Z)(Rt,2),St=Pt[0],_t=Pt[1],It=St.has("click"),Ot=_t.has("click")||_t.has("contextMenu"),Dt=(0,d.Z)((function(){it||Nt()}));Y(Ue,De,Re,Dt,(function(){Qe.current&&ie&&Ot&&nt(!1)})),(0,p.Z)((function(){Dt()}),[vt,Q]),(0,p.Z)((function(){!Ue||null!=$&&$[Q]||Dt()}),[JSON.stringify(ee)]);var Kt=h.useMemo((function(){var e=P($,l,At,ie);return u()(e,null==re?void 0:re(At))}),[At,re,$,l,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:Te.current,popupElement:Se.current,forceAlign:Dt}}));var Tt=h.useState(0),Lt=(0,o.Z)(Tt,2),jt=Lt[0],zt=Lt[1],Vt=h.useState(0),Bt=(0,o.Z)(Vt,2),Wt=Bt[0],Yt=Bt[1],Ht=function(){if(ne&&De){var e=De.getBoundingClientRect();zt(e.width),Yt(e.height)}};function Ft(e,t,n,r){Ve[e]=function(o){var i;null==r||r(o),nt(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];null===(i=ze[e])||void 0===i||i.call.apply(i,[ze,o].concat(l))}}(0,p.Z)((function(){st&&(Nt(),st(),ct(null))}),[st]),(It||Ot)&&(Ve.onClick=function(e){var t;Qe.current&&Ot?nt(!1):!Qe.current&&It&&(mt(e),nt(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ze.onClick)||void 0===t||t.call.apply(t,[ze,e].concat(r))});var Xt,Gt,Ut=H(Ue,Ot,De,Re,T,j,Be,nt),qt=St.has("hover"),Qt=_t.has("hover");qt&&(Ft("onMouseEnter",!0,_,(function(e){mt(e)})),Ft("onPointerEnter",!0,_,(function(e){mt(e)})),Xt=function(e){(Ue||it)&&null!=Re&&Re.contains(e.target)&&nt(!0,_)},ie&&(Ve.onMouseMove=function(e){var t;null===(t=ze.onMouseMove)||void 0===t||t.call(ze,e)})),Qt&&(Ft("onMouseLeave",!1,O),Ft("onPointerLeave",!1,O),Gt=function(){nt(!1,O)}),St.has("focus")&&Ft("onFocus",!0,D),_t.has("focus")&&Ft("onBlur",!1,K),St.has("contextMenu")&&(Ve.onContextMenu=function(e){var t;Qe.current&&_t.has("contextMenu")?nt(!1):(mt(e),nt(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ze.onContextMenu)||void 0===t||t.call.apply(t,[ze,e].concat(r))}),me&&(Ve.className=u()(ze.className,me));var Jt=h.useRef(!1);Jt.current||(Jt.current=V||Ue||it);var $t=(0,r.Z)((0,r.Z)({},ze),Ve),en={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ge[e]&&(en[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=$t[e])||void 0===t||t.call.apply(t,[$t].concat(r)),ge[e].apply(ge,r)})}));var tn=h.cloneElement(je,(0,r.Z)((0,r.Z)({},$t),en)),nn={x:xt,y:Ct},rn=ue?(0,r.Z)({},!0!==ue?ue:{}):null;return h.createElement(h.Fragment,null,h.createElement(s.Z,{disabled:!Ue,ref:Le,onResize:function(){Ht(),Dt()}},h.createElement(C,{getTriggerDOMNode:he},tn)),Jt.current&&h.createElement(k.Provider,{value:ke},h.createElement(x,{portal:e,ref:_e,prefixCls:l,popup:G,className:u()(U,Kt),style:q,target:De,onMouseEnter:Xt,onMouseLeave:Gt,onPointerEnter:Xt,zIndex:te,open:Ue,keepDom:it,fresh:oe,onClick:ae,onPointerDownCapture:Ut,mask:T,motion:We,maskMotion:Ye,onVisibleChanged:function(e){at(!1),Nt(),null==R||R(e)},onPrepare:function(){return new Promise((function(e){Ht(),ct((function(){return e}))}))},forceRender:V,autoDestroy:ye,getPopupContainer:z,align:At,arrow:rn,arrowPos:nn,ready:yt,offsetX:bt,offsetY:wt,offsetR:Zt,offsetB:Et,onAlign:Dt,stretch:ne,targetWidth:jt/kt,targetHeight:Wt/Mt})))}));return t}(a.Z)},73720:function(e,t,n){n.r(t),n.d(t,{default:function(){return y}});var r=n(79800),o=n.n(r),i=n(59301),a="wrap___Ga64a",l="left___MLf1O",u="menu___FpsmH",s="home___iI7sm",c="info___P474B",f="right___Ttby6",d=n(93041),v=n(56565),p=n(79158),m=n(43170),h=n(37712),g=d.Z.SubMenu,y=(0,v.connect)((function(e){var t=e.globalSetting;return{user:e.user,globalSetting:t,engineering:e.engineering}}))((function(e){e.user,e.globalSetting;var t=e.engineering,n=(0,v.useLocation)(),r=i.useState(["1","2","3","4"]),y=o()(r,2),b=y[0],w=y[1],Z=i.useState([]),E=o()(Z,2),x=E[0],C=E[1],k=t.showMenu,M=t.matrixVerify;(0,i.useEffect)((function(){"/engineering"===(null==n?void 0:n.pathname)&&v.history.replace("/engineering/navigation"),document.title="工程认证"}),[null==n?void 0:n.pathname]),(0,i.useEffect)((function(){document.title="工程认证"})),(0,i.useEffect)((function(){var e=N(),t=(e.filterOpenKeys,e.filterSelectedKeys);console.log(N()),C(t)}),[null==n?void 0:n.pathname]),(0,i.useEffect)((function(){(0,m.ZP)("/api/ec_major_schools/1/ec_years/has_logged.json",{method:"get"})}),[]);var A=[{title:"专业设置",key:"1",icon:(0,h.jsx)("i",{className:"iconfont icon-zhuanyeshezhi"}),children:[{title:"培养方案",key:"/engineering/training/program",icon:(0,h.jsx)("i",{className:"iconfont icon-peiyangfangan font14"})},{title:"培养目标",key:"/engineering/training/objectives",icon:(0,h.jsx)("i",{className:"iconfont icon-peiyangmubiao font14"})},{title:"教师信息",key:"/engineering/teacherList",icon:(0,h.jsx)("i",{className:"iconfont icon-jiaoshiliebiao font14"})},{title:"学生信息",key:"/engineering/studentList",icon:(0,h.jsx)("i",{className:"iconfont icon-xueshengliebiao font14"})}]},{title:"毕业要求",key:"2",icon:(0,h.jsx)("i",{className:"iconfont icon-biyeyaoqiu"}),children:[{title:"毕业指标",key:"/engineering/graduated/index",icon:(0,h.jsx)("i",{className:"iconfont icon-biyezhibiao font14"})},{title:"毕业矩阵",key:"/engineering/graduated/matrix",icon:(0,h.jsx)("i",{className:"iconfont icon-biyejuzhen font14"})}]},{title:"课程体系",key:"3",icon:(0,h.jsx)("i",{className:"iconfont icon-kechengtixi"}),children:[{title:"课程列表",key:"/engineering/course/list",icon:(0,h.jsx)("i",{className:"iconfont icon-kechengliebiao font14"})},{title:"课程设置",key:"/engineering/course/setting",icon:(0,h.jsx)("i",{className:"iconfont icon-kechengshezhi font14"})},{title:"课程矩阵",key:"/engineering/course/matrix",icon:(0,h.jsx)("i",{className:"iconfont icon-kechengjuzhen font14"})}]},{title:"达成评价",key:"4",icon:(0,h.jsx)("i",{className:"iconfont icon-dachengpinggu"}),children:[{title:"课程评价",key:"/engineering/evaluate/course",icon:(0,h.jsx)("i",{className:"iconfont icon-kechengpingjia font14"})},{title:"指标评价",key:"/engineering/evaluate/norm",icon:(0,h.jsx)("i",{className:"iconfont icon-zhibiaopingjia font14"})},{title:"文档生成",key:"/engineering/evaluate/document",icon:(0,h.jsx)("i",{className:"iconfont icon-wendangshengcheng font14"})}]}],N=function(){for(var e=null==n?void 0:n.pathname,t=[],r=[],o=0;o<A.length;o++){var i;if(null!==(i=A[o].children)&&void 0!==i&&i.length)for(var a=0;a<A[o].children.length;a++)if(e.includes(A[o].children[a].key))return{filterOpenKeys:t=[A[o].key],filterSelectedKeys:r=[A[o].children[a].key]}}return{filterOpenKeys:t,filterSelectedKeys:r}},R=function(e){var t,n=function(){v.history.push(e)};null!=M&&M.key?(0,p.t)(n,"毕业要求指标点存在没有关联".concat("1"===(null==M||null===(t=M.params)||void 0===t?void 0:t.tab)?"培养目标":"通用标准",",确定是否离开当前页面?")):n()};return(0,h.jsxs)("div",{className:a,children:[k&&"/exam"!==(null==n?void 0:n.pathname)&&(0,h.jsxs)("div",{className:l,children:[(0,h.jsxs)("aside",{onClick:function(){return R("/engineering/navigation")},className:s,children:[(0,h.jsx)("div",{className:"mr15",children:(0,h.jsx)("img",{width:32,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABQCAYAAACpv3NFAAAAAXNSR0IArs4c6QAABmRJREFUeF7tXHtQVHUU/s7dBw9lAUGBJR18QE7YmJWZaYpZo9Vio0jamFpj4jhaVpaNr4Zeko42aY2OmI7o+BpDA8WGGpOmfDXjKx1TVNQUFFQUebN772nuMiqLwMBy7zJLv/vXAuecPeebc77vt3sPl1DnYmYyJpybrBDGg/EECJ3BLNW18brXRAoYN0A4LjG2OtKj04iI79VB916Yx53vY7crqQAP9LoiW5QwHTQZDNNqtvc8qbo5ATAmnhsqy5wNsE+LYnmtMVUbDDTCsT36dwpOvBB4R5ZzAe7itfW4lTgVBRkMMSSNzV3ICn/uVgwvdyKJPiVKyD0K5n5eXot76RMdI0o4WwpGR/cieLkXoYxozNn7kuDl5biVvgBAdIAYAcEBggTdos924iRUQKiAUAGhAkIF2gmhu1WGUAGhAkIFhAoIFXCLPtuJU5uqwBdvhCCogwGz1hVBUdoG0TYBwNdMSHs3HInPBTirzjpShvHfXEN5leen0eMAhAcZkDE3Ev17+aKkXIZdBkItBhzLq4JtUT6u3ZY92goeBaBvlA92zbPikRAT8q7XwLaoADUOxp4FkYixmnH1lh2vfpWPk5drPAaCxwCIf7oDNn8QgQ6+Ev44XYExSwpwq7R28IM7Stg5x4ohsf4orVTw+tICZB+v8AgIHgFg9qhgLJ4YCkkibMgpwdRVhbA7XOszGYF1M8IxYYgFssyY+UMRVv9SojsIugJgNACrksIw5cVAMDPmb76Fr3cUN1nUZ+NDsDAxxGmzNKMYczbc1BUE3QBQ2/rHj6wY9rg/KqoVTFpxHTsOlbkUM6yPn/PnfacqXX4/Kc6CNdPDYDIS0g+WYuKK66iq0UchdAEgOsKE3fMiEW01o6DYgVEp+TiaV+1SZNJLgfh+au0d+ZlripD6q2u7x/Xxw445Vuc54XBuJUalFODGXe0VQnMA1MTTP7YiuGOttMWnFDhBuHdJErBscmfMsgW7ALJ8923MTrvhciDqHWlG1vxIdA8z4WJhrUKcyddWITQFYMpwC1Ym1bbuT4fL8Obya6ioftC6AX4Stn4YgZef7NDgXP98tNx5IFKV4N7V2WJA5lwrBsT44U657FSPnHoj0xqS0AwAi7+EMyuiEB5sxJKdxZi76Sa4zthGdTE6x+Kxrk1v4Zy+Uu08EF0qetA16slx43vhSBgYgP3/VOL5BVdaU7OLr2YAqFHV011sVzPW77vr8iaDevti5yeRzhNfc66bd2WMXpyP/WeqXMznjumEtXtLUFSiHRdoCkBDxU0eZsHqaWEwm+4vpDUHA9TYGdNWFyKtHpjNcm6BkW4AEAEpE0IxZ3SnFqTzsGlD49SqgPWcdQHA34ew6f0IvPaMNps3GX+VYcK3roSqFQi6AHBsWTf0jfLVKkdnnBOXqtBv9r+axlSD6QKAkh6jeaJqQCkhV/O4HgdAURiORkhc/eygfmBq7GoXAKzbW4J3VhY2WOPaGWF4+4VAAYDogEYQECPQHkhQcIAgwf+BCpRu6tWolG3IuYsZa4oa/PvKpC6YONTSqG/AhPPecRDSPEsdA+pyEtQxX81DCwDEioxYkRErMvrcctGcrvQJKEhQkKAgQUGCggT14VfviCpUQKiAUAGhAkIFPM7XROoGxUECzgAcwUB/MLp7PA+9bo42WAjhMkHaJUmc2Tc4OudIKtnr2pkTzsU6CDZmJR6gZ8HcvHWSVqKmowwSg/gIEWUaDJxp3/boiebmGjDpakhFWeUrTIqNQSPA3PgNw+YGbcROYwCoGsS/EVGGr9F3V8XWbgWtzA9PJbHpRHHeEEWRbUywgbnxr5zdeDOiMblVrXyA0k0iyiJCZqifJbtwY3i5G3k028WccLG3A/Z4BmwABrVqVAg16mN0DoF5QLMzUA0JZwmUKUmGzAWxPQ4kJ1Ob/L+HJfFKp3K5ciQDKiAjAQ5qUR2go2Qce2G4rMhZTXYBkQzmg+o8m4yGjOptPbVf1WhZ5g9ZxyWz8c9T5wcrrMQzO7uj6TUVIlkCjXauYxjG5toUhVMBRNyPTCgHKFsCZ/qbA7JKt1j1XdtuJQD13X3GXYixO1QS5XgwD1YfmfagNiqRgOlyesyW+/soycksffn3haEM7kGgvKhIPnD+u2jXDWeNk/RUuKC3LgaVlspxzHJPkuhi146mPZfWd3duYf4HFXjVlDenBVgAAAAASUVORK5CYII="})}),(0,h.jsxs)("div",{className:c,children:[(0,h.jsx)("div",{children:"认证导航"}),(0,h.jsx)("div",{children:"CERTIFICATION"})]})]}),(0,h.jsx)(d.Z,{mode:"inline",selectedKeys:x,openKeys:b,onOpenChange:function(e){console.log(b,e,44),w(e)},inlineIndent:15,className:u,expandIcon:function(e){return e.isOpen?(0,h.jsx)("span",{style:{visibility:"hidden"},className:"icon-xiala3 custom-icon"}):(0,h.jsx)("span",{style:{visibility:"hidden"},className:"icon-xiala2 custom-icon"})},children:A.map((function(e){var t;if(!e.isMenu)return(0,h.jsx)(g,{icon:e.icon,title:e.title,children:e.children&&(null===(t=e.children)||void 0===t?void 0:t.map((function(e){return(0,h.jsx)(d.Z.Item,{children:(0,h.jsxs)("aside",{onClick:function(){return R(e.key)},children:[(0,h.jsx)("span",{className:"mr15",children:null==e?void 0:e.icon}),e.title]})},e.key)})))},e.key)}))})]}),(0,h.jsx)("div",{className:f,children:(0,h.jsx)(v.Outlet,{})})]})}))},28321:function(e,t,n){n.d(t,{iz:function(){return ze},ck:function(){return be},BW:function(){return We},sN:function(){return be},Wd:function(){return Le},ZP:function(){return Qe},Xl:function(){return N}});var r=n(54476),o=n(20068),i=n(33885),a=n(94480),l=n(42978),u=n(75931),s=n(92310),c=n.n(s),f=n(83836),d=n(18929),v=n(13697),p=n(48736),m=n(59301),h=n(4676),g=m.createContext(null);function y(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function b(e){return y(m.useContext(g),e)}var w=n(80547),Z=["children","locked"],E=m.createContext(null);function x(e){var t=e.children,n=e.locked,r=(0,u.Z)(e,Z),o=m.useContext(E),a=(0,w.Z)((function(){return e=o,t=r,n=(0,i.Z)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&(0,v.Z)(e[1],t[1],!0))}));return m.createElement(E.Provider,{value:a},t)}var C=[],k=m.createContext(null);function M(){return m.useContext(k)}var A=m.createContext(C);function N(e){var t=m.useContext(A);return m.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var R=m.createContext(null),P=m.createContext({}),S=n(29194);function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,S.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return _(e,t)}));return _(e,t)&&n.unshift(e),n}var O=n(10228),D=n(16089),K=O.Z.LEFT,T=O.Z.RIGHT,L=O.Z.UP,j=O.Z.DOWN,z=O.Z.ENTER,V=O.Z.ESC,B=O.Z.HOME,W=O.Z.END,Y=[L,j,K,T];function H(e,t){return I(e,!0).filter((function(e){return t.has(e)}))}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var X=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(y(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function G(e,t,n,r,i,a,l,u,s,c){var f=m.useRef(),d=m.useRef();d.current=t;var v=function(){D.Z.cancel(f.current)};return m.useEffect((function(){return function(){v()}}),[]),function(p){var m=p.which;if([].concat(Y,[z,V,B,W]).includes(m)){var h=a(),g=X(h,r),y=g,b=y.elements,w=y.key2element,Z=y.element2key,E=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(w.get(t),b),x=Z.get(E),C=function(e,t,n,r){var i,a="prev",l="next",u="children",s="parent";if("inline"===e&&r===z)return{inlineTrigger:!0};var c=(0,o.Z)((0,o.Z)({},L,a),j,l),f=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},K,n?l:a),T,n?a:l),j,u),z,u),d=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},L,a),j,l),z,u),V,s),K,n?u:s),T,n?s:u);switch(null===(i={inline:c,horizontal:f,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[r]){case a:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(x,!0).length,n,m);if(!C&&m!==B&&m!==W)return;(Y.includes(m)||[B,W].includes(m))&&p.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=Z.get(e);u(r),v(),f.current=(0,D.Z)((function(){d.current===r&&t.focus()}))}};if([B,W].includes(m)||C.sibling||!E){var M,A,N=H(M=E&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(E):i.current,b);A=m===B?N[0]:m===W?N[N.length-1]:F(M,b,E,C.offset),k(A)}else if(C.inlineTrigger)s(x);else if(C.offset>0)s(x,!0),v(),f.current=(0,D.Z)((function(){g=X(h,r);var e=E.getAttribute("aria-controls"),t=F(document.getElementById(e),g.elements);k(t)}),5);else if(C.offset<0){var R=l(x,!0),P=R[R.length-2],S=w.get(P);s(P,!1),k(S)}}null==c||c(p)}}var U="__RC_UTIL_PATH_SPLIT__",q=function(e){return e.join(U)},Q="rc-menu-more";function J(){var e=m.useState({}),t=(0,l.Z)(e,2)[1],n=(0,m.useRef)(new Map),r=(0,m.useRef)(new Map),o=m.useState([]),i=(0,l.Z)(o,2),u=i[0],s=i[1],c=(0,m.useRef)(0),f=(0,m.useRef)(!1),d=(0,m.useCallback)((function(e,o){var i=q(o);r.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(f.current||t({}))},Promise.resolve().then(a)}),[]),v=(0,m.useCallback)((function(e,t){var o=q(t);r.current.delete(o),n.current.delete(e)}),[]),p=(0,m.useCallback)((function(e){s(e)}),[]),h=(0,m.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(U);return t&&u.includes(o[0])&&o.unshift(Q),o}),[u]),g=(0,m.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return h(e,!0).includes(t)}))}),[h]),y=(0,m.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(U),o=new Set;return(0,a.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return m.useEffect((function(){return function(){f.current=!0}}),[]),{registerPath:d,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:h,getKeys:function(){var e=(0,a.Z)(n.current.keys());return u.length&&e.push(Q),e},getSubPathKeys:y}}function $(e){var t=m.useRef(e);t.current=e;var n=m.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var ee=Math.random().toFixed(5).toString().slice(2),te=0;var ne=n(67732),re=n(83652),oe=n(42403),ie=n(158),ae=n(2738),le=n(8654);function ue(e,t,n,r){var o=m.useContext(E),i=o.activeKey,a=o.onActive,l=o.onInactive,u={active:i===e};return t||(u.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},u.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),u}function se(e){var t=m.useContext(E),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function ce(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=m.createElement(n,(0,i.Z)({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var fe=["item"];function de(e){var t=e.item,n=(0,u.Z)(e,fe);return Object.defineProperty(n,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ve=["title","attribute","elementRef"],pe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],me=["active"],he=function(e){(0,oe.Z)(n,e);var t=(0,ie.Z)(n);function n(){return(0,ne.Z)(this,n),t.apply(this,arguments)}return(0,re.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=(0,u.Z)(e,ve),a=(0,ae.Z)(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(f.Z.Item,(0,r.Z)({},n,{title:"string"==typeof t?t:void 0},a,{ref:o}))}}]),n}(m.Component),ge=m.forwardRef((function(e,t){var n=e.style,l=e.className,s=e.eventKey,f=(e.warnKey,e.disabled),d=e.itemIcon,v=e.children,p=e.role,h=e.onMouseEnter,g=e.onMouseLeave,y=e.onClick,w=e.onKeyDown,Z=e.onFocus,x=(0,u.Z)(e,pe),C=b(s),k=m.useContext(E),M=k.prefixCls,A=k.onItemClick,R=k.disabled,S=k.overflowDisabled,_=k.itemIcon,I=k.selectedKeys,D=k.onActive,K=m.useContext(P)._internalRenderMenuItem,T="".concat(M,"-item"),L=m.useRef(),j=m.useRef(),z=R||f,V=(0,le.x1)(t,j),B=N(s);var W=function(e){return{key:s,keyPath:(0,a.Z)(B).reverse(),item:L.current,domEvent:e}},Y=d||_,H=ue(s,z,h,g),F=H.active,X=(0,u.Z)(H,me),G=I.includes(s),U=se(B.length),q={};"option"===e.role&&(q["aria-selected"]=G);var Q=m.createElement(he,(0,r.Z)({ref:L,elementRef:V,role:null===p?"none":p||"menuitem",tabIndex:f?null:-1,"data-menu-id":S&&C?null:C},(0,ae.Z)(x,["extra"]),X,q,{component:"li","aria-disabled":f,style:(0,i.Z)((0,i.Z)({},U),n),className:c()(T,(0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(T,"-active"),F),"".concat(T,"-selected"),G),"".concat(T,"-disabled"),z),l),onClick:function(e){if(!z){var t=W(e);null==y||y(de(t)),A(t)}},onKeyDown:function(e){if(null==w||w(e),e.which===O.Z.ENTER){var t=W(e);null==y||y(de(t)),A(t)}},onFocus:function(e){D(s),null==Z||Z(e)}}),v,m.createElement(ce,{props:(0,i.Z)((0,i.Z)({},e),{},{isSelected:G}),icon:Y}));return K&&(Q=K(Q,e,{selected:G})),Q}));function ye(e,t){var n=e.eventKey,o=M(),i=N(n);return m.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:m.createElement(ge,(0,r.Z)({},e,{ref:t}))}var be=m.forwardRef(ye),we=["className","children"],Ze=function(e,t){var n=e.className,o=e.children,i=(0,u.Z)(e,we),a=m.useContext(E),l=a.prefixCls,s=a.mode,f=a.rtl;return m.createElement("ul",(0,r.Z)({className:c()(l,f&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Ee=m.forwardRef(Ze);Ee.displayName="SubMenuList";var xe=Ee,Ce=n(11592);function ke(e,t){return(0,Ce.Z)(e).map((function(e,n){if(m.isValidElement(e)){var r,o,i=e.key,l=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==l&&(l="tmp_key-".concat([].concat((0,a.Z)(t),[n]).join("-")));var u={key:l,eventKey:l};return m.cloneElement(e,u)}return e}))}var Me=n(65030),Ae={adjustX:1,adjustY:1},Ne={topLeft:{points:["bl","tl"],overflow:Ae},topRight:{points:["br","tr"],overflow:Ae},bottomLeft:{points:["tl","bl"],overflow:Ae},bottomRight:{points:["tr","br"],overflow:Ae},leftTop:{points:["tr","tl"],overflow:Ae},leftBottom:{points:["br","bl"],overflow:Ae},rightTop:{points:["tl","tr"],overflow:Ae},rightBottom:{points:["bl","br"],overflow:Ae}},Re={topLeft:{points:["bl","tl"],overflow:Ae},topRight:{points:["br","tr"],overflow:Ae},bottomLeft:{points:["tl","bl"],overflow:Ae},bottomRight:{points:["tr","br"],overflow:Ae},rightTop:{points:["tr","tl"],overflow:Ae},rightBottom:{points:["br","bl"],overflow:Ae},leftTop:{points:["tl","tr"],overflow:Ae},leftBottom:{points:["bl","br"],overflow:Ae}};function Pe(e,t,n){return t||(n?n[e]||n.other:void 0)}var Se={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function _e(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,u=e.popupStyle,s=e.popupClassName,f=e.popupOffset,d=e.disabled,v=e.mode,p=e.onVisibleChange,h=m.useContext(E),g=h.getPopupContainer,y=h.rtl,b=h.subMenuOpenDelay,w=h.subMenuCloseDelay,Z=h.builtinPlacements,x=h.triggerSubMenuAction,C=h.forceSubMenuRender,k=h.rootClassName,M=h.motion,A=h.defaultMotions,N=m.useState(!1),R=(0,l.Z)(N,2),P=R[0],S=R[1],_=y?(0,i.Z)((0,i.Z)({},Re),Z):(0,i.Z)((0,i.Z)({},Ne),Z),I=Se[v],O=Pe(v,M,A),K=m.useRef(O);"inline"!==v&&(K.current=O);var T=(0,i.Z)((0,i.Z)({},K.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=m.useRef();return m.useEffect((function(){return L.current=(0,D.Z)((function(){S(n)})),function(){D.Z.cancel(L.current)}}),[n]),m.createElement(Me.Z,{prefixCls:t,popupClassName:c()("".concat(t,"-popup"),(0,o.Z)({},"".concat(t,"-rtl"),y),s,k),stretch:"horizontal"===v?"minWidth":null,getPopupContainer:g,builtinPlacements:_,popupPlacement:I,popupVisible:P,popup:a,popupStyle:u,popupAlign:f&&{offset:f},action:d?[]:[x],mouseEnterDelay:b,mouseLeaveDelay:w,onPopupVisibleChange:p,forceRender:C,popupMotion:T,fresh:!0},r)}var Ie=n(77900);function Oe(e){var t=e.id,n=e.open,o=e.keyPath,a=e.children,u="inline",s=m.useContext(E),c=s.prefixCls,f=s.forceSubMenuRender,d=s.motion,v=s.defaultMotions,p=s.mode,h=m.useRef(!1);h.current=p===u;var g=m.useState(!h.current),y=(0,l.Z)(g,2),b=y[0],w=y[1],Z=!!h.current&&n;m.useEffect((function(){h.current&&w(!1)}),[p]);var C=(0,i.Z)({},Pe(u,d,v));o.length>1&&(C.motionAppear=!1);var k=C.onVisibleChanged;return C.onVisibleChanged=function(e){return h.current||e||w(!0),null==k?void 0:k(e)},b?null:m.createElement(x,{mode:u,locked:!h.current},m.createElement(Ie.default,(0,r.Z)({visible:Z},C,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return m.createElement(xe,{id:t,className:n,style:r},a)})))}var De=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ke=["active"],Te=m.forwardRef((function(e,t){var n=e.style,a=e.className,s=e.title,d=e.eventKey,v=(e.warnKey,e.disabled),p=e.internalPopupClose,h=e.children,g=e.itemIcon,y=e.expandIcon,w=e.popupClassName,Z=e.popupOffset,C=e.popupStyle,k=e.onClick,M=e.onMouseEnter,A=e.onMouseLeave,S=e.onTitleClick,_=e.onTitleMouseEnter,I=e.onTitleMouseLeave,O=(0,u.Z)(e,De),D=b(d),K=m.useContext(E),T=K.prefixCls,L=K.mode,j=K.openKeys,z=K.disabled,V=K.overflowDisabled,B=K.activeKey,W=K.selectedKeys,Y=K.itemIcon,H=K.expandIcon,F=K.onItemClick,X=K.onOpenChange,G=K.onActive,U=m.useContext(P)._internalRenderSubMenuItem,q=m.useContext(R).isSubPathKey,Q=N(),J="".concat(T,"-submenu"),ee=z||v,te=m.useRef(),ne=m.useRef();var re=null!=g?g:Y,oe=null!=y?y:H,ie=j.includes(d),ae=!V&&ie,le=q(W,d),fe=ue(d,ee,_,I),ve=fe.active,pe=(0,u.Z)(fe,Ke),me=m.useState(!1),he=(0,l.Z)(me,2),ge=he[0],ye=he[1],be=function(e){ee||ye(e)},we=m.useMemo((function(){return ve||"inline"!==L&&(ge||q([B],d))}),[L,ve,B,ge,d,q]),Ze=se(Q.length),Ee=$((function(e){null==k||k(de(e)),F(e)})),Ce=D&&"".concat(D,"-popup"),ke=m.useMemo((function(){return m.createElement(ce,{icon:"horizontal"!==L?oe:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},m.createElement("i",{className:"".concat(J,"-arrow")}))}),[L,oe,e,ae,J]),Me=m.createElement("div",(0,r.Z)({role:"menuitem",style:Ze,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof s?s:null,"data-menu-id":V&&D?null:D,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":ee,onClick:function(e){ee||(null==S||S({key:d,domEvent:e}),"inline"===L&&X(d,!ie))},onFocus:function(){G(d)}},pe),s,ke),Ae=m.useRef(L);if("inline"!==L&&Q.length>1?Ae.current="vertical":Ae.current=L,!V){var Ne=Ae.current;Me=m.createElement(_e,{mode:Ne,prefixCls:J,visible:!p&&ae&&"inline"!==L,popupClassName:w,popupOffset:Z,popupStyle:C,popup:m.createElement(x,{mode:"horizontal"===Ne?"vertical":Ne},m.createElement(xe,{id:Ce,ref:ne},h)),disabled:ee,onVisibleChange:function(e){"inline"!==L&&X(d,e)}},Me)}var Re=m.createElement(f.Z.Item,(0,r.Z)({ref:t,role:"none"},O,{component:"li",style:n,className:c()(J,"".concat(J,"-").concat(L),a,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(J,"-open"),ae),"".concat(J,"-active"),we),"".concat(J,"-selected"),le),"".concat(J,"-disabled"),ee)),onMouseEnter:function(e){be(!0),null==M||M({key:d,domEvent:e})},onMouseLeave:function(e){be(!1),null==A||A({key:d,domEvent:e})}}),Me,!V&&m.createElement(Oe,{id:Ce,open:ae,keyPath:Q},h));return U&&(Re=U(Re,e,{selected:le,active:we,open:ae,disabled:ee})),m.createElement(x,{onItemClick:Ee,mode:"horizontal"===L?"vertical":L,itemIcon:re,expandIcon:oe},Re)}));var Le=m.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=N(o),l=ke(i,a),u=M();return m.useEffect((function(){if(u)return u.registerPath(o,a),function(){u.unregisterPath(o,a)}}),[a]),n=u?l:m.createElement(Te,(0,r.Z)({ref:t},e),l),m.createElement(A.Provider,{value:a},n)})),je=n(76190);function ze(e){var t=e.className,n=e.style,r=m.useContext(E).prefixCls;return M()?null:m.createElement("li",{role:"separator",className:c()("".concat(r,"-item-divider"),t),style:n})}var Ve=["className","title","eventKey","children"],Be=m.forwardRef((function(e,t){var n=e.className,o=e.title,i=(e.eventKey,e.children),a=(0,u.Z)(e,Ve),l=m.useContext(E).prefixCls,s="".concat(l,"-item-group");return m.createElement("li",(0,r.Z)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:c()(s,n)}),m.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof o?o:void 0},o),m.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))}));var We=m.forwardRef((function(e,t){var n=e.eventKey,o=ke(e.children,N(n));return M()?o:m.createElement(Be,(0,r.Z)({ref:t},(0,ae.Z)(e,["warnKey"])),o)})),Ye=["label","children","key","type","extra"];function He(e,t,n){var o=t.item,i=t.group,a=t.submenu,l=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===(0,je.Z)(e)){var c=e,f=c.label,d=c.children,v=c.key,p=c.type,h=c.extra,g=(0,u.Z)(c,Ye),y=null!=v?v:"tmp-".concat(s);return d||"group"===p?"group"===p?m.createElement(i,(0,r.Z)({key:y},g,{title:f}),He(d,t,n)):m.createElement(a,(0,r.Z)({key:y},g,{title:f}),He(d,t,n)):"divider"===p?m.createElement(l,(0,r.Z)({key:y},g)):m.createElement(o,(0,r.Z)({key:y},g,{extra:h}),f,(!!h||0===h)&&m.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null})).filter((function(e){return e}))}function Fe(e,t,n,r,o){var a=e,l=(0,i.Z)({divider:ze,item:be,group:We,submenu:Le},r);return t&&(a=He(t,l,o)),ke(a,n)}var Xe=["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","_internalComponents"],Ge=[],Ue=m.forwardRef((function(e,t){var n,s=e,p=s.prefixCls,y=void 0===p?"rc-menu":p,b=s.rootClassName,w=s.style,Z=s.className,E=s.tabIndex,C=void 0===E?0:E,M=s.items,A=s.children,N=s.direction,S=s.id,_=s.mode,I=void 0===_?"vertical":_,O=s.inlineCollapsed,D=s.disabled,K=s.disabledOverflow,T=s.subMenuOpenDelay,L=void 0===T?.1:T,j=s.subMenuCloseDelay,z=void 0===j?.1:j,V=s.forceSubMenuRender,B=s.defaultOpenKeys,W=s.openKeys,Y=s.activeKey,F=s.defaultActiveFirst,U=s.selectable,q=void 0===U||U,ne=s.multiple,re=void 0!==ne&&ne,oe=s.defaultSelectedKeys,ie=s.selectedKeys,ae=s.onSelect,le=s.onDeselect,ue=s.inlineIndent,se=void 0===ue?24:ue,ce=s.motion,fe=s.defaultMotions,ve=s.triggerSubMenuAction,pe=void 0===ve?"hover":ve,me=s.builtinPlacements,he=s.itemIcon,ge=s.expandIcon,ye=s.overflowedIndicator,we=void 0===ye?"...":ye,Ze=s.overflowedIndicatorPopupClassName,Ee=s.getPopupContainer,xe=s.onClick,Ce=s.onOpenChange,ke=s.onKeyDown,Me=(s.openAnimation,s.openTransitionName,s._internalRenderMenuItem),Ae=s._internalRenderSubMenuItem,Ne=s._internalComponents,Re=(0,u.Z)(s,Xe),Pe=m.useMemo((function(){return[Fe(A,M,Ge,Ne,y),Fe(A,M,Ge,{},y)]}),[A,M,Ne]),Se=(0,l.Z)(Pe,2),_e=Se[0],Ie=Se[1],Oe=m.useState(!1),De=(0,l.Z)(Oe,2),Ke=De[0],Te=De[1],je=m.useRef(),ze=function(e){var t=(0,d.Z)(e,{value:e}),n=(0,l.Z)(t,2),r=n[0],o=n[1];return m.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);o("rc-menu-uuid-".concat(e))}),[]),r}(S),Ve="rtl"===N;var Be=(0,d.Z)(B,{value:W,postState:function(e){return e||Ge}}),We=(0,l.Z)(Be,2),Ye=We[0],He=We[1],Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){He(e),null==Ce||Ce(e)}t?(0,h.flushSync)(n):n()},qe=m.useState(Ye),Qe=(0,l.Z)(qe,2),Je=Qe[0],$e=Qe[1],et=m.useRef(!1),tt=m.useMemo((function(){return"inline"!==I&&"vertical"!==I||!O?[I,!1]:["vertical",O]}),[I,O]),nt=(0,l.Z)(tt,2),rt=nt[0],ot=nt[1],it="inline"===rt,at=m.useState(rt),lt=(0,l.Z)(at,2),ut=lt[0],st=lt[1],ct=m.useState(ot),ft=(0,l.Z)(ct,2),dt=ft[0],vt=ft[1];m.useEffect((function(){st(rt),vt(ot),et.current&&(it?He(Je):Ue(Ge))}),[rt,ot]);var pt=m.useState(0),mt=(0,l.Z)(pt,2),ht=mt[0],gt=mt[1],yt=ht>=_e.length-1||"horizontal"!==ut||K;m.useEffect((function(){it&&$e(Ye)}),[Ye]),m.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var bt=J(),wt=bt.registerPath,Zt=bt.unregisterPath,Et=bt.refreshOverflowKeys,xt=bt.isSubPathKey,Ct=bt.getKeyPath,kt=bt.getKeys,Mt=bt.getSubPathKeys,At=m.useMemo((function(){return{registerPath:wt,unregisterPath:Zt}}),[wt,Zt]),Nt=m.useMemo((function(){return{isSubPathKey:xt}}),[xt]);m.useEffect((function(){Et(yt?Ge:_e.slice(ht+1).map((function(e){return e.key})))}),[ht,yt]);var Rt=(0,d.Z)(Y||F&&(null===(n=_e[0])||void 0===n?void 0:n.key),{value:Y}),Pt=(0,l.Z)(Rt,2),St=Pt[0],_t=Pt[1],It=$((function(e){_t(e)})),Ot=$((function(){_t(void 0)}));(0,m.useImperativeHandle)(t,(function(){return{list:je.current,focus:function(e){var t,n,r=kt(),o=X(r,ze),i=o.elements,a=o.key2element,l=o.element2key,u=H(je.current,i),s=null!=St?St:u[0]?l.get(u[0]):null===(t=_e.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,c=a.get(s);s&&c&&(null==c||null===(n=c.focus)||void 0===n||n.call(c,e))}}}));var Dt=(0,d.Z)(oe||[],{value:ie,postState:function(e){return Array.isArray(e)?e:null==e?Ge:[e]}}),Kt=(0,l.Z)(Dt,2),Tt=Kt[0],Lt=Kt[1],jt=$((function(e){null==xe||xe(de(e)),function(e){if(q){var t,n=e.key,r=Tt.includes(n);t=re?r?Tt.filter((function(e){return e!==n})):[].concat((0,a.Z)(Tt),[n]):[n],Lt(t);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==le||le(o):null==ae||ae(o)}!re&&Ye.length&&"inline"!==ut&&Ue(Ge)}(e)})),zt=$((function(e,t){var n=Ye.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==ut){var r=Mt(e);n=n.filter((function(e){return!r.has(e)}))}(0,v.Z)(Ye,n,!0)||Ue(n,!0)})),Vt=G(ut,St,Ve,ze,je,kt,Ct,_t,(function(e,t){var n=null!=t?t:!Ye.includes(e);zt(e,n)}),ke);m.useEffect((function(){Te(!0)}),[]);var Bt=m.useMemo((function(){return{_internalRenderMenuItem:Me,_internalRenderSubMenuItem:Ae}}),[Me,Ae]),Wt="horizontal"!==ut||K?_e:_e.map((function(e,t){return m.createElement(x,{key:e.key,overflowDisabled:t>ht},e)})),Yt=m.createElement(f.Z,(0,r.Z)({id:S,ref:je,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:be,className:c()(y,"".concat(y,"-root"),"".concat(y,"-").concat(ut),Z,(0,o.Z)((0,o.Z)({},"".concat(y,"-inline-collapsed"),dt),"".concat(y,"-rtl"),Ve),b),dir:N,style:w,role:"menu",tabIndex:C,data:Wt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?_e.slice(-t):null;return m.createElement(Le,{eventKey:Q,title:we,disabled:yt,internalPopupClose:0===t,popupClassName:Ze},n)},maxCount:"horizontal"!==ut||K?f.Z.INVALIDATE:f.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){gt(e)},onKeyDown:Vt},Re));return m.createElement(P.Provider,{value:Bt},m.createElement(g.Provider,{value:ze},m.createElement(x,{prefixCls:y,rootClassName:b,mode:ut,openKeys:Ye,rtl:Ve,disabled:D,motion:Ke?ce:null,defaultMotions:Ke?fe:null,activeKey:St,onActive:It,onInactive:Ot,selectedKeys:Tt,inlineIndent:se,subMenuOpenDelay:L,subMenuCloseDelay:z,forceSubMenuRender:V,builtinPlacements:me,triggerSubMenuAction:pe,getPopupContainer:Ee,itemIcon:he,expandIcon:ge,onItemClick:jt,onOpenChange:zt},m.createElement(R.Provider,{value:Nt},Yt),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(k.Provider,{value:At},Ie)))))})),qe=Ue;qe.Item=be,qe.SubMenu=Le,qe.ItemGroup=We,qe.Divider=ze;var Qe=qe},83836:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(54476),o=n(33885),i=n(42978),a=n(75931),l=n(59301),u=n(92310),s=n.n(u),c=n(29301),f=n(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],v=void 0;function p(e,t){var n=e.prefixCls,i=e.invalidate,u=e.item,f=e.renderItem,p=e.responsive,m=e.responsiveDisabled,h=e.registerSize,g=e.itemKey,y=e.className,b=e.style,w=e.children,Z=e.display,E=e.order,x=e.component,C=void 0===x?"div":x,k=(0,a.Z)(e,d),M=p&&!Z;function A(e){h(g,e)}l.useEffect((function(){return function(){A(null)}}),[]);var N,R=f&&u!==v?f(u,{index:E}):w;i||(N={opacity:M?0:1,height:M?0:v,overflowY:M?"hidden":v,order:p?E:v,pointerEvents:M?"none":v,position:M?"absolute":v});var P={};M&&(P["aria-hidden"]=!0);var S=l.createElement(C,(0,r.Z)({className:s()(!i&&n,y),style:(0,o.Z)((0,o.Z)({},N),b)},P,k,{ref:t}),R);return p&&(S=l.createElement(c.Z,{onResize:function(e){A(e.offsetWidth)},disabled:m},S)),S}var m=l.forwardRef(p);m.displayName="Item";var h=m,g=n(6089),y=n(4676),b=n(16089);function w(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,b.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,y.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function Z(e,t){var n=l.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,g.Z)((function(t){e((function(){a(t)}))}))]}var E=l.createContext(null),x=["component"],C=["className"],k=["className"],M=function(e,t){var n=l.useContext(E);if(!n){var o=e.component,i=void 0===o?"div":o,u=(0,a.Z)(e,x);return l.createElement(i,(0,r.Z)({},u,{ref:t}))}var c=n.className,f=(0,a.Z)(n,C),d=e.className,v=(0,a.Z)(e,k);return l.createElement(E.Provider,{value:null},l.createElement(h,(0,r.Z)({ref:t,className:s()(c,d)},f,v)))},A=l.forwardRef(M);A.displayName="RawItem";var N=A,R=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],P="responsive",S="invalidate";function _(e){return"+ ".concat(e.length," ...")}function I(e,t){var n=e.prefixCls,u=void 0===n?"rc-overflow":n,d=e.data,v=void 0===d?[]:d,p=e.renderItem,m=e.renderRawItem,g=e.itemKey,y=e.itemWidth,b=void 0===y?10:y,x=e.ssr,C=e.style,k=e.className,M=e.maxCount,A=e.renderRest,N=e.renderRawRest,I=e.prefix,O=e.suffix,D=e.component,K=void 0===D?"div":D,T=e.itemComponent,L=e.onVisibleChange,j=(0,a.Z)(e,R),z="full"===x,V=w(),B=Z(V,null),W=(0,i.Z)(B,2),Y=W[0],H=W[1],F=Y||0,X=Z(V,new Map),G=(0,i.Z)(X,2),U=G[0],q=G[1],Q=Z(V,0),J=(0,i.Z)(Q,2),$=J[0],ee=J[1],te=Z(V,0),ne=(0,i.Z)(te,2),re=ne[0],oe=ne[1],ie=Z(V,0),ae=(0,i.Z)(ie,2),le=ae[0],ue=ae[1],se=Z(V,0),ce=(0,i.Z)(se,2),fe=ce[0],de=ce[1],ve=(0,l.useState)(null),pe=(0,i.Z)(ve,2),me=pe[0],he=pe[1],ge=(0,l.useState)(null),ye=(0,i.Z)(ge,2),be=ye[0],we=ye[1],Ze=l.useMemo((function(){return null===be&&z?Number.MAX_SAFE_INTEGER:be||0}),[be,Y]),Ee=(0,l.useState)(!1),xe=(0,i.Z)(Ee,2),Ce=xe[0],ke=xe[1],Me="".concat(u,"-item"),Ae=Math.max($,re),Ne=M===P,Re=v.length&&Ne,Pe=M===S,Se=Re||"number"==typeof M&&v.length>M,_e=(0,l.useMemo)((function(){var e=v;return Re?e=null===Y&&z?v:v.slice(0,Math.min(v.length,F/b)):"number"==typeof M&&(e=v.slice(0,M)),e}),[v,b,Y,M,Re]),Ie=(0,l.useMemo)((function(){return Re?v.slice(Ze+1):v.slice(_e.length)}),[v,_e,Re,Ze]),Oe=(0,l.useCallback)((function(e,t){var n;return"function"==typeof g?g(e):null!==(n=g&&(null==e?void 0:e[g]))&&void 0!==n?n:t}),[g]),De=(0,l.useCallback)(p||function(e){return e},[p]);function Ke(e,t,n){(be!==e||void 0!==t&&t!==me)&&(we(e),n||(ke(e<v.length-1),null==L||L(e)),void 0!==t&&he(t))}function Te(e,t){q((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Le(e){return U.get(Oe(_e[e],e))}(0,f.Z)((function(){if(F&&"number"==typeof Ae&&_e){var e=le+fe,t=_e.length,n=t-1;if(!t)return void Ke(0,null);for(var r=0;r<t;r+=1){var o=Le(r);if(z&&(o=o||0),void 0===o){Ke(r-1,void 0,!0);break}if(e+=o,0===n&&e<=F||r===n-1&&e+Le(n)<=F){Ke(n,null);break}if(e+Ae>F){Ke(r-1,e-o-fe+re);break}}O&&Le(0)+fe>F&&he(null)}}),[F,U,re,le,fe,Oe,_e]);var je=Ce&&!!Ie.length,ze={};null!==me&&Re&&(ze={position:"absolute",left:me,top:0});var Ve={prefixCls:Me,responsive:Re,component:T,invalidate:Pe},Be=m?function(e,t){var n=Oe(e,t);return l.createElement(E.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},Ve),{},{order:t,item:e,itemKey:n,registerSize:Te,display:t<=Ze})},m(e,t))}:function(e,t){var n=Oe(e,t);return l.createElement(h,(0,r.Z)({},Ve,{order:t,key:n,item:e,renderItem:De,itemKey:n,registerSize:Te,display:t<=Ze}))},We={order:je?Ze:Number.MAX_SAFE_INTEGER,className:"".concat(Me,"-rest"),registerSize:function(e,t){oe(t),ee(re)},display:je},Ye=A||_,He=N?l.createElement(E.Provider,{value:(0,o.Z)((0,o.Z)({},Ve),We)},N(Ie)):l.createElement(h,(0,r.Z)({},Ve,We),"function"==typeof Ye?Ye(Ie):Ye),Fe=l.createElement(K,(0,r.Z)({className:s()(!Pe&&u,k),style:C,ref:t},j),I&&l.createElement(h,(0,r.Z)({},Ve,{responsive:Ne,responsiveDisabled:!Re,order:-1,className:"".concat(Me,"-prefix"),registerSize:function(e,t){ue(t)},display:!0}),I),_e.map(Be),Se?He:null,O&&l.createElement(h,(0,r.Z)({},Ve,{responsive:Ne,responsiveDisabled:!Re,order:Ze,className:"".concat(Me,"-suffix"),registerSize:function(e,t){de(t)},display:!0,style:ze}),O));return Ne?l.createElement(c.Z,{onResize:function(e,t){H(t.clientWidth)},disabled:!Re},Fe):Fe}var O=l.forwardRef(I);O.displayName="Overflow",O.Item=N,O.RESPONSIVE=P,O.INVALIDATE=S;var D=O},29301:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(54476),o=n(59301),i=n(11592),a=(n(48736),n(33885)),l=n(76190),u=n(76846),s=n(8654),c=o.createContext(null);var f=n(76374),d=new Map;var v=new f.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=d.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var p=n(67732),m=n(83652),h=n(42403),g=n(158),y=function(e){(0,h.Z)(n,e);var t=(0,g.Z)(n);function n(){return(0,p.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function b(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),f=o.useRef(null),p=o.useContext(c),m="function"==typeof n,h=m?n(i):n,g=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=!m&&o.isValidElement(h)&&(0,s.Yr)(h),w=b?(0,s.C4)(h):null,Z=(0,s.x1)(w,i),E=function(){var e;return(0,u.ZP)(i.current)||(i.current&&"object"===(0,l.Z)(i.current)?(0,u.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,u.ZP)(f.current)};o.useImperativeHandle(t,(function(){return E()}));var x=o.useRef(e);x.current=e;var C=o.useCallback((function(e){var t=x.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,u=e.offsetWidth,s=e.offsetHeight,c=Math.floor(i),f=Math.floor(l);if(g.current.width!==c||g.current.height!==f||g.current.offsetWidth!==u||g.current.offsetHeight!==s){var d={width:c,height:f,offsetWidth:u,offsetHeight:s};g.current=d;var v=u===Math.round(i)?i:u,m=s===Math.round(l)?l:s,h=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:v,offsetHeight:m});null==p||p(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return o.useEffect((function(){var e,t,n=E();return n&&!r&&(e=n,t=C,d.has(e)||(d.set(e,new Set),v.observe(e)),d.get(e).add(t)),function(){return function(e,t){d.has(e)&&(d.get(e).delete(t),d.get(e).size||(v.unobserve(e),d.delete(e)))}(n,C)}}),[i.current,r]),o.createElement(y,{ref:f},b?o.cloneElement(h,{ref:Z}):h)}var w=o.forwardRef(b);function Z(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(w,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var E=o.forwardRef(Z);E.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(c),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(c.Provider,{value:l},t)};var x=E},29125:function(e,t,n){n.d(t,{G:function(){return a},Z:function(){return y}});var r=n(92310),o=n.n(r),i=n(59301);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.bodyClassName,u=e.className,s=e.style;return i.createElement("div",{className:o()("".concat(n,"-content"),u),style:s},i.createElement("div",{className:o()("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var l=n(54476),u=n(33885),s=n(75931),c=n(65030),f={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},v=[0,0],p={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:v},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:v},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:v},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:v},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:v},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:v},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:v},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:v},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:v},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:v},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:v},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:v}},m=n(80402),h=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],g=function(e,t){var n=e.overlayClassName,r=e.trigger,f=void 0===r?["hover"]:r,d=e.mouseEnterDelay,v=void 0===d?0:d,g=e.mouseLeaveDelay,y=void 0===g?.1:g,b=e.overlayStyle,w=e.prefixCls,Z=void 0===w?"rc-tooltip":w,E=e.children,x=e.onVisibleChange,C=e.afterVisibleChange,k=e.transitionName,M=e.animation,A=e.motion,N=e.placement,R=void 0===N?"right":N,P=e.align,S=void 0===P?{}:P,_=e.destroyTooltipOnHide,I=void 0!==_&&_,O=e.defaultVisible,D=e.getTooltipContainer,K=e.overlayInnerStyle,T=(e.arrowContent,e.overlay),L=e.id,j=e.showArrow,z=void 0===j||j,V=e.classNames,B=e.styles,W=(0,s.Z)(e,h),Y=(0,m.Z)(L),H=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return H.current}));var F=(0,u.Z)({},W);"visible"in e&&(F.popupVisible=e.visible);var X,G,U;return i.createElement(c.Z,(0,l.Z)({popupClassName:o()(n,null==V?void 0:V.root),prefixCls:Z,popup:function(){return i.createElement(a,{key:"content",prefixCls:Z,id:Y,bodyClassName:null==V?void 0:V.body,overlayInnerStyle:(0,u.Z)((0,u.Z)({},K),null==B?void 0:B.body)},T)},action:f,builtinPlacements:p,popupPlacement:R,ref:H,popupAlign:S,getPopupContainer:D,onPopupVisibleChange:x,afterPopupVisibleChange:C,popupTransitionName:k,popupAnimation:M,popupMotion:A,defaultPopupVisible:O,autoDestroy:I,mouseLeaveDelay:y,popupStyle:(0,u.Z)((0,u.Z)({},b),null==B?void 0:B.root),mouseEnterDelay:v,arrow:z},F),(X=i.Children.only(E),G=(null==X?void 0:X.props)||{},U=(0,u.Z)((0,u.Z)({},G),{},{"aria-describedby":T?Y:null}),i.cloneElement(E,U)))},y=(0,i.forwardRef)(g)},49658:function(e,t){t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},76374:function(e,t,n){var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function l(){a(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function v(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+v(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=v(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=v(r.width),u=v(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=p(r,"left","right")+i),Math.round(u+a)!==n&&(u-=p(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var s=Math.round(l+i)-t,c=Math.round(u+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(c)&&(u-=c)}return y(o.left,o.top,l,u)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return o?h(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,a,l,u,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(l.prototype),c(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);c(this,{target:e,contentRect:s})},Z=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new Z(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:x;t.Z=C}}]);