commerce-toolkit 0.0.17 → 0.0.18

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.
@@ -1,4 +1,5 @@
1
1
  export { Card, type CardProps } from '../../components/card/card';
2
2
  export { CardLink as Link, type CardLinkProps as LinkProps, } from '../../components/card/primitives/card-link';
3
3
  export { CardRoot as Root, type CardRootProps as RootProps, } from '../../components/card/primitives/card-root';
4
+ export { CardSkeleton as Skeleton, type CardSkeletonProps as SkeletonProps, } from '../../components/card/primitives/card-skeleton';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACL,QAAQ,IAAI,IAAI,EAChB,KAAK,aAAa,IAAI,SAAS,GAChC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,QAAQ,IAAI,IAAI,EAChB,KAAK,aAAa,IAAI,SAAS,GAChC,MAAM,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACL,QAAQ,IAAI,IAAI,EAChB,KAAK,aAAa,IAAI,SAAS,GAChC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,QAAQ,IAAI,IAAI,EAChB,KAAK,aAAa,IAAI,SAAS,GAChC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,YAAY,IAAI,QAAQ,EACxB,KAAK,iBAAiB,IAAI,aAAa,GACxC,MAAM,4CAA4C,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,32 +1,32 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),b=require("react");require("react-dom");function lr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=lr(b);function cr({className:e,colorScheme:t="light",items:r,...o}){return s.jsx(St,{colorScheme:t,items:r,children:s.jsx(It,{className:e,...o,children:r.map(n=>s.jsx(Et,{content:n.content,title:n.title,value:n.value,children:s.jsxs(Pt,{children:[s.jsx(Tt,{}),s.jsx(_t,{})]})},n.value))})})}function je(e,t=[]){let r=[];function o(a,i){const l=m.createContext(i),c=r.length;r=[...r,i];const f=x=>{const{scope:N,children:C,...j}=x,w=N?.[e]?.[c]||l,A=m.useMemo(()=>j,Object.values(j));return s.jsx(w.Provider,{value:A,children:C})};f.displayName=a+"Provider";function p(x,N){const C=N?.[e]?.[c]||l,j=m.useContext(C);if(j)return j;if(i!==void 0)return i;throw new Error(`\`${x}\` must be used within \`${a}\``)}return[f,p]}const n=()=>{const a=r.map(i=>m.createContext(i));return function(l){const c=l?.[e]||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return n.scopeName=e,[o,dr(n,...t)]}function dr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const i=o.reduce((l,{useScope:c,scopeName:f})=>{const x=c(a)[`__scope${f}`];return{...l,...x}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ue(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xe(...e){return t=>{let r=!1;const o=e.map(n=>{const a=Ue(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<o.length;n++){const a=o[n];typeof a=="function"?a():Ue(e[n],null)}}}}function J(...e){return m.useCallback(Xe(...e),e)}function ye(e){const t=ur(e),r=m.forwardRef((o,n)=>{const{children:a,...i}=o,l=m.Children.toArray(a),c=l.find(mr);if(c){const f=c.props.children,p=l.map(x=>x===c?m.Children.count(f)>1?m.Children.only(null):m.isValidElement(f)?f.props.children:null:x);return s.jsx(t,{...i,ref:n,children:m.isValidElement(f)?m.cloneElement(f,void 0,p):null})}return s.jsx(t,{...i,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}function ur(e){const t=m.forwardRef((r,o)=>{const{children:n,...a}=r;if(m.isValidElement(n)){const i=gr(n),l=pr(a,n.props);return n.type!==m.Fragment&&(l.ref=o?Xe(o,i):i),m.cloneElement(n,l)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fr=Symbol("radix.slottable");function mr(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fr}function pr(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...l)=>{const c=a(...l);return n(...l),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function gr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function br(e){const t=e+"CollectionProvider",[r,o]=je(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:A,children:P}=w,k=b.useRef(null),I=b.useRef(new Map).current;return s.jsx(n,{scope:A,itemMap:I,collectionRef:k,children:P})};i.displayName=t;const l=e+"CollectionSlot",c=ye(l),f=b.forwardRef((w,A)=>{const{scope:P,children:k}=w,I=a(l,P),R=J(A,I.collectionRef);return s.jsx(c,{ref:R,children:k})});f.displayName=l;const p=e+"CollectionItemSlot",x="data-radix-collection-item",N=ye(p),C=b.forwardRef((w,A)=>{const{scope:P,children:k,...I}=w,R=b.useRef(null),T=J(A,R),M=a(p,P);return b.useEffect(()=>(M.itemMap.set(R,{ref:R,...I}),()=>void M.itemMap.delete(R))),s.jsx(N,{[x]:"",ref:T,children:k})});C.displayName=p;function j(w){const A=a(e+"CollectionConsumer",w);return b.useCallback(()=>{const k=A.collectionRef.current;if(!k)return[];const I=Array.from(k.querySelectorAll(`[${x}]`));return Array.from(A.itemMap.values()).sort((M,O)=>I.indexOf(M.ref.current)-I.indexOf(O.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:i,Slot:f,ItemSlot:C},j,o]}function Je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Y=globalThis?.document?m.useLayoutEffect:()=>{},hr=m[" useInsertionEffect ".trim().toString()]||Y;function Ne({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[n,a,i]=xr({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:n;{const p=m.useRef(e!==void 0);m.useEffect(()=>{const x=p.current;x!==l&&console.warn(`${o} is changing from ${x?"controlled":"uncontrolled"} to ${l?"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.`),p.current=l},[l,o])}const f=m.useCallback(p=>{if(l){const x=vr(p)?p(e):p;x!==e&&i.current?.(x)}else a(p)},[l,e,a,i]);return[c,f]}function xr({defaultProp:e,onChange:t}){const[r,o]=m.useState(e),n=m.useRef(r),a=m.useRef(t);return hr(()=>{a.current=t},[t]),m.useEffect(()=>{n.current!==r&&(a.current?.(r),n.current=r)},[r,n]),[r,o,a]}function vr(e){return typeof e=="function"}var yr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=yr.reduce((e,t)=>{const r=ye(`Primitive.${t}`),o=m.forwardRef((n,a)=>{const{asChild:i,...l}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function kr(e,t){return m.useReducer((r,o)=>t[r][o]??r,e)}var Ye=e=>{const{present:t,children:r}=e,o=wr(t),n=typeof r=="function"?r({present:o.isPresent}):m.Children.only(r),a=J(o.ref,Cr(n));return typeof r=="function"||o.isPresent?m.cloneElement(n,{ref:a}):null};Ye.displayName="Presence";function wr(e){const[t,r]=m.useState(),o=m.useRef(null),n=m.useRef(e),a=m.useRef("none"),i=e?"mounted":"unmounted",[l,c]=kr(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const f=se(o.current);a.current=l==="mounted"?f:"none"},[l]),Y(()=>{const f=o.current,p=n.current;if(p!==e){const N=a.current,C=se(f);e?c("MOUNT"):C==="none"||f?.display==="none"?c("UNMOUNT"):c(p&&N!==C?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),Y(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,x=C=>{const w=se(o.current).includes(CSS.escape(C.animationName));if(C.target===t&&w&&(c("ANIMATION_END"),!n.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},N=C=>{C.target===t&&(a.current=se(o.current))};return t.addEventListener("animationstart",N),t.addEventListener("animationcancel",x),t.addEventListener("animationend",x),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",N),t.removeEventListener("animationcancel",x),t.removeEventListener("animationend",x)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(f=>{o.current=f?getComputedStyle(f):null,r(f)},[])}}function se(e){return e?.animationName||"none"}function Cr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ar=m[" useId ".trim().toString()]||(()=>{}),jr=0;function Qe(e){const[t,r]=m.useState(Ar());return Y(()=>{r(o=>o??String(jr++))},[e]),t?`radix-${t}`:""}var de="Collapsible",[Nr,et]=je(de),[Pr,Pe]=Nr(de),tt=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:n,disabled:a,onOpenChange:i,...l}=e,[c,f]=Ne({prop:o,defaultProp:n??!1,onChange:i,caller:de});return s.jsx(Pr,{scope:r,disabled:a,contentId:Qe(),open:c,onOpenToggle:m.useCallback(()=>f(p=>!p),[f]),children:s.jsx(Q.div,{"data-state":_e(c),"data-disabled":a?"":void 0,...l,ref:t})})});tt.displayName=de;var rt="CollapsibleTrigger",ot=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,n=Pe(rt,r);return s.jsx(Q.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":_e(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:Je(e.onClick,n.onOpenToggle)})});ot.displayName=rt;var Ie="CollapsibleContent",nt=m.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Pe(Ie,e.__scopeCollapsible);return s.jsx(Ye,{present:r||n.open,children:({present:a})=>s.jsx(Ir,{...o,ref:t,present:a})})});nt.displayName=Ie;var Ir=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:n,...a}=e,i=Pe(Ie,r),[l,c]=m.useState(o),f=m.useRef(null),p=J(t,f),x=m.useRef(0),N=x.current,C=m.useRef(0),j=C.current,w=i.open||l,A=m.useRef(w),P=m.useRef(void 0);return m.useEffect(()=>{const k=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(k)},[]),Y(()=>{const k=f.current;if(k){P.current=P.current||{transitionDuration:k.style.transitionDuration,animationName:k.style.animationName},k.style.transitionDuration="0s",k.style.animationName="none";const I=k.getBoundingClientRect();x.current=I.height,C.current=I.width,A.current||(k.style.transitionDuration=P.current.transitionDuration,k.style.animationName=P.current.animationName),c(o)}},[i.open,o]),s.jsx(Q.div,{"data-state":_e(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!w,...a,ref:p,style:{"--radix-collapsible-content-height":N?`${N}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:w&&n})});function _e(e){return e?"open":"closed"}var _r=tt,Rr=ot,Sr=nt,Mr=m.createContext(void 0);function Er(e){const t=m.useContext(Mr);return e||t||"ltr"}var B="Accordion",Tr=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Re,zr,Br]=br(B),[ue]=je(B,[Br,et]),Se=et(),at=b.forwardRef((e,t)=>{const{type:r,...o}=e,n=o,a=o;return s.jsx(Re.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx($r,{...a,ref:t}):s.jsx(Dr,{...n,ref:t})})});at.displayName=B;var[st,Or]=ue(B),[it,Lr]=ue(B,{collapsible:!1}),Dr=b.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},collapsible:a=!1,...i}=e,[l,c]=Ne({prop:r,defaultProp:o??"",onChange:n,caller:B});return s.jsx(st,{scope:e.__scopeAccordion,value:b.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:b.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(it,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(lt,{...i,ref:t})})})}),$r=b.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},...a}=e,[i,l]=Ne({prop:r,defaultProp:o??[],onChange:n,caller:B}),c=b.useCallback(p=>l((x=[])=>[...x,p]),[l]),f=b.useCallback(p=>l((x=[])=>x.filter(N=>N!==p)),[l]);return s.jsx(st,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:f,children:s.jsx(it,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(lt,{...a,ref:t})})})}),[Vr,fe]=ue(B),lt=b.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:n,orientation:a="vertical",...i}=e,l=b.useRef(null),c=J(l,t),f=zr(r),x=Er(n)==="ltr",N=Je(e.onKeyDown,C=>{if(!Tr.includes(C.key))return;const j=C.target,w=f().filter(h=>!h.ref.current?.disabled),A=w.findIndex(h=>h.ref.current===j),P=w.length;if(A===-1)return;C.preventDefault();let k=A;const I=0,R=P-1,T=()=>{k=A+1,k>R&&(k=I)},M=()=>{k=A-1,k<I&&(k=R)};switch(C.key){case"Home":k=I;break;case"End":k=R;break;case"ArrowRight":a==="horizontal"&&(x?T():M());break;case"ArrowDown":a==="vertical"&&T();break;case"ArrowLeft":a==="horizontal"&&(x?M():T());break;case"ArrowUp":a==="vertical"&&M();break}const O=k%P;w[O].ref.current?.focus()});return s.jsx(Vr,{scope:r,disabled:o,direction:n,orientation:a,children:s.jsx(Re.Slot,{scope:r,children:s.jsx(Q.div,{...i,"data-orientation":a,ref:c,onKeyDown:o?void 0:N})})})}),ce="AccordionItem",[Gr,Me]=ue(ce),ct=b.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...n}=e,a=fe(ce,r),i=Or(ce,r),l=Se(r),c=Qe(),f=o&&i.value.includes(o)||!1,p=a.disabled||e.disabled;return s.jsx(Gr,{scope:r,open:f,disabled:p,triggerId:c,children:s.jsx(_r,{"data-orientation":a.orientation,"data-state":gt(f),...l,...n,ref:t,disabled:p,open:f,onOpenChange:x=>{x?i.onItemOpen(o):i.onItemClose(o)}})})});ct.displayName=ce;var dt="AccordionHeader",ut=b.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=fe(B,r),a=Me(dt,r);return s.jsx(Q.h3,{"data-orientation":n.orientation,"data-state":gt(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:t})});ut.displayName=dt;var ke="AccordionTrigger",ft=b.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=fe(B,r),a=Me(ke,r),i=Lr(ke,r),l=Se(r);return s.jsx(Re.ItemSlot,{scope:r,children:s.jsx(Rr,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:a.triggerId,...l,...o,ref:t})})});ft.displayName=ke;var mt="AccordionContent",pt=b.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=fe(B,r),a=Me(mt,r),i=Se(r);return s.jsx(Sr,{role:"region","aria-labelledby":a.triggerId,"data-orientation":n.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});pt.displayName=mt;function gt(e){return e?"open":"closed"}var Fr=at,Ur=ct,Wr=ut,Hr=ft,qr=pt;function bt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=bt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Kr(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=bt(e))&&(o&&(o+=" "),o+=t);return o}const Ee="-",Zr=e=>{const t=Jr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(Ee);return l[0]===""&&l.length!==1&&l.shift(),ht(l,t)||Xr(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&o[i]?[...c,...o[i]]:c}}},ht=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?ht(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Ee);return t.validators.find(({validator:i})=>i(a))?.classGroupId},We=/^\[(.+)\]$/,Xr=e=>{if(We.test(e)){const t=We.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Jr=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)we(r[n],o,n,t);return o},we=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:He(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Yr(n)){we(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{we(i,He(t,a),r,o)})})},He=(e,t)=>{let r=e;return t.split(Ee).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Yr=e=>e.isThemeGetter,Qr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ce="!",Ae=":",eo=Ae.length,to=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let i=0,l=0,c=0,f;for(let j=0;j<n.length;j++){let w=n[j];if(i===0&&l===0){if(w===Ae){a.push(n.slice(c,j)),c=j+eo;continue}if(w==="/"){f=j;continue}}w==="["?i++:w==="]"?i--:w==="("?l++:w===")"&&l--}const p=a.length===0?n:n.substring(c),x=ro(p),N=x!==p,C=f&&f>c?f-c:void 0;return{modifiers:a,hasImportantModifier:N,baseClassName:x,maybePostfixModifierPosition:C}};if(t){const n=t+Ae,a=o;o=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},ro=e=>e.endsWith(Ce)?e.substring(0,e.length-1):e.startsWith(Ce)?e.substring(1):e,oo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(i=>{i[0]==="["||t[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},no=e=>({cache:Qr(e.cacheSize),parseClassName:to(e),sortModifiers:oo(e),...Zr(e)}),ao=/\s+/,so=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],l=e.trim().split(ao);let c="";for(let f=l.length-1;f>=0;f-=1){const p=l[f],{isExternal:x,modifiers:N,hasImportantModifier:C,baseClassName:j,maybePostfixModifierPosition:w}=r(p);if(x){c=p+(c.length>0?" "+c:c);continue}let A=!!w,P=o(A?j.substring(0,w):j);if(!P){if(!A){c=p+(c.length>0?" "+c:c);continue}if(P=o(j),!P){c=p+(c.length>0?" "+c:c);continue}A=!1}const k=a(N).join(":"),I=C?k+Ce:k,R=I+P;if(i.includes(R))continue;i.push(R);const T=n(P,A);for(let M=0;M<T.length;++M){const O=T[M];i.push(I+O)}c=p+(c.length>0?" "+c:c)}return c};function io(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xt(t))&&(o&&(o+=" "),o+=r);return o}const xt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=xt(e[o]))&&(r&&(r+=" "),r+=t);return r};function lo(e,...t){let r,o,n,a=i;function i(c){const f=t.reduce((p,x)=>x(p),e());return r=no(f),o=r.cache.get,n=r.cache.set,a=l,l(c)}function l(c){const f=o(c);if(f)return f;const p=so(c,r);return n(c,p),p}return function(){return a(io.apply(null,arguments))}}const _=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},vt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,co=/^\d+\/\d+$/,uo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,po=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,go=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>co.test(e),v=e=>!!e&&!Number.isNaN(Number(e)),V=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&v(e.slice(0,-1)),$=e=>uo.test(e),bo=()=>!0,ho=e=>fo.test(e)&&!mo.test(e),kt=()=>!1,xo=e=>po.test(e),vo=e=>go.test(e),yo=e=>!d(e)&&!u(e),ko=e=>q(e,At,kt),d=e=>vt.test(e),F=e=>q(e,jt,ho),ve=e=>q(e,No,v),qe=e=>q(e,wt,kt),wo=e=>q(e,Ct,vo),ie=e=>q(e,Nt,xo),u=e=>yt.test(e),Z=e=>K(e,jt),Co=e=>K(e,Po),Ke=e=>K(e,wt),Ao=e=>K(e,At),jo=e=>K(e,Ct),le=e=>K(e,Nt,!0),q=(e,t,r)=>{const o=vt.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},K=(e,t,r=!1)=>{const o=yt.exec(e);return o?o[1]?t(o[1]):r:!1},wt=e=>e==="position"||e==="percentage",Ct=e=>e==="image"||e==="url",At=e=>e==="length"||e==="size"||e==="bg-size",jt=e=>e==="length",No=e=>e==="number",Po=e=>e==="family-name",Nt=e=>e==="shadow",Io=()=>{const e=_("color"),t=_("font"),r=_("text"),o=_("font-weight"),n=_("tracking"),a=_("leading"),i=_("breakpoint"),l=_("container"),c=_("spacing"),f=_("radius"),p=_("shadow"),x=_("inset-shadow"),N=_("text-shadow"),C=_("drop-shadow"),j=_("blur"),w=_("perspective"),A=_("aspect"),P=_("ease"),k=_("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...R(),u,d],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],h=()=>[u,d,c],L=()=>[H,"full","auto",...h()],Be=()=>[V,"none","subgrid",u,d],Oe=()=>["auto",{span:["full",V,u,d]},V,u,d],te=()=>[V,"auto",u,d],Le=()=>["auto","min","max","fr",u,d],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...h()],G=()=>[H,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],g=()=>[e,u,d],De=()=>[...R(),Ke,qe,{position:[u,d]}],$e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ve=()=>["auto","cover","contain",Ao,ko,{size:[u,d]}],be=()=>[xe,Z,F],E=()=>["","none","full",f,u,d],z=()=>["",v,Z,F],re=()=>["solid","dashed","dotted","double"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>[v,xe,Ke,qe],Fe=()=>["","none",j,u,d],oe=()=>["none",v,u,d],ne=()=>["none",v,u,d],he=()=>[v,u,d],ae=()=>[H,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[bo],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[yo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",v],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H,d,u,A]}],container:["container"],columns:[{columns:[v,d,u,l]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[V,"auto",u,d]}],basis:[{basis:[H,"full","auto",l,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,H,"auto","initial","none",d]}],grow:[{grow:["",v,u,d]}],shrink:[{shrink:["",v,u,d]}],order:[{order:[V,"first","last","none",u,d]}],"grid-cols":[{"grid-cols":Be()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":Be()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[l,"screen",...G()]}],"min-w":[{"min-w":[l,"screen","none",...G()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,Z,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,u,ve]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,d]}],"font-family":[{font:[Co,d,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,u,d]}],"line-clamp":[{"line-clamp":[v,"none",u,ve]}],leading:[{leading:[a,...h()]}],"list-image":[{"list-image":["none",u,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",u,F]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[v,"auto",u,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:De()}],"bg-repeat":[{bg:$e()}],"bg-size":[{bg:Ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},V,u,d],radial:["",u,d],conic:[V,u,d]},jo,wo]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,u,d]}],"outline-w":[{outline:["",v,Z,F]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",p,le,ie]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",x,le,ie]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[v,F]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",N,le,ie]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[v,u,d]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":S()}],"mask-image-linear-to-pos":[{"mask-linear-to":S()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":S()}],"mask-image-t-to-pos":[{"mask-t-to":S()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":S()}],"mask-image-r-to-pos":[{"mask-r-to":S()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":S()}],"mask-image-b-to-pos":[{"mask-b-to":S()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":S()}],"mask-image-l-to-pos":[{"mask-l-to":S()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":S()}],"mask-image-x-to-pos":[{"mask-x-to":S()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":S()}],"mask-image-y-to-pos":[{"mask-y-to":S()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[u,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":S()}],"mask-image-radial-to-pos":[{"mask-radial-to":S()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":S()}],"mask-image-conic-to-pos":[{"mask-conic-to":S()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:De()}],"mask-repeat":[{mask:$e()}],"mask-size":[{mask:Ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,d]}],filter:[{filter:["","none",u,d]}],blur:[{blur:Fe()}],brightness:[{brightness:[v,u,d]}],contrast:[{contrast:[v,u,d]}],"drop-shadow":[{"drop-shadow":["","none",C,le,ie]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",v,u,d]}],"hue-rotate":[{"hue-rotate":[v,u,d]}],invert:[{invert:["",v,u,d]}],saturate:[{saturate:[v,u,d]}],sepia:[{sepia:["",v,u,d]}],"backdrop-filter":[{"backdrop-filter":["","none",u,d]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[v,u,d]}],"backdrop-contrast":[{"backdrop-contrast":[v,u,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,u,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,u,d]}],"backdrop-invert":[{"backdrop-invert":["",v,u,d]}],"backdrop-opacity":[{"backdrop-opacity":[v,u,d]}],"backdrop-saturate":[{"backdrop-saturate":[v,u,d]}],"backdrop-sepia":[{"backdrop-sepia":["",v,u,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",u,d]}],ease:[{ease:["linear","initial",P,u,d]}],delay:[{delay:[v,u,d]}],animate:[{animate:["none",k,u,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,u,d]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[u,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,d]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[v,Z,F,ve]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_o=lo(Io);function y(...e){return _o(Kr(e))}function Pt({children:e,className:t,...r}){const{colorScheme:o}=me(),{value:n}=pe();return s.jsx(Ur,{className:y("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[o],t),"data-slot":"accordion-item",value:n,...r,children:e})}function It({className:e,...t}){return s.jsx(Fr,{className:y(e),...t,"data-slot":"accordion-root"})}function _t({className:e,...t}){const{colorScheme:r}=me(),{content:o}=pe(),[n,a]=b.useState(!1);return b.useEffect(()=>{a(!0)},[]),s.jsx(qr,{className:y("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),...t,children:s.jsx("div",{className:y("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],e),"data-slot":"accordion-content",children:o})})}const Rt=b.createContext(void 0);function St({children:e,colorScheme:t="light",items:r}){const o=b.useMemo(()=>({colorScheme:t,items:r}),[t,r]);return s.jsx(Rt.Provider,{value:o,children:e})}function me(){const e=b.use(Rt);if(e===void 0)throw new Error("useAccordion must be used within an AccordionProvider");return e}const Mt=b.createContext(void 0);function Et({children:e,title:t,content:r,value:o}){const n=b.useMemo(()=>({title:t,content:r,value:o}),[t,r,o]);return s.jsx(Mt.Provider,{value:n,children:e})}function pe(){const e=b.use(Mt);if(e===void 0)throw new Error("useAccordionItem must be used within an AccordionItemProvider");return e}function Tt({className:e,...t}){const{colorScheme:r}=me(),{title:o}=pe();return s.jsx(Wr,{children:s.jsxs(Hr,{className:y("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...t,children:[s.jsx("div",{className:y("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r]),children:o}),s.jsxs("svg",{className:y("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}function Ro({className:e,variant:t,message:r,description:o,action:n,dismiss:a}){return s.jsx(So,{action:n,description:o,dismiss:a,message:r,variant:t,children:s.jsxs(zt,{className:e,children:[s.jsxs(Ot,{children:[s.jsx(Lt,{}),s.jsx(Dt,{})]}),s.jsxs($t,{children:[s.jsx(Ut,{}),s.jsx(Wt,{})]})]})})}function zt({className:e,children:t,...r}){const{variant:o}=ee();return s.jsx("div",{className:y("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...r,children:t})}const Bt=b.createContext(void 0);function So({children:e,message:t,description:r,action:o,dismiss:n,variant:a}){const i=b.useMemo(()=>({message:t,description:r,action:o,dismiss:n,variant:a}),[t,r,o,n,a]);return s.jsx(Bt.Provider,{value:i,children:e})}function ee(){const e=b.use(Bt);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function Ot({children:e,className:t,...r}){return s.jsx("div",{className:y("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...r,children:e})}function Lt({children:e,className:t,...r}){const{message:o}=ee();return s.jsx("h5",{className:y("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...r,children:o})}function Dt({className:e,...t}){const{description:r}=ee();return s.jsx("p",{className:y("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...t,children:r})}function $t({children:e,className:t,...r}){return s.jsx("div",{className:y("flex items-center gap-1",t),"data-slot":"alert-actions",...r,children:e})}/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),b=require("react");require("react-dom");function ur(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=ur(b);function fr({className:e,colorScheme:t="light",items:r,...o}){return s.jsx(St,{colorScheme:t,items:r,children:s.jsx(_t,{className:e,...o,children:r.map(n=>s.jsx(Et,{content:n.content,title:n.title,value:n.value,children:s.jsxs(Pt,{children:[s.jsx(Tt,{}),s.jsx(Rt,{})]})},n.value))})})}function je(e,t=[]){let r=[];function o(a,i){const l=m.createContext(i),c=r.length;r=[...r,i];const f=x=>{const{scope:N,children:C,...j}=x,w=N?.[e]?.[c]||l,A=m.useMemo(()=>j,Object.values(j));return s.jsx(w.Provider,{value:A,children:C})};f.displayName=a+"Provider";function p(x,N){const C=N?.[e]?.[c]||l,j=m.useContext(C);if(j)return j;if(i!==void 0)return i;throw new Error(`\`${x}\` must be used within \`${a}\``)}return[f,p]}const n=()=>{const a=r.map(i=>m.createContext(i));return function(l){const c=l?.[e]||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return n.scopeName=e,[o,mr(n,...t)]}function mr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const i=o.reduce((l,{useScope:c,scopeName:f})=>{const x=c(a)[`__scope${f}`];return{...l,...x}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ue(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xe(...e){return t=>{let r=!1;const o=e.map(n=>{const a=Ue(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<o.length;n++){const a=o[n];typeof a=="function"?a():Ue(e[n],null)}}}}function J(...e){return m.useCallback(Xe(...e),e)}function ye(e){const t=pr(e),r=m.forwardRef((o,n)=>{const{children:a,...i}=o,l=m.Children.toArray(a),c=l.find(br);if(c){const f=c.props.children,p=l.map(x=>x===c?m.Children.count(f)>1?m.Children.only(null):m.isValidElement(f)?f.props.children:null:x);return s.jsx(t,{...i,ref:n,children:m.isValidElement(f)?m.cloneElement(f,void 0,p):null})}return s.jsx(t,{...i,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}function pr(e){const t=m.forwardRef((r,o)=>{const{children:n,...a}=r;if(m.isValidElement(n)){const i=xr(n),l=hr(a,n.props);return n.type!==m.Fragment&&(l.ref=o?Xe(o,i):i),m.cloneElement(n,l)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gr=Symbol("radix.slottable");function br(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gr}function hr(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...l)=>{const c=a(...l);return n(...l),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function xr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function vr(e){const t=e+"CollectionProvider",[r,o]=je(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:A,children:P}=w,k=b.useRef(null),_=b.useRef(new Map).current;return s.jsx(n,{scope:A,itemMap:_,collectionRef:k,children:P})};i.displayName=t;const l=e+"CollectionSlot",c=ye(l),f=b.forwardRef((w,A)=>{const{scope:P,children:k}=w,_=a(l,P),I=J(A,_.collectionRef);return s.jsx(c,{ref:I,children:k})});f.displayName=l;const p=e+"CollectionItemSlot",x="data-radix-collection-item",N=ye(p),C=b.forwardRef((w,A)=>{const{scope:P,children:k,..._}=w,I=b.useRef(null),T=J(A,I),M=a(p,P);return b.useEffect(()=>(M.itemMap.set(I,{ref:I,..._}),()=>void M.itemMap.delete(I))),s.jsx(N,{[x]:"",ref:T,children:k})});C.displayName=p;function j(w){const A=a(e+"CollectionConsumer",w);return b.useCallback(()=>{const k=A.collectionRef.current;if(!k)return[];const _=Array.from(k.querySelectorAll(`[${x}]`));return Array.from(A.itemMap.values()).sort((M,O)=>_.indexOf(M.ref.current)-_.indexOf(O.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:i,Slot:f,ItemSlot:C},j,o]}function Je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Y=globalThis?.document?m.useLayoutEffect:()=>{},yr=m[" useInsertionEffect ".trim().toString()]||Y;function Ne({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[n,a,i]=kr({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:n;{const p=m.useRef(e!==void 0);m.useEffect(()=>{const x=p.current;x!==l&&console.warn(`${o} is changing from ${x?"controlled":"uncontrolled"} to ${l?"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.`),p.current=l},[l,o])}const f=m.useCallback(p=>{if(l){const x=wr(p)?p(e):p;x!==e&&i.current?.(x)}else a(p)},[l,e,a,i]);return[c,f]}function kr({defaultProp:e,onChange:t}){const[r,o]=m.useState(e),n=m.useRef(r),a=m.useRef(t);return yr(()=>{a.current=t},[t]),m.useEffect(()=>{n.current!==r&&(a.current?.(r),n.current=r)},[r,n]),[r,o,a]}function wr(e){return typeof e=="function"}var Cr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=Cr.reduce((e,t)=>{const r=ye(`Primitive.${t}`),o=m.forwardRef((n,a)=>{const{asChild:i,...l}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ar(e,t){return m.useReducer((r,o)=>t[r][o]??r,e)}var Ye=e=>{const{present:t,children:r}=e,o=jr(t),n=typeof r=="function"?r({present:o.isPresent}):m.Children.only(r),a=J(o.ref,Nr(n));return typeof r=="function"||o.isPresent?m.cloneElement(n,{ref:a}):null};Ye.displayName="Presence";function jr(e){const[t,r]=m.useState(),o=m.useRef(null),n=m.useRef(e),a=m.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Ar(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const f=se(o.current);a.current=l==="mounted"?f:"none"},[l]),Y(()=>{const f=o.current,p=n.current;if(p!==e){const N=a.current,C=se(f);e?c("MOUNT"):C==="none"||f?.display==="none"?c("UNMOUNT"):c(p&&N!==C?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),Y(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,x=C=>{const w=se(o.current).includes(CSS.escape(C.animationName));if(C.target===t&&w&&(c("ANIMATION_END"),!n.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},N=C=>{C.target===t&&(a.current=se(o.current))};return t.addEventListener("animationstart",N),t.addEventListener("animationcancel",x),t.addEventListener("animationend",x),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",N),t.removeEventListener("animationcancel",x),t.removeEventListener("animationend",x)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(f=>{o.current=f?getComputedStyle(f):null,r(f)},[])}}function se(e){return e?.animationName||"none"}function Nr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Pr=m[" useId ".trim().toString()]||(()=>{}),_r=0;function Qe(e){const[t,r]=m.useState(Pr());return Y(()=>{r(o=>o??String(_r++))},[e]),t?`radix-${t}`:""}var de="Collapsible",[Rr,et]=je(de),[Ir,Pe]=Rr(de),tt=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:n,disabled:a,onOpenChange:i,...l}=e,[c,f]=Ne({prop:o,defaultProp:n??!1,onChange:i,caller:de});return s.jsx(Ir,{scope:r,disabled:a,contentId:Qe(),open:c,onOpenToggle:m.useCallback(()=>f(p=>!p),[f]),children:s.jsx(Q.div,{"data-state":Re(c),"data-disabled":a?"":void 0,...l,ref:t})})});tt.displayName=de;var rt="CollapsibleTrigger",ot=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,n=Pe(rt,r);return s.jsx(Q.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Re(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:Je(e.onClick,n.onOpenToggle)})});ot.displayName=rt;var _e="CollapsibleContent",nt=m.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Pe(_e,e.__scopeCollapsible);return s.jsx(Ye,{present:r||n.open,children:({present:a})=>s.jsx(Sr,{...o,ref:t,present:a})})});nt.displayName=_e;var Sr=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:n,...a}=e,i=Pe(_e,r),[l,c]=m.useState(o),f=m.useRef(null),p=J(t,f),x=m.useRef(0),N=x.current,C=m.useRef(0),j=C.current,w=i.open||l,A=m.useRef(w),P=m.useRef(void 0);return m.useEffect(()=>{const k=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(k)},[]),Y(()=>{const k=f.current;if(k){P.current=P.current||{transitionDuration:k.style.transitionDuration,animationName:k.style.animationName},k.style.transitionDuration="0s",k.style.animationName="none";const _=k.getBoundingClientRect();x.current=_.height,C.current=_.width,A.current||(k.style.transitionDuration=P.current.transitionDuration,k.style.animationName=P.current.animationName),c(o)}},[i.open,o]),s.jsx(Q.div,{"data-state":Re(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!w,...a,ref:p,style:{"--radix-collapsible-content-height":N?`${N}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:w&&n})});function Re(e){return e?"open":"closed"}var Mr=tt,Er=ot,Tr=nt,zr=m.createContext(void 0);function Br(e){const t=m.useContext(zr);return e||t||"ltr"}var B="Accordion",Or=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ie,Lr,Dr]=vr(B),[ue]=je(B,[Dr,et]),Se=et(),at=b.forwardRef((e,t)=>{const{type:r,...o}=e,n=o,a=o;return s.jsx(Ie.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(Fr,{...a,ref:t}):s.jsx(Gr,{...n,ref:t})})});at.displayName=B;var[st,$r]=ue(B),[it,Vr]=ue(B,{collapsible:!1}),Gr=b.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},collapsible:a=!1,...i}=e,[l,c]=Ne({prop:r,defaultProp:o??"",onChange:n,caller:B});return s.jsx(st,{scope:e.__scopeAccordion,value:b.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:b.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(it,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(lt,{...i,ref:t})})})}),Fr=b.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},...a}=e,[i,l]=Ne({prop:r,defaultProp:o??[],onChange:n,caller:B}),c=b.useCallback(p=>l((x=[])=>[...x,p]),[l]),f=b.useCallback(p=>l((x=[])=>x.filter(N=>N!==p)),[l]);return s.jsx(st,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:f,children:s.jsx(it,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(lt,{...a,ref:t})})})}),[Ur,fe]=ue(B),lt=b.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:n,orientation:a="vertical",...i}=e,l=b.useRef(null),c=J(l,t),f=Lr(r),x=Br(n)==="ltr",N=Je(e.onKeyDown,C=>{if(!Or.includes(C.key))return;const j=C.target,w=f().filter(h=>!h.ref.current?.disabled),A=w.findIndex(h=>h.ref.current===j),P=w.length;if(A===-1)return;C.preventDefault();let k=A;const _=0,I=P-1,T=()=>{k=A+1,k>I&&(k=_)},M=()=>{k=A-1,k<_&&(k=I)};switch(C.key){case"Home":k=_;break;case"End":k=I;break;case"ArrowRight":a==="horizontal"&&(x?T():M());break;case"ArrowDown":a==="vertical"&&T();break;case"ArrowLeft":a==="horizontal"&&(x?M():T());break;case"ArrowUp":a==="vertical"&&M();break}const O=k%P;w[O].ref.current?.focus()});return s.jsx(Ur,{scope:r,disabled:o,direction:n,orientation:a,children:s.jsx(Ie.Slot,{scope:r,children:s.jsx(Q.div,{...i,"data-orientation":a,ref:c,onKeyDown:o?void 0:N})})})}),ce="AccordionItem",[Wr,Me]=ue(ce),ct=b.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...n}=e,a=fe(ce,r),i=$r(ce,r),l=Se(r),c=Qe(),f=o&&i.value.includes(o)||!1,p=a.disabled||e.disabled;return s.jsx(Wr,{scope:r,open:f,disabled:p,triggerId:c,children:s.jsx(Mr,{"data-orientation":a.orientation,"data-state":gt(f),...l,...n,ref:t,disabled:p,open:f,onOpenChange:x=>{x?i.onItemOpen(o):i.onItemClose(o)}})})});ct.displayName=ce;var dt="AccordionHeader",ut=b.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=fe(B,r),a=Me(dt,r);return s.jsx(Q.h3,{"data-orientation":n.orientation,"data-state":gt(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:t})});ut.displayName=dt;var ke="AccordionTrigger",ft=b.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=fe(B,r),a=Me(ke,r),i=Vr(ke,r),l=Se(r);return s.jsx(Ie.ItemSlot,{scope:r,children:s.jsx(Er,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:a.triggerId,...l,...o,ref:t})})});ft.displayName=ke;var mt="AccordionContent",pt=b.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=fe(B,r),a=Me(mt,r),i=Se(r);return s.jsx(Tr,{role:"region","aria-labelledby":a.triggerId,"data-orientation":n.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});pt.displayName=mt;function gt(e){return e?"open":"closed"}var Hr=at,qr=ct,Kr=ut,Zr=ft,Xr=pt;function bt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=bt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Jr(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=bt(e))&&(o&&(o+=" "),o+=t);return o}const Ee="-",Yr=e=>{const t=eo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(Ee);return l[0]===""&&l.length!==1&&l.shift(),ht(l,t)||Qr(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&o[i]?[...c,...o[i]]:c}}},ht=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?ht(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Ee);return t.validators.find(({validator:i})=>i(a))?.classGroupId},We=/^\[(.+)\]$/,Qr=e=>{if(We.test(e)){const t=We.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},eo=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)we(r[n],o,n,t);return o},we=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:He(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(to(n)){we(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{we(i,He(t,a),r,o)})})},He=(e,t)=>{let r=e;return t.split(Ee).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},to=e=>e.isThemeGetter,ro=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ce="!",Ae=":",oo=Ae.length,no=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let i=0,l=0,c=0,f;for(let j=0;j<n.length;j++){let w=n[j];if(i===0&&l===0){if(w===Ae){a.push(n.slice(c,j)),c=j+oo;continue}if(w==="/"){f=j;continue}}w==="["?i++:w==="]"?i--:w==="("?l++:w===")"&&l--}const p=a.length===0?n:n.substring(c),x=ao(p),N=x!==p,C=f&&f>c?f-c:void 0;return{modifiers:a,hasImportantModifier:N,baseClassName:x,maybePostfixModifierPosition:C}};if(t){const n=t+Ae,a=o;o=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},ao=e=>e.endsWith(Ce)?e.substring(0,e.length-1):e.startsWith(Ce)?e.substring(1):e,so=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(i=>{i[0]==="["||t[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},io=e=>({cache:ro(e.cacheSize),parseClassName:no(e),sortModifiers:so(e),...Yr(e)}),lo=/\s+/,co=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],l=e.trim().split(lo);let c="";for(let f=l.length-1;f>=0;f-=1){const p=l[f],{isExternal:x,modifiers:N,hasImportantModifier:C,baseClassName:j,maybePostfixModifierPosition:w}=r(p);if(x){c=p+(c.length>0?" "+c:c);continue}let A=!!w,P=o(A?j.substring(0,w):j);if(!P){if(!A){c=p+(c.length>0?" "+c:c);continue}if(P=o(j),!P){c=p+(c.length>0?" "+c:c);continue}A=!1}const k=a(N).join(":"),_=C?k+Ce:k,I=_+P;if(i.includes(I))continue;i.push(I);const T=n(P,A);for(let M=0;M<T.length;++M){const O=T[M];i.push(_+O)}c=p+(c.length>0?" "+c:c)}return c};function uo(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xt(t))&&(o&&(o+=" "),o+=r);return o}const xt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=xt(e[o]))&&(r&&(r+=" "),r+=t);return r};function fo(e,...t){let r,o,n,a=i;function i(c){const f=t.reduce((p,x)=>x(p),e());return r=io(f),o=r.cache.get,n=r.cache.set,a=l,l(c)}function l(c){const f=o(c);if(f)return f;const p=co(c,r);return n(c,p),p}return function(){return a(uo.apply(null,arguments))}}const R=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},vt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mo=/^\d+\/\d+$/,po=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,go=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ho=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>mo.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),V=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&y(e.slice(0,-1)),$=e=>po.test(e),vo=()=>!0,yo=e=>go.test(e)&&!bo.test(e),kt=()=>!1,ko=e=>ho.test(e),wo=e=>xo.test(e),Co=e=>!d(e)&&!u(e),Ao=e=>q(e,At,kt),d=e=>vt.test(e),F=e=>q(e,jt,yo),ve=e=>q(e,Ro,y),qe=e=>q(e,wt,kt),jo=e=>q(e,Ct,wo),ie=e=>q(e,Nt,ko),u=e=>yt.test(e),Z=e=>K(e,jt),No=e=>K(e,Io),Ke=e=>K(e,wt),Po=e=>K(e,At),_o=e=>K(e,Ct),le=e=>K(e,Nt,!0),q=(e,t,r)=>{const o=vt.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},K=(e,t,r=!1)=>{const o=yt.exec(e);return o?o[1]?t(o[1]):r:!1},wt=e=>e==="position"||e==="percentage",Ct=e=>e==="image"||e==="url",At=e=>e==="length"||e==="size"||e==="bg-size",jt=e=>e==="length",Ro=e=>e==="number",Io=e=>e==="family-name",Nt=e=>e==="shadow",So=()=>{const e=R("color"),t=R("font"),r=R("text"),o=R("font-weight"),n=R("tracking"),a=R("leading"),i=R("breakpoint"),l=R("container"),c=R("spacing"),f=R("radius"),p=R("shadow"),x=R("inset-shadow"),N=R("text-shadow"),C=R("drop-shadow"),j=R("blur"),w=R("perspective"),A=R("aspect"),P=R("ease"),k=R("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...I(),u,d],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],h=()=>[u,d,c],L=()=>[H,"full","auto",...h()],Be=()=>[V,"none","subgrid",u,d],Oe=()=>["auto",{span:["full",V,u,d]},V,u,d],te=()=>[V,"auto",u,d],Le=()=>["auto","min","max","fr",u,d],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...h()],G=()=>[H,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],g=()=>[e,u,d],De=()=>[...I(),Ke,qe,{position:[u,d]}],$e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ve=()=>["auto","cover","contain",Po,Ao,{size:[u,d]}],be=()=>[xe,Z,F],E=()=>["","none","full",f,u,d],z=()=>["",y,Z,F],re=()=>["solid","dashed","dotted","double"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>[y,xe,Ke,qe],Fe=()=>["","none",j,u,d],oe=()=>["none",y,u,d],ne=()=>["none",y,u,d],he=()=>[y,u,d],ae=()=>[H,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[vo],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[Co],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",y],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H,d,u,A]}],container:["container"],columns:[{columns:[y,d,u,l]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[V,"auto",u,d]}],basis:[{basis:[H,"full","auto",l,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,H,"auto","initial","none",d]}],grow:[{grow:["",y,u,d]}],shrink:[{shrink:["",y,u,d]}],order:[{order:[V,"first","last","none",u,d]}],"grid-cols":[{"grid-cols":Be()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":Be()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[l,"screen",...G()]}],"min-w":[{"min-w":[l,"screen","none",...G()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,Z,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,u,ve]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,d]}],"font-family":[{font:[No,d,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,u,d]}],"line-clamp":[{"line-clamp":[y,"none",u,ve]}],leading:[{leading:[a,...h()]}],"list-image":[{"list-image":["none",u,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",u,F]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[y,"auto",u,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:De()}],"bg-repeat":[{bg:$e()}],"bg-size":[{bg:Ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},V,u,d],radial:["",u,d],conic:[V,u,d]},_o,jo]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,u,d]}],"outline-w":[{outline:["",y,Z,F]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",p,le,ie]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",x,le,ie]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[y,F]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",N,le,ie]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[y,u,d]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":S()}],"mask-image-linear-to-pos":[{"mask-linear-to":S()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":S()}],"mask-image-t-to-pos":[{"mask-t-to":S()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":S()}],"mask-image-r-to-pos":[{"mask-r-to":S()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":S()}],"mask-image-b-to-pos":[{"mask-b-to":S()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":S()}],"mask-image-l-to-pos":[{"mask-l-to":S()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":S()}],"mask-image-x-to-pos":[{"mask-x-to":S()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":S()}],"mask-image-y-to-pos":[{"mask-y-to":S()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[u,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":S()}],"mask-image-radial-to-pos":[{"mask-radial-to":S()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":S()}],"mask-image-conic-to-pos":[{"mask-conic-to":S()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:De()}],"mask-repeat":[{mask:$e()}],"mask-size":[{mask:Ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,d]}],filter:[{filter:["","none",u,d]}],blur:[{blur:Fe()}],brightness:[{brightness:[y,u,d]}],contrast:[{contrast:[y,u,d]}],"drop-shadow":[{"drop-shadow":["","none",C,le,ie]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",y,u,d]}],"hue-rotate":[{"hue-rotate":[y,u,d]}],invert:[{invert:["",y,u,d]}],saturate:[{saturate:[y,u,d]}],sepia:[{sepia:["",y,u,d]}],"backdrop-filter":[{"backdrop-filter":["","none",u,d]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[y,u,d]}],"backdrop-contrast":[{"backdrop-contrast":[y,u,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,u,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,u,d]}],"backdrop-invert":[{"backdrop-invert":["",y,u,d]}],"backdrop-opacity":[{"backdrop-opacity":[y,u,d]}],"backdrop-saturate":[{"backdrop-saturate":[y,u,d]}],"backdrop-sepia":[{"backdrop-sepia":["",y,u,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",u,d]}],ease:[{ease:["linear","initial",P,u,d]}],delay:[{delay:[y,u,d]}],animate:[{animate:["none",k,u,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,u,d]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[u,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,d]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[y,Z,F,ve]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mo=fo(So);function v(...e){return Mo(Jr(e))}function Pt({children:e,className:t,...r}){const{colorScheme:o}=me(),{value:n}=pe();return s.jsx(qr,{className:v("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[o],t),"data-slot":"accordion-item",value:n,...r,children:e})}function _t({className:e,...t}){return s.jsx(Hr,{className:v(e),...t,"data-slot":"accordion-root"})}function Rt({className:e,...t}){const{colorScheme:r}=me(),{content:o}=pe(),[n,a]=b.useState(!1);return b.useEffect(()=>{a(!0)},[]),s.jsx(Xr,{className:v("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),...t,children:s.jsx("div",{className:v("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],e),"data-slot":"accordion-content",children:o})})}const It=b.createContext(void 0);function St({children:e,colorScheme:t="light",items:r}){const o=b.useMemo(()=>({colorScheme:t,items:r}),[t,r]);return s.jsx(It.Provider,{value:o,children:e})}function me(){const e=b.use(It);if(e===void 0)throw new Error("useAccordion must be used within an AccordionProvider");return e}const Mt=b.createContext(void 0);function Et({children:e,title:t,content:r,value:o}){const n=b.useMemo(()=>({title:t,content:r,value:o}),[t,r,o]);return s.jsx(Mt.Provider,{value:n,children:e})}function pe(){const e=b.use(Mt);if(e===void 0)throw new Error("useAccordionItem must be used within an AccordionItemProvider");return e}function Tt({className:e,...t}){const{colorScheme:r}=me(),{title:o}=pe();return s.jsx(Kr,{children:s.jsxs(Zr,{className:v("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...t,children:[s.jsx("div",{className:v("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r]),children:o}),s.jsxs("svg",{className:v("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}function Eo({className:e,variant:t,message:r,description:o,action:n,dismiss:a}){return s.jsx(To,{action:n,description:o,dismiss:a,message:r,variant:t,children:s.jsxs(zt,{className:e,children:[s.jsxs(Ot,{children:[s.jsx(Lt,{}),s.jsx(Dt,{})]}),s.jsxs($t,{children:[s.jsx(Ut,{}),s.jsx(Wt,{})]})]})})}function zt({className:e,children:t,...r}){const{variant:o}=ee();return s.jsx("div",{className:v("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...r,children:t})}const Bt=b.createContext(void 0);function To({children:e,message:t,description:r,action:o,dismiss:n,variant:a}){const i=b.useMemo(()=>({message:t,description:r,action:o,dismiss:n,variant:a}),[t,r,o,n,a]);return s.jsx(Bt.Provider,{value:i,children:e})}function ee(){const e=b.use(Bt);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function Ot({children:e,className:t,...r}){return s.jsx("div",{className:v("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...r,children:e})}function Lt({children:e,className:t,...r}){const{message:o}=ee();return s.jsx("h5",{className:v("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...r,children:o})}function Dt({className:e,...t}){const{description:r}=ee();return s.jsx("p",{className:v("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...t,children:r})}function $t({children:e,className:t,...r}){return s.jsx("div",{className:v("flex items-center gap-1",t),"data-slot":"alert-actions",...r,children:e})}/**
2
2
  * @license lucide-react v0.545.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Mo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Eo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),Ze=e=>{const t=Eo(e);return t.charAt(0).toUpperCase()+t.slice(1)},Vt=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),To=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
6
+ */const zo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),Ze=e=>{const t=Bo(e);return t.charAt(0).toUpperCase()+t.slice(1)},Vt=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),Oo=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7
7
  * @license lucide-react v0.545.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */var zo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
11
+ */var Lo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
12
  * @license lucide-react v0.545.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const Bo=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:i,...l},c)=>b.createElement("svg",{ref:c,...zo,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Vt("lucide",n),...!a&&!To(l)&&{"aria-hidden":"true"},...l},[...i.map(([f,p])=>b.createElement(f,p)),...Array.isArray(a)?a:[a]]));/**
16
+ */const Do=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:i,...l},c)=>b.createElement("svg",{ref:c,...Lo,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Vt("lucide",n),...!a&&!Oo(l)&&{"aria-hidden":"true"},...l},[...i.map(([f,p])=>b.createElement(f,p)),...Array.isArray(a)?a:[a]]));/**
17
17
  * @license lucide-react v0.545.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const Gt=(e,t)=>{const r=b.forwardRef(({className:o,...n},a)=>b.createElement(Bo,{ref:a,iconNode:t,className:Vt(`lucide-${Mo(Ze(e))}`,`lucide-${e}`,o),...n}));return r.displayName=Ze(e),r};/**
21
+ */const Gt=(e,t)=>{const r=b.forwardRef(({className:o,...n},a)=>b.createElement(Do,{ref:a,iconNode:t,className:Vt(`lucide-${zo(Ze(e))}`,`lucide-${e}`,o),...n}));return r.displayName=Ze(e),r};/**
22
22
  * @license lucide-react v0.545.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const Oo=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Lo=Gt("loader-circle",Oo);/**
26
+ */const $o=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vo=Gt("loader-circle",$o);/**
27
27
  * @license lucide-react v0.545.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Do=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ft=Gt("x",Do);function Te({variant:e="primary",size:t="large",shape:r="pill",loading:o=!1,type:n="button",disabled:a=!1,className:i,children:l,...c}){return s.jsxs("button",{"aria-busy":o,className:y("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],!o&&!a&&"hover:after:translate-x-0",o&&"pointer-events-none",i),"data-slot":"button",disabled:a,type:n,...c,children:[s.jsx("span",{className:y("inline-flex items-center justify-center transition-all duration-300 ease-in-out",o?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:l}),s.jsx("span",{className:y("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",o?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:s.jsx(Lo,{className:y("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function Ut({children:e,...t}){const{action:r}=ee();if(!r)return null;const{label:o,onClick:n}=r;return s.jsx(Te,{"data-slot":"alert-button",onClick:n,size:"x-small",variant:"ghost",...t,children:o})}function Wt({...e}){const{dismiss:t}=ee(),{label:r,onClick:o}=t;return s.jsx(Te,{"aria-label":r,"data-slot":"alert-close-button",onClick:o,shape:"circle",size:"x-small",variant:"ghost",...e,children:s.jsx(Ft,{size:20,strokeWidth:1})})}function $o({className:e,children:t,...r}){return s.jsx("span",{className:y("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...r,children:t})}function Vo({children:e,shape:t="rounded",className:r,variant:o="primary",...n}){return s.jsx("span",{className:y("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[o],r),...n,children:e})}const Go=({id:e,children:t,hideDismiss:r=!1,className:o,onDismiss:n})=>s.jsx(qt,{hideDismiss:r,id:e,onDismiss:n,children:s.jsx(Kt,{className:o,children:s.jsxs(Zt,{children:[s.jsx(Xt,{children:t}),s.jsx(Jt,{})]})})}),Ht=b.createContext(void 0);function qt({id:e,hideDismiss:t,onDismiss:r,children:o}){const[n,a]=b.useState(!1),[i,l]=b.useState(!1);b.useEffect(()=>{const p=localStorage.getItem(`${e}-hidden-banner`)==="true";a(p),l(!0)},[e]);const c=b.useCallback(()=>{a(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),r?.()},[e,r]),f=b.useMemo(()=>({id:e,isInitialized:i,isDismissed:n,hideDismiss:t,handleDismiss:c}),[e,i,n,t,c]);return s.jsx(Ht.Provider,{value:f,children:i?o:null})}function ze(){const e=b.use(Ht);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function Kt({children:e,className:t,...r}){const{id:o,isDismissed:n}=ze();return s.jsx("div",{className:y("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",n?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:o,...r,children:e})}function Zt({className:e,children:t}){return s.jsx("div",{className:y("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function Xt({children:e,className:t,...r}){return s.jsx("div",{className:y("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...r,children:e})}function Jt({className:e,...t}){const{hideDismiss:r,handleDismiss:o}=ze();return r?null:s.jsx("button",{"aria-label":"Dismiss banner",className:y("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:n=>{n.preventDefault(),o()},...t,children:s.jsx(Ft,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function Fo({author:e,content:t,date:r,link:o,image:n,title:a,className:i}){return s.jsx(Qt,{author:e,content:t,date:r,image:n,link:o,title:a,children:s.jsxs(er,{className:i,children:[s.jsx(tr,{}),s.jsx(or,{}),s.jsx(nr,{}),s.jsxs(ar,{children:[s.jsx(sr,{}),s.jsx(ir,{})]}),s.jsx(rr,{})]})})}const Yt=b.createContext(void 0);function Qt({children:e,title:t,author:r,content:o,date:n,image:a,link:i}){const l=b.useMemo(()=>({title:t,author:r,content:o,date:n,image:a,link:i}),[t,r,o,n,a,i]);return s.jsx(Yt.Provider,{value:l,children:e})}function U(){const e=b.use(Yt);if(e===void 0)throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");return e}function er({as:e,className:t,children:r,...o}){const n=e??"article";return s.jsx(n,{className:y("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...o,children:r})}function Uo({children:e,className:t,...r}){return s.jsx("div",{className:y("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...r,children:e})}function tr({className:e,...t}){const{image:r,title:o}=U(),n="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",a=()=>{if(!r)return s.jsx("div",{className:y("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",e),...t,children:o});const{src:i,alt:l,render:c}=r;return c?c({src:i,alt:l,className:n}):s.jsx("img",{alt:l,className:n,src:i})};return s.jsx("div",{className:y("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",e),...t,children:a()})}function rr({className:e,...t}){const{link:{href:r,ariaLabel:o,render:n}}=U(),a=y("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",e);return n?n({href:r,ariaLabel:o,className:a,...t}):s.jsx("a",{className:a,href:r,...t,children:s.jsx("span",{className:"sr-only",children:o})})}function or({className:e,...t}){const{title:r}=U();return s.jsx("h5",{className:y("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...t,children:r})}function nr({className:e,...t}){const{content:r}=U();return s.jsx("p",{className:y("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...t,children:r})}function ar({children:e,className:t,...r}){return s.jsx("div",{className:y("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...r,children:e})}function sr({className:e,...t}){const{date:r}=U();return s.jsx("time",{dateTime:r,...t,"data-slot":"blog-post-card-date",children:new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function ir({className:e,...t}){const{author:r}=U();if(r!=null)return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:y("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...t}),s.jsx("span",{children:r})]})}function Wo({className:e,...t}){return s.jsx("div",{className:y("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function X({characterCount:e=10,className:t,...r}){return s.jsx("div",{className:y("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...r,children:s.jsx("div",{className:y("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function Ho({className:e,aspectRatio:t="4:3",...r}){return s.jsxs("div",{className:y("w-full max-w-md @container",e),...r,children:[s.jsx(Wo,{className:y("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),s.jsx(X,{characterCount:25,className:"mt-4 rounded text-lg"}),s.jsxs("div",{className:"mt-1.5",children:[s.jsx(X,{characterCount:"full",className:"rounded text-sm"}),s.jsx(X,{characterCount:"full",className:"rounded text-sm"}),s.jsx(X,{characterCount:15,className:"rounded text-sm"})]}),s.jsx(X,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function qo({variant:e="primary",size:t="large",shape:r="pill",className:o,children:n,render:a,...i}){const l=y("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],o),c=s.jsx("span",{className:y("inline-flex items-center justify-center",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:n});function f(){return a?a({...i,className:l,children:c}):s.jsx("a",{...i,className:l,children:c})}return s.jsx(s.Fragment,{children:f()})}exports.Accordion=cr;exports.AccordionContent=_t;exports.AccordionItem=Pt;exports.AccordionItemProvider=Et;exports.AccordionProvider=St;exports.AccordionRoot=It;exports.AccordionTrigger=Tt;exports.Alert=Ro;exports.AlertActions=$t;exports.AlertButton=Ut;exports.AlertCloseButton=Wt;exports.AlertDescription=Dt;exports.AlertHeader=Ot;exports.AlertRoot=zt;exports.AlertTitle=Lt;exports.AnimatedUnderline=$o;exports.Badge=Vo;exports.Banner=Go;exports.BannerContent=Zt;exports.BannerDismiss=Jt;exports.BannerProvider=qt;exports.BannerRoot=Kt;exports.BannerText=Xt;exports.BlogPostCard=Fo;exports.BlogPostCardAuthor=ir;exports.BlogPostCardContent=nr;exports.BlogPostCardDate=sr;exports.BlogPostCardDetails=ar;exports.BlogPostCardFallback=Uo;exports.BlogPostCardImage=tr;exports.BlogPostCardLink=rr;exports.BlogPostCardProvider=Qt;exports.BlogPostCardRoot=er;exports.BlogPostCardSkeleton=Ho;exports.BlogPostCardTitle=or;exports.Button=Te;exports.ButtonLink=qo;exports.useAccordion=me;exports.useAccordionItem=pe;exports.useBanner=ze;exports.useBlogPostCard=U;
31
+ */const Go=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ft=Gt("x",Go);function Te({variant:e="primary",size:t="large",shape:r="pill",loading:o=!1,type:n="button",disabled:a=!1,className:i,children:l,...c}){return s.jsxs("button",{"aria-busy":o,className:v("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],!o&&!a&&"hover:after:translate-x-0",o&&"pointer-events-none",i),"data-slot":"button",disabled:a,type:n,...c,children:[s.jsx("span",{className:v("inline-flex items-center justify-center transition-all duration-300 ease-in-out",o?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:l}),s.jsx("span",{className:v("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",o?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:s.jsx(Vo,{className:v("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function Ut({children:e,...t}){const{action:r}=ee();if(!r)return null;const{label:o,onClick:n}=r;return s.jsx(Te,{"data-slot":"alert-button",onClick:n,size:"x-small",variant:"ghost",...t,children:o})}function Wt({...e}){const{dismiss:t}=ee(),{label:r,onClick:o}=t;return s.jsx(Te,{"aria-label":r,"data-slot":"alert-close-button",onClick:o,shape:"circle",size:"x-small",variant:"ghost",...e,children:s.jsx(Ft,{size:20,strokeWidth:1})})}function Fo({className:e,children:t,...r}){return s.jsx("span",{className:v("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...r,children:t})}function Uo({children:e,shape:t="rounded",className:r,variant:o="primary",...n}){return s.jsx("span",{className:v("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[o],r),...n,children:e})}const Wo=({id:e,children:t,hideDismiss:r=!1,className:o,onDismiss:n})=>s.jsx(qt,{hideDismiss:r,id:e,onDismiss:n,children:s.jsx(Kt,{className:o,children:s.jsxs(Zt,{children:[s.jsx(Xt,{children:t}),s.jsx(Jt,{})]})})}),Ht=b.createContext(void 0);function qt({id:e,hideDismiss:t,onDismiss:r,children:o}){const[n,a]=b.useState(!1),[i,l]=b.useState(!1);b.useEffect(()=>{const p=localStorage.getItem(`${e}-hidden-banner`)==="true";a(p),l(!0)},[e]);const c=b.useCallback(()=>{a(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),r?.()},[e,r]),f=b.useMemo(()=>({id:e,isInitialized:i,isDismissed:n,hideDismiss:t,handleDismiss:c}),[e,i,n,t,c]);return s.jsx(Ht.Provider,{value:f,children:i?o:null})}function ze(){const e=b.use(Ht);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function Kt({children:e,className:t,...r}){const{id:o,isDismissed:n}=ze();return s.jsx("div",{className:v("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",n?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:o,...r,children:e})}function Zt({className:e,children:t}){return s.jsx("div",{className:v("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function Xt({children:e,className:t,...r}){return s.jsx("div",{className:v("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...r,children:e})}function Jt({className:e,...t}){const{hideDismiss:r,handleDismiss:o}=ze();return r?null:s.jsx("button",{"aria-label":"Dismiss banner",className:v("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:n=>{n.preventDefault(),o()},...t,children:s.jsx(Ft,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function Ho({author:e,content:t,date:r,link:o,image:n,title:a,className:i}){return s.jsx(Qt,{author:e,content:t,date:r,image:n,link:o,title:a,children:s.jsxs(er,{className:i,children:[s.jsx(tr,{}),s.jsx(or,{}),s.jsx(nr,{}),s.jsxs(ar,{children:[s.jsx(sr,{}),s.jsx(ir,{})]}),s.jsx(rr,{})]})})}const Yt=b.createContext(void 0);function Qt({children:e,title:t,author:r,content:o,date:n,image:a,link:i}){const l=b.useMemo(()=>({title:t,author:r,content:o,date:n,image:a,link:i}),[t,r,o,n,a,i]);return s.jsx(Yt.Provider,{value:l,children:e})}function U(){const e=b.use(Yt);if(e===void 0)throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");return e}function er({as:e,className:t,children:r,...o}){const n=e??"article";return s.jsx(n,{className:v("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...o,children:r})}function qo({children:e,className:t,...r}){return s.jsx("div",{className:v("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...r,children:e})}function tr({className:e,...t}){const{image:r,title:o}=U(),n="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",a=()=>{if(!r)return s.jsx("div",{className:v("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",e),...t,children:o});const{src:i,alt:l,render:c}=r;return c?c({src:i,alt:l,className:n}):s.jsx("img",{alt:l,className:n,src:i})};return s.jsx("div",{className:v("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",e),...t,children:a()})}function rr({className:e,...t}){const{link:{href:r,ariaLabel:o,render:n}}=U(),a=v("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",e);return n?n({href:r,ariaLabel:o,className:a,...t}):s.jsx("a",{className:a,href:r,...t,children:s.jsx("span",{className:"sr-only",children:o})})}function or({className:e,...t}){const{title:r}=U();return s.jsx("h5",{className:v("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...t,children:r})}function nr({className:e,...t}){const{content:r}=U();return s.jsx("p",{className:v("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...t,children:r})}function ar({children:e,className:t,...r}){return s.jsx("div",{className:v("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...r,children:e})}function sr({className:e,...t}){const{date:r}=U();return s.jsx("time",{dateTime:r,...t,"data-slot":"blog-post-card-date",children:new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function ir({className:e,...t}){const{author:r}=U();if(r!=null)return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:v("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...t}),s.jsx("span",{children:r})]})}function lr({className:e,...t}){return s.jsx("div",{className:v("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function X({characterCount:e=10,className:t,...r}){return s.jsx("div",{className:v("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...r,children:s.jsx("div",{className:v("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function Ko({className:e,aspectRatio:t="4:3",...r}){return s.jsxs("div",{className:v("w-full max-w-md @container",e),...r,children:[s.jsx(lr,{className:v("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),s.jsx(X,{characterCount:25,className:"mt-4 rounded text-lg"}),s.jsxs("div",{className:"mt-1.5",children:[s.jsx(X,{characterCount:"full",className:"rounded text-sm"}),s.jsx(X,{characterCount:"full",className:"rounded text-sm"}),s.jsx(X,{characterCount:15,className:"rounded text-sm"})]}),s.jsx(X,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function Zo({variant:e="primary",size:t="large",shape:r="pill",className:o,children:n,render:a,...i}){const l=v("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],o),c=s.jsx("span",{className:v("inline-flex items-center justify-center",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:n});function f(){return a?a({...i,className:l,children:c}):s.jsx("a",{...i,className:l,children:c})}return s.jsx(s.Fragment,{children:f()})}function Xo({as:e,className:t,children:r,link:o,...n}){return s.jsxs(dr,{as:e,className:t,...n,children:[r,s.jsx(cr,{link:o})]})}function cr({link:e}){if(!e)return null;const{href:t,ariaLabel:r,render:o}=e,n=v("absolute inset-0 rounded-2xl","focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]");return o?o({href:t,ariaLabel:r,className:n}):s.jsx("a",{className:n,"data-slot":"card-link",href:t,children:s.jsx("span",{className:"sr-only",children:r})})}function dr({as:e,className:t,children:r}){const o=e??"div";return s.jsx(o,{className:v("group/card relative w-full rounded-2xl border p-6 @container","border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]","transition-colors duration-300 ease-linear",t),"data-slot":"card-root",children:r})}function Jo({className:e,...t}){return s.jsx("div",{className:v("@container",e),...t,children:s.jsx(lr,{})})}exports.Accordion=fr;exports.AccordionContent=Rt;exports.AccordionItem=Pt;exports.AccordionItemProvider=Et;exports.AccordionProvider=St;exports.AccordionRoot=_t;exports.AccordionTrigger=Tt;exports.Alert=Eo;exports.AlertActions=$t;exports.AlertButton=Ut;exports.AlertCloseButton=Wt;exports.AlertDescription=Dt;exports.AlertHeader=Ot;exports.AlertRoot=zt;exports.AlertTitle=Lt;exports.AnimatedUnderline=Fo;exports.Badge=Uo;exports.Banner=Wo;exports.BannerContent=Zt;exports.BannerDismiss=Jt;exports.BannerProvider=qt;exports.BannerRoot=Kt;exports.BannerText=Xt;exports.BlogPostCard=Ho;exports.BlogPostCardAuthor=ir;exports.BlogPostCardContent=nr;exports.BlogPostCardDate=sr;exports.BlogPostCardDetails=ar;exports.BlogPostCardFallback=qo;exports.BlogPostCardImage=tr;exports.BlogPostCardLink=rr;exports.BlogPostCardProvider=Qt;exports.BlogPostCardRoot=er;exports.BlogPostCardSkeleton=Ko;exports.BlogPostCardTitle=or;exports.Button=Te;exports.ButtonLink=Zo;exports.Card=Xo;exports.CardLink=cr;exports.CardRoot=dr;exports.CardSkeleton=Jo;exports.useAccordion=me;exports.useAccordionItem=pe;exports.useBanner=ze;exports.useBlogPostCard=U;
32
32
  //# sourceMappingURL=index.cjs.map