@golocalinteractive/golocal-cloud-wrapper 1.0.8 → 1.0.10

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Go Local Cloud Wrapper
1
+ # Go Local Interactive Cloud Wrapper
2
2
 
3
- A React provider component for Go Local Interactive's cloud services.
3
+ A React provider component for Go Local Interactive's cloud services with built-in styling.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,22 +8,114 @@ A React provider component for Go Local Interactive's cloud services.
8
8
  npm install @golocalinteractive/golocal-cloud-wrapper
9
9
  ```
10
10
 
11
- This package requires the following peer dependencies to be installed in your project:
11
+ ## Usage
12
12
 
13
- ```bash
14
- npm install react react-dom
13
+ ### Basic Usage (Styles Auto-injected)
14
+
15
+ The styles are automatically included when you import the `GLICloudProvider`:
16
+
17
+ ```jsx
18
+ import { GLICloudProvider } from "@golocalinteractive/golocal-cloud-wrapper";
19
+
20
+ function App() {
21
+ return (
22
+ <GLICloudProvider>
23
+ <div>Your app content here</div>
24
+ </GLICloudProvider>
25
+ );
26
+ }
15
27
  ```
16
28
 
17
- ## Usage
29
+ ### Manual CSS Import (Alternative)
18
30
 
19
- ```tsx
20
- import { GLICloudProvider } from "golocal-cloud-wrapper";
31
+ If you prefer to manually control CSS imports, you can import the styles separately:
32
+
33
+ ```jsx
34
+ // Import styles first
35
+ import "@golocalinteractive/golocal-cloud-wrapper/styles";
36
+
37
+ // Then import the provider
38
+ import { GLICloudProvider } from "@golocalinteractive/golocal-cloud-wrapper";
21
39
 
22
40
  function App() {
23
- return <GLICloudProvider>{/* Your app content */}</GLICloudProvider>;
41
+ return (
42
+ <GLICloudProvider>
43
+ <div>Your app content here</div>
44
+ </GLICloudProvider>
45
+ );
24
46
  }
25
47
  ```
26
48
 
49
+ ## Features
50
+
51
+ - **Auto-injected Styles**: CSS is automatically included when importing the provider
52
+ - **Tailwind CSS**: Built with Tailwind CSS v4 for consistent styling
53
+ - **Custom Design System**: Includes GLI brand colors and design tokens
54
+ - **Responsive Design**: Mobile-first responsive components
55
+ - **Dark Mode Support**: Built-in dark mode support
56
+ - **Accessibility**: WCAG compliant components
57
+
58
+ ## Available CSS Variables
59
+
60
+ The package includes custom CSS variables for GLI branding:
61
+
62
+ ```css
63
+ /* GLI Colors */
64
+ --gli-blue: #e5f7ff;
65
+ --gli-blue-dark: #007db8;
66
+ --gli-orange: #fff6ef;
67
+ --gli-orange-dark: #f68029;
68
+ --gli-green: #edfad8;
69
+ --gli-gray-dark: #c2c2c2;
70
+
71
+ /* Organic Colors */
72
+ --organic-blue: #ecf3f8;
73
+ --organic-navy: #013760;
74
+ --organic-mid-blue: #1e6aa4;
75
+ --organic-light-blue: #95b5d0;
76
+
77
+ /* Paid Colors */
78
+ --paid-green: #5c792f;
79
+ --paid-green-light: #85b045;
80
+ --paid-lime: #ecfad6;
81
+ --paid-green-dark: #324715;
82
+ ```
83
+
84
+ ## Troubleshooting
85
+
86
+ ### Styles Not Applying
87
+
88
+ If styles aren't taking effect:
89
+
90
+ 1. **Check Import Order**: Make sure you're importing the provider correctly
91
+ 2. **CSS Conflicts**: Ensure no other CSS is overriding the styles
92
+ 3. **Build Process**: Verify your build process includes CSS processing
93
+ 4. **Browser Cache**: Clear browser cache and reload
94
+
95
+ ### Build Issues
96
+
97
+ If you encounter build issues:
98
+
99
+ 1. **PostCSS Config**: Ensure you have `@tailwindcss/postcss` installed
100
+ 2. **Tailwind Version**: This package uses Tailwind CSS v4
101
+ 3. **Node Version**: Requires Node.js 18+ for Tailwind CSS v4
102
+
103
+ ## Development
104
+
105
+ ```bash
106
+ # Install dependencies
107
+ npm install
108
+
109
+ # Build the package
110
+ npm run build
111
+
112
+ # Build for development
113
+ npm run build:dev
114
+
115
+ # Run tests
116
+ npm test
117
+ ```
118
+
27
119
  ## Available Components
28
120
 
29
121
  ### Providers
@@ -1 +1 @@
1
- {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/app-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,OAAO,EAQR,MAAM,cAAc,CAAC;AA0CtB,wBAAgB,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,2CA8H5E"}
1
+ {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/app-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,OAAO,EAQR,MAAM,cAAc,CAAC;AA0CtB,wBAAgB,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,2CAoE5E"}
@@ -7704,7 +7704,6 @@ const zf = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
7704
7704
  ]
7705
7705
  };
7706
7706
  function Gf({ ...e }) {
7707
- const t = window.location.pathname, n = (s) => t === s ? !0 : s === "/essential-insights" ? !1 : !!t.startsWith(s + "/"), r = (s) => s.some((a) => n(a.url)), o = (s) => n(s.url) || r(s.items);
7708
7707
  return /* @__PURE__ */ p.jsxs(Pf, { ...e, children: [
7709
7708
  /* @__PURE__ */ p.jsx(Df, { children: /* @__PURE__ */ p.jsx("div", { className: "relative h-12 w-32 overflow-hidden", children: /* @__PURE__ */ p.jsx(
7710
7709
  "img",
@@ -7721,62 +7720,36 @@ function Gf({ ...e }) {
7721
7720
  href: "/home",
7722
7721
  className: z(
7723
7722
  "flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2",
7724
- t === "/home" ? "bg-gli-blue font-medium" : "hover:bg-gray-100"
7723
+ "hover:bg-gray-100"
7725
7724
  ),
7726
7725
  children: [
7727
- /* @__PURE__ */ p.jsx(
7728
- Bo,
7729
- {
7730
- className: z(
7731
- "h-5 w-5",
7732
- t === "/home" ? "font-medium" : "text-gray-600"
7733
- )
7734
- }
7735
- ),
7726
+ /* @__PURE__ */ p.jsx(Bo, { className: z("h-5 w-5", "text-gray-600") }),
7736
7727
  /* @__PURE__ */ p.jsx("span", { children: "Home" })
7737
7728
  ]
7738
7729
  }
7739
7730
  ) }) }),
7740
- Bf.navMain.map((s) => /* @__PURE__ */ p.jsx(
7731
+ Bf.navMain.map((t) => /* @__PURE__ */ p.jsx(
7741
7732
  Wf,
7742
7733
  {
7743
- title: s.title,
7744
- url: s.url,
7745
- defaultOpen: r(s.items) || n(s.url),
7746
- icon: s.icon,
7747
- isActive: o(s),
7748
- children: /* @__PURE__ */ p.jsx(Ff, { children: /* @__PURE__ */ p.jsx(Vf, { children: s.items.map((a) => /* @__PURE__ */ p.jsx($f, { children: /* @__PURE__ */ p.jsx(Hf, { asChild: !0, children: /* @__PURE__ */ p.jsxs(
7734
+ title: t.title,
7735
+ url: t.url,
7736
+ icon: t.icon,
7737
+ children: /* @__PURE__ */ p.jsx(Ff, { children: /* @__PURE__ */ p.jsx(Vf, { children: t.items.map((n) => /* @__PURE__ */ p.jsx($f, { children: /* @__PURE__ */ p.jsx(Hf, { asChild: !0, children: /* @__PURE__ */ p.jsxs(
7749
7738
  "a",
7750
7739
  {
7751
- href: a.url,
7740
+ href: n.url,
7752
7741
  className: z(
7753
7742
  "flex items-center gap-2 pl-4 transition-colors",
7754
- n(a.url) ? "bg-gli-blue font-medium text-gli-bluedark" : "text-muted-foreground hover:bg-muted hover:text-foreground"
7743
+ "text-muted-foreground hover:bg-muted hover:text-foreground"
7755
7744
  ),
7756
7745
  children: [
7757
- /* @__PURE__ */ p.jsx(
7758
- "span",
7759
- {
7760
- className: z(
7761
- n(a.url) ? "font-medium text-gli-bluedark" : "text-muted-foreground"
7762
- ),
7763
- children: a.icon
7764
- }
7765
- ),
7766
- /* @__PURE__ */ p.jsx(
7767
- "span",
7768
- {
7769
- className: z(
7770
- n(a.url) ? "font-medium text-gli-bluedark" : "text-muted-foreground"
7771
- ),
7772
- children: a.title
7773
- }
7774
- )
7746
+ /* @__PURE__ */ p.jsx("span", { className: z("text-muted-foreground"), children: n.icon }),
7747
+ /* @__PURE__ */ p.jsx("span", { className: z("text-muted-foreground"), children: n.title })
7775
7748
  ]
7776
7749
  }
7777
- ) }) }, a.title)) }) })
7750
+ ) }) }, n.title)) }) })
7778
7751
  },
7779
- s.title
7752
+ t.title
7780
7753
  ))
7781
7754
  ] }),
7782
7755
  /* @__PURE__ */ p.jsx(kf, {})
@@ -154,4 +154,4 @@ React keys must be passed directly to JSX without using spread:
154
154
 
155
155
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
156
156
 
157
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},gu="DialogDescriptionWarning",vu=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${vs(gu).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},bu=os,xu=is,bs=cs,xs=ls,ws=ds,ys=ps,wu=hs;const yu=bu,Cu=xu,Cs=l.forwardRef(({className:e,...t},n)=>p.jsx(bs,{className:B("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}));Cs.displayName=bs.displayName;const Eu=fo("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"}}),Es=l.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(Cu,{children:[p.jsx(Cs,{}),p.jsxs(xs,{ref:o,className:B(Eu({side:e}),t),...r,children:[n,p.jsxs(wu,{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:[p.jsx(sc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Es.displayName=xs.displayName;const Ss=({className:e,...t})=>p.jsx("div",{className:B("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ss.displayName="SheetHeader";const Rs=l.forwardRef(({className:e,...t},n)=>p.jsx(ws,{ref:n,className:B("text-lg font-semibold text-foreground",e),...t}));Rs.displayName=ws.displayName;const _s=l.forwardRef(({className:e,...t},n)=>p.jsx(ys,{ref:n,className:B("text-sm text-muted-foreground",e),...t}));_s.displayName=ys.displayName;const Su=["top","right","bottom","left"],ze=Math.min,pe=Math.max,Kt=Math.round,Yt=Math.floor,Re=e=>({x:e,y:e}),Ru={left:"right",right:"left",bottom:"top",top:"bottom"},_u={start:"end",end:"start"};function Jn(e,t,n){return pe(e,ze(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function Qn(e){return e==="x"?"y":"x"}function er(e){return e==="y"?"height":"width"}function _e(e){return["top","bottom"].includes(De(e))?"y":"x"}function tr(e){return Qn(_e(e))}function Au(e,t,n){n===void 0&&(n=!1);const r=ct(e),o=tr(e),s=er(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=qt(a)),[a,qt(a)]}function Mu(e){const t=qt(e);return[nr(e),t,nr(t)]}function nr(e){return e.replace(/start|end/g,t=>_u[t])}function Ou(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Tu(e,t,n,r){const o=ct(e);let s=Ou(De(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(nr)))),s}function qt(e){return e.replace(/left|right|bottom|top/g,t=>Ru[t])}function Pu(e){return{top:0,right:0,bottom:0,left:0,...e}}function As(e){return typeof e!="number"?Pu(e):{top:e,right:e,bottom:e,left:e}}function Xt(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 Ms(e,t,n){let{reference:r,floating:o}=e;const s=_e(t),a=tr(t),i=er(a),c=De(t),f=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(ct(t)){case"start":g[a]-=m*(n&&f?-1:1);break;case"end":g[a]+=m*(n&&f?-1:1);break}return g}const Nu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ms(f,r,c),m=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:x,fn:v}=i[h],{x:y,y:E,data:S,reset:_}=await v({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=y??u,d=E??d,g={...g,[x]:{...g[x],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(f=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=Ms(f,m,c)),h=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:g}};async function bt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=Ie(t,e),b=As(g),x=i[m?d==="floating"?"reference":"floating":d],v=Xt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:f,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},_=Xt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:E,strategy:c}):y);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const ku=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:f,padding:u=0}=Ie(e,t)||{};if(f==null)return{};const d=As(u),m={x:n,y:r},g=tr(o),b=er(g),h=await a.getDimensions(f),x=g==="y",v=x?"top":"left",y=x?"bottom":"right",E=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[g]-m[g]-s.floating[b],_=m[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let A=M?M[E]:0;(!A||!await(a.isElement==null?void 0:a.isElement(M)))&&(A=i.floating[E]||s.floating[b]);const C=S/2-_/2,I=A/2-h[b]/2-1,D=ze(d[v],I),G=ze(d[y],I),z=D,V=A-h[b]-G,H=A/2-h[b]/2+C,q=Jn(z,H,V),F=!c.arrow&&ct(o)!=null&&H!==q&&s.reference[b]/2-(H<z?D:G)-h[b]/2<0,U=F?H<z?H-z:H-V:0;return{[g]:m[g]+U,data:{[g]:q,centerOffset:H-q-U,...F&&{alignmentOffset:U}},reset:F}}}),Iu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...x}=Ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=De(o),y=_e(i),E=De(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(f.floating)),_=m||(E||!h?[qt(i)]:Mu(i)),M=b!=="none";!m&&M&&_.push(...Tu(i,h,b,S));const A=[i,..._],C=await bt(t,x),I=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(C[v]),d){const H=Au(o,a,S);I.push(C[H[0]],C[H[1]])}if(D=[...D,{placement:o,overflows:I}],!I.every(H=>H<=0)){var G,z;const H=(((G=s.flip)==null?void 0:G.index)||0)+1,q=A[H];if(q&&(!(d==="alignment"?y!==_e(q):!1)||D.every(R=>R.overflows[0]>0&&_e(R.placement)===y)))return{data:{index:H,overflows:D},reset:{placement:q}};let F=(z=D.filter(U=>U.overflows[0]<=0).sort((U,R)=>U.overflows[1]-R.overflows[1])[0])==null?void 0:z.placement;if(!F)switch(g){case"bestFit":{var V;const U=(V=D.filter(R=>{if(M){const O=_e(R.placement);return O===y||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:V[0];U&&(F=U);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Os(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ts(e){return Su.some(t=>e[t]>=0)}const Du=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ie(e,t);switch(r){case"referenceHidden":{const s=await bt(t,{...o,elementContext:"reference"}),a=Os(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ts(a)}}}case"escaped":{const s=await bt(t,{...o,altBoundary:!0}),a=Os(s,n.floating);return{data:{escapedOffsets:a,escaped:Ts(a)}}}default:return{}}}}};async function ju(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=De(n),i=ct(n),c=_e(n)==="y",f=["left","top"].includes(a)?-1:1,u=s&&c?-1:1,d=Ie(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),c?{x:g*u,y:m*f}:{x:m*f,y:g*u}}const Lu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await ju(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Fu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=Ie(e,t),f={x:n,y:r},u=await bt(t,c),d=_e(De(o)),m=Qn(d);let g=f[m],b=f[d];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+u[x],E=g-u[v];g=Jn(y,g,E)}if(a){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=b+u[x],E=b-u[v];b=Jn(y,b,E)}const h=i.fn({...t,[m]:g,[d]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:a}}}}}},$u=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:f=!0}=Ie(e,t),u={x:n,y:r},d=_e(o),m=Qn(d);let g=u[m],b=u[d];const h=Ie(i,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const E=m==="y"?"height":"width",S=s.reference[m]-s.floating[E]+x.mainAxis,_=s.reference[m]+s.reference[E]-x.mainAxis;g<S?g=S:g>_&&(g=_)}if(f){var v,y;const E=m==="y"?"width":"height",S=["top","left"].includes(De(o)),_=s.reference[d]-s.floating[E]+(S&&((v=a.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),M=s.reference[d]+s.reference[E]+(S?0:((y=a.offset)==null?void 0:y[d])||0)-(S?x.crossAxis:0);b<_?b=_:b>M&&(b=M)}return{[m]:g,[d]:b}}}},Vu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...f}=Ie(e,t),u=await bt(t,f),d=De(o),m=ct(o),g=_e(o)==="y",{width:b,height:h}=s.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,x=m==="end"?"top":"bottom");const y=h-u.top-u.bottom,E=b-u.left-u.right,S=ze(h-u[x],y),_=ze(b-u[v],E),M=!t.middlewareData.shift;let A=S,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),M&&!m){const D=pe(u.left,0),G=pe(u.right,0),z=pe(u.top,0),V=pe(u.bottom,0);g?C=b-2*(D!==0||G!==0?D+G:pe(u.left,u.right)):A=h-2*(z!==0||V!==0?z+V:pe(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:A});const I=await a.getDimensions(i.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function lt(e){return Ps(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ps(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ps(e){return Zt()?e instanceof Node||e instanceof me(e).Node:!1}function ye(e){return Zt()?e instanceof Element||e instanceof me(e).Element:!1}function Me(e){return Zt()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Ns(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Hu(e){return["table","td","th"].includes(lt(e))}function Jt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function rr(e){const t=or(),n=ye(e)?Ce(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 Wu(e){let t=Be(e);for(;Me(t)&&!ut(t);){if(rr(t))return t;if(Jt(t))return null;t=Be(t)}return null}function or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ut(e){return["html","body","#document"].includes(lt(e))}function Ce(e){return me(e).getComputedStyle(e)}function Qt(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||Ae(e);return Ns(t)?t.host:t}function ks(e){const t=Be(e);return ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&xt(t)?t:ks(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ks(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=me(o);if(s){const i=sr(a);return t.concat(a,a.visualViewport||[],xt(o)?o:[],i&&n?wt(i):[])}return t.concat(o,wt(o,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Is(e){const t=Ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Me(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Kt(n)!==s||Kt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function ar(e){return ye(e)?e:e.contextElement}function dt(e){const t=ar(e);if(!Me(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Is(t);let a=(s?Kt(n.width):n.width)/r,i=(s?Kt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const zu=Re(0);function Ds(e){const t=me(e);return!or()||!t.visualViewport?zu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ar(e);let a=Re(1);t&&(r?ye(r)&&(a=dt(r)):a=dt(e));const i=Bu(s,n,r)?Ds(s):Re(0);let c=(o.left+i.x)/a.x,f=(o.top+i.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(s){const m=me(s),g=r&&ye(r)?me(r):r;let b=m,h=sr(b);for(;h&&r&&g!==b;){const x=dt(h),v=h.getBoundingClientRect(),y=Ce(h),E=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,S=v.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,f*=x.y,u*=x.x,d*=x.y,c+=E,f+=S,b=me(h),h=sr(b)}}return Xt({width:u,height:d,x:c,y:f})}function ir(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:Xe(Ae(e)).left+n}function js(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ir(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Gu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ae(r),i=t?Jt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},f=Re(1);const u=Re(0),d=Me(r);if((d||!d&&!s)&&((lt(r)!=="body"||xt(a))&&(c=Qt(r)),Me(r))){const g=Xe(r);f=dt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const m=a&&!d&&!s?js(a,c,!0):Re(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-c.scrollTop*f.y+u.y+m.y}}function Uu(e){return Array.from(e.getClientRects())}function Ku(e){const t=Ae(e),n=Qt(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ir(e);const i=-n.scrollTop;return Ce(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function Yu(e,t){const n=me(e),r=Ae(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=or();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:i,y:c}}function qu(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Me(e)?dt(e):Re(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,f=r*s.y;return{width:a,height:i,x:c,y:f}}function Ls(e,t,n){let r;if(t==="viewport")r=Yu(e,n);else if(t==="document")r=Ku(Ae(e));else if(ye(t))r=qu(t,n);else{const o=Ds(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xt(r)}function Fs(e,t){const n=Be(e);return n===t||!ye(n)||ut(n)?!1:Ce(n).position==="fixed"||Fs(n,t)}function Xu(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(i=>ye(i)&&lt(i)!=="body"),o=null;const s=Ce(e).position==="fixed";let a=s?Be(e):e;for(;ye(a)&&!ut(a);){const i=Ce(a),c=rr(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xt(a)&&!c&&Fs(e,a))?r=r.filter(u=>u!==a):o=i,a=Be(a)}return t.set(e,r),r}function Zu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Jt(t)?[]:Xu(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((f,u)=>{const d=Ls(t,u,o);return f.top=pe(d.top,f.top),f.right=ze(d.right,f.right),f.bottom=ze(d.bottom,f.bottom),f.left=pe(d.left,f.left),f},Ls(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ju(e){const{width:t,height:n}=Is(e);return{width:t,height:n}}function Qu(e,t,n){const r=Me(t),o=Ae(t),s=n==="fixed",a=Xe(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Re(0);function f(){c.x=ir(o)}if(r||!r&&!s)if((lt(t)!=="body"||xt(o))&&(i=Qt(t)),r){const g=Xe(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&f();s&&!r&&o&&f();const u=o&&!r&&!s?js(o,i):Re(0),d=a.left+i.scrollLeft-c.x-u.x,m=a.top+i.scrollTop-c.y-u.y;return{x:d,y:m,width:a.width,height:a.height}}function cr(e){return Ce(e).position==="static"}function $s(e,t){if(!Me(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ae(e)===n&&(n=n.ownerDocument.body),n}function Vs(e,t){const n=me(e);if(Jt(e))return n;if(!Me(e)){let o=Be(e);for(;o&&!ut(o);){if(ye(o)&&!cr(o))return o;o=Be(o)}return n}let r=$s(e,t);for(;r&&Hu(r)&&cr(r);)r=$s(r,t);return r&&ut(r)&&cr(r)&&!rr(r)?n:r||Wu(e)||n}const ed=async function(e){const t=this.getOffsetParent||Vs,n=this.getDimensions,r=await n(e.floating);return{reference:Qu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function td(e){return Ce(e).direction==="rtl"}const nd={convertOffsetParentRelativeRectToViewportRelativeRect:Gu,getDocumentElement:Ae,getClippingRect:Zu,getOffsetParent:Vs,getElementRects:ed,getClientRects:Uu,getDimensions:Ju,getScale:dt,isElement:ye,isRTL:td};function Hs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rd(e,t){let n=null,r;const o=Ae(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const f=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(i||t(),!m||!g)return;const b=Yt(d),h=Yt(o.clientWidth-(u+m)),x=Yt(o.clientHeight-(d+g)),v=Yt(u),E={rootMargin:-b+"px "+-h+"px "+-x+"px "+-v+"px",threshold:pe(0,ze(1,c))||1};let S=!0;function _(M){const A=M[0].intersectionRatio;if(A!==c){if(!S)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Hs(f,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return a(!0),s}function od(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=ar(e),u=o||s?[...f?wt(f):[],...wt(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=f&&i?rd(f,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),f&&!c&&g.observe(f),g.observe(t));let b,h=c?Xe(e):null;c&&x();function x(){const v=Xe(e);h&&!Hs(h,v)&&n(),h=v,b=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const sd=Lu,ad=Fu,id=Iu,cd=Vu,ld=Du,Ws=ku,ud=$u,dd=(e,t,n)=>{const r=new Map,o={platform:nd,...n},s={...o.platform,_c:r};return Nu(e,t,{...o,platform:s})};var fd=typeof document<"u",pd=function(){},en=fd?k.useLayoutEffect:pd;function tn(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(!tn(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!tn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bs(e,t){const n=zs(e);return Math.round(t*n)/n}function lr(e){const t=l.useRef(e);return en(()=>{t.current=e}),t}function md(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:f}=e,[u,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(r);tn(m,r)||g(r);const[b,h]=l.useState(null),[x,v]=l.useState(null),y=l.useCallback(R=>{R!==M.current&&(M.current=R,h(R))},[]),E=l.useCallback(R=>{R!==A.current&&(A.current=R,v(R))},[]),S=s||b,_=a||x,M=l.useRef(null),A=l.useRef(null),C=l.useRef(u),I=c!=null,D=lr(c),G=lr(o),z=lr(f),V=l.useCallback(()=>{if(!M.current||!A.current)return;const R={placement:t,strategy:n,middleware:m};G.current&&(R.platform=G.current),dd(M.current,A.current,R).then(O=>{const w={...O,isPositioned:z.current!==!1};H.current&&!tn(C.current,w)&&(C.current=w,Or.flushSync(()=>{d(w)}))})},[m,t,n,G,z]);en(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[f]);const H=l.useRef(!1);en(()=>(H.current=!0,()=>{H.current=!1}),[]),en(()=>{if(S&&(M.current=S),_&&(A.current=_),S&&_){if(D.current)return D.current(S,_,V);V()}},[S,_,V,D,I]);const q=l.useMemo(()=>({reference:M,floating:A,setReference:y,setFloating:E}),[y,E]),F=l.useMemo(()=>({reference:S,floating:_}),[S,_]),U=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!F.floating)return R;const O=Bs(F.floating,u.x),w=Bs(F.floating,u.y);return i?{...R,transform:"translate("+O+"px, "+w+"px)",...zs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:w}},[n,i,F.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:V,refs:q,elements:F,floatingStyles:U}),[u,V,q,F,U])}const hd=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?Ws({element:r.current,padding:o}).fn(n):{}:r?Ws({element:r,padding:o}).fn(n):{}}}},gd=(e,t)=>({...sd(e),options:[e,t]}),vd=(e,t)=>({...ad(e),options:[e,t]}),bd=(e,t)=>({...ud(e),options:[e,t]}),xd=(e,t)=>({...id(e),options:[e,t]}),wd=(e,t)=>({...cd(e),options:[e,t]}),yd=(e,t)=>({...ld(e),options:[e,t]}),Cd=(e,t)=>({...hd(e),options:[e,t]});var Ed="Arrow",Gs=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ne.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gs.displayName=Ed;var Sd=Gs;function Rd(e){const[t,n]=l.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,i=f.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ur="Popper",[Us,nn]=Ye(ur),[_d,Ks]=Us(ur),Ys=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(_d,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ys.displayName=ur;var qs="PopperAnchor",Xs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ks(qs,n),a=l.useRef(null),i=ae(t,a);return l.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.jsx(ne.div,{...o,ref:i})});Xs.displayName=qs;var dr="PopperContent",[Ad,Md]=Us(dr),Zs=l.forwardRef((e,t)=>{var K,Q,ee,se,Ee,Ge;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,x=Ks(dr,n),[v,y]=l.useState(null),E=ae(t,Z=>y(Z)),[S,_]=l.useState(null),M=Rd(S),A=(M==null?void 0:M.width)??0,C=(M==null?void 0:M.height)??0,I=r+(s!=="center"?"-"+s:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},G=Array.isArray(f)?f:[f],z=G.length>0,V={padding:D,boundary:G.filter(Td),altBoundary:z},{refs:H,floatingStyles:q,placement:F,isPositioned:U,middlewareData:R}=md({strategy:"fixed",placement:I,whileElementsMounted:(...Z)=>od(...Z,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[gd({mainAxis:o+C,alignmentAxis:a}),c&&vd({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?bd():void 0,...V}),c&&xd({...V}),wd({...V,apply:({elements:Z,rects:J,availableWidth:ce,availableHeight:re})=>{const{width:he,height:Ue}=J.reference,oe=Z.floating.style;oe.setProperty("--radix-popper-available-width",`${ce}px`),oe.setProperty("--radix-popper-available-height",`${re}px`),oe.setProperty("--radix-popper-anchor-width",`${he}px`),oe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),S&&Cd({element:S,padding:i}),Pd({arrowWidth:A,arrowHeight:C}),m&&yd({strategy:"referenceHidden",...V})]}),[O,w]=ea(F),N=Ne(b);He(()=>{U&&(N==null||N())},[U,N]);const j=(K=R.arrow)==null?void 0:K.x,$=(Q=R.arrow)==null?void 0:Q.y,X=((ee=R.arrow)==null?void 0:ee.centerOffset)!==0,[te,le]=l.useState();return He(()=>{v&&le(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:U?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ge=R.hide)==null?void 0:Ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Ad,{scope:n,placedSide:O,onArrowChange:_,arrowX:j,arrowY:$,shouldHideArrow:X,children:p.jsx(ne.div,{"data-side":O,"data-align":w,...h,ref:E,style:{...h.style,animation:U?void 0:"none"}})})})});Zs.displayName=dr;var Js="PopperArrow",Od={top:"bottom",right:"left",bottom:"top",left:"right"},Qs=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Md(Js,r),a=Od[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(Sd,{...o,ref:n,style:{...o.style,display:"block"}})})});Qs.displayName=Js;function Td(e){return e!==null}var Pd=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[f,u]=ea(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",h="";return f==="bottom"?(b=a?d:`${m}px`,h=`${-c}px`):f==="top"?(b=a?d:`${m}px`,h=`${r.floating.height+c}px`):f==="right"?(b=`${-c}px`,h=a?d:`${g}px`):f==="left"&&(b=`${r.floating.width+c}px`,h=a?d:`${g}px`),{data:{x:b,y:h}}}});function ea(e){const[t,n="center"]=e.split("-");return[t,n]}var Nd=Ys,ta=Xs,na=Zs,ra=Qs,kd=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"}),Id="VisuallyHidden",oa=l.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...kd,...e.style}}));oa.displayName=Id;var Dd=oa,[rn,S0]=Ye("Tooltip",[nn]),fr=nn(),sa="TooltipProvider",jd=700,aa="tooltip.open",[Ld,ia]=rn(sa),ca=e=>{const{__scopeTooltip:t,delayDuration:n=jd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx(Ld,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(f=>{i.current=f},[]),disableHoverableContent:o,children:s})};ca.displayName=sa;var la="Tooltip",[R0,on]=rn(la),pr="TooltipTrigger",Fd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=on(pr,n),s=ia(pr,n),a=fr(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),f=l.useRef(!1),u=l.useRef(!1),d=l.useCallback(()=>f.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(ta,{asChild:!0,...a,children:p.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:L(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});Fd.displayName=pr;var $d="TooltipPortal",[_0,Vd]=rn($d,{forceMount:void 0}),ft="TooltipContent",ua=l.forwardRef((e,t)=>{const n=Vd(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=on(ft,e.__scopeTooltip);return p.jsx(ke,{present:r||a.open,children:a.disableHoverableContent?p.jsx(da,{side:o,...s,ref:t}):p.jsx(Hd,{side:o,...s,ref:t})})}),Hd=l.forwardRef((e,t)=>{const n=on(ft,e.__scopeTooltip),r=ia(ft,e.__scopeTooltip),o=l.useRef(null),s=ae(t,o),[a,i]=l.useState(null),{trigger:c,onClose:f}=n,u=o.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{i(null),d(!1)},[d]),g=l.useCallback((b,h)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},y=Ud(v,x.getBoundingClientRect()),E=Kd(v,y),S=Yd(h.getBoundingClientRect()),_=Xd([...E,...S]);i(_),d(!0)},[d]);return l.useEffect(()=>()=>m(),[m]),l.useEffect(()=>{if(c&&u){const b=x=>g(x,u),h=x=>g(x,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",h)}}},[c,u,g,m]),l.useEffect(()=>{if(a){const b=h=>{const x=h.target,v={x:h.clientX,y:h.clientY},y=(c==null?void 0:c.contains(x))||(u==null?void 0:u.contains(x)),E=!qd(v,a);y?m():E&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,a,f,m]),p.jsx(da,{...e,ref:s})}),[Wd,zd]=rn(la,{isInside:!1}),Bd=ic("TooltipContent"),da=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=on(ft,n),f=fr(n),{onClose:u}=c;return l.useEffect(()=>(document.addEventListener(aa,u),()=>document.removeEventListener(aa,u)),[u]),l.useEffect(()=>{if(c.trigger){const d=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),p.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(na,{"data-state":c.stateAttribute,...f,...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:[p.jsx(Bd,{children:r}),p.jsx(Wd,{scope:n,isInside:!0,children:p.jsx(Dd,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ua.displayName=ft;var fa="TooltipArrow",Gd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fr(n);return zd(fa,n).isInside?null:p.jsx(ra,{...o,...r,ref:t})});Gd.displayName=fa;function Ud(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Kd(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 Yd(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 qd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function Xd(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),Zd(t)}function Zd(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 Jd=ca,pa=ua;const Qd=Jd,ef=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(pa,{ref:r,sideOffset:t,className:B("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}));ef.displayName=pa.displayName;const tf="sidebar_state",nf=60*60*24*7,rf="16rem",of="18rem",sf="3rem",af="b",ma=l.createContext(null);function mr(){const e=l.useContext(ma);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function cf({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...a}){const i=dc(),[c,f]=l.useState(!1),[u,d]=l.useState(e),m=t??u,g=l.useCallback(v=>{const y=typeof v=="function"?v(m):v;n?n(y):d(y),document.cookie=`${tf}=${y}; path=/; max-age=${nf}`},[n,m]),b=l.useCallback(()=>i?f(v=>!v):g(v=>!v),[i,g,f]);l.useEffect(()=>{const v=y=>{y.key===af&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const h=m?"expanded":"collapsed",x=l.useMemo(()=>({state:h,open:m,setOpen:g,isMobile:i,openMobile:c,setOpenMobile:f,toggleSidebar:b}),[h,m,g,i,c,f,b]);return p.jsx(ma.Provider,{value:x,children:p.jsx(Qd,{delayDuration:0,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":rf,"--sidebar-width-icon":sf,...o},className:B("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:s})})})}function lf({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:a,state:i,openMobile:c,setOpenMobile:f}=mr();return n==="none"?p.jsx("div",{"data-slot":"sidebar",className:B("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...s,children:o}):a?p.jsx(yu,{open:c,onOpenChange:f,...s,children:p.jsxs(Es,{"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":of},side:e,children:[p.jsxs(Ss,{className:"sr-only",children:[p.jsx(Rs,{children:"Sidebar"}),p.jsx(_s,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.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:[p.jsx("div",{"data-slot":"sidebar-gap",className:B("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)")}),p.jsx("div",{"data-slot":"sidebar-container",className:B("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),...s,children:p.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 uf({className:e,onClick:t,...n}){const{toggleSidebar:r}=mr();return p.jsxs(Dn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:B("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[p.jsx(oc,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function df({className:e,...t}){const{toggleSidebar:n}=mr();return p.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:B("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 ff({className:e,...t}){return p.jsx("main",{"data-slot":"sidebar-inset",className:B("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 pf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:B("flex flex-col gap-2 p-2",e),...t})}function mf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:B("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function hf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:B("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function gf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:B("w-full text-sm",e),...t})}function vf({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:B("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 bf({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:B("group/menu-sub-item relative",e),...t})}function xf({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?so:"a";return p.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:B("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 wf({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1}){const[a,i]=l.useState(r);return l.useEffect(()=>{s&&i(!0)},[s]),p.jsx(hf,{children:p.jsxs("div",{className:"flex flex-col",children:[p.jsxs("div",{className:"flex flex-row items-center justify-between",children:[p.jsxs("a",{href:t,className:B("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 hover:bg-gray-100",s&&"font-medium"),children:[o&&p.jsx("span",{className:B("text-gray-600",s&&"font-medium"),children:o}),p.jsx("span",{className:B(s&&"font-medium"),children:e})]}),p.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:c=>{c.preventDefault(),c.stopPropagation(),i(!a)},"aria-label":a?"Collapse section":"Expand section",children:a?p.jsx(tc,{className:"h-4 w-4"}):p.jsx(nc,{className:"h-4 w-4"})})]}),p.jsx("div",{className:B("overflow-hidden transition-all",a?"max-h-96":"max-h-0"),children:n})]})})}const yf="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",Cf={navMain:[{title:"Essential Insights",url:"/overall-performance",icon:p.jsx(ec,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/overall-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/organic-performance",icon:p.jsx(to,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/paid-performance",icon:p.jsx(Qi,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/keyword-performance",icon:p.jsx(to,{className:"h-4 w-4"})},{title:"More Components",url:"/more-components",icon:p.jsx(Ji,{className:"h-4 w-4"})}]}]};function Ef({...e}){const t=window.location.pathname,n=s=>t===s?!0:s==="/essential-insights"?!1:!!t.startsWith(s+"/"),r=s=>s.some(a=>n(a.url)),o=s=>n(s.url)||r(s.items);return p.jsxs(lf,{...e,children:[p.jsx(pf,{children:p.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:p.jsx("img",{src:yf,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),p.jsxs(mf,{children:[p.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:p.jsx("div",{className:"flex flex-col",children:p.jsxs("a",{href:"/home",className:B("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2",t==="/home"?"bg-gli-blue font-medium":"hover:bg-gray-100"),children:[p.jsx(no,{className:B("h-5 w-5",t==="/home"?"font-medium":"text-gray-600")}),p.jsx("span",{children:"Home"})]})})}),Cf.navMain.map(s=>p.jsx(wf,{title:s.title,url:s.url,defaultOpen:r(s.items)||n(s.url),icon:s.icon,isActive:o(s),children:p.jsx(gf,{children:p.jsx(vf,{children:s.items.map(a=>p.jsx(bf,{children:p.jsx(xf,{asChild:!0,children:p.jsxs("a",{href:a.url,className:B("flex items-center gap-2 pl-4 transition-colors",n(a.url)?"bg-gli-blue font-medium text-gli-bluedark":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[p.jsx("span",{className:B(n(a.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:a.icon}),p.jsx("span",{className:B(n(a.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:a.title})]})})},a.title))})})},s.title))]}),p.jsx(df,{})]})}function ha(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:v}=h,y=k.useRef(null),E=k.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:E,collectionRef:y,children:v})};a.displayName=t;const i=e+"CollectionSlot",c=Qe(i),f=k.forwardRef((h,x)=>{const{scope:v,children:y}=h,E=s(i,v),S=ae(x,E.collectionRef);return p.jsx(c,{ref:S,children:y})});f.displayName=i;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=Qe(u),g=k.forwardRef((h,x)=>{const{scope:v,children:y,...E}=h,S=k.useRef(null),_=ae(x,S),M=s(u,v);return k.useEffect(()=>(M.itemMap.set(S,{ref:S,...E}),()=>void M.itemMap.delete(S))),p.jsx(m,{[d]:"",ref:_,children:y})});g.displayName=u;function b(h){const x=s(e+"CollectionConsumer",h);return k.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const E=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((M,A)=>E.indexOf(M.ref.current)-E.indexOf(A.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:f,ItemSlot:g},b,r]}var Sf=l.createContext(void 0);function ga(e){const t=l.useContext(Sf);return e||t||"ltr"}var hr="rovingFocusGroup.onEntryFocus",Rf={bubbles:!1,cancelable:!0},yt="RovingFocusGroup",[gr,va,_f]=ha(yt),[Af,ba]=Ye(yt,[_f]),[Mf,Of]=Af(yt),xa=l.forwardRef((e,t)=>p.jsx(gr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(gr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Tf,{...e,ref:t})})}));xa.displayName=yt;var Tf=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=e,m=l.useRef(null),g=ae(t,m),b=ga(s),[h,x]=jn({prop:a,defaultProp:i??null,onChange:c,caller:yt}),[v,y]=l.useState(!1),E=Ne(f),S=va(n),_=l.useRef(!1),[M,A]=l.useState(0);return l.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(hr,E),()=>C.removeEventListener(hr,E)},[E]),p.jsx(Mf,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:l.useCallback(C=>x(C),[x]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:l.useCallback(()=>A(C=>C-1),[]),children:p.jsx(ne.div,{tabIndex:v||M===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{_.current=!0}),onFocus:L(e.onFocus,C=>{const I=!_.current;if(C.target===C.currentTarget&&I&&!v){const D=new CustomEvent(hr,Rf);if(C.currentTarget.dispatchEvent(D),!D.defaultPrevented){const G=S().filter(F=>F.focusable),z=G.find(F=>F.active),V=G.find(F=>F.id===h),q=[z,V,...G].filter(Boolean).map(F=>F.ref.current);Ca(q,u)}}_.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),wa="RovingFocusGroupItem",ya=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,c=rt(),f=s||c,u=Of(wa,n),d=u.currentTabStopId===f,m=va(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=u;return l.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),p.jsx(gr.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:p.jsx(ne.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,x=>{r?u.onItemFocus(f):x.preventDefault()}),onFocus:L(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:L(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=kf(x,u.orientation,u.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const S=E.indexOf(x.currentTarget);E=u.loop?If(E,S+1):E.slice(S+1)}setTimeout(()=>Ca(E))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:h!=null}):a})})});ya.displayName=wa;var Pf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kf(e,t,n){const r=Nf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Pf[r]}function Ca(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function If(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Df=xa,jf=ya,vr=["Enter"," "],Lf=["ArrowDown","PageUp","Home"],Ea=["ArrowUp","PageDown","End"],Ff=[...Lf,...Ea],$f={ltr:[...vr,"ArrowRight"],rtl:[...vr,"ArrowLeft"]},Vf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ct="Menu",[Et,Hf,Wf]=ha(Ct),[Ze,Sa]=Ye(Ct,[Wf,nn,ba]),sn=nn(),Ra=ba(),[zf,Je]=Ze(Ct),[Bf,St]=Ze(Ct),_a=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=sn(t),[c,f]=l.useState(null),u=l.useRef(!1),d=Ne(s),m=ga(o);return l.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),p.jsx(Nd,{...i,children:p.jsx(zf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(Bf,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:a,children:r})})})};_a.displayName=Ct;var Gf="MenuAnchor",br=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sn(n);return p.jsx(ta,{...o,...r,ref:t})});br.displayName=Gf;var xr="MenuPortal",[Uf,Aa]=Ze(xr,{forceMount:void 0}),Ma=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Je(xr,t);return p.jsx(Uf,{scope:t,forceMount:n,children:p.jsx(ke,{present:n||s.open,children:p.jsx(Hn,{asChild:!0,container:o,children:r})})})};Ma.displayName=xr;var ge="MenuContent",[Kf,wr]=Ze(ge),Oa=l.forwardRef((e,t)=>{const n=Aa(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),a=St(ge,e.__scopeMenu);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(Yf,{...o,ref:t}):p.jsx(qf,{...o,ref:t})})})})}),Yf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return ns(s)},[]),p.jsx(yr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),qf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu);return p.jsx(yr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Xf=Qe("MenuContent.ScrollLock"),yr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,x=Je(ge,n),v=St(ge,n),y=sn(n),E=Ra(n),S=Hf(n),[_,M]=l.useState(null),A=l.useRef(null),C=ae(t,A,x.onContentChange),I=l.useRef(0),D=l.useRef(""),G=l.useRef(0),z=l.useRef(null),V=l.useRef("right"),H=l.useRef(0),q=b?Kn:l.Fragment,F=b?{as:Xf,allowPinchZoom:!0}:void 0,U=O=>{var K,Q;const w=D.current+O,N=S().filter(ee=>!ee.disabled),j=document.activeElement,$=(K=N.find(ee=>ee.ref.current===j))==null?void 0:K.textValue,X=N.map(ee=>ee.textValue),te=cp(X,w,$),le=(Q=N.find(ee=>ee.textValue===te))==null?void 0:Q.ref.current;(function ee(se){D.current=se,window.clearTimeout(I.current),se!==""&&(I.current=window.setTimeout(()=>ee(""),1e3))})(w),le&&setTimeout(()=>le.focus())};l.useEffect(()=>()=>window.clearTimeout(I.current),[]),Ho();const R=l.useCallback(O=>{var N,j;return V.current===((N=z.current)==null?void 0:N.side)&&up(O,(j=z.current)==null?void 0:j.area)},[]);return p.jsx(Kf,{scope:n,searchRef:D,onItemEnter:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),onItemLeave:l.useCallback(O=>{var w;R(O)||((w=A.current)==null||w.focus(),M(null))},[R]),onTriggerLeave:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),pointerGraceTimerRef:G,onPointerGraceIntentChange:l.useCallback(O=>{z.current=O},[]),children:p.jsx(q,{...F,children:p.jsx(Vn,{asChild:!0,trapped:o,onMountAutoFocus:L(s,O=>{var w;O.preventDefault(),(w=A.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(jt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:p.jsx(Df,{asChild:!0,...E,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:M,onEntryFocus:L(c,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(na,{role:"menu","aria-orientation":"vertical","data-state":Ua(x.open),"data-radix-menu-content":"",dir:v.dir,...y,...h,ref:C,style:{outline:"none",...h.style},onKeyDown:L(h.onKeyDown,O=>{const N=O.target.closest("[data-radix-menu-content]")===O.currentTarget,j=O.ctrlKey||O.altKey||O.metaKey,$=O.key.length===1;N&&(O.key==="Tab"&&O.preventDefault(),!j&&$&&U(O.key));const X=A.current;if(O.target!==X||!Ff.includes(O.key))return;O.preventDefault();const le=S().filter(K=>!K.disabled).map(K=>K.ref.current);Ea.includes(O.key)&&le.reverse(),ap(le)}),onBlur:L(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(I.current),D.current="")}),onPointerMove:L(e.onPointerMove,_t(O=>{const w=O.target,N=H.current!==O.clientX;if(O.currentTarget.contains(w)&&N){const j=O.clientX>H.current?"right":"left";V.current=j,H.current=O.clientX}}))})})})})})})});Oa.displayName=ge;var Zf="MenuGroup",Cr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Cr.displayName=Zf;var Jf="MenuLabel",Ta=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});Ta.displayName=Jf;var an="MenuItem",Pa="menu.itemSelect",cn=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=St(an,e.__scopeMenu),i=wr(an,e.__scopeMenu),c=ae(t,s),f=l.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(Pa,{bubbles:!0,cancelable:!0});d.addEventListener(Pa,g=>r==null?void 0:r(g),{once:!0}),Ao(d,m),m.defaultPrevented?f.current=!1:a.onClose()}};return p.jsx(Na,{...o,ref:c,disabled:n,onClick:L(e.onClick,u),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),f.current=!0},onPointerUp:L(e.onPointerUp,d=>{var m;f.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:L(e.onKeyDown,d=>{const m=i.searchRef.current!=="";n||m&&d.key===" "||vr.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});cn.displayName=an;var Na=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=wr(an,n),i=Ra(n),c=l.useRef(null),f=ae(t,c),[u,d]=l.useState(!1),[m,g]=l.useState("");return l.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[s.children]),p.jsx(Et.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(jf,{asChild:!0,...i,focusable:!r,children:p.jsx(ne.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:f,onPointerMove:L(e.onPointerMove,_t(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,_t(b=>a.onItemLeave(b))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),Qf="MenuCheckboxItem",ka=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Fa,{scope:e.__scopeMenu,checked:n,children:p.jsx(cn,{role:"menuitemcheckbox","aria-checked":ln(n)?"mixed":n,...o,ref:t,"data-state":Sr(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(ln(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ka.displayName=Qf;var Ia="MenuRadioGroup",[ep,tp]=Ze(Ia,{value:void 0,onValueChange:()=>{}}),Da=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ne(r);return p.jsx(ep,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Cr,{...o,ref:t})})});Da.displayName=Ia;var ja="MenuRadioItem",La=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=tp(ja,e.__scopeMenu),s=n===o.value;return p.jsx(Fa,{scope:e.__scopeMenu,checked:s,children:p.jsx(cn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Sr(s),onSelect:L(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});La.displayName=ja;var Er="MenuItemIndicator",[Fa,np]=Ze(Er,{checked:!1}),$a=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=np(Er,n);return p.jsx(ke,{present:r||ln(s.checked)||s.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Sr(s.checked)})})});$a.displayName=Er;var rp="MenuSeparator",Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Va.displayName=rp;var op="MenuArrow",Ha=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sn(n);return p.jsx(ra,{...o,...r,ref:t})});Ha.displayName=op;var sp="MenuSub",[A0,Wa]=Ze(sp),Rt="MenuSubTrigger",za=l.forwardRef((e,t)=>{const n=Je(Rt,e.__scopeMenu),r=St(Rt,e.__scopeMenu),o=Wa(Rt,e.__scopeMenu),s=wr(Rt,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},u=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>u,[u]),l.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),c(null)}},[i,c]),p.jsx(br,{asChild:!0,...f,children:p.jsx(Na,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ua(n.open),...e,ref:kt(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,_t(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:L(e.onPointerLeave,_t(d=>{var g,b;u();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,x=h==="right",v=x?-5:5,y=m[x?"left":"right"],E=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:y,y:m.top},{x:E,y:m.top},{x:E,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,d=>{var g;const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||$f[r.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});za.displayName=Rt;var Ba="MenuSubContent",Ga=l.forwardRef((e,t)=>{const n=Aa(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),a=St(ge,e.__scopeMenu),i=Wa(Ba,e.__scopeMenu),c=l.useRef(null),f=ae(t,c);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:p.jsx(yr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:f,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;a.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:L(e.onFocusOutside,u=>{u.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{var g;const d=u.currentTarget.contains(u.target),m=Vf[a.dir].includes(u.key);d&&m&&(s.onOpenChange(!1),(g=i.trigger)==null||g.focus(),u.preventDefault())})})})})})});Ga.displayName=Ba;function Ua(e){return e?"open":"closed"}function ln(e){return e==="indeterminate"}function Sr(e){return ln(e)?"indeterminate":e?"checked":"unchecked"}function ap(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ip(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function cp(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=ip(e,Math.max(s,0));o.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function lp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function up(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return lp(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var dp=_a,fp=br,pp=Ma,mp=Oa,hp=Cr,gp=Ta,vp=cn,bp=ka,xp=Da,wp=La,yp=$a,Cp=Va,Ep=Ha,Sp=za,Rp=Ga,un="DropdownMenu",[_p,M0]=Ye(un,[Sa]),de=Sa(),[Ap,Ka]=_p(un),Ya=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,c=de(t),f=l.useRef(null),[u,d]=jn({prop:o,defaultProp:s??!1,onChange:a,caller:un});return p.jsx(Ap,{scope:t,triggerId:rt(),triggerRef:f,contentId:rt(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(m=>!m),[d]),modal:i,children:p.jsx(dp,{...c,open:u,onOpenChange:d,dir:r,modal:i,children:n})})};Ya.displayName=un;var qa="DropdownMenuTrigger",Xa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Ka(qa,n),a=de(n);return p.jsx(fp,{asChild:!0,...a,children:p.jsx(ne.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:kt(t,s.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Xa.displayName=qa;var Mp="DropdownMenuPortal",Za=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(pp,{...r,...n})};Za.displayName=Mp;var Ja="DropdownMenuContent",Qa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ka(Ja,n),s=de(n),a=l.useRef(!1);return p.jsx(mp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const c=i.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,u=c.button===2||f;(!o.modal||u)&&(a.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)"}})});Qa.displayName=Ja;var Op="DropdownMenuGroup",Tp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(hp,{...o,...r,ref:t})});Tp.displayName=Op;var Pp="DropdownMenuLabel",ei=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gp,{...o,...r,ref:t})});ei.displayName=Pp;var Np="DropdownMenuItem",ti=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vp,{...o,...r,ref:t})});ti.displayName=Np;var kp="DropdownMenuCheckboxItem",Ip=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(bp,{...o,...r,ref:t})});Ip.displayName=kp;var Dp="DropdownMenuRadioGroup",jp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(xp,{...o,...r,ref:t})});jp.displayName=Dp;var Lp="DropdownMenuRadioItem",Fp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wp,{...o,...r,ref:t})});Fp.displayName=Lp;var $p="DropdownMenuItemIndicator",Vp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yp,{...o,...r,ref:t})});Vp.displayName=$p;var Hp="DropdownMenuSeparator",ni=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Cp,{...o,...r,ref:t})});ni.displayName=Hp;var Wp="DropdownMenuArrow",zp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ep,{...o,...r,ref:t})});zp.displayName=Wp;var Bp="DropdownMenuSubTrigger",Gp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Sp,{...o,...r,ref:t})});Gp.displayName=Bp;var Up="DropdownMenuSubContent",Kp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Rp,{...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)"}})});Kp.displayName=Up;var Yp=Ya,qp=Xa,Xp=Za,Zp=Qa,Jp=ei,Qp=ti,e0=ni;function t0({...e}){return p.jsx(Yp,{"data-slot":"dropdown-menu",...e})}function n0({...e}){return p.jsx(qp,{"data-slot":"dropdown-menu-trigger",...e})}function r0({className:e,sideOffset:t=4,...n}){return p.jsx(Xp,{children:p.jsx(Zp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:B("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 ri({className:e,inset:t,variant:n="default",...r}){return p.jsx(Qp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:B("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 o0({className:e,inset:t,...n}){return p.jsx(Jp,{"data-slot":"dropdown-menu-label","data-inset":t,className:B("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function s0({className:e,...t}){return p.jsx(e0,{"data-slot":"dropdown-menu-separator",className:B("bg-border -mx-1 my-1 h-px",e),...t})}const a0=()=>{const{user:e,error:t,isLoading:n}=Gi(),r=()=>{window.location.href="/auth/logout"};return n?p.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):t?p.jsxs("div",{children:["Error: ",t.message]}):e?p.jsx("div",{className:"relative flex items-center gap-3",children:p.jsxs(t0,{children:[p.jsx(n0,{asChild:!0,children:p.jsx(Dn,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:e.picture?p.jsx("img",{src:e.picture,alt:e.name||"User profile",width:40,height:40,className:"rounded-full"}):p.jsx(ro,{className:"h-5 w-5 text-gray-500"})})}),p.jsxs(r0,{align:"end",className:"w-72",children:[p.jsx(o0,{children:p.jsx("div",{className:"flex flex-col space-y-1",children:p.jsxs("div",{className:"flex flex-col space-y-1",children:[p.jsx("p",{className:"text-xs text-gray-500",children:e.name}),p.jsx("p",{className:"truncate text-xs text-gray-500",children:e.email})]})})}),p.jsx(s0,{}),p.jsx(ri,{asChild:!0,children:p.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[p.jsx(ro,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Profile"})]})}),p.jsxs(ri,{onClick:r,children:[p.jsx(rc,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Sign out"})]})]})]})}):null},i0=()=>p.jsx("div",{className:"sticky top-0 z-50",children:p.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[p.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[p.jsx(uf,{}),p.jsx(Po,{orientation:"vertical"})]}),p.jsx("div",{className:"flex-shrink-0",children:p.jsx(a0,{})})]})}),c0=({children:e})=>p.jsx(Ui,{children:p.jsx(cf,{children:p.jsxs("div",{className:"flex h-screen w-full",children:[p.jsx(Ef,{}),p.jsxs(ff,{className:"flex-1 flex flex-col min-w-0",children:[p.jsx(i0,{}),p.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});Fe.GLICloudProvider=c0,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
157
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},gu="DialogDescriptionWarning",vu=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${vs(gu).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},bu=os,xu=is,bs=cs,xs=ls,ws=ds,ys=ps,wu=hs;const yu=bu,Cu=xu,Cs=l.forwardRef(({className:e,...t},n)=>p.jsx(bs,{className:B("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}));Cs.displayName=bs.displayName;const Eu=fo("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"}}),Es=l.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(Cu,{children:[p.jsx(Cs,{}),p.jsxs(xs,{ref:o,className:B(Eu({side:e}),t),...r,children:[n,p.jsxs(wu,{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:[p.jsx(sc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Es.displayName=xs.displayName;const Ss=({className:e,...t})=>p.jsx("div",{className:B("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ss.displayName="SheetHeader";const Rs=l.forwardRef(({className:e,...t},n)=>p.jsx(ws,{ref:n,className:B("text-lg font-semibold text-foreground",e),...t}));Rs.displayName=ws.displayName;const _s=l.forwardRef(({className:e,...t},n)=>p.jsx(ys,{ref:n,className:B("text-sm text-muted-foreground",e),...t}));_s.displayName=ys.displayName;const Su=["top","right","bottom","left"],ze=Math.min,pe=Math.max,Kt=Math.round,Yt=Math.floor,Re=e=>({x:e,y:e}),Ru={left:"right",right:"left",bottom:"top",top:"bottom"},_u={start:"end",end:"start"};function Jn(e,t,n){return pe(e,ze(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function Qn(e){return e==="x"?"y":"x"}function er(e){return e==="y"?"height":"width"}function _e(e){return["top","bottom"].includes(De(e))?"y":"x"}function tr(e){return Qn(_e(e))}function Au(e,t,n){n===void 0&&(n=!1);const r=ct(e),o=tr(e),s=er(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=qt(a)),[a,qt(a)]}function Mu(e){const t=qt(e);return[nr(e),t,nr(t)]}function nr(e){return e.replace(/start|end/g,t=>_u[t])}function Ou(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Tu(e,t,n,r){const o=ct(e);let s=Ou(De(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(nr)))),s}function qt(e){return e.replace(/left|right|bottom|top/g,t=>Ru[t])}function Pu(e){return{top:0,right:0,bottom:0,left:0,...e}}function As(e){return typeof e!="number"?Pu(e):{top:e,right:e,bottom:e,left:e}}function Xt(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 Ms(e,t,n){let{reference:r,floating:o}=e;const s=_e(t),a=tr(t),i=er(a),c=De(t),f=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(ct(t)){case"start":g[a]-=m*(n&&f?-1:1);break;case"end":g[a]+=m*(n&&f?-1:1);break}return g}const Nu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ms(f,r,c),m=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:x,fn:v}=i[h],{x:y,y:E,data:S,reset:_}=await v({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=y??u,d=E??d,g={...g,[x]:{...g[x],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(f=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=Ms(f,m,c)),h=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:g}};async function bt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=Ie(t,e),b=As(g),x=i[m?d==="floating"?"reference":"floating":d],v=Xt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:f,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},_=Xt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:E,strategy:c}):y);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const ku=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:f,padding:u=0}=Ie(e,t)||{};if(f==null)return{};const d=As(u),m={x:n,y:r},g=tr(o),b=er(g),h=await a.getDimensions(f),x=g==="y",v=x?"top":"left",y=x?"bottom":"right",E=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[g]-m[g]-s.floating[b],_=m[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let A=M?M[E]:0;(!A||!await(a.isElement==null?void 0:a.isElement(M)))&&(A=i.floating[E]||s.floating[b]);const C=S/2-_/2,I=A/2-h[b]/2-1,D=ze(d[v],I),G=ze(d[y],I),z=D,V=A-h[b]-G,H=A/2-h[b]/2+C,q=Jn(z,H,V),F=!c.arrow&&ct(o)!=null&&H!==q&&s.reference[b]/2-(H<z?D:G)-h[b]/2<0,U=F?H<z?H-z:H-V:0;return{[g]:m[g]+U,data:{[g]:q,centerOffset:H-q-U,...F&&{alignmentOffset:U}},reset:F}}}),Iu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...x}=Ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=De(o),y=_e(i),E=De(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(f.floating)),_=m||(E||!h?[qt(i)]:Mu(i)),M=b!=="none";!m&&M&&_.push(...Tu(i,h,b,S));const A=[i,..._],C=await bt(t,x),I=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(C[v]),d){const H=Au(o,a,S);I.push(C[H[0]],C[H[1]])}if(D=[...D,{placement:o,overflows:I}],!I.every(H=>H<=0)){var G,z;const H=(((G=s.flip)==null?void 0:G.index)||0)+1,q=A[H];if(q&&(!(d==="alignment"?y!==_e(q):!1)||D.every(R=>R.overflows[0]>0&&_e(R.placement)===y)))return{data:{index:H,overflows:D},reset:{placement:q}};let F=(z=D.filter(U=>U.overflows[0]<=0).sort((U,R)=>U.overflows[1]-R.overflows[1])[0])==null?void 0:z.placement;if(!F)switch(g){case"bestFit":{var V;const U=(V=D.filter(R=>{if(M){const O=_e(R.placement);return O===y||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:V[0];U&&(F=U);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Os(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ts(e){return Su.some(t=>e[t]>=0)}const Du=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ie(e,t);switch(r){case"referenceHidden":{const s=await bt(t,{...o,elementContext:"reference"}),a=Os(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ts(a)}}}case"escaped":{const s=await bt(t,{...o,altBoundary:!0}),a=Os(s,n.floating);return{data:{escapedOffsets:a,escaped:Ts(a)}}}default:return{}}}}};async function ju(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=De(n),i=ct(n),c=_e(n)==="y",f=["left","top"].includes(a)?-1:1,u=s&&c?-1:1,d=Ie(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),c?{x:g*u,y:m*f}:{x:m*f,y:g*u}}const Lu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await ju(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Fu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=Ie(e,t),f={x:n,y:r},u=await bt(t,c),d=_e(De(o)),m=Qn(d);let g=f[m],b=f[d];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+u[x],E=g-u[v];g=Jn(y,g,E)}if(a){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=b+u[x],E=b-u[v];b=Jn(y,b,E)}const h=i.fn({...t,[m]:g,[d]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:a}}}}}},$u=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:f=!0}=Ie(e,t),u={x:n,y:r},d=_e(o),m=Qn(d);let g=u[m],b=u[d];const h=Ie(i,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const E=m==="y"?"height":"width",S=s.reference[m]-s.floating[E]+x.mainAxis,_=s.reference[m]+s.reference[E]-x.mainAxis;g<S?g=S:g>_&&(g=_)}if(f){var v,y;const E=m==="y"?"width":"height",S=["top","left"].includes(De(o)),_=s.reference[d]-s.floating[E]+(S&&((v=a.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),M=s.reference[d]+s.reference[E]+(S?0:((y=a.offset)==null?void 0:y[d])||0)-(S?x.crossAxis:0);b<_?b=_:b>M&&(b=M)}return{[m]:g,[d]:b}}}},Vu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...f}=Ie(e,t),u=await bt(t,f),d=De(o),m=ct(o),g=_e(o)==="y",{width:b,height:h}=s.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,x=m==="end"?"top":"bottom");const y=h-u.top-u.bottom,E=b-u.left-u.right,S=ze(h-u[x],y),_=ze(b-u[v],E),M=!t.middlewareData.shift;let A=S,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),M&&!m){const D=pe(u.left,0),G=pe(u.right,0),z=pe(u.top,0),V=pe(u.bottom,0);g?C=b-2*(D!==0||G!==0?D+G:pe(u.left,u.right)):A=h-2*(z!==0||V!==0?z+V:pe(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:A});const I=await a.getDimensions(i.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function lt(e){return Ps(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ps(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ps(e){return Zt()?e instanceof Node||e instanceof me(e).Node:!1}function ye(e){return Zt()?e instanceof Element||e instanceof me(e).Element:!1}function Me(e){return Zt()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Ns(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Hu(e){return["table","td","th"].includes(lt(e))}function Jt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function rr(e){const t=or(),n=ye(e)?Ce(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 Wu(e){let t=Be(e);for(;Me(t)&&!ut(t);){if(rr(t))return t;if(Jt(t))return null;t=Be(t)}return null}function or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ut(e){return["html","body","#document"].includes(lt(e))}function Ce(e){return me(e).getComputedStyle(e)}function Qt(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||Ae(e);return Ns(t)?t.host:t}function ks(e){const t=Be(e);return ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&xt(t)?t:ks(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ks(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=me(o);if(s){const i=sr(a);return t.concat(a,a.visualViewport||[],xt(o)?o:[],i&&n?wt(i):[])}return t.concat(o,wt(o,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Is(e){const t=Ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Me(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Kt(n)!==s||Kt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function ar(e){return ye(e)?e:e.contextElement}function dt(e){const t=ar(e);if(!Me(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Is(t);let a=(s?Kt(n.width):n.width)/r,i=(s?Kt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const zu=Re(0);function Ds(e){const t=me(e);return!or()||!t.visualViewport?zu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ar(e);let a=Re(1);t&&(r?ye(r)&&(a=dt(r)):a=dt(e));const i=Bu(s,n,r)?Ds(s):Re(0);let c=(o.left+i.x)/a.x,f=(o.top+i.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(s){const m=me(s),g=r&&ye(r)?me(r):r;let b=m,h=sr(b);for(;h&&r&&g!==b;){const x=dt(h),v=h.getBoundingClientRect(),y=Ce(h),E=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,S=v.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,f*=x.y,u*=x.x,d*=x.y,c+=E,f+=S,b=me(h),h=sr(b)}}return Xt({width:u,height:d,x:c,y:f})}function ir(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:Xe(Ae(e)).left+n}function js(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ir(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Gu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ae(r),i=t?Jt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},f=Re(1);const u=Re(0),d=Me(r);if((d||!d&&!s)&&((lt(r)!=="body"||xt(a))&&(c=Qt(r)),Me(r))){const g=Xe(r);f=dt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const m=a&&!d&&!s?js(a,c,!0):Re(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-c.scrollTop*f.y+u.y+m.y}}function Uu(e){return Array.from(e.getClientRects())}function Ku(e){const t=Ae(e),n=Qt(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ir(e);const i=-n.scrollTop;return Ce(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function Yu(e,t){const n=me(e),r=Ae(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=or();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:i,y:c}}function qu(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Me(e)?dt(e):Re(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,f=r*s.y;return{width:a,height:i,x:c,y:f}}function Ls(e,t,n){let r;if(t==="viewport")r=Yu(e,n);else if(t==="document")r=Ku(Ae(e));else if(ye(t))r=qu(t,n);else{const o=Ds(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xt(r)}function Fs(e,t){const n=Be(e);return n===t||!ye(n)||ut(n)?!1:Ce(n).position==="fixed"||Fs(n,t)}function Xu(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(i=>ye(i)&&lt(i)!=="body"),o=null;const s=Ce(e).position==="fixed";let a=s?Be(e):e;for(;ye(a)&&!ut(a);){const i=Ce(a),c=rr(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xt(a)&&!c&&Fs(e,a))?r=r.filter(u=>u!==a):o=i,a=Be(a)}return t.set(e,r),r}function Zu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Jt(t)?[]:Xu(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((f,u)=>{const d=Ls(t,u,o);return f.top=pe(d.top,f.top),f.right=ze(d.right,f.right),f.bottom=ze(d.bottom,f.bottom),f.left=pe(d.left,f.left),f},Ls(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ju(e){const{width:t,height:n}=Is(e);return{width:t,height:n}}function Qu(e,t,n){const r=Me(t),o=Ae(t),s=n==="fixed",a=Xe(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Re(0);function f(){c.x=ir(o)}if(r||!r&&!s)if((lt(t)!=="body"||xt(o))&&(i=Qt(t)),r){const g=Xe(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&f();s&&!r&&o&&f();const u=o&&!r&&!s?js(o,i):Re(0),d=a.left+i.scrollLeft-c.x-u.x,m=a.top+i.scrollTop-c.y-u.y;return{x:d,y:m,width:a.width,height:a.height}}function cr(e){return Ce(e).position==="static"}function $s(e,t){if(!Me(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ae(e)===n&&(n=n.ownerDocument.body),n}function Vs(e,t){const n=me(e);if(Jt(e))return n;if(!Me(e)){let o=Be(e);for(;o&&!ut(o);){if(ye(o)&&!cr(o))return o;o=Be(o)}return n}let r=$s(e,t);for(;r&&Hu(r)&&cr(r);)r=$s(r,t);return r&&ut(r)&&cr(r)&&!rr(r)?n:r||Wu(e)||n}const ed=async function(e){const t=this.getOffsetParent||Vs,n=this.getDimensions,r=await n(e.floating);return{reference:Qu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function td(e){return Ce(e).direction==="rtl"}const nd={convertOffsetParentRelativeRectToViewportRelativeRect:Gu,getDocumentElement:Ae,getClippingRect:Zu,getOffsetParent:Vs,getElementRects:ed,getClientRects:Uu,getDimensions:Ju,getScale:dt,isElement:ye,isRTL:td};function Hs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rd(e,t){let n=null,r;const o=Ae(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const f=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(i||t(),!m||!g)return;const b=Yt(d),h=Yt(o.clientWidth-(u+m)),x=Yt(o.clientHeight-(d+g)),v=Yt(u),E={rootMargin:-b+"px "+-h+"px "+-x+"px "+-v+"px",threshold:pe(0,ze(1,c))||1};let S=!0;function _(M){const A=M[0].intersectionRatio;if(A!==c){if(!S)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Hs(f,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return a(!0),s}function od(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=ar(e),u=o||s?[...f?wt(f):[],...wt(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=f&&i?rd(f,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),f&&!c&&g.observe(f),g.observe(t));let b,h=c?Xe(e):null;c&&x();function x(){const v=Xe(e);h&&!Hs(h,v)&&n(),h=v,b=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const sd=Lu,ad=Fu,id=Iu,cd=Vu,ld=Du,Ws=ku,ud=$u,dd=(e,t,n)=>{const r=new Map,o={platform:nd,...n},s={...o.platform,_c:r};return Nu(e,t,{...o,platform:s})};var fd=typeof document<"u",pd=function(){},en=fd?k.useLayoutEffect:pd;function tn(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(!tn(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!tn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bs(e,t){const n=zs(e);return Math.round(t*n)/n}function lr(e){const t=l.useRef(e);return en(()=>{t.current=e}),t}function md(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:f}=e,[u,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(r);tn(m,r)||g(r);const[b,h]=l.useState(null),[x,v]=l.useState(null),y=l.useCallback(R=>{R!==M.current&&(M.current=R,h(R))},[]),E=l.useCallback(R=>{R!==A.current&&(A.current=R,v(R))},[]),S=s||b,_=a||x,M=l.useRef(null),A=l.useRef(null),C=l.useRef(u),I=c!=null,D=lr(c),G=lr(o),z=lr(f),V=l.useCallback(()=>{if(!M.current||!A.current)return;const R={placement:t,strategy:n,middleware:m};G.current&&(R.platform=G.current),dd(M.current,A.current,R).then(O=>{const w={...O,isPositioned:z.current!==!1};H.current&&!tn(C.current,w)&&(C.current=w,Or.flushSync(()=>{d(w)}))})},[m,t,n,G,z]);en(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[f]);const H=l.useRef(!1);en(()=>(H.current=!0,()=>{H.current=!1}),[]),en(()=>{if(S&&(M.current=S),_&&(A.current=_),S&&_){if(D.current)return D.current(S,_,V);V()}},[S,_,V,D,I]);const q=l.useMemo(()=>({reference:M,floating:A,setReference:y,setFloating:E}),[y,E]),F=l.useMemo(()=>({reference:S,floating:_}),[S,_]),U=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!F.floating)return R;const O=Bs(F.floating,u.x),w=Bs(F.floating,u.y);return i?{...R,transform:"translate("+O+"px, "+w+"px)",...zs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:w}},[n,i,F.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:V,refs:q,elements:F,floatingStyles:U}),[u,V,q,F,U])}const hd=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?Ws({element:r.current,padding:o}).fn(n):{}:r?Ws({element:r,padding:o}).fn(n):{}}}},gd=(e,t)=>({...sd(e),options:[e,t]}),vd=(e,t)=>({...ad(e),options:[e,t]}),bd=(e,t)=>({...ud(e),options:[e,t]}),xd=(e,t)=>({...id(e),options:[e,t]}),wd=(e,t)=>({...cd(e),options:[e,t]}),yd=(e,t)=>({...ld(e),options:[e,t]}),Cd=(e,t)=>({...hd(e),options:[e,t]});var Ed="Arrow",Gs=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ne.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gs.displayName=Ed;var Sd=Gs;function Rd(e){const[t,n]=l.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,i=f.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ur="Popper",[Us,nn]=Ye(ur),[_d,Ks]=Us(ur),Ys=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(_d,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ys.displayName=ur;var qs="PopperAnchor",Xs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ks(qs,n),a=l.useRef(null),i=ae(t,a);return l.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.jsx(ne.div,{...o,ref:i})});Xs.displayName=qs;var dr="PopperContent",[Ad,Md]=Us(dr),Zs=l.forwardRef((e,t)=>{var K,Q,ee,se,Ee,Ge;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,x=Ks(dr,n),[v,y]=l.useState(null),E=ae(t,Z=>y(Z)),[S,_]=l.useState(null),M=Rd(S),A=(M==null?void 0:M.width)??0,C=(M==null?void 0:M.height)??0,I=r+(s!=="center"?"-"+s:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},G=Array.isArray(f)?f:[f],z=G.length>0,V={padding:D,boundary:G.filter(Td),altBoundary:z},{refs:H,floatingStyles:q,placement:F,isPositioned:U,middlewareData:R}=md({strategy:"fixed",placement:I,whileElementsMounted:(...Z)=>od(...Z,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[gd({mainAxis:o+C,alignmentAxis:a}),c&&vd({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?bd():void 0,...V}),c&&xd({...V}),wd({...V,apply:({elements:Z,rects:J,availableWidth:ce,availableHeight:re})=>{const{width:he,height:Ue}=J.reference,oe=Z.floating.style;oe.setProperty("--radix-popper-available-width",`${ce}px`),oe.setProperty("--radix-popper-available-height",`${re}px`),oe.setProperty("--radix-popper-anchor-width",`${he}px`),oe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),S&&Cd({element:S,padding:i}),Pd({arrowWidth:A,arrowHeight:C}),m&&yd({strategy:"referenceHidden",...V})]}),[O,w]=ea(F),N=Ne(b);He(()=>{U&&(N==null||N())},[U,N]);const j=(K=R.arrow)==null?void 0:K.x,$=(Q=R.arrow)==null?void 0:Q.y,X=((ee=R.arrow)==null?void 0:ee.centerOffset)!==0,[te,le]=l.useState();return He(()=>{v&&le(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:U?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ge=R.hide)==null?void 0:Ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Ad,{scope:n,placedSide:O,onArrowChange:_,arrowX:j,arrowY:$,shouldHideArrow:X,children:p.jsx(ne.div,{"data-side":O,"data-align":w,...h,ref:E,style:{...h.style,animation:U?void 0:"none"}})})})});Zs.displayName=dr;var Js="PopperArrow",Od={top:"bottom",right:"left",bottom:"top",left:"right"},Qs=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Md(Js,r),a=Od[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(Sd,{...o,ref:n,style:{...o.style,display:"block"}})})});Qs.displayName=Js;function Td(e){return e!==null}var Pd=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[f,u]=ea(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",h="";return f==="bottom"?(b=a?d:`${m}px`,h=`${-c}px`):f==="top"?(b=a?d:`${m}px`,h=`${r.floating.height+c}px`):f==="right"?(b=`${-c}px`,h=a?d:`${g}px`):f==="left"&&(b=`${r.floating.width+c}px`,h=a?d:`${g}px`),{data:{x:b,y:h}}}});function ea(e){const[t,n="center"]=e.split("-");return[t,n]}var Nd=Ys,ta=Xs,na=Zs,ra=Qs,kd=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"}),Id="VisuallyHidden",oa=l.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...kd,...e.style}}));oa.displayName=Id;var Dd=oa,[rn,S0]=Ye("Tooltip",[nn]),fr=nn(),sa="TooltipProvider",jd=700,aa="tooltip.open",[Ld,ia]=rn(sa),ca=e=>{const{__scopeTooltip:t,delayDuration:n=jd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx(Ld,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(f=>{i.current=f},[]),disableHoverableContent:o,children:s})};ca.displayName=sa;var la="Tooltip",[R0,on]=rn(la),pr="TooltipTrigger",Fd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=on(pr,n),s=ia(pr,n),a=fr(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),f=l.useRef(!1),u=l.useRef(!1),d=l.useCallback(()=>f.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(ta,{asChild:!0,...a,children:p.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:L(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});Fd.displayName=pr;var $d="TooltipPortal",[_0,Vd]=rn($d,{forceMount:void 0}),ft="TooltipContent",ua=l.forwardRef((e,t)=>{const n=Vd(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=on(ft,e.__scopeTooltip);return p.jsx(ke,{present:r||a.open,children:a.disableHoverableContent?p.jsx(da,{side:o,...s,ref:t}):p.jsx(Hd,{side:o,...s,ref:t})})}),Hd=l.forwardRef((e,t)=>{const n=on(ft,e.__scopeTooltip),r=ia(ft,e.__scopeTooltip),o=l.useRef(null),s=ae(t,o),[a,i]=l.useState(null),{trigger:c,onClose:f}=n,u=o.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{i(null),d(!1)},[d]),g=l.useCallback((b,h)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},y=Ud(v,x.getBoundingClientRect()),E=Kd(v,y),S=Yd(h.getBoundingClientRect()),_=Xd([...E,...S]);i(_),d(!0)},[d]);return l.useEffect(()=>()=>m(),[m]),l.useEffect(()=>{if(c&&u){const b=x=>g(x,u),h=x=>g(x,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",h)}}},[c,u,g,m]),l.useEffect(()=>{if(a){const b=h=>{const x=h.target,v={x:h.clientX,y:h.clientY},y=(c==null?void 0:c.contains(x))||(u==null?void 0:u.contains(x)),E=!qd(v,a);y?m():E&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,a,f,m]),p.jsx(da,{...e,ref:s})}),[Wd,zd]=rn(la,{isInside:!1}),Bd=ic("TooltipContent"),da=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=on(ft,n),f=fr(n),{onClose:u}=c;return l.useEffect(()=>(document.addEventListener(aa,u),()=>document.removeEventListener(aa,u)),[u]),l.useEffect(()=>{if(c.trigger){const d=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),p.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(na,{"data-state":c.stateAttribute,...f,...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:[p.jsx(Bd,{children:r}),p.jsx(Wd,{scope:n,isInside:!0,children:p.jsx(Dd,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ua.displayName=ft;var fa="TooltipArrow",Gd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fr(n);return zd(fa,n).isInside?null:p.jsx(ra,{...o,...r,ref:t})});Gd.displayName=fa;function Ud(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Kd(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 Yd(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 qd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function Xd(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),Zd(t)}function Zd(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 Jd=ca,pa=ua;const Qd=Jd,ef=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(pa,{ref:r,sideOffset:t,className:B("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}));ef.displayName=pa.displayName;const tf="sidebar_state",nf=60*60*24*7,rf="16rem",of="18rem",sf="3rem",af="b",ma=l.createContext(null);function mr(){const e=l.useContext(ma);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function cf({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...a}){const i=dc(),[c,f]=l.useState(!1),[u,d]=l.useState(e),m=t??u,g=l.useCallback(v=>{const y=typeof v=="function"?v(m):v;n?n(y):d(y),document.cookie=`${tf}=${y}; path=/; max-age=${nf}`},[n,m]),b=l.useCallback(()=>i?f(v=>!v):g(v=>!v),[i,g,f]);l.useEffect(()=>{const v=y=>{y.key===af&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const h=m?"expanded":"collapsed",x=l.useMemo(()=>({state:h,open:m,setOpen:g,isMobile:i,openMobile:c,setOpenMobile:f,toggleSidebar:b}),[h,m,g,i,c,f,b]);return p.jsx(ma.Provider,{value:x,children:p.jsx(Qd,{delayDuration:0,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":rf,"--sidebar-width-icon":sf,...o},className:B("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:s})})})}function lf({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:a,state:i,openMobile:c,setOpenMobile:f}=mr();return n==="none"?p.jsx("div",{"data-slot":"sidebar",className:B("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...s,children:o}):a?p.jsx(yu,{open:c,onOpenChange:f,...s,children:p.jsxs(Es,{"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":of},side:e,children:[p.jsxs(Ss,{className:"sr-only",children:[p.jsx(Rs,{children:"Sidebar"}),p.jsx(_s,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.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:[p.jsx("div",{"data-slot":"sidebar-gap",className:B("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)")}),p.jsx("div",{"data-slot":"sidebar-container",className:B("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),...s,children:p.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 uf({className:e,onClick:t,...n}){const{toggleSidebar:r}=mr();return p.jsxs(Dn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:B("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[p.jsx(oc,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function df({className:e,...t}){const{toggleSidebar:n}=mr();return p.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:B("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 ff({className:e,...t}){return p.jsx("main",{"data-slot":"sidebar-inset",className:B("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 pf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:B("flex flex-col gap-2 p-2",e),...t})}function mf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:B("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function hf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:B("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function gf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:B("w-full text-sm",e),...t})}function vf({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:B("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 bf({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:B("group/menu-sub-item relative",e),...t})}function xf({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?so:"a";return p.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:B("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 wf({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1}){const[a,i]=l.useState(r);return l.useEffect(()=>{s&&i(!0)},[s]),p.jsx(hf,{children:p.jsxs("div",{className:"flex flex-col",children:[p.jsxs("div",{className:"flex flex-row items-center justify-between",children:[p.jsxs("a",{href:t,className:B("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 hover:bg-gray-100",s&&"font-medium"),children:[o&&p.jsx("span",{className:B("text-gray-600",s&&"font-medium"),children:o}),p.jsx("span",{className:B(s&&"font-medium"),children:e})]}),p.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:c=>{c.preventDefault(),c.stopPropagation(),i(!a)},"aria-label":a?"Collapse section":"Expand section",children:a?p.jsx(tc,{className:"h-4 w-4"}):p.jsx(nc,{className:"h-4 w-4"})})]}),p.jsx("div",{className:B("overflow-hidden transition-all",a?"max-h-96":"max-h-0"),children:n})]})})}const yf="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",Cf={navMain:[{title:"Essential Insights",url:"/overall-performance",icon:p.jsx(ec,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/overall-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/organic-performance",icon:p.jsx(to,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/paid-performance",icon:p.jsx(Qi,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/keyword-performance",icon:p.jsx(to,{className:"h-4 w-4"})},{title:"More Components",url:"/more-components",icon:p.jsx(Ji,{className:"h-4 w-4"})}]}]};function Ef({...e}){return p.jsxs(lf,{...e,children:[p.jsx(pf,{children:p.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:p.jsx("img",{src:yf,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),p.jsxs(mf,{children:[p.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:p.jsx("div",{className:"flex flex-col",children:p.jsxs("a",{href:"/home",className:B("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2","hover:bg-gray-100"),children:[p.jsx(no,{className:B("h-5 w-5","text-gray-600")}),p.jsx("span",{children:"Home"})]})})}),Cf.navMain.map(t=>p.jsx(wf,{title:t.title,url:t.url,icon:t.icon,children:p.jsx(gf,{children:p.jsx(vf,{children:t.items.map(n=>p.jsx(bf,{children:p.jsx(xf,{asChild:!0,children:p.jsxs("a",{href:n.url,className:B("flex items-center gap-2 pl-4 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground"),children:[p.jsx("span",{className:B("text-muted-foreground"),children:n.icon}),p.jsx("span",{className:B("text-muted-foreground"),children:n.title})]})})},n.title))})})},t.title))]}),p.jsx(df,{})]})}function ha(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:v}=h,y=k.useRef(null),E=k.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:E,collectionRef:y,children:v})};a.displayName=t;const i=e+"CollectionSlot",c=Qe(i),f=k.forwardRef((h,x)=>{const{scope:v,children:y}=h,E=s(i,v),S=ae(x,E.collectionRef);return p.jsx(c,{ref:S,children:y})});f.displayName=i;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=Qe(u),g=k.forwardRef((h,x)=>{const{scope:v,children:y,...E}=h,S=k.useRef(null),_=ae(x,S),M=s(u,v);return k.useEffect(()=>(M.itemMap.set(S,{ref:S,...E}),()=>void M.itemMap.delete(S))),p.jsx(m,{[d]:"",ref:_,children:y})});g.displayName=u;function b(h){const x=s(e+"CollectionConsumer",h);return k.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const E=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((M,A)=>E.indexOf(M.ref.current)-E.indexOf(A.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:f,ItemSlot:g},b,r]}var Sf=l.createContext(void 0);function ga(e){const t=l.useContext(Sf);return e||t||"ltr"}var hr="rovingFocusGroup.onEntryFocus",Rf={bubbles:!1,cancelable:!0},yt="RovingFocusGroup",[gr,va,_f]=ha(yt),[Af,ba]=Ye(yt,[_f]),[Mf,Of]=Af(yt),xa=l.forwardRef((e,t)=>p.jsx(gr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(gr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Tf,{...e,ref:t})})}));xa.displayName=yt;var Tf=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=e,m=l.useRef(null),g=ae(t,m),b=ga(s),[h,x]=jn({prop:a,defaultProp:i??null,onChange:c,caller:yt}),[v,y]=l.useState(!1),E=Ne(f),S=va(n),_=l.useRef(!1),[M,A]=l.useState(0);return l.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(hr,E),()=>C.removeEventListener(hr,E)},[E]),p.jsx(Mf,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:l.useCallback(C=>x(C),[x]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:l.useCallback(()=>A(C=>C-1),[]),children:p.jsx(ne.div,{tabIndex:v||M===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{_.current=!0}),onFocus:L(e.onFocus,C=>{const I=!_.current;if(C.target===C.currentTarget&&I&&!v){const D=new CustomEvent(hr,Rf);if(C.currentTarget.dispatchEvent(D),!D.defaultPrevented){const G=S().filter(F=>F.focusable),z=G.find(F=>F.active),V=G.find(F=>F.id===h),q=[z,V,...G].filter(Boolean).map(F=>F.ref.current);Ca(q,u)}}_.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),wa="RovingFocusGroupItem",ya=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,c=rt(),f=s||c,u=Of(wa,n),d=u.currentTabStopId===f,m=va(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=u;return l.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),p.jsx(gr.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:p.jsx(ne.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,x=>{r?u.onItemFocus(f):x.preventDefault()}),onFocus:L(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:L(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=kf(x,u.orientation,u.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const S=E.indexOf(x.currentTarget);E=u.loop?If(E,S+1):E.slice(S+1)}setTimeout(()=>Ca(E))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:h!=null}):a})})});ya.displayName=wa;var Pf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kf(e,t,n){const r=Nf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Pf[r]}function Ca(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function If(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Df=xa,jf=ya,vr=["Enter"," "],Lf=["ArrowDown","PageUp","Home"],Ea=["ArrowUp","PageDown","End"],Ff=[...Lf,...Ea],$f={ltr:[...vr,"ArrowRight"],rtl:[...vr,"ArrowLeft"]},Vf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ct="Menu",[Et,Hf,Wf]=ha(Ct),[Ze,Sa]=Ye(Ct,[Wf,nn,ba]),sn=nn(),Ra=ba(),[zf,Je]=Ze(Ct),[Bf,St]=Ze(Ct),_a=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=sn(t),[c,f]=l.useState(null),u=l.useRef(!1),d=Ne(s),m=ga(o);return l.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),p.jsx(Nd,{...i,children:p.jsx(zf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(Bf,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:a,children:r})})})};_a.displayName=Ct;var Gf="MenuAnchor",br=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sn(n);return p.jsx(ta,{...o,...r,ref:t})});br.displayName=Gf;var xr="MenuPortal",[Uf,Aa]=Ze(xr,{forceMount:void 0}),Ma=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Je(xr,t);return p.jsx(Uf,{scope:t,forceMount:n,children:p.jsx(ke,{present:n||s.open,children:p.jsx(Hn,{asChild:!0,container:o,children:r})})})};Ma.displayName=xr;var ge="MenuContent",[Kf,wr]=Ze(ge),Oa=l.forwardRef((e,t)=>{const n=Aa(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),a=St(ge,e.__scopeMenu);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(Yf,{...o,ref:t}):p.jsx(qf,{...o,ref:t})})})})}),Yf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return ns(s)},[]),p.jsx(yr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),qf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu);return p.jsx(yr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Xf=Qe("MenuContent.ScrollLock"),yr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,x=Je(ge,n),v=St(ge,n),y=sn(n),E=Ra(n),S=Hf(n),[_,M]=l.useState(null),A=l.useRef(null),C=ae(t,A,x.onContentChange),I=l.useRef(0),D=l.useRef(""),G=l.useRef(0),z=l.useRef(null),V=l.useRef("right"),H=l.useRef(0),q=b?Kn:l.Fragment,F=b?{as:Xf,allowPinchZoom:!0}:void 0,U=O=>{var K,Q;const w=D.current+O,N=S().filter(ee=>!ee.disabled),j=document.activeElement,$=(K=N.find(ee=>ee.ref.current===j))==null?void 0:K.textValue,X=N.map(ee=>ee.textValue),te=cp(X,w,$),le=(Q=N.find(ee=>ee.textValue===te))==null?void 0:Q.ref.current;(function ee(se){D.current=se,window.clearTimeout(I.current),se!==""&&(I.current=window.setTimeout(()=>ee(""),1e3))})(w),le&&setTimeout(()=>le.focus())};l.useEffect(()=>()=>window.clearTimeout(I.current),[]),Ho();const R=l.useCallback(O=>{var N,j;return V.current===((N=z.current)==null?void 0:N.side)&&up(O,(j=z.current)==null?void 0:j.area)},[]);return p.jsx(Kf,{scope:n,searchRef:D,onItemEnter:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),onItemLeave:l.useCallback(O=>{var w;R(O)||((w=A.current)==null||w.focus(),M(null))},[R]),onTriggerLeave:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),pointerGraceTimerRef:G,onPointerGraceIntentChange:l.useCallback(O=>{z.current=O},[]),children:p.jsx(q,{...F,children:p.jsx(Vn,{asChild:!0,trapped:o,onMountAutoFocus:L(s,O=>{var w;O.preventDefault(),(w=A.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(jt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:p.jsx(Df,{asChild:!0,...E,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:M,onEntryFocus:L(c,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(na,{role:"menu","aria-orientation":"vertical","data-state":Ua(x.open),"data-radix-menu-content":"",dir:v.dir,...y,...h,ref:C,style:{outline:"none",...h.style},onKeyDown:L(h.onKeyDown,O=>{const N=O.target.closest("[data-radix-menu-content]")===O.currentTarget,j=O.ctrlKey||O.altKey||O.metaKey,$=O.key.length===1;N&&(O.key==="Tab"&&O.preventDefault(),!j&&$&&U(O.key));const X=A.current;if(O.target!==X||!Ff.includes(O.key))return;O.preventDefault();const le=S().filter(K=>!K.disabled).map(K=>K.ref.current);Ea.includes(O.key)&&le.reverse(),ap(le)}),onBlur:L(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(I.current),D.current="")}),onPointerMove:L(e.onPointerMove,_t(O=>{const w=O.target,N=H.current!==O.clientX;if(O.currentTarget.contains(w)&&N){const j=O.clientX>H.current?"right":"left";V.current=j,H.current=O.clientX}}))})})})})})})});Oa.displayName=ge;var Zf="MenuGroup",Cr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Cr.displayName=Zf;var Jf="MenuLabel",Ta=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});Ta.displayName=Jf;var an="MenuItem",Pa="menu.itemSelect",cn=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=St(an,e.__scopeMenu),i=wr(an,e.__scopeMenu),c=ae(t,s),f=l.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(Pa,{bubbles:!0,cancelable:!0});d.addEventListener(Pa,g=>r==null?void 0:r(g),{once:!0}),Ao(d,m),m.defaultPrevented?f.current=!1:a.onClose()}};return p.jsx(Na,{...o,ref:c,disabled:n,onClick:L(e.onClick,u),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),f.current=!0},onPointerUp:L(e.onPointerUp,d=>{var m;f.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:L(e.onKeyDown,d=>{const m=i.searchRef.current!=="";n||m&&d.key===" "||vr.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});cn.displayName=an;var Na=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=wr(an,n),i=Ra(n),c=l.useRef(null),f=ae(t,c),[u,d]=l.useState(!1),[m,g]=l.useState("");return l.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[s.children]),p.jsx(Et.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(jf,{asChild:!0,...i,focusable:!r,children:p.jsx(ne.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:f,onPointerMove:L(e.onPointerMove,_t(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,_t(b=>a.onItemLeave(b))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),Qf="MenuCheckboxItem",ka=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Fa,{scope:e.__scopeMenu,checked:n,children:p.jsx(cn,{role:"menuitemcheckbox","aria-checked":ln(n)?"mixed":n,...o,ref:t,"data-state":Sr(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(ln(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ka.displayName=Qf;var Ia="MenuRadioGroup",[ep,tp]=Ze(Ia,{value:void 0,onValueChange:()=>{}}),Da=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ne(r);return p.jsx(ep,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Cr,{...o,ref:t})})});Da.displayName=Ia;var ja="MenuRadioItem",La=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=tp(ja,e.__scopeMenu),s=n===o.value;return p.jsx(Fa,{scope:e.__scopeMenu,checked:s,children:p.jsx(cn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Sr(s),onSelect:L(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});La.displayName=ja;var Er="MenuItemIndicator",[Fa,np]=Ze(Er,{checked:!1}),$a=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=np(Er,n);return p.jsx(ke,{present:r||ln(s.checked)||s.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Sr(s.checked)})})});$a.displayName=Er;var rp="MenuSeparator",Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Va.displayName=rp;var op="MenuArrow",Ha=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sn(n);return p.jsx(ra,{...o,...r,ref:t})});Ha.displayName=op;var sp="MenuSub",[A0,Wa]=Ze(sp),Rt="MenuSubTrigger",za=l.forwardRef((e,t)=>{const n=Je(Rt,e.__scopeMenu),r=St(Rt,e.__scopeMenu),o=Wa(Rt,e.__scopeMenu),s=wr(Rt,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},u=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>u,[u]),l.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),c(null)}},[i,c]),p.jsx(br,{asChild:!0,...f,children:p.jsx(Na,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ua(n.open),...e,ref:kt(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,_t(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:L(e.onPointerLeave,_t(d=>{var g,b;u();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,x=h==="right",v=x?-5:5,y=m[x?"left":"right"],E=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:y,y:m.top},{x:E,y:m.top},{x:E,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,d=>{var g;const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||$f[r.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});za.displayName=Rt;var Ba="MenuSubContent",Ga=l.forwardRef((e,t)=>{const n=Aa(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),a=St(ge,e.__scopeMenu),i=Wa(Ba,e.__scopeMenu),c=l.useRef(null),f=ae(t,c);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:p.jsx(yr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:f,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;a.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:L(e.onFocusOutside,u=>{u.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{var g;const d=u.currentTarget.contains(u.target),m=Vf[a.dir].includes(u.key);d&&m&&(s.onOpenChange(!1),(g=i.trigger)==null||g.focus(),u.preventDefault())})})})})})});Ga.displayName=Ba;function Ua(e){return e?"open":"closed"}function ln(e){return e==="indeterminate"}function Sr(e){return ln(e)?"indeterminate":e?"checked":"unchecked"}function ap(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ip(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function cp(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=ip(e,Math.max(s,0));o.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function lp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function up(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return lp(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var dp=_a,fp=br,pp=Ma,mp=Oa,hp=Cr,gp=Ta,vp=cn,bp=ka,xp=Da,wp=La,yp=$a,Cp=Va,Ep=Ha,Sp=za,Rp=Ga,un="DropdownMenu",[_p,M0]=Ye(un,[Sa]),de=Sa(),[Ap,Ka]=_p(un),Ya=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,c=de(t),f=l.useRef(null),[u,d]=jn({prop:o,defaultProp:s??!1,onChange:a,caller:un});return p.jsx(Ap,{scope:t,triggerId:rt(),triggerRef:f,contentId:rt(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(m=>!m),[d]),modal:i,children:p.jsx(dp,{...c,open:u,onOpenChange:d,dir:r,modal:i,children:n})})};Ya.displayName=un;var qa="DropdownMenuTrigger",Xa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Ka(qa,n),a=de(n);return p.jsx(fp,{asChild:!0,...a,children:p.jsx(ne.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:kt(t,s.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Xa.displayName=qa;var Mp="DropdownMenuPortal",Za=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(pp,{...r,...n})};Za.displayName=Mp;var Ja="DropdownMenuContent",Qa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ka(Ja,n),s=de(n),a=l.useRef(!1);return p.jsx(mp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const c=i.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,u=c.button===2||f;(!o.modal||u)&&(a.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)"}})});Qa.displayName=Ja;var Op="DropdownMenuGroup",Tp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(hp,{...o,...r,ref:t})});Tp.displayName=Op;var Pp="DropdownMenuLabel",ei=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gp,{...o,...r,ref:t})});ei.displayName=Pp;var Np="DropdownMenuItem",ti=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vp,{...o,...r,ref:t})});ti.displayName=Np;var kp="DropdownMenuCheckboxItem",Ip=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(bp,{...o,...r,ref:t})});Ip.displayName=kp;var Dp="DropdownMenuRadioGroup",jp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(xp,{...o,...r,ref:t})});jp.displayName=Dp;var Lp="DropdownMenuRadioItem",Fp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wp,{...o,...r,ref:t})});Fp.displayName=Lp;var $p="DropdownMenuItemIndicator",Vp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yp,{...o,...r,ref:t})});Vp.displayName=$p;var Hp="DropdownMenuSeparator",ni=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Cp,{...o,...r,ref:t})});ni.displayName=Hp;var Wp="DropdownMenuArrow",zp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ep,{...o,...r,ref:t})});zp.displayName=Wp;var Bp="DropdownMenuSubTrigger",Gp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Sp,{...o,...r,ref:t})});Gp.displayName=Bp;var Up="DropdownMenuSubContent",Kp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Rp,{...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)"}})});Kp.displayName=Up;var Yp=Ya,qp=Xa,Xp=Za,Zp=Qa,Jp=ei,Qp=ti,e0=ni;function t0({...e}){return p.jsx(Yp,{"data-slot":"dropdown-menu",...e})}function n0({...e}){return p.jsx(qp,{"data-slot":"dropdown-menu-trigger",...e})}function r0({className:e,sideOffset:t=4,...n}){return p.jsx(Xp,{children:p.jsx(Zp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:B("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 ri({className:e,inset:t,variant:n="default",...r}){return p.jsx(Qp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:B("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 o0({className:e,inset:t,...n}){return p.jsx(Jp,{"data-slot":"dropdown-menu-label","data-inset":t,className:B("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function s0({className:e,...t}){return p.jsx(e0,{"data-slot":"dropdown-menu-separator",className:B("bg-border -mx-1 my-1 h-px",e),...t})}const a0=()=>{const{user:e,error:t,isLoading:n}=Gi(),r=()=>{window.location.href="/auth/logout"};return n?p.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):t?p.jsxs("div",{children:["Error: ",t.message]}):e?p.jsx("div",{className:"relative flex items-center gap-3",children:p.jsxs(t0,{children:[p.jsx(n0,{asChild:!0,children:p.jsx(Dn,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:e.picture?p.jsx("img",{src:e.picture,alt:e.name||"User profile",width:40,height:40,className:"rounded-full"}):p.jsx(ro,{className:"h-5 w-5 text-gray-500"})})}),p.jsxs(r0,{align:"end",className:"w-72",children:[p.jsx(o0,{children:p.jsx("div",{className:"flex flex-col space-y-1",children:p.jsxs("div",{className:"flex flex-col space-y-1",children:[p.jsx("p",{className:"text-xs text-gray-500",children:e.name}),p.jsx("p",{className:"truncate text-xs text-gray-500",children:e.email})]})})}),p.jsx(s0,{}),p.jsx(ri,{asChild:!0,children:p.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[p.jsx(ro,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Profile"})]})}),p.jsxs(ri,{onClick:r,children:[p.jsx(rc,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Sign out"})]})]})]})}):null},i0=()=>p.jsx("div",{className:"sticky top-0 z-50",children:p.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[p.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[p.jsx(uf,{}),p.jsx(Po,{orientation:"vertical"})]}),p.jsx("div",{className:"flex-shrink-0",children:p.jsx(a0,{})})]})}),c0=({children:e})=>p.jsx(Ui,{children:p.jsx(cf,{children:p.jsxs("div",{className:"flex h-screen w-full",children:[p.jsx(Ef,{}),p.jsxs(ff,{className:"flex-1 flex flex-col min-w-0",children:[p.jsx(i0,{}),p.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});Fe.GLICloudProvider=c0,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import "../index.css";
2
3
  export declare const GLICloudProvider: ({ children, }: {
3
4
  children: React.ReactNode;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"GLICloudProvider.d.ts","sourceRoot":"","sources":["../../src/providers/GLICloudProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,gBAAgB,GAAI,eAE9B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAgBA,CAAC"}
1
+ {"version":3,"file":"GLICloudProvider.d.ts","sourceRoot":"","sources":["../../src/providers/GLICloudProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,gBAAgB,GAAI,eAE9B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAgBA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golocalinteractive/golocal-cloud-wrapper",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "A React provider component for Go Local Interactive's cloud services",
5
5
  "license": "ISC",
6
6
  "author": "Tanner Barrett",
@@ -8,7 +8,6 @@
8
8
  "main": "./dist/golocal-cloud-wrapper.es.js",
9
9
  "module": "./dist/golocal-cloud-wrapper.es.js",
10
10
  "types": "./dist/index.d.ts",
11
- "style": "./dist/golocal-cloud-wrapper.css",
12
11
  "files": [
13
12
  "dist",
14
13
  "README.md"
@@ -18,8 +17,7 @@
18
17
  "types": "./dist/index.d.ts",
19
18
  "import": "./dist/golocal-cloud-wrapper.es.js",
20
19
  "require": "./dist/golocal-cloud-wrapper.umd.js"
21
- },
22
- "./styles": "./dist/golocal-cloud-wrapper.css"
20
+ }
23
21
  },
24
22
  "scripts": {
25
23
  "build": "vite build && npm run build:types",