PageSourceSearch

https://lenswise.app/_next/static/chunks/Nav-B4TRRc_k.js

js lenswise.app collected 2026-10-08 10:34:57 UTC 80,128 bytes, 41 lines download raw bytes

1import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,n,r}from"./framework-C_hmB57O.js";import{_ as i,a,c as o,d as s,f as c,g as l,h as u,i as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,t as y,u as b}from"./dist-BGRYcjyd.js";var x=i(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),S=i(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),C=i(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),w=i(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),T=i(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),E=i(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),D=e(r(),1),O=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,k=c,A=(e,t)=>n=>{if(t?.variants==null)return k(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=O(t)||O(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return k(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},j=t(),M=A(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),N=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,j.jsx)(r?g:`button`,{className:s(M({variant:t,size:n,className:e})),ref:a,...i}));N.displayName=`Button`;function P(e){let t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>((...e)=>t.current?.(...e)),[])}var ee=Object.defineProperty,F=(e,t)=>ee(e,`name`,{value:t,configurable:!0}),te=`dismissableLayer.update`,I=`dismissableLayer.pointerDownOutside`,ne=`dismissableLayer.focusOutside`,re,ie=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ae=D.forwardRef(F(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=e,f=D.useContext(ie),[p,m]=D.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=D.useState({}),_=u(t,m),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=y?v.indexOf(y):-1,S=p?v.indexOf(p):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,w=S>=x,T=D.useRef(!1),E=ce(e=>{o?.(e),c?.(e),e.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:D.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return w&&!t},[f.branches,w])}),O=le(e=>{if(r&&T.current)return;let t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),c?.(e),e.defaultPrevented||l?.())},h),k=p?S===v.length-1:!1,A=P(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return D.useEffect(()=>
1{if(k)return h.addEventListener(`keydown`,A,{capture:!0}),()=>h.removeEventListener(`keydown`,A,{capture:!0})},[h,k,A]),D.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(re=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),ue(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=re))}},[p,h,n,f]),D.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),ue())},[p,f]),D.useEffect(()=>{let e=F(()=>g({}),`handleUpdate`);return document.addEventListener(te,e),()=>document.removeEventListener(te,e)},[]),(0,j.jsx)(a.div,{...d,ref:_,style:{pointerEvents:C?w?`auto`:`none`:void 0,...e.style},onFocusCapture:b(e.onFocusCapture,O.onFocusCapture),onBlurCapture:b(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:b(e.onPointerDownCapture,E.onPointerDownCapture)})},`DismissableLayer`));function oe(){let e=D.useContext(ie),[t,n]=D.useState(null);return D.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}F(oe,`useDismissableLayerSurface`);var se=F(()=>!0,`IS_TRUE`);function ce(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=se}=t,s=P(e),c=D.useRef(!1),l=D.useRef(!1),u=D.useRef(new Map),d=D.useRef(()=>{});return D.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}F(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}F(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}F(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}F(p,`handleInteractionBubble`);let m=F(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||de(I,s,p,{discrete:!0})};if(F(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:F(()=>c.current=!0,`onPointerDownCapture`)}}F(ce,`usePointerDownOutside`);function le(e,t=globalThis?.document){let n=P(e),r=D.useRef(!1);return D.useEffect(()=>{let e=F(e=>{e.target&&!r.current&&de(ne,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:F(()=>r.current=!0,`onFocusCapture`),onBlurCapture:F(()=>r.current=!1,`onBlurCapture`)}}F(le,`useFocusOutside`);function ue(){let e=new CustomEvent(te);document.dispatchEvent(e)}F(ue,`dispatchUpdate`);function de(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?h(i,a):i.dispatchEvent(a)}F(de,`handleAndDispatchCustomEvent`);var fe=0,pe=null;function me(){D.useEffect(()=>{pe||={start:he(),end:he()};let{start:e,end:t}=pe;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),fe++,()=>{fe===1&&(pe?.start.remove(),pe?.end.remove(),pe=null),fe=Math.max(0,fe-1)}},[])}function he(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var ge=Object.defineProperty,L=(e,t)=>ge(e,`name`,{value:t,configurable:!0}),_e=`focusScope.autoFocusOnMount`,ve=`focusScope.autoFocusOnUnmount`,ye={bubbles:!1,cancelable:!0},be=D.forwardRef(L(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}
1=e,[c,l]=D.useState(null),d=P(i),f=P(o),p=D.useRef(null),m=u(t,l),h=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:R(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||R(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&R(c)};L(e,`handleFocusIn`),L(t,`handleFocusOut`),L(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,h.paused]),D.useEffect(()=>{if(c){De.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(_e,ye);c.addEventListener(_e,d),c.dispatchEvent(t),t.defaultPrevented||(xe(Ae(Ce(c)),{select:!0}),document.activeElement===e&&R(c))}return()=>{c.removeEventListener(_e,d),setTimeout(()=>{let t=new CustomEvent(ve,ye);c.addEventListener(ve,f),c.dispatchEvent(t),t.defaultPrevented||R(e??document.body,{select:!0}),c.removeEventListener(ve,f),De.remove(h)},0)}}},[c,d,f,h]);let g=D.useCallback(e=>{if(!n&&!r||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Se(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&R(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&R(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,j.jsx)(a.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})},`FocusScope`));function xe(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(R(r,{select:t}),document.activeElement!==n)return}L(xe,`focusFirst`);function Se(e){let t=Ce(e);return[we(t,e),we(t.reverse(),e)]}L(Se,`getTabbableEdges`);function Ce(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:L(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}L(Ce,`getTabbableCandidates`);function we(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Te(r,{upTo:t})))return r}L(we,`findVisible`);function Te(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}L(Te,`isHidden`);function Ee(e){return e instanceof HTMLInputElement&&`select`in e}L(Ee,`isSelectableInput`);function R(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ee(e)&&t&&e.select()}}L(R,`focus`);var De=Oe();function Oe(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ke(e,t),e.unshift(t)},remove(t){e=ke(e,t),e[0]?.resume()}}}L(Oe,`createFocusScopesStack`);function ke(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}L(ke,`arrayRemove`);function Ae(e){return e.filter(e=>e.tagName!==`A`)}L(Ae,`removeLinks`);var je=[`top`,`right`,`bottom`,`left`],Me=Math.min,z=Math.max,Ne=Math.round,Pe=Math.floor,B=e=>({x:e,y:e}),Fe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ie(e,t,n){return z(e,Me(t,n))}function V(e,t){return typeof e==`function`?e(t):e}function H(e){return e.split(`-`)[0]}function Le(e){return e.split(`-`)[1]}function Re(e){return e===`x`?`y`:`x`}function ze(e){return e===`y`?`height`:`width`}function U(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Be(e){return Re(U(e))}function Ve(e,t,n){n===void 0&&(n=!1);let r=Le(e),i=Be(e),a=ze(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Xe(o)),[o,Xe(o)]}function He(e){let t=Xe(e);return[Ue(e),t,Ue(t)]}function Ue(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var We=[`left`,`right`],Ge=[`right`,`left`],Ke=[`top`,`bottom`],qe=[`bottom`,`top`];function Je(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ge:We:t?We:Ge;case`left`:case`right`:return t?Ke:qe;default:return[]}}function Ye(e,t,n,r){let i=Le(e),a=Je(H(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ue)))),a}function Xe(e){let t=H(e);return Fe[t]+e.slice(t.length)}function Ze(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Qe(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ze(e)}function $e(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function et(e,t,n){let{reference:r,floating:i}=e,a=U(t),o=Be(t),s=ze(o),c=H(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Le(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function tt(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=V(t,e),p=Qe(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=$e(await i.getClippingRect
vendor: 4,610 bytes, line 1
1({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=$e(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var nt=50,rt=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:tt},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=et(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<nt&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=et(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},it=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=V(e,t)||{};if(l==null)return{};let d=Qe(u),f={x:n,y:r},p=Be(i),m=ze(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Me(d[_],T),D=Me(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Ie(E,k,O),j=!c.arrow&&Le(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),at=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=V(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=H(r),_=U(o),v=H(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Xe(o)]:He(o)),x=p!==`none`;!d&&x&&b.push(...Ye(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ve(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==U(t))||T.every(e=>U(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=U(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ot(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function st(e){return je.some(t=>e[t]>=0)}var ct=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=V(e,t);switch(i){case`referenceHidden`:{let e=ot(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:st(e)}}}case`escaped`:{let e=ot(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:st(e)}}}default:return{}}}}},lt=new Set([`left`,`top`]);async function ut(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=H(n),s=Le(n),c=U(n)===`y`,l=lt.has(o)?-1:1,u=a&&c?-1:1,d=V(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var dt=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ut(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ft=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=V(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=U(i),p=Re(f),m=u[p],h=u[f],g=(e,t)=>Ie(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},pt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=V(e,t),u={x:n,y:r},d=U(i),f=Re(d),p=u[f],m=u[d],h=V(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=lt.has(H(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},mt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=V(e,t),c=await i.detectOverflow(t,s),l=H(n),u=Le(n),d=U(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Me(p-c[m],g),y=Me(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*z(c.left,c.right):S=p-2*z(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ht(){return!0}function gt(e){return _t(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){return((_t(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _t(e){return ht()?e instanceof Node||e instanceof W(e).Node:!1}function K(e){return ht()?e instanceof Element||e instanceof W(e).Element:!1}function vt(e){return ht()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function yt(e){return!ht()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function bt(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function xt(e){return/^(table|td|th)$/.test(gt(e))}function St(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ct=/transform|translate|scale|rotate|perspective|filter/,wt=/paint|layout|strict|content/,Tt=e=>!!e&&e!==`none`,Et;function Dt(e){let t=K(e)?q(e):e;return Tt(t.transform)||Tt(t.translate)||Tt(t.scale)||Tt(t.rotate)||Tt(t.perspective)||!kt()&&(Tt(t.backdropFilter)||Tt(t.filter))||Ct.test(t.willChange||``)||wt.test(t.contain||``)}function Ot(e){let t=Mt(e);for(;vt(t)&&!At(t);){if(Dt(t))return t;if(St(t))return null;t=Mt(t)}return null}function kt(){return Et??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Et}function At(e){return/^(html|body|#document)$/.test(gt(e))}function q(e){return W(e).getComputedStyle(e)}function jt(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mt(e){if(gt(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||yt(e)&&e.host||G(e);return yt(t)?t.host:t}function Nt(e){let t=Mt(e);return At(t)?(e.ownerDocument||e).body:vt(t)&&bt(t)?t:Nt(t)}function Pt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Nt(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=Ft(a);
vendor: 3,545 bytes, line 1
1return t.concat(a,a.visualViewport||[],bt(r)?r:[],e&&n?Pt(e):[])}else return t.concat(r,Pt(r,[],n))}function Ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function It(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ne(n)!==a||Ne(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Lt(e){return K(e)?e:e.contextElement}function Rt(e){let t=Lt(e);if(!vt(t))return B(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=It(t),o=(a?Ne(n.width):n.width)/r,s=(a?Ne(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var zt=B(0);function Bt(e){let t=W(e);return!kt()||!t.visualViewport?zt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vt(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===W(e)}function Ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Lt(e),o=B(1);t&&(r?K(r)&&(o=Rt(r)):o=Rt(e));let s=Vt(a,n,r)?Bt(a):B(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=W(a),t=K(r)?W(r):r,n=e,i=Ft(n);for(;i&&t!==n;){let e=Rt(i),t=i.getBoundingClientRect(),r=q(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=W(i),i=Ft(n)}}return $e({width:u,height:d,x:c,y:l})}function Ut(e,t){let n=jt(e).scrollLeft;return t?t.left+n:Ht(G(e)).left+n}function Wt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ut(e,n),y:n.top+t.scrollTop}}function Gt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=G(r),s=t?St(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=B(1),u=B(0),d=vt(r);if((d||!a)&&((gt(r)!==`body`||bt(o))&&(c=jt(r)),d)){let e=Ht(r);l=Rt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Wt(o,c):B(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Kt(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function qt(e){let t=jt(e),n=e.ownerDocument.body,r=z(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=z(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ut(e),o=-t.scrollTop;return q(n).direction===`rtl`&&(a+=z(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Jt=25;function Yt(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=W(e),a=G(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!kt()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ut(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Jt&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Xt(e,t){let n=Ht(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Rt(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Zt(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Yt(e,n,t);else if(t===`document`)r=qt(G(e));else if(K(t))r=Xt(t,n);else{let n=Bt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $e(r)}function Qt(e,t){let n=t.get(e);if(n)return n;let r=Pt(e,[],!1).filter(e=>K(e)&&gt(e)!==`body`),i=null,a=q(e).position===`fixed`,o=a?Mt(e):e;for(;K(o)&&!At(o);
vendor: 4,797 bytes, line 1
1){let e=q(o),t=Dt(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Mt(o)}return t.set(e,r),r}function $t(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?St(t)?[]:Qt(t,this._c):[].concat(n),r],o=Zt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Zt(t,a[e],i);s=z(n.top,s),c=Me(n.right,c),l=Me(n.bottom,l),u=z(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function en(e){let{width:t,height:n}=It(e);return{width:t,height:n}}function tn(e,t,n){let r=vt(t),i=G(t),a=n===`fixed`,o=Ht(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=B(0);if((r||!a)&&((gt(t)!==`body`||bt(i))&&(s=jt(t)),r)){let e=Ht(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ut(i));let l=i&&!r&&!a?Wt(i,s):B(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function nn(e){return q(e).position===`static`}function rn(e,t){if(!vt(e)||q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function an(e,t){let n=W(e);if(St(e))return n;if(!vt(e)){let t=Mt(e);for(;t&&!At(t);){if(K(t)&&!nn(t))return t;t=Mt(t)}return n}let r=rn(e,t);for(;r&&xt(r)&&nn(r);)r=rn(r,t);return r&&At(r)&&nn(r)&&!Dt(r)?n:r||Ot(e)||n}var on=async function(e){let t=this.getOffsetParent||an,n=this.getDimensions,r=await n(e.floating);return{reference:tn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sn(e){return q(e).direction===`rtl`}var cn={convertOffsetParentRelativeRectToViewportRelativeRect:Gt,getDocumentElement:G,getClippingRect:$t,getOffsetParent:an,getElementRects:on,getClientRects:Kt,getDimensions:en,getScale:Rt,isElement:K,isRTL:sn};function ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function un(e,t,n){let r=null,i,a=G(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Pe(d),h=Pe(a.clientWidth-(u+f)),g=Pe(a.clientHeight-(d+p)),_=Pe(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:z(0,Me(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ln(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=W(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function dn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Lt(e),u=i||a?[...l?Pt(l):[],...t?Pt(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?un(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ht(e):null;c&&g();function g(){let t=Ht(e);h&&!ln(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var fn=dt,pn=ft,mn=at,hn=mt,gn=ct,_n=it,vn=pt,yn=(e,t,n)=>{let r=new Map,i=n??{},a={...cn,...i.platform,_c:r};return rt(e,t,{...i,platform:a})},bn=e(n(),1),xn=typeof document<`u`?D.useLayoutEffect:function(){};function Sn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Sn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Sn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Cn(e){return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wn(e,t){let n=Cn(e);return Math.round(t*n)/n}function Tn(e){let t=D.useRef(e);return xn(()=>{t.current=e}),t}function En(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=D.useState(r);Sn(f,r)||p(r);
1let[m,h]=D.useState(null),[g,_]=D.useState(null),v=D.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=D.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=D.useRef(null),C=D.useRef(null),w=D.useRef(u),T=c!=null,E=Tn(c),O=Tn(i),k=Tn(l),A=D.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),yn(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Sn(w.current,t)&&(w.current=t,bn.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);xn(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=D.useRef(!1);xn(()=>(j.current=!0,()=>{j.current=!1}),[]),xn(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,A);A()}},[b,x,A,E,T]);let M=D.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=D.useMemo(()=>({reference:b,floating:x}),[b,x]),P=D.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=wn(N.floating,u.x),r=wn(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Cn(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return D.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Dn=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:_n({element:r.current,padding:i}).fn(n):r?_n({element:r,padding:i}).fn(n):{}}}},On=(e,t)=>{let n=fn(e);return{name:n.name,fn:n.fn,options:[e,t]}},kn=(e,t)=>{let n=pn(e);return{name:n.name,fn:n.fn,options:[e,t]}},An=(e,t)=>({fn:vn(e).fn,options:[e,t]}),jn=(e,t)=>{let n=mn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mn=(e,t)=>{let n=hn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nn=(e,t)=>{let n=gn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pn=(e,t)=>{let n=Dn(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Fn(e){let[t,n]=D.useState(void 0);return o(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var In=Object.defineProperty,J=(e,t)=>In(e,`name`,{value:t,configurable:!0}),Ln=`Popper`,[Rn,zn]=f(Ln),[Bn,Vn]=Rn(Ln),Hn=J(e=>{let{__scopePopper:t,children:n}=e,[r,i]=D.useState(null),[a,o]=D.useState(void 0);return(0,j.jsx)(Bn,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Un=`PopperAnchor`,Wn=D.forwardRef(J(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,o=Vn(Un,n),s=D.useRef(null),c=o.onAnchorChange,l=u(t,D.useCallback(e=>{s.current=e,e&&c(e)},[c])),d=D.useRef(null);D.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&c(d.current)});let f=o.placementState&&Zn(o.placementState),p=f?.[0],m=f?.[1];return r?null:(0,j.jsx)(a.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...i,ref:l})},`PopperAnchor`)),Gn=`PopperContent`,[Kn,qn]=Rn(Gn),Jn=D.forwardRef(J(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:s=`center`,alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m=`partial`,hideWhenDetached:h=!1,updatePositionStrategy:g=`optimized`,onPlaced:_,...v}=e,y=Vn(Gn,n),[b,x]=D.useState(null),S=u(t,x),[C,w]=D.useState(null),T=Fn(C),E=T?.width??0,O=T?.height??0,k=r+(s===`center`?``:`-`+s),A=typeof p==`number`?p:{top:0,right:0,bottom:0,left:0,...p},M=Array.isArray(f)?f:[f],N=M.length>0,ee={padding:A,boundary:M.filter(Yn),altBoundary:N},{refs:F,floatingStyles:te,placement:I,isPositioned:ne,middlewareData:re}=En({strategy:`fixed`,placement:k,whileElementsMounted:J((...e)=>dn(...e,{animationFrame:g===`always`}
1),`whileElementsMounted`),elements:{reference:y.anchor},middleware:[On({mainAxis:i+O,alignmentAxis:c}),d&&kn({mainAxis:!0,crossAxis:!1,limiter:m===`partial`?An():void 0,...ee}),d&&jn({...ee}),Mn({...ee,apply:J(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),C&&Pn({element:C,padding:l}),Xn({arrowWidth:E,arrowHeight:O}),h&&Nn({strategy:`referenceHidden`,...ee,boundary:N?ee.boundary:void 0})]}),ie=y.setPlacementState;o(()=>(ie(I),()=>{ie(void 0)}),[I,ie]);let[ae,oe]=Zn(I),se=P(_);o(()=>{ne&&se?.()},[ne,se]);let ce=re.arrow?.x,le=re.arrow?.y,ue=re.arrow?.centerOffset!==0,[de,fe]=D.useState();return o(()=>{b&&fe(window.getComputedStyle(b).zIndex)},[b]),(0,j.jsx)(`div`,{ref:F.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:ne?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:de,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(` `),...re.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)(Kn,{scope:n,placedSide:ae,placedAlign:oe,onArrowChange:w,arrowX:ce,arrowY:le,shouldHideArrow:ue,children:(0,j.jsx)(a.div,{"data-side":ae,"data-align":oe,...v,ref:S,style:{...v.style,animation:ne?v.style?.animation:`none`}})})})},`PopperContent`));function Yn(e){return e!==null}J(Yn,`isNotNull`);var Xn=J(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Zn(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Zn(e){let[t,n=`center`]=e.split(`-`);return[t,n]}J(Zn,`getSideAndAlignFromPlacement`);var Qn=Hn,$n=Wn,er=Jn,tr=Object.defineProperty,nr=D.forwardRef(((e,t)=>tr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,s]=D.useState(!1);o(()=>s(!0),[]);let c=n||i&&globalThis?.document?.body;return c?bn.createPortal((0,j.jsx)(a.div,{...r,ref:t}),c):null},`Portal`)),rr=!1;function ir(){let[e,t]=D.useState(rr);return D.useEffect(()=>{rr||(rr=!0,t(!0))},[]),e}var ar=D.useSyncExternalStore;function or(){return()=>{}}function sr(){return ar(or,()=>!0,()=>!1)}var cr=typeof ar==`function`?sr:ir,lr=Object.defineProperty,ur=(e,t)=>lr(e,`name`,{value:t,configurable:!0}),dr=`rovingFocusGroup.onEntryFocus`,fr={bubbles:!1,cancelable:!0},pr=`RovingFocusGroup`,[mr,hr,gr]=d(pr),[_r,vr]=f(pr,[gr]),[yr,br]=_r(pr),xr=D.forwardRef(ur(function(e,t){return(0,j.jsx)(mr.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(mr.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(Sr,{...e,ref:t})})})},`RovingFocusGroup`)),Sr=D.forwardRef(ur(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=D.useRef(null),h=u(t,m),g=_(o),[y,x]=v({prop:s,defaultProp:c??null,onChange:l,caller:pr}),[S,C]=D.useState(!1),w=P(d),T=hr(n),E=D.useRef(!1),[O,k]=D.useState(0);return D.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(dr,w),()=>e.removeEventListener(dr,w)},[w]),(0,j.jsx)(yr,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:y,onItemFocus:D.useCallback(e=>x(e),[x]),onItemShiftTab:D.useCallback(()=>C(!0),[]),onFocusableItemAdd:D.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:D.useCallback(()=>k(e=>e-1),[]),children:(0,j.jsx)(a.div,{tabIndex:S||O===0?-1:0,"data-orientation":r,...p,ref:h,style:{outline:`none`,...e.style},onMouseDown:b(e.onMouseDown,()=>{E.current=!0}),onFocus:b(e.onFocus,e=>{let t=!E.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(dr,fr);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>
1e.focusable);Or([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),f)}}E.current=!1}),onBlur:b(e.onBlur,()=>C(!1))})})},`RovingFocusGroupImpl`)),Cr=`RovingFocusGroupItem`,wr=D.forwardRef(ur(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:c,...l}=e,u=m(),d=s||u,f=br(Cr,n),p=f.currentTabStopId===d,h=hr(n),{onFocusableItemAdd:g,onFocusableItemRemove:_,currentTabStopId:v}=f,y=cr();return o(()=>{if(!(!y||!r))return g(),()=>_()},[y,r,g,_]),D.useEffect(()=>{if(!(y||!r))return g(),()=>_()},[y,r,g,_]),(0,j.jsx)(mr.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:(0,j.jsx)(a.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:b(e.onMouseDown,e=>{r?f.onItemFocus(d):e.preventDefault()}),onFocus:b(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:b(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Dr(e,f.orientation,f.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?kr(n,r+1):n.slice(r+1)}setTimeout(()=>Or(n))}}),children:typeof c==`function`?c({isCurrentTabStop:p,hasTabStop:v!=null}):c})})},`RovingFocusGroupItem`)),Tr={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Er(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}ur(Er,`getDirectionAwareKey`);function Dr(e,t,n){let r=Er(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Tr[r]}ur(Dr,`getFocusIntent`);function Or(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}ur(Or,`focusFirst`);function kr(e,t){return e.map((n,r)=>e[(t+r)%e.length])}ur(kr,`wrapArray`);var Ar=xr,jr=wr,Mr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Nr=new WeakMap,Pr=new WeakMap,Fr={},Ir=0,Lr=function(e){return e&&(e.host||Lr(e.parentNode))},Rr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},zr=function(e,t,n,r){var i=Rr(t,Array.isArray(e)?e:[e]);Fr[n]||(Fr[n]=new WeakMap);var a=Fr[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Nr.get(e)||0)+1,l=(a.get(e)||0)+1;Nr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Pr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ir++,function(){o.forEach(function(e){var t=Nr.get(e)-1,i=a.get(e)-1;Nr.set(e,t),a.set(e,i),t||(Pr.has(e)||e.removeAttribute(r),Pr.delete(e)),i||e.removeAttribute(n)}),Ir--,Ir||(Nr=new WeakMap,Nr=new WeakMap,Pr=new WeakMap,Fr={})}},Br=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Mr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),zr(r,i,n,`aria-hidden`)):function(){return null}},Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Y.apply(this,arguments)};function Vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Hr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
vendor: 8,800 bytes, lines 1-41
1r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ur=`right-scroll-bar-position`,Wr=`width-before-scroll-bar`,Gr=`with-scroll-bars-hidden`,Kr=`--removed-body-scroll-bar-size`;function qr(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Jr(e,t){var n=(0,D.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Yr=D.useLayoutEffect,Xr=new WeakMap;function Zr(e,t){var n=Jr(t||null,function(t){return e.forEach(function(e){return qr(e,t)})});return Yr(function(){var t=Xr.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||qr(e,null)}),i.forEach(function(e){r.has(e)||qr(e,a)})}Xr.set(n,e)},[e]),n}function Qr(e){return e}function $r(e,t){t===void 0&&(t=Qr);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ei(e){e===void 0&&(e={});var t=$r(null);return t.options=Y({async:!0,ssr:!1},e),t}var ti=function(e){var t=e.sideCar,n=Vr(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return D.createElement(r,Y({},n))};ti.isSideCarExport=!0;function ni(e,t){return e.useMedium(t),ti}var ri=ei(),ii=function(){},ai=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:ii,onWheelCapture:ii,onTouchMoveCapture:ii}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Vr(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Zr([n,t]),C=Y(Y({},b),i);return D.createElement(D.Fragment,null,u&&D.createElement(x,{sideCar:ri,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?D.cloneElement(D.Children.only(s),Y(Y({},C),{ref:S})):D.createElement(v,Y({},C,{className:c,ref:S}),s))});ai.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ai.classNames={fullWidth:Wr,zeroRight:Ur};var oi,si=function(){if(oi)return oi;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ci(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=si();return t&&e.setAttribute(`nonce`,t),e}function li(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ui(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var di=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ci())&&(li(t,n),ui(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fi=function(){var e=di();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pi=function(){var e=fi();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},mi=function(e){return parseInt(e||``,10)||0},hi=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[mi(n),mi(r),mi(i)]},gi=function(e){e===void 0&&(e=`margin`);var t=hi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},_i=pi(),vi=`data-scroll-locked`,yi=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2  .${Gr} {
3   overflow: hidden ${r};
4   padding-right: ${s}px ${r};
5  }
6  body[${vi}] {
7    overflow: hidden ${r};
8    overscroll-behavior: contain;
9    ${[t&&`position: relative ${r};`,n===`margin`&&`
10    padding-left: ${i}px;
11    padding-top: ${a}px;
12    padding-right: ${o}px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: ${s}px ${r};
16    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17  }
18  
19  .${Ur} {
20    right: ${s}px ${r};
21  }
22  
23  .${Wr} {
24    margin-right: ${s}px ${r};
25  }
26  
27  .${Ur} .${Ur} {
28    right: 0 ${r};
29  }
30  
31  .${Wr} .${Wr} {
32    margin-right: 0 ${r};
33  }
34  
35  body[${vi}] {
36    ${Kr}: ${s}px;
37  }
38`},bi=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},xi=function(){D.useEffect(function(){return document.body.setAttribute(vi,(bi()+1).toString()),function(){var e=bi()-1;e<=0?document.body.removeAttribute(vi):document.body.setAttribute(vi,e.toString())}},[])},Si=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;xi();var a=D.useMemo(function(){return gi(i)},[i]);return D.createElement(_i,{styles:yi(a,!t,i,n?``:`!important`)})},Ci=!1;try{var wi=Object.defineProperty({},"passive",{get:function(){return Ci=!0,!0}});window.addEventListener(`test`,wi,wi),window.removeEventListener(`test`,wi,wi)}catch{Ci=!1}var Ti=Ci?{passive:!1}:!1,Ei=function(e){return e.tagName===`TEXTAREA`},Di=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Ei(e)&&n[t]===`visible`)},Oi=function(e){return Di(e,`overflowY`)},ki=function(e){return Di(e,`overflowX`)},Ai=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ni(e,r)){var i=Pi(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ji=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Mi=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ni=function(e,t){return e===`v`?Oi(t):ki(t)},Pi=function(e,t){return e===`v`?ji(t):Mi(t)},Fi=function(e,t){return e===`h`&&t===`rtl`?-1:1},Ii=function(e,t,n,r,i){var a=Fi(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Pi(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ni(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Li=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ri=function(e){return[e.deltaX,e.deltaY]},zi=function(e){return e&&`current`in e?e.current:e},Bi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vi=function(e){return`
39  .block-interactivity-${e} {pointer-events: none;}
40  .allow-interactivity-${e} {pointer-events: all;}
41`},Hi=0,Ui=[];function Wi(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),i=D.useState(Hi++)[0],a=D.useState(pi)[0],o=D.useRef(e);D.useEffect(function(){o.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Hr([e.lockRef.current],(e.shards||[]).map(zi),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=D.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Li(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Ai(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Ai(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Ii(h,t,e,h===`h`?s:c,!0)},[]),c=D.useCallback(function(e){var n=e;if(!(!Ui.length||Ui[Ui.length-1]!==a)){var r=`deltaY`in n?Ri(n):Li(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Bi(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
41if(!i){var c=(o.current.shards||[]).map(zi).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=D.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Gi(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=D.useCallback(function(e){n.current=Li(e),r.current=void 0},[]),d=D.useCallback(function(t){l(t.type,Ri(t),t.target,s(t,e.lockRef.current))},[]),f=D.useCallback(function(t){l(t.type,Li(t),t.target,s(t,e.lockRef.current))},[]);D.useEffect(function(){return Ui.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Ti),document.addEventListener(`touchmove`,c,Ti),document.addEventListener(`touchstart`,u,Ti),function(){Ui=Ui.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Ti),document.removeEventListener(`touchmove`,c,Ti),document.removeEventListener(`touchstart`,u,Ti)}},[]);var p=e.removeScrollBar,m=e.inert;return D.createElement(D.Fragment,null,m?D.createElement(a,{styles:Vi(i)}):null,p?D.createElement(Si,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Gi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ki=ni(ri,Wi),qi=D.forwardRef(function(e,t){return D.createElement(ai,Y({},e,{ref:t,sideCar:Ki}))});qi.classNames=ai.classNames;var Ji=Object.defineProperty,X=(e,t)=>Ji(e,`name`,{value:t,configurable:!0}),Yi=[`Enter`,` `],Xi=[`ArrowDown`,`PageUp`,`Home`],Zi=[`ArrowUp`,`PageDown`,`End`],Qi=[...Xi,...Zi],$i={ltr:[...Yi,`ArrowRight`],rtl:[...Yi,`ArrowLeft`]},ea={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},ta=`Menu`,[na,ra,ia]=d(ta),[aa,oa]=f(ta,[ia,zn,vr]),sa=zn(),ca=vr(),[la,ua]=aa(ta),[da,fa]=aa(ta),pa=X(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=sa(t),[c,l]=D.useState(null),u=D.useRef(!1),d=P(a),f=_(i);return D.useEffect(()=>{let e=X(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=X(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),D.useEffect(()=>{if(!n)return;let e=X(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,j.jsx)(Qn,{...s,children:(0,j.jsx)(la,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,j.jsx)(da,{scope:t,onClose:D.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),ma=D.forwardRef(X(function(e,t){let{__scopeMenu:n,...r}=e,i=sa(n);return(0,j.jsx)($n,{...i,...r,ref:t})},`MenuAnchor`)),ha=`MenuPortal`,[ga,_a]=aa(ha,{forceMount:void 0}),va=X(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ua(ha,t);return(0,j.jsx)(ga,{scope:t,forceMount:n,children:(0,j.jsx)(y,{present:n||a.open,children:(0,j.jsx)(nr,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Z=`MenuContent`,[ya,ba]=aa(Z),xa=D.forwardRef(X(function(e,t){let n=_a(Z,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ua(Z,e.__scopeMenu),o=fa(Z,e.__scopeMenu);return(0,j.jsx)(na.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(y,{present:r||a.open,children:(0,j.jsx)(na.Slot,{scope:e.__scopeMenu,children:o.modal?(0,j.jsx)(Sa,{...i,ref:t}):(0,j.jsx)(Ca,{...i,ref:t})})})})},`MenuContent`)),Sa=D.forwardRef(X(function(e,t){let n=ua(Z,e.__scopeMenu),r=D.useRef(null),i=u(t,r);return D.useEffect(()=>{let e=r.current;if(e)return Br(e)},[]),(0,j.jsx)(Ta,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:b(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Ca=D.forwardRef(X(function(e,t){let n=ua(Z,e.__scopeMenu);return(0,j.jsx)(Ta,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),wa=p(`MenuContent.ScrollLock`),Ta=D.forwardRef(X(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=e,_=ua(Z,n),v=fa(Z,n),y=sa(n),x=ca(n),S=ra(n),[C,w]=D.useState(null),T=D.useRef(null),E=u(t,T,_.onContentChange),O=D.useRef(0),k=D.useRef(``),A=D.useRef(0),M=D.useRef(null),N=D.useRef(`right`),P=D.useRef(0),ee=h?qi:D.Fragment,F=h?{as:wa,allowPinchZoom:!0}:void 0,te=X(e=>{let t=k.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Qa(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;X((function e(t){k.current=t,window.clearTimeout(O.current),t!==``&&(O.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>
41o.focus())},`handleTypeaheadSearch`);D.useEffect(()=>()=>window.clearTimeout(O.current),[]),me();let I=D.useCallback(e=>N.current===M.current?.side&&eo(e,M.current?.area),[]);return(0,j.jsx)(ya,{scope:n,searchRef:k,onItemEnter:D.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:D.useCallback(e=>{I(e)||(T.current?.focus(),w(null))},[I]),onTriggerLeave:D.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:A,onPointerGraceIntentChange:D.useCallback(e=>{M.current=e},[]),children:(0,j.jsx)(ee,{...F,children:(0,j.jsx)(be,{asChild:!0,trapped:i,onMountAutoFocus:b(a,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,j.jsx)(ae,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:(0,j.jsx)(Ar,{asChild:!0,...x,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:b(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,j.jsx)(er,{role:`menu`,"aria-orientation":`vertical`,"data-state":qa(_.open),"data-radix-menu-content":``,dir:v.dir,...y,...g,ref:E,style:{outline:`none`,...g.style},onKeyDown:b(g.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&te(e.key));let i=T.current;if(e.target!==i||!Qi.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);Zi.includes(e.key)&&a.reverse(),Xa(a)}),onBlur:b(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current=``)}),onPointerMove:b(e.onPointerMove,to(e=>{let t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>P.current?`right`:`left`;N.current=t,P.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Ea=D.forwardRef(X(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(a.div,{...r,ref:t})},`MenuLabel`)),Da=`MenuItem`,Oa=`menu.itemSelect`,ka=D.forwardRef(X(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=D.useRef(null),o=fa(Da,e.__scopeMenu),s=ba(Da,e.__scopeMenu),c=u(t,a),l=D.useRef(!1),d=X(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Oa,{bubbles:!0,cancelable:!0});e.addEventListener(Oa,e=>r?.(e),{once:!0}),h(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,j.jsx)(Aa,{...i,ref:c,disabled:n,onClick:b(e.onClick,d),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:b(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:b(e.onKeyDown,e=>{n||e.target!==e.currentTarget||s.searchRef.current!==``&&e.key===` `||Yi.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Aa=D.forwardRef(X(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,s=ba(Da,n),c=ca(n),l=D.useRef(null),d=u(t,l),[f,p]=D.useState(!1),[m,h]=D.useState(``);return D.useEffect(()=>{let e=l.current;e&&h((e.textContent??``).trim())},[o.children]),(0,j.jsx)(na.ItemSlot,{scope:n,disabled:r,textValue:i??m,children:(0,j.jsx)(jr,{asChild:!0,...c,focusable:!r,children:(0,j.jsx)(a.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...o,ref:d,onPointerMove:b(e.onPointerMove,to(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:b(e.onPointerLeave,to(e=>s.onItemLeave(e))),onFocus:b(e.onFocus,()=>p(!0)),onBlur:b(e.onBlur,()=>p(!1))})})})},`MenuItemImpl`)),ja=D.forwardRef(X(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,j.jsx)(La,{scope:e.__scopeMenu,checked:n,children:(0,j.jsx)(ka,{role:`menuitemcheckbox`,"aria-checked":Ja(n)?`mixed`:n,...i,ref:t,"data-state":Ya(n),onSelect:b(i.onSelect,()=>r?.(Ja(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[Ma,Na]=aa(`MenuRadioGroup`,{value:void 0,onValueChange:X(()=>{},`onValueChange`)}),Pa=`MenuRadioItem`,Fa=D.forwardRef(X(function(e,t){let{value:n,...r}=e,i=Na(Pa,e.__scopeMenu),a=n===i.value;return(0,j.jsx)(La,{scope:e.__scopeMenu,checked:a,children:(0,j.jsx)(ka,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Ya(a),onSelect:b(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),Ia=`MenuItemIndicator`,[La,Ra]=aa(Ia,{checked:!1}
41),za=D.forwardRef(X(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,o=Ra(Ia,n);return(0,j.jsx)(y,{present:r||Ja(o.checked)||o.checked===!0,children:(0,j.jsx)(a.span,{...i,ref:t,"data-state":Ya(o.checked)})})},`MenuItemIndicator`)),Ba=D.forwardRef(X(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(a.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[Va,Ha]=aa(`MenuSub`),Ua=`MenuSubTrigger`,Wa=D.forwardRef(X(function(e,t){let n=ua(Ua,e.__scopeMenu),r=fa(Ua,e.__scopeMenu),i=Ha(Ua,e.__scopeMenu),a=ba(Ua,e.__scopeMenu),o=D.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},d=D.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);D.useEffect(()=>d,[d]),D.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let f=u(t,i.onTriggerChange);return(0,j.jsx)(ma,{asChild:!0,...l,children:(0,j.jsx)(Aa,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":qa(n.open),...e,ref:f,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:b(e.onPointerMove,to(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:b(e.onPointerLeave,to(e=>{d();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:b(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||a.searchRef.current!==``&&t.key===` `||$i[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),Ga=`MenuSubContent`,Ka=D.forwardRef(X(function(e,t){let n=_a(Z,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=ua(Z,e.__scopeMenu),s=fa(Z,e.__scopeMenu),c=Ha(Ga,e.__scopeMenu),l=D.useRef(null),d=u(t,l);return(0,j.jsx)(na.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(y,{present:r||o.open,children:(0,j.jsx)(na.Slot,{scope:e.__scopeMenu,children:(0,j.jsx)(Ta,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:d,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:b(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:b(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:b(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ea[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function qa(e){return e?`open`:`closed`}X(qa,`getOpenState`);function Ja(e){return e===`indeterminate`}X(Ja,`isIndeterminate`);function Ya(e){return Ja(e)?`indeterminate`:e?`checked`:`unchecked`}X(Ya,`getCheckedState`);function Xa(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}X(Xa,`focusFirst`);function Za(e,t){return e.map((n,r)=>e[(t+r)%e.length])}X(Za,`wrapArray`);function Qa(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Za(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}X(Qa,`getNextMatch`);function $a(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}X($a,`isPointInPolygon`);function eo(e,t){return t?$a({x:e.clientX,y:e.clientY},t):!1}X(eo,`isPointerInGraceArea`);function to(e){return t=>t.pointerType===`mouse`?e(t):void 0}X(to,`whenMouse`);
41var no=pa,ro=ma,io=va,ao=xa,oo=Ea,so=ka,co=ja,lo=Fa,uo=za,fo=Ba,po=Wa,mo=Ka,ho=Object.defineProperty,Q=(e,t)=>ho(e,`name`,{value:t,configurable:!0}),go=`DropdownMenu`,[_o,vo]=f(go,[oa]),$=oa(),[yo,bo]=_o(go),xo=Q(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=D.useRef(null),[u,d]=v({prop:i,defaultProp:a??!1,onChange:o,caller:go});return(0,j.jsx)(yo,{scope:t,triggerId:m(),triggerRef:l,contentId:m(),open:u,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,j.jsx)(no,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),So=`DropdownMenuTrigger`,Co=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=bo(So,n),s=$(n),c=u(t,o.triggerRef);return(0,j.jsx)(ro,{asChild:!0,...s,children:(0,j.jsx)(a.button,{type:`button`,id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:c,onPointerDown:b(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:b(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&o.onOpenToggle(),e.key===`ArrowDown`&&o.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})}
41,`DropdownMenuTrigger`)),wo=Q(e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,j.jsx)(io,{...r,...n})},`DropdownMenuPortal`),To=`DropdownMenuContent`,Eo=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=bo(To,n),a=$(n),o=D.useRef(!1);return(0,j.jsx)(ao,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:b(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:b(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),Do=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(oo,{...i,...r,ref:t})},`DropdownMenuLabel`)),Oo=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(so,{...i,...r,ref:t})},`DropdownMenuItem`)),ko=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(co,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),Ao=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(lo,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),jo=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(uo,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),Mo=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(fo,{...i,...r,ref:t})},`DropdownMenuSeparator`)),No=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(po,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),Po=D.forwardRef(Q(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,j.jsx)(mo,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),Fo=xo,Io=Co,Lo=wo,Ro=Eo,zo=Do,Bo=Oo,Vo=ko,Ho=Ao,Uo=jo,Wo=Mo,Go=No,Ko=Po,qo=Fo,Jo=Io,Yo=D.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(Go,{ref:i,className:s(`flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)(S,{"aria-hidden":`true`,className:`ml-auto`})]}));Yo.displayName=Go.displayName;var Xo=D.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Ko,{ref:n,className:s(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)`,e),...t}));Xo.displayName=Ko.displayName;var Zo=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,j.jsx)(Lo,{children:(0,j.jsx)(Ro,{ref:r,sideOffset:t,className:s(`z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
41de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)`,e),...n})}));Zo.displayName=Ro.displayName;var Qo=D.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(Bo,{ref:r,className:s(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0`,t&&`pl-8`,e),...n}));Qo.displayName=Bo.displayName;var $o=D.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,j.jsxs)(Vo,{ref:i,className:s(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(Uo,{children:(0,j.jsx)(x,{"aria-hidden":`true`,className:`h-4 w-4`})})}),t]}));$o.displayName=Vo.displayName;var es=D.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(Ho,{ref:r,className:s(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(Uo,{children:(0,j.jsx)(C,{"aria-hidden":`true`,className:`h-2 w-2 fill-current`})})}),t]}));es.displayName=Ho.displayName;var ts=D.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(zo,{ref:r,className:s(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));ts.displayName=zo.displayName;var ns=D.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Wo,{ref:n,className:s(`-mx-1 my-1 h-px bg-muted`,e),...t}));ns.displayName=Wo.displayName;var rs=({className:e,...t})=>(0,j.jsx)(`span`,{className:s(`ml-auto text-xs tracking-widest opacity-60`,e),...t});rs.displayName=`DropdownMenuShortcut`;var is=[{language:`en`,path:`/en`,hreflang:`en`},{language:`pt`,path:`/pt`,hreflang:`pt-BR`},{language:`zh`,path:`/zh`,hreflang:`zh-Hans`},{language:`zhTW`,path:`/zh-tw`,hreflang:`zh-Hant`},{language:`ja`,path:`/ja`,hreflang:`ja`},{language:`ko`,path:`/ko`,hreflang:`ko`},{language:`de`,path:`/de`,hreflang:`de`},{language:`es`,path:`/es`,hreflang:`es`},{language:`fr`,path:`/fr`,hreflang:`fr`},{language:`ar`,path:`/ar`,hreflang:`ar`}],as=new Map(is.map(e=>[e.language,e]));new Map(is.flatMap(e=>[[e.path,e],[`${e.path}/`,e]]));function os(e){return as.get(e)?.path??`/`}var ss=`https://play.google.com/store/apps/details?id=com.lenswise.hiddencameradetector&referrer=lenswise_web`,cs=[{value:`en`,label:`English`},{value:`zh`,label:`简体中文`},{value:`zhTW`,label:`繁體中文`},{value:`ja`,label:`日本語`},{value:`ko`,label:`한국어`},{value:`de`,label:`Deutsch`},{value:`es`,label:`Español`},{value:`fr`,label:`Français`},{value:`pt`,label:`Português`},{value:`ar`,label:`العربية`}];function ls({homePath:e,isHome:t=!1,language:n,t:r}){let[i,a]=(0,D.useState)(!1),o=cs.find(e=>e.value===n)??cs[0],s=e=>{window.location.href=`${os(e)}${t?window.location.hash:``}`};return(0,j.jsx)(`header`,{className:`fixed top-0 inset-x-0 z-50`,children:(0,j.jsxs)(`div`,{className:`mx-auto mt-4 max-w-6xl px-4`,children:[(0,j.jsxs)(`div`,{className:`glass-strong flex items-center justify-between gap-3 rounded-2xl px-4 py-2.5 shadow-[var(--shadow-glass)]`,children:[(0,j.jsxs)(`a`,{href:e,className:`flex items-center gap-2 font-mono`,children:[(0,j.jsx)(`span`,{className:`grid h-8 w-8 place-items-center overflow-hidden rounded-lg bg-[var(--gradient-aurora)] shadow-[var(--shadow-glow-mint)]`,children:(0,j.jsx)(`img`,{src:`/logo.png`,alt:`LensWise logo`,className:`h-full w-full object-cover`})}),(0,j.jsx)(`span`,{className:`text-sm font-bold tracking-tight`,children:`LensWise`})]}),(0,j.jsx)(`nav`,{"aria-label":`Primary navigation`,className:`hidden items-center gap-1 lg:flex`,children:r.nav.links.map(n=>(0,j.jsx)(`a`,{href:t?n.href:`${e}${n.href}`,className:`rounded-lg px-3 py-1.5 text-sm text-muted-foreground transition hover:bg-white/5 hover:text-foreground`,children:n.label},n.href))}),(0,j.jsxs)(`div`,{className:`hidden items-center gap-2 lg:flex`,children:[(0,j.jsxs)(qo,{modal:!1,children:[(0,j.jsx)(Jo,{asChild:!0,children:(0,j.jsxs)(N,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":r.nav.language,className:`h-9 rounded-lg border border-white/10 bg-white/5 px-2.5 text-foreground hover:bg-white/10 hover:text-foreground sm:px-3`,children:[(0,j.jsx)(w,{"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`hidden text-sm sm:inline`,children:o.label}),(0,j.jsx)(`span`,{className:`text-xs sm:hidden`,children:o.value.toUpperCase()}),(0,j.jsx)(l,{"aria-hidden":`true`,className:`opacity-70`})]})}),(0,j.jsx)(Zo,{align:`end`,sideOffset:8,onCloseAutoFocus:e=>e.preventDefault(),className:`glass-strong max-h-none min-w-36 overflow-y-visible rounded-xl border-white/10 bg-card/95 p-1 text-foreground shadow-[var(--shadow-glass)] backdrop-blur-xl`,children:cs.map(e=>(0,j.jsxs)(Qo,{onSelect:()=>{s(e.value)}
41,className:`cursor-pointer rounded-lg px-2.5 py-2 text-sm focus:bg-white/10 focus:text-foreground`,children:[(0,j.jsx)(`span`,{children:e.label}),n===e.value&&(0,j.jsx)(x,{"aria-hidden":`true`,className:`ml-auto text-mint`})]},e.value))})]}),(0,j.jsx)(N,{asChild:!0,size:`sm`,className:`hidden rounded-lg bg-mint text-mint-foreground hover:bg-mint/90 md:inline-flex`,children:(0,j.jsx)(`a`,{href:ss,target:`_blank`,rel:`noopener noreferrer`,children:r.nav.cta})})]}),(0,j.jsx)(N,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":i?`Close menu`:`Open menu`,"aria-expanded":i,"aria-controls":`mobile-navigation`,onClick:()=>a(e=>!e),className:`h-9 w-9 rounded-lg border border-white/10 bg-white/5 p-0 text-foreground hover:bg-white/10 hover:text-foreground lg:hidden`,children:i?(0,j.jsx)(E,{"aria-hidden":`true`,className:`h-4 w-4`}):(0,j.jsx)(T,{"aria-hidden":`true`,className:`h-4 w-4`})})]}),i&&(0,j.jsxs)(`div`,{id:`mobile-navigation`,className:`glass-strong mt-2 rounded-2xl p-2 shadow-[var(--shadow-glass)] lg:hidden`,children:[(0,j.jsx)(`nav`,{"aria-label":`Mobile navigation`,className:`grid gap-1`,children:r.nav.links.map(n=>(0,j.jsx)(`a`,{href:t?n.href:`${e}${n.href}`,onClick:()=>a(!1),className:`rounded-xl px-3 py-3 text-sm font-medium text-foreground transition hover:bg-white/5`,children:n.label},n.href))}),(0,j.jsx)(`div`,{className:`my-2 h-px bg-white/10`}),(0,j.jsxs)(`div`,{className:`rounded-xl border border-white/10 bg-white/5 p-1.5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-2 py-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground`,children:[(0,j.jsx)(w,{"aria-hidden":`true`,className:`h-4 w-4`}),(0,j.jsx)(`span`,{children:r.nav.language})]}),(0,j.jsx)(`div`,{children:cs.map(e=>(0,j.jsxs)(`button`,{type:`button`,"aria-pressed":n===e.value,onClick:()=>{s(e.value),a(!1)},className:`flex h-10 w-full items-center justify-between rounded-lg px-2.5 text-left text-sm font-medium transition ${n===e.value?`bg-mint text-mint-foreground`:`text-foreground hover:bg-white/5`}`,children:[(0,j.jsx)(`span`,{children:e.label}),n===e.value&&(0,j.jsx)(x,{"aria-hidden":`true`,className:`h-4 w-4`})]},e.value))})]})]})]})})}export{ls as Nav};

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.