(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,797725,802877,t=>{"use strict";var e=t.i(307629),n=t.i(319346);let i=["top","right","bottom","left"],r=i.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]),o=Math.min,l=Math.max,a=Math.round,f=Math.floor,u=t=>({x:t,y:t}),s={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(t,e){return"function"==typeof t?t(e):t}function p(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function m(t){return"x"===t?"y":"x"}function g(t){return"y"===t?"height":"width"}let w=new Set(["top","bottom"]);function y(t){return w.has(p(t))?"y":"x"}function v(t,e,n){void 0===n&&(n=!1);let i=h(t),r=m(y(t)),o=g(r),l="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=L(l)),[l,L(l)]}function x(t){return t.replace(/start|end/g,t=>c[t])}let b=["left","right"],R=["right","left"],T=["top","bottom"],A=["bottom","top"];function L(t){return t.replace(/left|right|bottom|top/g,t=>s[t])}function S(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function _(t){let{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function C(t,e,n){let i,{reference:r,floating:o}=t,l=y(e),a=m(y(e)),f=g(a),u=p(e),s="y"===l,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,w=r[f]/2-o[f]/2;switch(u){case"top":i={x:c,y:r.y-o.height};break;case"bottom":i={x:c,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:d};break;case"left":i={x:r.x-o.width,y:d};break;default:i={x:r.x,y:r.y}}switch(h(e)){case"start":i[a]-=w*(n&&s?-1:1);break;case"end":i[a]+=w*(n&&s?-1:1)}return i}let E=async(t,e,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(e)),u=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:s,y:c}=C(u,i,f),d=i,p={},h=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:w,data:y,reset:v}=await m({x:s,y:c,initialPlacement:i,placement:d,strategy:r,middlewareData:p,rects:u,platform:l,elements:{reference:t,floating:e}});s=null!=g?g:s,c=null!=w?w:c,p={...p,[o]:{...p[o],...y}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(u=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:s,y:c}=C(u,d,f)),n=-1)}return{x:s,y:c,placement:d,strategy:r,middlewareData:p}};async function O(t,e){var n;void 0===e&&(e={});let{x:i,y:r,platform:o,rects:l,elements:a,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=d(e,t),m=S(h),g=a[p?"floating"===c?"reference":"floating":c],w=_(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:s,strategy:f})),y="floating"===c?{x:i,y:r,width:l.floating.width,height:l.floating.height}:l.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},b=_(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:f}):y);return{top:(w.top-b.top+m.top)/x.y,bottom:(b.bottom-w.bottom+m.bottom)/x.y,left:(w.left-b.left+m.left)/x.x,right:(b.right-w.right+m.right)/x.x}}function P(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function D(t){return i.some(e=>t[e]>=0)}function k(t){let e=o(...t.map(t=>t.left)),n=o(...t.map(t=>t.top));return{x:e,y:n,width:l(...t.map(t=>t.right))-e,height:l(...t.map(t=>t.bottom))-n}}let F=new Set(["left","top"]);async function B(t,e){let{placement:n,platform:i,elements:r}=t,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),l=p(n),a=h(n),f="y"===y(n),u=F.has(l)?-1:1,s=o&&f?-1:1,c=d(e,t),{mainAxis:m,crossAxis:g,alignmentAxis:w}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof w&&(g="end"===a?-1*w:w),f?{x:g*s,y:m*u}:{x:m*u,y:g*s}}function H(){return"u">typeof window}function M(t){return j(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function V(t){var e;return null==(e=(j(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function j(t){return!!H()&&(t instanceof Node||t instanceof W(t).Node)}function z(t){return!!H()&&(t instanceof Element||t instanceof W(t).Element)}function N(t){return!!H()&&(t instanceof HTMLElement||t instanceof W(t).HTMLElement)}function U(t){return!(!H()||"u"<typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof W(t).ShadowRoot)}let K=new Set(["inline","contents"]);function I(t){let{overflow:e,overflowX:n,overflowY:i,display:r}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!K.has(r)}let $=new Set(["table","td","th"]),q=[":popover-open",":modal"];function X(t){return q.some(e=>{try{return t.matches(e)}catch(t){return!1}})}let Y=["transform","translate","scale","rotate","perspective"],G=["transform","translate","scale","rotate","perspective","filter"],J=["paint","layout","strict","content"];function Q(t){let e=Z(),n=z(t)?tn(t):t;return Y.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||G.some(t=>(n.willChange||"").includes(t))||J.some(t=>(n.contain||"").includes(t))}function Z(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let tt=new Set(["html","body","#document"]);function te(t){return tt.has(M(t))}function tn(t){return W(t).getComputedStyle(t)}function ti(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function tr(t){if("html"===M(t))return t;let e=t.assignedSlot||t.parentNode||U(t)&&t.host||V(t);return U(e)?e.host:e}function to(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);let r=function t(e){let n=tr(e);return te(n)?e.ownerDocument?e.ownerDocument.body:e.body:N(n)&&I(n)?n:t(n)}(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),l=W(r);if(o){let t=tl(l);return e.concat(l,l.visualViewport||[],I(r)?r:[],t&&n?to(t):[])}return e.concat(r,to(r,[],n))}function tl(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ta(t){let e=tn(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=N(t),o=r?t.offsetWidth:n,l=r?t.offsetHeight:i,f=a(n)!==o||a(i)!==l;return f&&(n=o,i=l),{width:n,height:i,$:f}}function tf(t){return z(t)?t:t.contextElement}function tu(t){let e=tf(t);if(!N(e))return u(1);let n=e.getBoundingClientRect(),{width:i,height:r,$:o}=ta(e),l=(o?a(n.width):n.width)/i,f=(o?a(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),f&&Number.isFinite(f)||(f=1),{x:l,y:f}}let ts=u(0);function tc(t){let e=W(t);return Z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ts}function td(t,e,n,i){var r;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),l=tf(t),a=u(1);e&&(i?z(i)&&(a=tu(i)):a=tu(t));let f=(void 0===(r=n)&&(r=!1),i&&(!r||i===W(l))&&r)?tc(l):u(0),s=(o.left+f.x)/a.x,c=(o.top+f.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let t=W(l),e=i&&z(i)?W(i):i,n=t,r=tl(n);for(;r&&i&&e!==n;){let t=tu(r),e=r.getBoundingClientRect(),i=tn(r),o=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,l=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;s*=t.x,c*=t.y,d*=t.x,p*=t.y,s+=o,c+=l,r=tl(n=W(r))}}return _({width:d,height:p,x:s,y:c})}function tp(t,e){let n=ti(t).scrollLeft;return e?e.left+n:td(V(t)).left+n}function th(t,e){let n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-tp(t,n),y:n.top+e.scrollTop}}let tm=new Set(["absolute","fixed"]);function tg(t,e,n){var i;let r;if("viewport"===e)r=function(t,e){let n=W(t),i=V(t),r=n.visualViewport,o=i.clientWidth,l=i.clientHeight,a=0,f=0;if(r){o=r.width,l=r.height;let t=Z();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,f=r.offsetTop)}let u=tp(i);if(u<=0){let t=i.ownerDocument,e=t.body,n=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(i.clientWidth-e.clientWidth-r);l<=25&&(o-=l)}else u<=25&&(o+=u);return{width:o,height:l,x:a,y:f}}(t,n);else if("document"===e){let e,n,o,a,f,u,s;i=V(t),e=V(i),n=ti(i),o=i.ownerDocument.body,a=l(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),f=l(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+tp(i),s=-n.scrollTop,"rtl"===tn(o).direction&&(u+=l(e.clientWidth,o.clientWidth)-a),r={width:a,height:f,x:u,y:s}}else if(z(e)){let t,i,o,l,a,f;i=(t=td(e,!0,"fixed"===n)).top+e.clientTop,o=t.left+e.clientLeft,l=N(e)?tu(e):u(1),a=e.clientWidth*l.x,f=e.clientHeight*l.y,r={width:a,height:f,x:o*l.x,y:i*l.y}}else{let n=tc(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return _(r)}function tw(t){return"static"===tn(t).position}function ty(t,e){if(!N(t)||"fixed"===tn(t).position)return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function tv(t,e){var n;let i=W(t);if(X(t))return i;if(!N(t)){let e=tr(t);for(;e&&!te(e);){if(z(e)&&!tw(e))return e;e=tr(e)}return i}let r=ty(t,e);for(;r&&(n=r,$.has(M(n)))&&tw(r);)r=ty(r,e);return r&&te(r)&&tw(r)&&!Q(r)?i:r||function(t){let e=tr(t);for(;N(e)&&!te(e);){if(Q(e))return e;if(X(e))break;e=tr(e)}return null}(t)||i}let tx=async function(t){let e=this.getOffsetParent||tv,n=this.getDimensions,i=await n(t.floating);return{reference:function(t,e,n){let i=N(e),r=V(e),o="fixed"===n,l=td(t,!0,o,e),a={scrollLeft:0,scrollTop:0},f=u(0);if(i||!i&&!o)if(("body"!==M(e)||I(r))&&(a=ti(e)),i){let t=td(e,!0,o,e);f.x=t.x+e.clientLeft,f.y=t.y+e.clientTop}else r&&(f.x=tp(r));o&&!i&&r&&(f.x=tp(r));let s=!r||i||o?u(0):th(r,a);return{x:l.left+a.scrollLeft-f.x-s.x,y:l.top+a.scrollTop-f.y-s.y,width:l.width,height:l.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},tb={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t,o="fixed"===r,l=V(i),a=!!e&&X(e.floating);if(i===l||a&&o)return n;let f={scrollLeft:0,scrollTop:0},s=u(1),c=u(0),d=N(i);if((d||!d&&!o)&&(("body"!==M(i)||I(l))&&(f=ti(i)),N(i))){let t=td(i);s=tu(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}let p=!l||d||o?u(0):th(l,f);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-f.scrollLeft*s.x+c.x+p.x,y:n.y*s.y-f.scrollTop*s.y+c.y+p.y}},getDocumentElement:V,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t,a=[..."clippingAncestors"===n?X(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let i=to(t,[],!1).filter(t=>z(t)&&"body"!==M(t)),r=null,o="fixed"===tn(t).position,l=o?tr(t):t;for(;z(l)&&!te(l);){let e=tn(l),n=Q(l);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&!!r&&tm.has(r.position)||I(l)&&!n&&function t(e,n){let i=tr(e);return!(i===n||!z(i)||te(i))&&("fixed"===tn(i).position||t(i,n))}(t,l))?i=i.filter(t=>t!==l):r=e,l=tr(l)}return e.set(t,i),i}(e,this._c):[].concat(n),i],f=a[0],u=a.reduce((t,n)=>{let i=tg(e,n,r);return t.top=l(i.top,t.top),t.right=o(i.right,t.right),t.bottom=o(i.bottom,t.bottom),t.left=l(i.left,t.left),t},tg(e,f,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:tv,getElementRects:tx,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=ta(t);return{width:e,height:n}},getScale:tu,isElement:z,isRTL:function(t){return"rtl"===tn(t).direction}};function tR(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function tT(t,e,n,i){let r;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,p=tf(t),h=a||u?[...p?to(p):[],...to(e)]:[];h.forEach(t=>{a&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)});let m=p&&c?function(t,e){let n,i=null,r=V(t);function a(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return!function u(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),a();let d=t.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(s||e(),!m||!g)return;let w={rootMargin:-f(h)+"px "+-f(r.clientWidth-(p+m))+"px "+-f(r.clientHeight-(h+g))+"px "+-f(p)+"px",threshold:l(0,o(1,c))||1},y=!0;function v(e){let i=e[0].intersectionRatio;if(i!==c){if(!y)return u();i?u(!1,i):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==i||tR(d,t.getBoundingClientRect())||u(),y=!1}try{i=new IntersectionObserver(v,{...w,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(v,w)}i.observe(t)}(!0),a}(p,n):null,g=-1,w=null;s&&(w=new ResizeObserver(t=>{let[i]=t;i&&i.target===p&&w&&(w.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=w)||t.observe(e)})),n()}),p&&!d&&w.observe(p),w.observe(e));let y=d?td(t):null;return d&&function e(){let i=td(t);y&&!tR(y,i)&&n(),y=i,r=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{a&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=w)||t.disconnect(),w=null,d&&cancelAnimationFrame(r)}}let tA=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:r,rects:a,platform:f,elements:u,middlewareData:s}=e,{element:c,padding:p=0}=d(t,e)||{};if(null==c)return{};let w=S(p),v={x:n,y:i},x=m(y(r)),b=g(x),R=await f.getDimensions(c),T="y"===x,A=T?"clientHeight":"clientWidth",L=a.reference[b]+a.reference[x]-v[x]-a.floating[b],_=v[x]-a.reference[x],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(c)),E=C?C[A]:0;E&&await (null==f.isElement?void 0:f.isElement(C))||(E=u.floating[A]||a.floating[b]);let O=E/2-R[b]/2-1,P=o(w[T?"top":"left"],O),D=o(w[T?"bottom":"right"],O),k=E-R[b]-D,F=E/2-R[b]/2+(L/2-_/2),B=l(P,o(F,k)),H=!s.arrow&&null!=h(r)&&F!==B&&a.reference[b]/2-(F<P?P:D)-R[b]/2<0,M=H?F<P?F-P:F-k:0;return{[x]:v[x]+M,data:{[x]:B,centerOffset:F-B-M,...H&&{alignmentOffset:M}},reset:H}}});var tL="u">typeof document?e.useLayoutEffect:function(){};function tS(t,e){let n,i,r;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(i=n;0!=i--;)if(!tS(t[i],e[i]))return!1;return!0}if((n=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!t.$$typeof)&&!tS(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function t_(t){return"u"<typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function tC(t,e){let n=t_(t);return Math.round(e*n)/n}function tE(t){let n=e.useRef(t);return tL(()=>{n.current=t}),n}function tO(t){void 0===t&&(t={});let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:l,elements:{reference:a,floating:f}={},transform:u=!0,whileElementsMounted:s,open:c}=t,[d,p]=e.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[h,m]=e.useState(o);tS(h,o)||m(o);let[g,w]=e.useState(null),[y,v]=e.useState(null),x=e.useCallback(t=>{t!==A.current&&(A.current=t,w(t))},[]),b=e.useCallback(t=>{t!==L.current&&(L.current=t,v(t))},[]),R=a||g,T=f||y,A=e.useRef(null),L=e.useRef(null),S=e.useRef(d),_=null!=s,C=tE(s),O=tE(l),P=tE(c),D=e.useCallback(()=>{var t,e;let o,l,a;if(!A.current||!L.current)return;let f={placement:i,strategy:r,middleware:h};O.current&&(f.platform=O.current),(t=A.current,e=L.current,o=new Map,a={...(l={platform:tb,...f}).platform,_c:o},E(t,e,{...l,platform:a})).then(t=>{let e={...t,isPositioned:!1!==P.current};k.current&&!tS(S.current,e)&&(S.current=e,n.flushSync(()=>{p(e)}))})},[h,i,r,O,P]);tL(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,p(t=>({...t,isPositioned:!1})))},[c]);let k=e.useRef(!1);tL(()=>(k.current=!0,()=>{k.current=!1}),[]),tL(()=>{if(R&&(A.current=R),T&&(L.current=T),R&&T){if(C.current)return C.current(R,T,D);D()}},[R,T,D,C,_]);let F=e.useMemo(()=>({reference:A,floating:L,setReference:x,setFloating:b}),[x,b]),B=e.useMemo(()=>({reference:R,floating:T}),[R,T]),H=e.useMemo(()=>{let t={position:r,left:0,top:0};if(!B.floating)return t;let e=tC(B.floating,d.x),n=tC(B.floating,d.y);return u?{...t,transform:"translate("+e+"px, "+n+"px)",...t_(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:e,top:n}},[r,u,B.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:D,refs:F,elements:B,floatingStyles:H}),[d,D,F,B,H])}t.s(["a",0,(t,e)=>({name:"arrow",options:t,fn(e){let{element:n,padding:i}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tA({element:n.current,padding:i}).fn(e):{}:n?tA({element:n,padding:i}).fn(e):{}},options:[t,e]}),"b",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"size",options:n,async fn(t){var e,i;let r,a,{placement:f,rects:u,platform:s,elements:c}=t,{apply:m=()=>{},...g}=d(n,t),w=await O(t,g),v=p(f),x=h(f),b="y"===y(f),{width:R,height:T}=u.floating;"top"===v||"bottom"===v?(r=v,a=x===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(a=v,r="end"===x?"top":"bottom");let A=T-w.top-w.bottom,L=R-w.left-w.right,S=o(T-w[r],A),_=o(R-w[a],L),C=!t.middlewareData.shift,E=S,P=_;if(null!=(e=t.middlewareData.shift)&&e.enabled.x&&(P=L),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(E=A),C&&!x){let t=l(w.left,0),e=l(w.right,0),n=l(w.top,0),i=l(w.bottom,0);b?P=R-2*(0!==t||0!==e?t+e:l(w.left,w.right)):E=T-2*(0!==n||0!==i?n+i:l(w.top,w.bottom))}await m({...t,availableWidth:P,availableHeight:E});let D=await s.getDimensions(c.floating);return R!==D.width||T!==D.height?{reset:{rects:!0}}:{}}}),options:[t,e]}},"c",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"autoPlacement",options:n,async fn(t){var e,i,o,l;let{rects:a,middlewareData:f,placement:u,platform:s,elements:c}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:w=r,autoAlignment:y=!0,...b}=d(n,t),R=void 0!==g||w===r?((l=g||null)?[...w.filter(t=>h(t)===l),...w.filter(t=>h(t)!==l)]:w.filter(t=>p(t)===t)).filter(t=>!l||h(t)===l||!!y&&x(t)!==t):w,T=await O(t,b),A=(null==(e=f.autoPlacement)?void 0:e.index)||0,L=R[A];if(null==L)return{};let S=v(L,a,await (null==s.isRTL?void 0:s.isRTL(c.floating)));if(u!==L)return{reset:{placement:R[0]}};let _=[T[p(L)],T[S[0]],T[S[1]]],C=[...(null==(i=f.autoPlacement)?void 0:i.overflows)||[],{placement:L,overflows:_}],E=R[A+1];if(E)return{data:{index:A+1,overflows:C},reset:{placement:E}};let P=C.map(t=>{let e=h(t.placement);return[t.placement,e&&m?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),D=(null==(o=P.filter(t=>t[2].slice(0,h(t[0])?2:3).every(t=>t<=0))[0])?void 0:o[0])||P[0][0];return D!==u?{data:{index:A+1,overflows:C},reset:{placement:D}}:{}}}),options:[t,e]}},"d",0,tT,"f",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"flip",options:n,async fn(t){var e,i,r,o,l;let a,f,u,{placement:s,middlewareData:c,rects:m,initialPlacement:g,platform:w,elements:S}=t,{mainAxis:_=!0,crossAxis:C=!0,fallbackPlacements:E,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:k=!0,...F}=d(n,t);if(null!=(e=c.arrow)&&e.alignmentOffset)return{};let B=p(s),H=y(g),M=p(g)===g,W=await (null==w.isRTL?void 0:w.isRTL(S.floating)),V=E||(M||!k?[L(g)]:(a=L(g),[x(g),a,x(a)])),j="none"!==D;!E&&j&&V.push(...(f=h(g),u=function(t,e,n){switch(t){case"top":case"bottom":if(n)return e?R:b;return e?b:R;case"left":case"right":return e?T:A;default:return[]}}(p(g),"start"===D,W),f&&(u=u.map(t=>t+"-"+f),k&&(u=u.concat(u.map(x)))),u));let z=[g,...V],N=await O(t,F),U=[],K=(null==(i=c.flip)?void 0:i.overflows)||[];if(_&&U.push(N[B]),C){let t=v(s,m,W);U.push(N[t[0]],N[t[1]])}if(K=[...K,{placement:s,overflows:U}],!U.every(t=>t<=0)){let t=((null==(r=c.flip)?void 0:r.index)||0)+1,e=z[t];if(e&&("alignment"!==C||H===y(e)||K.every(t=>y(t.placement)!==H||t.overflows[0]>0)))return{data:{index:t,overflows:K},reset:{placement:e}};let n=null==(o=K.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(P){case"bestFit":{let t=null==(l=K.filter(t=>{if(j){let e=y(t.placement);return e===H||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:l[0];t&&(n=t);break}case"initialPlacement":n=g}if(s!==n)return{reset:{placement:n}}}return{}}}),options:[t,e]}},"h",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"hide",options:n,async fn(t){let{rects:e}=t,{strategy:i="referenceHidden",...r}=d(n,t);switch(i){case"referenceHidden":{let n=P(await O(t,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:D(n)}}}case"escaped":{let n=P(await O(t,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:n,escaped:D(n)}}}default:return{}}}}),options:[t,e]}},"i",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"inline",options:n,async fn(t){let{placement:e,elements:i,rects:r,platform:a,strategy:f}=t,{padding:u=2,x:s,y:c}=d(n,t),h=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(i.reference))||[]),m=function(t){let e=t.slice().sort((t,e)=>t.y-e.y),n=[],i=null;for(let t=0;t<e.length;t++){let r=e[t];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(t=>_(k(t)))}(h),g=_(k(h)),w=S(u),v=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=s&&null!=c)return m.find(t=>s>t.left-w.left&&s<t.right+w.right&&c>t.top-w.top&&c<t.bottom+w.bottom)||g;if(m.length>=2){if("y"===y(e)){let t=m[0],n=m[m.length-1],i="top"===p(e),r=t.top,o=n.bottom,l=i?t.left:n.left,a=i?t.right:n.right;return{top:r,bottom:o,left:l,right:a,width:a-l,height:o-r,x:l,y:r}}let t="left"===p(e),n=l(...m.map(t=>t.right)),i=o(...m.map(t=>t.left)),r=m.filter(e=>t?e.left===i:e.right===n),a=r[0].top,f=r[r.length-1].bottom;return{top:a,bottom:f,left:i,right:n,width:n-i,height:f-a,x:i,y:a}}return g}},floating:i.floating,strategy:f});return r.reference.x!==v.reference.x||r.reference.y!==v.reference.y||r.reference.width!==v.reference.width||r.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}),options:[t,e]}},"l",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{options:n,fn(t){let{x:e,y:i,placement:r,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=d(n,t),s={x:e,y:i},c=y(r),h=m(c),g=s[h],w=s[c],v=d(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(f){let t="y"===h?"height":"width",e=o.reference[h]-o.floating[t]+x.mainAxis,n=o.reference[h]+o.reference[t]-x.mainAxis;g<e?g=e:g>n&&(g=n)}if(u){var b,R;let t="y"===h?"width":"height",e=F.has(p(r)),n=o.reference[c]-o.floating[t]+(e&&(null==(b=l.offset)?void 0:b[c])||0)+(e?0:x.crossAxis),i=o.reference[c]+o.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[c])||0)-(e?x.crossAxis:0);w<n?w=n:w>i&&(w=i)}return{[h]:g,[c]:w}}}),options:[t,e]}},"o",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n=0),{name:"offset",options:n,async fn(t){var e,i;let{x:r,y:o,placement:l,middlewareData:a}=t,f=await B(t,n);return l===(null==(e=a.offset)?void 0:e.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+f.x,y:o+f.y,data:{...f,placement:l}}}}),options:[t,e]}},"s",0,(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"shift",options:n,async fn(t){let{x:e,y:i,placement:r}=t,{mainAxis:a=!0,crossAxis:f=!1,limiter:u={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=d(n,t),c={x:e,y:i},h=await O(t,s),g=y(p(r)),w=m(g),v=c[w],x=c[g];if(a){let t="y"===w?"top":"left",e="y"===w?"bottom":"right",n=v+h[t],i=v-h[e];v=l(n,o(v,i))}if(f){let t="y"===g?"top":"left",e="y"===g?"bottom":"right",n=x+h[t],i=x-h[e];x=l(n,o(x,i))}let b=u.fn({...t,[w]:v,[g]:x});return{...b,data:{x:b.x-e,y:b.y-i,enabled:{[w]:a,[g]:f}}}}}),options:[t,e]}},"u",0,tO],802877),t.s(["default",0,function(t){var n=t.placement,i=t.strategy,r=t.middleware,o=t.isFloaterVisible,l=void 0===o||o,a=t.shouldAutoUpdate,f=void 0!==a&&a,u=t.shouldUpdateOnAncestorResize,s=void 0===u||u,c=t.shouldUpdateOnAncestorScroll,d=void 0===c||c,p=t.shouldUpdateOnElementResize,h=void 0===p||p,m=tO({placement:n,strategy:i,middleware:r}),g=m.x,w=m.y,y=m.strategy,v=m.refs,x=m.update,b=m.middlewareData,R=m.placement;return(0,e.useEffect)(function(){if(l&&f&&v.reference.current&&v.floating.current)return tT(v.reference.current,v.floating.current,x,{ancestorResize:s,ancestorScroll:d,elementResize:h})},[v.reference,v.floating,x,l,f,s,d,h]),{floaterStyle:{top:"number"==typeof w?"".concat(w,"px"):void 0,left:"number"==typeof g?"".concat(g,"px"):void 0,position:y},triggerRef:v.setReference,floaterRef:v.setFloating,update:x,refs:v,middlewareData:b,resolvedPlacement:R}}],797725)},328544,(t,e,n)=>{e.exports=t.r(505243)},963041,t=>{"use strict";var e=t.i(260659),n=t.i(39120),i=t.i(825314),r=t.i(328544),o=t.i(895519),l=t.i(307629),a=t.i(976726),f=t.i(802877),u=t.i(16310),s=t.i(963787),c=t.i(550889),d=t.i(306367),p=t.i(797725),h=t.i(557258),m={"unit-base":"4",container:"web_ui__Tooltip__container",tooltip:"web_ui__Tooltip__tooltip","is-shown":"web_ui__Tooltip__is-shown",inline:"web_ui__Tooltip__inline",hoverable:"web_ui__Tooltip__hoverable",arrow:"web_ui__Tooltip__arrow"},g=a.c.bind(m),w=(0,o.default)(function(t){var o,a,w,y=t.children,v=t.placement,x=void 0===v?"top":v,b=t.content,R=t.hover,T=void 0===R||R,A=t.show,L=t.duration,S=void 0===L?1e3:L,_=t.onClick,C=void 0===_?function(){}:_,E=t.id,O=t.aria,P=t.testId,D=t.display,k=t.strategy,F=t.shiftOptions,B=t.shouldAutoUpdate,H=(0,l.useState)(!1),M=(0,i.default)(H,2),W=M[0],V=M[1],j=(0,l.useRef)(null),z="inline"===(void 0===D?"block":D),N=A||!T,U=A||T,K=(0,r.default)(o=[z?(0,f.i)():void 0,(0,f.o)(d.spacing.medium),F?(0,f.s)({mainAxis:null==(a=F.mainAxis)||a,crossAxis:null==(w=F.crossAxis)||w,padding:d.spacing.small,limiter:(0,f.l)(),rootBoundary:"viewport",elementContext:"floating",altBoundary:!1}):void 0,(0,f.a)({element:j,padding:d.spacing.large})]).call(o,function(t){return!!t}),I=(0,p.default)({placement:x,middleware:K,shouldAutoUpdate:void 0!==B&&B,strategy:void 0===k?"absolute":k}),$=I.triggerRef,q=I.floaterRef,X=I.floaterStyle,Y=I.middlewareData.arrow,G=void 0===Y?{}:Y,J=G.x,Q=G.y;(0,l.useEffect)(function(){if(S&&!U&&W){var t=setTimeout(function(){V(!1)},S);return function(){return clearTimeout(t)}}},[S,U,W]);var Z=function(){N||V(!1)},tt=g(m.container,{hoverable:T,inline:z}),te=g(m.tooltip,{"is-shown":null!=A?A:W}),tn={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]],ti=(0,n.default)({left:null==J?"":"".concat(J,"px"),top:null==Q?"":"".concat(Q,"px")},tn,"-4px");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",(0,e.default)((0,e.default)({role:"presentation",className:tt,onClick:function(t){U||V(!W),C(t)},onKeyDown:function(t){return(0,u.onA11yKeyDown)(t,{keys:c.KeyboardKey.Escape},Z)},onFocus:function(){N||V(!0)},onBlur:Z,"data-testid":P,ref:$},O),{},{children:y})),(0,h.jsxs)("div",(0,e.default)((0,e.default)({role:"tooltip",id:E,className:te,"data-testid":(0,s.getTestId)(P,"content"),ref:q,style:X},!(null!=A?A:W)&&{"aria-hidden":!0}),{},{children:[b,(0,h.jsx)("div",{className:m.arrow,ref:j,style:ti})]}))]})},{Placement:{Top:"top",TopLeft:"top-start",TopRight:"top-end",Left:"left",Right:"right",Bottom:"bottom",BottomLeft:"bottom-start",BottomRight:"bottom-end"}});t.s(["Tooltip",0,w])}]);