1import{S as e,h as t,v as n,x as r}from"./Section-B1UQ37kI.js";import{a as i,c as a,o,s}from"./index-B45aaMX-.js";var c=t(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),l=t(`life-buoy`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.93 4.93 4.24 4.24`,key:`1ymg45`}],[`path`,{d:`m14.83 9.17 4.24-4.24`,key:`1cb5xl`}],[`path`,{d:`m14.83 14.83 4.24 4.24`,key:`q42g0n`}],[`path`,{d:`m9.17 14.83-4.24 4.24`,key:`bqpfvv`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),u=a(s(),1),d=i();function f(e,t=[]){let n=[];function r(t,r){let i=u.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,Object.values(o));return(0,d.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>u.createContext(e));return function(n){let r=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,p(i,...t)]}function p(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function m(e){let t=h(e),n=u.forwardRef((e,n)=>{let{children:r,...i}=e,a=u.Children.toArray(r),o=a.find(_);if(o){let e=o.props.children,r=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:u.isValidElement(e)?u.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function h(e){let t=u.forwardRef((e,t)=>{let{children:n,...i}=e;if(u.isValidElement(n)){let e=y(n),a=v(i,n.props);return n.type!==u.Fragment&&(a.ref=t?r(t,e):e),u.cloneElement(n,a)}return u.Children.count(n)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var g=Symbol(`radix.slottable`);function _(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===g}function v(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function y(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function b(t){let n=t+`CollectionProvider`,[r,i]=f(n),[a,o]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=u.useRef(null),i=u.useRef(new Map).current;return(0,d.jsx)(a,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=n;let c=t+`CollectionSlot`,l=m(c),p=u.forwardRef((t,n)=>{let{scope:r,children:i}=t;return(0,d.jsx)(l,{ref:e(n,o(c,r).collectionRef),children:i})});p.displayName=c;let h=t+`CollectionItemSlot`,g=`data-radix-collection-item`,_=m(h),v=u.forwardRef((t,n)=>{let{scope:r,children:i,...a}=t,s=u.useRef(null),c=e(n,s),l=o(h,r);return u.useEffect(()=>(l.itemMap.set(s,{ref:s,...a}),()=>void l.itemMap.delete(s))),(0,d.jsx)(_,{[g]:``,ref:c,children:i})});v.displayName=h;function y(e){let n=o(t+`CollectionConsumer`,e);return u.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:s,Slot:p,ItemSlot:v},y,i]}typeof window<`u`&&window.document&&window.document.createElement;function x(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var S=globalThis?.document?u.useLayoutEffect:()=>{},ee=u.useInsertionEffect||S;function C({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=te({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=u.useRef(e!==void 0);u.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`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.`),t.current=s},[s,r])}return[c,u.useCallback(t=>{if(s){let n=ne(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function te({defaultProp:e,onChange:t}){let[n,r]=u.useState(e),i=u.useRef(n),a=u.useRef(t);return ee(()=>{a.current=t},[t]),u.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function ne(e){return typeof e==`function`}var re=a(o(),1);
vendor: 4,314 bytes, line 1
1function ie(e){let t=ae(e),n=u.forwardRef((e,n)=>{let{children:r,...i}=e,a=u.Children.toArray(r),o=a.find(se);if(o){let e=o.props.children,r=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:u.isValidElement(e)?u.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ae(e){let t=u.forwardRef((e,t)=>{let{children:n,...i}=e;if(u.isValidElement(n)){let e=le(n),a=ce(i,n.props);return n.type!==u.Fragment&&(a.ref=t?r(t,e):e),u.cloneElement(n,a)}return u.Children.count(n)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oe=Symbol(`radix.slottable`);function se(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===oe}function ce(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function le(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var w=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ie(`Primitive.${t}`),r=u.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ue(e,t){e&&re.flushSync(()=>e.dispatchEvent(t))}function de(e,t){return u.useReducer((e,n)=>t[e][n]??e,e)}var T=t=>{let{present:n,children:r}=t,i=fe(n),a=typeof r==`function`?r({present:i.isPresent}):u.Children.only(r),o=e(i.ref,pe(a));return typeof r==`function`||i.isPresent?u.cloneElement(a,{ref:o}):null};T.displayName=`Presence`;function fe(e){let[t,n]=u.useState(),r=u.useRef(null),i=u.useRef(e),a=u.useRef(`none`),[o,s]=de(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return u.useEffect(()=>{let e=E(r.current);a.current=o===`mounted`?e:`none`},[o]),S(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=E(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),S(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=E(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=E(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:u.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function E(e){return e?.animationName||`none`}function pe(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var me=u.useId||(()=>void 0),he=0;function D(e){let[t,n]=u.useState(me());return S(()=>{e||n(e=>e??String(he++))},[e]),e||(t?`radix-${t}`:``)}var O=`Collapsible`,[ge,k]=f(O),[_e,A]=ge(O),j=u.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=C({prop:r,defaultProp:i??!1,onChange:o,caller:O});return(0,d.jsx)(_e,{scope:n,disabled:a,contentId:D(),open:c,onOpenToggle:u.useCallback(()=>l(e=>!e),[l]),children:(0,d.jsx)(w.div,{"data-state":I(c),"data-disabled":a?``:void 0,...s,ref:t})})});j.displayName=O;var M=`CollapsibleTrigger`,N=u.forwardRef((e,t)=>
vendor: 4,159 bytes, line 1
1{let{__scopeCollapsible:n,...r}=e,i=A(M,n);return(0,d.jsx)(w.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":I(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:x(e.onClick,i.onOpenToggle)})});N.displayName=M;var P=`CollapsibleContent`,F=u.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=A(P,e.__scopeCollapsible);return(0,d.jsx)(T,{present:n||i.open,children:({present:e})=>(0,d.jsx)(ve,{...r,ref:t,present:e})})});F.displayName=P;var ve=u.forwardRef((t,n)=>{let{__scopeCollapsible:r,present:i,children:a,...o}=t,s=A(P,r),[c,l]=u.useState(i),f=u.useRef(null),p=e(n,f),m=u.useRef(0),h=m.current,g=u.useRef(0),_=g.current,v=s.open||c,y=u.useRef(v),b=u.useRef(void 0);return u.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),S(()=>{let e=f.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();m.current=t.height,g.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),l(i)}},[s.open,i]),(0,d.jsx)(w.div,{"data-state":I(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!v,...o,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...t.style},children:v&&a})});function I(e){return e?`open`:`closed`}var ye=j,be=N,xe=F,Se=u.createContext(void 0);function L(e){let t=u.useContext(Se);return e||t||`ltr`}var R=`Accordion`,Ce=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[z,we,Te]=b(R),[B,Ee]=f(R,[Te,k]),V=k(),H=u.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,d.jsx)(z.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,d.jsx)(Ae,{...a,ref:t}):(0,d.jsx)(ke,{...i,ref:t})})});H.displayName=R;var[U,De]=B(R),[W,Oe]=B(R,{collapsible:!1}),ke=u.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=C({prop:n,defaultProp:r??``,onChange:i,caller:R});return(0,d.jsx)(U,{scope:e.__scopeAccordion,value:u.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:u.useCallback(()=>a&&c(``),[a,c]),children:(0,d.jsx)(W,{scope:e.__scopeAccordion,collapsible:a,children:(0,d.jsx)(K,{...o,ref:t})})})}),Ae=u.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=C({prop:n,defaultProp:r??[],onChange:i,caller:R}),c=u.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=u.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,d.jsx)(U,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,d.jsx)(W,{scope:e.__scopeAccordion,collapsible:!0,children:(0,d.jsx)(K,{...a,ref:t})})})}),[je,G]=B(R),K=u.forwardRef((t,n)=>{let{__scopeAccordion:r,disabled:i,dir:a,orientation:o=`vertical`,...s}=t,c=e(u.useRef(null),n),l=we(r),f=L(a)===`ltr`,p=x(t.onKeyDown,e=>{if(!Ce.includes(e.key))return;let t=e.target,n=l().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,s=i-1,c=()=>{a=r+1,a>s&&(a=0)},u=()=>{a=r-1,a<0&&(a=s)};switch(e.key){case`Home`:a=0;break;case`End`:a=s;break;case`ArrowRight`:o===`horizontal`&&(f?c():u());break;case`ArrowDown`:o===`vertical`&&c();break;case`ArrowLeft`:o===`horizontal`&&(f?u():c());break;case`ArrowUp`:o===`vertical`&&u();break}n[a%i].ref.current?.focus()});return(0,d.jsx)(je,{scope:r,disabled:i,direction:a,orientation:o,children:(0,d.jsx)(z.Slot,{scope:r,children:(0,d.jsx)(w.div,{...s,"data-orientation":o,ref:c,onKeyDown:i?void 0:p})})})}),q=`AccordionItem`,[Me,J]=B(q),Y=u.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=G(q,n),o=De(q,n),s=V(n),c=D(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,d.jsx)(Me,{scope:n,open:l,disabled:u,triggerId:c,children:(0,d.jsx)(ye,{"data-orientation":a.orientation,"data-state":Ie(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});Y.displayName=q;var X=`AccordionHeader`,Z=u.forwardRef((e,t)=>
1{let{__scopeAccordion:n,...r}=e,i=G(R,n),a=J(X,n);return(0,d.jsx)(w.h3,{"data-orientation":i.orientation,"data-state":Ie(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});Z.displayName=X;var Q=`AccordionTrigger`,Ne=u.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=G(R,n),a=J(Q,n),o=Oe(Q,n),s=V(n);return(0,d.jsx)(z.ItemSlot,{scope:n,children:(0,d.jsx)(be,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});Ne.displayName=Q;var Pe=`AccordionContent`,Fe=u.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=G(R,n),a=J(Pe,n),o=V(n);return(0,d.jsx)(xe,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});Fe.displayName=Pe;function Ie(e){return e?`open`:`closed`}var Le=H,Re=Y,ze=Z,Be=Ne,Ve=Fe,He=Le,Ue=u.forwardRef(({className:e,...t},r)=>(0,d.jsx)(Re,{ref:r,className:n(`border-b`,e),...t}));Ue.displayName=`AccordionItem`;var We=u.forwardRef(({className:e,children:t,...r},i)=>(0,d.jsx)(ze,{className:`flex`,children:(0,d.jsxs)(Be,{ref:i,className:n(`flex flex-1 items-center justify-between py-4 text-sm font-medium cursor-pointer transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180`,e),...r,children:[t,(0,d.jsx)(c,{className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200`})]})}));We.displayName=Be.displayName;var $=u.forwardRef(({className:e,children:t,...r},i)=>(0,d.jsx)(Ve,{ref:i,className:`overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...r,children:(0,d.jsx)(`div`,{className:n(`pb-4 pt-0`,e),children:t})}));$.displayName=Ve.displayName;export{L as a,ue as c,x as d,b as f,c as h,We as i,C as l,l as m,$ as n,D as o,f as p,Ue as r,w as s,He as t,S as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.