1import{r as a,j as u,l as N,m as Ae}from"./vendor-framework-C2RiBzxu.js";import{J as S,K as D,M as k,p as ge}from"./index-Ct1GhE7t.js";function H(e,t=[]){let n=[];function o(c,s){const i=a.createContext(s),d=n.length;n=[...n,s];const l=f=>{var h;const{scope:m,children:p,...C}=f,A=((h=m==null?void 0:m[e])==null?void 0:h[d])||i,g=a.useMemo(()=>C,Object.values(C));return u.jsx(A.Provider,{value:g,children:p})};l.displayName=c+"Provider";function v(f,m){var A;const p=((A=m==null?void 0:m[e])==null?void 0:A[d])||i,C=a.useContext(p);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${c}\``)}return[l,v]}const r=()=>{const c=n.map(s=>a.createContext(s));return function(i){const d=(i==null?void 0:i[e])||c;return a.useMemo(()=>({[`__scope${e}`]:{...i,[e]:d}}),[i,d])}};return r.scopeName=e,[o,he(r,...t)]}function he(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(c){const s=o.reduce((i,{useScope:d,scopeName:l})=>{const f=d(c)[`__scope${l}`];return{...i,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ne(e,t=[]){let n=[];function o(c,s){const i=a.createContext(s),d=n.length;n=[...n,s];function l(f){const{scope:m,children:p,...C}=f,A=(m==null?void 0:m[e][d])||i,g=a.useMemo(()=>C,Object.values(C));return u.jsx(A.Provider,{value:g,children:p})}function v(f,m){const p=(m==null?void 0:m[e][d])||i,C=a.useContext(p);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${c}\``)}return l.displayName=c+"Provider",[l,v]}const r=()=>{const c=n.map(s=>a.createContext(s));return function(i){const d=(i==null?void 0:i[e])||c;return a.useMemo(()=>({[`__scope${e}`]:{...i,[e]:d}}),[i,d])}};return r.scopeName=e,[o,be(r,...t)]}function be(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(c){const s=o.reduce((i,{useScope:d,scopeName:l})=>{const f=d(c)[`__scope${l}`];return{...i,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Re(e){const t=e+"CollectionProvider",[n,o]=Ne(t),[r,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:C,children:A}=p,g=N.useRef(null),h=N.useRef(new Map).current;return u.jsx(r,{scope:C,itemMap:h,collectionRef:g,children:A})};s.displayName=t;const i=e+"CollectionSlot",d=N.forwardRef((p,C)=>{const{scope:A,children:g}=p,h=c(i,A),x=S(C,h.collectionRef);return u.jsx(D,{ref:x,children:g})});d.displayName=i;const l=e+"CollectionItemSlot",v="data-radix-collection-item",f=N.forwardRef((p,C)=>{const{scope:A,children:g,...h}=p,x=N.useRef(null),b=S(C,x),I=c(l,A);return N.useEffect(()=>(I.itemMap.set(x,{ref:x,...h}),()=>void I.itemMap.delete(x))),u.jsx(D,{[v]:"",ref:b,children:g})});f.displayName=l;function m(p){const C=c(e+"CollectionConsumer",p);return N.useCallback(()=>{const g=C.collectionRef.current;if(!g)return[];const h=Array.from(g.querySelectorAll(`[${v}]`));return Array.from(C.itemMap.values()).sort((I,w)=>h.indexOf(I.ref.current)-h.indexOf(w.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:s,Slot:d,ItemSlot:f},m,o]}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Y(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function L({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Ie({defaultProp:t,onChange:n}),c=e!==void 0,s=c?e:o,i=Y(n),d=a.useCallback(l=>{if(c){const f=typeof l=="function"?l(e):l;f!==e&&i(f)}else r(l)},[c,e,r,i]);return[s,d]}function Ie({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),c=Y(t);return a.useEffect(()=>{r.current!==o&&(c(o),r.current=o)},[o,r,c]),n}var we=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],P=we.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:c,...s}=o,i=c?D:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(i,{...s,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),y=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function Se(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var Q=e=>{const{present:t,children:n}=e,o=Pe(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),c=S(o.ref,_e(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:c}):null};Q.displayName="Presence";function Pe(e){const[t,n]=a.useState(),o=a.useRef({}),r=a.useRef(e),c=a.useRef("none"),s=e?"mounted":"unmounted",[i,d]=Se(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const l=_(o.current);c.current=i==="mounted"?l:"none"},[i]),y(()=>{const l=o.current,v=r.current;if(v!==e){const m=c.current,p=_(l);e?d("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?d("UNMOUNT"):d(v&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),y(()=>
1{if(t){let l;const v=t.ownerDocument.defaultView??window,f=p=>{const A=_(o.current).includes(p.animationName);if(p.target===t&&A&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=p=>{p.target===t&&(c.current=_(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{v.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:a.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function _(e){return(e==null?void 0:e.animationName)||"none"}function _e(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ye=Ae.useId||(()=>{}),Me=0;function X(e){const[t,n]=a.useState(ye());return y(()=>{n(o=>o??String(Me++))},[e]),t?`radix-${t}`:""}var U="Collapsible",[Oe,Z]=H(U),[Ee,V]=Oe(U),ee=a.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:c,onOpenChange:s,...i}=e,[d=!1,l]=L({prop:o,defaultProp:r,onChange:s});return u.jsx(Ee,{scope:n,disabled:c,contentId:X(),open:d,onOpenToggle:a.useCallback(()=>l(v=>!v),[l]),children:u.jsx(P.div,{"data-state":W(d),"data-disabled":c?"":void 0,...i,ref:t})})});ee.displayName=U;var te="CollapsibleTrigger",ne=a.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=V(te,n);return u.jsx(P.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":W(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:J(e.onClick,r.onOpenToggle)})});ne.displayName=te;var F="CollapsibleContent",oe=a.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=V(F,e.__scopeCollapsible);return u.jsx(Q,{present:n||r.open,children:({present:c})=>u.jsx(je,{...o,ref:t,present:c})})});oe.displayName=F;var je=a.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...c}=e,s=V(F,n),[i,d]=a.useState(o),l=a.useRef(null),v=S(t,l),f=a.useRef(0),m=f.current,p=a.useRef(0),C=p.current,A=s.open||i,g=a.useRef(A),h=a.useRef();return a.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),y(()=>{const x=l.current;if(x){h.current=h.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const b=x.getBoundingClientRect();f.current=b.height,p.current=b.width,g.current||(x.style.transitionDuration=h.current.transitionDuration,x.style.animationName=h.current.animationName),d(o)}},[s.open,o]),u.jsx(P.div,{"data-state":W(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!A,...c,ref:v,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style},children:A&&r})});function W(e){return e?"open":"closed"}var Te=ee,De=ne,$e=oe,ke=a.createContext(void 0);function Le(e){const t=a.useContext(ke);return e||t||"ltr"}var R="Accordion",Ue=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[B,Ve,Fe]=Re(R),[O,nt]=H(R,[Fe,Z]),K=Z(),re=N.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,c=o;return u.jsx(B.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?u.jsx(Ge,{...c,ref:t}):u.jsx(Ke,{...r,ref:t})})});re.displayName=R;var[ce,We]=O(R),[se,Be]=O(R,{collapsible:!1}),Ke=N.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:c=!1,...s}=e,[i,d]=L({prop:n,defaultProp:o,onChange:r});return u.jsx(ce,{scope:e.__scopeAccordion,value:i?[i]:[],onItemOpen:d,onItemClose:N.useCallback(()=>c&&d(""),[c,d]),children:u.jsx(se,{scope:e.__scopeAccordion,collapsible:c,children:u.jsx(ie,{...s,ref:t})})})}),Ge=N.forwardRef((e,t)=>
1{const{value:n,defaultValue:o,onValueChange:r=()=>{},...c}=e,[s=[],i]=L({prop:n,defaultProp:o,onChange:r}),d=N.useCallback(v=>i((f=[])=>[...f,v]),[i]),l=N.useCallback(v=>i((f=[])=>f.filter(m=>m!==v)),[i]);return u.jsx(ce,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:l,children:u.jsx(se,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(ie,{...c,ref:t})})})}),[qe,E]=O(R),ie=N.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:c="vertical",...s}=e,i=N.useRef(null),d=S(i,t),l=Ve(n),f=Le(r)==="ltr",m=J(e.onKeyDown,p=>{var q;if(!Ue.includes(p.key))return;const C=p.target,A=l().filter(T=>{var z;return!((z=T.ref.current)!=null&&z.disabled)}),g=A.findIndex(T=>T.ref.current===C),h=A.length;if(g===-1)return;p.preventDefault();let x=g;const b=0,I=h-1,w=()=>{x=g+1,x>I&&(x=b)},j=()=>{x=g-1,x<b&&(x=I)};switch(p.key){case"Home":x=b;break;case"End":x=I;break;case"ArrowRight":c==="horizontal"&&(f?w():j());break;case"ArrowDown":c==="vertical"&&w();break;case"ArrowLeft":c==="horizontal"&&(f?j():w());break;case"ArrowUp":c==="vertical"&&j();break}const ve=x%h;(q=A[ve].ref.current)==null||q.focus()});return u.jsx(qe,{scope:n,disabled:o,direction:r,orientation:c,children:u.jsx(B.Slot,{scope:n,children:u.jsx(P.div,{...s,"data-orientation":c,ref:d,onKeyDown:o?void 0:m})})})}),M="AccordionItem",[ze,G]=O(M),ae=N.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,c=E(M,n),s=We(M,n),i=K(n),d=X(),l=o&&s.value.includes(o)||!1,v=c.disabled||e.disabled;return u.jsx(ze,{scope:n,open:l,disabled:v,triggerId:d,children:u.jsx(Te,{"data-orientation":c.orientation,"data-state":me(l),...i,...r,ref:t,disabled:v,open:l,onOpenChange:f=>{f?s.onItemOpen(o):s.onItemClose(o)}})})});ae.displayName=M;var le="AccordionHeader",de=N.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=E(R,n),c=G(le,n);return u.jsx(P.h3,{"data-orientation":r.orientation,"data-state":me(c.open),"data-disabled":c.disabled?"":void 0,...o,ref:t})});de.displayName=le;var $="AccordionTrigger",ue=N.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=E(R,n),c=G($,n),s=Be($,n),i=K(n);return u.jsx(B.ItemSlot,{scope:n,children:u.jsx(De,{"aria-disabled":c.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:c.triggerId,...i,...o,ref:t})})});ue.displayName=$;var fe="AccordionContent",pe=N.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=E(R,n),c=G(fe,n),s=K(n);return u.jsx($e,{role:"region","aria-labelledby":c.triggerId,"data-orientation":r.orientation,...s,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});pe.displayName=fe;function me(e){return e?"open":"closed"}var He=re,Je=ae,Ye=de,Ce=ue,xe=pe;const ot=He,Qe=a.forwardRef(({className:e,...t},n)=>u.jsx(Je,{ref:n,className:k("border-b",e),...t}));Qe.displayName="AccordionItem";const Xe=a.forwardRef(({className:e,children:t,...n},o)=>u.jsx(Ye,{className:"flex",children:u.jsxs(Ce,{ref:o,className:k("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,u.jsx(ge,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Xe.displayName=Ce.displayName;const Ze=a.forwardRef(({className:e,children:t,...n},o)=>u.jsx(xe,{ref:o,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:u.jsx("div",{className:k("pb-4 pt-0",e),children:t})}));Ze.displayName=xe.displayName;export{ot as A,Qe as a,Xe as b,Ze as c};
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.