"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9983],{5102:(e,t,n)=>{n.d(t,{A:()=>E});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,o){return e[0]===t&&(n=o,!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),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,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,o=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new o,A=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new y(t,c.getInstance(),this);w.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){A.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});let E=void 0!==i.ResizeObserver?i.ResizeObserver:A},26791:(e,t,n)=>{n.d(t,{_n:()=>i,rJ:()=>a});var o=n(12115);function r(){}n(9587);let i=o.createContext({}),a=()=>{let e=()=>{};return e.deprecated=r,e}},32934:(e,t,n)=>{n.d(t,{A:()=>c});var o,r=n(21858),i=n(27061),a=n(12115),u=0,s=(0,i.A)({},o||(o=n.t(a,2))).useId;let c=s?function(e){var t=s();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,r.A)(t,2),o=n[0],i=n[1];return(a.useEffect(function(){var e=u;u+=1,i("rc_unique_".concat(e))},[]),e)?e:o}},50347:(e,t,n)=>{n.d(t,{A:()=>A});var o=n(79630),r=n(12115),i=n(63715);n(9587);var a=n(27061),u=n(86608),s=n(41197),c=n(74686),l=r.createContext(null),f=n(5102),h=new Map,d=new f.A(function(e){e.forEach(function(e){var t,n=e.target;null===(t=h.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),p=n(30857),v=n(28383),m=n(38289),g=n(9424),b=function(e){(0,m.A)(n,e);var t=(0,g.A)(n);function n(){return(0,p.A)(this,n),t.apply(this,arguments)}return(0,v.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component),y=r.forwardRef(function(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),f=r.useRef(null),p=r.useContext(l),v="function"==typeof n,m=v?n(i):n,g=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!v&&r.isValidElement(m)&&(0,c.f3)(m),w=y?(0,c.A9)(m):null,A=(0,c.xK)(w,i),E=function(){var e;return(0,s.Ay)(i.current)||(i.current&&"object"===(0,u.A)(i.current)?(0,s.Ay)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,s.Ay)(f.current)};r.useImperativeHandle(t,function(){return E()});var _=r.useRef(e);_.current=e;var x=r.useCallback(function(e){var t=_.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,u=r.height,s=e.offsetWidth,c=e.offsetHeight,l=Math.floor(i),f=Math.floor(u);if(g.current.width!==l||g.current.height!==f||g.current.offsetWidth!==s||g.current.offsetHeight!==c){var h={width:l,height:f,offsetWidth:s,offsetHeight:c};g.current=h;var d=s===Math.round(i)?i:s,v=c===Math.round(u)?u:c,m=(0,a.A)((0,a.A)({},h),{},{offsetWidth:d,offsetHeight:v});null==p||p(m,e,o),n&&Promise.resolve().then(function(){n(m,e)})}},[]);return r.useEffect(function(){var e=E();return e&&!o&&(h.has(e)||(h.set(e,new Set),d.observe(e)),h.get(e).add(x)),function(){h.has(e)&&(h.get(e).delete(x),h.get(e).size||(d.unobserve(e),h.delete(e)))}},[i.current,o]),r.createElement(b,{ref:f},y?r.cloneElement(m,{ref:A}):m)}),w=r.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.A)(n)).map(function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(y,(0,o.A)({},e,{key:a,ref:0===i?t:void 0}),n)})});w.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(l),u=r.useCallback(function(e,t,r){o.current+=1;var u=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then(function(){u===o.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,r)},[n,a]);return r.createElement(l.Provider,{value:u},t)};let A=w},53930:(e,t,n)=>{n.d(t,{A:()=>o});let o=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1}},56980:(e,t,n)=>{n.d(t,{A:()=>V});var o=n(27061),r=n(21858),i=n(52673),a=n(24756),u=n(29300),s=n.n(u),c=n(50347),l=n(41197),f=n(48680),h=n(18885),d=n(32934),p=n(49172),v=n(96951),m=n(12115),g=n(79630),b=n(82870),y=n(74686);function w(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,u=i.content,c=r.x,l=r.y,f=m.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var d=n.points[0],p=n.points[1],v=d[0],g=d[1],b=p[0],y=p[1];v!==b&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=void 0===l?0:l,g!==y&&["l","r"].includes(g)?"l"===g?h.left=0:h.right=0:h.left=void 0===c?0:c}return m.createElement("div",{ref:f,className:s()("".concat(t,"-arrow"),a),style:h},u)}function A(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?m.createElement(b.Ay,(0,g.A)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return m.createElement("div",{style:{zIndex:o},className:s()("".concat(t,"-mask"),n)})}):null}var E=m.memo(function(e){return e.children},function(e,t){return t.cache}),_=m.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,u=e.style,l=e.target,f=e.onVisibleChanged,h=e.open,d=e.keepDom,v=e.fresh,_=e.onClick,x=e.mask,M=e.arrow,k=e.arrowPos,C=e.align,R=e.motion,P=e.maskMotion,O=e.forceRender,S=e.getPopupContainer,D=e.autoDestroy,L=e.portal,N=e.zIndex,z=e.onMouseEnter,T=e.onMouseLeave,B=e.onPointerEnter,j=e.onPointerDownCapture,H=e.ready,W=e.offsetX,V=e.offsetY,F=e.offsetR,X=e.offsetB,I=e.onAlign,Y=e.onPrepare,q=e.stretch,G=e.targetWidth,K=e.targetHeight,J="function"==typeof n?n():n,$=h||d,Q=(null==S?void 0:S.length)>0,U=m.useState(!S||!Q),Z=(0,r.A)(U,2),ee=Z[0],et=Z[1];if((0,p.A)(function(){!ee&&Q&&l&&et(!0)},[ee,Q,l]),!ee)return null;var en="auto",eo={left:"-1000vw",top:"-1000vh",right:en,bottom:en};if(H||!h){var er,ei=C.points,ea=C.dynamicInset||(null===(er=C._experimental)||void 0===er?void 0:er.dynamicInset),eu=ea&&"r"===ei[0][1],es=ea&&"b"===ei[0][0];eu?(eo.right=F,eo.left=en):(eo.left=W,eo.right=en),es?(eo.bottom=X,eo.top=en):(eo.top=V,eo.bottom=en)}var ec={};return q&&(q.includes("height")&&K?ec.height=K:q.includes("minHeight")&&K&&(ec.minHeight=K),q.includes("width")&&G?ec.width=G:q.includes("minWidth")&&G&&(ec.minWidth=G)),h||(ec.pointerEvents="none"),m.createElement(L,{open:O||$,getContainer:S&&function(){return S(l)},autoDestroy:D},m.createElement(A,{prefixCls:a,open:h,zIndex:N,mask:x,motion:P}),m.createElement(c.A,{onResize:I,disabled:!h},function(e){return m.createElement(b.Ay,(0,g.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(a,"-hidden")},R,{onAppearPrepare:Y,onEnterPrepare:Y,visible:h,onVisibleChanged:function(e){var t;null==R||null===(t=R.onVisibleChanged)||void 0===t||t.call(R,e),f(e)}}),function(n,r){var c=n.className,l=n.style,f=s()(a,c,i);return m.createElement("div",{ref:(0,y.K4)(e,t,r),className:f,style:(0,o.A)((0,o.A)((0,o.A)((0,o.A)({"--arrow-x":"".concat(k.x||0,"px"),"--arrow-y":"".concat(k.y||0,"px")},eo),ec),l),{},{boxSizing:"border-box",zIndex:N},u),onMouseEnter:z,onMouseLeave:T,onPointerEnter:B,onClick:_,onPointerDownCapture:j},M&&m.createElement(w,{prefixCls:a,arrow:M,arrowPos:k,align:C}),m.createElement(E,{cache:!h&&!v},J))})}))}),x=m.forwardRef(function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=(0,y.f3)(n),i=m.useCallback(function(e){(0,y.Xf)(t,o?o(e):e)},[o]),a=(0,y.xK)(i,(0,y.A9)(n));return r?m.cloneElement(n,{ref:a}):n}),M=m.createContext(null);function k(e){return e?Array.isArray(e)?e:[e]:[]}var C=n(53930);function R(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function P(e){return e.ownerDocument.defaultView}function O(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=P(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some(function(e){return o.includes(e)})&&t.push(n),n=n.parentElement}return t}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function D(e){return S(parseFloat(e),0)}function L(e,t){var n=(0,o.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=P(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,u=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),l=e.offsetHeight,f=e.clientHeight,h=e.offsetWidth,d=e.clientWidth,p=D(i),v=D(a),m=D(u),g=D(s),b=S(Math.round(c.width/h*1e3)/1e3),y=S(Math.round(c.height/l*1e3)/1e3),w=p*y,A=m*b,E=0,_=0;if("clip"===o){var x=D(r);E=x*b,_=x*y}var M=c.x+A-E,k=c.y+w-_,C=M+c.width+2*E-A-g*b-(h-d-m-g)*b,R=k+c.height+2*_-w-v*y-(l-f-p-v)*y;n.left=Math.max(n.left,M),n.top=Math.max(n.top,k),n.right=Math.min(n.right,C),n.bottom=Math.min(n.bottom,R)}}),n}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function z(e,t){var n=(0,r.A)(t||[],2),o=n[0],i=n[1];return[N(e.width,o),N(e.height,i)]}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function B(e,t){var n,o,r=t[0],i=t[1];return o="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:o}}function j(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,o){return o===t?n[e]||"c":e}).join("")}var H=n(85757);n(9587);var W=["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"];let V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return m.forwardRef(function(t,n){var a,u,g,b,y,w,A,E,D,N,V,F,X,I,Y,q,G,K=t.prefixCls,J=void 0===K?"rc-trigger-popup":K,$=t.children,Q=t.action,U=t.showAction,Z=t.hideAction,ee=t.popupVisible,et=t.defaultPopupVisible,en=t.onPopupVisibleChange,eo=t.afterPopupVisibleChange,er=t.mouseEnterDelay,ei=t.mouseLeaveDelay,ea=void 0===ei?.1:ei,eu=t.focusDelay,es=t.blurDelay,ec=t.mask,el=t.maskClosable,ef=t.getPopupContainer,eh=t.forceRender,ed=t.autoDestroy,ep=t.destroyPopupOnHide,ev=t.popup,em=t.popupClassName,eg=t.popupStyle,eb=t.popupPlacement,ey=t.builtinPlacements,ew=void 0===ey?{}:ey,eA=t.popupAlign,eE=t.zIndex,e_=t.stretch,ex=t.getPopupClassNameFromAlign,eM=t.fresh,ek=t.alignPoint,eC=t.onPopupClick,eR=t.onPopupAlign,eP=t.arrow,eO=t.popupMotion,eS=t.maskMotion,eD=t.popupTransitionName,eL=t.popupAnimation,eN=t.maskTransitionName,ez=t.maskAnimation,eT=t.className,eB=t.getTriggerDOMNode,ej=(0,i.A)(t,W),eH=m.useState(!1),eW=(0,r.A)(eH,2),eV=eW[0],eF=eW[1];(0,p.A)(function(){eF((0,v.A)())},[]);var eX=m.useRef({}),eI=m.useContext(M),eY=m.useMemo(function(){return{registerSubPopup:function(e,t){eX.current[e]=t,null==eI||eI.registerSubPopup(e,t)}}},[eI]),eq=(0,d.A)(),eG=m.useState(null),eK=(0,r.A)(eG,2),eJ=eK[0],e$=eK[1],eQ=m.useRef(null),eU=(0,h.A)(function(e){eQ.current=e,(0,l.fk)(e)&&eJ!==e&&e$(e),null==eI||eI.registerSubPopup(eq,e)}),eZ=m.useState(null),e0=(0,r.A)(eZ,2),e1=e0[0],e2=e0[1],e5=m.useRef(null),e3=(0,h.A)(function(e){(0,l.fk)(e)&&e1!==e&&(e2(e),e5.current=e)}),e8=m.Children.only($),e7=(null==e8?void 0:e8.props)||{},e6={},e9=(0,h.A)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,f.j)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eJ?void 0:eJ.contains(e))||(null===(n=(0,f.j)(eJ))||void 0===n?void 0:n.host)===e||e===eJ||Object.values(eX.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e4=R(J,eO,eL,eD),te=R(J,eS,ez,eN),tt=m.useState(et||!1),tn=(0,r.A)(tt,2),to=tn[0],tr=tn[1],ti=null!=ee?ee:to,ta=(0,h.A)(function(e){void 0===ee&&tr(e)});(0,p.A)(function(){tr(ee||!1)},[ee]);var tu=m.useRef(ti);tu.current=ti;var ts=m.useRef([]);ts.current=[];var tc=(0,h.A)(function(e){var t;ta(e),(null!==(t=ts.current[ts.current.length-1])&&void 0!==t?t:ti)!==e&&(ts.current.push(e),null==en||en(e))}),tl=m.useRef(),tf=function(){clearTimeout(tl.current)},th=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tf(),0===t?tc(e):tl.current=setTimeout(function(){tc(e)},1e3*t)};m.useEffect(function(){return tf},[]);var td=m.useState(!1),tp=(0,r.A)(td,2),tv=tp[0],tm=tp[1];(0,p.A)(function(e){(!e||ti)&&tm(!0)},[ti]);var tg=m.useState(null),tb=(0,r.A)(tg,2),ty=tb[0],tw=tb[1],tA=m.useState(null),tE=(0,r.A)(tA,2),t_=tE[0],tx=tE[1],tM=function(e){tx([e.clientX,e.clientY])},tk=(a=ek&&null!==t_?t_:e1,u=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ew[eb]||{}}),b=(g=(0,r.A)(u,2))[0],y=g[1],w=m.useRef(0),A=m.useMemo(function(){return eJ?O(eJ):[]},[eJ]),E=m.useRef({}),ti||(E.current={}),D=(0,h.A)(function(){if(eJ&&a&&ti){var e=eJ.ownerDocument,t=P(eJ).getComputedStyle(eJ),n=t.width,i=t.height,u=t.position,s=eJ.style.left,c=eJ.style.top,f=eJ.style.right,h=eJ.style.bottom,d=eJ.style.overflow,p=(0,o.A)((0,o.A)({},ew[eb]),eA),v=e.createElement("div");if(null===(_=eJ.parentElement)||void 0===_||_.appendChild(v),v.style.left="".concat(eJ.offsetLeft,"px"),v.style.top="".concat(eJ.offsetTop,"px"),v.style.position=u,v.style.height="".concat(eJ.offsetHeight,"px"),v.style.width="".concat(eJ.offsetWidth,"px"),eJ.style.left="0",eJ.style.top="0",eJ.style.right="auto",eJ.style.bottom="auto",eJ.style.overflow="hidden",Array.isArray(a))R={x:a[0],y:a[1],width:0,height:0};else{var m,g,b,w,_,x,M,k,R,O,D,N=a.getBoundingClientRect();N.x=null!==(O=N.x)&&void 0!==O?O:N.left,N.y=null!==(D=N.y)&&void 0!==D?D:N.top,R={x:N.x,y:N.y,width:N.width,height:N.height}}var H=eJ.getBoundingClientRect();H.x=null!==(x=H.x)&&void 0!==x?x:H.left,H.y=null!==(M=H.y)&&void 0!==M?M:H.top;var W=e.documentElement,V=W.clientWidth,F=W.clientHeight,X=W.scrollWidth,I=W.scrollHeight,Y=W.scrollTop,q=W.scrollLeft,G=H.height,K=H.width,J=R.height,$=R.width,Q=p.htmlRegion,U="visible",Z="visibleFirst";"scroll"!==Q&&Q!==Z&&(Q=U);var ee=Q===Z,et=L({left:-q,top:-Y,right:X-q,bottom:I-Y},A),en=L({left:0,top:0,right:V,bottom:F},A),eo=Q===U?en:et,er=ee?en:eo;eJ.style.left="auto",eJ.style.top="auto",eJ.style.right="0",eJ.style.bottom="0";var ei=eJ.getBoundingClientRect();eJ.style.left=s,eJ.style.top=c,eJ.style.right=f,eJ.style.bottom=h,eJ.style.overflow=d,null===(k=eJ.parentElement)||void 0===k||k.removeChild(v);var ea=S(Math.round(K/parseFloat(n)*1e3)/1e3),eu=S(Math.round(G/parseFloat(i)*1e3)/1e3);if(!(0===ea||0===eu||(0,l.fk)(a)&&!(0,C.A)(a))){var es=p.offset,ec=p.targetOffset,el=z(H,es),ef=(0,r.A)(el,2),eh=ef[0],ed=ef[1],ep=z(R,ec),ev=(0,r.A)(ep,2),em=ev[0],eg=ev[1];R.x-=em,R.y-=eg;var ey=p.points||[],eE=(0,r.A)(ey,2),e_=eE[0],ex=T(eE[1]),eM=T(e_),ek=B(R,ex),eC=B(H,eM),eP=(0,o.A)({},p),eO=ek.x-eC.x+eh,eS=ek.y-eC.y+ed,eD=tl(eO,eS),eL=tl(eO,eS,en),eN=B(R,["t","l"]),ez=B(H,["t","l"]),eT=B(R,["b","r"]),eB=B(H,["b","r"]),ej=p.overflow||{},eH=ej.adjustX,eW=ej.adjustY,eV=ej.shiftX,eF=ej.shiftY,eX=function(e){return"boolean"==typeof e?e:e>=0};tf();var eI=eX(eW),eY=eM[0]===ex[0];if(eI&&"t"===eM[0]&&(g>er.bottom||E.current.bt)){var eq=eS;eY?eq-=G-J:eq=eN.y-eB.y-ed;var eG=tl(eO,eq),eK=tl(eO,eq,en);eG>eD||eG===eD&&(!ee||eK>=eL)?(E.current.bt=!0,eS=eq,ed=-ed,eP.points=[j(eM,0),j(ex,0)]):E.current.bt=!1}if(eI&&"b"===eM[0]&&(meD||eQ===eD&&(!ee||eU>=eL)?(E.current.tb=!0,eS=e$,ed=-ed,eP.points=[j(eM,0),j(ex,0)]):E.current.tb=!1}var eZ=eX(eH),e0=eM[1]===ex[1];if(eZ&&"l"===eM[1]&&(w>er.right||E.current.rl)){var e1=eO;e0?e1-=K-$:e1=eN.x-eB.x-eh;var e2=tl(e1,eS),e5=tl(e1,eS,en);e2>eD||e2===eD&&(!ee||e5>=eL)?(E.current.rl=!0,eO=e1,eh=-eh,eP.points=[j(eM,1),j(ex,1)]):E.current.rl=!1}if(eZ&&"r"===eM[1]&&(beD||e8===eD&&(!ee||e7>=eL)?(E.current.lr=!0,eO=e3,eh=-eh,eP.points=[j(eM,1),j(ex,1)]):E.current.lr=!1}tf();var e6=!0===eV?0:eV;"number"==typeof e6&&(ben.right&&(eO-=w-en.right-eh,R.x>en.right-e6&&(eO+=R.x-en.right+e6)));var e9=!0===eF?0:eF;"number"==typeof e9&&(men.bottom&&(eS-=g-en.bottom-ed,R.y>en.bottom-e9&&(eS+=R.y-en.bottom+e9)));var e4=H.x+eO,te=H.y+eS,tt=R.x,tn=R.y,to=Math.max(e4,tt),tr=Math.min(e4+K,tt+$),ta=Math.max(te,tn),tu=Math.min(te+G,tn+J);null==eR||eR(eJ,eP);var ts=ei.right-H.x-(eO+H.width),tc=ei.bottom-H.y-(eS+H.height);1===ea&&(eO=Math.round(eO),ts=Math.round(ts)),1===eu&&(eS=Math.round(eS),tc=Math.round(tc)),y({ready:!0,offsetX:eO/ea,offsetY:eS/eu,offsetR:ts/ea,offsetB:tc/eu,arrowX:((to+tr)/2-e4)/ea,arrowY:((ta+tu)/2-te)/eu,scaleX:ea,scaleY:eu,align:eP})}function tl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eo,o=H.x+e,r=H.y+t,i=Math.max(o,n.left),a=Math.max(r,n.top);return Math.max(0,(Math.min(o+K,n.right)-i)*(Math.min(r+G,n.bottom)-a))}function tf(){g=(m=H.y+eS)+G,w=(b=H.x+eO)+K}}}),N=function(){y(function(e){return(0,o.A)((0,o.A)({},e),{},{ready:!1})})},(0,p.A)(N,[eb]),(0,p.A)(function(){ti||N()},[ti]),[b.ready,b.offsetX,b.offsetY,b.offsetR,b.offsetB,b.arrowX,b.arrowY,b.scaleX,b.scaleY,b.align,function(){w.current+=1;var e=w.current;Promise.resolve().then(function(){w.current===e&&D()})}]),tC=(0,r.A)(tk,11),tR=tC[0],tP=tC[1],tO=tC[2],tS=tC[3],tD=tC[4],tL=tC[5],tN=tC[6],tz=tC[7],tT=tC[8],tB=tC[9],tj=tC[10],tH=(V=void 0===Q?"hover":Q,m.useMemo(function(){var e=k(null!=U?U:V),t=k(null!=Z?Z:V),n=new Set(e),o=new Set(t);return eV&&(n.has("hover")&&(n.delete("hover"),n.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[n,o]},[eV,V,U,Z])),tW=(0,r.A)(tH,2),tV=tW[0],tF=tW[1],tX=tV.has("click"),tI=tF.has("click")||tF.has("contextMenu"),tY=(0,h.A)(function(){tv||tj()});F=function(){tu.current&&ek&&tI&&th(!1)},(0,p.A)(function(){if(ti&&e1&&eJ){var e=O(e1),t=O(eJ),n=P(eJ),o=new Set([n].concat((0,H.A)(e),(0,H.A)(t)));function r(){tY(),F()}return o.forEach(function(e){e.addEventListener("scroll",r,{passive:!0})}),n.addEventListener("resize",r,{passive:!0}),tY(),function(){o.forEach(function(e){e.removeEventListener("scroll",r),n.removeEventListener("resize",r)})}}},[ti,e1,eJ]),(0,p.A)(function(){tY()},[t_,eb]),(0,p.A)(function(){ti&&!(null!=ew&&ew[eb])&&tY()},[JSON.stringify(eA)]);var tq=m.useMemo(function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a0&&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]}(null===(u=e[s])||void 0===u?void 0:u.points,r,o))return"".concat(t,"-placement-").concat(s)}return""}(ew,J,tB,ek);return s()(e,null==ex?void 0:ex(tB))},[tB,ex,ew,J,ek]);m.useImperativeHandle(n,function(){return{nativeElement:e5.current,popupElement:eQ.current,forceAlign:tY}});var tG=m.useState(0),tK=(0,r.A)(tG,2),tJ=tK[0],t$=tK[1],tQ=m.useState(0),tU=(0,r.A)(tQ,2),tZ=tU[0],t0=tU[1],t1=function(){if(e_&&e1){var e=e1.getBoundingClientRect();t$(e.width),t0(e.height)}};function t2(e,t,n,o){e6[e]=function(r){var i;null==o||o(r),th(t,n);for(var a=arguments.length,u=Array(a>1?a-1:0),s=1;s1?n-1:0),r=1;r1?n-1:0),r=1;r{n.d(t,{b:()=>i});let o=e=>({animationDuration:e,animationFillMode:"both"}),r=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=a?"&":"";return{["\n ".concat(u).concat(e,"-enter,\n ").concat(u).concat(e,"-appear\n ")]:Object.assign(Object.assign({},o(i)),{animationPlayState:"paused"}),["".concat(u).concat(e,"-leave")]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),["\n ".concat(u).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(u).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(u).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},96951:(e,t,n)=>{n.d(t,{A:()=>o});let o=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))}}}]);