@keslers/kui 0.4.2 → 1.1.0

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,3 +1,7 @@
1
+ [![npm version](https://img.shields.io/npm/v/@keslers/kui.svg)](https://www.npmjs.com/package/@keslers/kui)
2
+ [![npm downloads](https://img.shields.io/npm/dm/@keslers/kui.svg)](https://www.npmjs.com/package/@keslers/kui)
3
+ [![license](https://img.shields.io/npm/l/@keslers/kui)](https://www.npmjs.com/package/@keslers/kui)
4
+
1
5
  # @keslers/kui Component Library
2
6
 
3
7
  A hyper-opinionated React component library built with Tailwind v4, shadcn/ui, and react-icons. Provides pre-styled components like Header, Footer, and Layout for quick setup in dark-themed apps.
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
- "use strict";var co=Object.create;var ft=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var so=Object.getOwnPropertyNames;var uo=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var po=(t,e)=>{for(var r in e)ft(t,r,{get:e[r],enumerable:!0})},Le=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of so(e))!ho.call(t,n)&&n!==r&&ft(t,n,{get:()=>e[n],enumerable:!(o=lo(e,n))||o.enumerable});return t};var v=(t,e,r)=>(r=t!=null?co(uo(t)):{},Le(e||!t||!t.__esModule?ft(r,"default",{value:t,enumerable:!0}):r,t)),go=t=>Le(ft({},"__esModule",{value:!0}),t);var Vn={};po(Vn,{Footer:()=>oo,Header:()=>Qr,IconWithBadge:()=>me,Layout:()=>no});module.exports=go(Vn);var Zr=require("react");var Kn=require("react"),be=require("class-variance-authority"),tt=require("radix-ui");var we=require("clsx"),Ce=require("tailwind-merge");function S(...t){return(0,Ce.twMerge)((0,we.clsx)(t))}var fo=require("lucide-react"),G=require("react/jsx-runtime");function Re({className:t,children:e,viewport:r=!0,...o}){return(0,G.jsxs)(tt.NavigationMenu.Root,{"data-slot":"navigation-menu","data-viewport":r,className:S("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...o,children:[e,r&&(0,G.jsx)(xo,{})]})}function Me({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:S("group flex flex-1 list-none items-center justify-center gap-0",t),...e})}function je({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:S("relative",t),...e})}var Fe=(0,be.cva)("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg bg-background px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");function xo({className:t,...e}){return(0,G.jsx)("div",{className:S("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,G.jsx)(tt.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:S("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90",t),...e})})}function Be({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:S("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-']):not([class*='h-']):not([class*='w-'])]:size-4",t),...e})}var Xn=require("react"),Se=require("class-variance-authority"),We=require("radix-ui");var Pe=require("react/jsx-runtime"),vo=(0,Se.cva)("group/button shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ee({className:t,variant:e="default",size:r="default",asChild:o=!1,...n}){let i=o?We.Slot.Root:"button";return(0,Pe.jsx)(i,{"data-slot":"button","data-variant":e,"data-size":r,className:S(vo({variant:e,size:r,className:t})),...n})}var ht=v(require("react"),1);var k=v(require("react"),1);var Qn=!!(typeof window<"u"&&window.document&&window.document.createElement);function H(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t?.(n),r===!1||!n.defaultPrevented)return e?.(n)}}var Ae=v(require("react"),1);function Ne(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ot(...t){return e=>{let r=!1,o=t.map(n=>{let i=Ne(n,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<o.length;n++){let i=o[n];typeof i=="function"?i():Ne(t[n],null)}}}}function _(...t){return Ae.useCallback(Ot(...t),t)}var T=v(require("react"),1),Tt=require("react/jsx-runtime");function Oe(t,e){let r=T.createContext(e),o=i=>{let{children:c,...a}=i,l=T.useMemo(()=>a,Object.values(a));return(0,Tt.jsx)(r.Provider,{value:l,children:c})};o.displayName=t+"Provider";function n(i){let c=T.useContext(r);if(c)return c;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[o,n]}function Te(t,e=[]){let r=[];function o(i,c){let a=T.createContext(c),l=r.length;r=[...r,c];let s=h=>{let{scope:p,children:g,...R}=h,d=p?.[t]?.[l]||a,f=T.useMemo(()=>R,Object.values(R));return(0,Tt.jsx)(d.Provider,{value:f,children:g})};s.displayName=i+"Provider";function u(h,p){let g=p?.[t]?.[l]||a,R=T.useContext(g);if(R)return R;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[s,u]}let n=()=>{let i=r.map(c=>T.createContext(c));return function(a){let l=a?.[t]||i;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return n.scopeName=t,[o,yo(n,...e)]}function yo(...t){let e=t[0];if(t.length===1)return e;let r=()=>{let o=t.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){let c=o.reduce((a,{useScope:l,scopeName:s})=>{let h=l(i)[`__scope${s}`];return{...a,...h}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return r.scopeName=e.scopeName,r}var It=v(require("react"),1);var Ie=v(require("react"),1),K=globalThis?.document?Ie.useLayoutEffect:()=>{};var mo=It[" useId ".trim().toString()]||(()=>{}),ko=0;function xt(t){let[e,r]=It.useState(mo());return K(()=>{t||r(o=>o??String(ko++))},[t]),t||(e?`radix-${e}`:"")}var I=v(require("react"),1);var vt=v(require("react"),1);var Lo=I[" useInsertionEffect ".trim().toString()]||K;function De({prop:t,defaultProp:e,onChange:r=()=>{},caller:o}){let[n,i,c]=wo({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:n;{let u=I.useRef(t!==void 0);I.useEffect(()=>{let h=u.current;h!==a&&console.warn(`${o} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,o])}let s=I.useCallback(u=>{if(a){let h=Co(u)?u(t):u;h!==t&&c.current?.(h)}else i(u)},[a,t,i,c]);return[l,s]}function wo({defaultProp:t,onChange:e}){let[r,o]=I.useState(t),n=I.useRef(r),i=I.useRef(e);return Lo(()=>{i.current=e},[e]),I.useEffect(()=>{n.current!==r&&(i.current?.(r),n.current=r)},[r,n]),[r,o,i]}function Co(t){return typeof t=="function"}var b=v(require("react"),1);var _e=v(require("react"),1),ze=v(require("react-dom"),1);var B=v(require("react"),1);var yt=require("react/jsx-runtime");function mt(t){let e=bo(t),r=B.forwardRef((o,n)=>{let{children:i,...c}=o,a=B.Children.toArray(i),l=a.find(Mo);if(l){let s=l.props.children,u=a.map(h=>h===l?B.Children.count(s)>1?B.Children.only(null):B.isValidElement(s)?s.props.children:null:h);return(0,yt.jsx)(e,{...c,ref:n,children:B.isValidElement(s)?B.cloneElement(s,void 0,u):null})}return(0,yt.jsx)(e,{...c,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function bo(t){let e=B.forwardRef((r,o)=>{let{children:n,...i}=r;if(B.isValidElement(n)){let c=Fo(n),a=jo(i,n.props);return n.type!==B.Fragment&&(a.ref=o?Ot(o,c):c),B.cloneElement(n,a)}return B.Children.count(n)>1?B.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Ro=Symbol("radix.slottable");function Mo(t){return B.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ro}function jo(t,e){let r={...e};for(let o in e){let n=t[o],i=e[o];/^on[A-Z]/.test(o)?n&&i?r[o]=(...a)=>{let l=i(...a);return n(...a),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...i}:o==="className"&&(r[o]=[n,i].filter(Boolean).join(" "))}return{...t,...r}}function Fo(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var He=require("react/jsx-runtime"),Bo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=Bo.reduce((t,e)=>{let r=mt(`Primitive.${e}`),o=_e.forwardRef((n,i)=>{let{asChild:c,...a}=n,l=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,He.jsx)(l,{...a,ref:i})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function Ve(t,e){t&&ze.flushSync(()=>t.dispatchEvent(e))}var et=v(require("react"),1);function $(t){let e=et.useRef(t);return et.useEffect(()=>{e.current=t}),et.useMemo(()=>(...r)=>e.current?.(...r),[])}var Ue=v(require("react"),1);function Ge(t,e=globalThis?.document){let r=$(t);Ue.useEffect(()=>{let o=n=>{n.key==="Escape"&&r(n)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[r,e])}var _t=require("react/jsx-runtime"),So="DismissableLayer",Dt="dismissableLayer.update",Wo="dismissableLayer.pointerDownOutside",Eo="dismissableLayer.focusOutside",Ke,Ye=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zt=b.forwardRef((t,e)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:i,onInteractOutside:c,onDismiss:a,...l}=t,s=b.useContext(Ye),[u,h]=b.useState(null),p=u?.ownerDocument??globalThis?.document,[,g]=b.useState({}),R=_(e,x=>h(x)),d=Array.from(s.layers),[f]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(f),L=u?d.indexOf(u):-1,M=s.layersWithOutsidePointerEventsDisabled.size>0,F=L>=y,j=Ao(x=>{let U=x.target,J=[...s.branches].some(ct=>ct.contains(U));!F||J||(n?.(x),c?.(x),x.defaultPrevented||a?.())},p),W=Oo(x=>{let U=x.target;[...s.branches].some(ct=>ct.contains(U))||(i?.(x),c?.(x),x.defaultPrevented||a?.())},p);return Ge(x=>{L===s.layers.size-1&&(o?.(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},p),b.useEffect(()=>{if(u)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(u)),s.layers.add(u),$e(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ke)}},[u,p,r,s]),b.useEffect(()=>()=>{u&&(s.layers.delete(u),s.layersWithOutsidePointerEventsDisabled.delete(u),$e())},[u,s]),b.useEffect(()=>{let x=()=>g({});return document.addEventListener(Dt,x),()=>document.removeEventListener(Dt,x)},[]),(0,_t.jsx)(O.div,{...l,ref:R,style:{pointerEvents:M?F?"auto":"none":void 0,...t.style},onFocusCapture:H(t.onFocusCapture,W.onFocusCapture),onBlurCapture:H(t.onBlurCapture,W.onBlurCapture),onPointerDownCapture:H(t.onPointerDownCapture,j.onPointerDownCapture)})});zt.displayName=So;var Po="DismissableLayerBranch",No=b.forwardRef((t,e)=>{let r=b.useContext(Ye),o=b.useRef(null),n=_(e,o);return b.useEffect(()=>{let i=o.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),(0,_t.jsx)(O.div,{...t,ref:n})});No.displayName=Po;function Ao(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1),n=b.useRef(()=>{});return b.useEffect(()=>{let i=a=>{if(a.target&&!o.current){let s=function(){Xe(Wo,r,u,{discrete:!0})};var l=s;let u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=s,e.addEventListener("click",n.current,{once:!0})):s()}else e.removeEventListener("click",n.current);o.current=!1},c=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),e.removeEventListener("pointerdown",i),e.removeEventListener("click",n.current)}},[e,r]),{onPointerDownCapture:()=>o.current=!0}}function Oo(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1);return b.useEffect(()=>{let n=i=>{i.target&&!o.current&&Xe(Eo,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function $e(){let t=new CustomEvent(Dt);document.dispatchEvent(t)}function Xe(t,e,r,{discrete:o}){let n=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&n.addEventListener(t,e,{once:!0}),o?Ve(n,i):n.dispatchEvent(i)}var D=v(require("react"),1);var tr=require("react/jsx-runtime"),Ht="focusScope.autoFocusOnMount",Vt="focusScope.autoFocusOnUnmount",qe={bubbles:!1,cancelable:!0},To="FocusScope",Ut=D.forwardRef((t,e)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:i,...c}=t,[a,l]=D.useState(null),s=$(n),u=$(i),h=D.useRef(null),p=_(e,d=>l(d)),g=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(o){let L=function(W){if(g.paused||!a)return;let x=W.target;a.contains(x)?h.current=x:Y(h.current,{select:!0})},M=function(W){if(g.paused||!a)return;let x=W.relatedTarget;x!==null&&(a.contains(x)||Y(h.current,{select:!0}))},F=function(W){if(document.activeElement===document.body)for(let U of W)U.removedNodes.length>0&&Y(a)};var d=L,f=M,y=F;document.addEventListener("focusin",L),document.addEventListener("focusout",M);let j=new MutationObserver(F);return a&&j.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",M),j.disconnect()}}},[o,a,g.paused]),D.useEffect(()=>{if(a){Qe.add(g);let d=document.activeElement;if(!a.contains(d)){let y=new CustomEvent(Ht,qe);a.addEventListener(Ht,s),a.dispatchEvent(y),y.defaultPrevented||(Io(Vo(er(a)),{select:!0}),document.activeElement===d&&Y(a))}return()=>{a.removeEventListener(Ht,s),setTimeout(()=>{let y=new CustomEvent(Vt,qe);a.addEventListener(Vt,u),a.dispatchEvent(y),y.defaultPrevented||Y(d??document.body,{select:!0}),a.removeEventListener(Vt,u),Qe.remove(g)},0)}}},[a,s,u,g]);let R=D.useCallback(d=>{if(!r&&!o||g.paused)return;let f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(f&&y){let L=d.currentTarget,[M,F]=Do(L);M&&F?!d.shiftKey&&y===F?(d.preventDefault(),r&&Y(M,{select:!0})):d.shiftKey&&y===M&&(d.preventDefault(),r&&Y(F,{select:!0})):y===L&&d.preventDefault()}},[r,o,g.paused]);return(0,tr.jsx)(O.div,{tabIndex:-1,...c,ref:p,onKeyDown:R})});Ut.displayName=To;function Io(t,{select:e=!1}={}){let r=document.activeElement;for(let o of t)if(Y(o,{select:e}),document.activeElement!==r)return}function Do(t){let e=er(t),r=Ze(e,t),o=Ze(e.reverse(),t);return[r,o]}function er(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Ze(t,e){for(let r of t)if(!_o(r,{upTo:e}))return r}function _o(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function zo(t){return t instanceof HTMLInputElement&&"select"in t}function Y(t,{select:e=!1}={}){if(t&&t.focus){let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&zo(t)&&e&&t.select()}}var Qe=Ho();function Ho(){let t=[];return{add(e){let r=t[0];e!==r&&r?.pause(),t=Je(t,e),t.unshift(e)},remove(e){t=Je(t,e),t[0]?.resume()}}}function Je(t,e){let r=[...t],o=r.indexOf(e);return o!==-1&&r.splice(o,1),r}function Vo(t){return t.filter(e=>e.tagName!=="A")}var kt=v(require("react"),1),rr=v(require("react-dom"),1);var or=require("react/jsx-runtime"),Uo="Portal",Gt=kt.forwardRef((t,e)=>{let{container:r,...o}=t,[n,i]=kt.useState(!1);K(()=>i(!0),[]);let c=r||n&&globalThis?.document?.body;return c?rr.default.createPortal((0,or.jsx)(O.div,{...o,ref:e}),c):null});Gt.displayName=Uo;var N=v(require("react"),1);var nr=v(require("react"),1);function Go(t,e){return nr.useReducer((r,o)=>e[r][o]??r,t)}var lt=t=>{let{present:e,children:r}=t,o=Ko(e),n=typeof r=="function"?r({present:o.isPresent}):N.Children.only(r),i=_(o.ref,$o(n));return typeof r=="function"||o.isPresent?N.cloneElement(n,{ref:i}):null};lt.displayName="Presence";function Ko(t){let[e,r]=N.useState(),o=N.useRef(null),n=N.useRef(t),i=N.useRef("none"),c=t?"mounted":"unmounted",[a,l]=Go(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{let s=Lt(o.current);i.current=a==="mounted"?s:"none"},[a]),K(()=>{let s=o.current,u=n.current;if(u!==t){let p=i.current,g=Lt(s);t?l("MOUNT"):g==="none"||s?.display==="none"?l("UNMOUNT"):l(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),n.current=t}},[t,l]),K(()=>{if(e){let s,u=e.ownerDocument.defaultView??window,h=g=>{let d=Lt(o.current).includes(CSS.escape(g.animationName));if(g.target===e&&d&&(l("ANIMATION_END"),!n.current)){let f=e.style.animationFillMode;e.style.animationFillMode="forwards",s=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=g=>{g.target===e&&(i.current=Lt(o.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{u.clearTimeout(s),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:N.useCallback(s=>{o.current=s?getComputedStyle(s):null,r(s)},[])}}function Lt(t){return t?.animationName||"none"}function $o(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var ar=v(require("react"),1),Kt=0;function cr(){ar.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??ir()),document.body.insertAdjacentElement("beforeend",t[1]??ir()),Kt++,()=>{Kt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Kt--}},[])}function ir(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var A=function(){return A=Object.assign||function(e){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},A.apply(this,arguments)};function wt(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}function lr(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o<n;o++)(i||!(o in e))&&(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}var jt=v(require("react"));var E=v(require("react"));var X="right-scroll-bar-position",q="width-before-scroll-bar",$t="with-scroll-bars-hidden",Yt="--removed-body-scroll-bar-size";function Ct(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}var sr=require("react");function dr(t,e){var r=(0,sr.useState)(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(o){var n=r.value;n!==o&&(r.value=o,r.callback(o,n))}}}})[0];return r.callback=e,r.facade}var bt=v(require("react"));var Yo=typeof window<"u"?bt.useLayoutEffect:bt.useEffect,ur=new WeakMap;function Xt(t,e){var r=dr(e||null,function(o){return t.forEach(function(n){return Ct(n,o)})});return Yo(function(){var o=ur.get(r);if(o){var n=new Set(o),i=new Set(t),c=r.current;n.forEach(function(a){i.has(a)||Ct(a,null)}),i.forEach(function(a){n.has(a)||Ct(a,c)})}ur.set(r,t)},[t]),r}function Xo(t){return t}function qo(t,e){e===void 0&&(e=Xo);var r=[],o=!1,n={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var c=e(i,o);return r.push(c),function(){r=r.filter(function(a){return a!==c})}},assignSyncMedium:function(i){for(o=!0;r.length;){var c=r;r=[],c.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){o=!0;var c=[];if(r.length){var a=r;r=[],a.forEach(i),c=r}var l=function(){var u=c;c=[],u.forEach(i)},s=function(){return Promise.resolve().then(l)};s(),r={push:function(u){c.push(u),s()},filter:function(u){return c=c.filter(u),r}}}};return n}function qt(t){t===void 0&&(t={});var e=qo(null);return e.options=A({async:!0,ssr:!1},t),e}var hr=v(require("react")),pr=function(t){var e=t.sideCar,r=wt(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=e.read();if(!o)throw new Error("Sidecar medium not found");return hr.createElement(o,A({},r))};pr.isSideCarExport=!0;function Zt(t,e){return t.useMedium(e),pr}var Rt=qt();var Qt=function(){},st=E.forwardRef(function(t,e){var r=E.useRef(null),o=E.useState({onScrollCapture:Qt,onWheelCapture:Qt,onTouchMoveCapture:Qt}),n=o[0],i=o[1],c=t.forwardProps,a=t.children,l=t.className,s=t.removeScrollBar,u=t.enabled,h=t.shards,p=t.sideCar,g=t.noRelative,R=t.noIsolation,d=t.inert,f=t.allowPinchZoom,y=t.as,L=y===void 0?"div":y,M=t.gapMode,F=wt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,W=Xt([r,e]),x=A(A({},F),n);return E.createElement(E.Fragment,null,u&&E.createElement(j,{sideCar:Rt,removeScrollBar:s,shards:h,noRelative:g,noIsolation:R,inert:d,setCallbacks:i,allowPinchZoom:!!f,lockRef:r,gapMode:M}),c?E.cloneElement(E.Children.only(a),A(A({},x),{ref:W})):E.createElement(L,A({},x,{className:l,ref:W}),a))});st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};st.classNames={fullWidth:q,zeroRight:X};var w=v(require("react"));var ot=v(require("react"));var xr=v(require("react"));var gr;var fr=function(){if(gr)return gr;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zo(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=fr();return e&&t.setAttribute("nonce",e),t}function Qo(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Jo(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Jt=function(){var t=0,e=null;return{add:function(r){t==0&&(e=Zo())&&(Qo(e,r),Jo(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var te=function(){var t=Jt();return function(e,r){xr.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}};var dt=function(){var t=te(),e=function(r){var o=r.styles,n=r.dynamic;return t(o,n),null};return e};var tn={left:0,top:0,right:0,gap:0},ee=function(t){return parseInt(t||"",10)||0},en=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],o=e[t==="padding"?"paddingTop":"marginTop"],n=e[t==="padding"?"paddingRight":"marginRight"];return[ee(r),ee(o),ee(n)]},re=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return tn;var e=en(t),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,o-r+e[2]-e[0])}};var rn=dt(),rt="data-scroll-locked",on=function(t,e,r,o){var n=t.left,i=t.top,c=t.right,a=t.gap;return r===void 0&&(r="margin"),`
2
- .`.concat($t,` {
1
+ "use strict";var so=Object.create;var xt=Object.defineProperty;var uo=Object.getOwnPropertyDescriptor;var ho=Object.getOwnPropertyNames;var po=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty;var fo=(t,e)=>{for(var r in e)xt(t,r,{get:e[r],enumerable:!0})},we=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ho(e))!go.call(t,i)&&i!==r&&xt(t,i,{get:()=>e[i],enumerable:!(o=uo(e,i))||o.enumerable});return t};var x=(t,e,r)=>(r=t!=null?so(po(t)):{},we(e||!t||!t.__esModule?xt(r,"default",{value:t,enumerable:!0}):r,t)),ko=t=>we(xt({},"__esModule",{value:!0}),t);var Ui={};fo(Ui,{Footer:()=>io,Header:()=>Jr,IconWithBadge:()=>me,Layout:()=>no,Sidebar:()=>ao});module.exports=ko(Ui);var Qr=require("react");var Ki=require("react"),Re=require("class-variance-authority"),rt=require("radix-ui");var Ce=require("clsx"),be=require("tailwind-merge");function j(...t){return(0,be.twMerge)((0,Ce.clsx)(t))}var xo=require("lucide-react"),G=require("react/jsx-runtime");function Me({className:t,children:e,viewport:r=!0,...o}){return(0,G.jsxs)(rt.NavigationMenu.Root,{"data-slot":"navigation-menu","data-viewport":r,className:j("kui:group/navigation-menu kui:relative kui:flex kui:max-w-max kui:flex-1 kui:items-center kui:justify-center",t),...o,children:[e,r&&(0,G.jsx)(vo,{})]})}function je({className:t,...e}){return(0,G.jsx)(rt.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:j("kui:group kui:flex kui:flex-1 kui:list-none kui:items-center kui:justify-center kui:gap-0",t),...e})}function Fe({className:t,...e}){return(0,G.jsx)(rt.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:j("kui:relative",t),...e})}var Se=(0,Re.cva)("kui:group/navigation-menu-trigger kui:inline-flex kui:h-9 kui:w-max kui:items-center kui:justify-center kui:rounded-lg kui:bg-background kui:px-2.5 kui:py-1.5 kui:text-sm kui:font-medium kui:transition-all kui:outline-none kui:hover:bg-muted kui:focus:bg-muted kui:focus-visible:ring-3 kui:focus-visible:ring-ring/50 kui:focus-visible:outline-1 kui:disabled:pointer-events-none kui:disabled:opacity-50 kui:data-popup-open:bg-muted/50 kui:data-popup-open:hover:bg-muted kui:data-open:bg-muted/50 kui:data-open:hover:bg-muted kui:data-open:focus:bg-muted");function vo({className:t,...e}){return(0,G.jsx)("div",{className:j("kui:absolute kui:top-full kui:left-0 kui:isolate kui:z-50 kui:flex kui:justify-center"),children:(0,G.jsx)(rt.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:j("kui:origin-top-center kui:relative kui:mt-1.5 kui:h-(--radix-navigation-menu-viewport-height) kui:w-full kui:overflow-hidden kui:rounded-lg kui:bg-popover kui:text-popover-foreground kui:shadow kui:ring-1 kui:ring-foreground/10 kui:duration-100 kui:md:w-(--radix-navigation-menu-viewport-width) kui:data-open:animate-in kui:data-open:zoom-in-90 kui:data-closed:animate-out kui:data-closed:zoom-out-90",t),...e})})}function Be({className:t,...e}){return(0,G.jsx)(rt.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:j("kui:flex kui:items-center kui:gap-2 kui:rounded-lg kui:p-2 kui:text-sm kui:transition-all kui:outline-none kui:hover:bg-muted kui:focus:bg-muted kui:focus-visible:ring-3 kui:focus-visible:ring-ring/50 kui:focus-visible:outline-1 kui:in-data-[slot=navigation-menu-content]:rounded-md kui:data-active:bg-muted/50 kui:data-active:hover:bg-muted kui:data-active:focus:bg-muted kui:[&_svg:not([class*='size-']):not([class*='h-']):not([class*='w-'])]:size-4",t),...e})}var qi=require("react"),We=require("class-variance-authority"),Ee=require("radix-ui");var Ne=require("react/jsx-runtime"),yo=(0,We.cva)("kui:group/button kui:shrink-0 kui:items-center kui:justify-center kui:rounded-lg kui:border kui:border-transparent kui:bg-clip-padding kui:text-sm kui:font-medium kui:whitespace-nowrap kui:transition-all kui:outline-none kui:select-none kui:focus-visible:border-ring kui:focus-visible:ring-3 kui:focus-visible:ring-ring/50 kui:active:translate-y-px kui:disabled:pointer-events-none kui:disabled:opacity-50 kui:aria-invalid:border-destructive kui:aria-invalid:ring-3 kui:aria-invalid:ring-destructive/20 kui:dark:aria-invalid:border-destructive/50 kui:dark:aria-invalid:ring-destructive/40 kui:[&_svg]:pointer-events-none kui:[&_svg]:shrink-0 kui:[&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"kui:bg-primary kui:text-primary-foreground kui:[a]:hover:bg-primary/80",outline:"kui:border-border kui:bg-background kui:hover:bg-muted kui:hover:text-foreground kui:aria-expanded:bg-muted kui:aria-expanded:text-foreground kui:dark:border-input kui:dark:bg-input/30 kui:dark:hover:bg-input/50",secondary:"kui:bg-secondary kui:text-secondary-foreground kui:hover:bg-secondary/80 kui:aria-expanded:bg-secondary kui:aria-expanded:text-secondary-foreground",ghost:"kui:hover:bg-muted kui:hover:text-foreground kui:aria-expanded:bg-muted kui:aria-expanded:text-foreground kui:dark:hover:bg-muted/50",destructive:"kui:bg-destructive/10 kui:text-destructive kui:hover:bg-destructive/20 kui:focus-visible:border-destructive/40 kui:focus-visible:ring-destructive/20 kui:dark:bg-destructive/20 kui:dark:hover:bg-destructive/30 kui:dark:focus-visible:ring-destructive/40",link:"kui:text-primary kui:underline-offset-4 kui:hover:underline"},size:{default:"kui:h-8 kui:gap-1.5 kui:px-2.5 kui:has-data-[icon=inline-end]:pr-2 kui:has-data-[icon=inline-start]:pl-2",xs:"kui:h-6 kui:gap-1 kui:rounded-[min(var(--radius-md),10px)] kui:px-2 kui:text-xs kui:in-data-[slot=button-group]:rounded-lg kui:has-data-[icon=inline-end]:pr-1.5 kui:has-data-[icon=inline-start]:pl-1.5 kui:[&_svg:not([class*='size-'])]:size-3",sm:"kui:h-7 kui:gap-1 kui:rounded-[min(var(--radius-md),12px)] kui:px-2.5 kui:text-[0.8rem] kui:in-data-[slot=button-group]:rounded-lg kui:has-data-[icon=inline-end]:pr-1.5 kui:has-data-[icon=inline-start]:pl-1.5 kui:[&_svg:not([class*='size-'])]:size-3.5",lg:"kui:h-9 kui:gap-1.5 kui:px-2.5 kui:has-data-[icon=inline-end]:pr-3 kui:has-data-[icon=inline-start]:pl-3",icon:"kui:size-8","icon-xs":"kui:size-6 kui:rounded-[min(var(--radius-md),10px)] kui:in-data-[slot=button-group]:rounded-lg kui:[&_svg:not([class*='size-'])]:size-3","icon-sm":"kui:size-7 kui:rounded-[min(var(--radius-md),12px)] kui:in-data-[slot=button-group]:rounded-lg","icon-lg":"kui:size-9"}},defaultVariants:{variant:"default",size:"default"}});function Pe({className:t,variant:e="default",size:r="default",asChild:o=!1,...i}){let n=o?Ee.Slot.Root:"button";return(0,Ne.jsx)(n,{"data-slot":"button","data-variant":e,"data-size":r,className:j(yo({variant:e,size:r,className:t})),...i})}var gt=x(require("react"),1);var m=x(require("react"),1);var Ji=!!(typeof window<"u"&&window.document&&window.document.createElement);function H(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t?.(i),r===!1||!i.defaultPrevented)return e?.(i)}}var Oe=x(require("react"),1);function Ae(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Tt(...t){return e=>{let r=!1,o=t.map(i=>{let n=Ae(i,e);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let i=0;i<o.length;i++){let n=o[i];typeof n=="function"?n():Ae(t[i],null)}}}}function _(...t){return Oe.useCallback(Tt(...t),t)}var T=x(require("react"),1),It=require("react/jsx-runtime");function Te(t,e){let r=T.createContext(e),o=n=>{let{children:c,...a}=n,l=T.useMemo(()=>a,Object.values(a));return(0,It.jsx)(r.Provider,{value:l,children:c})};o.displayName=t+"Provider";function i(n){let c=T.useContext(r);if(c)return c;if(e!==void 0)return e;throw new Error(`\`${n}\` must be used within \`${t}\``)}return[o,i]}function Ie(t,e=[]){let r=[];function o(n,c){let a=T.createContext(c),l=r.length;r=[...r,c];let s=h=>{let{scope:p,children:g,...R}=h,u=p?.[t]?.[l]||a,f=T.useMemo(()=>R,Object.values(R));return(0,It.jsx)(u.Provider,{value:f,children:g})};s.displayName=n+"Provider";function d(h,p){let g=p?.[t]?.[l]||a,R=T.useContext(g);if(R)return R;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${n}\``)}return[s,d]}let i=()=>{let n=r.map(c=>T.createContext(c));return function(a){let l=a?.[t]||n;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[o,mo(i,...e)]}function mo(...t){let e=t[0];if(t.length===1)return e;let r=()=>{let o=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(n){let c=o.reduce((a,{useScope:l,scopeName:s})=>{let h=l(n)[`__scope${s}`];return{...a,...h}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return r.scopeName=e.scopeName,r}var Dt=x(require("react"),1);var De=x(require("react"),1),$=globalThis?.document?De.useLayoutEffect:()=>{};var Lo=Dt[" useId ".trim().toString()]||(()=>{}),wo=0;function vt(t){let[e,r]=Dt.useState(Lo());return $(()=>{t||r(o=>o??String(wo++))},[t]),t||(e?`radix-${e}`:"")}var I=x(require("react"),1);var yt=x(require("react"),1);var Co=I[" useInsertionEffect ".trim().toString()]||$;function _e({prop:t,defaultProp:e,onChange:r=()=>{},caller:o}){let[i,n,c]=bo({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:i;{let d=I.useRef(t!==void 0);I.useEffect(()=>{let h=d.current;h!==a&&console.warn(`${o} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,o])}let s=I.useCallback(d=>{if(a){let h=Ro(d)?d(t):d;h!==t&&c.current?.(h)}else n(d)},[a,t,n,c]);return[l,s]}function bo({defaultProp:t,onChange:e}){let[r,o]=I.useState(t),i=I.useRef(r),n=I.useRef(e);return Co(()=>{n.current=e},[e]),I.useEffect(()=>{i.current!==r&&(n.current?.(r),i.current=r)},[r,i]),[r,o,n]}function Ro(t){return typeof t=="function"}var b=x(require("react"),1);var ze=x(require("react"),1),He=x(require("react-dom"),1);var B=x(require("react"),1);var mt=require("react/jsx-runtime");function Lt(t){let e=Mo(t),r=B.forwardRef((o,i)=>{let{children:n,...c}=o,a=B.Children.toArray(n),l=a.find(Fo);if(l){let s=l.props.children,d=a.map(h=>h===l?B.Children.count(s)>1?B.Children.only(null):B.isValidElement(s)?s.props.children:null:h);return(0,mt.jsx)(e,{...c,ref:i,children:B.isValidElement(s)?B.cloneElement(s,void 0,d):null})}return(0,mt.jsx)(e,{...c,ref:i,children:n})});return r.displayName=`${t}.Slot`,r}function Mo(t){let e=B.forwardRef((r,o)=>{let{children:i,...n}=r;if(B.isValidElement(i)){let c=Bo(i),a=So(n,i.props);return i.type!==B.Fragment&&(a.ref=o?Tt(o,c):c),B.cloneElement(i,a)}return B.Children.count(i)>1?B.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var jo=Symbol("radix.slottable");function Fo(t){return B.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===jo}function So(t,e){let r={...e};for(let o in e){let i=t[o],n=e[o];/^on[A-Z]/.test(o)?i&&n?r[o]=(...a)=>{let l=n(...a);return i(...a),l}:i&&(r[o]=i):o==="style"?r[o]={...i,...n}:o==="className"&&(r[o]=[i,n].filter(Boolean).join(" "))}return{...t,...r}}function Bo(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Ve=require("react/jsx-runtime"),Wo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=Wo.reduce((t,e)=>{let r=Lt(`Primitive.${e}`),o=ze.forwardRef((i,n)=>{let{asChild:c,...a}=i,l=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Ve.jsx)(l,{...a,ref:n})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function Ue(t,e){t&&He.flushSync(()=>t.dispatchEvent(e))}var ot=x(require("react"),1);function K(t){let e=ot.useRef(t);return ot.useEffect(()=>{e.current=t}),ot.useMemo(()=>(...r)=>e.current?.(...r),[])}var Ge=x(require("react"),1);function $e(t,e=globalThis?.document){let r=K(t);Ge.useEffect(()=>{let o=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[r,e])}var zt=require("react/jsx-runtime"),Eo="DismissableLayer",_t="dismissableLayer.update",Po="dismissableLayer.pointerDownOutside",No="dismissableLayer.focusOutside",Ke,Xe=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ht=b.forwardRef((t,e)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:n,onInteractOutside:c,onDismiss:a,...l}=t,s=b.useContext(Xe),[d,h]=b.useState(null),p=d?.ownerDocument??globalThis?.document,[,g]=b.useState({}),R=_(e,k=>h(k)),u=Array.from(s.layers),[f]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),v=u.indexOf(f),L=d?u.indexOf(d):-1,M=s.layersWithOutsidePointerEventsDisabled.size>0,S=L>=v,F=To(k=>{let U=k.target,et=[...s.branches].some(st=>st.contains(U));!S||et||(i?.(k),c?.(k),k.defaultPrevented||a?.())},p),W=Io(k=>{let U=k.target;[...s.branches].some(st=>st.contains(U))||(n?.(k),c?.(k),k.defaultPrevented||a?.())},p);return $e(k=>{L===s.layers.size-1&&(o?.(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},p),b.useEffect(()=>{if(d)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(d)),s.layers.add(d),Ye(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ke)}},[d,p,r,s]),b.useEffect(()=>()=>{d&&(s.layers.delete(d),s.layersWithOutsidePointerEventsDisabled.delete(d),Ye())},[d,s]),b.useEffect(()=>{let k=()=>g({});return document.addEventListener(_t,k),()=>document.removeEventListener(_t,k)},[]),(0,zt.jsx)(O.div,{...l,ref:R,style:{pointerEvents:M?S?"auto":"none":void 0,...t.style},onFocusCapture:H(t.onFocusCapture,W.onFocusCapture),onBlurCapture:H(t.onBlurCapture,W.onBlurCapture),onPointerDownCapture:H(t.onPointerDownCapture,F.onPointerDownCapture)})});Ht.displayName=Eo;var Ao="DismissableLayerBranch",Oo=b.forwardRef((t,e)=>{let r=b.useContext(Xe),o=b.useRef(null),i=_(e,o);return b.useEffect(()=>{let n=o.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),(0,zt.jsx)(O.div,{...t,ref:i})});Oo.displayName=Ao;function To(t,e=globalThis?.document){let r=K(t),o=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{let n=a=>{if(a.target&&!o.current){let s=function(){qe(Po,r,d,{discrete:!0})};var l=s;let d={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);o.current=!1},c=window.setTimeout(()=>{e.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(c),e.removeEventListener("pointerdown",n),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>o.current=!0}}function Io(t,e=globalThis?.document){let r=K(t),o=b.useRef(!1);return b.useEffect(()=>{let i=n=>{n.target&&!o.current&&qe(No,r,{originalEvent:n},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ye(){let t=new CustomEvent(_t);document.dispatchEvent(t)}function qe(t,e,r,{discrete:o}){let i=r.originalEvent.target,n=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),o?Ue(i,n):i.dispatchEvent(n)}var D=x(require("react"),1);var er=require("react/jsx-runtime"),Vt="focusScope.autoFocusOnMount",Ut="focusScope.autoFocusOnUnmount",Ze={bubbles:!1,cancelable:!0},Do="FocusScope",Gt=D.forwardRef((t,e)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:n,...c}=t,[a,l]=D.useState(null),s=K(i),d=K(n),h=D.useRef(null),p=_(e,u=>l(u)),g=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(o){let L=function(W){if(g.paused||!a)return;let k=W.target;a.contains(k)?h.current=k:Y(h.current,{select:!0})},M=function(W){if(g.paused||!a)return;let k=W.relatedTarget;k!==null&&(a.contains(k)||Y(h.current,{select:!0}))},S=function(W){if(document.activeElement===document.body)for(let U of W)U.removedNodes.length>0&&Y(a)};var u=L,f=M,v=S;document.addEventListener("focusin",L),document.addEventListener("focusout",M);let F=new MutationObserver(S);return a&&F.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",M),F.disconnect()}}},[o,a,g.paused]),D.useEffect(()=>{if(a){Je.add(g);let u=document.activeElement;if(!a.contains(u)){let v=new CustomEvent(Vt,Ze);a.addEventListener(Vt,s),a.dispatchEvent(v),v.defaultPrevented||(_o(Go(rr(a)),{select:!0}),document.activeElement===u&&Y(a))}return()=>{a.removeEventListener(Vt,s),setTimeout(()=>{let v=new CustomEvent(Ut,Ze);a.addEventListener(Ut,d),a.dispatchEvent(v),v.defaultPrevented||Y(u??document.body,{select:!0}),a.removeEventListener(Ut,d),Je.remove(g)},0)}}},[a,s,d,g]);let R=D.useCallback(u=>{if(!r&&!o||g.paused)return;let f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,v=document.activeElement;if(f&&v){let L=u.currentTarget,[M,S]=zo(L);M&&S?!u.shiftKey&&v===S?(u.preventDefault(),r&&Y(M,{select:!0})):u.shiftKey&&v===M&&(u.preventDefault(),r&&Y(S,{select:!0})):v===L&&u.preventDefault()}},[r,o,g.paused]);return(0,er.jsx)(O.div,{tabIndex:-1,...c,ref:p,onKeyDown:R})});Gt.displayName=Do;function _o(t,{select:e=!1}={}){let r=document.activeElement;for(let o of t)if(Y(o,{select:e}),document.activeElement!==r)return}function zo(t){let e=rr(t),r=Qe(e,t),o=Qe(e.reverse(),t);return[r,o]}function rr(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Qe(t,e){for(let r of t)if(!Ho(r,{upTo:e}))return r}function Ho(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Vo(t){return t instanceof HTMLInputElement&&"select"in t}function Y(t,{select:e=!1}={}){if(t&&t.focus){let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Vo(t)&&e&&t.select()}}var Je=Uo();function Uo(){let t=[];return{add(e){let r=t[0];e!==r&&r?.pause(),t=tr(t,e),t.unshift(e)},remove(e){t=tr(t,e),t[0]?.resume()}}}function tr(t,e){let r=[...t],o=r.indexOf(e);return o!==-1&&r.splice(o,1),r}function Go(t){return t.filter(e=>e.tagName!=="A")}var wt=x(require("react"),1),or=x(require("react-dom"),1);var ir=require("react/jsx-runtime"),$o="Portal",$t=wt.forwardRef((t,e)=>{let{container:r,...o}=t,[i,n]=wt.useState(!1);$(()=>n(!0),[]);let c=r||i&&globalThis?.document?.body;return c?or.default.createPortal((0,ir.jsx)(O.div,{...o,ref:e}),c):null});$t.displayName=$o;var N=x(require("react"),1);var nr=x(require("react"),1);function Ko(t,e){return nr.useReducer((r,o)=>e[r][o]??r,t)}var ut=t=>{let{present:e,children:r}=t,o=Yo(e),i=typeof r=="function"?r({present:o.isPresent}):N.Children.only(r),n=_(o.ref,Xo(i));return typeof r=="function"||o.isPresent?N.cloneElement(i,{ref:n}):null};ut.displayName="Presence";function Yo(t){let[e,r]=N.useState(),o=N.useRef(null),i=N.useRef(t),n=N.useRef("none"),c=t?"mounted":"unmounted",[a,l]=Ko(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{let s=Ct(o.current);n.current=a==="mounted"?s:"none"},[a]),$(()=>{let s=o.current,d=i.current;if(d!==t){let p=n.current,g=Ct(s);t?l("MOUNT"):g==="none"||s?.display==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),$(()=>{if(e){let s,d=e.ownerDocument.defaultView??window,h=g=>{let u=Ct(o.current).includes(CSS.escape(g.animationName));if(g.target===e&&u&&(l("ANIMATION_END"),!i.current)){let f=e.style.animationFillMode;e.style.animationFillMode="forwards",s=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=g=>{g.target===e&&(n.current=Ct(o.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(s),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:N.useCallback(s=>{o.current=s?getComputedStyle(s):null,r(s)},[])}}function Ct(t){return t?.animationName||"none"}function Xo(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var cr=x(require("react"),1),Kt=0;function lr(){cr.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??ar()),document.body.insertAdjacentElement("beforeend",t[1]??ar()),Kt++,()=>{Kt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Kt--}},[])}function ar(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var A=function(){return A=Object.assign||function(e){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(this,arguments)};function bt(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(r[o[i]]=t[o[i]]);return r}function sr(t,e,r){if(r||arguments.length===2)for(var o=0,i=e.length,n;o<i;o++)(n||!(o in e))&&(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}var St=x(require("react"));var E=x(require("react"));var q="right-scroll-bar-position",Z="width-before-scroll-bar",Yt="with-scroll-bars-hidden",Xt="--removed-body-scroll-bar-size";function Rt(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}var ur=require("react");function dr(t,e){var r=(0,ur.useState)(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(o){var i=r.value;i!==o&&(r.value=o,r.callback(o,i))}}}})[0];return r.callback=e,r.facade}var Mt=x(require("react"));var qo=typeof window<"u"?Mt.useLayoutEffect:Mt.useEffect,hr=new WeakMap;function qt(t,e){var r=dr(e||null,function(o){return t.forEach(function(i){return Rt(i,o)})});return qo(function(){var o=hr.get(r);if(o){var i=new Set(o),n=new Set(t),c=r.current;i.forEach(function(a){n.has(a)||Rt(a,null)}),n.forEach(function(a){i.has(a)||Rt(a,c)})}hr.set(r,t)},[t]),r}function Zo(t){return t}function Qo(t,e){e===void 0&&(e=Zo);var r=[],o=!1,i={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(n){var c=e(n,o);return r.push(c),function(){r=r.filter(function(a){return a!==c})}},assignSyncMedium:function(n){for(o=!0;r.length;){var c=r;r=[],c.forEach(n)}r={push:function(a){return n(a)},filter:function(){return r}}},assignMedium:function(n){o=!0;var c=[];if(r.length){var a=r;r=[],a.forEach(n),c=r}var l=function(){var d=c;c=[],d.forEach(n)},s=function(){return Promise.resolve().then(l)};s(),r={push:function(d){c.push(d),s()},filter:function(d){return c=c.filter(d),r}}}};return i}function Zt(t){t===void 0&&(t={});var e=Qo(null);return e.options=A({async:!0,ssr:!1},t),e}var pr=x(require("react")),gr=function(t){var e=t.sideCar,r=bt(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=e.read();if(!o)throw new Error("Sidecar medium not found");return pr.createElement(o,A({},r))};gr.isSideCarExport=!0;function Qt(t,e){return t.useMedium(e),gr}var jt=Zt();var Jt=function(){},dt=E.forwardRef(function(t,e){var r=E.useRef(null),o=E.useState({onScrollCapture:Jt,onWheelCapture:Jt,onTouchMoveCapture:Jt}),i=o[0],n=o[1],c=t.forwardProps,a=t.children,l=t.className,s=t.removeScrollBar,d=t.enabled,h=t.shards,p=t.sideCar,g=t.noRelative,R=t.noIsolation,u=t.inert,f=t.allowPinchZoom,v=t.as,L=v===void 0?"div":v,M=t.gapMode,S=bt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=p,W=qt([r,e]),k=A(A({},S),i);return E.createElement(E.Fragment,null,d&&E.createElement(F,{sideCar:jt,removeScrollBar:s,shards:h,noRelative:g,noIsolation:R,inert:u,setCallbacks:n,allowPinchZoom:!!f,lockRef:r,gapMode:M}),c?E.cloneElement(E.Children.only(a),A(A({},k),{ref:W})):E.createElement(L,A({},k,{className:l,ref:W}),a))});dt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dt.classNames={fullWidth:Z,zeroRight:q};var w=x(require("react"));var nt=x(require("react"));var xr=x(require("react"));var fr;var kr=function(){if(fr)return fr;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jo(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=kr();return e&&t.setAttribute("nonce",e),t}function ti(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function ei(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var te=function(){var t=0,e=null;return{add:function(r){t==0&&(e=Jo())&&(ti(e,r),ei(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var ee=function(){var t=te();return function(e,r){xr.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}};var ht=function(){var t=ee(),e=function(r){var o=r.styles,i=r.dynamic;return t(o,i),null};return e};var ri={left:0,top:0,right:0,gap:0},re=function(t){return parseInt(t||"",10)||0},oi=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],o=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[re(r),re(o),re(i)]},oe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return ri;var e=oi(t),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,o-r+e[2]-e[0])}};var ii=ht(),it="data-scroll-locked",ni=function(t,e,r,o){var i=t.left,n=t.top,c=t.right,a=t.gap;return r===void 0&&(r="margin"),`
2
+ .`.concat(Yt,` {
3
3
  overflow: hidden `).concat(o,`;
4
4
  padding-right: `).concat(a,"px ").concat(o,`;
5
5
  }
6
- body[`).concat(rt,`] {
6
+ body[`).concat(it,`] {
7
7
  overflow: hidden `).concat(o,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([e&&"position: relative ".concat(o,";"),r==="margin"&&`
10
- padding-left: `.concat(n,`px;
11
- padding-top: `).concat(i,`px;
10
+ padding-left: `.concat(i,`px;
11
+ padding-top: `).concat(n,`px;
12
12
  padding-right: `).concat(c,`px;
13
13
  margin-left:0;
14
14
  margin-top:0;
@@ -16,40 +16,40 @@
16
16
  `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(X,` {
19
+ .`).concat(q,` {
20
20
  right: `).concat(a,"px ").concat(o,`;
21
21
  }
22
22
 
23
- .`).concat(q,` {
23
+ .`).concat(Z,` {
24
24
  margin-right: `).concat(a,"px ").concat(o,`;
25
25
  }
26
26
 
27
- .`).concat(X," .").concat(X,` {
27
+ .`).concat(q," .").concat(q,` {
28
28
  right: 0 `).concat(o,`;
29
29
  }
30
30
 
31
- .`).concat(q," .").concat(q,` {
31
+ .`).concat(Z," .").concat(Z,` {
32
32
  margin-right: 0 `).concat(o,`;
33
33
  }
34
34
 
35
- body[`).concat(rt,`] {
36
- `).concat(Yt,": ").concat(a,`px;
35
+ body[`).concat(it,`] {
36
+ `).concat(Xt,": ").concat(a,`px;
37
37
  }
38
- `)},vr=function(){var t=parseInt(document.body.getAttribute(rt)||"0",10);return isFinite(t)?t:0},nn=function(){ot.useEffect(function(){return document.body.setAttribute(rt,(vr()+1).toString()),function(){var t=vr()-1;t<=0?document.body.removeAttribute(rt):document.body.setAttribute(rt,t.toString())}},[])},oe=function(t){var e=t.noRelative,r=t.noImportant,o=t.gapMode,n=o===void 0?"margin":o;nn();var i=ot.useMemo(function(){return re(n)},[n]);return ot.createElement(rn,{styles:on(i,!e,n,r?"":"!important")})};var ne=!1;if(typeof window<"u")try{ut=Object.defineProperty({},"passive",{get:function(){return ne=!0,!0}}),window.addEventListener("test",ut,ut),window.removeEventListener("test",ut,ut)}catch{ne=!1}var ut,Z=ne?{passive:!1}:!1;var an=function(t){return t.tagName==="TEXTAREA"},yr=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!an(t)&&r[e]==="visible")},cn=function(t){return yr(t,"overflowY")},ln=function(t){return yr(t,"overflowX")},ie=function(t,e){var r=e.ownerDocument,o=e;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var n=mr(t,o);if(n){var i=kr(t,o),c=i[1],a=i[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},sn=function(t){var e=t.scrollTop,r=t.scrollHeight,o=t.clientHeight;return[e,r,o]},dn=function(t){var e=t.scrollLeft,r=t.scrollWidth,o=t.clientWidth;return[e,r,o]},mr=function(t,e){return t==="v"?cn(e):ln(e)},kr=function(t,e){return t==="v"?sn(e):dn(e)},un=function(t,e){return t==="h"&&e==="rtl"?-1:1},Lr=function(t,e,r,o,n){var i=un(t,window.getComputedStyle(e).direction),c=i*o,a=r.target,l=e.contains(a),s=!1,u=c>0,h=0,p=0;do{if(!a)break;var g=kr(t,a),R=g[0],d=g[1],f=g[2],y=d-f-i*R;(R||y)&&mr(t,a)&&(h+=y,p+=R);var L=a.parentNode;a=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&(n&&Math.abs(h)<1||!n&&c>h)||!u&&(n&&Math.abs(p)<1||!n&&-c>p))&&(s=!0),s};var Mt=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},wr=function(t){return[t.deltaX,t.deltaY]},Cr=function(t){return t&&"current"in t?t.current:t},hn=function(t,e){return t[0]===e[0]&&t[1]===e[1]},pn=function(t){return`
38
+ `)},vr=function(){var t=parseInt(document.body.getAttribute(it)||"0",10);return isFinite(t)?t:0},ai=function(){nt.useEffect(function(){return document.body.setAttribute(it,(vr()+1).toString()),function(){var t=vr()-1;t<=0?document.body.removeAttribute(it):document.body.setAttribute(it,t.toString())}},[])},ie=function(t){var e=t.noRelative,r=t.noImportant,o=t.gapMode,i=o===void 0?"margin":o;ai();var n=nt.useMemo(function(){return oe(i)},[i]);return nt.createElement(ii,{styles:ni(n,!e,i,r?"":"!important")})};var ne=!1;if(typeof window<"u")try{pt=Object.defineProperty({},"passive",{get:function(){return ne=!0,!0}}),window.addEventListener("test",pt,pt),window.removeEventListener("test",pt,pt)}catch{ne=!1}var pt,Q=ne?{passive:!1}:!1;var ci=function(t){return t.tagName==="TEXTAREA"},yr=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!ci(t)&&r[e]==="visible")},li=function(t){return yr(t,"overflowY")},si=function(t){return yr(t,"overflowX")},ae=function(t,e){var r=e.ownerDocument,o=e;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=mr(t,o);if(i){var n=Lr(t,o),c=n[1],a=n[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},ui=function(t){var e=t.scrollTop,r=t.scrollHeight,o=t.clientHeight;return[e,r,o]},di=function(t){var e=t.scrollLeft,r=t.scrollWidth,o=t.clientWidth;return[e,r,o]},mr=function(t,e){return t==="v"?li(e):si(e)},Lr=function(t,e){return t==="v"?ui(e):di(e)},hi=function(t,e){return t==="h"&&e==="rtl"?-1:1},wr=function(t,e,r,o,i){var n=hi(t,window.getComputedStyle(e).direction),c=n*o,a=r.target,l=e.contains(a),s=!1,d=c>0,h=0,p=0;do{if(!a)break;var g=Lr(t,a),R=g[0],u=g[1],f=g[2],v=u-f-n*R;(R||v)&&mr(t,a)&&(h+=v,p+=R);var L=a.parentNode;a=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(d&&(i&&Math.abs(h)<1||!i&&c>h)||!d&&(i&&Math.abs(p)<1||!i&&-c>p))&&(s=!0),s};var Ft=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Cr=function(t){return[t.deltaX,t.deltaY]},br=function(t){return t&&"current"in t?t.current:t},pi=function(t,e){return t[0]===e[0]&&t[1]===e[1]},gi=function(t){return`
39
39
  .block-interactivity-`.concat(t,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
41
- `)},gn=0,nt=[];function br(t){var e=w.useRef([]),r=w.useRef([0,0]),o=w.useRef(),n=w.useState(gn++)[0],i=w.useState(dt)[0],c=w.useRef(t);w.useEffect(function(){c.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var d=lr([t.lockRef.current],(t.shards||[]).map(Cr),!0).filter(Boolean);return d.forEach(function(f){return f.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),d.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var a=w.useCallback(function(d,f){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Mt(d),L=r.current,M="deltaX"in d?d.deltaX:L[0]-y[0],F="deltaY"in d?d.deltaY:L[1]-y[1],j,W=d.target,x=Math.abs(M)>Math.abs(F)?"h":"v";if("touches"in d&&x==="h"&&W.type==="range")return!1;var U=window.getSelection(),J=U&&U.anchorNode,ct=J?J===W||J.contains(W):!1;if(ct)return!1;var gt=ie(x,W);if(!gt)return!0;if(gt?j=x:(j=x==="v"?"h":"v",gt=ie(x,W)),!gt)return!1;if(!o.current&&"changedTouches"in d&&(M||F)&&(o.current=j),!j)return!0;var ke=o.current||j;return Lr(ke,f,d,ke==="h"?M:F,!0)},[]),l=w.useCallback(function(d){var f=d;if(!(!nt.length||nt[nt.length-1]!==i)){var y="deltaY"in f?wr(f):Mt(f),L=e.current.filter(function(j){return j.name===f.type&&(j.target===f.target||f.target===j.shadowParent)&&hn(j.delta,y)})[0];if(L&&L.should){f.cancelable&&f.preventDefault();return}if(!L){var M=(c.current.shards||[]).map(Cr).filter(Boolean).filter(function(j){return j.contains(f.target)}),F=M.length>0?a(f,M[0]):!c.current.noIsolation;F&&f.cancelable&&f.preventDefault()}}},[]),s=w.useCallback(function(d,f,y,L){var M={name:d,delta:f,target:y,should:L,shadowParent:fn(y)};e.current.push(M),setTimeout(function(){e.current=e.current.filter(function(F){return F!==M})},1)},[]),u=w.useCallback(function(d){r.current=Mt(d),o.current=void 0},[]),h=w.useCallback(function(d){s(d.type,wr(d),d.target,a(d,t.lockRef.current))},[]),p=w.useCallback(function(d){s(d.type,Mt(d),d.target,a(d,t.lockRef.current))},[]);w.useEffect(function(){return nt.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Z),document.addEventListener("touchmove",l,Z),document.addEventListener("touchstart",u,Z),function(){nt=nt.filter(function(d){return d!==i}),document.removeEventListener("wheel",l,Z),document.removeEventListener("touchmove",l,Z),document.removeEventListener("touchstart",u,Z)}},[]);var g=t.removeScrollBar,R=t.inert;return w.createElement(w.Fragment,null,R?w.createElement(i,{styles:pn(n)}):null,g?w.createElement(oe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function fn(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}var Rr=Zt(Rt,br);var Mr=jt.forwardRef(function(t,e){return jt.createElement(st,A({},t,{ref:e,sideCar:Rr}))});Mr.classNames=st.classNames;var ae=Mr;var xn=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},it=new WeakMap,Ft=new WeakMap,Bt={},ce=0,jr=function(t){return t&&(t.host||jr(t.parentNode))},vn=function(t,e){return e.map(function(r){if(t.contains(r))return r;var o=jr(r);return o&&t.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},yn=function(t,e,r,o){var n=vn(e,Array.isArray(t)?t:[t]);Bt[r]||(Bt[r]=new WeakMap);var i=Bt[r],c=[],a=new Set,l=new Set(n),s=function(h){!h||a.has(h)||(a.add(h),s(h.parentNode))};n.forEach(s);var u=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))u(p);else try{var g=p.getAttribute(o),R=g!==null&&g!=="false",d=(it.get(p)||0)+1,f=(i.get(p)||0)+1;it.set(p,d),i.set(p,f),c.push(p),d===1&&R&&Ft.set(p,!0),f===1&&p.setAttribute(r,"true"),R||p.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return u(e),a.clear(),ce++,function(){c.forEach(function(h){var p=it.get(h)-1,g=i.get(h)-1;it.set(h,p),i.set(h,g),p||(Ft.has(h)||h.removeAttribute(o),Ft.delete(h)),g||h.removeAttribute(r)}),ce--,ce||(it=new WeakMap,it=new WeakMap,Ft=new WeakMap,Bt={})}},Fr=function(t,e,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(t)?t:[t]),n=e||xn(t);return n?(o.push.apply(o,Array.from(n.querySelectorAll("[aria-live], script"))),yn(o,n,r,"aria-hidden")):function(){return null}};var m=require("react/jsx-runtime"),Wt="Dialog",[Br,tc]=Te(Wt),[mn,z]=Br(Wt),Sr=t=>{let{__scopeDialog:e,children:r,open:o,defaultOpen:n,onOpenChange:i,modal:c=!0}=t,a=k.useRef(null),l=k.useRef(null),[s,u]=De({prop:o,defaultProp:n??!1,onChange:i,caller:Wt});return(0,m.jsx)(mn,{scope:e,triggerRef:a,contentRef:l,contentId:xt(),titleId:xt(),descriptionId:xt(),open:s,onOpenChange:u,onOpenToggle:k.useCallback(()=>u(h=>!h),[u]),modal:c,children:r})};Sr.displayName=Wt;var Wr="DialogTrigger",Er=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(Wr,r),i=_(e,n.triggerRef);return(0,m.jsx)(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":de(n.open),...o,ref:i,onClick:H(t.onClick,n.onOpenToggle)})});Er.displayName=Wr;var le="DialogPortal",[kn,Pr]=Br(le,{forceMount:void 0}),Nr=t=>{let{__scopeDialog:e,forceMount:r,children:o,container:n}=t,i=z(le,e);return(0,m.jsx)(kn,{scope:e,forceMount:r,children:k.Children.map(o,c=>(0,m.jsx)(lt,{present:r||i.open,children:(0,m.jsx)(Gt,{asChild:!0,container:n,children:c})}))})};Nr.displayName=le;var St="DialogOverlay",Ar=k.forwardRef((t,e)=>{let r=Pr(St,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,i=z(St,t.__scopeDialog);return i.modal?(0,m.jsx)(lt,{present:o||i.open,children:(0,m.jsx)(wn,{...n,ref:e})}):null});Ar.displayName=St;var Ln=mt("DialogOverlay.RemoveScroll"),wn=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(St,r);return(0,m.jsx)(ae,{as:Ln,allowPinchZoom:!0,shards:[n.contentRef],children:(0,m.jsx)(O.div,{"data-state":de(n.open),...o,ref:e,style:{pointerEvents:"auto",...o.style}})})}),Q="DialogContent",Or=k.forwardRef((t,e)=>{let r=Pr(Q,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,i=z(Q,t.__scopeDialog);return(0,m.jsx)(lt,{present:o||i.open,children:i.modal?(0,m.jsx)(Cn,{...n,ref:e}):(0,m.jsx)(bn,{...n,ref:e})})});Or.displayName=Q;var Cn=k.forwardRef((t,e)=>{let r=z(Q,t.__scopeDialog),o=k.useRef(null),n=_(e,r.contentRef,o);return k.useEffect(()=>{let i=o.current;if(i)return Fr(i)},[]),(0,m.jsx)(Tr,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(t.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:H(t.onPointerDownOutside,i=>{let c=i.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&i.preventDefault()}),onFocusOutside:H(t.onFocusOutside,i=>i.preventDefault())})}),bn=k.forwardRef((t,e)=>{let r=z(Q,t.__scopeDialog),o=k.useRef(!1),n=k.useRef(!1);return(0,m.jsx)(Tr,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(o.current||r.triggerRef.current?.focus(),i.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let c=i.target;r.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&n.current&&i.preventDefault()}})}),Tr=k.forwardRef((t,e)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:i,...c}=t,a=z(Q,r),l=k.useRef(null),s=_(e,l);return cr(),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Ut,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:i,children:(0,m.jsx)(zt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":de(a.open),...c,ref:s,onDismiss:()=>a.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Mn,{titleId:a.titleId}),(0,m.jsx)(Fn,{contentRef:l,descriptionId:a.descriptionId})]})]})}),se="DialogTitle",Ir=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(se,r);return(0,m.jsx)(O.h2,{id:n.titleId,...o,ref:e})});Ir.displayName=se;var Dr="DialogDescription",_r=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(Dr,r);return(0,m.jsx)(O.p,{id:n.descriptionId,...o,ref:e})});_r.displayName=Dr;var zr="DialogClose",Rn=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(zr,r);return(0,m.jsx)(O.button,{type:"button",...o,ref:e,onClick:H(t.onClick,()=>n.onOpenChange(!1))})});Rn.displayName=zr;function de(t){return t?"open":"closed"}var Hr="DialogTitleWarning",[ec,Vr]=Oe(Hr,{contentName:Q,titleName:se,docsSlug:"dialog"}),Mn=({titleId:t})=>{let e=Vr(Hr),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},fi=0,at=[];function Rr(t){var e=w.useRef([]),r=w.useRef([0,0]),o=w.useRef(),i=w.useState(fi++)[0],n=w.useState(ht)[0],c=w.useRef(t);w.useEffect(function(){c.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var u=sr([t.lockRef.current],(t.shards||[]).map(br),!0).filter(Boolean);return u.forEach(function(f){return f.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),u.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=w.useCallback(function(u,f){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var v=Ft(u),L=r.current,M="deltaX"in u?u.deltaX:L[0]-v[0],S="deltaY"in u?u.deltaY:L[1]-v[1],F,W=u.target,k=Math.abs(M)>Math.abs(S)?"h":"v";if("touches"in u&&k==="h"&&W.type==="range")return!1;var U=window.getSelection(),et=U&&U.anchorNode,st=et?et===W||et.contains(W):!1;if(st)return!1;var kt=ae(k,W);if(!kt)return!0;if(kt?F=k:(F=k==="v"?"h":"v",kt=ae(k,W)),!kt)return!1;if(!o.current&&"changedTouches"in u&&(M||S)&&(o.current=F),!F)return!0;var Le=o.current||F;return wr(Le,f,u,Le==="h"?M:S,!0)},[]),l=w.useCallback(function(u){var f=u;if(!(!at.length||at[at.length-1]!==n)){var v="deltaY"in f?Cr(f):Ft(f),L=e.current.filter(function(F){return F.name===f.type&&(F.target===f.target||f.target===F.shadowParent)&&pi(F.delta,v)})[0];if(L&&L.should){f.cancelable&&f.preventDefault();return}if(!L){var M=(c.current.shards||[]).map(br).filter(Boolean).filter(function(F){return F.contains(f.target)}),S=M.length>0?a(f,M[0]):!c.current.noIsolation;S&&f.cancelable&&f.preventDefault()}}},[]),s=w.useCallback(function(u,f,v,L){var M={name:u,delta:f,target:v,should:L,shadowParent:ki(v)};e.current.push(M),setTimeout(function(){e.current=e.current.filter(function(S){return S!==M})},1)},[]),d=w.useCallback(function(u){r.current=Ft(u),o.current=void 0},[]),h=w.useCallback(function(u){s(u.type,Cr(u),u.target,a(u,t.lockRef.current))},[]),p=w.useCallback(function(u){s(u.type,Ft(u),u.target,a(u,t.lockRef.current))},[]);w.useEffect(function(){return at.push(n),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Q),document.addEventListener("touchmove",l,Q),document.addEventListener("touchstart",d,Q),function(){at=at.filter(function(u){return u!==n}),document.removeEventListener("wheel",l,Q),document.removeEventListener("touchmove",l,Q),document.removeEventListener("touchstart",d,Q)}},[]);var g=t.removeScrollBar,R=t.inert;return w.createElement(w.Fragment,null,R?w.createElement(n,{styles:gi(i)}):null,g?w.createElement(ie,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function ki(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}var Mr=Qt(jt,Rr);var jr=St.forwardRef(function(t,e){return St.createElement(dt,A({},t,{ref:e,sideCar:Mr}))});jr.classNames=dt.classNames;var ce=jr;var xi=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ct=new WeakMap,Bt=new WeakMap,Wt={},le=0,Fr=function(t){return t&&(t.host||Fr(t.parentNode))},vi=function(t,e){return e.map(function(r){if(t.contains(r))return r;var o=Fr(r);return o&&t.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},yi=function(t,e,r,o){var i=vi(e,Array.isArray(t)?t:[t]);Wt[r]||(Wt[r]=new WeakMap);var n=Wt[r],c=[],a=new Set,l=new Set(i),s=function(h){!h||a.has(h)||(a.add(h),s(h.parentNode))};i.forEach(s);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(o),R=g!==null&&g!=="false",u=(ct.get(p)||0)+1,f=(n.get(p)||0)+1;ct.set(p,u),n.set(p,f),c.push(p),u===1&&R&&Bt.set(p,!0),f===1&&p.setAttribute(r,"true"),R||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(e),a.clear(),le++,function(){c.forEach(function(h){var p=ct.get(h)-1,g=n.get(h)-1;ct.set(h,p),n.set(h,g),p||(Bt.has(h)||h.removeAttribute(o),Bt.delete(h)),g||h.removeAttribute(r)}),le--,le||(ct=new WeakMap,ct=new WeakMap,Bt=new WeakMap,Wt={})}},Sr=function(t,e,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(t)?t:[t]),i=e||xi(t);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),yi(o,i,r,"aria-hidden")):function(){return null}};var y=require("react/jsx-runtime"),Pt="Dialog",[Br,rc]=Ie(Pt),[mi,z]=Br(Pt),Wr=t=>{let{__scopeDialog:e,children:r,open:o,defaultOpen:i,onOpenChange:n,modal:c=!0}=t,a=m.useRef(null),l=m.useRef(null),[s,d]=_e({prop:o,defaultProp:i??!1,onChange:n,caller:Pt});return(0,y.jsx)(mi,{scope:e,triggerRef:a,contentRef:l,contentId:vt(),titleId:vt(),descriptionId:vt(),open:s,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(h=>!h),[d]),modal:c,children:r})};Wr.displayName=Pt;var Er="DialogTrigger",Pr=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(Er,r),n=_(e,i.triggerRef);return(0,y.jsx)(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":de(i.open),...o,ref:n,onClick:H(t.onClick,i.onOpenToggle)})});Pr.displayName=Er;var se="DialogPortal",[Li,Nr]=Br(se,{forceMount:void 0}),Ar=t=>{let{__scopeDialog:e,forceMount:r,children:o,container:i}=t,n=z(se,e);return(0,y.jsx)(Li,{scope:e,forceMount:r,children:m.Children.map(o,c=>(0,y.jsx)(ut,{present:r||n.open,children:(0,y.jsx)($t,{asChild:!0,container:i,children:c})}))})};Ar.displayName=se;var Et="DialogOverlay",Or=m.forwardRef((t,e)=>{let r=Nr(Et,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,n=z(Et,t.__scopeDialog);return n.modal?(0,y.jsx)(ut,{present:o||n.open,children:(0,y.jsx)(Ci,{...i,ref:e})}):null});Or.displayName=Et;var wi=Lt("DialogOverlay.RemoveScroll"),Ci=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(Et,r);return(0,y.jsx)(ce,{as:wi,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(O.div,{"data-state":de(i.open),...o,ref:e,style:{pointerEvents:"auto",...o.style}})})}),J="DialogContent",Tr=m.forwardRef((t,e)=>{let r=Nr(J,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,n=z(J,t.__scopeDialog);return(0,y.jsx)(ut,{present:o||n.open,children:n.modal?(0,y.jsx)(bi,{...i,ref:e}):(0,y.jsx)(Ri,{...i,ref:e})})});Tr.displayName=J;var bi=m.forwardRef((t,e)=>{let r=z(J,t.__scopeDialog),o=m.useRef(null),i=_(e,r.contentRef,o);return m.useEffect(()=>{let n=o.current;if(n)return Sr(n)},[]),(0,y.jsx)(Ir,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(t.onCloseAutoFocus,n=>{n.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:H(t.onPointerDownOutside,n=>{let c=n.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&n.preventDefault()}),onFocusOutside:H(t.onFocusOutside,n=>n.preventDefault())})}),Ri=m.forwardRef((t,e)=>{let r=z(J,t.__scopeDialog),o=m.useRef(!1),i=m.useRef(!1);return(0,y.jsx)(Ir,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{t.onCloseAutoFocus?.(n),n.defaultPrevented||(o.current||r.triggerRef.current?.focus(),n.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:n=>{t.onInteractOutside?.(n),n.defaultPrevented||(o.current=!0,n.detail.originalEvent.type==="pointerdown"&&(i.current=!0));let c=n.target;r.triggerRef.current?.contains(c)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&i.current&&n.preventDefault()}})}),Ir=m.forwardRef((t,e)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:n,...c}=t,a=z(J,r),l=m.useRef(null),s=_(e,l);return lr(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Gt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:n,children:(0,y.jsx)(Ht,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":de(a.open),...c,ref:s,onDismiss:()=>a.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ji,{titleId:a.titleId}),(0,y.jsx)(Si,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ue="DialogTitle",Dr=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(ue,r);return(0,y.jsx)(O.h2,{id:i.titleId,...o,ref:e})});Dr.displayName=ue;var _r="DialogDescription",zr=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(_r,r);return(0,y.jsx)(O.p,{id:i.descriptionId,...o,ref:e})});zr.displayName=_r;var Hr="DialogClose",Mi=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(Hr,r);return(0,y.jsx)(O.button,{type:"button",...o,ref:e,onClick:H(t.onClick,()=>i.onOpenChange(!1))})});Mi.displayName=Hr;function de(t){return t?"open":"closed"}var Vr="DialogTitleWarning",[oc,Ur]=Te(Vr,{contentName:J,titleName:ue,docsSlug:"dialog"}),ji=({titleId:t})=>{let e=Ur(Vr),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return k.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},jn="DialogDescriptionWarning",Fn=({contentRef:t,descriptionId:e})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vr(jn).contentName}}.`;return k.useEffect(()=>{let n=t.current?.getAttribute("aria-describedby");e&&n&&(document.getElementById(e)||console.warn(o))},[o,t,e]),null},Ur=Sr,Gr=Er,Kr=Nr,ue=Ar,he=Or,pe=Ir,ge=_r;var $r=require("class-variance-authority");var V=require("react/jsx-runtime"),Yr=Ur,Xr=Gr;var Sn=Kr,qr=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(ue,{className:S("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:r}));qr.displayName=ue.displayName;var Wn=(0,$r.cva)("fixed z-50 gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{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"}}),fe=ht.forwardRef(({side:t="right",className:e,children:r,...o},n)=>(0,V.jsxs)(Sn,{children:[(0,V.jsx)(qr,{}),(0,V.jsx)(he,{ref:n,className:S(Wn({side:t}),e),...o,children:r})]}));fe.displayName=he.displayName;var En=({className:t,...e})=>(0,V.jsx)("div",{className:S("flex flex-col space-y-2 text-center sm:text-left",t),...e});En.displayName="SheetHeader";var Pn=({className:t,...e})=>(0,V.jsx)("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});Pn.displayName="SheetFooter";var Nn=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(pe,{ref:r,className:S("text-lg font-semibold text-foreground",t),...e}));Nn.displayName=pe.displayName;var An=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(ge,{ref:r,className:S("text-sm text-muted-foreground",t),...e}));An.displayName=ge.displayName;var Et=require("lucide-react");var C=require("react/jsx-runtime");function Qr({navItems:t=[],logoHref:e="/",onLogoClick:r=()=>{},logo:o,secondaryLogo:n}){let[i,c]=(0,Zr.useState)(!1);return(0,C.jsx)("header",{className:"sticky top-0 z-60 w-full border-b border-border/20 bg-background/95 backdrop-blur supports-backdrop-filter:bg-background/60 pointer-events-auto uppercase",style:{pointerEvents:"auto"},children:(0,C.jsxs)("div",{className:"container flex h-16 items-center justify-between px-4 md:px-6",children:[(0,C.jsxs)("a",{href:e,className:"flex items-center gap-1 cursor-pointer group",onClick:()=>{r(),c(!1)},children:[(0,C.jsx)("h1",{className:"font-ddin text-1xl md:text-2xl tracking-tight",children:o}),n&&(0,C.jsx)("span",{className:"font-ddin text-1xl md:text-2xl tracking-tight text-muted-foreground",children:n})]}),(0,C.jsx)("div",{className:"hidden md:flex items-center gap-6",children:(0,C.jsx)(()=>(0,C.jsx)(Re,{children:(0,C.jsx)(Me,{className:"gap-2 md:gap-6",children:t.map((l,s)=>(0,C.jsx)(je,{children:(0,C.jsx)(Be,{className:S(Fe(),typeof l.label!="string"&&"h-12 w-12 p-0 bg-transparent hover:bg-muted/50 flex items-center justify-center rounded-full"),href:l.href,onClick:l.onClick,children:typeof l.label=="string"?(0,C.jsx)("span",{className:"font-ddin text-1xl",children:l.label}):l.label})},l.href||(typeof l.label=="string"?l.label:s)))})}),{})}),(0,C.jsxs)(Yr,{open:i,onOpenChange:c,children:[(0,C.jsx)(Xr,{asChild:!0,className:"md:hidden",children:(0,C.jsx)(Ee,{variant:"ghost",size:"icon","aria-label":"Toggle menu",children:i?(0,C.jsx)(Et.X,{className:"h-6 w-6"}):(0,C.jsx)(Et.Menu,{className:"h-6 w-6"})})}),(0,C.jsx)(fe,{side:"right",className:"w-100 border-l border-border/30 mt-16",children:(0,C.jsx)("div",{className:"flex min-h-[calc(100vh-5rem)] flex-col justify-center px-8 py-12 bg-background",children:(0,C.jsx)("nav",{className:"flex flex-col gap-12 md:gap-16",children:t.map((l,s)=>(0,C.jsx)("a",{href:l.href,onClick:()=>{l.onClick&&l.onClick(),c(!1)},className:`
46
- w-full text-left
47
- text-3xl md:text-4xl
48
- font-ddin font-medium tracking-wider
49
- text-foreground hover:text-primary
50
- transition-colors duration-300
51
- py-4 px-4 rounded-lg
52
- hover:bg-muted/30 focus:outline-none focus:ring-2 focus:ring-ring
53
- block
54
- `,children:typeof l.label=="string"?(0,C.jsx)("span",{className:"font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}var at=v(require("react"),1);var xe=v(require("react"),1),ve={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ye=xe.default.createContext&&xe.default.createContext(ve);var On=["attr","size","title"];function Tn(t,e){if(t==null)return{};var r,o,n=In(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function In(t,e){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;r[o]=t[o]}return r}function Pt(){return Pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Pt.apply(null,arguments)}function Jr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jr(Object(r),!0).forEach(function(o){Dn(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jr(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Dn(t,e,r){return(e=_n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _n(t){var e=zn(t,"string");return typeof e=="symbol"?e:e+""}function zn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function to(t){return t&&t.map((e,r)=>at.default.createElement(e.tag,Nt({key:r},e.attr),to(e.child)))}function eo(t){return e=>at.default.createElement(Hn,Pt({attr:Nt({},t.attr)},e),to(t.child))}function Hn(t){var e=r=>{var{attr:o,size:n,title:i}=t,c=Tn(t,On),a=n||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),at.default.createElement("svg",Pt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,c,{className:l,style:Nt(Nt({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&at.default.createElement("title",null,i),t.children)};return ye!==void 0?at.default.createElement(ye.Consumer,null,r=>e(r)):e(ve)}function ro(t){return eo({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(t)}var P=require("react/jsx-runtime");function oo({links:t=[],socials:e=[],copyright:r,...o}){return(0,P.jsx)("footer",{className:"bg-background pt-12 pb-8 w-full font-ddin uppercase text-[10px] sm:text-xs",...o,children:(0,P.jsx)("div",{className:"container mx-auto px-6 max-w-[1400px]",children:(0,P.jsxs)("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6 md:gap-4 text-muted-foreground",children:[(0,P.jsx)("div",{className:"flex items-center gap-6 order-3 md:order-1",children:e.map(n=>{let i=n.icon;return(0,P.jsx)("a",{href:n.href,className:"hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer","aria-label":n.label??"Social link",children:(0,P.jsx)(i,{className:"w-4 h-4"})},n.href)})}),(0,P.jsx)("ul",{className:"flex flex-wrap justify-center items-center gap-6 md:gap-10 order-1 md:order-2 font-medium tracking-widest text-foreground",children:t.map(n=>(0,P.jsx)("li",{children:(0,P.jsxs)("a",{href:n.href,onClick:n.onClick,target:n.isExternal?"_blank":void 0,rel:n.isExternal?"noopener noreferrer":void 0,className:"inline-flex items-center gap-1.5 hover:text-muted-foreground transition-colors",children:[(0,P.jsx)("span",{children:n.label}),n.isExternal&&(0,P.jsx)(ro,{className:"inline-block h-3.5 w-3.5 text-muted-foreground/60","aria-hidden":"true"})]})},n.href))}),r&&(0,P.jsx)("div",{className:"order-2 md:order-3 font-medium tracking-widest whitespace-nowrap",children:(0,P.jsxs)("a",{href:r?.companyUrl,target:"_blank",rel:"noopener noreferrer",className:"focus-visible:underline outline-none",children:["\xA9 ",new Date().getFullYear()," ",r?.companyName]})})]})})})}var At=require("react/jsx-runtime");function no({header:t,footer:e,children:r}){return(0,At.jsxs)("div",{className:"min-h-screen bg-background text-foreground font-ddin flex flex-col",children:[t,(0,At.jsx)("div",{className:"flex-1",children:r}),e]})}var io=v(require("react"),1),ao=require("lucide-react"),pt=require("react/jsx-runtime"),me=io.forwardRef(({variant:t="none",itemCount:e=0,children:r,...o},n)=>(0,pt.jsxs)("button",{ref:n,className:"relative flex items-center justify-center rounded-full transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-muted/50 active:scale-95 h-12 w-12 p-0 bg-transparent",...o,children:[t==="cart"?(0,pt.jsx)(ao.ShoppingCart,{className:"text-foreground h-7 w-7"}):r,e>0&&(0,pt.jsx)("span",{className:"absolute -top-1.5 -right-1.5 flex items-center justify-center rounded-full bg-primary text-primary-foreground text-[10px] font-bold px-1.5 py-0.5 min-w-[18px] h-[18px] shadow-sm animate-in zoom-in duration-300",children:e>99?"99+":e})]}));me.displayName="IconWithBadge";0&&(module.exports={Footer,Header,IconWithBadge,Layout});
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},Fi="DialogDescriptionWarning",Si=({contentRef:t,descriptionId:e})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ur(Fi).contentName}}.`;return m.useEffect(()=>{let i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(o))},[o,t,e]),null},Gr=Wr,$r=Pr,Kr=Ar,he=Or,pe=Tr,ge=Dr,fe=zr;var Yr=require("class-variance-authority");var V=require("react/jsx-runtime"),Xr=Gr,qr=$r;var Wi=Kr,Zr=gt.forwardRef(({className:t,...e},r)=>(0,V.jsx)(he,{className:j("kui:fixed kui:inset-0 kui:z-50 kui:data-[state=open]:animate-in kui:data-[state=closed]:animate-out kui:data-[state=closed]:fade-out-0 kui:data-[state=open]:fade-in-0",t),...e,ref:r}));Zr.displayName=he.displayName;var Ei=(0,Yr.cva)("kui:fixed kui:z-50 kui:gap-4 kui:shadow-lg kui:transition kui:ease-in-out kui:data-[state=closed]:duration-300 kui:data-[state=open]:duration-500 kui:data-[state=open]:animate-in kui:data-[state=closed]:animate-out",{variants:{side:{top:"kui:inset-x-0 kui:top-0 kui:border-b kui:data-[state=closed]:slide-out-to-top kui:data-[state=open]:slide-in-from-top",bottom:"kui:inset-x-0 kui:bottom-0 kui:border-t kui:data-[state=closed]:slide-out-to-bottom kui:data-[state=open]:slide-in-from-bottom",left:"kui:inset-y-0 kui:left-0 kui:h-full kui:w-3/4 kui:border-r kui:data-[state=closed]:slide-out-to-left kui:data-[state=open]:slide-in-from-left kui:sm:max-w-sm",right:"kui:inset-y-0 kui:right-0 kui:h-full kui:w-3/4 kui:border-l kui:data-[state=closed]:slide-out-to-right kui:data-[state=open]:slide-in-from-right kui:sm:max-w-sm"}},defaultVariants:{side:"right"}}),ke=gt.forwardRef(({side:t="right",className:e,children:r,...o},i)=>(0,V.jsxs)(Wi,{children:[(0,V.jsx)(Zr,{}),(0,V.jsx)(pe,{ref:i,className:j(Ei({side:t}),e),...o,children:r})]}));ke.displayName=pe.displayName;var Pi=({className:t,...e})=>(0,V.jsx)("div",{className:j("kui:flex kui:flex-col kui:space-y-2 kui:text-center kui:sm:text-left",t),...e});Pi.displayName="SheetHeader";var Ni=({className:t,...e})=>(0,V.jsx)("div",{className:j("kui:flex kui:flex-col-reverse kui:sm:flex-row kui:sm:justify-end kui:sm:space-x-2",t),...e});Ni.displayName="SheetFooter";var Ai=gt.forwardRef(({className:t,...e},r)=>(0,V.jsx)(ge,{ref:r,className:j("kui:text-lg kui:font-semibold kui:text-foreground",t),...e}));Ai.displayName=ge.displayName;var Oi=gt.forwardRef(({className:t,...e},r)=>(0,V.jsx)(fe,{ref:r,className:j("kui:text-sm kui:text-muted-foreground",t),...e}));Oi.displayName=fe.displayName;var Nt=require("lucide-react");var C=require("react/jsx-runtime");function Jr({navItems:t=[],logoHref:e="/",onLogoClick:r=()=>{},logo:o,secondaryLogo:i}){let[n,c]=(0,Qr.useState)(!1);return(0,C.jsx)("header",{className:"kui:sticky kui:top-0 kui:z-60 kui:w-full kui:border-b kui:border-border/20 kui:bg-background/95 kui:backdrop-blur kui:supports-backdrop-filter:bg-background/60 kui:pointer-events-auto kui:uppercase",style:{pointerEvents:"auto"},children:(0,C.jsxs)("div",{className:"kui:container kui:flex kui:h-16 kui:items-center kui:justify-between kui:px-4 kui:md:px-6",children:[(0,C.jsxs)("a",{href:e,className:"kui:flex kui:items-center kui:gap-1 kui:cursor-pointer kui:group",onClick:()=>{r(),c(!1)},children:[(0,C.jsx)("h1",{className:"kui:font-ddin kui:text-1xl kui:md:text-2xl kui:tracking-tight",children:o}),i&&(0,C.jsx)("span",{className:"kui:font-ddin kui:text-1xl kui:md:text-2xl kui:tracking-tight kui:text-muted-foreground",children:i})]}),(0,C.jsx)("div",{className:"kui:hidden kui:md:flex kui:items-center kui:gap-6",children:(0,C.jsx)(()=>(0,C.jsx)(Me,{children:(0,C.jsx)(je,{className:"kui:gap-2 kui:md:gap-6",children:t.map((l,s)=>(0,C.jsx)(Fe,{children:(0,C.jsx)(Be,{className:j(Se(),typeof l.label!="string"&&"kui:h-12 kui:w-12 kui:p-0 kui:bg-transparent kui:hover:bg-muted/50 kui:flex kui:items-center kui:justify-center kui:rounded-full"),href:l.href,onClick:l.onClick,children:typeof l.label=="string"?(0,C.jsx)("span",{className:"kui:font-ddin kui:text-1xl",children:l.label}):l.label})},l.href||(typeof l.label=="string"?l.label:s)))})}),{})}),(0,C.jsxs)(Xr,{open:n,onOpenChange:c,children:[(0,C.jsx)(qr,{asChild:!0,className:"kui:md:hidden",children:(0,C.jsx)(Pe,{variant:"ghost",size:"icon","aria-label":"Toggle menu",children:n?(0,C.jsx)(Nt.X,{className:"kui:h-6 kui:w-6"}):(0,C.jsx)(Nt.Menu,{className:"kui:h-6 kui:w-6"})})}),(0,C.jsx)(ke,{side:"right",className:"kui:w-100 kui:border-l kui:border-border/30 kui:mt-16",children:(0,C.jsx)("div",{className:"kui:flex kui:min-h-[calc(100vh-5rem)] kui:flex-col kui:justify-center kui:px-8 kui:py-12 kui:bg-background",children:(0,C.jsx)("nav",{className:"kui:flex kui:flex-col kui:gap-12 kui:md:gap-16",children:t.map((l,s)=>(0,C.jsx)("a",{href:l.href,onClick:()=>{l.onClick&&l.onClick(),c(!1)},className:`
46
+ kui:w-full kui:text-left
47
+ kui:text-3xl kui:md:text-4xl
48
+ kui:font-ddin kui:font-medium kui:tracking-wider
49
+ kui:text-foreground kui:hover:text-primary
50
+ kui:transition-colors kui:duration-300
51
+ kui:py-4 kui:px-4 kui:rounded-lg
52
+ kui:hover:bg-muted/30 kui:focus:outline-none kui:focus:ring-2 kui:focus:ring-ring
53
+ kui:block
54
+ `,children:typeof l.label=="string"?(0,C.jsx)("span",{className:"kui:font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}var lt=x(require("react"),1);var xe=x(require("react"),1),ve={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ye=xe.default.createContext&&xe.default.createContext(ve);var Ti=["attr","size","title"];function Ii(t,e){if(t==null)return{};var r,o,i=Di(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)r=n[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Di(t,e){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;r[o]=t[o]}return r}function At(){return At=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},At.apply(null,arguments)}function to(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,o)}return r}function Ot(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?to(Object(r),!0).forEach(function(o){_i(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function _i(t,e,r){return(e=zi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zi(t){var e=Hi(t,"string");return typeof e=="symbol"?e:e+""}function Hi(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function eo(t){return t&&t.map((e,r)=>lt.default.createElement(e.tag,Ot({key:r},e.attr),eo(e.child)))}function ro(t){return e=>lt.default.createElement(Vi,At({attr:Ot({},t.attr)},e),eo(t.child))}function Vi(t){var e=r=>{var{attr:o,size:i,title:n}=t,c=Ii(t,Ti),a=i||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),lt.default.createElement("svg",At({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,c,{className:l,style:Ot(Ot({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),n&&lt.default.createElement("title",null,n),t.children)};return ye!==void 0?lt.default.createElement(ye.Consumer,null,r=>e(r)):e(ve)}function oo(t){return ro({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(t)}var P=require("react/jsx-runtime");function io({links:t=[],socials:e=[],copyright:r,...o}){return(0,P.jsx)("footer",{className:"kui:bg-background kui:pt-12 kui:pb-8 kui:w-full kui:font-ddin kui:uppercase kui:text-[10px] kui:sm:text-xs",...o,children:(0,P.jsx)("div",{className:"kui:container kui:mx-auto kui:px-6 kui:max-w-[1400px]",children:(0,P.jsxs)("div",{className:"kui:flex kui:flex-col kui:md:flex-row kui:items-center kui:justify-between kui:gap-6 kui:md:gap-4 kui:text-muted-foreground",children:[(0,P.jsx)("div",{className:"kui:flex kui:items-center kui:gap-6 kui:order-3 kui:md:order-1",children:e.map(i=>{let n=i.icon;return(0,P.jsx)("a",{href:i.href,className:"kui:hover:text-foreground kui:transition-colors",target:"_blank",rel:"noopener noreferrer","aria-label":i.label??"Social link",children:(0,P.jsx)(n,{className:"kui:w-4 kui:h-4"})},i.href)})}),(0,P.jsx)("ul",{className:"kui:flex kui:flex-wrap kui:justify-center kui:items-center kui:gap-6 kui:md:gap-10 kui:order-1 kui:md:order-2 kui:font-medium kui:tracking-widest kui:text-foreground",children:t.map(i=>(0,P.jsx)("li",{children:(0,P.jsxs)("a",{href:i.href,onClick:i.onClick,target:i.isExternal?"_blank":void 0,rel:i.isExternal?"noopener noreferrer":void 0,className:"kui:inline-flex kui:items-center kui:gap-1.5 kui:hover:text-muted-foreground kui:transition-colors",children:[(0,P.jsx)("span",{children:i.label}),i.isExternal&&(0,P.jsx)(oo,{className:"kui:inline-block kui:h-3.5 kui:w-3.5 kui:text-muted-foreground/60","aria-hidden":"true"})]})},i.href))}),r&&(0,P.jsx)("div",{className:"kui:order-2 kui:md:order-3 kui:font-medium kui:tracking-widest kui:whitespace-nowrap",children:(0,P.jsxs)("a",{href:r?.companyUrl,target:"_blank",rel:"noopener noreferrer",className:"kui:focus-visible:underline kui:outline-none",children:["\xA9 ",new Date().getFullYear()," ",r?.companyName]})})]})})})}var tt=require("react/jsx-runtime");function no({header:t,sidebar:e,footer:r,children:o}){return(0,tt.jsxs)("div",{className:"kui:h-screen kui:flex kui:flex-col kui:overflow-hidden kui:bg-background kui:text-foreground kui:font-ddin",children:[t,(0,tt.jsxs)("div",{className:"kui:flex kui:flex-1 kui:overflow-hidden",children:[e&&(0,tt.jsx)("aside",{className:"kui:w-72 kui:shrink-0 kui:overflow-y-auto kui:border-r kui:border-border kui:bg-background kui:h-full",children:e}),(0,tt.jsxs)("main",{className:"kui:flex-1 kui:overflow-y-auto kui:flex kui:flex-col kui:h-full",children:[(0,tt.jsx)("div",{className:"kui:flex-1",children:o}),r]})]})]})}var X=require("react/jsx-runtime");function ao({sections:t=[],className:e}){return(0,X.jsx)("div",{className:j("kui:p-4 kui:flex kui:flex-col kui:h-full",e),children:(0,X.jsx)("div",{className:"kui:flex-1 kui:overflow-y-auto kui:space-y-8",children:t.map(r=>(0,X.jsxs)("div",{children:[(0,X.jsx)("h3",{className:"kui:text-xs kui:font-medium kui:tracking-widest kui:text-muted-foreground kui:mb-2 kui:uppercase",children:r.title}),(0,X.jsx)("nav",{className:"kui:flex kui:flex-col kui:gap-1",children:r.links.map((o,i)=>(0,X.jsx)("a",{href:o.href,onClick:n=>{o.onClick&&(n.preventDefault(),o.onClick())},className:j("kui:flex kui:items-center kui:gap-2 kui:px-3 kui:py-2 kui:rounded-lg kui:text-sm kui:font-medium kui:hover:bg-accent kui:hover:text-accent-foreground kui:transition-colors",o.isActive?"kui:bg-accent kui:text-accent-foreground":"kui:text-foreground/70"),children:o.label},`${o.label}-${i}`))})]},r.title))})})}var co=x(require("react"),1),lo=require("lucide-react"),ft=require("react/jsx-runtime"),me=co.forwardRef(({variant:t="none",itemCount:e=0,children:r,...o},i)=>(0,ft.jsxs)("button",{ref:i,className:"kui:relative kui:flex kui:items-center kui:justify-center kui:rounded-full kui:transition-all kui:duration-200 kui:outline-none kui:focus-visible:ring-2 kui:focus-visible:ring-ring kui:focus-visible:ring-offset-2 kui:disabled:pointer-events-none kui:disabled:opacity-50 kui:hover:bg-muted/50 kui:active:scale-95 kui:h-12 kui:w-12 kui:p-0 kui:bg-transparent",...o,children:[t==="cart"?(0,ft.jsx)(lo.ShoppingCart,{className:"kui:text-foreground kui:h-7 kui:w-7"}):r,e>0&&(0,ft.jsx)("span",{className:"kui:absolute kui:-top-1.5 kui:-right-1.5 kui:flex kui:items-center kui:justify-center kui:rounded-full kui:bg-primary kui:text-primary-foreground kui:text-[10px] kui:font-bold kui:px-1.5 kui:py-0.5 kui:min-w-[18px] kui:h-[18px] kui:shadow-sm kui:animate-in kui:zoom-in kui:duration-300",children:e>99?"99+":e})]}));me.displayName="IconWithBadge";0&&(module.exports={Footer,Header,IconWithBadge,Layout,Sidebar});
55
55
  //# sourceMappingURL=index.cjs.map