1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13293,23750,79356,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),o=e.i(57688),a=e.i(18566),i=e.i(9797),s=e.i(75254);let l=(0,s.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),d=(0,s.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),c=(0,s.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),u=(0,s.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);var p=e.i(95926),f=e.i(67881),m=e.i(47163);function g({className:e,type:r,...n}){return(0,t.jsx)("input",{type:r,"data-slot":"input",className:(0,m.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}e.s(["Input",()=>g],23750);var h=e.i(22174);e.i(78745),e.i(46349),(0,s.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var x=e.i(81140),b=e.i(20783),v=e.i(30030),w=e.i(69340),y=e.i(48425),k=e.i(75830),_=e.i(86318),j=e.i(26330),C=e.i(3536),R=e.i(65491),S=e.i(10772);let N=["top","right","bottom","left"],E=Math.min,M=Math.max,P=Math.round,D=Math.floor,A=e=>({x:e,y:e}),L={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function I(e,t){return"function"==typeof e?e(t):e}function O(e){return e.split("-")[0]}function F(e){return e.split("-")[1]}function H(e){return"x"===e?"y":"x"}function z(e){return"y"===e?"height":"width"}let B=new Set(["top","bottom"]);function K(e){return B.has(O(e))?"y":"x"}function $(e){return e.replace(/start|end/g,e=>T[e])}let G=["left","right"],U=["right","left"],W=["top","bottom"],V=["bottom","top"];function X(e){return e.replace(/left|right|bottom|top/g,e=>L[e])}function Y(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function q(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Z(e,t,r){let n,{reference:o,floating:a}=e,i=K(t),s=H(K(t)),l=z(s),d=O(t),c="y"===i,u=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,f=o[l]/2-a[l]/2;switch(d){case"top":n={x:u,y:o.y-a.height};break;case"bottom":n={x:u,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:p};break;case"left":n={x:o.x-a.width,y:p};break;default:n={x:o.x,y:o.y}}switch(F(t)){case"start":n[s]-=f*(r&&c?-1:1);break;case"end":n[s]+=f*(r&&c?-1:1)}return n}async function J(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=I(t,e),m=Y(f),g=s[p?"floating"===u?"reference":"floating":u],h=q(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(g)))||r?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),x="floating"===u?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),v=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=q(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:b,strategy:l}):x);return{top:(h.top-w.top+m.top)/v.y,bottom:(w.bottom-h.bottom+m.bottom)/v.y,left
1:(h.left-w.left+m.left)/v.x,right:(w.right-h.right+m.right)/v.x}}let Q=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await (null==i.isRTL?void 0:i.isRTL(t)),d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=Z(d,n,l),p=n,f={},m=0;for(let r=0;r<s.length;r++){var g;let{name:a,fn:h}=s[r],{x:x,y:b,data:v,reset:w}=await h({x:c,y:u,initialPlacement:n,placement:p,strategy:o,middlewareData:f,rects:d,platform:{...i,detectOverflow:null!=(g=i.detectOverflow)?g:J},elements:{reference:e,floating:t}});c=null!=x?x:c,u=null!=b?b:u,f={...f,[a]:{...f[a],...v}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(d=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:u}=Z(d,p,l)),r=-1)}return{x:c,y:u,placement:p,strategy:o,middlewareData:f}};function ee(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function et(e){return N.some(t=>e[t]>=0)}let er=new Set(["left","top"]);async function en(e,t){let{placement:r,platform:n,elements:o}=e,a=await (null==n.isRTL?void 0:n.isRTL(o.floating)),i=O(r),s=F(r),l="y"===K(r),d=er.has(i)?-1:1,c=a&&l?-1:1,u=I(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*c,y:p*d}:{x:p*d,y:f*c}}function eo(){return"u">typeof window}function ea(e){return el(e)?(e.nodeName||"").toLowerCase():"#document"}function ei(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function es(e){var t;return null==(t=(el(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function el(e){return!!eo()&&(e instanceof Node||e instanceof ei(e).Node)}function ed(e){return!!eo()&&(e instanceof Element||e instanceof ei(e).Element)}function ec(e){return!!eo()&&(e instanceof HTMLElement||e instanceof ei(e).HTMLElement)}function eu(e){return!(!eo()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ei(e).ShadowRoot)}let ep=new Set(["inline","contents"]);function ef(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=ej(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!ep.has(o)}let em=new Set(["table","td","th"]),eg=[":popover-open",":modal"];function eh(e){return eg.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let ex=["transform","translate","scale","rotate","perspective"],eb=["transform","translate","scale","rotate","perspective","filter"],ev=["paint","layout","strict","content"];function ew(e){let t=ey(),r=ed(e)?ej(e):e;return ex.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||eb.some(e=>(r.willChange||"").includes(e))||ev.some(e=>(r.contain||"").includes(e))}function ey(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ek=new Set(["html","body","#document"]);function e_(e){return ek.has(ea(e))}function ej(e){return ei(e).getComputedStyle(e)}function eC(e){return ed(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eR(e){if("html"===ea(e))return e;let t=e.assignedSlot||e.parentNode||eu(e)&&e.host||es(e);return eu(t)?t.host:t}function eS(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=eR(t);return e_(r)?t.ownerDocument?t.ownerDocument.body:t.body:ec(r)&&ef(r)?r:e(r)}(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ei(o);if(a){let e=eN(i);return t.concat(i,i.visualViewport||[],ef(o)?o:[],e&&r?eS(e):[])}return t.concat(o,eS(o,[],r))}function eN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eE(e){let t=ej(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=ec(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=P(r)!==a||P(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function eM(e){return ed(e)?e:e.contextElement}function eP(e){let t=eM(e);if(!ec(t))return A(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=eE(t),i=(a?P(r.width):r.width)/n,s=(a?P(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}let eD=A(0);function eA(e){let t=ei(e);
1return ey()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eD}function eL(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),i=eM(e),s=A(1);t&&(n?ed(n)&&(s=eP(n)):s=eP(e));let l=(void 0===(o=r)&&(o=!1),n&&(!o||n===ei(i))&&o)?eA(i):A(0),d=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,u=a.width/s.x,p=a.height/s.y;if(i){let e=ei(i),t=n&&ed(n)?ei(n):n,r=e,o=eN(r);for(;o&&n&&t!==r;){let e=eP(o),t=o.getBoundingClientRect(),n=ej(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;d*=e.x,c*=e.y,u*=e.x,p*=e.y,d+=a,c+=i,o=eN(r=ei(o))}}return q({width:u,height:p,x:d,y:c})}function eT(e,t){let r=eC(e).scrollLeft;return t?t.left+r:eL(es(e)).left+r}function eI(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-eT(e,r),y:r.top+t.scrollTop}}let eO=new Set(["absolute","fixed"]);function eF(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=ei(e),n=es(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;let e=ey();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}let d=eT(n);if(d<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else d<=25&&(a+=d);return{width:a,height:i,x:s,y:l}}(e,r);else if("document"===t){let t,r,a,i,s,l,d;n=es(e),t=es(n),r=eC(n),a=n.ownerDocument.body,i=M(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=M(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),l=-r.scrollLeft+eT(n),d=-r.scrollTop,"rtl"===ej(a).direction&&(l+=M(t.clientWidth,a.clientWidth)-i),o={width:i,height:s,x:l,y:d}}else if(ed(t)){let e,n,a,i,s,l;n=(e=eL(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,i=ec(t)?eP(t):A(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,o={width:s,height:l,x:a*i.x,y:n*i.y}}else{let r=eA(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return q(o)}function eH(e){return"static"===ej(e).position}function ez(e,t){if(!ec(e)||"fixed"===ej(e).position)return null;if(t)return t(e);let r=e.offsetParent;return es(e)===r&&(r=r.ownerDocument.body),r}function eB(e,t){var r;let n=ei(e);if(eh(e))return n;if(!ec(e)){let t=eR(e);for(;t&&!e_(t);){if(ed(t)&&!eH(t))return t;t=eR(t)}return n}let o=ez(e,t);for(;o&&(r=o,em.has(ea(r)))&&eH(o);)o=ez(o,t);return o&&e_(o)&&eH(o)&&!ew(o)?n:o||function(e){let t=eR(e);for(;ec(t)&&!e_(t);){if(ew(t))return t;if(eh(t))break;t=eR(t)}return null}(e)||n}let eK=async function(e){let t=this.getOffsetParent||eB,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=ec(t),o=es(t),a="fixed"===r,i=eL(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=A(0);if(n||!n&&!a)if(("body"!==ea(t)||ef(o))&&(s=eC(t)),n){let e=eL(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=eT(o));a&&!n&&o&&(l.x=eT(o));let d=!o||n||a?A(0):eI(o,s);return{x:i.left+s.scrollLeft-l.x-d.x,y:i.top+s.scrollTop-l.y-d.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},e$={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a="fixed"===o,i=es(n),s=!!t&&eh(t.floating);if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=A(1),c=A(0),u=ec(n);if((u||!u&&!a)&&(("body"!==ea(n)||ef(i))&&(l=eC(n)),ec(n))){let e=eL(n);d=eP(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let p=!i||u||a?A(0):eI(i,l);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+p.x,y:r.y*d.y-l.scrollTop*d.y+c.y+p.y}},getDocumentElement:es,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a=[..."clippingAncestors"===r?eh(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=eS(e,[],!1).filter(e=>ed(e)&&"body"!==ea(e)),o=null,a="fixed"===ej(e).position,i=a?eR(e):e;for(;ed(i)&&!e_(i);){let t=ej(i),r=ew(i);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&!!o&&eO.has(o.position)||ef(i)&&!r&&function e(t,r){let n=eR(t);return!(n===r||!ed(n)||e_(n))&&("fixed"===ej(n).position||e(n,r))}(e,i))?n=n.filter(e=>e!==i):o=t,i=eR(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((e,r)=>{let n=eF(t,r,o);return e.top=M(n.top,e.top),e.right=E(n.right,e.right),e.bottom=E(n.bottom,e.bottom),e.left=M(n.left,e.left),e},eF(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eB,getElementRects:eK,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=eE(e);return{width:t,height:r}},getScale:eP,isElement:ed,isRTL:function(e){return"rtl"===ej(e).direction}};function eG(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eU=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=I(e,t)||{};if(null==d)return{};let u=Y(c),p={x:r,y:n},f=H(K(o)),m=z(f),g=await i.getDimensions(d),h="y"===f,x=h?"clientHeight":"clientWidth",b=a.reference[m]+a.reference[f]-p[f]-a.floating[m],v=p[f]-a.reference[f],w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(d)),y=w?w[x]:0;y&&await (null==i.isElement?void 0:i.isElement(w))||(y=s.floating[x]||a.floating[m]);let k=y/2-g[m]/2-1,_=E(u[h?"top":"left"],k),j=E(u[h?"bottom":"right"],k),C=y-g[m]-j,R=y/2-g[m]/2+(b/2-v/2),S=M(_,E(R,C)),N=!l.arrow&&null!=F(o)&&R!==S&&a.reference[m]/2-(R<_?_:j)-g[m]/2<0,P=N?R<_?R-_:R-C:0;return{[f]:p[f]+P,data:{[f]:S,centerOffset:R-S-P,...N&&{alignmentOffset:P}},reset:N}}});var eW=e.i(74080),eV="u">typeof document?r.useLayoutEffect:function(){};function eX(e,t){let r,n,o;if(e===t)return!0;
1if(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((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eX(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!eX(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eY(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eq(e,t){let r=eY(e);return Math.round(t*r)/r}function eZ(e){let t=r.useRef(e);return eV(()=>{t.current=e}),t}var eJ=r.forwardRef((e,r)=>{let{children:n,width:o=10,height:a=5,...i}=e;return(0,t.jsx)(y.Primitive.svg,{...i,ref:r,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,t.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eJ.displayName="Arrow";var eQ=e.i(30207),e0=e.i(34620),e1="Popper",[e2,e5]=(0,v.createContextScope)(e1),[e4,e8]=e2(e1),e6=e=>{let{__scopePopper:n,children:o}=e,[a,i]=r.useState(null);return(0,t.jsx)(e4,{scope:n,anchor:a,onAnchorChange:i,children:o})};e6.displayName=e1;var e3="PopperAnchor",e7=r.forwardRef((e,n)=>{let{__scopePopper:o,virtualRef:a,...i}=e,s=e8(e3,o),l=r.useRef(null),d=(0,b.useComposedRefs)(n,l),c=r.useRef(null);return r.useEffect(()=>{let e=c.current;c.current=a?.current||l.current,e!==c.current&&s.onAnchorChange(c.current)}),a?null:(0,t.jsx)(y.Primitive.div,{...i,ref:d})});e7.displayName=e3;var e9="PopperContent",[te,tt]=e2(e9),tr=r.forwardRef((e,n)=>{var o,a,i,s,l,d,c,u,p,f,m,g,h;let{__scopePopper:x,side:v="bottom",sideOffset:w=0,align:k="center",alignOffset:_=0,arrowPadding:j=0,avoidCollisions:C=!0,collisionBoundary:R=[],collisionPadding:S=0,sticky:N="partial",hideWhenDetached:P=!1,updatePositionStrategy:A="optimized",onPlaced:L,...T}=e,B=e8(e9,x),[Y,q]=r.useState(null),Z=(0,b.useComposedRefs)(n,e=>q(e)),[J,eo]=r.useState(null),ea=function(e){let[t,n]=r.useState(void 0);return(0,e0.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(J),ei=ea?.width??0,el=ea?.height??0,ed="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},ec=Array.isArray(R)?R:[R],eu=ec.length>0,ep={padding:ed,boundary:ec.filter(ti),altBoundary:eu},{refs:ef,floatingStyles:em,placement:eg,isPositioned:eh,middlewareData:ex}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:d,open:c}=e,[u,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=r.useState(o);eX(f,o)||m(o);let[g,h]=r.useState(null),[x,b]=r.useState(null),v=r.useCallback(e=>{e!==_.current&&(_.current=e,h(e))},[]),w=r.useCallback(e=>{e!==j.current&&(j.current=e,b(e))},[]),y=i||g,k=s||x,_=r.useRef(null),j=r.useRef(null),C=r.useRef(u),R=null!=d,S=eZ(d),N=eZ(a),E=eZ(c),M=r.useCallback(()=>{var e,r;let o,a,i;if(!_.current||!j.current)return;let s={placement:t,strategy:n,middleware:f};N.current&&(s.platform=N.current),(e=_.current,r=j.current,o=new Map,i={...(a={platform:e$,...s}).platform,_c:o},Q(e,r,{...a,platform:i})).then(e=>{let t={...e,isPositioned:!1!==E.current};P.current&&!eX(C.current,t)&&(C.current=t,eW.flushSync(()=>{p(t)}))})},[f,t,n,N,E]);eV(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let P=r.useRef(!1);eV(()=>(P.current=!0,()=>{P.current=!1}),[]),eV(()=>{if(y&&(_.current=y),k&&(j.current=k),y&&k){if(S.current)return S.current(y,k,M);M()}},[y,k,M,S,R]);let D=r.useMemo(()=>({reference:_,floating:j,setReference:v,setFloating:w}),[v,w]),A=r.useMemo(()=>({reference:y,floating:k}),[y,k]),L=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=eq(A.floating,u.x),r=eq(A.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eY(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,A.floating,u.x,u.y]);return r.useMemo(()=>({...u,update:M,refs:D,elements:A,floatingStyles:L}),[u,M,D,A,L])}({strategy:"fixed",placement:v+("center"!==k?"-"+k:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,c=eM(e),u=a||i?[...c?eS(c):[],...eS(t)]:[];
1u.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});let p=c&&l?function(e,t){let r,n=null,o=es(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let d=e.getBoundingClientRect(),{left:c,top:u,width:p,height:f}=d;if(s||t(),!p||!f)return;let m={rootMargin:-D(u)+"px "+-D(o.clientWidth-(c+p))+"px "+-D(o.clientHeight-(u+f))+"px "+-D(c)+"px",threshold:M(0,E(1,l))||1},g=!0;function h(t){let n=t[0].intersectionRatio;if(n!==l){if(!g)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||eG(d,e.getBoundingClientRect())||i(),g=!1}try{n=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(h,m)}n.observe(e)}(!0),a}(c,r):null,f=-1,m=null;s&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!d&&m.observe(c),m.observe(t));let g=d?eL(e):null;return d&&function t(){let n=eL(e);g&&!eG(g,n)&&r(),g=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{a&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===A}),elements:{reference:B.anchor},middleware:[{...{name:"offset",options:a=o={mainAxis:w+el,alignmentAxis:_},async fn(e){var t,r;let{x:n,y:o,placement:i,middlewareData:s}=e,l=await en(e,a);return i===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:i}}}},options:[o,void 0]},C&&{...{name:"shift",options:l=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===N?{...(i=void 0,{options:i={},fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=I(i,e),c={x:t,y:r},u=K(n),p=H(u),f=c[p],m=c[u],g=I(s,e),h="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+h.mainAxis,r=o.reference[p]+o.reference[e]-h.mainAxis;f<t?f=t:f>r&&(f=r)}if(d){var x,b;let e="y"===p?"width":"height",t=er.has(O(n)),r=o.reference[u]-o.floating[e]+(t&&(null==(x=a.offset)?void 0:x[u])||0)+(t?0:h.crossAxis),i=o.reference[u]+o.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[u])||0)-(t?h.crossAxis:0);m<r?m=r:m>i&&(m=i)}return{[p]:f,[u]:m}}}),options:[void 0,void 0]}:void 0,...ep},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=I(l,e),c={x:t,y:r},u=await o.detectOverflow(e,d),p=K(O(n)),f=H(p),m=c[f],g=c[p];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=m+u[e],n=m-u[t];m=M(r,E(m,n))}
1if(i){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=g+u[e],n=g-u[t];g=M(r,E(g,n))}let h=s.fn({...e,[f]:m,[p]:g});return{...h,data:{x:h.x-t,y:h.y-r,enabled:{[f]:a,[p]:i}}}}},options:[s,void 0]},C&&{...{name:"flip",options:c=d={...ep},async fn(e){var t,r,n,o,a,i,s,l;let d,u,p,{placement:f,middlewareData:m,rects:g,initialPlacement:h,platform:x,elements:b}=e,{mainAxis:v=!0,crossAxis:w=!0,fallbackPlacements:y,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:j=!0,...C}=I(c,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let R=O(f),S=K(h),N=O(h)===h,E=await (null==x.isRTL?void 0:x.isRTL(b.floating)),M=y||(N||!j?[X(h)]:(d=X(h),[$(h),d,$(d)])),P="none"!==_;!y&&P&&M.push(...(u=F(h),p=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?U:G;return t?G:U;case"left":case"right":return t?W:V;default:return[]}}(O(h),"start"===_,E),u&&(p=p.map(e=>e+"-"+u),j&&(p=p.concat(p.map($)))),p));let D=[h,...M],A=await x.detectOverflow(e,C),L=[],T=(null==(r=m.flip)?void 0:r.overflows)||[];if(v&&L.push(A[R]),w){let e,t,r,n,o=(i=f,s=g,void 0===(l=E)&&(l=!1),e=F(i),r=z(t=H(K(i))),n="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=X(n)),[n,X(n)]);L.push(A[o[0]],A[o[1]])}if(T=[...T,{placement:f,overflows:L}],!L.every(e=>e<=0)){let e=((null==(n=m.flip)?void 0:n.index)||0)+1,t=D[e];if(t&&("alignment"!==w||S===K(t)||T.every(e=>K(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let r=null==(o=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(k){case"bestFit":{let e=null==(a=T.filter(e=>{if(P){let t=K(e.placement);return t===S||"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:a[0];e&&(r=e);break}case"initialPlacement":r=h}if(f!==r)return{reset:{placement:r}}}return{}}},options:[d,void 0]},{...{name:"size",options:p=u={...ep,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){var t,r;let n,o,{placement:a,rects:i,platform:s,elements:l}=e,{apply:d=()=>{},...c}=I(p,e),u=await s.detectOverflow(e,c),f=O(a),m=F(a),g="y"===K(a),{width:h,height:x}=i.floating;"top"===f||"bottom"===f?(n=f,o=m===(await (null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(o=f,n="end"===m?"top":"bottom");let b=x-u.top-u.bottom,v=h-u.left-u.right,w=E(x-u[n],b),y=E(h-u[o],v),k=!e.middlewareData.shift,_=w,j=y;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(j=v),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(_=b),k&&!m){let e=M(u.left,0),t=M(u.right,0),r=M(u.top,0),n=M(u.bottom,0);g?j=h-2*(0!==e||0!==t?e+t:M(u.left,u.right)):_=x-2*(0!==r||0!==n?r+n:M(u.top,u.bottom))}await d({...e,availableWidth:j,availableHeight:_});let C=await s.getDimensions(l.floating);return h!==C.width||x!==C.height?{reset:{rects:!0}}:{}}},options:[u,void 0]},J&&{...{name:"arrow",options:m=f={element:J,padding:j},fn(e){let{element:t,padding:r}="function"==typeof m?m(e):m;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eU({element:t.current,padding:r}).fn(e):{}:t?eU({element:t,padding:r}).fn(e):{}}},options:[f,void 0]},ts({arrowWidth:ei,arrowHeight:el}),P&&{...{name:"hide",options:h=g={strategy:"referenceHidden",...ep},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...o}=I(h,e);switch(n){case"referenceHidden":{let n=ee(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:et(n)}}}case"escaped":{let n=ee(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:et(n)}}}default:return{}}}},options:[g,void 0]}]}),[eb,ev]=tl(eg),ew=(0,eQ.useCallbackRef)(L);(0,e0.useLayoutEffect)(()=>{eh&&ew?.()},[eh,ew]);let ey=ex.arrow?.x,ek=ex.arrow?.y,e_=ex.arrow?.centerOffset!==0,[ej,eC]=r.useState();return(0,e0.useLayoutEffect)(()=>{Y&&eC(window.getComputedStyle(Y).zIndex)},[Y]),(0,t.jsx)("div",{ref:ef.setFloating,"data-radix-popper-content-wrapper":"",style:{...em,transform:eh?em.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ej,"--radix-popper-transform-origin":[ex.transformOrigin?.x,ex.transformOrigin?.y].join(" "),...ex.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,t.jsx)(te,{scope:x,placedSide:eb,onArrowChange:eo,arrowX:ey,arrowY:ek,shouldHideArrow:e_,children:(0,t.jsx)(y.Primitive.div,{"data-side":eb,"data-align":ev,...T,ref:Z,style:{...T.
1style,animation:eh?void 0:"none"}})})})});tr.displayName=e9;var tn="PopperArrow",to={top:"bottom",right:"left",bottom:"top",left:"right"},ta=r.forwardRef(function(e,r){let{__scopePopper:n,...o}=e,a=tt(tn,n),i=to[a.placedSide];return(0,t.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,t.jsx)(eJ,{...o,ref:r,style:{...o.style,display:"block"}})})});function ti(e){return null!==e}ta.displayName=tn;var ts=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,d]=tl(r),c={start:"0%",center:"50%",end:"100%"}[d],u=(o.arrow?.x??0)+i/2,p=(o.arrow?.y??0)+s/2,f="",m="";return"bottom"===l?(f=a?c:`${u}px`,m=`${-s}px`):"top"===l?(f=a?c:`${u}px`,m=`${n.floating.height+s}px`):"right"===l?(f=`${-s}px`,m=a?c:`${p}px`):"left"===l&&(f=`${n.floating.width+s}px`,m=a?c:`${p}px`),{data:{x:f,y:m}}}});function tl(e){let[t,r="center"]=e.split("-");return[t,r]}var td=e.i(74606),tc=e.i(96626),tu="rovingFocusGroup.onEntryFocus",tp={bubbles:!1,cancelable:!0},tf="RovingFocusGroup",[tm,tg,th]=(0,k.createCollection)(tf),[tx,tb]=(0,v.createContextScope)(tf,[th]),[tv,tw]=tx(tf),ty=r.forwardRef((e,r)=>(0,t.jsx)(tm.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(tm.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(tk,{...e,ref:r})})}));ty.displayName=tf;var tk=r.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,orientation:a,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...f}=e,m=r.useRef(null),g=(0,b.useComposedRefs)(n,m),h=(0,_.useDirection)(s),[v,k]=(0,w.useControllableState)({prop:l,defaultProp:d??null,onChange:c,caller:tf}),[j,C]=r.useState(!1),R=(0,eQ.useCallbackRef)(u),S=tg(o),N=r.useRef(!1),[E,M]=r.useState(0);return r.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(tu,R),()=>e.removeEventListener(tu,R)},[R]),(0,t.jsx)(tv,{scope:o,orientation:a,dir:h,loop:i,currentTabStopId:v,onItemFocus:r.useCallback(e=>k(e),[k]),onItemShiftTab:r.useCallback(()=>C(!0),[]),onFocusableItemAdd:r.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>M(e=>e-1),[]),children:(0,t.jsx)(y.Primitive.div,{tabIndex:j||0===E?-1:0,"data-orientation":a,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:(0,x.composeEventHandlers)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,x.composeEventHandlers)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(tu,tp);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);tR([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),p)}}N.current=!1}),onBlur:(0,x.composeEventHandlers)(e.onBlur,()=>C(!1))})})}),t_="RovingFocusGroupItem",tj=r.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,focusable:a=!0,active:i=!1,tabStopId:s,children:l,...d}=e,c=(0,S.useId)(),u=s||c,p=tw(t_,o),f=p.currentTabStopId===u,m=tg(o),{onFocusableItemAdd:g,onFocusableItemRemove:h,currentTabStopId:b}=p;return r.useEffect(()=>{if(a)return g(),()=>h()},[a,g,h]),(0,t.jsx)(tm.ItemSlot,{scope:o,id:u,focusable:a,active:i,children:(0,t.jsx)(y.Primitive.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...d,ref:n,onMouseDown:(0,x.composeEventHandlers)(e.onMouseDown,e=>{a?p.onItemFocus(u):e.preventDefault()}),onFocus:(0,x.composeEventHandlers)(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tC[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=p.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>tR(o))}}),children:"function"==typeof l?l({isCurrentTabStop:f,hasTabStop:null!=b}):l})})});tj.displayName=t_;var tC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tR(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var tS=e.i(91918),tN=e.i(86312),tE=e.i(85369),tM=["Enter"," "],tP=["ArrowUp","PageDown","End"],tD=["ArrowDown","PageUp","Home",...tP],tA={ltr:[...tM,"ArrowRight"],rtl:[...tM,"ArrowLeft"]},tL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tT="Menu",[tI,tO,tF]=(0,k.createCollection)(tT),[tH,tz]=(0,v.createContextScope)(tT,[tF,e5,tb]),tB=e5(),tK=tb(),[t$,tG]=tH(tT),[tU,tW]=tH(tT),tV=e=>{let{__scopeMenu:n,open:o=!1,children:a,dir:i,onOpenChange:s,modal:l=!0}=e,d=tB(n),[c,u]=r.useState(null),p=r.useRef(!1),f=(0,eQ.useCallbackRef)(s),m=(0,_.useDirection)(i);return r.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;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})}},[]),(0,t.jsx)(e6,{...d,children:(0,t.jsx)(t$,{scope:n,open:o,onOpenChange:f,content:c,onContentChange:u,children:(0,t.jsx)(tU,{scope:n,onClose:r.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:m,modal:l,children:a})})})};tV.displayName=tT;var tX=r.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,a=tB(n);return(0,t.jsx)(e7,{...a,...o,ref:r})});tX.displayName="MenuAnchor";var tY="MenuPortal",[tq,tZ]=tH(tY,{forceMount:void 0}),tJ=e=>{let{__scopeMenu:r,forceMount:n,children:o,container:a}=e,i=tG(tY,r);return(0,t.jsx)(tq,{scope:r,forceMount:n,children:(0,t.jsx)(tc.Presence,{present:n||i.open,children:(0,t.jsx)(td.Portal,{asChild:!0,container:a,children:o})})})};tJ.displayName=tY;var tQ="MenuContent",[t0,t1]=tH(tQ),t2=r.forwardRef((e,r)=>{let n=tZ(tQ,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,i=tG(tQ,e.__scopeMenu),s=tW(tQ,e.__scopeMenu);return(0,t.jsx)(tI.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(tc.Presence,{present:o||i.open,children:(0,t.jsx)(tI.Slot,{scope:e.__scopeMenu,children:s.modal?(0,t.jsx)(t5,{...a,ref:r}):(0,t.jsx)(t4,{...a,ref:r})})})})}),t5=r.forwardRef((e,n)=>{let o=tG(tQ,e.__scopeMenu),a=r.useRef(null),i=(0,b.useComposedRefs)(n,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,tN.hideOthers)(e)},[]),(0,t.jsx)(t6,{...e,ref:i,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:(0,x.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),t4=r.forwardRef((e,r)=>{let n=tG(tQ,e.__scopeMenu);return(0,t.jsx)(t6,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),t8=(0,tS.createSlot)("MenuContent.ScrollLock"),t6=r.forwardRef((e,n)=>{let{__scopeMenu:o,loop:a=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:h,...v}=e,w=tG(tQ,o),y=tW(tQ,o),k=tB(o),_=tK(o),S=tO(o),[N,E]=r.useState(null),M=r.useRef(null),P=(0,b.useComposedRefs)(n,M,w.onContentChange),D=r.useRef(0),A=r.useRef(""),L=r.useRef(0),T=r.useRef(null),I=r.useRef("right"),O=r.useRef(0),F=h?tE.RemoveScroll:r.Fragment;r.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,C.useFocusGuards)();let H=r.useCallback(e=>{var t,r;return I.current===T.current?.side&&(t=e,!!(r=T.current?.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],s=t[a],l=i.x,d=i.y,c=s.x,u=s.y;d>n!=u>n&&r<(c-l)*(n-d)/(u-d)+l&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,t.jsx)(t0,{scope:o,searchRef:A,onItemEnter:r.useCallback(e=>{H(e)&&e.preventDefault()},[H]),onItemLeave:r.useCallback(e=>{H(e)||(M.current?.focus(),E(null))},[H]),onTriggerLeave:r.useCallback(e=>{H(e)&&e.preventDefault()},[H]),pointerGraceTimerRef:L,onPointerGraceIntentChange:r.useCallback(e=>{T.current=e},[]),children:(0,t.jsx)(F,{...h?{as:t8,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(R.FocusScope,{asChild:!0,trapped:i,onMountAutoFocus:(0,x.composeEventHandlers)(s,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:(0,t.jsx)(j.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:g,children:(0,t.jsx)(ty,{asChild:!0,..._,dir:y.dir,orientation:"vertical",loop:a,currentTabStopId:N,onCurrentTabStopIdChange:E,onEntryFocus:(0,x.composeEventHandlers)(c,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(tr,{role:"menu","aria-orientation":"vertical","data-state":rj(w.open),"data-radix-menu-content":"",dir:y.dir,...k,...v,ref:P,style:{outline:"none",...v.style},onKeyDown:(0,x.composeEventHandlers)(v.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
1y.length;if(t){var o;let t,a,i,s,l,d;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=A.current+o,a=S().filter(e=>!e.disabled),i=document.activeElement,s=a.find(e=>e.ref.current===i)?.textValue,l=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,i=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let s=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}(a.map(e=>e.textValue),t,s),d=a.find(e=>e.textValue===l)?.ref.current,function e(t){A.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(t),d&&setTimeout(()=>d.focus()))}let a=M.current;if(e.target!==a||!tD.includes(e.key))return;e.preventDefault();let i=S().filter(e=>!e.disabled).map(e=>e.ref.current);tP.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,x.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),A.current="")}),onPointerMove:(0,x.composeEventHandlers)(e.onPointerMove,rS(e=>{let t=e.target,r=O.current!==e.clientX;e.currentTarget.contains(t)&&r&&(I.current=e.clientX>O.current?"right":"left",O.current=e.clientX)}))})})})})})})});t2.displayName=tQ;var t3=r.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(y.Primitive.div,{role:"group",...o,ref:r})});t3.displayName="MenuGroup";var t7=r.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(y.Primitive.div,{...o,ref:r})});t7.displayName="MenuLabel";var t9="MenuItem",re="menu.itemSelect",rt=r.forwardRef((e,n)=>{let{disabled:o=!1,onSelect:a,...i}=e,s=r.useRef(null),l=tW(t9,e.__scopeMenu),d=t1(t9,e.__scopeMenu),c=(0,b.useComposedRefs)(n,s),u=r.useRef(!1);return(0,t.jsx)(rr,{...i,ref:c,disabled:o,onClick:(0,x.composeEventHandlers)(e.onClick,()=>{let e=s.current;if(!o&&e){let t=new CustomEvent(re,{bubbles:!0,cancelable:!0});e.addEventListener(re,e=>a?.(e),{once:!0}),(0,y.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?u.current=!1:l.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:(0,x.composeEventHandlers)(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;o||t&&" "===e.key||tM.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});rt.displayName=t9;var rr=r.forwardRef((e,n)=>{let{__scopeMenu:o,disabled:a=!1,textValue:i,...s}=e,l=t1(t9,o),d=tK(o),c=r.useRef(null),u=(0,b.useComposedRefs)(n,c),[p,f]=r.useState(!1),[m,g]=r.useState("");return r.useEffect(()=>{let e=c.current;e&&g((e.textContent??"").trim())},[s.children]),(0,t.jsx)(tI.ItemSlot,{scope:o,disabled:a,textValue:i??m,children:(0,t.jsx)(tj,{asChild:!0,...d,focusable:!a,children:(0,t.jsx)(y.Primitive.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:u,onPointerMove:(0,x.composeEventHandlers)(e.onPointerMove,rS(e=>{a?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,x.composeEventHandlers)(e.onPointerLeave,rS(e=>l.onItemLeave(e))),onFocus:(0,x.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,x.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),rn=r.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:o,...a}=e;return(0,t.jsx)(ru,{scope:e.__scopeMenu,checked:n,children:(0,t.jsx)(rt,{role:"menuitemcheckbox","aria-checked":rC(n)?"mixed":n,...a,ref:r,"data-state":rR(n),onSelect:(0,x.composeEventHandlers)(a.onSelect,()=>o?.(!!rC(n)||!n),{checkForDefaultPrevented:!1})})})});rn.displayName="MenuCheckboxItem";var ro="MenuRadioGroup",[ra,ri]=tH(ro,{value:void 0,onValueChange:()=>{}}),rs=r.forwardRef((e,r)=>{let{value:n,onValueChange:o,...a}=e,i=(0,eQ.useCallbackRef)(o);return(0,t.jsx)(ra,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,t.jsx)(t3,{...a,ref:r})})});rs.displayName=ro;var rl="MenuRadioItem",rd=r.forwardRef((e,r)=>{let{value:n,...o}=e,a=ri(rl,e.__scopeMenu),i=n===a.value;return(0,t.jsx)(ru,{scope:e.__scopeMenu,checked:i,children:(0,t.jsx)(rt,{role:"menuitemradio","aria-checked":i,...o,ref:r,"data-state":rR(i),onSelect:(0,x.composeEventHandlers)(o.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});rd.displayName=rl;var rc="MenuItemIndicator",[ru,rp]=tH(rc,{checked:!1}
1),rf=r.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:o,...a}=e,i=rp(rc,n);return(0,t.jsx)(tc.Presence,{present:o||rC(i.checked)||!0===i.checked,children:(0,t.jsx)(y.Primitive.span,{...a,ref:r,"data-state":rR(i.checked)})})});rf.displayName=rc;var rm=r.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(y.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:r})});rm.displayName="MenuSeparator";var rg=r.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,a=tB(n);return(0,t.jsx)(ta,{...a,...o,ref:r})});rg.displayName="MenuArrow";var rh="MenuSub",[rx,rb]=tH(rh),rv=e=>{let{__scopeMenu:n,children:o,open:a=!1,onOpenChange:i}=e,s=tG(rh,n),l=tB(n),[d,c]=r.useState(null),[u,p]=r.useState(null),f=(0,eQ.useCallbackRef)(i);return r.useEffect(()=>(!1===s.open&&f(!1),()=>f(!1)),[s.open,f]),(0,t.jsx)(e6,{...l,children:(0,t.jsx)(t$,{scope:n,open:a,onOpenChange:f,content:u,onContentChange:p,children:(0,t.jsx)(rx,{scope:n,contentId:(0,S.useId)(),triggerId:(0,S.useId)(),trigger:d,onTriggerChange:c,children:o})})})};rv.displayName=rh;var rw="MenuSubTrigger",ry=r.forwardRef((e,n)=>{let o=tG(rw,e.__scopeMenu),a=tW(rw,e.__scopeMenu),i=rb(rw,e.__scopeMenu),s=t1(rw,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:c}=s,u={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),c(null)}},[d,c]),(0,t.jsx)(tX,{asChild:!0,...u,children:(0,t.jsx)(rr,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":i.contentId,"data-state":rj(o.open),...e,ref:(0,b.composeRefs)(n,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:(0,x.composeEventHandlers)(e.onPointerMove,rS(t=>{s.onItemEnter(t),!t.defaultPrevented&&(e.disabled||o.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{o.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,x.composeEventHandlers)(e.onPointerLeave,rS(e=>{p();let t=o.content?.getBoundingClientRect();if(t){let r=o.content?.dataset.side,n="right"===r,a=t[n?"left":"right"],i=t[n?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(n?-5:5),y:e.clientY},{x:a,y:t.top},{x:i,y:t.top},{x:i,y:t.bottom},{x:a,y:t.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==s.searchRef.current;e.disabled||r&&" "===t.key||tA[a.dir].includes(t.key)&&(o.onOpenChange(!0),o.content?.focus(),t.preventDefault())})})})});ry.displayName=rw;var rk="MenuSubContent",r_=r.forwardRef((e,n)=>{let o=tZ(tQ,e.__scopeMenu),{forceMount:a=o.forceMount,...i}=e,s=tG(tQ,e.__scopeMenu),l=tW(tQ,e.__scopeMenu),d=rb(rk,e.__scopeMenu),c=r.useRef(null),u=(0,b.useComposedRefs)(n,c);return(0,t.jsx)(tI.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(tc.Presence,{present:a||s.open,children:(0,t.jsx)(tI.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(t6,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:u,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,x.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,x.composeEventHandlers)(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=tL[l.dir].includes(e.key);t&&r&&(s.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function rj(e){return e?"open":"closed"}function rC(e){return"indeterminate"===e}function rR(e){return rC(e)?"indeterminate":e?"checked":"unchecked"}function rS(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}r_.displayName=rk;var rN="DropdownMenu",[rE,rM]=(0,v.createContextScope)(rN,[tz]),rP=tz(),[rD,rA]=rE(rN),rL=e=>{let{__scopeDropdownMenu:n,children:o,dir:a,open:i,defaultOpen:s,onOpenChange:l,modal:d=!0}=e,c=rP(n),u=r.useRef(null),[p,f]=(0,w.useControllableState)({prop:i,defaultProp:s??!1,onChange:l,caller:rN});return(0,t.jsx)(rD,{scope:n,triggerId:(0,S.useId)(),triggerRef:u,contentId:(0,S.useId)(),open:p,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:d,children:(0,t.jsx)(tV,{...c,open:p,onOpenChange:f,dir:a,modal:d,children:o})})};rL.displayName=rN;var rT="DropdownMenuTrigger",rI=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:o=!1,...a}=e,i=rA(rT,n),s=rP(n);return(0,t.jsx)(tX,{asChild:!0,...s,children:(0,t.jsx)(y.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:(0,b.composeRefs)(r,i.triggerRef),onPointerDown:(0,x.composeEventHandlers)(e.onPointerDown,e=>{!o&&0===e.button&&!1===e.ctrlKey&&(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,e=>{!o&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});rI.displayName=rT;var rO=e=>{let{__scopeDropdownMenu:r,...n}=e,o=rP(r);return(0,t.jsx)(tJ,{...o,...n})};rO.displayName="DropdownMenuPortal";var rF="DropdownMenuContent",rH=r.forwardRef((e,n)=>{let{__scopeDropdownMenu:o,...a}=e,i=rA(rF,o),s=rP(o),l=r.useRef(!1);return(0,t.jsx)(t2,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...a,ref:n,onCloseAutoFocus:(0,x.composeEventHandlers)(e.onCloseAutoFocus,e=>{l.current||i.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,x.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(l.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)"}})});rH.displayName=rF;var rz=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(t3,{...a,...o,ref:r})});rz.displayName="DropdownMenuGroup";var rB=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(t7,{...a,...o,ref:r})});rB.displayName="DropdownMenuLabel";var rK=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(rt,{...a,...o,ref:r})});rK.displayName="DropdownMenuItem";var r$=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(rn,{...a,...o,ref:r})});r$.displayName="DropdownMenuCheckboxItem";var rG=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(rs,{...a,...o,ref:r})});rG.displayName="DropdownMenuRadioGroup";var rU=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(rd,{...a,...o,ref:r})});rU.displayName="DropdownMenuRadioItem";var rW=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(rf,{...a,...o,ref:r})});rW.displayName="DropdownMenuItemIndicator";var rV=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(rm,{...a,...o,ref:r})});rV.displayName="DropdownMenuSeparator";var rX=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(rg,{...a,...o,ref:r})});rX.displayName="DropdownMenuArrow";var rY=e=>{let{__scopeDropdownMenu:r,children:n,open:o,onOpenChange:a,defaultOpen:i}=e,s=rP(r),[l,d]=(0,w.useControllableState)({prop:o,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return(0,t.jsx)(rv,{...s,open:l,onOpenChange:d,children:n})},rq=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(ry,{...a,...o,ref:r})});rq.displayName="DropdownMenuSubTrigger";var rZ=r.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=rP(n);return(0,t.jsx)(r_,{...a,...o,ref:r,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)"}})});rZ.displayName="DropdownMenuSubContent",e.s(["Arrow",()=>rX,"CheckboxItem",()=>r$,"Content",()=>rH,"DropdownMenu",()=>rL,"DropdownMenuArrow",()=>rX,"DropdownMenuCheckboxItem",()=>r$,"DropdownMenuContent",()=>rH,"DropdownMenuGroup",()=>rz,"DropdownMenuItem",()=>rK,"DropdownMenuItemIndicator",()=>rW,"DropdownMenuLabel",()=>rB,"DropdownMenuPortal",()=>rO,"DropdownMenuRadioGroup",()=>rG,"DropdownMenuRadioItem",()=>rU,"DropdownMenuSeparator",()=>rV,"DropdownMenuSub",()=>rY,"DropdownMenuSubContent",()=>rZ,"DropdownMenuSubTrigger",()=>rq,"DropdownMenuTrigger",()=>rI,"Group",()=>rz,"Item",()=>rK,"ItemIndicator",()=>rW,"Label",()=>rB,"Portal",()=>rO,"RadioGroup",()=>rG,"RadioItem",()=>rU,"Root",()=>rL,"Separator",()=>rV,"Sub",()=>rY,"SubContent",()=>rZ,"SubTrigger",()=>rq,"Trigger",()=>rI,"createDropdownMenuScope",()=>rM],40666);var rJ=e.i(40666),rJ=rJ;function rQ({...e}){return(0,t.jsx)(rJ.Root,{"data-slot":"dropdown-menu",...e})}function r0({...e}){return(0,t.jsx)(rJ.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function r1({className:e,sideOffset:r=4,...n}){return(0,t.jsx)(rJ.Portal,{children:(0,t.jsx)(rJ.Content,{"data-slot":"dropdown-menu-content",sideOffset:r,className:(0,m.cn)("bg-popover text-popover-foreground 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
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function r2({className:e,inset:r,variant:n="default",...o}){return(0,t.jsx)(rJ.Item,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":n,className:(0,m.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}var r5=e.i(26999),r5=r5;function r4({...e}){return(0,t.jsx)(r5.Root,{"data-slot":"sheet",...e})}function r8({...e}){return(0,t.jsx)(r5.Trigger,{"data-slot":"sheet-trigger",...e})}function r6({...e}){return(0,t.jsx)(r5.Close,{"data-slot":"sheet-close",...e})}function r3({...e}){return(0,t.jsx)(r5.Portal,{"data-slot":"sheet-portal",...e})}function r7({className:e,...r}){return(0,t.jsx)(r5.Overlay,{"data-slot":"sheet-overlay",className:(0,m.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...r})}function r9({className:e,children:r,side:n="right",showCloseButton:o=!0,...a}){return(0,t.jsxs)(r3,{children:[(0,t.jsx)(r7,{}),(0,t.jsxs)(r5.Content,{"data-slot":"sheet-content",className:(0,m.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===n&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===n&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===n&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===n&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...a,children:[r,o&&(0,t.jsxs)(r5.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(p.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function ne({className:e,...r}){return(0,t.jsx)(r5.Title,{"data-slot":"sheet-title",className:(0,m.cn)("text-foreground font-semibold",e),...r})}var nt=e.i(29755),nr=e.i(52574);let nn="capture_locale_manual";function no(e){try{localStorage.setItem(nn,e)}catch{}document.cookie=`${nn}=${e}; path=/; max-age=31536000; SameSite=Lax`}function na(){var e;if("u"<typeof document)return null;let t=document.cookie.match(RegExp(`(?:^|; )${nn}=([^;]*)`));return(e=t?.[1]?decodeURIComponent(t[1]):void 0)&&nr.locales.includes(e)?e:null}nr.locales,e.s(["LOCALE_MANUAL_STORAGE_KEY",0,nn,"persistManualLocalePreference",()=>no,"readManualLocaleFromBrowserCookie",()=>na],79356);var ni=e.i(50380),ns=e.i(71532);let nl=(0,m.cn)("group fixed z-50 flex min-h-14 w-full shrink-0 items-center gap-2 overflow-hidden max-md:justify-between md:justify-start","bg-gradient-to-b from-primary/[0.11] via-background/85 to-background/98","backdrop-blur-xl backdrop-saturate-[1.65]","border-b border-primary/18 shadow-[0_1px_0_0_rgba(186,147,217,0.14),0_8px_32px_-8px_rgba(78,61,107,0.08)]","dark:from-primary/[0.09] dar
1k:via-background/50 dark:to-background/65 dark:border-primary/15 dark:shadow-[0_1px_0_0_rgba(186,147,217,0.1)] dark:backdrop-saturate-150","pl-[max(1rem,env(safe-area-inset-left))] pr-[max(0.5rem,env(safe-area-inset-right))] pt-[env(safe-area-inset-top)]","inset-x-0 top-0 transition-all duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]","sm:inset-x-auto sm:left-2 sm:right-2 sm:top-[max(1rem,env(safe-area-inset-top))] sm:w-[calc(100vw-1rem)] sm:min-w-0 sm:mx-auto sm:min-h-16 sm:max-w-6xl sm:rounded-2xl","sm:border sm:border-primary/16 sm:shadow-[0_8px_40px_-6px_rgba(78,61,107,0.12),0_2px_0_0_rgba(255,255,255,0.5)_inset] dark:sm:border-primary/15 dark:sm:shadow-[0_8px_32px_rgba(0,0,0,0.22)]","sm:px-4 md:left-6 md:right-6 md:w-[calc(100vw-3rem)] md:px-6 lg:left-8 lg:right-8 lg:w-[calc(100vw-4rem)]","hover:from-primary/[0.14] hover:via-background/92 hover:to-background","dark:hover:from-primary/[0.11] dark:hover:via-background/55 dark:hover:to-background/72");function nd({appStoreLabel:e,playStoreLabel:r,downloadAppAria:n}){let o="flex size-8 shrink-0 items-center justify-center rounded-lg border border-primary/22 bg-primary/[0.07] text-muted-foreground shadow-[0_1px_2px_rgba(78,61,107,0.06)] transition-colors hover:border-primary/35 hover:bg-primary/[0.14] hover:text-primary hover:shadow-[0_2px_8px_rgba(186,147,217,0.2)] active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background dark:border-primary/20 dark:bg-primary/[0.08] dark:shadow-none dark:hover:bg-primary/15 dark:hover:shadow-none sm:size-9";return(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5",role:"group","aria-label":n,children:[(0,t.jsx)("a",{href:ni.IOS_APP_URL,target:"_blank",rel:"noopener noreferrer",className:o,"aria-label":e,title:e,children:(0,t.jsx)(ns.AppStoreIcon,{className:"size-[18px] text-foreground opacity-90"})}),(0,t.jsx)("a",{href:ni.ANDROID_APP_URL,target:"_blank",rel:"noopener noreferrer",className:o,"aria-label":r,title:r,children:(0,t.jsx)(ns.GooglePlayIcon,{className:"size-[19px]"})})]})}let nc=[{key:"Weddings",slug:"weddings",headerImage:"https://cdn2.capture.party/header-menu/1_weddings.webp"},{key:"Birthdays",slug:"birthdays",headerImage:"https://cdn2.capture.party/header-menu/2_birthdays.webp"},{key:"Baby Showers",slug:"baby-showers",headerImage:"https://cdn2.capture.party/header-menu/3_babyshower.webp"},{key:"Vacations",slug:"vacations",headerImage:"https://cdn2.capture.party/header-menu/4_vacations.webp"},{key:"Festivals",slug:"parties",headerImage:"https://cdn2.capture.party/header-menu/5_festivals.webp"},{key:"Corporate",slug:"corporate",headerImage:"https://cdn2.capture.party/header-menu/6_corporate_events.webp"}];function nu({useCasesPath:e,items:o,previewEyebrow:a,onLinkClick:i}){let[s,l]=r.useState(0),[d,c]=r.useState(!1),u=o[s],p=u?.key??"",f=u?.headerImage;return r.useEffect(()=>c(!1),[s]),(0,t.jsxs)("div",{className:(0,m.cn)("flex max-h-[min(70vh,28rem)] min-w-0 w-full max-w-[min(90vw,560px)] overflow-hidden rounded-xl","shadow-[inset_0_0_0_1px_rgba(255,255,255,0.55)] dark:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.08)]"),children:[(0,t.jsx)("div",{className:(0,m.cn)("flex min-h-0 min-w-0 flex-1 flex-col gap-1.5 overflow-y-auto p-1.5 sm:p-2","border-r border-primary/12 dark:border-white/10","bg-gradient-to-br from-primary/[0.08] via-background/35 to-background/55","dark:from-primary/[0.1] dark:via-background/25 dark:to-background/40"),children:o.map(({key:r,slug:o},a)=>(0,t.jsx)(n.default,{href:`${e}/${o}`,onClick:i,onMouseEnter:()=>l(a),className:(0,m.cn)("flex min-h-11 shrink-0 items-center rounded-xl px-3.5 text-sm font-medium leading-normal tracking-tight outline-none transition-[background-color,box-shadow,color,backdrop-filter] duration-200 sm:min-h-12 sm:px-4","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background/90",s===a?(0,m.cn)("text-foreground backdrop-blur-md","bg-background/72 shadow-[0_2px_14px_-6px_rgba(78,61,107,0.22),inset_0_0_0_1px_rgba(186,147,217,0.32)]","dark:bg-background/48 dark:shadow-[0_2px_20px_-8px_rgba(0,0,0,0.45),inset_0_0_0_1px_rgba(186,147,217,0.22)]"):(0,m.cn)("text-muted-foreground","hover:bg-background/48 hover:text-foreground hover:shadow-[inset_0_0_0_1px_rgba(186,147,217,0.12)]","dark:hover:bg-background/32 dark:hover:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]")),children:(0,t.jsx)("span",{className:"block w-full truncate py-0.5",children:r})},r))}),(0,t.jsxs)("div",{className:(0,m.cn)("relative w-[200px] min-w-[160px] min-h-[180px] shrink-0 overflow-hidden animate-in fade-in duration-150 sm:w-[240px] sm:min-h-[260px]","shadow-[inset_1px_0_0_rgba(255,255,255,0.35)] dark:shadow-[inset_1px_0_0_rgba(255,255,255,0.1)]"),children:[f&&!d?(0,t.jsx)("img",{src:f,alt:p,title:p,className:"absolute inset-0 h-full w-full object-cover",onError:()=>c(!0)}):(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-muted/90 via-muted/70 to-muted/50 backdrop-blur-sm"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/88 via-black/30 to-black/5","aria-hidden":!0}),!f||d?(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-foreground
1/90 via-foreground/35 to-transparent","aria-hidden":!0}):null,(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-1/3 bg-gradient-to-b from-white/10 to-transparent dark:from-white/[0.07]","aria-hidden":!0}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 p-4 pt-14",children:[(0,t.jsx)("p",{className:(0,m.cn)("text-[10px] font-semibold uppercase tracking-widest",!f||d?"text-background/90":"text-white/85"),children:a}),(0,t.jsx)("h3",{className:(0,m.cn)("mt-1.5 text-lg font-semibold tracking-tight",!f||d?"text-background drop-shadow-none":"text-white drop-shadow-[0_2px_12px_rgba(0,0,0,0.45)]"),children:p})]})]})]})}function np({locale:e,t:a}){let s=(0,nt.getNested)(a,"nav")??{},d=(0,nt.getNested)(a,"hero")??{},c=d.appStore??"App Store",u=d.playStore??"Google Play",g=s.ariaDownloadApp??"Download the app",x=s.useCasePreviewEyebrow??"Use case",b=s.mobileMoreHeading??"More",v=s.ariaOpenMenu??"Open menu",w=s.ariaCloseMenu??"Close menu",y=s.ariaSelectLanguage??"Select language",k=s.ariaToggleTheme??"Toggle theme",_=s.ariaThemeLight??"Switch to light mode",j=s.ariaThemeDark??"Switch to dark mode",{open:C}=(0,h.useCreateEventPopup)(),[R,S]=r.useState(!1),[N,E]=r.useState(!1),M=r.useRef(null),P=r.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=null),E(!0)},[]),D=r.useCallback(()=>{M.current&&clearTimeout(M.current),M.current=setTimeout(()=>E(!1),80)},[]);r.useEffect(()=>{!N&&M.current&&(clearTimeout(M.current),M.current=null)},[N]);let A=r.useMemo(()=>{let e=(0,nt.getNested)(a,"useCases.items");return Array.isArray(e)&&0!==e.length?e.map(e=>({key:"string"==typeof e.name?e.name:String(e.name??""),slug:"string"==typeof e.slug?e.slug:"",headerImage:"string"==typeof e.headerImage?e.headerImage:void 0})):nc},[a]),L=A.slice(0,2),T=(0,nt.getLocalePath)(e,"/use-cases"),I=(0,nt.getLocalePath)(e,"/support");return(0,t.jsxs)("header",{suppressHydrationWarning:!0,className:nl,children:[(0,t.jsxs)("div",{className:"flex min-w-0 shrink items-center gap-2 sm:gap-3 md:min-w-0 md:flex-1 md:justify-start",children:[(0,t.jsxs)(n.default,{href:(0,nt.getLocalePath)(e),className:"flex min-w-0 shrink items-center gap-1.5 font-semibold sm:gap-2",children:[(0,t.jsx)(o.default,{src:"/icons/icon.webp",alt:"Capture",title:"Capture",width:36,height:36,className:"size-8 shrink-0 rounded-lg sm:size-9"}),(0,t.jsx)("span",{className:"font-brand truncate text-base font-bold tracking-wide normal-case sm:text-lg md:text-xl",children:"Capture"})]}),(0,t.jsx)("div",{className:"hidden md:flex md:items-center",children:(0,t.jsx)(nd,{appStoreLabel:c,playStoreLabel:u,downloadAppAria:g})})]}),(0,t.jsxs)("nav",{className:"relative hidden min-w-0 shrink-0 items-center gap-4 md:flex md:gap-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 -z-10 bg-primary/0 blur-2xl transition-all duration-500 group-hover:bg-primary/10","aria-hidden":!0}),(0,t.jsx)(n.default,{href:(0,nt.getLocalePath)(e),className:"text-sm font-normal uppercase text-muted-foreground transition-colors hover:text-primary",children:s.home??"Home"}),(0,t.jsx)(rQ,{open:N,onOpenChange:E,modal:!1,children:(0,t.jsxs)("div",{className:"flex items-center gap-0.5",onMouseEnter:P,onMouseLeave:D,children:[(0,t.jsx)(n.default,{href:T,className:"text-sm font-normal uppercase text-muted-foreground transition-colors hover:text-primary outline-none",children:s.useCases??"Use cases"}),(0,t.jsx)(r0,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground hover:text-primary outline-none","aria-label":s.useCases??"Use cases",children:(0,t.jsx)(i.ChevronDownIcon,{className:(0,m.cn)("size-4 opacity-60 transition-transform duration-200",N&&"rotate-180")})})}),(0,t.jsx)(r1,{align:"center",side:"bottom",sideOffset:8,className:(0,m.cn)("overflow-hidden rounded-2xl border border-primary/12 p-1.5 shadow-[0_16px_48px_rgba(186,147,217,0.18),0_2px_0_0_rgba(255,255,255,0.45)_inset]","bg-gradient-to-b from-background/92 via-background/88 to-background/82","backdrop-blur-3xl backdrop-saturate-[1.65]","transition-all duration-300 dark:border-primary/15 dark:from-background/72 dark:via-background/68 dark:to-background/62 dark:shadow-[0_16px_48px_rgba(0,0,0,0.35),0_1px_0_0_rgba(255,255,255,0.06)_inset]"),children:(0,t.jsx)("div",{onMouseEnter:P,onMouseLeave:D,children:(0,t.jsx)(nu,{useCasesPath:T,items:A,previewEyebrow:x,onLinkClick:()=>E(!1)})})})]})}),(0,t.jsx)(n.default,{href:I,className:"text-sm font-normal uppercase text-muted-foreground transition-colors hover:text-primary",children:s.support??"Supp
1ort"})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5 md:hidden",children:[(0,t.jsx)(nd,{appStoreLabel:c,playStoreLabel:u,downloadAppAria:g}),(0,t.jsxs)(r4,{open:R,onOpenChange:S,children:[(0,t.jsx)(r8,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",className:"size-11 min-w-11 shrink-0 rounded-lg","aria-label":v,children:(0,t.jsx)(l,{className:"size-5"})})}),(0,t.jsxs)(r9,{side:"right",showCloseButton:!1,className:"flex h-[100dvh] max-h-[100dvh] w-[min(100vw-2rem,20rem)] flex-col gap-0 overflow-hidden border-l border-primary/10 bg-background/90 p-0 pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] shadow-[-16px_0_48px_rgba(186,147,217,0.15)] backdrop-blur-3xl backdrop-saturate-150 dark:border-primary/15 dark:bg-background/85 dark:shadow-[-16px_0_48px_rgba(0,0,0,0.35)]",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-3",children:[(0,t.jsx)(ne,{className:"font-brand text-lg font-bold tracking-wide normal-case text-foreground",children:"Capture"}),(0,t.jsx)(r6,{className:"-mr-1 rounded-lg p-2.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none","aria-label":w,children:(0,t.jsx)(p.XIcon,{className:"size-5"})})]}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsxs)("nav",{className:"flex flex-col gap-1 px-4 py-3",children:[(0,t.jsx)(n.default,{href:(0,nt.getLocalePath)(e),onClick:()=>S(!1),className:"rounded-xl px-4 py-3 text-sm font-normal uppercase text-foreground transition-colors hover:bg-muted active:bg-muted",children:s.home??"Home"}),(0,t.jsx)("button",{type:"button",onClick:()=>{S(!1),C()},className:"px-1 text-left text-xs font-normal uppercase tracking-wider text-muted-foreground hover:text-foreground cursor-pointer bg-transparent border-none",children:s.getApp??"App"}),(0,t.jsxs)("a",{href:ni.IOS_APP_URL,target:"_blank",rel:"noopener noreferrer",onClick:()=>S(!1),className:"flex items-center gap-3 rounded-xl border border-primary/15 bg-primary/5 px-4 py-3 transition-colors hover:border-primary/25 hover:bg-primary/10 active:bg-primary/15 dark:border-primary/20 dark:bg-primary/[0.06]",children:[(0,t.jsx)("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg bg-foreground [color:var(--background)]",children:(0,t.jsx)(ns.AppStoreIcon,{className:"size-5"})}),(0,t.jsx)("div",{className:"min-w-0 text-left",children:(0,t.jsx)("p",{className:"truncate text-sm font-semibold py-0.5",children:d.appStore??"App Store"})})]}),(0,t.jsxs)("a",{href:ni.ANDROID_APP_URL,target:"_blank",rel:"noopener noreferrer",onClick:()=>S(!1),className:"flex items-center gap-3 rounded-xl border border-primary/15 bg-primary/5 px-4 py-3 transition-colors hover:border-primary/25 hover:bg-primary/10 active:bg-primary/15 dark:border-primary/20 dark:bg-primary/[0.06]",children:[(0,t.jsx)("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg bg-background p-1 text-foreground",children:(0,t.jsx)(ns.GooglePlayIcon,{className:"size-5"})}),(0,t.jsx)("div",{className:"min-w-0 text-left",children:(0,t.jsx)("p",{className:"truncate text-sm font-semibold py-0.5",children:d.playStore??"Google Play"})})]}),(0,t.jsx)(n.default,{href:T,onClick:()=>S(!1),className:"mt-3 px-1 text-xs font-normal uppercase tracking-wider text-muted-foreground hover:text-foreground",children:s.useCases??"Use cases"}),L.map(({key:e,slug:r})=>(0,t.jsx)(n.default,{href:`${T}/${r}`,onClick:()=>S(!1),className:"rounded-xl px-4 py-3 text-sm text-foreground transition-colors hover:bg-muted active:bg-muted",children:e},e)),(0,t.jsxs)(n.default,{href:T,onClick:()=>S(!1),className:"rounded-xl px-4 py-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground active:bg-muted",children:[s.other??"Other"," â"]}),(0,t.jsx)("span",{className:"mt-3 px-1 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:b}),(0,t.jsx)(n.default,{href:I,onClick:()=>S(!1),className:"rounded-xl px-4 py-3 text-sm font-normal uppercase text-foreground transition-colors hover:bg-muted active:bg-muted",children:s.support??"Supp
1ort"})]}),(0,t.jsxs)("div",{className:"mt-auto border-t border-border px-4 py-3",children:[(0,t.jsx)("span",{className:"mb-2 block px-1 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:s.settings??"Settings"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(nm,{locale:e,ariaSelectLanguage:y}),(0,t.jsx)(ng,{ariaToggle:k,ariaLight:_,ariaDark:j})]})]}),(0,t.jsx)("div",{className:"shrink-0 border-t border-border px-4 py-3",children:(0,t.jsx)(h.CreateEventTrigger,{children:(0,t.jsx)(f.Button,{variant:"cta",className:"w-full rounded-full",onClick:()=>S(!1),children:s.createEvent??"Create Event"})})})]})]})]})]}),(0,t.jsxs)("div",{className:"hidden min-w-0 flex-1 items-center justify-end gap-2 md:flex md:gap-3",children:[(0,t.jsx)(nm,{locale:e,ariaSelectLanguage:y}),(0,t.jsx)(ng,{ariaToggle:k,ariaLight:_,ariaDark:j}),(0,t.jsx)(h.CreateEventTrigger,{children:(0,t.jsx)(f.Button,{variant:"cta",size:"sm",className:"rounded-full",children:s.createEvent??"Create Event"})})]})]})}function nf({locale:e}){let r=e.toUpperCase(),n=r.length>3;return(0,t.jsx)("span",{className:(0,m.cn)("block max-w-full truncate font-bold leading-none",n?"text-[9px] tracking-tight":"text-[11px] tracking-tight"),children:r})}function nm({locale:e,ariaSelectLanguage:n="Select language",triggerClassName:o}){let[i,s]=r.useState(!1),[l,d]=r.useState(!1),[u,p]=r.useState(""),h=r.useRef(null);r.useEffect(()=>s(!0),[]);let x=(0,a.usePathname)(),b=nr.locales.find(e=>x?.startsWith(`/${e}`))||"en",v=e??b,w=x?.replace(RegExp(`^\\/(${nr.locales.join("|")})(?=\\/|$)`),"")||"";""===w&&(w="/");let y=u.trim().toLowerCase(),k=r.useMemo(()=>y?nr.locales.filter(e=>nt.localeLabels[e].toLowerCase().includes(y)||e.toLowerCase().includes(y)):nr.locales,[y]),_=(0,m.cn)(o??"rounded-lg border border-primary/22 bg-primary/[0.07] text-muted-foreground shadow-[0_1px_2px_rgba(78,61,107,0.06)] transition-colors hover:border-primary/35 hover:bg-primary/[0.14] hover:text-primary hover:shadow-[0_2px_8px_rgba(186,147,217,0.18)] dark:border-primary/20 dark:bg-primary/[0.08] dark:shadow-none dark:hover:bg-primary/15 dark:hover:shadow-none","h-8 min-w-8 w-auto max-w-[4.25rem] shrink-0 px-2");return(r.useEffect(()=>{if(!l)return;let e=requestAnimationFrame(()=>h.current?.focus());return()=>cancelAnimationFrame(e)},[l]),i)?(0,t.jsxs)(rQ,{open:l,onOpenChange:e=>{d(e),e||p("")},children:[(0,t.jsx)(r0,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"ghost",size:"sm",className:_,"aria-label":n,children:(0,t.jsx)(nf,{locale:v})})}),(0,t.jsx)(r1,{align:"end",side:"top",sideOffset:10,collisionPadding:12,className:(0,m.cn)("z-[100] w-64 overflow-hidden rounded-2xl border border-primary/12 p-0 shadow-[0_12px_32px_rgba(186,147,217,0.16),0_1px_0_0_rgba(255,255,255,0.45)_inset]","bg-gradient-to-b from-background/92 via-background/88 to-background/82","backdrop-blur-3xl backdrop-saturate-[1.65]","transition-all duration-300 dark:border-primary/15 dark:from-background/72 dark:via-background/68 dark:to-background/62 dark:shadow-[0_12px_32px_rgba(0,0,0,0.35),0_1px_0_0_rgba(255,255,255,0.06)_inset]"),children:(0,t.jsxs)("div",{className:"max-h-72 overflow-y-auto overscroll-contain [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",children:[(0,t.jsx)("div",{className:(0,m.cn)("sticky top-0 z-20 shrink-0 border-b border-primary/10 px-4 pb-3 pt-4","bg-gradient-to-b from-background/98 via-background/96 to-background/92","backdrop-blur-md dark:from-background/88 dark:via-background/84 dark:to-background/80"),children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c,{className:"pointer-events-none absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,t.jsx)(g,{ref:h,type:"search",value:u,onChange:e=>p(e.target.value),placeholder:"Searchâ¦","aria-label":"Search languages",autoComplete:"off",className:"relative z-10 h-9 border-primary/10 bg-background/80 px-3 pl-8 text-xs shadow-none focus-visible:ring-1",onKeyDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})]})}),(0,t.jsx)("div",{className:"px-3 pb-4 pt-3",children:0===k.length?(0,t.jsx)("p",{className:"px-2 py-5 text-center text-sm text-muted-foreground",children:"No languages found"}):(0,t.jsx)("div",{className:"flex flex-col gap-1.5",children:k.map(e=>(0,t.jsx)(r2,{asChild:!0,className:(0,m.cn)("relative z-0 flex min-h-12 cursor-pointer shrink-0 items-center rounded-xl px-4 py-3 text-sm font-medium leading-normal tracking-tight outline-none transition-[background-color,box-shadow,color] duration-150","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background/90",v===e?(0,m.cn)("text-foreground backdrop-blur-md","bg-background/72 shadow-[0_1px_10px_-4px_rgba(78,61,107,0.22),inset_0_0_0_1px_rgba(186,147,217,0.32)]","dark:bg-background/48 dark:shadow-[0_1px_14px_-6px_rgba(0,0,0,0.45),inset_0_0_0_1px_rgba(186,147,217,0.22)]"):(0,m.cn)("text-muted-foreground","hover:bg-background/48 hover:text-foreground hover:shadow-[inset_0_0_0_1px_rgba(186,147,217,0.12)]","dark:hover:bg-background/32 dark:hover:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]","focus:bg-background/48 focus:text-foreground focus:shadow-[inset_0_0_0_1px_rgba(186,147,217,0.12)]","dark:focus:bg-background/32 dark:focus:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]","data-[highlighted]:bg-background/48 data-[highlighted]:text-foreground data-[highlighted]:sha
1dow-[inset_0_0_0_1px_rgba(186,147,217,0.12)]","dark:data-[highlighted]:bg-background/32 dark:data-[highlighted]:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]")),children:(0,t.jsx)("a",{href:(0,nt.getLocalePath)(e,w),onClick:()=>no(e),children:(0,t.jsx)("span",{className:"block w-full truncate",children:nt.localeLabels[e]})})},e))})})]})})]}):(0,t.jsx)(f.Button,{type:"button",variant:"ghost",size:"sm",className:_,"aria-label":n,disabled:!0,children:(0,t.jsx)(nf,{locale:v})})}function ng({ariaToggle:e="Toggle theme",ariaLight:n="Switch to light mode",ariaDark:o="Switch to dark mode",triggerClassName:a}={}){let[i,s]=r.useState(!1),[l,c]=r.useState(!1);r.useEffect(()=>{c(!0);let e=null;try{e=localStorage.getItem("theme")}catch{}let t="light"!==e,r=document.documentElement;r.classList.toggle("dark",t),r.classList.toggle("light",!t),s(t)},[]);let p=a??"size-8 shrink-0 rounded-lg border border-primary/22 bg-primary/[0.07] text-muted-foreground shadow-[0_1px_2px_rgba(78,61,107,0.06)] transition-colors hover:border-primary/35 hover:bg-primary/[0.14] hover:text-primary hover:shadow-[0_2px_8px_rgba(186,147,217,0.18)] dark:border-primary/20 dark:bg-primary/[0.08] dark:shadow-none dark:hover:bg-primary/15 dark:hover:shadow-none";return l?(0,t.jsx)(f.Button,{variant:"ghost",size:"icon-sm",className:p,onClick:()=>{let e=!i;s(e);let t=document.documentElement;t.classList.toggle("dark",e),t.classList.toggle("light",!e);try{localStorage.setItem("theme",e?"dark":"light")}catch{}},"aria-label":i?n:o,children:i?(0,t.jsx)(d,{className:"size-4 text-muted-foreground"}):(0,t.jsx)(u,{className:"size-4 text-muted-foreground"})}):(0,t.jsx)(f.Button,{variant:"ghost",size:"icon-sm",className:p,"aria-label":e,disabled:!0,children:(0,t.jsx)(u,{className:"size-4 text-muted-foreground"})})}e.s(["Header",()=>np,"LocaleSwitcher",()=>nm,"ThemeSwitch",()=>ng,"heroFrostedChipClassName",0,"inline-flex h-8 shrink-0 items-center justify-center rounded-lg border border-primary/40 bg-background/82 backdrop-blur-md text-muted-foreground shadow-[0_2px_12px_rgba(0,0,0,0.14)] ring-1 ring-primary/12 transition-colors hover:border-primary/50 hover:bg-background/92 hover:text-primary hover:shadow-[0_4px_16px_rgba(0,0,0,0.18)] hover:ring-primary/18 active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background dark:border-primary/38 dark:bg-background/72 dark:shadow-[0_2px_18px_rgba(0,0,0,0.45)] dark:ring-primary/15 dark:hover:border-primary/50 dark:hover:bg-background/82 dark:hover:shadow-[0_4px_22px_rgba(0,0,0,0.5)]"],13293)}]);
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.