1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,267775,229315,27788,258950,543489,e=>{"use strict";var t=e.i(271645),n=e.i(795991);function r(){return"u">typeof window}function o(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function a(e){return!(!r()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}e.s(["getSingleElementChild",0,function(e){let r=t.Children.toArray(e);return 1===r.length&&(0,n.isElement)(r[0])?r[0]:null}],267775),e.i(247167);let f=new Set(["inline","contents"]);function d(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!f.has(o)}let m=new Set(["table","td","th"]);function p(e){return m.has(o(e))}let v=[":popover-open",":modal"];function h(e){return v.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let g=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],w=["paint","layout","strict","content"];function b(e){let t=E(),n=c(e)?C(e):e;return g.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||y.some(e=>(n.willChange||"").includes(e))||w.some(e=>(n.contain||"").includes(e))}function x(e){let t=P(e);for(;s(t)&&!L(t);){if(b(t))return t;if(h(t))break;t=P(t)}return null}function E(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let R=new Set(["html","body","#document"]);function L(e){return R.has(o(e))}function C(e){return i(e).getComputedStyle(e)}function T(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function P(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||a(e)&&e.host||l(e);return a(t)?t.host:t}function M(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=P(t);return L(n)?t.ownerDocument?t.ownerDocument.body:t.body:s(n)&&d(n)?n:e(n)}(e),l=o===(null==(r=e.ownerDocument)?void 0:r.body),u=i(o);if(l){let e=A(u);return t.concat(u,u.visualViewport||[],d(o)?o:[],e&&n?M(e):[])}return t.concat(o,M(o,[],n))}function A(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,C,"getContainingBlock",0,x,"getDocumentElement",0,l,"getFrameElement",0,A,"getNodeName",0,o,"getNodeScroll",0,T,"getOverflowAncestors",0,M,"getParentNode",0,P,"getWindow",0,i,"isContainingBlock",0,b,"isElement",0,c,"isHTMLElement",0,s,"isLastTraversableNode",0,L,"isNode",0,u,"isOverflowElement",0,d,"isShadowRoot",0,a,"isTableElement",0,p,"isTopLayer",0,h,"isWebKit",0,E],229315);let k=["top","right","bottom","left"],S=k.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),D=Math.min,O=Math.max,I=Math.round,F=Math.floor,W=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},B={start:"end",end:"start"};function N(e,t){return"function"==typeof e?e(t):e}function _(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function K(e){return"x"===e?"y":"x"}function j(e){return"y"===e?"height":"width"}let z=new Set(["top","bottom"]);function X(e){return z.has(_(e))?"y":"x"}function Y(e,t,n){void 0===n&&(n=!1);let r=V(e),o=K(X(e)),i=j(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Q(l)),[l,Q(l)]}function q(e){return e.replace(/start|end/g,e=>B[e])}let U=["left","right"],$=["right","left"],G=["top","bottom"],J=["bottom","top"];function Q(e){return e.replace(/left|right|bottom|top/g,e=>H[e])}function Z(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function ee(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var et="u"<typeof Element;et||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,et||Element.prototype.getRootNode;let en="data-floating-ui-focusable";function er(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function eo(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
1if(n&&a(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ei(e){return"composedPath"in e?e.composedPath()[0]:e.target}function el(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function eu(e){return(null==e?void 0:e.ownerDocument)||document}function ec(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...ec(e,t.id,n)])}function es(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var ea="u">typeof document?t.useLayoutEffect:function(){};function ef(e){let n=t.useRef(e);return ea(()=>{n.current=e}),n}let ed={...t}.useInsertionEffect||(e=>e());function em(e){let n=t.useRef(()=>{});return ed(()=>{n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)},[])}var ep=e.i(843476),ev=e.i(174080);function eh(e,t,n){let r,{reference:o,floating:i}=e,l=X(t),u=K(X(t)),c=j(u),s=_(t),a="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(V(t)){case"start":r[u]-=m*(n&&a?-1:1);break;case"end":r[u]+=m*(n&&a?-1:1)}return r}let eg=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),c=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:f}=eh(s,r,c),d=r,m={},p=0;for(let n=0;n<u.length;n++){let{name:i,fn:v}=u[n],{x:h,y:g,data:y,reset:w}=await v({x:a,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:l,elements:{reference:e,floating:t}});a=null!=h?h:a,f=null!=g?g:f,m={...m,[i]:{...m[i],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:a,y:f}=eh(s,d,c)),n=-1)}return{x:a,y:f,placement:d,strategy:o,middlewareData:m}};async function ey(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:u,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:a="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=N(t,e),p=Z(m),v=u[d?"floating"===f?"reference":"floating":f],h=ee(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:s,rootBoundary:a,strategy:c})),g="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=ee(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:g,offsetParent:y,strategy:c}):g);return{top:(h.top-b.top+p.top)/w.y,bottom:(b.bottom-h.bottom+p.bottom)/w.y,left:(h.left-b.left+p.left)/w.x,right:(b.right-h.right+p.right)/w.x}}function ew(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eb(e){return k.some(t=>e[t]>=0)}function ex(e){let t=D(...e.map(e=>e.left)),n=D(...e.map(e=>e.top));return{x:t,y:n,width:O(...e.map(e=>e.right))-t,height:O(...e.map(e=>e.bottom))-n}}let eE=new Set(["left","top"]);async function eR(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=_(n),u=V(n),c="y"===X(n),s=eE.has(l)?-1:1,a=i&&c?-1:1,f=N(t,e),{mainAxis:d,crossAxis:m,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof p&&(m="end"===u?-1*p:p),c?{x:m*a,y:d*s}:{x:d*s,y:m*a}}function eL(e){let t=C(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=s(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=I(n)!==i||I(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function eC(e){return c(e)?e:e.contextElement}function eT(e){let t=eC(e);if(!s(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eL(t),l=(i?I(n.width):n.width)/r,u=(i?I(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let eP=W(0);function eM(e){let t=i(e);
1return E()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eP}function eA(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),u=eC(e),s=W(1);t&&(r?c(r)&&(s=eT(r)):s=eT(e));let a=(void 0===(o=n)&&(o=!1),r&&(!o||r===i(u))&&o)?eM(u):W(0),f=(l.left+a.x)/s.x,d=(l.top+a.y)/s.y,m=l.width/s.x,p=l.height/s.y;if(u){let e=i(u),t=r&&c(r)?i(r):r,n=e,o=A(n);for(;o&&r&&t!==n;){let e=eT(o),t=o.getBoundingClientRect(),r=C(o),l=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,u=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,d*=e.y,m*=e.x,p*=e.y,f+=l,d+=u,o=A(n=i(o))}}return ee({width:m,height:p,x:f,y:d})}function ek(e,t){let n=T(e).scrollLeft;return t?t.left+n:eA(l(e)).left+n}function eS(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ek(e,n),y:n.top+t.scrollTop}}let eD=new Set(["absolute","fixed"]);function eO(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=i(e),r=l(e),o=n.visualViewport,u=r.clientWidth,c=r.clientHeight,s=0,a=0;if(o){u=o.width,c=o.height;let e=E();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,a=o.offsetTop)}let f=ek(r);if(f<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(u-=i)}else f<=25&&(u+=f);return{width:u,height:c,x:s,y:a}}(e,n);else if("document"===t){let t,n,i,u,c,s,a;r=l(e),t=l(r),n=T(r),i=r.ownerDocument.body,u=O(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),c=O(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+ek(r),a=-n.scrollTop,"rtl"===C(i).direction&&(s+=O(t.clientWidth,i.clientWidth)-u),o={width:u,height:c,x:s,y:a}}else if(c(t)){let e,r,i,l,u,c;r=(e=eA(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=s(t)?eT(t):W(1),u=t.clientWidth*l.x,c=t.clientHeight*l.y,o={width:u,height:c,x:i*l.x,y:r*l.y}}else{let n=eM(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ee(o)}function eI(e){return"static"===C(e).position}function eF(e,t){if(!s(e)||"fixed"===C(e).position)return null;if(t)return t(e);let n=e.offsetParent;return l(e)===n&&(n=n.ownerDocument.body),n}function eW(e,t){let n=i(e);if(h(e))return n;if(!s(e)){let t=P(e);for(;t&&!L(t);){if(c(t)&&!eI(t))return t;t=P(t)}return n}let r=eF(e,t);for(;r&&p(r)&&eI(r);)r=eF(r,t);return r&&L(r)&&eI(r)&&!b(r)?n:r||x(e)||n}let eH=async function(e){let t=this.getOffsetParent||eW,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=s(t),i=l(t),u="fixed"===n,c=eA(e,!0,u,t),a={scrollLeft:0,scrollTop:0},f=W(0);if(r||!r&&!u)if(("body"!==o(t)||d(i))&&(a=T(t)),r){let e=eA(t,!0,u,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else i&&(f.x=ek(i));u&&!r&&i&&(f.x=ek(i));let m=!i||r||u?W(0):eS(i,a);return{x:c.left+a.scrollLeft-f.x-m.x,y:c.top+a.scrollTop-f.y-m.y,width:c.width,height:c.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eB={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,u="fixed"===i,c=l(r),a=!!t&&h(t.floating);if(r===c||a&&u)return n;let f={scrollLeft:0,scrollTop:0},m=W(1),p=W(0),v=s(r);if((v||!v&&!u)&&(("body"!==o(r)||d(c))&&(f=T(r)),s(r))){let e=eA(r);m=eT(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}let g=!c||v||u?W(0):eS(c,f);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+p.x+g.x,y:n.y*m.y-f.scrollTop*m.y+p.y+g.y}},getDocumentElement:l,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,l=[..."clippingAncestors"===n?h(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=M(e,[],!1).filter(e=>c(e)&&"body"!==o(e)),i=null,l="fixed"===C(e).position,u=l?P(e):e;for(;c(u)&&!L(u);){let t=C(u),n=b(u);n||"fixed"!==t.position||(i=null),(l?!n&&!i:!n&&"static"===t.position&&!!i&&eD.has(i.position)||d(u)&&!n&&function e(t,n){let r=P(t);return!(r===n||!c(r)||L(r))&&("fixed"===C(r).position||e(r,n))}(e,u))?r=r.filter(e=>e!==u):i=t,u=P(u)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=l[0],s=l.reduce((e,n)=>{let r=eO(t,n,i);
1return e.top=O(r.top,e.top),e.right=D(r.right,e.right),e.bottom=D(r.bottom,e.bottom),e.left=O(r.left,e.left),e},eO(t,u,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eW,getElementRects:eH,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eL(e);return{width:t,height:n}},getScale:eT,isElement:c,isRTL:function(e){return"rtl"===C(e).direction}};function eN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let e_=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:u}=t,c=await eR(t,e);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:l}}}}},eV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=N(e,t),s={x:n,y:r},a=await ey(t,c),f=X(_(o)),d=K(f),m=s[d],p=s[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+a[e],r=m-a[t];m=O(n,D(m,r))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+a[e],r=p-a[t];p=O(n,D(p,r))}let v=u.fn({...t,[d]:m,[f]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:i,[f]:l}}}}}},eK=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;
1let u,c,s,{placement:a,middlewareData:f,rects:d,initialPlacement:m,platform:p,elements:v}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...E}=N(e,t);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let R=_(a),L=X(m),C=_(m)===m,T=await (null==p.isRTL?void 0:p.isRTL(v.floating)),P=y||(C||!x?[Q(m)]:(u=Q(m),[q(m),u,q(u)])),M="none"!==b;!y&&M&&P.push(...(c=V(m),s=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?$:U;return t?U:$;case"left":case"right":return t?G:J;default:return[]}}(_(m),"start"===b,T),c&&(s=s.map(e=>e+"-"+c),x&&(s=s.concat(s.map(q)))),s));let A=[m,...P],k=await ey(t,E),S=[],D=(null==(r=f.flip)?void 0:r.overflows)||[];if(h&&S.push(k[R]),g){let e=Y(a,d,T);S.push(k[e[0]],k[e[1]])}if(D=[...D,{placement:a,overflows:S}],!S.every(e=>e<=0)){let e=((null==(o=f.flip)?void 0:o.index)||0)+1,t=A[e];if(t&&("alignment"!==g||L===X(t)||D.every(e=>X(e.placement)!==L||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(i=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(w){case"bestFit":{let e=null==(l=D.filter(e=>{if(M){let t=X(e.placement);return t===L||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=m}if(a!==n)return{reset:{placement:n}}}return{}}}},ej=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:u,platform:c,elements:s}=t,{apply:a=()=>{},...f}=N(e,t),d=await ey(t,f),m=_(l),p=V(l),v="y"===X(l),{width:h,height:g}=u.floating;"top"===m||"bottom"===m?(o=m,i=p===(await (null==c.isRTL?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(i=m,o="end"===p?"top":"bottom");let y=g-d.top-d.bottom,w=h-d.left-d.right,b=D(g-d[o],y),x=D(h-d[i],w),E=!t.middlewareData.shift,R=b,L=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(L=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(R=y),E&&!p){let e=O(d.left,0),t=O(d.right,0),n=O(d.top,0),r=O(d.bottom,0);v?L=h-2*(0!==e||0!==t?e+t:O(d.left,d.right)):R=g-2*(0!==n||0!==r?n+r:O(d.top,d.bottom))}await a({...t,availableWidth:L,availableHeight:R});let C=await c.getDimensions(s.floating);return h!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}},ez=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=N(e,t);switch(r){case"referenceHidden":{let e=ew(await ey(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:eb(e)}}}case"escaped":{let e=ew(await ey(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:eb(e)}}}default:return{}}}}},eX=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:u,middlewareData:c}=t,{element:s,padding:a=0}=N(e,t)||{};if(null==s)return{};let f=Z(a),d={x:n,y:r},m=K(X(o)),p=j(m),v=await l.getDimensions(s),h="y"===m,g=h?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[m]-d[m]-i.floating[p],w=d[m]-i.reference[m],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),x=b?b[g]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=u.floating[g]||i.floating[p]);let E=x/2-v[p]/2-1,R=D(f[h?"top":"left"],E),L=D(f[h?"bottom":"right"],E),C=x-v[p]-L,T=x/2-v[p]/2+(y/2-w/2),P=O(R,D(T,C)),M=!c.arrow&&null!=V(o)&&T!==P&&i.reference[p]/2-(T<R?R:L)-v[p]/2<0,A=M?T<R?T-R:T-C:0;return{[m]:d[m]+A,data:{[m]:P,centerOffset:T-P-A,...M&&{alignmentOffset:A}},reset:M}}}),eY=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:o,platform:i,strategy:l}=t,{padding:u=2,x:c,y:s}=N(e,t),a=Array.from(await (null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),f=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>ee(ex(e)))}(a),d=ee(ex(a)),m=Z(u),p=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=c&&null!=s)return f.find(e=>c>e.left-m.left&&c<e.right+m.right&&s>e.top-m.top&&s<e.bottom+m.bottom)||d;if(f.length>=2){if("y"===X(n)){let e=f[0],t=f[f.length-1],r="top"===_(n),o=e.top,i=t.bottom,l=r?e.left:t.left,u=r?e.right:t.right;return{top:o,bottom:i,left:l,right:u,width:u-l,height:i-o,x:l,y:o}}
1let e="left"===_(n),t=O(...f.map(e=>e.right)),r=D(...f.map(e=>e.left)),o=f.filter(n=>e?n.left===r:n.right===t),i=o[0].top,l=o[o.length-1].bottom;return{top:i,bottom:l,left:r,right:t,width:t-r,height:l-i,x:r,y:i}}return d}},floating:r.floating,strategy:l});return o.reference.x!==p.reference.x||o.reference.y!==p.reference.y||o.reference.width!==p.reference.width||o.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},eq=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:s=!0}=N(e,t),a={x:n,y:r},f=X(o),d=K(f),m=a[d],p=a[f],v=N(u,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,n=i.reference[d]+i.reference[e]-h.mainAxis;m<t?m=t:m>n&&(m=n)}if(s){var g,y;let e="y"===d?"width":"height",t=eE.has(_(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[f])||0)-(t?h.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[d]:m,[f]:p}}}},eU=(e,t,n)=>{let r=new Map,o={platform:eB,...n},i={...o.platform,_c:r};return eg(e,t,{...o,platform:i})};e.s(["arrow",0,eX,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o,i;let{rects:l,middlewareData:u,placement:c,platform:s,elements:a}=t,{crossAxis:f=!1,alignment:d,allowedPlacements:m=S,autoAlignment:p=!0,...v}=N(e,t),h=void 0!==d||m===S?((i=d||null)?[...m.filter(e=>V(e)===i),...m.filter(e=>V(e)!==i)]:m.filter(e=>_(e)===e)).filter(e=>!i||V(e)===i||!!p&&q(e)!==e):m,g=await ey(t,v),y=(null==(n=u.autoPlacement)?void 0:n.index)||0,w=h[y];if(null==w)return{};let b=Y(w,l,await (null==s.isRTL?void 0:s.isRTL(a.floating)));if(c!==w)return{reset:{placement:h[0]}};let x=[g[_(w)],g[b[0]],g[b[1]]],E=[...(null==(r=u.autoPlacement)?void 0:r.overflows)||[],{placement:w,overflows:x}],R=h[y+1];if(R)return{data:{index:y+1,overflows:E},reset:{placement:R}};let L=E.map(e=>{let t=V(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(o=L.filter(e=>e[2].slice(0,V(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||L[0][0];return C!==c?{data:{index:y+1,overflows:E},reset:{placement:C}}:{}}}},"autoUpdate",0,function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=r,f=eC(e),d=i||u?[...f?M(f):[],...M(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=f&&s?function(e,t){let n,r=null,o=l(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),i();let s=e.getBoundingClientRect(),{left:a,top:f,width:d,height:m}=s;if(u||t(),!d||!m)return;let p={rootMargin:-F(f)+"px "+-F(o.clientWidth-(a+d))+"px "+-F(o.clientHeight-(f+m))+"px "+-F(a)+"px",threshold:O(0,D(1,c))||1},v=!0;function h(t){let r=t[0].intersectionRatio;if(r!==c){if(!v)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eN(s,e.getBoundingClientRect())||l(),v=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(f,n):null,p=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),f&&!a&&v.observe(f),v.observe(t));let h=a?eA(e):null;return a&&function t(){let r=eA(e);h&&!eN(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,a&&cancelAnimationFrame(o)}},"computePosition",0,eU,"detectOverflow",0,ey,"flip",0,eK,"hide",0,ez,"inline",0,eY,"limitShift",0,eq,"offset",0,e_,"shift",0,eV,"size",0,ej],27788);var e$="u">typeof document?t.useLayoutEffect:function(){};function eG(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eG(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eG(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eJ(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eQ(e,t){let n=eJ(e);return Math.round(t*n)/n}function eZ(e){let n=t.useRef(e);return e$(()=>{n.current=e}),n}function e0(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:s,open:a}=e,[f,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,p]=t.useState(o);eG(m,o)||p(o);let[v,h]=t.useState(null),[g,y]=t.useState(null),w=t.useCallback(e=>{e!==R.current&&(R.current=e,h(e))},[]),b=t.useCallback(e=>{e!==L.current&&(L.current=e,y(e))},[]),x=l||v,E=u||g,R=t.useRef(null),L=t.useRef(null),C=t.useRef(f),T=null!=s,P=eZ(s),M=eZ(i),A=eZ(a),k=t.useCallback(()=>{if(!R.current||!L.current)return;let e={placement:n,strategy:r,middleware:m};M.current&&(e.platform=M.current),eU(R.current,L.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};S.current&&!eG(C.current,t)&&(C.current=t,ev.flushSync(()=>{d(t)}))})},[m,n,r,M,A]);e$(()=>{!1===a&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[a]);let S=t.useRef(!1);e$(()=>(S.current=!0,()=>{S.current=!1}),[]),e$(()=>{if(x&&(R.current=x),E&&(L.current=E),x&&E){if(P.current)return P.current(x,E,k);k()}},[x,E,k,P,T]);let D=t.useMemo(()=>({reference:R,floating:L,setReference:w,setFloating:b}),[w,b]),O=t.useMemo(()=>({reference:x,floating:E}),[x,E]),I=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=eQ(O.floating,f.x),n=eQ(O.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...eJ(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,O.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:k,refs:D,elements:O,floatingStyles:I}),[f,k,D,O,I])}e.s(["arrow",0,(e,t)=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eX({element:n.current,padding:r}).fn(t):{}:n?eX({element:n,padding:r}).fn(t):{}},options:[e,t]}),"flip",0,(e,t)=>({...eK(e),options:[e,t]}),"hide",0,(e,t)=>({...ez(e),options:[e,t]}),"inline",0,(e,t)=>({...eY(e),options:[e,t]}),"limitShift",0,(e,t)=>({...eq(e),options:[e,t]}),"offset",0,(e,t)=>({...e_(e),options:[e,t]}),"shift",0,(e,t)=>({...eV(e),options:[e,t]}),"size",0,(e,t)=>({...ej(e),options:[e,t]}),"useFloating",0,e0],258950);let e1="active",e2="selected",e5={...t},e7=!1,e8=0,e4=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+e8++,e9=e5.useId||function(){let[e,n]=t.useState(()=>e7?e4():void 0);return ea(()=>{null==e&&n(e4())},[]),t.useEffect(()=>{e7=!0},[]),e},e3=t.createContext(null),e6=t.createContext(null),te=()=>{var e;return(null==(e=t.useContext(e3))?void 0:e.id)||null};function tt(e){return"data-floating-ui-"+e}function tn(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let tr=tt("safe-polygon");function to(e,t,n){if(n&&!es(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function ti(e){return"function"==typeof e?e():e}let tl=()=>{},tu=t.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:tl,setState:tl,isInstantPhase:!1}),tc={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ts={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ta=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function tf(){let e;return(null!=(e=navigator.userAgentData)&&e.platform?e.platform:navigator.platform).toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&/apple/i.test(navigator.vendor)}function td(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[e1]:t,[e2]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[e1,e2].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}let tm=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);e.s(["FloatingDelayGroup",0,function(e){let{children:n,delay:r,timeoutMs:o=0}=e,[i,l]=t.useReducer((e,t)=>({...e,...t}),{delay:r,timeoutMs:o,initialDelay:r,currentId:null,isInstantPhase:!1}),u=t.useRef(null),c=t.useCallback(e=>{l({currentId:e})},[]);return ea(()=>{i.currentId?null===u.current?u.current=i.currentId:i.isInstantPhase||l({isInstantPhase:!0}):(i.isInstantPhase&&l({isInstantPhase:!1}),u.current=null)},[i.currentId,i.isInstantPhase]),(0,ep.jsx)(tu.Provider,{value:t.useMemo(()=>({...i,setState:l,setCurrentId:c}),[i,c]),children:n})},"useDelayGroup",0,function(e,n){void 0===n&&(n={});let{open:r,onOpenChange:o,floatingId:i}=e,{id:l,enabled:u=!0}=n,c=null!=l?l:i,s=t.useContext(tu),{currentId:a,setCurrentId:f,initialDelay:d,setState:m,timeoutMs:p}=s;return ea(()=>{!u||a&&(m({delay:{open:1,close:to(d,"close")}}),a!==c&&o(!1))},[u,c,o,m,a,d]),ea(()=>{function e(){o(!1),m({delay:d,currentId:null})}if(u&&a&&!r&&a===c){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[u,r,m,a,c,o,d,p]),ea(()=>{!u||f!==tl&&r&&f(c)},[u,r,f,c]),s},"useDismiss",0,function(e,n){void 0===n&&(n={});let{open:r,onOpenChange:o,elements:i,dataRef:l}=e,{enabled:u=!0,escapeKey:a=!0,outsidePress:f=!0,outsidePressEvent:d="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:v=!1,bubbles:h,capture:g}=n,y=t.useContext(e6),w=em("function"==typeof f?f:()=>!1),b="function"==typeof f?w:f,x=t.useRef(!1),{escapeKey:R,outsidePress:T}=ta(h),{escapeKey:A,outsidePress:k}=ta(g),S=t.useRef(!1),D=em(e=>{var t;if(!r||!u||!a||"Escape"!==e.key||S.current)return;let n=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=y?ec(y.nodesRef.current,n):[];if(!R&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}o(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),O=em(e=>{var t;let n=()=>{var t;D(e),null==(t=ei(e))||t.removeEventListener("keydown",n)};null==(t=ei(e))||t.addEventListener("keydown",n)}),I=em(e=>{var t;let n=l.current.insideReactTree;l.current.insideReactTree=!1;let r=x.current;if(x.current=!1,"click"===d&&r||n||"function"==typeof b&&!b(e))return;let u=ei(e),a="["+tt("inert")+"]",f=eu(i.floating).querySelectorAll(a),m=c(u)?u:null;for(;m&&!L(m);){let e=P(m);if(L(e)||!c(e))break;m=e}if(f.length&&c(u)&&!u.matches("html,body")&&!eo(u,i.floating)&&Array.from(f).every(e=>!eo(m,e)))return;if(s(u)&&H){let t=L(u),n=C(u),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,c=i&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,s="rtl"===n.direction,a=c&&(s?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),f=l&&e.offsetY>u.clientHeight;if(a||f)return}let p=null==(t=l.current.floatingContext)?void 0:t.nodeId,v=y&&ec(y.nodesRef.current,p).some(t=>{var n;return el(e,null==(n=t.context)?void 0:n.elements.floating)});if(el(e,i.floating)||el(e,i.domReference)||v)return;let h=y?ec(y.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}o(!1,e,"outside-press")}),F=em(e=>{var t;let n=()=>{var t;I(e),null==(t=ei(e))||t.removeEventListener(d,n)};null==(t=ei(e))||t.addEventListener(d,n)});t.useEffect(()=>{if(!r||!u)return;l.current.__escapeKeyBubbles=R,l.current.__outsidePressBubbles=T;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),S.current=!0}function s(){e=window.setTimeout(()=>{S.current=!1},5*!!E())}let f=eu(i.floating);a&&(f.addEventListener("keydown",A?O:D,A),f.addEventListener("compositionstart",n),f.addEventListener("compositionend",s)),b&&f.addEventListener(d,k?F:I,k);let m=[];return v&&(c(i.domReference)&&(m=M(i.domReference)),c(i.floating)&&(m=m.concat(M(i.floating))),!c(i.reference)&&i.reference&&i.reference.contextElement&&(m=m.concat(M(i.reference.contextElement)))),(m=m.filter(e=>{var t;
1return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(f.removeEventListener("keydown",A?O:D,A),f.removeEventListener("compositionstart",n),f.removeEventListener("compositionend",s)),b&&f.removeEventListener(d,k?F:I,k),m.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,i,a,b,d,r,o,v,u,R,T,D,A,O,I,k,F]),t.useEffect(()=>{l.current.insideReactTree=!1},[l,b,d]);let W=t.useMemo(()=>({onKeyDown:D,...m&&{[tc[p]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}}),[D,o,m,p]),H=t.useMemo(()=>({onKeyDown:D,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[ts[d]]:()=>{l.current.insideReactTree=!0}}),[D,d,l]);return t.useMemo(()=>u?{reference:W,floating:H}:{},[u,W,H])},"useFloating",0,function(e){void 0===e&&(e={});let{nodeId:n}=e,r=function(e){let{open:n=!1,onOpenChange:r,elements:o}=e,i=e9(),l=t.useRef({}),[u]=t.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}),c=null!=te(),[s,a]=t.useState(o.reference),f=em((e,t,n)=>{l.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)}),d=t.useMemo(()=>({setPositionReference:a}),[]),m=t.useMemo(()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference}),[s,o.reference,o.floating]);return t.useMemo(()=>({dataRef:l,open:n,onOpenChange:f,elements:m,events:u,floatingId:i,refs:d}),[n,f,m,u,i,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,i=o.elements,[l,u]=t.useState(null),[s,a]=t.useState(null),f=(null==i?void 0:i.domReference)||l,d=t.useRef(null),m=t.useContext(e6);ea(()=>{f&&(d.current=f)},[f]);let p=e0({...e,elements:{...i,...s&&{reference:s}}}),v=t.useCallback(e=>{let t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),p.refs.setReference(t)},[p.refs]),h=t.useCallback(e=>{(c(e)||null===e)&&(d.current=e,u(e)),(c(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!c(e))&&p.refs.setReference(e)},[p.refs]),g=t.useMemo(()=>({...p.refs,setReference:h,setPositionReference:v,domReference:d}),[p.refs,h,v]),y=t.useMemo(()=>({...p.elements,domReference:f}),[p.elements,f]),w=t.useMemo(()=>({...p,...o,refs:g,elements:y,nodeId:n}),[p,g,y,n,o]);return ea(()=>{o.dataRef.current.floatingContext=w;let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===n);e&&(e.context=w)}),t.useMemo(()=>({...p,context:w,refs:g,elements:y}),[p,g,y,w])},"useFocus",0,function(e,n){void 0===n&&(n={});let{open:r,onOpenChange:o,events:l,dataRef:u,elements:a}=e,{enabled:f=!0,visibleOnly:d=!0}=n,m=t.useRef(!1),p=t.useRef(-1),v=t.useRef(!0);t.useEffect(()=>{if(!f)return;let e=i(a.domReference);function t(){!r&&s(a.domReference)&&a.domReference===er(eu(a.domReference))&&(m.current=!0)}function n(){v.current=!0}function o(){v.current=!1}return e.addEventListener("blur",t),tf()&&(e.addEventListener("keydown",n,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),tf()&&(e.removeEventListener("keydown",n,!0),e.removeEventListener("pointerdown",o,!0))}},[a.domReference,r,f]),t.useEffect(()=>{if(f)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(m.current=!0)}},[l,f]),t.useEffect(()=>()=>{tn(p)},[]);let h=t.useMemo(()=>({onMouseLeave(){m.current=!1},onFocus(e){if(m.current)return;let t=ei(e.nativeEvent);if(d&&c(t)){if(tf()&&!e.relatedTarget){if(!v.current&&!(s(t)&&t.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")))return}else if(!function(e){let t;if(!e||((t=navigator.userAgentData)&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent).includes("jsdom/"))return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){m.current=!1;let t=e.relatedTarget,n=e.nativeEvent,r=c(t)&&t.hasAttribute(tt("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout(()=>{var e;let i=er(a.domReference?a.domReference.ownerDocument:document);!t&&i===a.domReference||eo(null==(e=u.current.floatingContext)?void 0:e.refs.floating.current,i)||eo(a.domReference,i)||r||o(!1,n,"focus")})}}),[u,a.domReference,o,d]);return t.useMemo(()=>f?{reference:h}:{},[f,h])},"useHover",0,function(e,n){void 0===n&&(n={});let{open:r,onOpenChange:o,dataRef:i,events:l,elements:u}=e,{enabled:s=!0,delay:a=0,handleClose:f=null,mouseOnly:d=!1,restMs:m=0,move:p=!0}
1=n,v=t.useContext(e6),h=te(),g=ef(f),y=ef(a),w=ef(r),b=ef(m),x=t.useRef(),E=t.useRef(-1),R=t.useRef(),L=t.useRef(-1),C=t.useRef(!0),T=t.useRef(!1),P=t.useRef(()=>{}),M=t.useRef(!1),A=em(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});t.useEffect(()=>{if(s)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(tn(E),tn(L),C.current=!0,M.current=!1)}},[s,l]),t.useEffect(()=>{if(!s||!g.current||!r)return;function e(e){A()&&o(!1,e,"hover")}let t=eu(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,r,o,s,g,A]);let k=t.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let r=to(y.current,"close",x.current);r&&!R.current?(tn(E),E.current=window.setTimeout(()=>o(!1,e,n),r)):t&&(tn(E),o(!1,e,n))},[y,o]),S=em(()=>{P.current(),R.current=void 0}),D=em(()=>{if(T.current){let e=eu(u.floating).body;e.style.pointerEvents="",e.removeAttribute(tr),T.current=!1}}),O=em(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));t.useEffect(()=>{if(s&&c(u.domReference)){let o=u.domReference,i=u.floating;return r&&o.addEventListener("mouseleave",n),p&&o.addEventListener("mousemove",e,{once:!0}),o.addEventListener("mouseenter",e),o.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",n),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",a)),()=>{r&&o.removeEventListener("mouseleave",n),p&&o.removeEventListener("mousemove",e),o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",n),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",a))}}function e(e){if(tn(E),C.current=!1,d&&!es(x.current)||ti(b.current)>0&&!to(y.current,"open"))return;let t=to(y.current,"open",x.current);t?E.current=window.setTimeout(()=>{w.current||o(!0,e,"hover")},t):r||o(!0,e,"hover")}function t(e){if(O())return void D();P.current();let t=eu(u.floating);if(tn(L),M.current=!1,g.current&&i.current.floatingContext){r||tn(E),R.current=g.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){D(),S(),O()||k(e,!0,"safe-polygon")}});let n=R.current;t.addEventListener("mousemove",n),P.current=()=>{t.removeEventListener("mousemove",n)};return}"touch"===x.current&&eo(u.floating,e.relatedTarget)||k(e)}function n(e){O()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){D(),S(),O()||k(e)}})(e))}function l(){tn(E)}function a(e){O()||k(e,!1)}},[u,s,e,d,p,k,S,D,o,r,w,v,y,g,i,O,b]),ea(()=>{var e,t;if(s&&r&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&A()){T.current=!0;let e=u.floating;if(c(u.domReference)&&e){let n=eu(u.floating).body;n.setAttribute(tr,"");let r=u.domReference,o=null==v||null==(t=v.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,r,h,u,v,g,A]),ea(()=>{r||(x.current=void 0,M.current=!1,S(),D())},[r,S,D]),t.useEffect(()=>()=>{S(),tn(E),tn(L),D()},[s,u.domReference,S,D]);let I=t.useMemo(()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function n(){C.current||w.current||o(!0,t,"hover")}d&&!es(x.current)||r||0===ti(b.current)||M.current&&e.movementX**2+e.movementY**2<2||(tn(L),"touch"===x.current?n():(M.current=!0,L.current=window.setTimeout(n,ti(b.current))))}}},[d,o,r,w,b]);return t.useMemo(()=>s?{reference:I}:{},[s,I])},"useInteractions",0,function(e){void 0===e&&(e=[]);let n=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),i=t.useCallback(t=>td(t,e,"reference"),n),l=t.useCallback(t=>td(t,e,"floating"),r),u=t.useCallback(t=>td(t,e,"item"),o);return t.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u}),[i,l,u])},"useMergeRefs",0,function(e){let n=t.useRef(void 0),r=t.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>
1{n.forEach(e=>null==e?void 0:e())}},e);return t.useMemo(()=>e.every(e=>null==e)?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))},e)},"useRole",0,function(e,n){var r,o;void 0===n&&(n={});let{open:i,elements:l,floatingId:u}=e,{enabled:c=!0,role:s="dialog"}=n,a=e9(),f=(null==(r=l.domReference)?void 0:r.id)||a,d=t.useMemo(()=>{var e,t;return(null==(e=(t=l.floating)?t.hasAttribute(en)?t:t.querySelector("["+en+"]")||t:null)?void 0:e.id)||u},[l.floating,u]),m=null!=(o=tm.get(s))?o:s,p=null!=te(),v=t.useMemo(()=>"tooltip"===m||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?d:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":i?d:void 0,..."listbox"===m&&{role:"combobox"},..."menu"===m&&{id:f},..."menu"===m&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[m,d,p,i,f,s]),h=t.useMemo(()=>{let e={id:d,...m&&{role:m}};return"tooltip"===m||"label"===s?e:{...e,..."menu"===m&&{"aria-labelledby":f}}},[m,d,f,s]),g=t.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return t.useMemo(()=>c?{reference:v,floating:h,item:g}:{},[c,v,h,g])}],543489)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.