1import{L as e,f as t,i as n,n as r,r as i,z as a}from"./button-ktfunLVp.js";import{f as o,p as s}from"./index-CLXIVj0j.js";var c=a(e(),1),l=t(),u=Object.defineProperty,d=(e,t)=>u(e,`name`,{value:t,configurable:!0});function f(e,t){let n=c.createContext(t);n.displayName=e+`Context`;let r=d(e=>{let{children:t,...r}=e,i=c.useMemo(()=>r,Object.values(r));return(0,l.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=c.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return d(i,`useContext`),[r,i]}d(f,`createContext`);function p(e,t=[]){let n=[];function r(t,r){let i=c.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=d(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,u=c.useMemo(()=>o,Object.values(o));return(0,l.jsx)(s.Provider,{value:u,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:l=!1}=s,u=o?.[e]?.[a]||i,d=c.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return d(s,`useContext`),[o,s]}d(r,`createContext`);let i=d(()=>{let t=n.map(e=>c.createContext(e));return d(function(n){let r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,m(i,...t)]}d(p,`createContextScope`);function m(...e){let t=e[0];if(e.length===1)return t;let n=d(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return d(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}d(m,`composeContextScopes`);var h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0});function _(e){let t=e+`CollectionProvider`,[n,a]=p(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=g(e=>{let{scope:t,children:n}=e,r=c.useRef(null),i=c.useRef(new Map).current;return(0,l.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);u.displayName=t;let d=e+`CollectionSlot`,f=r(d),m=c.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=i(t,s(d,n).collectionRef);return(0,l.jsx)(f,{ref:a,children:r})});m.displayName=d;let h=e+`CollectionItemSlot`,_=`data-radix-collection-item`,v=r(h),y=c.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=c.useRef(null),u=i(t,o),d=s(h,n);return c.useEffect(()=>(d.itemMap.set(o,{ref:o,...a}),()=>void d.itemMap.delete(o))),(0,l.jsx)(v,{[_]:``,ref:u,children:r})});y.displayName=h;function b(t){let n=s(e+`CollectionConsumer`,t);return c.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${_}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return g(b,`useCollection`),[{Provider:u,Slot:m,ItemSlot:y},b,a]}g(_,`createCollection`);var v=new WeakMap,y=class e extends Map{static{g(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],v.set(this,!0)}set(e,t){return v.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=S(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=b(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=b(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return b(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function b(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=x(e,t);return n===-1?void 0:e[n]}g(b,`at`);function x(e,t){let n=e.length,r=S(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}g(x,`toSafeIndex`);function S(e){return e!==e||e===0?0:Math.trunc(e)}g(S,`toSafeInteger`);function C(e){let t=e+`CollectionProvider`,[n,a]=p(t),[o,s]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new y,setItemMap:g(()=>void 0,`setItemMap`)}),u=g(({state:e,...t})=>e?(0,l.jsx)(f,{...t,state:e}):(0,l.jsx)(d,{...t}),`CollectionProvider`);u.displayName=t;let d=g(e=>{let t=S();return(0,l.jsx)(f,{...e,state:t})},`CollectionInit`);d.displayName=t+`Init`;let f=g(e=>{let{scope:t,children:n,state:r}=e,a=c.useRef(null),[s,u]=c.useState(null),d=i(a,u),[f,p]=r;return c.useEffect(()=>{if(!s)return;let e=te(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,l.jsx)(o,{scope:t,itemMap:f,setItemMap:p,collectionRef:d,collectionRefObject:a,collectionElement:s,children:n})},`CollectionProviderImpl`);f.displayName=t+`Impl`;let m=e+`CollectionSlot`,h=r(m),_=c.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=i(t,s(m,n).collectionRef);return(0,l.jsx)(h,{ref:a,children:r})});_.displayName=m;let v=e+`CollectionItemSlot`,b=r(v),x=c.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=c.useRef(null),[u,d]=c.useState(null),f=i(t,o,d),{setItemMap:p}=s(v,n),m=c.useRef(a);ee(m.current,a)||(m.current=a);let h=m.current;return c.useEffect(()=>{let e=h;return p(t=>u?t.has(u)?t.set(u,{...e,element:u}).toSorted(T):(t.set(u,{...e,element:u}),t.toSorted(T)):t),()=>{p(e=>!u||!e.has(u)?e:(e.delete(u),new y(e)))}},[u,h,p]),(0,l.jsx)(b,{"data-radix-collection-item":``,ref:f,children:r})});x.displayName=v;function S(){return c.useState(new y)}g(S,`useInitCollection`);function C(t){let{itemMap:n}=s(e+`CollectionConsumer`,t);return n}return g(C,`useCollection`),[{Provider:u,Slot:_,ItemSlot:x},{createCollectionScope:a,useCollection:C,useInitCollection:S}]}g(C,`createCollection`);function ee(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}g(ee,`shallowEqual`);function w(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}g(w,`isElementPreceding`);function T(e,t){return!e[1].element||!t[1].element?0:w(e[1].element,t[1].element)?-1:1}g(T,`sortByDocumentPosition`);function te(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}g(te,`getChildListObserver`);var ne=Object.defineProperty,E=(e,t)=>ne(e,`name`,{value:t,configurable:!0}),re=!!(typeof window<`u`&&window.document&&window.document.createElement);function D(e,t,{checkForDefaultPrevented:n=!0}={}){return E(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}E(D,`composeEventHandlers`);function ie(e){if(!re)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}E(ie,`getOwnerWindow`);function O(e){if(!re)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}E(O,`getOwnerDocument`);function ae(e,t=!1){let{activeElement:n}=O(e);
1if(!n?.nodeName)return null;if(oe(n)&&n.contentDocument)return ae(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=O(n).getElementById(e);if(t)return t}}return n}E(ae,`getActiveElement`);function oe(e){return e.tagName===`IFRAME`}E(oe,`isFrame`);var k=globalThis?.document?c.useLayoutEffect:()=>{},se=Object.defineProperty,ce=(e,t)=>se(e,`name`,{value:t,configurable:!0}),A=c.useEffectEvent,j=c.useInsertionEffect;function le(e){if(typeof A==`function`)return A(e);let t=c.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof j==`function`?j(()=>{t.current=e}):k(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}ce(le,`useEffectEvent`);var ue=Object.defineProperty,M=(e,t)=>ue(e,`name`,{value:t,configurable:!0}),de=c.useInsertionEffect||k;function N({prop:e,defaultProp:t,onChange:n=M(()=>{},`onChange`),caller:r}){let[i,a,o]=fe({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,c.useCallback(t=>{if(s){let n=pe(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}M(N,`useControllableState`);function fe({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),i=c.useRef(n),a=c.useRef(t);return de(()=>{a.current=t},[t]),c.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}M(fe,`useUncontrolledState`);function pe(e){return typeof e==`function`}M(pe,`isFunction`);var me=Symbol(`RADIX:SYNC_STATE`);function he(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,l=i!==void 0,u=le(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=c.useReducer((t,n)=>{if(n.type===me)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=c.useRef(m);c.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=c.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return c.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:me,state:i})},[i,f.state,l]),[g,p]}M(he,`useControllableStateReducer`);var ge=a(s(),1),_e=Object.defineProperty,ve=(e,t)=>_e(e,`name`,{value:t,configurable:!0}),P=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=r(`Primitive.${t}`),i=c.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,l.jsx)(o,{...a,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function ye(e,t){e&&ge.flushSync(()=>e.dispatchEvent(t))}ve(ye,`dispatchDiscreteCustomEvent`);var be=Object.defineProperty,F=(e,t)=>be(e,`name`,{value:t,configurable:!0});function xe(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}F(xe,`useStateMachine`);var Se=F(e=>{let{present:t,children:n}=e,r=Ce(t),i=typeof n==`function`?n({present:r.isPresent}):c.Children.only(n),a=L(r.ref,z(i));return typeof n==`function`||r.isPresent?c.cloneElement(i,{ref:a}):null},`Presence`);function Ce(e){let[t,n]=c.useState(),r=c.useRef(null),i=c.useRef(e),a=c.useRef(`none`),o=c.useRef(void 0),[s,l]=xe(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return c.useEffect(()=>{s===`mounted`?(a.current=o.current??R(r.current),o.current=void 0):a.current=`none`},[s]),k(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=R(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),k(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=F(a=>{let o=R(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=F(e=>{e.target===t&&(a.current=R(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=R(t)}else r.current=null;n(e)},[])}}F(Ce,`usePresence`);function I(e,t){if(typeof e==`function`)return e(t);
1e!=null&&(e.current=t)}F(I,`setRef`);function L(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=I(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():I(n[e],null)}}},[])}F(L,`useStableComposedRefs`);function R(e){return e?.animationName||`none`}F(R,`getAnimationName`);function z(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)}F(z,`getElementRef`);var we=Object.defineProperty,Te=(e,t)=>we(e,`name`,{value:t,configurable:!0}),Ee=c.useId||(()=>void 0),De=0;function B(e){let[t,n]=c.useState(Ee());return k(()=>{e||n(e=>e??String(De++))},[e]),e||(t?`radix-${t}`:``)}Te(B,`useId`);var Oe=Object.defineProperty,V=(e,t)=>Oe(e,`name`,{value:t,configurable:!0}),H=`Collapsible`,[ke,Ae]=p(H),[je,U]=ke(H),Me=c.forwardRef(V(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[u,d]=N({prop:r,defaultProp:i??!1,onChange:o,caller:H});return(0,l.jsx)(je,{scope:n,disabled:a,contentId:B(),open:u,onOpenToggle:c.useCallback(()=>d(e=>!e),[d]),children:(0,l.jsx)(P.div,{"data-state":W(u),"data-disabled":a?``:void 0,...s,ref:t})})},`Collapsible`)),Ne=`CollapsibleTrigger`,Pe=c.forwardRef(V(function(e,t){let{__scopeCollapsible:n,...r}=e,i=U(Ne,n);return(0,l.jsx)(P.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":W(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:D(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),Fe=`CollapsibleContent`,Ie=c.forwardRef(V(function(e,t){let{forceMount:n,...r}=e,i=U(Fe,e.__scopeCollapsible);return(0,l.jsx)(Se,{present:n||i.open,children:({present:e})=>(0,l.jsx)(Le,{...r,ref:t,present:e})})},`CollapsibleContent`)),Le=c.forwardRef(V(function(e,t){let{__scopeCollapsible:n,present:r,children:a,...o}=e,s=U(Fe,n),[u,d]=c.useState(r),f=c.useRef(null),p=i(t,f),m=c.useRef(0),h=m.current,g=c.useRef(0),_=g.current,v=s.open||u,y=c.useRef(v),b=c.useRef(void 0);return c.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),k(()=>{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),d(r)}},[s.open,r]),(0,l.jsx)(P.div,{"data-state":W(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,...e.style},children:v&&a})},`CollapsibleContentImpl`));function W(e){return e?`open`:`closed`}V(W,`getState`);var Re=Me,ze=Pe,Be=Ie,Ve=Object.defineProperty,He=(e,t)=>Ve(e,`name`,{value:t,configurable:!0}),Ue=c.createContext(void 0);function We(e){let t=c.useContext(Ue);return e||t||`ltr`}He(We,`useDirection`);var Ge=Object.defineProperty,G=(e,t)=>Ge(e,`name`,{value:t,configurable:!0}),K=`Accordion`,Ke=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[q,qe,Je]=_(K),[J,Ye]=p(K,[Je,Ae]),Y=Ae(),Xe=c.forwardRef(G(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,l.jsx)(q.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,l.jsx)(nt,{...a,ref:t}):(0,l.jsx)(tt,{...i,ref:t})})},`Accordion`)),[Ze,Qe]=J(K),[$e,et]=J(K,{collapsible:!1}),tt=c.forwardRef(G(function(e,t){let{value:n,defaultValue:r,onValueChange:i=G(()=>{},`onValueChange`),collapsible:a=!1,...o}=e,[s,u]=N({prop:n,defaultProp:r??``,onChange:i,caller:K});return(0,l.jsx)(Ze,{scope:e.__scopeAccordion,value:c.useMemo(()=>s?[s]:[],[s]),onItemOpen:u,onItemClose:c.useCallback(()=>a&&u(``),[a,u]),children:(0,l.jsx)($e,{scope:e.__scopeAccordion,collapsible:a,children:(0,l.jsx)(it,{...o,ref:t})})})},`AccordionImplSingle`)),nt=c.forwardRef(G(function(e,t){let{value:n,defaultValue:r,onValueChange:i=G(()=>{},`onValueChange`),...a}=e,[o,s]=N({prop:n,defaultProp:r??[],onChange:i,caller:K}),u=c.useCallback(e=>s((t=[])=>[...t,e]),[s]),d=c.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,l.jsx)(Ze,{scope:e.__scopeAccordion,value:o,onItemOpen:u,onItemClose:d,children:(0,l.jsx)($e,{scope:e.__scopeAccordion,collapsible:!0,children:(0,l.jsx)(it,{...a,ref:t})})})},`AccordionImplMultiple`)),[rt,X]=J(K),it=c.forwardRef(G(function(e,t){let{__scopeAccordion:n,disabled:r,dir:a,orientation:o=`vertical`,...s}=e,u=i(c.useRef(null),t),d=qe(n),f=We(a)===`ltr`,p=D(e.onKeyDown,e=>
1{if(!Ke.includes(e.key))return;let t=e.target,n=d().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=G(()=>{a=r+1,a>s&&(a=0)},`moveNext`),l=G(()=>{a=r-1,a<0&&(a=s)},`movePrev`);switch(e.key){case`Home`:a=0;break;case`End`:a=s;break;case`ArrowRight`:o===`horizontal`&&(f?c():l());break;case`ArrowDown`:o===`vertical`&&c();break;case`ArrowLeft`:o===`horizontal`&&(f?l():c());break;case`ArrowUp`:o===`vertical`&&l();break}n[a%i].ref.current?.focus()});return(0,l.jsx)(rt,{scope:n,disabled:r,direction:a,orientation:o,children:(0,l.jsx)(q.Slot,{scope:n,children:(0,l.jsx)(P.div,{...s,"data-orientation":o,ref:u,onKeyDown:r?void 0:p})})})},`AccordionImpl`)),Z=`AccordionItem`,[at,Q]=J(Z),ot=c.forwardRef(G(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=X(Z,n),o=Qe(Z,n),s=Y(n),c=B(),u=r&&o.value.includes(r)||!1,d=a.disabled||e.disabled;return(0,l.jsx)(at,{scope:n,open:u,disabled:d,triggerId:c,children:(0,l.jsx)(Re,{"data-orientation":a.orientation,"data-state":$(u),...s,...i,ref:t,disabled:d,open:u,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),st=`AccordionHeader`,ct=c.forwardRef(G(function(e,t){let{__scopeAccordion:n,...r}=e,i=X(K,n),a=Q(st,n);return(0,l.jsx)(P.h3,{"data-orientation":i.orientation,"data-state":$(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),lt=`AccordionTrigger`,ut=c.forwardRef(G(function(e,t){let{__scopeAccordion:n,...r}=e,i=X(K,n),a=Q(lt,n),o=et(lt,n),s=Y(n);return(0,l.jsx)(q.ItemSlot,{scope:n,children:(0,l.jsx)(ze,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),dt=`AccordionContent`,ft=c.forwardRef(G(function(e,t){let{__scopeAccordion:n,...r}=e,i=X(K,n),a=Q(dt,n),o=Y(n);return(0,l.jsx)(Be,{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}})},`AccordionContent`));function $(e){return e?`open`:`closed`}G($,`getState`);var pt=Xe,mt=ot,ht=ct,gt=ut,_t=ft,vt=pt,yt=c.forwardRef(({className:e,...t},r)=>(0,l.jsx)(mt,{ref:r,className:n(`border-b`,e),...t}));yt.displayName=`AccordionItem`;var bt=c.forwardRef(({className:e,children:t,...r},i)=>(0,l.jsx)(ht,{className:`flex`,children:(0,l.jsxs)(gt,{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,l.jsx)(o,{className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200`})]})}));bt.displayName=gt.displayName;var xt=c.forwardRef(({className:e,children:t,...r},i)=>(0,l.jsx)(_t,{ref:i,className:`overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...r,children:(0,l.jsx)(`div`,{className:n(`pb-4 pt-0`,e),children:t})}));xt.displayName=_t.displayName;function St({items:e}){return(0,l.jsx)(vt,{type:`single`,collapsible:!0,className:`divide-y divide-border border-y border-border`,children:e.map((e,t)=>(0,l.jsxs)(yt,{value:`item-${t}`,className:`border-0`,children:[(0,l.jsx)(bt,{className:`py-5 text-left font-display text-base font-bold text-navy hover:no-underline`,children:e.q}),(0,l.jsx)(xt,{className:`pb-5 pr-6 text-[0.95rem] leading-relaxed text-muted-foreground`,children:e.a})]},e.q))})}export{St as t};
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.