import{w as Lt,v as Wt,r as $,b5 as xt,j as Z,bb as nr,aW as rt,a_ as Ot,bc as ar,E as Nt,k as Qe,K as Ht,z as It,y as it,x as Ft,e as Ut,c as ir,bd as Ve,o as sr,n as pr,q as Pt,b7 as lr,B as ze,J as Rt,be as qe,bf as cr,bg as Tt}from"./index-B7ckqKYM.js";var k="top",F="bottom",U="right",L="left",st="auto",Ne=[k,F,U,L],we="start",Le="end",fr="clippingParents",Vt="viewport",De="popper",ur="reference",Et=Ne.reduce(function(t,e){return t.concat([e+"-"+we,e+"-"+Le])},[]),zt=[].concat(Ne,[st]).reduce(function(t,e){return t.concat([e,e+"-"+we,e+"-"+Le])},[]),dr="beforeRead",vr="read",mr="afterRead",hr="beforeMain",gr="main",yr="afterMain",br="beforeWrite",wr="write",xr="afterWrite",Or=[dr,vr,mr,hr,gr,yr,br,wr,xr];function ee(t){return t?(t.nodeName||"").toLowerCase():null}function W(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function fe(t){var e=W(t).Element;return t instanceof e||t instanceof Element}function I(t){var e=W(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function pt(t){if(typeof ShadowRoot>"u")return!1;var e=W(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Pr(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},s=e.elements[r];!I(s)||!ee(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(l){var i=n[l];i===!1?s.removeAttribute(l):s.setAttribute(l,i===!0?"":i)}))})}function Rr(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],s=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),i=l.reduce(function(a,c){return a[c]="",a},{});!I(n)||!ee(n)||(Object.assign(n.style,i),Object.keys(s).forEach(function(a){n.removeAttribute(a)}))})}}const Tr={name:"applyStyles",enabled:!0,phase:"write",fn:Pr,effect:Rr,requires:["computeStyles"]};function _(t){return t.split("-")[0]}var ce=Math.max,Je=Math.min,xe=Math.round;function ot(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qt(){return!/^((?!chrome|android).)*safari/i.test(ot())}function Oe(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,s=1;e&&I(t)&&(n=t.offsetWidth>0&&xe(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&xe(o.height)/t.offsetHeight||1);var l=fe(t)?W(t):window,i=l.visualViewport,a=!qt()&&r,c=(o.left+(a&&i?i.offsetLeft:0))/n,p=(o.top+(a&&i?i.offsetTop:0))/s,m=o.width/n,x=o.height/s;return{width:m,height:x,top:p,right:c+m,bottom:p+x,left:c,x:c,y:p}}function lt(t){var e=Oe(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Xt(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&pt(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function oe(t){return W(t).getComputedStyle(t)}function Er(t){return["table","td","th"].indexOf(ee(t))>=0}function ie(t){return((fe(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ze(t){return ee(t)==="html"?t:t.assignedSlot||t.parentNode||(pt(t)?t.host:null)||ie(t)}function At(t){return!I(t)||oe(t).position==="fixed"?null:t.offsetParent}function Ar(t){var e=/firefox/i.test(ot()),r=/Trident/i.test(ot());if(r&&I(t)){var o=oe(t);if(o.position==="fixed")return null}var n=Ze(t);for(pt(n)&&(n=n.host);I(n)&&["html","body"].indexOf(ee(n))<0;){var s=oe(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function He(t){for(var e=W(t),r=At(t);r&&Er(r)&&oe(r).position==="static";)r=At(r);return r&&(ee(r)==="html"||ee(r)==="body"&&oe(r).position==="static")?e:r||Ar(t)||e}function ct(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Be(t,e,r){return ce(t,Je(e,r))}function Cr(t,e,r){var o=Be(t,e,r);return o>r?r:o}function Yt(){return{top:0,right:0,bottom:0,left:0}}function Gt(t){return Object.assign({},Yt(),t)}function Kt(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var $r=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Gt(typeof e!="number"?e:Kt(e,Ne))};function Mr(t){var e,r=t.state,o=t.name,n=t.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,i=_(r.placement),a=ct(i),c=[L,U].indexOf(i)>=0,p=c?"height":"width";if(!(!s||!l)){var m=$r(n.padding,r),x=lt(s),f=a==="y"?k:L,O=a==="y"?F:U,d=r.rects.reference[p]+r.rects.reference[a]-l[a]-r.rects.popper[p],v=l[a]-r.rects.reference[a],b=He(s),R=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,w=d/2-v/2,u=m[f],h=R-x[p]-m[O],g=R/2-x[p]/2+w,T=Be(u,g,h),M=a;r.modifiersData[o]=(e={},e[M]=T,e.centerOffset=T-g,e)}}function Sr(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Xt(e.elements.popper,n)&&(e.elements.arrow=n))}const Dr={name:"arrow",enabled:!0,phase:"main",fn:Mr,effect:Sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pe(t){return t.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Br(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:xe(r*n)/n||0,y:xe(o*n)/n||0}}function Ct(t){var e,r=t.popper,o=t.popperRect,n=t.placement,s=t.variation,l=t.offsets,i=t.position,a=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,m=t.isFixed,x=l.x,f=x===void 0?0:x,O=l.y,d=O===void 0?0:O,v=typeof p=="function"?p({x:f,y:d}):{x:f,y:d};f=v.x,d=v.y;var b=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),w=L,u=k,h=window;if(c){var g=He(r),T="clientHeight",M="clientWidth";if(g===W(r)&&(g=ie(r),oe(g).position!=="static"&&i==="absolute"&&(T="scrollHeight",M="scrollWidth")),g=g,n===k||(n===L||n===U)&&s===Le){u=F;var E=m&&g===h&&h.visualViewport?h.visualViewport.height:g[T];d-=E-o.height,d*=a?1:-1}if(n===L||(n===k||n===F)&&s===Le){w=U;var P=m&&g===h&&h.visualViewport?h.visualViewport.width:g[M];f-=P-o.width,f*=a?1:-1}}var A=Object.assign({position:i},c&&jr),B=p===!0?Br({x:f,y:d},W(r)):{x:f,y:d};if(f=B.x,d=B.y,a){var C;return Object.assign({},A,(C={},C[u]=R?"0":"",C[w]=b?"0":"",C.transform=(h.devicePixelRatio||1)<=1?"translate("+f+"px, "+d+"px)":"translate3d("+f+"px, "+d+"px, 0)",C))}return Object.assign({},A,(e={},e[u]=R?d+"px":"",e[w]=b?f+"px":"",e.transform="",e))}function kr(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,s=r.adaptive,l=s===void 0?!0:s,i=r.roundOffsets,a=i===void 0?!0:i,c={placement:_(e.placement),variation:Pe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ct(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ct(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Lr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kr,data:{}};var Xe={passive:!0};function Wr(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,s=n===void 0?!0:n,l=o.resize,i=l===void 0?!0:l,a=W(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(p){p.addEventListener("scroll",r.update,Xe)}),i&&a.addEventListener("resize",r.update,Xe),function(){s&&c.forEach(function(p){p.removeEventListener("scroll",r.update,Xe)}),i&&a.removeEventListener("resize",r.update,Xe)}}const Nr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wr,data:{}};var Hr={left:"right",right:"left",bottom:"top",top:"bottom"};function Ke(t){return t.replace(/left|right|bottom|top/g,function(e){return Hr[e]})}var Ir={start:"end",end:"start"};function $t(t){return t.replace(/start|end/g,function(e){return Ir[e]})}function ft(t){var e=W(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ut(t){return Oe(ie(t)).left+ft(t).scrollLeft}function Fr(t,e){var r=W(t),o=ie(t),n=r.visualViewport,s=o.clientWidth,l=o.clientHeight,i=0,a=0;if(n){s=n.width,l=n.height;var c=qt();(c||!c&&e==="fixed")&&(i=n.offsetLeft,a=n.offsetTop)}return{width:s,height:l,x:i+ut(t),y:a}}function Ur(t){var e,r=ie(t),o=ft(t),n=(e=t.ownerDocument)==null?void 0:e.body,s=ce(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=ce(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-o.scrollLeft+ut(t),a=-o.scrollTop;return oe(n||r).direction==="rtl"&&(i+=ce(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:l,x:i,y:a}}function dt(t){var e=oe(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Jt(t){return["html","body","#document"].indexOf(ee(t))>=0?t.ownerDocument.body:I(t)&&dt(t)?t:Jt(Ze(t))}function ke(t,e){var r;e===void 0&&(e=[]);var o=Jt(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),s=W(o),l=n?[s].concat(s.visualViewport||[],dt(o)?o:[]):o,i=e.concat(l);return n?i:i.concat(ke(Ze(l)))}function nt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vr(t,e){var r=Oe(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Mt(t,e,r){return e===Vt?nt(Fr(t,r)):fe(e)?Vr(e,r):nt(Ur(ie(t)))}function zr(t){var e=ke(Ze(t)),r=["absolute","fixed"].indexOf(oe(t).position)>=0,o=r&&I(t)?He(t):t;return fe(o)?e.filter(function(n){return fe(n)&&Xt(n,o)&&ee(n)!=="body"}):[]}function qr(t,e,r,o){var n=e==="clippingParents"?zr(t):[].concat(e),s=[].concat(n,[r]),l=s[0],i=s.reduce(function(a,c){var p=Mt(t,c,o);return a.top=ce(p.top,a.top),a.right=Je(p.right,a.right),a.bottom=Je(p.bottom,a.bottom),a.left=ce(p.left,a.left),a},Mt(t,l,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Qt(t){var e=t.reference,r=t.element,o=t.placement,n=o?_(o):null,s=o?Pe(o):null,l=e.x+e.width/2-r.width/2,i=e.y+e.height/2-r.height/2,a;switch(n){case k:a={x:l,y:e.y-r.height};break;case F:a={x:l,y:e.y+e.height};break;case U:a={x:e.x+e.width,y:i};break;case L:a={x:e.x-r.width,y:i};break;default:a={x:e.x,y:e.y}}var c=n?ct(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(s){case we:a[c]=a[c]-(e[p]/2-r[p]/2);break;case Le:a[c]=a[c]+(e[p]/2-r[p]/2);break}}return a}function We(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,s=r.strategy,l=s===void 0?t.strategy:s,i=r.boundary,a=i===void 0?fr:i,c=r.rootBoundary,p=c===void 0?Vt:c,m=r.elementContext,x=m===void 0?De:m,f=r.altBoundary,O=f===void 0?!1:f,d=r.padding,v=d===void 0?0:d,b=Gt(typeof v!="number"?v:Kt(v,Ne)),R=x===De?ur:De,w=t.rects.popper,u=t.elements[O?R:x],h=qr(fe(u)?u:u.contextElement||ie(t.elements.popper),a,p,l),g=Oe(t.elements.reference),T=Qt({reference:g,element:w,strategy:"absolute",placement:n}),M=nt(Object.assign({},w,T)),E=x===De?M:g,P={top:h.top-E.top+b.top,bottom:E.bottom-h.bottom+b.bottom,left:h.left-E.left+b.left,right:E.right-h.right+b.right},A=t.modifiersData.offset;if(x===De&&A){var B=A[n];Object.keys(P).forEach(function(C){var V=[U,F].indexOf(C)>=0?1:-1,z=[k,F].indexOf(C)>=0?"y":"x";P[C]+=B[z]*V})}return P}function Xr(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,s=r.rootBoundary,l=r.padding,i=r.flipVariations,a=r.allowedAutoPlacements,c=a===void 0?zt:a,p=Pe(o),m=p?i?Et:Et.filter(function(O){return Pe(O)===p}):Ne,x=m.filter(function(O){return c.indexOf(O)>=0});x.length===0&&(x=m);var f=x.reduce(function(O,d){return O[d]=We(t,{placement:d,boundary:n,rootBoundary:s,padding:l})[_(d)],O},{});return Object.keys(f).sort(function(O,d){return f[O]-f[d]})}function Yr(t){if(_(t)===st)return[];var e=Ke(t);return[$t(t),e,$t(e)]}function Gr(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,l=r.altAxis,i=l===void 0?!0:l,a=r.fallbackPlacements,c=r.padding,p=r.boundary,m=r.rootBoundary,x=r.altBoundary,f=r.flipVariations,O=f===void 0?!0:f,d=r.allowedAutoPlacements,v=e.options.placement,b=_(v),R=b===v,w=a||(R||!O?[Ke(v)]:Yr(v)),u=[v].concat(w).reduce(function(X,N){return X.concat(_(N)===st?Xr(e,{placement:N,boundary:p,rootBoundary:m,padding:c,flipVariations:O,allowedAutoPlacements:d}):N)},[]),h=e.rects.reference,g=e.rects.popper,T=new Map,M=!0,E=u[0],P=0;P<u.length;P++){var A=u[P],B=_(A),C=Pe(A)===we,V=[k,F].indexOf(B)>=0,z=V?"width":"height",D=We(e,{placement:A,boundary:p,rootBoundary:m,altBoundary:x,padding:c}),S=V?C?U:L:C?F:k;h[z]>g[z]&&(S=Ke(S));var q=Ke(S),te=[];if(s&&te.push(D[B]<=0),i&&te.push(D[S]<=0,D[q]<=0),te.every(function(X){return X})){E=A,M=!1;break}T.set(A,te)}if(M)for(var J=O?3:1,ue=function(N){var ne=u.find(function(ae){var H=T.get(ae);if(H)return H.slice(0,N).every(function(ve){return ve})});if(ne)return E=ne,"break"},re=J;re>0;re--){var de=ue(re);if(de==="break")break}e.placement!==E&&(e.modifiersData[o]._skip=!0,e.placement=E,e.reset=!0)}}const Kr={name:"flip",enabled:!0,phase:"main",fn:Gr,requiresIfExists:["offset"],data:{_skip:!1}};function St(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Dt(t){return[k,U,F,L].some(function(e){return t[e]>=0})}function Jr(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,s=e.modifiersData.preventOverflow,l=We(e,{elementContext:"reference"}),i=We(e,{altBoundary:!0}),a=St(l,o),c=St(i,n,s),p=Dt(a),m=Dt(c);e.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jr};function Zr(t,e,r){var o=_(t),n=[L,k].indexOf(o)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=s[0],i=s[1];return l=l||0,i=(i||0)*n,[L,U].indexOf(o)>=0?{x:i,y:l}:{x:l,y:i}}function _r(t){var e=t.state,r=t.options,o=t.name,n=r.offset,s=n===void 0?[0,0]:n,l=zt.reduce(function(p,m){return p[m]=Zr(m,e.rects,s),p},{}),i=l[e.placement],a=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=l}const eo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_r};function to(t){var e=t.state,r=t.name;e.modifiersData[r]=Qt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ro={name:"popperOffsets",enabled:!0,phase:"read",fn:to,data:{}};function oo(t){return t==="x"?"y":"x"}function no(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,s=n===void 0?!0:n,l=r.altAxis,i=l===void 0?!1:l,a=r.boundary,c=r.rootBoundary,p=r.altBoundary,m=r.padding,x=r.tether,f=x===void 0?!0:x,O=r.tetherOffset,d=O===void 0?0:O,v=We(e,{boundary:a,rootBoundary:c,padding:m,altBoundary:p}),b=_(e.placement),R=Pe(e.placement),w=!R,u=ct(b),h=oo(u),g=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,E=typeof d=="function"?d(Object.assign({},e.rects,{placement:e.placement})):d,P=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(g){if(s){var C,V=u==="y"?k:L,z=u==="y"?F:U,D=u==="y"?"height":"width",S=g[u],q=S+v[V],te=S-v[z],J=f?-M[D]/2:0,ue=R===we?T[D]:M[D],re=R===we?-M[D]:-T[D],de=e.elements.arrow,X=f&&de?lt(de):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Yt(),ne=N[V],ae=N[z],H=Be(0,T[D],X[D]),ve=w?T[D]/2-J-H-ne-P.mainAxis:ue-H-ne-P.mainAxis,_e=w?-T[D]/2+J+H+ae+P.mainAxis:re+H+ae+P.mainAxis,me=e.elements.arrow&&He(e.elements.arrow),Y=me?u==="y"?me.clientTop||0:me.clientLeft||0:0,he=(C=A==null?void 0:A[u])!=null?C:0,se=S+ve-he-Y,ge=S+_e-he,Re=Be(f?Je(q,se):q,S,f?ce(te,ge):te);g[u]=Re,B[u]=Re-S}if(i){var pe,ye=u==="x"?k:L,Te=u==="x"?F:U,Q=g[h],le=h==="y"?"height":"width",Ee=Q+v[ye],Ae=Q-v[Te],Ce=[k,L].indexOf(b)!==-1,Ie=(pe=A==null?void 0:A[h])!=null?pe:0,Fe=Ce?Ee:Q-T[le]-M[le]-Ie+P.altAxis,be=Ce?Q+T[le]+M[le]-Ie-P.altAxis:Ae,Ue=f&&Ce?Cr(Fe,Q,be):Be(f?Fe:Ee,Q,f?be:Ae);g[h]=Ue,B[h]=Ue-Q}e.modifiersData[o]=B}}const ao={name:"preventOverflow",enabled:!0,phase:"main",fn:no,requiresIfExists:["offset"]};function io(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function so(t){return t===W(t)||!I(t)?ft(t):io(t)}function po(t){var e=t.getBoundingClientRect(),r=xe(e.width)/t.offsetWidth||1,o=xe(e.height)/t.offsetHeight||1;return r!==1||o!==1}function lo(t,e,r){r===void 0&&(r=!1);var o=I(e),n=I(e)&&po(e),s=ie(e),l=Oe(t,n,r),i={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!r)&&((ee(e)!=="body"||dt(s))&&(i=so(e)),I(e)?(a=Oe(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):s&&(a.x=ut(s))),{x:l.left+i.scrollLeft-a.x,y:l.top+i.scrollTop-a.y,width:l.width,height:l.height}}function co(t){var e=new Map,r=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function n(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(i){if(!r.has(i)){var a=e.get(i);a&&n(a)}}),o.push(s)}return t.forEach(function(s){r.has(s.name)||n(s)}),o}function fo(t){var e=co(t);return Or.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function uo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function vo(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var jt={placement:"bottom",modifiers:[],strategy:"absolute"};function Bt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function mo(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,o=r===void 0?[]:r,n=e.defaultOptions,s=n===void 0?jt:n;return function(i,a,c){c===void 0&&(c=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},jt,s),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},m=[],x=!1,f={state:p,setOptions:function(b){var R=typeof b=="function"?b(p.options):b;d(),p.options=Object.assign({},s,p.options,R),p.scrollParents={reference:fe(i)?ke(i):i.contextElement?ke(i.contextElement):[],popper:ke(a)};var w=fo(vo([].concat(o,p.options.modifiers)));return p.orderedModifiers=w.filter(function(u){return u.enabled}),O(),f.update()},forceUpdate:function(){if(!x){var b=p.elements,R=b.reference,w=b.popper;if(Bt(R,w)){p.rects={reference:lo(R,He(w),p.options.strategy==="fixed"),popper:lt(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(P){return p.modifiersData[P.name]=Object.assign({},P.data)});for(var u=0;u<p.orderedModifiers.length;u++){if(p.reset===!0){p.reset=!1,u=-1;continue}var h=p.orderedModifiers[u],g=h.fn,T=h.options,M=T===void 0?{}:T,E=h.name;typeof g=="function"&&(p=g({state:p,options:M,name:E,instance:f})||p)}}}},update:uo(function(){return new Promise(function(v){f.forceUpdate(),v(p)})}),destroy:function(){d(),x=!0}};if(!Bt(i,a))return f;f.setOptions(c).then(function(v){!x&&c.onFirstUpdate&&c.onFirstUpdate(v)});function O(){p.orderedModifiers.forEach(function(v){var b=v.name,R=v.options,w=R===void 0?{}:R,u=v.effect;if(typeof u=="function"){var h=u({state:p,name:b,instance:f,options:w}),g=function(){};m.push(h||g)}})}function d(){m.forEach(function(v){return v()}),m=[]}return f}}var ho=[Nr,ro,Lr,Tr,eo,Kr,ao,Dr,Qr],go=mo({defaultModifiers:ho});function yo(t){return Wt("MuiPopper",t)}Lt("MuiPopper",["root"]);function bo(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function at(t){return typeof t=="function"?t():t}function wo(t){return t.nodeType!==void 0}const xo=t=>{const{classes:e}=t;return Nt({root:["root"]},yo,e)},Oo={},Po=$.forwardRef(function(e,r){const{anchorEl:o,children:n,direction:s,disablePortal:l,modifiers:i,open:a,placement:c,popperOptions:p,popperRef:m,slotProps:x={},slots:f={},TransitionProps:O,ownerState:d,...v}=e,b=$.useRef(null),R=rt(b,r),w=$.useRef(null),u=rt(w,m),h=$.useRef(u);Ot(()=>{h.current=u},[u]),$.useImperativeHandle(m,()=>w.current,[]);const g=bo(c,s),[T,M]=$.useState(g),[E,P]=$.useState(at(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&P(at(o))},[o]),Ot(()=>{if(!E||!a)return;const z=q=>{M(q.placement)};let D=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{z(q)}}];i!=null&&(D=D.concat(i)),p&&p.modifiers!=null&&(D=D.concat(p.modifiers));const S=go(E,b.current,{placement:g,...p,modifiers:D});return h.current(S),()=>{S.destroy(),h.current(null)}},[E,l,i,a,p,g]);const A={placement:T};O!==null&&(A.TransitionProps=O);const B=xo(e),C=f.root??"div",V=ar({elementType:C,externalSlotProps:x.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:R},ownerState:e,className:B.root});return Z.jsx(C,{...V,children:typeof n=="function"?n(A):n})}),Ro=$.forwardRef(function(e,r){const{anchorEl:o,children:n,container:s,direction:l="ltr",disablePortal:i=!1,keepMounted:a=!1,modifiers:c,open:p,placement:m="bottom",popperOptions:x=Oo,popperRef:f,style:O,transition:d=!1,slotProps:v={},slots:b={},...R}=e,[w,u]=$.useState(!0),h=()=>{u(!1)},g=()=>{u(!0)};if(!a&&!p&&(!d||w))return null;let T;if(s)T=s;else if(o){const P=at(o);T=P&&wo(P)?xt(P).body:xt(null).body}const M=!p&&a&&(!d||w)?"none":void 0,E=d?{in:p,onEnter:h,onExited:g}:void 0;return Z.jsx(nr,{disablePortal:i,container:T,children:Z.jsx(Po,{anchorEl:o,direction:l,disablePortal:i,modifiers:c,ref:r,open:d?!w:p,placement:m,popperOptions:x,popperRef:f,slotProps:v,slots:b,...R,style:{position:"fixed",top:0,left:0,display:M,...O},TransitionProps:E,children:n})})}),To=Qe(Ro,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Zt=$.forwardRef(function(e,r){const o=Ht(),n=It({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:i,componentsProps:a,container:c,disablePortal:p,keepMounted:m,modifiers:x,open:f,placement:O,popperOptions:d,popperRef:v,transition:b,slots:R,slotProps:w,...u}=n,h=(R==null?void 0:R.root)??(i==null?void 0:i.Root),g={anchorEl:s,container:c,disablePortal:p,keepMounted:m,modifiers:x,open:f,placement:O,popperOptions:d,popperRef:v,transition:b,...u};return Z.jsx(To,{as:l,direction:o?"rtl":"ltr",slots:{root:h},slotProps:w??a,...g,ref:r})});function Eo(t){return Wt("MuiTooltip",t)}const j=Lt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Ao(t){return Math.round(t*1e5)/1e5}const Co=t=>{const{classes:e,disableInteractive:r,arrow:o,touch:n,placement:s}=t,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${Ft(s.split("-")[0])}`],arrow:["arrow"]};return Nt(l,Eo,e)},$o=Qe(Zt,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(it(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${j.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${j.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${j.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${j.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${j.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${j.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${j.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${j.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Mo=Qe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ft(r.placement.split("-")[0])}`]]}})(it(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Ut(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${j.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${j.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${j.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${j.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${Ao(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${j.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${j.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${j.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${j.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${j.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${j.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${j.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${j.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${j.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${j.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),So=Qe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(it(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Ut(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ye=!1;const kt=new cr;let je={x:0,y:0};function Ge(t,e){return(r,...o)=>{e&&e(r,...o),t(r,...o)}}const jo=$.forwardRef(function(e,r){var yt,bt,wt;const o=It({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:s,classes:l,components:i={},componentsProps:a={},describeChild:c=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:x=!1,disableTouchListener:f=!1,enterDelay:O=100,enterNextDelay:d=0,enterTouchDelay:v=700,followCursor:b=!1,id:R,leaveDelay:w=0,leaveTouchDelay:u=1500,onClose:h,onOpen:g,open:T,placement:M="bottom",PopperComponent:E,PopperProps:P={},slotProps:A={},slots:B={},title:C,TransitionComponent:V=Rt,TransitionProps:z,...D}=o,S=$.isValidElement(s)?s:Z.jsx("span",{children:s}),q=ir(),te=Ht(),[J,ue]=$.useState(),[re,de]=$.useState(null),X=$.useRef(!1),N=x||b,ne=Ve(),ae=Ve(),H=Ve(),ve=Ve(),[_e,me]=sr({controlled:T,default:!1,name:"Tooltip",state:"open"});let Y=_e;const he=pr(R),se=$.useRef(),ge=Pt(()=>{se.current!==void 0&&(document.body.style.WebkitUserSelect=se.current,se.current=void 0),ve.clear()});$.useEffect(()=>ge,[ge]);const Re=y=>{kt.clear(),Ye=!0,me(!0),g&&!Y&&g(y)},pe=Pt(y=>{kt.start(800+w,()=>{Ye=!1}),me(!1),h&&Y&&h(y),ne.start(q.transitions.duration.shortest,()=>{X.current=!1})}),ye=y=>{X.current&&y.type!=="touchstart"||(J&&J.removeAttribute("title"),ae.clear(),H.clear(),O||Ye&&d?ae.start(Ye?d:O,()=>{Re(y)}):Re(y))},Te=y=>{ae.clear(),H.start(w,()=>{pe(y)})},[,Q]=$.useState(!1),le=y=>{Tt(y.target)||(Q(!1),Te(y))},Ee=y=>{J||ue(y.currentTarget),Tt(y.target)&&(Q(!0),ye(y))},Ae=y=>{X.current=!0;const K=S.props;K.onTouchStart&&K.onTouchStart(y)},Ce=y=>{Ae(y),H.clear(),ne.clear(),ge(),se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(v,()=>{document.body.style.WebkitUserSelect=se.current,ye(y)})},Ie=y=>{S.props.onTouchEnd&&S.props.onTouchEnd(y),ge(),H.start(u,()=>{pe(y)})};$.useEffect(()=>{if(!Y)return;function y(K){K.key==="Escape"&&pe(K)}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[pe,Y]);const Fe=rt(lr(S),ue,r);!C&&C!==0&&(Y=!1);const be=$.useRef(),Ue=y=>{const K=S.props;K.onMouseMove&&K.onMouseMove(y),je={x:y.clientX,y:y.clientY},be.current&&be.current.update()},$e={},et=typeof C=="string";c?($e.title=!Y&&et&&!m?C:null,$e["aria-describedby"]=Y?he:null):($e["aria-label"]=et?C:null,$e["aria-labelledby"]=Y&&!et?he:null);const G={...$e,...D,...S.props,className:ze(D.className,S.props.className),onTouchStart:Ae,ref:Fe,...b?{onMouseMove:Ue}:{}},Me={};f||(G.onTouchStart=Ce,G.onTouchEnd=Ie),m||(G.onMouseOver=Ge(ye,G.onMouseOver),G.onMouseLeave=Ge(Te,G.onMouseLeave),N||(Me.onMouseOver=ye,Me.onMouseLeave=Te)),p||(G.onFocus=Ge(Ee,G.onFocus),G.onBlur=Ge(le,G.onBlur),N||(Me.onFocus=Ee,Me.onBlur=le));const _t=$.useMemo(()=>{var K;let y=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(K=P.popperOptions)!=null&&K.modifiers&&(y=y.concat(P.popperOptions.modifiers)),{...P.popperOptions,modifiers:y}},[re,P]),Se={...o,isRtl:te,arrow:n,disableInteractive:N,placement:M,PopperComponentProp:E,touch:X.current},tt=Co(Se),vt=B.popper??i.Popper??$o,mt=B.transition??i.Transition??V??Rt,ht=B.tooltip??i.Tooltip??Mo,gt=B.arrow??i.Arrow??So,er=qe(vt,{...P,...A.popper??a.popper,className:ze(tt.popper,P==null?void 0:P.className,(yt=A.popper??a.popper)==null?void 0:yt.className)},Se),tr=qe(mt,{...z,...A.transition??a.transition},Se),rr=qe(ht,{...A.tooltip??a.tooltip,className:ze(tt.tooltip,(bt=A.tooltip??a.tooltip)==null?void 0:bt.className)},Se),or=qe(gt,{...A.arrow??a.arrow,className:ze(tt.arrow,(wt=A.arrow??a.arrow)==null?void 0:wt.className)},Se);return Z.jsxs($.Fragment,{children:[$.cloneElement(S,G),Z.jsx(vt,{as:E??Zt,placement:M,anchorEl:b?{getBoundingClientRect:()=>({top:je.y,left:je.x,right:je.x,bottom:je.y,width:0,height:0})}:J,popperRef:be,open:J?Y:!1,id:he,transition:!0,...Me,...er,popperOptions:_t,children:({TransitionProps:y})=>Z.jsx(mt,{timeout:q.transitions.duration.shorter,...y,...tr,children:Z.jsxs(ht,{...rr,children:[C,n?Z.jsx(gt,{...or,ref:de}):null]})})})]})});export{Zt as P,jo as T};