@golocalinteractive/golocal-cloud-wrapper 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9474,7 +9474,7 @@ const i0 = ({ onLogout: e }) => {
9474
9474
  ] })
9475
9475
  ] })
9476
9476
  ] }) }) : null;
9477
- }, c0 = ({ onLogout: e }) => /* @__PURE__ */ l.jsx("div", { className: "sticky top-0 z-50", children: /* @__PURE__ */ l.jsxs("header", { className: "flex h-16 items-center justify-between border-b bg-white px-4", children: [
9477
+ }, c0 = ({ onLogout: e }) => /* @__PURE__ */ l.jsx("div", { className: "sticky top-0 z-50 bg-white", children: /* @__PURE__ */ l.jsxs("header", { className: "flex h-16 items-center justify-between border-b bg-white px-4", children: [
9478
9478
  /* @__PURE__ */ l.jsxs("div", { className: "flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden", children: [
9479
9479
  /* @__PURE__ */ l.jsx(lp, {}),
9480
9480
  /* @__PURE__ */ l.jsx(hr, { orientation: "vertical" })
@@ -9487,7 +9487,7 @@ const i0 = ({ onLogout: e }) => {
9487
9487
  /* @__PURE__ */ l.jsx(Sp, {}),
9488
9488
  /* @__PURE__ */ l.jsxs(dp, { className: "flex-1 flex flex-col min-w-0", children: [
9489
9489
  /* @__PURE__ */ l.jsx(c0, { onLogout: t }),
9490
- /* @__PURE__ */ l.jsx("main", { className: "flex-1 bg-white", id: "page-content", children: e })
9490
+ /* @__PURE__ */ l.jsx("main", { className: "flex-1 bg-white overflow-auto", id: "page-content", children: e })
9491
9491
  ] })
9492
9492
  ] }) }) });
9493
9493
  function $0({ className: e, ...t }) {
@@ -179,4 +179,4 @@ React keys must be passed directly to JSX without using spread:
179
179
 
180
180
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
181
181
 
182
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dd="DialogDescriptionWarning",fd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ia(dd).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},pd=ya,md=Sa,hd=_a,ja=Ra,La=Ma,Fa=Na,$a=Oa,Va=Pa;const Ha=pd,gd=md,vd=Va,za=hd,sr=u.forwardRef(({className:e,...t},n)=>c.jsx(ja,{className:D("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));sr.displayName=ja.displayName;const bd=Ln("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ir=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(za,{children:[c.jsx(sr,{}),c.jsxs(La,{ref:o,className:D(bd({side:e}),t),...r,children:[n,c.jsxs(Va,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(rl,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ir.displayName=La.displayName;const cr=({className:e,...t})=>c.jsx("div",{className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t});cr.displayName="SheetHeader";const Wa=({className:e,...t})=>c.jsx("div",{className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wa.displayName="SheetFooter";const lr=u.forwardRef(({className:e,...t},n)=>c.jsx(Fa,{ref:n,className:D("text-lg font-semibold text-foreground",e),...t}));lr.displayName=Fa.displayName;const ur=u.forwardRef(({className:e,...t},n)=>c.jsx($a,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));ur.displayName=$a.displayName;function dr({className:e,...t}){return c.jsx("div",{className:D("animate-pulse rounded-md bg-muted",e),...t})}const xd=["top","right","bottom","left"],Ge=Math.min,he=Math.max,tn=Math.round,nn=Math.floor,Me=e=>({x:e,y:e}),wd={left:"right",right:"left",bottom:"top",top:"bottom"},yd={start:"end",end:"start"};function fr(e,t,n){return he(e,Ge(t,n))}function je(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function pr(e){return e==="x"?"y":"x"}function mr(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(Le(e))?"y":"x"}function hr(e){return pr(Ae(e))}function Cd(e,t,n){n===void 0&&(n=!1);const r=ut(e),o=hr(e),a=mr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rn(s)),[s,rn(s)]}function Sd(e){const t=rn(e);return[gr(e),t,gr(t)]}function gr(e){return e.replace(/start|end/g,t=>yd[t])}function Ed(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function _d(e,t,n,r){const o=ut(e);let a=Ed(Le(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(gr)))),a}function rn(e){return e.replace(/left|right|bottom|top/g,t=>wd[t])}function Rd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ga(e){return typeof e!="number"?Rd(e):{top:e,right:e,bottom:e,left:e}}function on(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ba(e,t,n){let{reference:r,floating:o}=e;const a=Ae(t),s=hr(t),i=mr(s),l=Le(t),p=a==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ut(t)){case"start":h[s]-=m*(n&&p?-1:1);break;case"end":h[s]+=m*(n&&p?-1:1);break}return h}const Md=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let p=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ba(p,r,l),m=r,h={},b=0;for(let g=0;g<i.length;g++){const{name:x,fn:v}=i[g],{x:w,y:S,data:E,reset:_}=await v({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:p,platform:s,elements:{reference:e,floating:t}});d=w??d,f=S??f,h={...h,[x]:{...h[x],...E}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(p=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:f}=Ba(p,m,l)),g=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}};async function yt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=je(t,e),b=Ga(h),x=i[m?f==="floating"?"reference":"floating":f],v=on(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:p,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},_=on(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:S,strategy:l}):w);return{top:(v.top-_.top+b.top)/E.y,bottom:(_.bottom-v.bottom+b.bottom)/E.y,left:(v.left-_.left+b.left)/E.x,right:(_.right-v.right+b.right)/E.x}}const Ad=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:p,padding:d=0}=je(e,t)||{};if(p==null)return{};const f=Ga(d),m={x:n,y:r},h=hr(o),b=mr(h),g=await s.getDimensions(p),x=h==="y",v=x?"top":"left",w=x?"bottom":"right",S=x?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[h]-m[h]-a.floating[b],_=m[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p));let M=N?N[S]:0;(!M||!await(s.isElement==null?void 0:s.isElement(N)))&&(M=i.floating[S]||a.floating[b]);const C=E/2-_/2,j=M/2-g[b]/2-1,L=Ge(f[v],j),U=Ge(f[w],j),B=L,z=M-g[b]-U,W=M/2-g[b]/2+C,X=fr(B,W,z),V=!l.arrow&&ut(o)!=null&&W!==X&&a.reference[b]/2-(W<B?L:U)-g[b]/2<0,K=V?W<B?W-B:W-z:0;return{[h]:m[h]+K,data:{[h]:X,centerOffset:W-X-K,...V&&{alignmentOffset:K}},reset:V}}}),Nd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:p}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=je(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Le(o),w=Ae(i),S=Le(i)===i,E=await(l.isRTL==null?void 0:l.isRTL(p.floating)),_=m||(S||!g?[rn(i)]:Sd(i)),N=b!=="none";!m&&N&&_.push(..._d(i,g,b,E));const M=[i,..._],C=await yt(t,x),j=[];let L=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&j.push(C[v]),f){const W=Cd(o,s,E);j.push(C[W[0]],C[W[1]])}if(L=[...L,{placement:o,overflows:j}],!j.every(W=>W<=0)){var U,B;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,X=M[W];if(X&&(!(f==="alignment"?w!==Ae(X):!1)||L.every(R=>R.overflows[0]>0&&Ae(R.placement)===w)))return{data:{index:W,overflows:L},reset:{placement:X}};let V=(B=L.filter(K=>K.overflows[0]<=0).sort((K,R)=>K.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!V)switch(h){case"bestFit":{var z;const K=(z=L.filter(R=>{if(N){const T=Ae(R.placement);return T===w||T==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,y)=>T+y,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:z[0];K&&(V=K);break}case"initialPlacement":V=i;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function Ua(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ka(e){return xd.some(t=>e[t]>=0)}const Td=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=je(e,t);switch(r){case"referenceHidden":{const a=await yt(t,{...o,elementContext:"reference"}),s=Ua(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ka(s)}}}case"escaped":{const a=await yt(t,{...o,altBoundary:!0}),s=Ua(a,n.floating);return{data:{escapedOffsets:s,escaped:Ka(s)}}}default:return{}}}}};async function Od(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Le(n),i=ut(n),l=Ae(n)==="y",p=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,f=je(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*d,y:m*p}:{x:m*p,y:h*d}}const kd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await Od(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Pd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:x=>{let{x:v,y:w}=x;return{x:v,y:w}}},...l}=je(e,t),p={x:n,y:r},d=await yt(t,l),f=Ae(Le(o)),m=pr(f);let h=p[m],b=p[f];if(a){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=h+d[x],S=h-d[v];h=fr(w,h,S)}if(s){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=b+d[x],S=b-d[v];b=fr(w,b,S)}const g=i.fn({...t,[m]:h,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[f]:s}}}}}},Dd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:p=!0}=je(e,t),d={x:n,y:r},f=Ae(o),m=pr(f);let h=d[m],b=d[f];const g=je(i,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=m==="y"?"height":"width",E=a.reference[m]-a.floating[S]+x.mainAxis,_=a.reference[m]+a.reference[S]-x.mainAxis;h<E?h=E:h>_&&(h=_)}if(p){var v,w;const S=m==="y"?"width":"height",E=["top","left"].includes(Le(o)),_=a.reference[f]-a.floating[S]+(E&&((v=s.offset)==null?void 0:v[f])||0)+(E?0:x.crossAxis),N=a.reference[f]+a.reference[S]+(E?0:((w=s.offset)==null?void 0:w[f])||0)-(E?x.crossAxis:0);b<_?b=_:b>N&&(b=N)}return{[m]:h,[f]:b}}}},Id=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...p}=je(e,t),d=await yt(t,p),f=Le(o),m=ut(o),h=Ae(o)==="y",{width:b,height:g}=a.floating;let x,v;f==="top"||f==="bottom"?(x=f,v=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,x=m==="end"?"top":"bottom");const w=g-d.top-d.bottom,S=b-d.left-d.right,E=Ge(g-d[x],w),_=Ge(b-d[v],S),N=!t.middlewareData.shift;let M=E,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=w),N&&!m){const L=he(d.left,0),U=he(d.right,0),B=he(d.top,0),z=he(d.bottom,0);h?C=b-2*(L!==0||U!==0?L+U:he(d.left,d.right)):M=g-2*(B!==0||z!==0?B+z:he(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:M});const j=await s.getDimensions(i.floating);return b!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function an(){return typeof window<"u"}function dt(e){return Ya(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(Ya(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ya(e){return an()?e instanceof Node||e instanceof ge(e).Node:!1}function Ce(e){return an()?e instanceof Element||e instanceof ge(e).Element:!1}function Te(e){return an()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function qa(e){return!an()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function jd(e){return["table","td","th"].includes(dt(e))}function sn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function vr(e){const t=br(),n=Ce(e)?Se(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ld(e){let t=Be(e);for(;Te(t)&&!ft(t);){if(vr(t))return t;if(sn(t))return null;t=Be(t)}return null}function br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ft(e){return["html","body","#document"].includes(dt(e))}function Se(e){return ge(e).getComputedStyle(e)}function cn(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qa(e)&&e.host||Ne(e);return qa(t)?t.host:t}function Xa(e){const t=Be(e);return ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&Ct(t)?t:Xa(t)}function St(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ge(o);if(a){const i=xr(s);return t.concat(s,s.visualViewport||[],Ct(o)?o:[],i&&n?St(i):[])}return t.concat(o,St(o,[],n))}function xr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Za(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Te(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=tn(n)!==a||tn(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function wr(e){return Ce(e)?e:e.contextElement}function pt(e){const t=wr(e);if(!Te(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Za(t);let s=(a?tn(n.width):n.width)/r,i=(a?tn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Fd=Me(0);function Ja(e){const t=ge(e);return!br()||!t.visualViewport?Fd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $d(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=wr(e);let s=Me(1);t&&(r?Ce(r)&&(s=pt(r)):s=pt(e));const i=$d(a,n,r)?Ja(a):Me(0);let l=(o.left+i.x)/s.x,p=(o.top+i.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){const m=ge(a),h=r&&Ce(r)?ge(r):r;let b=m,g=xr(b);for(;g&&r&&h!==b;){const x=pt(g),v=g.getBoundingClientRect(),w=Se(g),S=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*x.x,E=v.top+(g.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,p*=x.y,d*=x.x,f*=x.y,l+=S,p+=E,b=ge(g),g=xr(b)}}return on({width:d,height:f,x:l,y:p})}function yr(e,t){const n=cn(e).scrollLeft;return t?t.left+n:Je(Ne(e)).left+n}function Qa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:yr(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Vd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Ne(r),i=t?sn(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},p=Me(1);const d=Me(0),f=Te(r);if((f||!f&&!a)&&((dt(r)!=="body"||Ct(s))&&(l=cn(r)),Te(r))){const h=Je(r);p=pt(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=s&&!f&&!a?Qa(s,l,!0):Me(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-l.scrollLeft*p.x+d.x+m.x,y:n.y*p.y-l.scrollTop*p.y+d.y+m.y}}function Hd(e){return Array.from(e.getClientRects())}function zd(e){const t=Ne(e),n=cn(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+yr(e);const i=-n.scrollTop;return Se(r).direction==="rtl"&&(s+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function Wd(e,t){const n=ge(e),r=Ne(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=br();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function Gd(e,t){const n=Je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Te(e)?pt(e):Me(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,p=r*a.y;return{width:s,height:i,x:l,y:p}}function es(e,t,n){let r;if(t==="viewport")r=Wd(e,n);else if(t==="document")r=zd(Ne(e));else if(Ce(t))r=Gd(t,n);else{const o=Ja(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return on(r)}function ts(e,t){const n=Be(e);return n===t||!Ce(n)||ft(n)?!1:Se(n).position==="fixed"||ts(n,t)}function Bd(e,t){const n=t.get(e);if(n)return n;let r=St(e,[],!1).filter(i=>Ce(i)&&dt(i)!=="body"),o=null;const a=Se(e).position==="fixed";let s=a?Be(e):e;for(;Ce(s)&&!ft(s);){const i=Se(s),l=vr(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ct(s)&&!l&&ts(e,s))?r=r.filter(d=>d!==s):o=i,s=Be(s)}return t.set(e,r),r}function Ud(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?sn(t)?[]:Bd(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((p,d)=>{const f=es(t,d,o);return p.top=he(f.top,p.top),p.right=Ge(f.right,p.right),p.bottom=Ge(f.bottom,p.bottom),p.left=he(f.left,p.left),p},es(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Kd(e){const{width:t,height:n}=Za(e);return{width:t,height:n}}function Yd(e,t,n){const r=Te(t),o=Ne(t),a=n==="fixed",s=Je(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Me(0);function p(){l.x=yr(o)}if(r||!r&&!a)if((dt(t)!=="body"||Ct(o))&&(i=cn(t)),r){const h=Je(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&p();a&&!r&&o&&p();const d=o&&!r&&!a?Qa(o,i):Me(0),f=s.left+i.scrollLeft-l.x-d.x,m=s.top+i.scrollTop-l.y-d.y;return{x:f,y:m,width:s.width,height:s.height}}function Cr(e){return Se(e).position==="static"}function ns(e,t){if(!Te(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function rs(e,t){const n=ge(e);if(sn(e))return n;if(!Te(e)){let o=Be(e);for(;o&&!ft(o);){if(Ce(o)&&!Cr(o))return o;o=Be(o)}return n}let r=ns(e,t);for(;r&&jd(r)&&Cr(r);)r=ns(r,t);return r&&ft(r)&&Cr(r)&&!vr(r)?n:r||Ld(e)||n}const qd=async function(e){const t=this.getOffsetParent||rs,n=this.getDimensions,r=await n(e.floating);return{reference:Yd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xd(e){return Se(e).direction==="rtl"}const Zd={convertOffsetParentRelativeRectToViewportRelativeRect:Vd,getDocumentElement:Ne,getClippingRect:Ud,getOffsetParent:rs,getElementRects:qd,getClientRects:Hd,getDimensions:Kd,getScale:pt,isElement:Ce,isRTL:Xd};function os(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jd(e,t){let n=null,r;const o=Ne(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const p=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=p;if(i||t(),!m||!h)return;const b=nn(f),g=nn(o.clientWidth-(d+m)),x=nn(o.clientHeight-(f+h)),v=nn(d),S={rootMargin:-b+"px "+-g+"px "+-x+"px "+-v+"px",threshold:he(0,Ge(1,l))||1};let E=!0;function _(N){const M=N[0].intersectionRatio;if(M!==l){if(!E)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!os(p,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return s(!0),a}function Qd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,p=wr(e),d=o||a?[...p?St(p):[],...St(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=p&&i?Jd(p,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===p&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),p&&!l&&h.observe(p),h.observe(t));let b,g=l?Je(e):null;l&&x();function x(){const v=Je(e);g&&!os(g,v)&&n(),g=v,b=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const ef=kd,tf=Pd,nf=Nd,rf=Id,of=Td,as=Ad,af=Dd,sf=(e,t,n)=>{const r=new Map,o={platform:Zd,...n},a={...o.platform,_c:r};return Md(e,t,{...o,platform:a})};var cf=typeof document<"u",lf=function(){},ln=cf?I.useLayoutEffect:lf;function un(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,o;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(!un(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!un(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ss(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function is(e,t){const n=ss(e);return Math.round(t*n)/n}function Sr(e){const t=u.useRef(e);return ln(()=>{t.current=e}),t}function uf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:p}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);un(m,r)||h(r);const[b,g]=u.useState(null),[x,v]=u.useState(null),w=u.useCallback(R=>{R!==N.current&&(N.current=R,g(R))},[]),S=u.useCallback(R=>{R!==M.current&&(M.current=R,v(R))},[]),E=a||b,_=s||x,N=u.useRef(null),M=u.useRef(null),C=u.useRef(d),j=l!=null,L=Sr(l),U=Sr(o),B=Sr(p),z=u.useCallback(()=>{if(!N.current||!M.current)return;const R={placement:t,strategy:n,middleware:m};U.current&&(R.platform=U.current),sf(N.current,M.current,R).then(T=>{const y={...T,isPositioned:B.current!==!1};W.current&&!un(C.current,y)&&(C.current=y,Kr.flushSync(()=>{f(y)}))})},[m,t,n,U,B]);ln(()=>{p===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[p]);const W=u.useRef(!1);ln(()=>(W.current=!0,()=>{W.current=!1}),[]),ln(()=>{if(E&&(N.current=E),_&&(M.current=_),E&&_){if(L.current)return L.current(E,_,z);z()}},[E,_,z,L,j]);const X=u.useMemo(()=>({reference:N,floating:M,setReference:w,setFloating:S}),[w,S]),V=u.useMemo(()=>({reference:E,floating:_}),[E,_]),K=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!V.floating)return R;const T=is(V.floating,d.x),y=is(V.floating,d.y);return i?{...R,transform:"translate("+T+"px, "+y+"px)",...ss(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:y}},[n,i,V.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:z,refs:X,elements:V,floatingStyles:K}),[d,z,X,V,K])}const df=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?as({element:r.current,padding:o}).fn(n):{}:r?as({element:r,padding:o}).fn(n):{}}}},ff=(e,t)=>({...ef(e),options:[e,t]}),pf=(e,t)=>({...tf(e),options:[e,t]}),mf=(e,t)=>({...af(e),options:[e,t]}),hf=(e,t)=>({...nf(e),options:[e,t]}),gf=(e,t)=>({...rf(e),options:[e,t]}),vf=(e,t)=>({...of(e),options:[e,t]}),bf=(e,t)=>({...df(e),options:[e,t]});var xf="Arrow",cs=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(re.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});cs.displayName=xf;var wf=cs;function yf(e){const[t,n]=u.useState(void 0);return ze(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,p=Array.isArray(l)?l[0]:l;s=p.inlineSize,i=p.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Er="Popper",[ls,dn]=Xe(Er),[Cf,us]=ls(Er),ds=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(Cf,{scope:t,anchor:r,onAnchorChange:o,children:n})};ds.displayName=Er;var fs="PopperAnchor",ps=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=us(fs,n),s=u.useRef(null),i=ie(t,s);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(re.div,{...o,ref:i})});ps.displayName=fs;var _r="PopperContent",[Sf,Ef]=ls(_r),ms=u.forwardRef((e,t)=>{var Y,ee,te,se,Ee,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,x=us(_r,n),[v,w]=u.useState(null),S=ie(t,J=>w(J)),[E,_]=u.useState(null),N=yf(E),M=(N==null?void 0:N.width)??0,C=(N==null?void 0:N.height)??0,j=r+(a!=="center"?"-"+a:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(p)?p:[p],B=U.length>0,z={padding:L,boundary:U.filter(Rf),altBoundary:B},{refs:W,floatingStyles:X,placement:V,isPositioned:K,middlewareData:R}=uf({strategy:"fixed",placement:j,whileElementsMounted:(...J)=>Qd(...J,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[ff({mainAxis:o+C,alignmentAxis:s}),l&&pf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?mf():void 0,...z}),l&&hf({...z}),gf({...z,apply:({elements:J,rects:Q,availableWidth:le,availableHeight:oe})=>{const{width:ve,height:Ye}=Q.reference,ae=J.floating.style;ae.setProperty("--radix-popper-available-width",`${le}px`),ae.setProperty("--radix-popper-available-height",`${oe}px`),ae.setProperty("--radix-popper-anchor-width",`${ve}px`),ae.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),E&&bf({element:E,padding:i}),Mf({arrowWidth:M,arrowHeight:C}),m&&vf({strategy:"referenceHidden",...z})]}),[T,y]=vs(V),P=_e(b);ze(()=>{K&&(P==null||P())},[K,P]);const F=(Y=R.arrow)==null?void 0:Y.x,H=(ee=R.arrow)==null?void 0:ee.y,Z=((te=R.arrow)==null?void 0:te.centerOffset)!==0,[ne,ue]=u.useState();return ze(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:K?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ke=R.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Sf,{scope:n,placedSide:T,onArrowChange:_,arrowX:F,arrowY:H,shouldHideArrow:Z,children:c.jsx(re.div,{"data-side":T,"data-align":y,...g,ref:S,style:{...g.style,animation:K?void 0:"none"}})})})});ms.displayName=_r;var hs="PopperArrow",_f={top:"bottom",right:"left",bottom:"top",left:"right"},gs=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ef(hs,r),s=_f[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]: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:c.jsx(wf,{...o,ref:n,style:{...o.style,display:"block"}})})});gs.displayName=hs;function Rf(e){return e!==null}var Mf=e=>({name:"transformOrigin",options:e,fn(t){var x,v,w;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[p,d]=vs(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let b="",g="";return p==="bottom"?(b=s?f:`${m}px`,g=`${-l}px`):p==="top"?(b=s?f:`${m}px`,g=`${r.floating.height+l}px`):p==="right"?(b=`${-l}px`,g=s?f:`${h}px`):p==="left"&&(b=`${r.floating.width+l}px`,g=s?f:`${h}px`),{data:{x:b,y:g}}}});function vs(e){const[t,n="center"]=e.split("-");return[t,n]}var Rr=ds,bs=ps,xs=ms,ws=gs,Af=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Nf="VisuallyHidden",ys=u.forwardRef((e,t)=>c.jsx(re.span,{...e,ref:t,style:{...Af,...e.style}}));ys.displayName=Nf;var Tf=ys,[fn,k0]=Xe("Tooltip",[dn]),pn=dn(),Cs="TooltipProvider",Of=700,Mr="tooltip.open",[kf,Ar]=fn(Cs),Ss=e=>{const{__scopeTooltip:t,delayDuration:n=Of,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(kf,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(p=>{i.current=p},[]),disableHoverableContent:o,children:a})};Ss.displayName=Cs;var Et="Tooltip",[Pf,mn]=fn(Et),Es=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Ar(Et,e.__scopeTooltip),p=pn(t),[d,f]=u.useState(null),m=De(),h=u.useRef(0),b=s??l.disableHoverableContent,g=i??l.delayDuration,x=u.useRef(!1),[v,w]=wt({prop:r,defaultProp:o??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(Mr))):l.onClose(),a==null||a(M)},caller:Et}),S=u.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),E=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,w(!0)},[w]),_=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,w(!0),h.current=0},g)},[g,w]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(Rr,{...p,children:c.jsx(Pf,{scope:t,contentId:m,open:v,stateAttribute:S,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:u.useCallback(()=>{b?_():(window.clearTimeout(h.current),h.current=0)},[_,b]),onOpen:E,onClose:_,disableHoverableContent:b,children:n})})};Es.displayName=Et;var Nr="TooltipTrigger",_s=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mn(Nr,n),a=Ar(Nr,n),s=pn(n),i=u.useRef(null),l=ie(t,i,o.onTriggerChange),p=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>p.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(bs,{asChild:!0,...s,children:c.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:$(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:$(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:$(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:$(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:$(e.onBlur,o.onClose),onClick:$(e.onClick,o.onClose)})})});_s.displayName=Nr;var Df="TooltipPortal",[P0,If]=fn(Df,{forceMount:void 0}),mt="TooltipContent",Rs=u.forwardRef((e,t)=>{const n=If(mt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=mn(mt,e.__scopeTooltip);return c.jsx(Ie,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Ms,{side:o,...a,ref:t}):c.jsx(jf,{side:o,...a,ref:t})})}),jf=u.forwardRef((e,t)=>{const n=mn(mt,e.__scopeTooltip),r=Ar(mt,e.__scopeTooltip),o=u.useRef(null),a=ie(t,o),[s,i]=u.useState(null),{trigger:l,onClose:p}=n,d=o.current,{onPointerInTransitChange:f}=r,m=u.useCallback(()=>{i(null),f(!1)},[f]),h=u.useCallback((b,g)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},w=Hf(v,x.getBoundingClientRect()),S=zf(v,w),E=Wf(g.getBoundingClientRect()),_=Bf([...S,...E]);i(_),f(!0)},[f]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&d){const b=x=>h(x,d),g=x=>h(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",g)}}},[l,d,h,m]),u.useEffect(()=>{if(s){const b=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),S=!Gf(v,s);w?m():S&&(m(),p())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,s,p,m]),c.jsx(Ms,{...e,ref:a})}),[Lf,Ff]=fn(Et,{isInside:!1}),$f=al("TooltipContent"),Ms=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=mn(mt,n),p=pn(n),{onClose:d}=l;return u.useEffect(()=>(document.addEventListener(Mr,d),()=>document.removeEventListener(Mr,d)),[d]),u.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(xs,{"data-state":l.stateAttribute,...p,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx($f,{children:r}),c.jsx(Lf,{scope:n,isInside:!0,children:c.jsx(Tf,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Rs.displayName=mt;var As="TooltipArrow",Vf=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(n);return Ff(As,n).isInside?null:c.jsx(ws,{...o,...r,ref:t})});Vf.displayName=As;function Hf(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function zf(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Wf(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Gf(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function Bf(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Uf(t)}function Uf(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Kf=Ss,Yf=Es,qf=_s,Ns=Rs;const Ts=Kf,Os=Yf,ks=qf,Tr=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Ns,{ref:r,sideOffset:t,className:D("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n}));Tr.displayName=Ns.displayName;const Xf="sidebar_state",Zf=60*60*24*7,Jf="16rem",Qf="18rem",ep="3rem",tp="b",Ps=u.createContext(null);function _t(){const e=u.useContext(Ps);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ds({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=ll(),[l,p]=u.useState(!1),[d,f]=u.useState(e),m=t??d,h=u.useCallback(v=>{const w=typeof v=="function"?v(m):v;n?n(w):f(w),document.cookie=`${Xf}=${w}; path=/; max-age=${Zf}`},[n,m]),b=u.useCallback(()=>i?p(v=>!v):h(v=>!v),[i,h,p]);u.useEffect(()=>{const v=w=>{w.key===tp&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const g=m?"expanded":"collapsed",x=u.useMemo(()=>({state:g,open:m,setOpen:h,isMobile:i,openMobile:l,setOpenMobile:p,toggleSidebar:b}),[g,m,h,i,l,p,b]);return c.jsx(Ps.Provider,{value:x,children:c.jsx(Ts,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Jf,"--sidebar-width-icon":ep,...o},className:D("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Is({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:p}=_t();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:D("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?c.jsx(Ha,{open:l,onOpenChange:p,...a,children:c.jsxs(ir,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Qf},side:e,children:[c.jsxs(cr,{className:"sr-only",children:[c.jsx(lr,{children:"Sidebar"}),c.jsx(ur,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:D("relative w-(--sidebar-width) bg-white transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:D("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function js({className:e,onClick:t,...n}){const{toggleSidebar:r}=_t();return c.jsxs(zt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:D("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(nl,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Ls({className:e,...t}){const{toggleSidebar:n}=_t();return c.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:D("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Fs({className:e,...t}){return c.jsx("main",{"data-slot":"sidebar-inset",className:D("bg-white relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function np({className:e,...t}){return c.jsx(Gn,{"data-slot":"sidebar-input","data-sidebar":"input",className:D("bg-background h-8 w-full shadow-none",e),...t})}function $s({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D("flex flex-col gap-2 p-2",e),...t})}function rp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:D("flex flex-col gap-2 p-2",e),...t})}function op({className:e,...t}){return c.jsx(Wt,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:D("bg-sidebar-border mx-2 w-auto",e),...t})}function Vs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Hs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function ap({className:e,asChild:t=!1,...n}){const r=t?nt:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:D("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function sp({className:e,asChild:t=!1,...n}){const r=t?nt:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function zs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D("w-full text-sm",e),...t})}function ip({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D("flex w-full min-w-0 flex-col gap-1",e),...t})}function cp({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:D("group/menu-item relative",e),...t})}const lp=Ln("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function up({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?nt:"button",{isMobile:l,state:p}=_t(),d=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:D(lp({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Os,{children:[c.jsx(ks,{asChild:!0,children:d}),c.jsx(Tr,{side:"right",align:"center",hidden:p!=="collapsed"||l,...o})]})):d}function dp({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?nt:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function fp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:D("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function pp({className:e,showIcon:t=!1,...n}){const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:D("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(dr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(dr,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function Ws({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:D("border-sidebar-border mx-3 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Gs({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:D("group/menu-sub-item relative",e),...t})}function Bs({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?nt:"a";return c.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}function Us({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:a=!1}){const[s,i]=u.useState(r);return u.useEffect(()=>{a&&i(!0)},[a]),c.jsx(Hs,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between",children:[c.jsxs("a",{href:t,className:D("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"),children:[o&&c.jsx("span",{className:D("text-gray-600"),children:o}),c.jsx("span",{className:D("text-gray-600"),children:e})]}),c.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:l=>{l.preventDefault(),l.stopPropagation(),i(!s)},"aria-label":s?"Collapse section":"Expand section",children:s?c.jsx(Jc,{className:"h-4 w-4"}):c.jsx(yo,{className:"h-4 w-4"})})]}),c.jsx("div",{className:D("overflow-hidden transition-all",s?"max-h-96":"max-h-0"),children:n})]})})}const mp="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function hp(){const[e,t]=I.useState("");return I.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const gp={navMain:[{title:"Essential Insights",url:"/essential-insights/overall-performance",icon:c.jsx(Xc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:c.jsx(Co,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:c.jsx(wo,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:c.jsx(qc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:c.jsx(wo,{className:"h-4 w-4"})},{title:"More Components",url:"/essential-insights/more-components",icon:c.jsx(et,{className:"h-4 w-4"})}]},{title:"Price Monster",url:"/price-monster",icon:c.jsx(Qc,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:c.jsx(Kc,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:c.jsx(Yc,{className:"h-4 w-4"})}]},{title:"CMS",url:"/cms",icon:c.jsx(et,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})}]},{title:"Storage Essentials",url:"/storage-essentials",icon:c.jsx(et,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/storage-essentials/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})}]}]};function vp({...e}){const{isActiveRoute:t}=hp();return c.jsxs(Is,{...e,children:[c.jsx($s,{children:c.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:c.jsx("img",{src:mp,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),c.jsxs(Vs,{children:[c.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:c.jsx("div",{className:"flex flex-col",children:c.jsxs("a",{href:"/",className:D("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors","hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx(Co,{className:D("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-600")}),c.jsx("span",{children:"Home"})]})})}),gp.navMain.map(n=>{const r=t(n.url)||n.items.some(o=>t(o.url));return c.jsx(Us,{title:n.title,url:n.url,icon:n.icon,isActive:r,children:c.jsx(zs,{children:c.jsx(Ws,{children:n.items.map(o=>{const a=t(o.url);return c.jsx(Gs,{children:c.jsx(Bs,{asChild:!0,children:c.jsxs("a",{href:o.url,className:D("flex items-center gap-2 pl-4 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground",a&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx("span",{className:D(a?"text-gli-bluedark":"text-muted-foreground"),children:o.icon}),c.jsx("span",{className:D(a?"text-gli-bluedark":"text-muted-foreground"),children:o.title})]})})},o.title)})})})},n.title)})]}),c.jsx(Ls,{})]})}function Ks(e){const t=e+"CollectionProvider",[n,r]=Xe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:x,children:v}=g,w=I.useRef(null),S=I.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:S,collectionRef:w,children:v})};s.displayName=t;const i=e+"CollectionSlot",l=tt(i),p=I.forwardRef((g,x)=>{const{scope:v,children:w}=g,S=a(i,v),E=ie(x,S.collectionRef);return c.jsx(l,{ref:E,children:w})});p.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=tt(d),h=I.forwardRef((g,x)=>{const{scope:v,children:w,...S}=g,E=I.useRef(null),_=ie(x,E),N=a(d,v);return I.useEffect(()=>(N.itemMap.set(E,{ref:E,...S}),()=>void N.itemMap.delete(E))),c.jsx(m,{[f]:"",ref:_,children:w})});h.displayName=d;function b(g){const x=a(e+"CollectionConsumer",g);return I.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const S=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,M)=>S.indexOf(N.ref.current)-S.indexOf(M.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:p,ItemSlot:h},b,r]}var bp=u.createContext(void 0);function Ys(e){const t=u.useContext(bp);return e||t||"ltr"}var Or="rovingFocusGroup.onEntryFocus",xp={bubbles:!1,cancelable:!0},Rt="RovingFocusGroup",[kr,qs,wp]=Ks(Rt),[yp,Xs]=Xe(Rt,[wp]),[Cp,Sp]=yp(Rt),Zs=u.forwardRef((e,t)=>c.jsx(kr.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(kr.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Ep,{...e,ref:t})})}));Zs.displayName=Rt;var Ep=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:p,preventScrollOnEntryFocus:d=!1,...f}=e,m=u.useRef(null),h=ie(t,m),b=Ys(a),[g,x]=wt({prop:s,defaultProp:i??null,onChange:l,caller:Rt}),[v,w]=u.useState(!1),S=_e(p),E=qs(n),_=u.useRef(!1),[N,M]=u.useState(0);return u.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(Or,S),()=>C.removeEventListener(Or,S)},[S]),c.jsx(Cp,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(C=>x(C),[x]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>M(C=>C+1),[]),onFocusableItemRemove:u.useCallback(()=>M(C=>C-1),[]),children:c.jsx(re.div,{tabIndex:v||N===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:$(e.onMouseDown,()=>{_.current=!0}),onFocus:$(e.onFocus,C=>{const j=!_.current;if(C.target===C.currentTarget&&j&&!v){const L=new CustomEvent(Or,xp);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const U=E().filter(V=>V.focusable),B=U.find(V=>V.active),z=U.find(V=>V.id===g),X=[B,z,...U].filter(Boolean).map(V=>V.ref.current);ei(X,d)}}_.current=!1}),onBlur:$(e.onBlur,()=>w(!1))})})}),Js="RovingFocusGroupItem",Qs=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=De(),p=a||l,d=Sp(Js,n),f=d.currentTabStopId===p,m=qs(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=d;return u.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),c.jsx(kr.ItemSlot,{scope:n,id:p,focusable:r,active:o,children:c.jsx(re.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:$(e.onMouseDown,x=>{r?d.onItemFocus(p):x.preventDefault()}),onFocus:$(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:$(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Mp(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let S=m().filter(E=>E.focusable).map(E=>E.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const E=S.indexOf(x.currentTarget);S=d.loop?Ap(S,E+1):S.slice(E+1)}setTimeout(()=>ei(S))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});Qs.displayName=Js;var _p={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Mp(e,t,n){const r=Rp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _p[r]}function ei(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Np=Zs,Tp=Qs,Pr=["Enter"," "],Op=["ArrowDown","PageUp","Home"],ti=["ArrowUp","PageDown","End"],kp=[...Op,...ti],Pp={ltr:[...Pr,"ArrowRight"],rtl:[...Pr,"ArrowLeft"]},Dp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mt="Menu",[At,Ip,jp]=Ks(Mt),[Qe,ni]=Xe(Mt,[jp,dn,Xs]),Nt=dn(),ri=Xs(),[oi,Ue]=Qe(Mt),[Lp,Tt]=Qe(Mt),ai=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=Nt(t),[l,p]=u.useState(null),d=u.useRef(!1),f=_e(a),m=Ys(o);return u.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(Rr,{...i,children:c.jsx(oi,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:p,children:c.jsx(Lp,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:s,children:r})})})};ai.displayName=Mt;var Fp="MenuAnchor",Dr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Nt(n);return c.jsx(bs,{...o,...r,ref:t})});Dr.displayName=Fp;var Ir="MenuPortal",[$p,si]=Qe(Ir,{forceMount:void 0}),ii=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ue(Ir,t);return c.jsx($p,{scope:t,forceMount:n,children:c.jsx(Ie,{present:n||a.open,children:c.jsx(qn,{asChild:!0,container:o,children:r})})})};ii.displayName=Ir;var be="MenuContent",[Vp,jr]=Qe(be),ci=u.forwardRef((e,t)=>{const n=si(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(be,e.__scopeMenu),s=Tt(be,e.__scopeMenu);return c.jsx(At.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||a.open,children:c.jsx(At.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(Hp,{...o,ref:t}):c.jsx(zp,{...o,ref:t})})})})}),Hp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu),r=u.useRef(null),o=ie(t,r);return u.useEffect(()=>{const a=r.current;if(a)return xa(a)},[]),c.jsx(Lr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),zp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu);return c.jsx(Lr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Wp=tt("MenuContent.ScrollLock"),Lr=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:b,...g}=e,x=Ue(be,n),v=Tt(be,n),w=Nt(n),S=ri(n),E=Ip(n),[_,N]=u.useState(null),M=u.useRef(null),C=ie(t,M,x.onContentChange),j=u.useRef(0),L=u.useRef(""),U=u.useRef(0),B=u.useRef(null),z=u.useRef("right"),W=u.useRef(0),X=b?tr:u.Fragment,V=b?{as:Wp,allowPinchZoom:!0}:void 0,K=T=>{var Y,ee;const y=L.current+T,P=E().filter(te=>!te.disabled),F=document.activeElement,H=(Y=P.find(te=>te.ref.current===F))==null?void 0:Y.textValue,Z=P.map(te=>te.textValue),ne=tm(Z,y,H),ue=(ee=P.find(te=>te.textValue===ne))==null?void 0:ee.ref.current;(function te(se){L.current=se,window.clearTimeout(j.current),se!==""&&(j.current=window.setTimeout(()=>te(""),1e3))})(y),ue&&setTimeout(()=>ue.focus())};u.useEffect(()=>()=>window.clearTimeout(j.current),[]),oa();const R=u.useCallback(T=>{var P,F;return z.current===((P=B.current)==null?void 0:P.side)&&rm(T,(F=B.current)==null?void 0:F.area)},[]);return c.jsx(Vp,{scope:n,searchRef:L,onItemEnter:u.useCallback(T=>{R(T)&&T.preventDefault()},[R]),onItemLeave:u.useCallback(T=>{var y;R(T)||((y=M.current)==null||y.focus(),N(null))},[R]),onTriggerLeave:u.useCallback(T=>{R(T)&&T.preventDefault()},[R]),pointerGraceTimerRef:U,onPointerGraceIntentChange:u.useCallback(T=>{B.current=T},[]),children:c.jsx(X,{...V,children:c.jsx(Yn,{asChild:!0,trapped:o,onMountAutoFocus:$(a,T=>{var y;T.preventDefault(),(y=M.current)==null||y.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:c.jsx(Np,{asChild:!0,...S,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:N,onEntryFocus:$(l,T=>{v.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(xs,{role:"menu","aria-orientation":"vertical","data-state":Ri(x.open),"data-radix-menu-content":"",dir:v.dir,...w,...g,ref:C,style:{outline:"none",...g.style},onKeyDown:$(g.onKeyDown,T=>{const P=T.target.closest("[data-radix-menu-content]")===T.currentTarget,F=T.ctrlKey||T.altKey||T.metaKey,H=T.key.length===1;P&&(T.key==="Tab"&&T.preventDefault(),!F&&H&&K(T.key));const Z=M.current;if(T.target!==Z||!kp.includes(T.key))return;T.preventDefault();const ue=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ti.includes(T.key)&&ue.reverse(),Qp(ue)}),onBlur:$(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(j.current),L.current="")}),onPointerMove:$(e.onPointerMove,kt(T=>{const y=T.target,P=W.current!==T.clientX;if(T.currentTarget.contains(y)&&P){const F=T.clientX>W.current?"right":"left";z.current=F,W.current=T.clientX}}))})})})})})})});ci.displayName=be;var Gp="MenuGroup",Fr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"group",...r,ref:t})});Fr.displayName=Gp;var Bp="MenuLabel",li=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{...r,ref:t})});li.displayName=Bp;var hn="MenuItem",ui="menu.itemSelect",gn=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=Tt(hn,e.__scopeMenu),i=jr(hn,e.__scopeMenu),l=ie(t,a),p=u.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const m=new CustomEvent(ui,{bubbles:!0,cancelable:!0});f.addEventListener(ui,h=>r==null?void 0:r(h),{once:!0}),Bo(f,m),m.defaultPrevented?p.current=!1:s.onClose()}};return c.jsx(di,{...o,ref:l,disabled:n,onClick:$(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),p.current=!0},onPointerUp:$(e.onPointerUp,f=>{var m;p.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:$(e.onKeyDown,f=>{const m=i.searchRef.current!=="";n||m&&f.key===" "||Pr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});gn.displayName=hn;var di=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=jr(hn,n),i=ri(n),l=u.useRef(null),p=ie(t,l),[d,f]=u.useState(!1),[m,h]=u.useState("");return u.useEffect(()=>{const b=l.current;b&&h((b.textContent??"").trim())},[a.children]),c.jsx(At.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:c.jsx(Tp,{asChild:!0,...i,focusable:!r,children:c.jsx(re.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:p,onPointerMove:$(e.onPointerMove,kt(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(e.onPointerLeave,kt(b=>s.onItemLeave(b))),onFocus:$(e.onFocus,()=>f(!0)),onBlur:$(e.onBlur,()=>f(!1))})})})}),Up="MenuCheckboxItem",fi=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(vi,{scope:e.__scopeMenu,checked:n,children:c.jsx(gn,{role:"menuitemcheckbox","aria-checked":vn(n)?"mixed":n,...o,ref:t,"data-state":Hr(n),onSelect:$(o.onSelect,()=>r==null?void 0:r(vn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fi.displayName=Up;var pi="MenuRadioGroup",[Kp,Yp]=Qe(pi,{value:void 0,onValueChange:()=>{}}),mi=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=_e(r);return c.jsx(Kp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c.jsx(Fr,{...o,ref:t})})});mi.displayName=pi;var hi="MenuRadioItem",gi=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Yp(hi,e.__scopeMenu),a=n===o.value;return c.jsx(vi,{scope:e.__scopeMenu,checked:a,children:c.jsx(gn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Hr(a),onSelect:$(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});gi.displayName=hi;var $r="MenuItemIndicator",[vi,qp]=Qe($r,{checked:!1}),bi=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=qp($r,n);return c.jsx(Ie,{present:r||vn(a.checked)||a.checked===!0,children:c.jsx(re.span,{...o,ref:t,"data-state":Hr(a.checked)})})});bi.displayName=$r;var Xp="MenuSeparator",xi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});xi.displayName=Xp;var Zp="MenuArrow",wi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Nt(n);return c.jsx(ws,{...o,...r,ref:t})});wi.displayName=Zp;var Vr="MenuSub",[Jp,yi]=Qe(Vr),Ci=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ue(Vr,t),s=Nt(t),[i,l]=u.useState(null),[p,d]=u.useState(null),f=_e(o);return u.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),c.jsx(Rr,{...s,children:c.jsx(oi,{scope:t,open:r,onOpenChange:f,content:p,onContentChange:d,children:c.jsx(Jp,{scope:t,contentId:De(),triggerId:De(),trigger:i,onTriggerChange:l,children:n})})})};Ci.displayName=Vr;var Ot="MenuSubTrigger",Si=u.forwardRef((e,t)=>{const n=Ue(Ot,e.__scopeMenu),r=Tt(Ot,e.__scopeMenu),o=yi(Ot,e.__scopeMenu),a=jr(Ot,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,p={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=i.current;return()=>{window.clearTimeout(f),l(null)}},[i,l]),c.jsx(Dr,{asChild:!0,...p,children:c.jsx(di,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ri(n.open),...e,ref:$t(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$(e.onPointerMove,kt(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:$(e.onPointerLeave,kt(f=>{var h,b;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const g=(b=n.content)==null?void 0:b.dataset.side,x=g==="right",v=x?-5:5,w=m[x?"left":"right"],S=m[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:w,y:m.top},{x:S,y:m.top},{x:S,y:m.bottom},{x:w,y:m.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:$(e.onKeyDown,f=>{var h;const m=a.searchRef.current!=="";e.disabled||m&&f.key===" "||Pp[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});Si.displayName=Ot;var Ei="MenuSubContent",_i=u.forwardRef((e,t)=>{const n=si(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(be,e.__scopeMenu),s=Tt(be,e.__scopeMenu),i=yi(Ei,e.__scopeMenu),l=u.useRef(null),p=ie(t,l);return c.jsx(At.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||a.open,children:c.jsx(At.Slot,{scope:e.__scopeMenu,children:c.jsx(Lr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:p,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:$(e.onFocusOutside,d=>{d.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:$(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:$(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=Dp[s.dir].includes(d.key);f&&m&&(a.onOpenChange(!1),(h=i.trigger)==null||h.focus(),d.preventDefault())})})})})})});_i.displayName=Ei;function Ri(e){return e?"open":"closed"}function vn(e){return e==="indeterminate"}function Hr(e){return vn(e)?"indeterminate":e?"checked":"unchecked"}function Qp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function em(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function tm(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=em(e,Math.max(a,0));o.length===1&&(s=s.filter(p=>p!==n));const l=s.find(p=>p.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function nm(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function rm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return nm(n,t)}function kt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var om=ai,am=Dr,sm=ii,im=ci,cm=Fr,lm=li,um=gn,dm=fi,fm=mi,pm=gi,mm=bi,hm=xi,gm=wi,vm=Ci,bm=Si,xm=_i,bn="DropdownMenu",[wm,D0]=Xe(bn,[ni]),pe=ni(),[ym,Mi]=wm(bn),Ai=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=pe(t),p=u.useRef(null),[d,f]=wt({prop:o,defaultProp:a??!1,onChange:s,caller:bn});return c.jsx(ym,{scope:t,triggerId:De(),triggerRef:p,contentId:De(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:i,children:c.jsx(om,{...l,open:d,onOpenChange:f,dir:r,modal:i,children:n})})};Ai.displayName=bn;var Ni="DropdownMenuTrigger",Ti=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Mi(Ni,n),s=pe(n);return c.jsx(am,{asChild:!0,...s,children:c.jsx(re.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:$t(t,a.triggerRef),onPointerDown:$(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:$(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ti.displayName=Ni;var Cm="DropdownMenuPortal",Oi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=pe(t);return c.jsx(sm,{...r,...n})};Oi.displayName=Cm;var ki="DropdownMenuContent",Pi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mi(ki,n),a=pe(n),s=u.useRef(!1);return c.jsx(im,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:$(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:$(e.onInteractOutside,i=>{const l=i.detail.originalEvent,p=l.button===0&&l.ctrlKey===!0,d=l.button===2||p;(!o.modal||d)&&(s.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)"}})});Pi.displayName=ki;var Sm="DropdownMenuGroup",Di=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(cm,{...o,...r,ref:t})});Di.displayName=Sm;var Em="DropdownMenuLabel",Ii=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(lm,{...o,...r,ref:t})});Ii.displayName=Em;var _m="DropdownMenuItem",ji=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(um,{...o,...r,ref:t})});ji.displayName=_m;var Rm="DropdownMenuCheckboxItem",Li=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(dm,{...o,...r,ref:t})});Li.displayName=Rm;var Mm="DropdownMenuRadioGroup",Fi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(fm,{...o,...r,ref:t})});Fi.displayName=Mm;var Am="DropdownMenuRadioItem",$i=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(pm,{...o,...r,ref:t})});$i.displayName=Am;var Nm="DropdownMenuItemIndicator",Vi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(mm,{...o,...r,ref:t})});Vi.displayName=Nm;var Tm="DropdownMenuSeparator",Hi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(hm,{...o,...r,ref:t})});Hi.displayName=Tm;var Om="DropdownMenuArrow",km=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(gm,{...o,...r,ref:t})});km.displayName=Om;var Pm=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=pe(t),[i,l]=wt({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(vm,{...s,open:i,onOpenChange:l,children:n})},Dm="DropdownMenuSubTrigger",zi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(bm,{...o,...r,ref:t})});zi.displayName=Dm;var Im="DropdownMenuSubContent",Wi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(xm,{...o,...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)"}})});Wi.displayName=Im;var jm=Ai,Lm=Ti,Gi=Oi,Fm=Pi,$m=Di,Vm=Ii,Hm=ji,zm=Li,Wm=Fi,Gm=$i,Bi=Vi,Bm=Hi,Um=Pm,Km=zi,Ym=Wi;function Ui({...e}){return c.jsx(jm,{"data-slot":"dropdown-menu",...e})}function qm({...e}){return c.jsx(Gi,{"data-slot":"dropdown-menu-portal",...e})}function Ki({...e}){return c.jsx(Lm,{"data-slot":"dropdown-menu-trigger",...e})}function Yi({className:e,sideOffset:t=4,...n}){return c.jsx(Gi,{children:c.jsx(Fm,{"data-slot":"dropdown-menu-content",sideOffset:t,className:D("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]:slide-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 Xm({...e}){return c.jsx($m,{"data-slot":"dropdown-menu-group",...e})}function zr({className:e,inset:t,variant:n="default",...r}){return c.jsx(Hm,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:D("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),...r})}function Zm({className:e,children:t,checked:n,...r}){return c.jsxs(zm,{"data-slot":"dropdown-menu-checkbox-item",className:D("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(Zc,{className:"size-4"})})}),t]})}function Jm({...e}){return c.jsx(Wm,{"data-slot":"dropdown-menu-radio-group",...e})}function Qm({className:e,children:t,...n}){return c.jsxs(Gm,{"data-slot":"dropdown-menu-radio-item",className:D("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(el,{className:"size-2 fill-current"})})}),t]})}function qi({className:e,inset:t,...n}){return c.jsx(Vm,{"data-slot":"dropdown-menu-label","data-inset":t,className:D("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Xi({className:e,...t}){return c.jsx(Bm,{"data-slot":"dropdown-menu-separator",className:D("bg-border -mx-1 my-1 h-px",e),...t})}function e0({className:e,...t}){return c.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:D("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function t0({...e}){return c.jsx(Um,{"data-slot":"dropdown-menu-sub",...e})}function n0({className:e,inset:t,children:n,...r}){return c.jsxs(Km,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:D("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,c.jsx(yo,{className:"ml-auto size-4"})]})}function r0({className:e,...t}){return c.jsx(Ym,{"data-slot":"dropdown-menu-sub-content",className:D("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const Zi=({onLogout:e})=>{const{user:t,error:n,isLoading:r}=Vc(),o=async()=>{try{e&&await e(),window.location.href="/auth/logout"}catch(a){console.error("Error during logout:",a),window.location.href="/auth/logout"}};return r?c.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):n?c.jsxs("div",{children:["Error: ",n.message]}):t?c.jsx("div",{className:"relative flex items-center gap-3",children:c.jsxs(Ui,{children:[c.jsx(Ki,{asChild:!0,children:c.jsx(zt,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:t.picture?c.jsx("img",{src:t.picture,alt:t.name||"User profile",width:40,height:40,className:"rounded-full"}):c.jsx(So,{className:"h-5 w-5 text-gray-500"})})}),c.jsxs(Yi,{align:"end",className:"w-72",children:[c.jsx(qi,{children:c.jsx("div",{className:"flex flex-col space-y-1",children:c.jsxs("div",{className:"flex flex-col space-y-1",children:[c.jsx("p",{className:"text-xs text-gray-500",children:t.name}),c.jsx("p",{className:"truncate text-xs text-gray-500",children:t.email})]})})}),c.jsx(Xi,{}),c.jsx(zr,{asChild:!0,children:c.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[c.jsx(So,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Profile"})]})}),c.jsxs(zr,{onClick:o,children:[c.jsx(tl,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Sign out"})]})]})]})}):null},Ji=({onLogout:e})=>c.jsx("div",{className:"sticky top-0 z-50",children:c.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[c.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[c.jsx(js,{}),c.jsx(Wt,{orientation:"vertical"})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Zi,{onLogout:e})})]})}),o0=({children:e,onLogout:t})=>c.jsx(Hc,{children:c.jsx(Ds,{children:c.jsxs("div",{className:"flex h-screen w-full",children:[c.jsx(vp,{}),c.jsxs(Fs,{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(Ji,{onLogout:t}),c.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});function a0({className:e,...t}){return c.jsx("div",{"data-slot":"card",className:D("bg-card text-card-foreground flex flex-col gap-4 rounded-xl py-6 shadow-sm",e),...t})}function s0({className:e,...t}){return c.jsx("div",{"data-slot":"card-header",className:D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function i0({className:e,...t}){return c.jsx("div",{"data-slot":"card-title",className:D("leading-none font-semibold",e),...t})}function c0({className:e,...t}){return c.jsx("div",{"data-slot":"card-description",className:D("text-muted-foreground text-sm",e),...t})}function l0({className:e,...t}){return c.jsx("div",{"data-slot":"card-action",className:D("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function u0({className:e,...t}){return c.jsx("div",{"data-slot":"card-content",className:D("px-6",e),...t})}function d0({className:e,...t}){return c.jsx("div",{"data-slot":"card-footer",className:D("flex items-center px-6 [.border-t]:pt-6",e),...t})}A.AppHeader=Ji,A.Button=zt,A.Card=a0,A.CardAction=l0,A.CardContent=u0,A.CardDescription=c0,A.CardFooter=d0,A.CardHeader=s0,A.CardTitle=i0,A.CollapsibleSection=Us,A.DropdownMenu=Ui,A.DropdownMenuCheckboxItem=Zm,A.DropdownMenuContent=Yi,A.DropdownMenuGroup=Xm,A.DropdownMenuItem=zr,A.DropdownMenuLabel=qi,A.DropdownMenuPortal=qm,A.DropdownMenuRadioGroup=Jm,A.DropdownMenuRadioItem=Qm,A.DropdownMenuSeparator=Xi,A.DropdownMenuShortcut=e0,A.DropdownMenuSub=t0,A.DropdownMenuSubContent=r0,A.DropdownMenuSubTrigger=n0,A.DropdownMenuTrigger=Ki,A.GLICloudProvider=o0,A.Input=Gn,A.ProfileDropdown=Zi,A.Separator=Wt,A.Sheet=Ha,A.SheetClose=vd,A.SheetContent=ir,A.SheetDescription=ur,A.SheetFooter=Wa,A.SheetHeader=cr,A.SheetOverlay=sr,A.SheetPortal=za,A.SheetTitle=lr,A.SheetTrigger=gd,A.Sidebar=Is,A.SidebarContent=Vs,A.SidebarFooter=rp,A.SidebarGroup=Hs,A.SidebarGroupAction=sp,A.SidebarGroupContent=zs,A.SidebarGroupLabel=ap,A.SidebarHeader=$s,A.SidebarInput=np,A.SidebarInset=Fs,A.SidebarMenu=ip,A.SidebarMenuAction=dp,A.SidebarMenuBadge=fp,A.SidebarMenuButton=up,A.SidebarMenuItem=cp,A.SidebarMenuSkeleton=pp,A.SidebarMenuSub=Ws,A.SidebarMenuSubButton=Bs,A.SidebarMenuSubItem=Gs,A.SidebarProvider=Ds,A.SidebarRail=Ls,A.SidebarSeparator=op,A.SidebarTrigger=js,A.Skeleton=dr,A.Tooltip=Os,A.TooltipContent=Tr,A.TooltipProvider=Ts,A.TooltipTrigger=ks,A.buttonVariants=Go,A.useSidebar=_t,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
182
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dd="DialogDescriptionWarning",fd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ia(dd).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},pd=ya,md=Sa,hd=_a,ja=Ra,La=Ma,Fa=Na,$a=Oa,Va=Pa;const Ha=pd,gd=md,vd=Va,za=hd,sr=u.forwardRef(({className:e,...t},n)=>c.jsx(ja,{className:D("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));sr.displayName=ja.displayName;const bd=Ln("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ir=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(za,{children:[c.jsx(sr,{}),c.jsxs(La,{ref:o,className:D(bd({side:e}),t),...r,children:[n,c.jsxs(Va,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(rl,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ir.displayName=La.displayName;const cr=({className:e,...t})=>c.jsx("div",{className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t});cr.displayName="SheetHeader";const Wa=({className:e,...t})=>c.jsx("div",{className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wa.displayName="SheetFooter";const lr=u.forwardRef(({className:e,...t},n)=>c.jsx(Fa,{ref:n,className:D("text-lg font-semibold text-foreground",e),...t}));lr.displayName=Fa.displayName;const ur=u.forwardRef(({className:e,...t},n)=>c.jsx($a,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));ur.displayName=$a.displayName;function dr({className:e,...t}){return c.jsx("div",{className:D("animate-pulse rounded-md bg-muted",e),...t})}const xd=["top","right","bottom","left"],Ge=Math.min,he=Math.max,tn=Math.round,nn=Math.floor,Me=e=>({x:e,y:e}),wd={left:"right",right:"left",bottom:"top",top:"bottom"},yd={start:"end",end:"start"};function fr(e,t,n){return he(e,Ge(t,n))}function je(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function pr(e){return e==="x"?"y":"x"}function mr(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(Le(e))?"y":"x"}function hr(e){return pr(Ae(e))}function Cd(e,t,n){n===void 0&&(n=!1);const r=ut(e),o=hr(e),a=mr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rn(s)),[s,rn(s)]}function Sd(e){const t=rn(e);return[gr(e),t,gr(t)]}function gr(e){return e.replace(/start|end/g,t=>yd[t])}function Ed(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function _d(e,t,n,r){const o=ut(e);let a=Ed(Le(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(gr)))),a}function rn(e){return e.replace(/left|right|bottom|top/g,t=>wd[t])}function Rd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ga(e){return typeof e!="number"?Rd(e):{top:e,right:e,bottom:e,left:e}}function on(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ba(e,t,n){let{reference:r,floating:o}=e;const a=Ae(t),s=hr(t),i=mr(s),l=Le(t),p=a==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ut(t)){case"start":h[s]-=m*(n&&p?-1:1);break;case"end":h[s]+=m*(n&&p?-1:1);break}return h}const Md=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let p=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ba(p,r,l),m=r,h={},b=0;for(let g=0;g<i.length;g++){const{name:x,fn:v}=i[g],{x:w,y:S,data:E,reset:_}=await v({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:p,platform:s,elements:{reference:e,floating:t}});d=w??d,f=S??f,h={...h,[x]:{...h[x],...E}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(p=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:f}=Ba(p,m,l)),g=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}};async function yt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=je(t,e),b=Ga(h),x=i[m?f==="floating"?"reference":"floating":f],v=on(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:p,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},_=on(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:S,strategy:l}):w);return{top:(v.top-_.top+b.top)/E.y,bottom:(_.bottom-v.bottom+b.bottom)/E.y,left:(v.left-_.left+b.left)/E.x,right:(_.right-v.right+b.right)/E.x}}const Ad=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:p,padding:d=0}=je(e,t)||{};if(p==null)return{};const f=Ga(d),m={x:n,y:r},h=hr(o),b=mr(h),g=await s.getDimensions(p),x=h==="y",v=x?"top":"left",w=x?"bottom":"right",S=x?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[h]-m[h]-a.floating[b],_=m[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p));let M=N?N[S]:0;(!M||!await(s.isElement==null?void 0:s.isElement(N)))&&(M=i.floating[S]||a.floating[b]);const C=E/2-_/2,j=M/2-g[b]/2-1,L=Ge(f[v],j),U=Ge(f[w],j),B=L,z=M-g[b]-U,W=M/2-g[b]/2+C,X=fr(B,W,z),V=!l.arrow&&ut(o)!=null&&W!==X&&a.reference[b]/2-(W<B?L:U)-g[b]/2<0,K=V?W<B?W-B:W-z:0;return{[h]:m[h]+K,data:{[h]:X,centerOffset:W-X-K,...V&&{alignmentOffset:K}},reset:V}}}),Nd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:p}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=je(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Le(o),w=Ae(i),S=Le(i)===i,E=await(l.isRTL==null?void 0:l.isRTL(p.floating)),_=m||(S||!g?[rn(i)]:Sd(i)),N=b!=="none";!m&&N&&_.push(..._d(i,g,b,E));const M=[i,..._],C=await yt(t,x),j=[];let L=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&j.push(C[v]),f){const W=Cd(o,s,E);j.push(C[W[0]],C[W[1]])}if(L=[...L,{placement:o,overflows:j}],!j.every(W=>W<=0)){var U,B;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,X=M[W];if(X&&(!(f==="alignment"?w!==Ae(X):!1)||L.every(R=>R.overflows[0]>0&&Ae(R.placement)===w)))return{data:{index:W,overflows:L},reset:{placement:X}};let V=(B=L.filter(K=>K.overflows[0]<=0).sort((K,R)=>K.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!V)switch(h){case"bestFit":{var z;const K=(z=L.filter(R=>{if(N){const T=Ae(R.placement);return T===w||T==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,y)=>T+y,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:z[0];K&&(V=K);break}case"initialPlacement":V=i;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function Ua(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ka(e){return xd.some(t=>e[t]>=0)}const Td=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=je(e,t);switch(r){case"referenceHidden":{const a=await yt(t,{...o,elementContext:"reference"}),s=Ua(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ka(s)}}}case"escaped":{const a=await yt(t,{...o,altBoundary:!0}),s=Ua(a,n.floating);return{data:{escapedOffsets:s,escaped:Ka(s)}}}default:return{}}}}};async function Od(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Le(n),i=ut(n),l=Ae(n)==="y",p=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,f=je(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*d,y:m*p}:{x:m*p,y:h*d}}const kd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await Od(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Pd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:x=>{let{x:v,y:w}=x;return{x:v,y:w}}},...l}=je(e,t),p={x:n,y:r},d=await yt(t,l),f=Ae(Le(o)),m=pr(f);let h=p[m],b=p[f];if(a){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=h+d[x],S=h-d[v];h=fr(w,h,S)}if(s){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=b+d[x],S=b-d[v];b=fr(w,b,S)}const g=i.fn({...t,[m]:h,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[f]:s}}}}}},Dd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:p=!0}=je(e,t),d={x:n,y:r},f=Ae(o),m=pr(f);let h=d[m],b=d[f];const g=je(i,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=m==="y"?"height":"width",E=a.reference[m]-a.floating[S]+x.mainAxis,_=a.reference[m]+a.reference[S]-x.mainAxis;h<E?h=E:h>_&&(h=_)}if(p){var v,w;const S=m==="y"?"width":"height",E=["top","left"].includes(Le(o)),_=a.reference[f]-a.floating[S]+(E&&((v=s.offset)==null?void 0:v[f])||0)+(E?0:x.crossAxis),N=a.reference[f]+a.reference[S]+(E?0:((w=s.offset)==null?void 0:w[f])||0)-(E?x.crossAxis:0);b<_?b=_:b>N&&(b=N)}return{[m]:h,[f]:b}}}},Id=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...p}=je(e,t),d=await yt(t,p),f=Le(o),m=ut(o),h=Ae(o)==="y",{width:b,height:g}=a.floating;let x,v;f==="top"||f==="bottom"?(x=f,v=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,x=m==="end"?"top":"bottom");const w=g-d.top-d.bottom,S=b-d.left-d.right,E=Ge(g-d[x],w),_=Ge(b-d[v],S),N=!t.middlewareData.shift;let M=E,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=w),N&&!m){const L=he(d.left,0),U=he(d.right,0),B=he(d.top,0),z=he(d.bottom,0);h?C=b-2*(L!==0||U!==0?L+U:he(d.left,d.right)):M=g-2*(B!==0||z!==0?B+z:he(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:M});const j=await s.getDimensions(i.floating);return b!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function an(){return typeof window<"u"}function dt(e){return Ya(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(Ya(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ya(e){return an()?e instanceof Node||e instanceof ge(e).Node:!1}function Ce(e){return an()?e instanceof Element||e instanceof ge(e).Element:!1}function Te(e){return an()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function qa(e){return!an()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function jd(e){return["table","td","th"].includes(dt(e))}function sn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function vr(e){const t=br(),n=Ce(e)?Se(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ld(e){let t=Be(e);for(;Te(t)&&!ft(t);){if(vr(t))return t;if(sn(t))return null;t=Be(t)}return null}function br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ft(e){return["html","body","#document"].includes(dt(e))}function Se(e){return ge(e).getComputedStyle(e)}function cn(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qa(e)&&e.host||Ne(e);return qa(t)?t.host:t}function Xa(e){const t=Be(e);return ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&Ct(t)?t:Xa(t)}function St(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ge(o);if(a){const i=xr(s);return t.concat(s,s.visualViewport||[],Ct(o)?o:[],i&&n?St(i):[])}return t.concat(o,St(o,[],n))}function xr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Za(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Te(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=tn(n)!==a||tn(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function wr(e){return Ce(e)?e:e.contextElement}function pt(e){const t=wr(e);if(!Te(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Za(t);let s=(a?tn(n.width):n.width)/r,i=(a?tn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Fd=Me(0);function Ja(e){const t=ge(e);return!br()||!t.visualViewport?Fd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $d(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=wr(e);let s=Me(1);t&&(r?Ce(r)&&(s=pt(r)):s=pt(e));const i=$d(a,n,r)?Ja(a):Me(0);let l=(o.left+i.x)/s.x,p=(o.top+i.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){const m=ge(a),h=r&&Ce(r)?ge(r):r;let b=m,g=xr(b);for(;g&&r&&h!==b;){const x=pt(g),v=g.getBoundingClientRect(),w=Se(g),S=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*x.x,E=v.top+(g.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,p*=x.y,d*=x.x,f*=x.y,l+=S,p+=E,b=ge(g),g=xr(b)}}return on({width:d,height:f,x:l,y:p})}function yr(e,t){const n=cn(e).scrollLeft;return t?t.left+n:Je(Ne(e)).left+n}function Qa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:yr(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Vd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Ne(r),i=t?sn(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},p=Me(1);const d=Me(0),f=Te(r);if((f||!f&&!a)&&((dt(r)!=="body"||Ct(s))&&(l=cn(r)),Te(r))){const h=Je(r);p=pt(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=s&&!f&&!a?Qa(s,l,!0):Me(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-l.scrollLeft*p.x+d.x+m.x,y:n.y*p.y-l.scrollTop*p.y+d.y+m.y}}function Hd(e){return Array.from(e.getClientRects())}function zd(e){const t=Ne(e),n=cn(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+yr(e);const i=-n.scrollTop;return Se(r).direction==="rtl"&&(s+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function Wd(e,t){const n=ge(e),r=Ne(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=br();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function Gd(e,t){const n=Je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Te(e)?pt(e):Me(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,p=r*a.y;return{width:s,height:i,x:l,y:p}}function es(e,t,n){let r;if(t==="viewport")r=Wd(e,n);else if(t==="document")r=zd(Ne(e));else if(Ce(t))r=Gd(t,n);else{const o=Ja(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return on(r)}function ts(e,t){const n=Be(e);return n===t||!Ce(n)||ft(n)?!1:Se(n).position==="fixed"||ts(n,t)}function Bd(e,t){const n=t.get(e);if(n)return n;let r=St(e,[],!1).filter(i=>Ce(i)&&dt(i)!=="body"),o=null;const a=Se(e).position==="fixed";let s=a?Be(e):e;for(;Ce(s)&&!ft(s);){const i=Se(s),l=vr(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ct(s)&&!l&&ts(e,s))?r=r.filter(d=>d!==s):o=i,s=Be(s)}return t.set(e,r),r}function Ud(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?sn(t)?[]:Bd(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((p,d)=>{const f=es(t,d,o);return p.top=he(f.top,p.top),p.right=Ge(f.right,p.right),p.bottom=Ge(f.bottom,p.bottom),p.left=he(f.left,p.left),p},es(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Kd(e){const{width:t,height:n}=Za(e);return{width:t,height:n}}function Yd(e,t,n){const r=Te(t),o=Ne(t),a=n==="fixed",s=Je(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Me(0);function p(){l.x=yr(o)}if(r||!r&&!a)if((dt(t)!=="body"||Ct(o))&&(i=cn(t)),r){const h=Je(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&p();a&&!r&&o&&p();const d=o&&!r&&!a?Qa(o,i):Me(0),f=s.left+i.scrollLeft-l.x-d.x,m=s.top+i.scrollTop-l.y-d.y;return{x:f,y:m,width:s.width,height:s.height}}function Cr(e){return Se(e).position==="static"}function ns(e,t){if(!Te(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function rs(e,t){const n=ge(e);if(sn(e))return n;if(!Te(e)){let o=Be(e);for(;o&&!ft(o);){if(Ce(o)&&!Cr(o))return o;o=Be(o)}return n}let r=ns(e,t);for(;r&&jd(r)&&Cr(r);)r=ns(r,t);return r&&ft(r)&&Cr(r)&&!vr(r)?n:r||Ld(e)||n}const qd=async function(e){const t=this.getOffsetParent||rs,n=this.getDimensions,r=await n(e.floating);return{reference:Yd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xd(e){return Se(e).direction==="rtl"}const Zd={convertOffsetParentRelativeRectToViewportRelativeRect:Vd,getDocumentElement:Ne,getClippingRect:Ud,getOffsetParent:rs,getElementRects:qd,getClientRects:Hd,getDimensions:Kd,getScale:pt,isElement:Ce,isRTL:Xd};function os(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jd(e,t){let n=null,r;const o=Ne(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const p=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=p;if(i||t(),!m||!h)return;const b=nn(f),g=nn(o.clientWidth-(d+m)),x=nn(o.clientHeight-(f+h)),v=nn(d),S={rootMargin:-b+"px "+-g+"px "+-x+"px "+-v+"px",threshold:he(0,Ge(1,l))||1};let E=!0;function _(N){const M=N[0].intersectionRatio;if(M!==l){if(!E)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!os(p,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return s(!0),a}function Qd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,p=wr(e),d=o||a?[...p?St(p):[],...St(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=p&&i?Jd(p,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===p&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),p&&!l&&h.observe(p),h.observe(t));let b,g=l?Je(e):null;l&&x();function x(){const v=Je(e);g&&!os(g,v)&&n(),g=v,b=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const ef=kd,tf=Pd,nf=Nd,rf=Id,of=Td,as=Ad,af=Dd,sf=(e,t,n)=>{const r=new Map,o={platform:Zd,...n},a={...o.platform,_c:r};return Md(e,t,{...o,platform:a})};var cf=typeof document<"u",lf=function(){},ln=cf?I.useLayoutEffect:lf;function un(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,o;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(!un(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!un(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ss(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function is(e,t){const n=ss(e);return Math.round(t*n)/n}function Sr(e){const t=u.useRef(e);return ln(()=>{t.current=e}),t}function uf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:p}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);un(m,r)||h(r);const[b,g]=u.useState(null),[x,v]=u.useState(null),w=u.useCallback(R=>{R!==N.current&&(N.current=R,g(R))},[]),S=u.useCallback(R=>{R!==M.current&&(M.current=R,v(R))},[]),E=a||b,_=s||x,N=u.useRef(null),M=u.useRef(null),C=u.useRef(d),j=l!=null,L=Sr(l),U=Sr(o),B=Sr(p),z=u.useCallback(()=>{if(!N.current||!M.current)return;const R={placement:t,strategy:n,middleware:m};U.current&&(R.platform=U.current),sf(N.current,M.current,R).then(T=>{const y={...T,isPositioned:B.current!==!1};W.current&&!un(C.current,y)&&(C.current=y,Kr.flushSync(()=>{f(y)}))})},[m,t,n,U,B]);ln(()=>{p===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[p]);const W=u.useRef(!1);ln(()=>(W.current=!0,()=>{W.current=!1}),[]),ln(()=>{if(E&&(N.current=E),_&&(M.current=_),E&&_){if(L.current)return L.current(E,_,z);z()}},[E,_,z,L,j]);const X=u.useMemo(()=>({reference:N,floating:M,setReference:w,setFloating:S}),[w,S]),V=u.useMemo(()=>({reference:E,floating:_}),[E,_]),K=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!V.floating)return R;const T=is(V.floating,d.x),y=is(V.floating,d.y);return i?{...R,transform:"translate("+T+"px, "+y+"px)",...ss(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:y}},[n,i,V.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:z,refs:X,elements:V,floatingStyles:K}),[d,z,X,V,K])}const df=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?as({element:r.current,padding:o}).fn(n):{}:r?as({element:r,padding:o}).fn(n):{}}}},ff=(e,t)=>({...ef(e),options:[e,t]}),pf=(e,t)=>({...tf(e),options:[e,t]}),mf=(e,t)=>({...af(e),options:[e,t]}),hf=(e,t)=>({...nf(e),options:[e,t]}),gf=(e,t)=>({...rf(e),options:[e,t]}),vf=(e,t)=>({...of(e),options:[e,t]}),bf=(e,t)=>({...df(e),options:[e,t]});var xf="Arrow",cs=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(re.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});cs.displayName=xf;var wf=cs;function yf(e){const[t,n]=u.useState(void 0);return ze(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,p=Array.isArray(l)?l[0]:l;s=p.inlineSize,i=p.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Er="Popper",[ls,dn]=Xe(Er),[Cf,us]=ls(Er),ds=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(Cf,{scope:t,anchor:r,onAnchorChange:o,children:n})};ds.displayName=Er;var fs="PopperAnchor",ps=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=us(fs,n),s=u.useRef(null),i=ie(t,s);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(re.div,{...o,ref:i})});ps.displayName=fs;var _r="PopperContent",[Sf,Ef]=ls(_r),ms=u.forwardRef((e,t)=>{var Y,ee,te,se,Ee,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,x=us(_r,n),[v,w]=u.useState(null),S=ie(t,J=>w(J)),[E,_]=u.useState(null),N=yf(E),M=(N==null?void 0:N.width)??0,C=(N==null?void 0:N.height)??0,j=r+(a!=="center"?"-"+a:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(p)?p:[p],B=U.length>0,z={padding:L,boundary:U.filter(Rf),altBoundary:B},{refs:W,floatingStyles:X,placement:V,isPositioned:K,middlewareData:R}=uf({strategy:"fixed",placement:j,whileElementsMounted:(...J)=>Qd(...J,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[ff({mainAxis:o+C,alignmentAxis:s}),l&&pf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?mf():void 0,...z}),l&&hf({...z}),gf({...z,apply:({elements:J,rects:Q,availableWidth:le,availableHeight:oe})=>{const{width:ve,height:Ye}=Q.reference,ae=J.floating.style;ae.setProperty("--radix-popper-available-width",`${le}px`),ae.setProperty("--radix-popper-available-height",`${oe}px`),ae.setProperty("--radix-popper-anchor-width",`${ve}px`),ae.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),E&&bf({element:E,padding:i}),Mf({arrowWidth:M,arrowHeight:C}),m&&vf({strategy:"referenceHidden",...z})]}),[T,y]=vs(V),P=_e(b);ze(()=>{K&&(P==null||P())},[K,P]);const F=(Y=R.arrow)==null?void 0:Y.x,H=(ee=R.arrow)==null?void 0:ee.y,Z=((te=R.arrow)==null?void 0:te.centerOffset)!==0,[ne,ue]=u.useState();return ze(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:K?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ke=R.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Sf,{scope:n,placedSide:T,onArrowChange:_,arrowX:F,arrowY:H,shouldHideArrow:Z,children:c.jsx(re.div,{"data-side":T,"data-align":y,...g,ref:S,style:{...g.style,animation:K?void 0:"none"}})})})});ms.displayName=_r;var hs="PopperArrow",_f={top:"bottom",right:"left",bottom:"top",left:"right"},gs=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ef(hs,r),s=_f[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]: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:c.jsx(wf,{...o,ref:n,style:{...o.style,display:"block"}})})});gs.displayName=hs;function Rf(e){return e!==null}var Mf=e=>({name:"transformOrigin",options:e,fn(t){var x,v,w;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[p,d]=vs(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let b="",g="";return p==="bottom"?(b=s?f:`${m}px`,g=`${-l}px`):p==="top"?(b=s?f:`${m}px`,g=`${r.floating.height+l}px`):p==="right"?(b=`${-l}px`,g=s?f:`${h}px`):p==="left"&&(b=`${r.floating.width+l}px`,g=s?f:`${h}px`),{data:{x:b,y:g}}}});function vs(e){const[t,n="center"]=e.split("-");return[t,n]}var Rr=ds,bs=ps,xs=ms,ws=gs,Af=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Nf="VisuallyHidden",ys=u.forwardRef((e,t)=>c.jsx(re.span,{...e,ref:t,style:{...Af,...e.style}}));ys.displayName=Nf;var Tf=ys,[fn,k0]=Xe("Tooltip",[dn]),pn=dn(),Cs="TooltipProvider",Of=700,Mr="tooltip.open",[kf,Ar]=fn(Cs),Ss=e=>{const{__scopeTooltip:t,delayDuration:n=Of,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(kf,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(p=>{i.current=p},[]),disableHoverableContent:o,children:a})};Ss.displayName=Cs;var Et="Tooltip",[Pf,mn]=fn(Et),Es=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Ar(Et,e.__scopeTooltip),p=pn(t),[d,f]=u.useState(null),m=De(),h=u.useRef(0),b=s??l.disableHoverableContent,g=i??l.delayDuration,x=u.useRef(!1),[v,w]=wt({prop:r,defaultProp:o??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(Mr))):l.onClose(),a==null||a(M)},caller:Et}),S=u.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),E=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,w(!0)},[w]),_=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,w(!0),h.current=0},g)},[g,w]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(Rr,{...p,children:c.jsx(Pf,{scope:t,contentId:m,open:v,stateAttribute:S,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:u.useCallback(()=>{b?_():(window.clearTimeout(h.current),h.current=0)},[_,b]),onOpen:E,onClose:_,disableHoverableContent:b,children:n})})};Es.displayName=Et;var Nr="TooltipTrigger",_s=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mn(Nr,n),a=Ar(Nr,n),s=pn(n),i=u.useRef(null),l=ie(t,i,o.onTriggerChange),p=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>p.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(bs,{asChild:!0,...s,children:c.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:$(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:$(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:$(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:$(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:$(e.onBlur,o.onClose),onClick:$(e.onClick,o.onClose)})})});_s.displayName=Nr;var Df="TooltipPortal",[P0,If]=fn(Df,{forceMount:void 0}),mt="TooltipContent",Rs=u.forwardRef((e,t)=>{const n=If(mt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=mn(mt,e.__scopeTooltip);return c.jsx(Ie,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Ms,{side:o,...a,ref:t}):c.jsx(jf,{side:o,...a,ref:t})})}),jf=u.forwardRef((e,t)=>{const n=mn(mt,e.__scopeTooltip),r=Ar(mt,e.__scopeTooltip),o=u.useRef(null),a=ie(t,o),[s,i]=u.useState(null),{trigger:l,onClose:p}=n,d=o.current,{onPointerInTransitChange:f}=r,m=u.useCallback(()=>{i(null),f(!1)},[f]),h=u.useCallback((b,g)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},w=Hf(v,x.getBoundingClientRect()),S=zf(v,w),E=Wf(g.getBoundingClientRect()),_=Bf([...S,...E]);i(_),f(!0)},[f]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&d){const b=x=>h(x,d),g=x=>h(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",g)}}},[l,d,h,m]),u.useEffect(()=>{if(s){const b=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),S=!Gf(v,s);w?m():S&&(m(),p())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,s,p,m]),c.jsx(Ms,{...e,ref:a})}),[Lf,Ff]=fn(Et,{isInside:!1}),$f=al("TooltipContent"),Ms=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=mn(mt,n),p=pn(n),{onClose:d}=l;return u.useEffect(()=>(document.addEventListener(Mr,d),()=>document.removeEventListener(Mr,d)),[d]),u.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(xs,{"data-state":l.stateAttribute,...p,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx($f,{children:r}),c.jsx(Lf,{scope:n,isInside:!0,children:c.jsx(Tf,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Rs.displayName=mt;var As="TooltipArrow",Vf=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(n);return Ff(As,n).isInside?null:c.jsx(ws,{...o,...r,ref:t})});Vf.displayName=As;function Hf(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function zf(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Wf(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Gf(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function Bf(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Uf(t)}function Uf(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Kf=Ss,Yf=Es,qf=_s,Ns=Rs;const Ts=Kf,Os=Yf,ks=qf,Tr=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Ns,{ref:r,sideOffset:t,className:D("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n}));Tr.displayName=Ns.displayName;const Xf="sidebar_state",Zf=60*60*24*7,Jf="16rem",Qf="18rem",ep="3rem",tp="b",Ps=u.createContext(null);function _t(){const e=u.useContext(Ps);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ds({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=ll(),[l,p]=u.useState(!1),[d,f]=u.useState(e),m=t??d,h=u.useCallback(v=>{const w=typeof v=="function"?v(m):v;n?n(w):f(w),document.cookie=`${Xf}=${w}; path=/; max-age=${Zf}`},[n,m]),b=u.useCallback(()=>i?p(v=>!v):h(v=>!v),[i,h,p]);u.useEffect(()=>{const v=w=>{w.key===tp&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const g=m?"expanded":"collapsed",x=u.useMemo(()=>({state:g,open:m,setOpen:h,isMobile:i,openMobile:l,setOpenMobile:p,toggleSidebar:b}),[g,m,h,i,l,p,b]);return c.jsx(Ps.Provider,{value:x,children:c.jsx(Ts,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Jf,"--sidebar-width-icon":ep,...o},className:D("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Is({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:p}=_t();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:D("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?c.jsx(Ha,{open:l,onOpenChange:p,...a,children:c.jsxs(ir,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Qf},side:e,children:[c.jsxs(cr,{className:"sr-only",children:[c.jsx(lr,{children:"Sidebar"}),c.jsx(ur,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:D("relative w-(--sidebar-width) bg-white transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:D("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function js({className:e,onClick:t,...n}){const{toggleSidebar:r}=_t();return c.jsxs(zt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:D("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(nl,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Ls({className:e,...t}){const{toggleSidebar:n}=_t();return c.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:D("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Fs({className:e,...t}){return c.jsx("main",{"data-slot":"sidebar-inset",className:D("bg-white relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function np({className:e,...t}){return c.jsx(Gn,{"data-slot":"sidebar-input","data-sidebar":"input",className:D("bg-background h-8 w-full shadow-none",e),...t})}function $s({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D("flex flex-col gap-2 p-2",e),...t})}function rp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:D("flex flex-col gap-2 p-2",e),...t})}function op({className:e,...t}){return c.jsx(Wt,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:D("bg-sidebar-border mx-2 w-auto",e),...t})}function Vs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Hs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function ap({className:e,asChild:t=!1,...n}){const r=t?nt:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:D("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function sp({className:e,asChild:t=!1,...n}){const r=t?nt:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function zs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D("w-full text-sm",e),...t})}function ip({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D("flex w-full min-w-0 flex-col gap-1",e),...t})}function cp({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:D("group/menu-item relative",e),...t})}const lp=Ln("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function up({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?nt:"button",{isMobile:l,state:p}=_t(),d=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:D(lp({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Os,{children:[c.jsx(ks,{asChild:!0,children:d}),c.jsx(Tr,{side:"right",align:"center",hidden:p!=="collapsed"||l,...o})]})):d}function dp({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?nt:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function fp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:D("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function pp({className:e,showIcon:t=!1,...n}){const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:D("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(dr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(dr,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function Ws({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:D("border-sidebar-border mx-3 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Gs({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:D("group/menu-sub-item relative",e),...t})}function Bs({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?nt:"a";return c.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}function Us({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:a=!1}){const[s,i]=u.useState(r);return u.useEffect(()=>{a&&i(!0)},[a]),c.jsx(Hs,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between",children:[c.jsxs("a",{href:t,className:D("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"),children:[o&&c.jsx("span",{className:D("text-gray-600"),children:o}),c.jsx("span",{className:D("text-gray-600"),children:e})]}),c.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:l=>{l.preventDefault(),l.stopPropagation(),i(!s)},"aria-label":s?"Collapse section":"Expand section",children:s?c.jsx(Jc,{className:"h-4 w-4"}):c.jsx(yo,{className:"h-4 w-4"})})]}),c.jsx("div",{className:D("overflow-hidden transition-all",s?"max-h-96":"max-h-0"),children:n})]})})}const mp="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function hp(){const[e,t]=I.useState("");return I.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const gp={navMain:[{title:"Essential Insights",url:"/essential-insights/overall-performance",icon:c.jsx(Xc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:c.jsx(Co,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:c.jsx(wo,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:c.jsx(qc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:c.jsx(wo,{className:"h-4 w-4"})},{title:"More Components",url:"/essential-insights/more-components",icon:c.jsx(et,{className:"h-4 w-4"})}]},{title:"Price Monster",url:"/price-monster",icon:c.jsx(Qc,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:c.jsx(Kc,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:c.jsx(Yc,{className:"h-4 w-4"})}]},{title:"CMS",url:"/cms",icon:c.jsx(et,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})}]},{title:"Storage Essentials",url:"/storage-essentials",icon:c.jsx(et,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/storage-essentials/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})}]}]};function vp({...e}){const{isActiveRoute:t}=hp();return c.jsxs(Is,{...e,children:[c.jsx($s,{children:c.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:c.jsx("img",{src:mp,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),c.jsxs(Vs,{children:[c.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:c.jsx("div",{className:"flex flex-col",children:c.jsxs("a",{href:"/",className:D("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors","hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx(Co,{className:D("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-600")}),c.jsx("span",{children:"Home"})]})})}),gp.navMain.map(n=>{const r=t(n.url)||n.items.some(o=>t(o.url));return c.jsx(Us,{title:n.title,url:n.url,icon:n.icon,isActive:r,children:c.jsx(zs,{children:c.jsx(Ws,{children:n.items.map(o=>{const a=t(o.url);return c.jsx(Gs,{children:c.jsx(Bs,{asChild:!0,children:c.jsxs("a",{href:o.url,className:D("flex items-center gap-2 pl-4 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground",a&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx("span",{className:D(a?"text-gli-bluedark":"text-muted-foreground"),children:o.icon}),c.jsx("span",{className:D(a?"text-gli-bluedark":"text-muted-foreground"),children:o.title})]})})},o.title)})})})},n.title)})]}),c.jsx(Ls,{})]})}function Ks(e){const t=e+"CollectionProvider",[n,r]=Xe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:x,children:v}=g,w=I.useRef(null),S=I.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:S,collectionRef:w,children:v})};s.displayName=t;const i=e+"CollectionSlot",l=tt(i),p=I.forwardRef((g,x)=>{const{scope:v,children:w}=g,S=a(i,v),E=ie(x,S.collectionRef);return c.jsx(l,{ref:E,children:w})});p.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=tt(d),h=I.forwardRef((g,x)=>{const{scope:v,children:w,...S}=g,E=I.useRef(null),_=ie(x,E),N=a(d,v);return I.useEffect(()=>(N.itemMap.set(E,{ref:E,...S}),()=>void N.itemMap.delete(E))),c.jsx(m,{[f]:"",ref:_,children:w})});h.displayName=d;function b(g){const x=a(e+"CollectionConsumer",g);return I.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const S=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,M)=>S.indexOf(N.ref.current)-S.indexOf(M.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:p,ItemSlot:h},b,r]}var bp=u.createContext(void 0);function Ys(e){const t=u.useContext(bp);return e||t||"ltr"}var Or="rovingFocusGroup.onEntryFocus",xp={bubbles:!1,cancelable:!0},Rt="RovingFocusGroup",[kr,qs,wp]=Ks(Rt),[yp,Xs]=Xe(Rt,[wp]),[Cp,Sp]=yp(Rt),Zs=u.forwardRef((e,t)=>c.jsx(kr.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(kr.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Ep,{...e,ref:t})})}));Zs.displayName=Rt;var Ep=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:p,preventScrollOnEntryFocus:d=!1,...f}=e,m=u.useRef(null),h=ie(t,m),b=Ys(a),[g,x]=wt({prop:s,defaultProp:i??null,onChange:l,caller:Rt}),[v,w]=u.useState(!1),S=_e(p),E=qs(n),_=u.useRef(!1),[N,M]=u.useState(0);return u.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(Or,S),()=>C.removeEventListener(Or,S)},[S]),c.jsx(Cp,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(C=>x(C),[x]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>M(C=>C+1),[]),onFocusableItemRemove:u.useCallback(()=>M(C=>C-1),[]),children:c.jsx(re.div,{tabIndex:v||N===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:$(e.onMouseDown,()=>{_.current=!0}),onFocus:$(e.onFocus,C=>{const j=!_.current;if(C.target===C.currentTarget&&j&&!v){const L=new CustomEvent(Or,xp);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const U=E().filter(V=>V.focusable),B=U.find(V=>V.active),z=U.find(V=>V.id===g),X=[B,z,...U].filter(Boolean).map(V=>V.ref.current);ei(X,d)}}_.current=!1}),onBlur:$(e.onBlur,()=>w(!1))})})}),Js="RovingFocusGroupItem",Qs=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=De(),p=a||l,d=Sp(Js,n),f=d.currentTabStopId===p,m=qs(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=d;return u.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),c.jsx(kr.ItemSlot,{scope:n,id:p,focusable:r,active:o,children:c.jsx(re.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:$(e.onMouseDown,x=>{r?d.onItemFocus(p):x.preventDefault()}),onFocus:$(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:$(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Mp(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let S=m().filter(E=>E.focusable).map(E=>E.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const E=S.indexOf(x.currentTarget);S=d.loop?Ap(S,E+1):S.slice(E+1)}setTimeout(()=>ei(S))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});Qs.displayName=Js;var _p={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Mp(e,t,n){const r=Rp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _p[r]}function ei(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Np=Zs,Tp=Qs,Pr=["Enter"," "],Op=["ArrowDown","PageUp","Home"],ti=["ArrowUp","PageDown","End"],kp=[...Op,...ti],Pp={ltr:[...Pr,"ArrowRight"],rtl:[...Pr,"ArrowLeft"]},Dp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mt="Menu",[At,Ip,jp]=Ks(Mt),[Qe,ni]=Xe(Mt,[jp,dn,Xs]),Nt=dn(),ri=Xs(),[oi,Ue]=Qe(Mt),[Lp,Tt]=Qe(Mt),ai=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=Nt(t),[l,p]=u.useState(null),d=u.useRef(!1),f=_e(a),m=Ys(o);return u.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(Rr,{...i,children:c.jsx(oi,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:p,children:c.jsx(Lp,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:s,children:r})})})};ai.displayName=Mt;var Fp="MenuAnchor",Dr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Nt(n);return c.jsx(bs,{...o,...r,ref:t})});Dr.displayName=Fp;var Ir="MenuPortal",[$p,si]=Qe(Ir,{forceMount:void 0}),ii=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ue(Ir,t);return c.jsx($p,{scope:t,forceMount:n,children:c.jsx(Ie,{present:n||a.open,children:c.jsx(qn,{asChild:!0,container:o,children:r})})})};ii.displayName=Ir;var be="MenuContent",[Vp,jr]=Qe(be),ci=u.forwardRef((e,t)=>{const n=si(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(be,e.__scopeMenu),s=Tt(be,e.__scopeMenu);return c.jsx(At.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||a.open,children:c.jsx(At.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(Hp,{...o,ref:t}):c.jsx(zp,{...o,ref:t})})})})}),Hp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu),r=u.useRef(null),o=ie(t,r);return u.useEffect(()=>{const a=r.current;if(a)return xa(a)},[]),c.jsx(Lr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),zp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu);return c.jsx(Lr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Wp=tt("MenuContent.ScrollLock"),Lr=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:b,...g}=e,x=Ue(be,n),v=Tt(be,n),w=Nt(n),S=ri(n),E=Ip(n),[_,N]=u.useState(null),M=u.useRef(null),C=ie(t,M,x.onContentChange),j=u.useRef(0),L=u.useRef(""),U=u.useRef(0),B=u.useRef(null),z=u.useRef("right"),W=u.useRef(0),X=b?tr:u.Fragment,V=b?{as:Wp,allowPinchZoom:!0}:void 0,K=T=>{var Y,ee;const y=L.current+T,P=E().filter(te=>!te.disabled),F=document.activeElement,H=(Y=P.find(te=>te.ref.current===F))==null?void 0:Y.textValue,Z=P.map(te=>te.textValue),ne=tm(Z,y,H),ue=(ee=P.find(te=>te.textValue===ne))==null?void 0:ee.ref.current;(function te(se){L.current=se,window.clearTimeout(j.current),se!==""&&(j.current=window.setTimeout(()=>te(""),1e3))})(y),ue&&setTimeout(()=>ue.focus())};u.useEffect(()=>()=>window.clearTimeout(j.current),[]),oa();const R=u.useCallback(T=>{var P,F;return z.current===((P=B.current)==null?void 0:P.side)&&rm(T,(F=B.current)==null?void 0:F.area)},[]);return c.jsx(Vp,{scope:n,searchRef:L,onItemEnter:u.useCallback(T=>{R(T)&&T.preventDefault()},[R]),onItemLeave:u.useCallback(T=>{var y;R(T)||((y=M.current)==null||y.focus(),N(null))},[R]),onTriggerLeave:u.useCallback(T=>{R(T)&&T.preventDefault()},[R]),pointerGraceTimerRef:U,onPointerGraceIntentChange:u.useCallback(T=>{B.current=T},[]),children:c.jsx(X,{...V,children:c.jsx(Yn,{asChild:!0,trapped:o,onMountAutoFocus:$(a,T=>{var y;T.preventDefault(),(y=M.current)==null||y.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:c.jsx(Np,{asChild:!0,...S,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:N,onEntryFocus:$(l,T=>{v.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(xs,{role:"menu","aria-orientation":"vertical","data-state":Ri(x.open),"data-radix-menu-content":"",dir:v.dir,...w,...g,ref:C,style:{outline:"none",...g.style},onKeyDown:$(g.onKeyDown,T=>{const P=T.target.closest("[data-radix-menu-content]")===T.currentTarget,F=T.ctrlKey||T.altKey||T.metaKey,H=T.key.length===1;P&&(T.key==="Tab"&&T.preventDefault(),!F&&H&&K(T.key));const Z=M.current;if(T.target!==Z||!kp.includes(T.key))return;T.preventDefault();const ue=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ti.includes(T.key)&&ue.reverse(),Qp(ue)}),onBlur:$(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(j.current),L.current="")}),onPointerMove:$(e.onPointerMove,kt(T=>{const y=T.target,P=W.current!==T.clientX;if(T.currentTarget.contains(y)&&P){const F=T.clientX>W.current?"right":"left";z.current=F,W.current=T.clientX}}))})})})})})})});ci.displayName=be;var Gp="MenuGroup",Fr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"group",...r,ref:t})});Fr.displayName=Gp;var Bp="MenuLabel",li=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{...r,ref:t})});li.displayName=Bp;var hn="MenuItem",ui="menu.itemSelect",gn=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=Tt(hn,e.__scopeMenu),i=jr(hn,e.__scopeMenu),l=ie(t,a),p=u.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const m=new CustomEvent(ui,{bubbles:!0,cancelable:!0});f.addEventListener(ui,h=>r==null?void 0:r(h),{once:!0}),Bo(f,m),m.defaultPrevented?p.current=!1:s.onClose()}};return c.jsx(di,{...o,ref:l,disabled:n,onClick:$(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),p.current=!0},onPointerUp:$(e.onPointerUp,f=>{var m;p.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:$(e.onKeyDown,f=>{const m=i.searchRef.current!=="";n||m&&f.key===" "||Pr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});gn.displayName=hn;var di=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=jr(hn,n),i=ri(n),l=u.useRef(null),p=ie(t,l),[d,f]=u.useState(!1),[m,h]=u.useState("");return u.useEffect(()=>{const b=l.current;b&&h((b.textContent??"").trim())},[a.children]),c.jsx(At.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:c.jsx(Tp,{asChild:!0,...i,focusable:!r,children:c.jsx(re.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:p,onPointerMove:$(e.onPointerMove,kt(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(e.onPointerLeave,kt(b=>s.onItemLeave(b))),onFocus:$(e.onFocus,()=>f(!0)),onBlur:$(e.onBlur,()=>f(!1))})})})}),Up="MenuCheckboxItem",fi=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(vi,{scope:e.__scopeMenu,checked:n,children:c.jsx(gn,{role:"menuitemcheckbox","aria-checked":vn(n)?"mixed":n,...o,ref:t,"data-state":Hr(n),onSelect:$(o.onSelect,()=>r==null?void 0:r(vn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fi.displayName=Up;var pi="MenuRadioGroup",[Kp,Yp]=Qe(pi,{value:void 0,onValueChange:()=>{}}),mi=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=_e(r);return c.jsx(Kp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c.jsx(Fr,{...o,ref:t})})});mi.displayName=pi;var hi="MenuRadioItem",gi=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Yp(hi,e.__scopeMenu),a=n===o.value;return c.jsx(vi,{scope:e.__scopeMenu,checked:a,children:c.jsx(gn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Hr(a),onSelect:$(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});gi.displayName=hi;var $r="MenuItemIndicator",[vi,qp]=Qe($r,{checked:!1}),bi=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=qp($r,n);return c.jsx(Ie,{present:r||vn(a.checked)||a.checked===!0,children:c.jsx(re.span,{...o,ref:t,"data-state":Hr(a.checked)})})});bi.displayName=$r;var Xp="MenuSeparator",xi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});xi.displayName=Xp;var Zp="MenuArrow",wi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Nt(n);return c.jsx(ws,{...o,...r,ref:t})});wi.displayName=Zp;var Vr="MenuSub",[Jp,yi]=Qe(Vr),Ci=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ue(Vr,t),s=Nt(t),[i,l]=u.useState(null),[p,d]=u.useState(null),f=_e(o);return u.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),c.jsx(Rr,{...s,children:c.jsx(oi,{scope:t,open:r,onOpenChange:f,content:p,onContentChange:d,children:c.jsx(Jp,{scope:t,contentId:De(),triggerId:De(),trigger:i,onTriggerChange:l,children:n})})})};Ci.displayName=Vr;var Ot="MenuSubTrigger",Si=u.forwardRef((e,t)=>{const n=Ue(Ot,e.__scopeMenu),r=Tt(Ot,e.__scopeMenu),o=yi(Ot,e.__scopeMenu),a=jr(Ot,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,p={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=i.current;return()=>{window.clearTimeout(f),l(null)}},[i,l]),c.jsx(Dr,{asChild:!0,...p,children:c.jsx(di,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ri(n.open),...e,ref:$t(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$(e.onPointerMove,kt(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:$(e.onPointerLeave,kt(f=>{var h,b;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const g=(b=n.content)==null?void 0:b.dataset.side,x=g==="right",v=x?-5:5,w=m[x?"left":"right"],S=m[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:w,y:m.top},{x:S,y:m.top},{x:S,y:m.bottom},{x:w,y:m.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:$(e.onKeyDown,f=>{var h;const m=a.searchRef.current!=="";e.disabled||m&&f.key===" "||Pp[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});Si.displayName=Ot;var Ei="MenuSubContent",_i=u.forwardRef((e,t)=>{const n=si(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(be,e.__scopeMenu),s=Tt(be,e.__scopeMenu),i=yi(Ei,e.__scopeMenu),l=u.useRef(null),p=ie(t,l);return c.jsx(At.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||a.open,children:c.jsx(At.Slot,{scope:e.__scopeMenu,children:c.jsx(Lr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:p,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:$(e.onFocusOutside,d=>{d.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:$(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:$(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=Dp[s.dir].includes(d.key);f&&m&&(a.onOpenChange(!1),(h=i.trigger)==null||h.focus(),d.preventDefault())})})})})})});_i.displayName=Ei;function Ri(e){return e?"open":"closed"}function vn(e){return e==="indeterminate"}function Hr(e){return vn(e)?"indeterminate":e?"checked":"unchecked"}function Qp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function em(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function tm(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=em(e,Math.max(a,0));o.length===1&&(s=s.filter(p=>p!==n));const l=s.find(p=>p.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function nm(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function rm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return nm(n,t)}function kt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var om=ai,am=Dr,sm=ii,im=ci,cm=Fr,lm=li,um=gn,dm=fi,fm=mi,pm=gi,mm=bi,hm=xi,gm=wi,vm=Ci,bm=Si,xm=_i,bn="DropdownMenu",[wm,D0]=Xe(bn,[ni]),pe=ni(),[ym,Mi]=wm(bn),Ai=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=pe(t),p=u.useRef(null),[d,f]=wt({prop:o,defaultProp:a??!1,onChange:s,caller:bn});return c.jsx(ym,{scope:t,triggerId:De(),triggerRef:p,contentId:De(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:i,children:c.jsx(om,{...l,open:d,onOpenChange:f,dir:r,modal:i,children:n})})};Ai.displayName=bn;var Ni="DropdownMenuTrigger",Ti=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Mi(Ni,n),s=pe(n);return c.jsx(am,{asChild:!0,...s,children:c.jsx(re.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:$t(t,a.triggerRef),onPointerDown:$(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:$(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ti.displayName=Ni;var Cm="DropdownMenuPortal",Oi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=pe(t);return c.jsx(sm,{...r,...n})};Oi.displayName=Cm;var ki="DropdownMenuContent",Pi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mi(ki,n),a=pe(n),s=u.useRef(!1);return c.jsx(im,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:$(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:$(e.onInteractOutside,i=>{const l=i.detail.originalEvent,p=l.button===0&&l.ctrlKey===!0,d=l.button===2||p;(!o.modal||d)&&(s.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)"}})});Pi.displayName=ki;var Sm="DropdownMenuGroup",Di=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(cm,{...o,...r,ref:t})});Di.displayName=Sm;var Em="DropdownMenuLabel",Ii=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(lm,{...o,...r,ref:t})});Ii.displayName=Em;var _m="DropdownMenuItem",ji=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(um,{...o,...r,ref:t})});ji.displayName=_m;var Rm="DropdownMenuCheckboxItem",Li=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(dm,{...o,...r,ref:t})});Li.displayName=Rm;var Mm="DropdownMenuRadioGroup",Fi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(fm,{...o,...r,ref:t})});Fi.displayName=Mm;var Am="DropdownMenuRadioItem",$i=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(pm,{...o,...r,ref:t})});$i.displayName=Am;var Nm="DropdownMenuItemIndicator",Vi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(mm,{...o,...r,ref:t})});Vi.displayName=Nm;var Tm="DropdownMenuSeparator",Hi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(hm,{...o,...r,ref:t})});Hi.displayName=Tm;var Om="DropdownMenuArrow",km=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(gm,{...o,...r,ref:t})});km.displayName=Om;var Pm=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=pe(t),[i,l]=wt({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(vm,{...s,open:i,onOpenChange:l,children:n})},Dm="DropdownMenuSubTrigger",zi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(bm,{...o,...r,ref:t})});zi.displayName=Dm;var Im="DropdownMenuSubContent",Wi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(xm,{...o,...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)"}})});Wi.displayName=Im;var jm=Ai,Lm=Ti,Gi=Oi,Fm=Pi,$m=Di,Vm=Ii,Hm=ji,zm=Li,Wm=Fi,Gm=$i,Bi=Vi,Bm=Hi,Um=Pm,Km=zi,Ym=Wi;function Ui({...e}){return c.jsx(jm,{"data-slot":"dropdown-menu",...e})}function qm({...e}){return c.jsx(Gi,{"data-slot":"dropdown-menu-portal",...e})}function Ki({...e}){return c.jsx(Lm,{"data-slot":"dropdown-menu-trigger",...e})}function Yi({className:e,sideOffset:t=4,...n}){return c.jsx(Gi,{children:c.jsx(Fm,{"data-slot":"dropdown-menu-content",sideOffset:t,className:D("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]:slide-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 Xm({...e}){return c.jsx($m,{"data-slot":"dropdown-menu-group",...e})}function zr({className:e,inset:t,variant:n="default",...r}){return c.jsx(Hm,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:D("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),...r})}function Zm({className:e,children:t,checked:n,...r}){return c.jsxs(zm,{"data-slot":"dropdown-menu-checkbox-item",className:D("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(Zc,{className:"size-4"})})}),t]})}function Jm({...e}){return c.jsx(Wm,{"data-slot":"dropdown-menu-radio-group",...e})}function Qm({className:e,children:t,...n}){return c.jsxs(Gm,{"data-slot":"dropdown-menu-radio-item",className:D("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(el,{className:"size-2 fill-current"})})}),t]})}function qi({className:e,inset:t,...n}){return c.jsx(Vm,{"data-slot":"dropdown-menu-label","data-inset":t,className:D("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Xi({className:e,...t}){return c.jsx(Bm,{"data-slot":"dropdown-menu-separator",className:D("bg-border -mx-1 my-1 h-px",e),...t})}function e0({className:e,...t}){return c.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:D("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function t0({...e}){return c.jsx(Um,{"data-slot":"dropdown-menu-sub",...e})}function n0({className:e,inset:t,children:n,...r}){return c.jsxs(Km,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:D("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,c.jsx(yo,{className:"ml-auto size-4"})]})}function r0({className:e,...t}){return c.jsx(Ym,{"data-slot":"dropdown-menu-sub-content",className:D("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const Zi=({onLogout:e})=>{const{user:t,error:n,isLoading:r}=Vc(),o=async()=>{try{e&&await e(),window.location.href="/auth/logout"}catch(a){console.error("Error during logout:",a),window.location.href="/auth/logout"}};return r?c.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):n?c.jsxs("div",{children:["Error: ",n.message]}):t?c.jsx("div",{className:"relative flex items-center gap-3",children:c.jsxs(Ui,{children:[c.jsx(Ki,{asChild:!0,children:c.jsx(zt,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:t.picture?c.jsx("img",{src:t.picture,alt:t.name||"User profile",width:40,height:40,className:"rounded-full"}):c.jsx(So,{className:"h-5 w-5 text-gray-500"})})}),c.jsxs(Yi,{align:"end",className:"w-72",children:[c.jsx(qi,{children:c.jsx("div",{className:"flex flex-col space-y-1",children:c.jsxs("div",{className:"flex flex-col space-y-1",children:[c.jsx("p",{className:"text-xs text-gray-500",children:t.name}),c.jsx("p",{className:"truncate text-xs text-gray-500",children:t.email})]})})}),c.jsx(Xi,{}),c.jsx(zr,{asChild:!0,children:c.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[c.jsx(So,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Profile"})]})}),c.jsxs(zr,{onClick:o,children:[c.jsx(tl,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Sign out"})]})]})]})}):null},Ji=({onLogout:e})=>c.jsx("div",{className:"sticky top-0 z-50 bg-white",children:c.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[c.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[c.jsx(js,{}),c.jsx(Wt,{orientation:"vertical"})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Zi,{onLogout:e})})]})}),o0=({children:e,onLogout:t})=>c.jsx(Hc,{children:c.jsx(Ds,{children:c.jsxs("div",{className:"flex h-screen w-full",children:[c.jsx(vp,{}),c.jsxs(Fs,{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(Ji,{onLogout:t}),c.jsx("main",{className:"flex-1 bg-white overflow-auto",id:"page-content",children:e})]})]})})});function a0({className:e,...t}){return c.jsx("div",{"data-slot":"card",className:D("bg-card text-card-foreground flex flex-col gap-4 rounded-xl py-6 shadow-sm",e),...t})}function s0({className:e,...t}){return c.jsx("div",{"data-slot":"card-header",className:D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function i0({className:e,...t}){return c.jsx("div",{"data-slot":"card-title",className:D("leading-none font-semibold",e),...t})}function c0({className:e,...t}){return c.jsx("div",{"data-slot":"card-description",className:D("text-muted-foreground text-sm",e),...t})}function l0({className:e,...t}){return c.jsx("div",{"data-slot":"card-action",className:D("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function u0({className:e,...t}){return c.jsx("div",{"data-slot":"card-content",className:D("px-6",e),...t})}function d0({className:e,...t}){return c.jsx("div",{"data-slot":"card-footer",className:D("flex items-center px-6 [.border-t]:pt-6",e),...t})}A.AppHeader=Ji,A.Button=zt,A.Card=a0,A.CardAction=l0,A.CardContent=u0,A.CardDescription=c0,A.CardFooter=d0,A.CardHeader=s0,A.CardTitle=i0,A.CollapsibleSection=Us,A.DropdownMenu=Ui,A.DropdownMenuCheckboxItem=Zm,A.DropdownMenuContent=Yi,A.DropdownMenuGroup=Xm,A.DropdownMenuItem=zr,A.DropdownMenuLabel=qi,A.DropdownMenuPortal=qm,A.DropdownMenuRadioGroup=Jm,A.DropdownMenuRadioItem=Qm,A.DropdownMenuSeparator=Xi,A.DropdownMenuShortcut=e0,A.DropdownMenuSub=t0,A.DropdownMenuSubContent=r0,A.DropdownMenuSubTrigger=n0,A.DropdownMenuTrigger=Ki,A.GLICloudProvider=o0,A.Input=Gn,A.ProfileDropdown=Zi,A.Separator=Wt,A.Sheet=Ha,A.SheetClose=vd,A.SheetContent=ir,A.SheetDescription=ur,A.SheetFooter=Wa,A.SheetHeader=cr,A.SheetOverlay=sr,A.SheetPortal=za,A.SheetTitle=lr,A.SheetTrigger=gd,A.Sidebar=Is,A.SidebarContent=Vs,A.SidebarFooter=rp,A.SidebarGroup=Hs,A.SidebarGroupAction=sp,A.SidebarGroupContent=zs,A.SidebarGroupLabel=ap,A.SidebarHeader=$s,A.SidebarInput=np,A.SidebarInset=Fs,A.SidebarMenu=ip,A.SidebarMenuAction=dp,A.SidebarMenuBadge=fp,A.SidebarMenuButton=up,A.SidebarMenuItem=cp,A.SidebarMenuSkeleton=pp,A.SidebarMenuSub=Ws,A.SidebarMenuSubButton=Bs,A.SidebarMenuSubItem=Gs,A.SidebarProvider=Ds,A.SidebarRail=Ls,A.SidebarSeparator=op,A.SidebarTrigger=js,A.Skeleton=dr,A.Tooltip=Os,A.TooltipContent=Tr,A.TooltipProvider=Ts,A.TooltipTrigger=ks,A.buttonVariants=Go,A.useSidebar=_t,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golocalinteractive/golocal-cloud-wrapper",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "A React provider component for Go Local Interactive's cloud services",
5
5
  "license": "ISC",
6
6
  "author": "Tanner Barrett",