1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8269],{19632:(e,r,t)=>{t.d(r,{UC:()=>el,Y9:()=>eo,q7:()=>en,bL:()=>et,l9:()=>ea});var n=t(12115),o=t(46081),a=t(6101),l=t(99708),i=t(95155),d=t(85185),s=t(3200),c=t(63655),u=globalThis?.document?n.useLayoutEffect:()=>{},f=t(73236),p=t(52496),m="Collapsible",[v,h]=(0,o.A)(m),[b,x]=v(m),w=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:o,defaultOpen:a,disabled:l,onOpenChange:d,...u}=e,[f=!1,m]=(0,s.i)({prop:o,defaultProp:a,onChange:d});return(0,i.jsx)(b,{scope:t,disabled:l,contentId:(0,p.B)(),open:f,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,i.jsx)(c.sG.div,{"data-state":j(f),"data-disabled":l?"":void 0,...u,ref:r})})});w.displayName=m;var C="CollapsibleTrigger",y=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,...n}=e,o=x(C,t);return(0,i.jsx)(c.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:r,onClick:(0,d.m)(e.onClick,o.onOpenToggle)})});y.displayName=C;var R="CollapsibleContent",g=n.forwardRef((e,r)=>{let{forceMount:t,...n}=e,o=x(R,e.__scopeCollapsible);return(0,i.jsx)(f.C,{present:t||o.open,children:e=>{let{present:t}=e;return(0,i.jsx)(A,{...n,ref:r,present:t})}})});g.displayName=R;var A=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:o,children:l,...d}=e,s=x(R,t),[f,p]=n.useState(o),m=n.useRef(null),v=(0,a.s)(r,m),h=n.useRef(0),b=h.current,w=n.useRef(0),C=w.current,y=s.open||f,g=n.useRef(y),A=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),u(()=>{let e=m.current;if(e){A.current=A.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();h.current=r.height,w.current=r.width,g.current||(e.style.transitionDuration=A.current.transitionDuration,e.style.animationName=A.current.animationName),p(o)}},[s.open,o]),(0,i.jsx)(c.sG.div,{"data-state":j(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!y,...d,ref:v,style:{"--radix-collapsible-content-height":b?"".concat(b,"px"):void 0,"--radix-collapsible-content-width":C?"".concat(C,"px"):void 0,...e.style},children:y&&l})});function j(e){return e?"open":"closed"}var k=n.createContext(void 0),N="Accordion",I=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_,D,O]=function(e){let r=e+"CollectionProvider",[t,d]=(0,o.A)(r),[s,c]=t(r,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:t}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(s,{scope:r,itemMap:a,collectionRef:o,children:t})};u.displayName=r;let f=e+"CollectionSlot",p=n.forwardRef((e,r)=>{let{scope:t,children:n}=e,o=c(f,t),d=(0,a.s)(r,o.collectionRef);return(0,i.jsx)(l.DX,{ref:d,children:n})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=n.forwardRef((e,r)=>{let{scope:t,children:o,...d}=e,s=n.useRef(null),u=(0,a.s)(r,s),f=c(m,t);return n.useEffect(()=>(f.itemMap.set(s,{ref:s,...d}),()=>void f.itemMap.delete(s))),(0,i.jsx)(l.DX,{[v]:"",ref:u,children:o})});return h.displayName=m,[{Provider:u,Slot:p,ItemSlot:h},function(r){let t=c(e+"CollectionConsumer",r);return n.useCallback(()=>{let e=t.collectionRef.current;if(!e)return[];let r=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(t.itemMap.values()).sort((e,t)=>r.indexOf(e.ref.current)-r.indexOf(t.ref.current))},[t.collectionRef,t.itemMap])},d]}(N),[S,E]=(0,o.A)(N,[O,h]),M=h(),P=n.forwardRef((e,r)=>{let{type:t,...n}=e;return(0,i.jsx)(_.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,i.jsx)(H,{...n,ref:r}):(0,i.jsx)(B,{...n,ref:r})})});P.displayName=N;var[G,T]=S(N),[q,L]=S(N,{collapsible:!1}),B=n.forwardRef((e,r)=>{let{value:t,defaultValue:o,onValueChange:a=()=>{},collapsible:l=!1,...d}=e,[c,u]=(0,s.i)({prop:t,defaultProp:o,onChange:a});return(0,i.jsx)(G,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:u,onItemClose:n.useCallback(()=>l&&u(""),[l,u]),children:(0,i.jsx)(q,{scope:e.__scopeAccordion,collapsible:l,children:(0,i.jsx)(F,{...d,ref:r})})})}),H=n.forwardRef((e,r)=>{let{value:t,defaultValue:o,onValueChange:a=()=>{},...l}=e,[d=[],c]=(0,s.i)({prop:t,defaultProp:o,onChange:a}),u=n.useCallback(e=>c(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[c]),f=n.useCallback(e=>c(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[c]);return(0,i.jsx)(G,{scope:e.__scopeAccordion,value:d,onItemOpen:u,onItemClose:f,children:(0,i.jsx)(q,{scope:e.__scopeAccordion,collapsible:!0,children:(0,i.jsx)(F,{...l,ref:r})})})}),[U,z]=S(N),F=n.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:o,dir:l,orientation:s="vertical",...u}=e,f=n.useRef(null),p=(0,a.s)(f,r),m=D(t),v="ltr"===function(e){let r=n.useContext(k);return e||r||"ltr"}(l),h=(0,d.m)(e.onKeyDown,e=>{var r;
1if(!I.includes(e.key))return;let t=e.target,n=m().filter(e=>{var r;return!(null===(r=e.ref.current)||void 0===r?void 0:r.disabled)}),o=n.findIndex(e=>e.ref.current===t),a=n.length;if(-1===o)return;e.preventDefault();let l=o,i=a-1,d=()=>{(l=o+1)>i&&(l=0)},c=()=>{(l=o-1)<0&&(l=i)};switch(e.key){case"Home":l=0;break;case"End":l=i;break;case"ArrowRight":"horizontal"===s&&(v?d():c());break;case"ArrowDown":"vertical"===s&&d();break;case"ArrowLeft":"horizontal"===s&&(v?c():d());break;case"ArrowUp":"vertical"===s&&c()}null===(r=n[l%a].ref.current)||void 0===r||r.focus()});return(0,i.jsx)(U,{scope:t,disabled:o,direction:l,orientation:s,children:(0,i.jsx)(_.Slot,{scope:t,children:(0,i.jsx)(c.sG.div,{...u,"data-orientation":s,ref:p,onKeyDown:o?void 0:h})})})}),K="AccordionItem",[X,Y]=S(K),J=n.forwardRef((e,r)=>{let{__scopeAccordion:t,value:n,...o}=e,a=z(K,t),l=T(K,t),d=M(t),s=(0,p.B)(),c=n&&l.value.includes(n)||!1,u=a.disabled||e.disabled;return(0,i.jsx)(X,{scope:t,open:c,disabled:u,triggerId:s,children:(0,i.jsx)(w,{"data-orientation":a.orientation,"data-state":er(c),...d,...o,ref:r,disabled:u,open:c,onOpenChange:e=>{e?l.onItemOpen(n):l.onItemClose(n)}})})});J.displayName=K;var Q="AccordionHeader",V=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,o=z(N,t),a=Y(Q,t);return(0,i.jsx)(c.sG.h3,{"data-orientation":o.orientation,"data-state":er(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:r})});V.displayName=Q;var W="AccordionTrigger",Z=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,o=z(N,t),a=Y(W,t),l=L(W,t),d=M(t);return(0,i.jsx)(_.ItemSlot,{scope:t,children:(0,i.jsx)(y,{"aria-disabled":a.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...d,...n,ref:r})})});Z.displayName=W;var $="AccordionContent",ee=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,o=z(N,t),a=Y($,t),l=M(t);return(0,i.jsx)(g,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...l,...n,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=$;var et=P,en=J,eo=V,ea=Z,el=ee},66474:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(19946).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])}}]); 2//# sourceMappingURL=8269-2ca1dbfc72edbe27.js.map
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.