1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,440053,e=>{"use strict";var t=e.i(884702),r=e.i(466471),n=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},i=d("FrameworkContext",{useParams:n,useRouter:n,usePathname:n});function o({Link:e,useRouter:n,useParams:o,usePathname:a,Image:s,children:l}){let u=t.default.useMemo(()=>({usePathname:a,useRouter:n,Link:e,Image:s,useParams:o}),[e,a,n,o,s]);return(0,r.jsx)(i.Provider,{value:u,children:l})}function a(){return i.use().usePathname()}function s(){return i.use().useRouter()}function l(){return i.use().useParams()}function u(e){let{Image:t}=i.use();if(!t){let{src:t,alt:n,priority:i,...o}=e;return(0,r.jsx)("img",{alt:n,src:t,fetchPriority:i?"high":"auto",...o})}return(0,r.jsx)(t,{...e})}function c(e){let{Link:t}=i.use();if(!t){let{href:t,prefetch:n,...i}=e;return(0,r.jsx)("a",{href:t,...i})}return(0,r.jsx)(t,{...e})}function d(e,n){let i=t.default.createContext(n);return{Provider:e=>(0,r.jsx)(i.Provider,{value:e.value,children:e.children}),use:r=>{let n=t.default.useContext(i);if(!n)throw Error(r??`Provider of ${e} is required but missing.`);return n}}}e.s(["FrameworkProvider",()=>o,"Image",()=>u,"Link",()=>c,"createContext",()=>d,"useParams",()=>l,"usePathname",()=>a,"useRouter",()=>s])},368035,e=>{"use strict";Object.prototype.hasOwnProperty,e.s([])},119635,927646,e=>{"use strict";var t=e.i(440053),r=e.i(884702),n=e.i(466471),i=(0,r.forwardRef)(({href:e="#",external:r=e.match(/^\w+:/)||e.startsWith("//"),prefetch:i,...o},a)=>r?(0,n.jsx)("a",{ref:a,href:e,rel:"noreferrer noopener",target:"_blank",...o,children:o.children}):(0,n.jsx)(t.Link,{ref:a,href:e,prefetch:i,...o}));i.displayName="Link",e.s(["Link",()=>i],927646),e.i(368035),e.s([],119635)},910416,e=>{"use strict";e.i(440053),e.i(368035),e.s([])},857073,266438,e=>{"use strict";e.s([],857073);var t=e.i(249398);e.s(["cn",()=>t.twMerge],266438)},72805,e=>{"use strict";var t=e.i(466471),r=e.i(884702);e.i(857073);var n=e.i(266438);let i={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"},o=(e,o)=>{let a=(0,r.forwardRef)(({className:e,size:a=24,color:s="currentColor",children:l,...u},c)=>(0,t.jsxs)("svg",{ref:c,...i,width:a,height:a,stroke:s,className:(0,n.cn)("lucide",e),...u,children:[o.map(([e,t])=>(0,r.createElement)(e,t)),l]}));return a.displayName=e,a};o("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),o("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),o("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),o("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),o("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),o("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),o("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),o("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),o("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]),o("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),o("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),o("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);let a=o("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),s=o("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),l=o("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),u=o("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c=o("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);o("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);let d=o("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"2"}]]);o("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),o("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),o("text",[["path",{d:"M15 18H3",key:"olowqp"}],["path",{d:"M17 6H3",key:"16j9eg"}],["path",{d:"M21 12H3",key:"2avoz0"}]]),o("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),o("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),o("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),o("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);let f=o("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);o("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),o("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),o("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),o("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),o("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),o("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),e.s(["Check",0,l,"CircleCheck",0,a,"CircleX",0,s,"Clipboard",0,d,"Info",0,c,"Link",0,f,"TriangleAlert",0,u])},739188,e=>{"use strict";e.i(368035);var t=e.i(884702);function r(e){let r=(0,t.useRef)(e);return r.current=e,(0,t.useCallback)((...e)=>r.current(...e),[])}e.s(["useEffectEvent",()=>r])},93194,121978,e=>{"use strict";var t=e.i(884702),r=e.i(739188);function n(e){let[n,i]=(0,t.useState)(!1),o=(0,t.useRef)(null),a=(0,r.useEffectEvent)(()=>{o.current&&window.clearTimeout(o.current),Promise.resolve(e()).then(()=>{i(!0),o.current=window.setTimeout(()=>{i(!1)},1500)})});return(0,t.useEffect)(()=>()=>{o.current&&window.clearTimeout(o.current)},[]),[n,a]}e.s(["useCopyButton",()=>n],93194);var i=e.i(294237);
1let o={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},a=(0,i.cva)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none",{variants:{variant:o,color:o,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});e.s(["buttonVariants",0,a],121978)},315754,e=>{"use strict";function t(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}e.s(["mergeRefs",()=>t])},878237,e=>{"use strict";var t=e.i(466471),r=e.i(72805),n=e.i(884702);e.i(857073);var i=e.i(266438),o=e.i(93194),a=e.i(121978),s=e.i(411960),l=e.i(315754),u=e.i(739188);let c=new Map,d=(0,n.createContext)(null),f=s.TabsList,p=s.TabsTrigger;function h({ref:e,groupId:r,persist:i=!1,updateAnchor:o=!1,defaultValue:a,value:f,onValueChange:p,...h}){let m=(0,n.useRef)(null),[y,v]=void 0===f?(0,n.useState)(a):[f,p??(()=>void 0)],x=(0,u.useEffectEvent)(e=>v(e)),g=(0,n.useMemo)(()=>new Map,[]);return(0,n.useLayoutEffect)(()=>{let e;if(!r)return;let t=i?localStorage.getItem(r):sessionStorage.getItem(r);return t&&x(t),(e=c.get(r)??[]).push(x),c.set(r,e),()=>{let e;e=c.get(r)??[],c.set(r,e.filter(e=>e!==x))}},[r,x,i]),(0,n.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[t,r]of g.entries())if(r===e){x(t),m.current?.scrollIntoView();break}}},[x,g]),(0,t.jsx)(s.Tabs,{ref:(0,l.mergeRefs)(e,m),value:y,onValueChange:e=>{if(o){let t=g.get(e);t&&window.history.replaceState(null,"",`#${t}`)}r?(c.get(r)?.forEach(t=>{t(e)}),i?localStorage.setItem(r,e):sessionStorage.setItem(r,e)):v(e)},...h,children:(0,t.jsx)(d.Provider,{value:(0,n.useMemo)(()=>({valueToIdMap:g}),[g]),children:h.children})})}function m({value:e,...r}){let{valueToIdMap:i}=function(){let e=(0,n.useContext)(d);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return r.id&&i.set(e,r.id),(0,t.jsx)(s.TabsContent,{value:e,...r,children:r.children})}let y=(0,n.createContext)(null);function v(e){return(0,t.jsx)("pre",{...e,className:(0,i.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function x({ref:e,title:r,allowCopy:o=!0,keepBackground:a=!1,icon:s,viewportProps:l={},children:u,Actions:c=e=>(0,t.jsx)("div",{...e,className:(0,i.cn)("empty:hidden",e.className)}),...d}){let f=null!==(0,n.useContext)(y),p=(0,n.useRef)(null);return(0,t.jsxs)("figure",{ref:e,dir:"ltr",...d,className:(0,i.cn)(f?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",a&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm outline-none not-prose overflow-hidden text-sm",d.className),children:[r?(0,t.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof s?(0,t.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:s}}):s,(0,t.jsx)("figcaption",{className:"flex-1 truncate",children:r}),c({className:"-me-2",children:o&&(0,t.jsx)(g,{containerRef:p})})]}):c({className:"absolute top-2 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:o&&(0,t.jsx)(g,{containerRef:p})}),(0,t.jsx)("div",{ref:p,...l,className:(0,i.cn)("text-[13px] py-3.5 overflow-auto max-h-[600px] fd-scroll-container",l.className),style:{"--padding-right":r?void 0:"calc(var(--spacing) * 8)",counterSet:d["data-line-numbers"]?`line ${Number(d["data-line-numbers-start"]??1)-1}`:void 0,...l.style},children:u})]})}function g({className:e,containerRef:n,...s}){let[l,u]=(0,o.useCopyButton)(()=>{let e=n.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,t.jsx)("button",{type:"button",className:(0,i.cn)((0,a.buttonVariants)({className:"hover:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":l?"Copied Text":"Copy Text",onClick:u,...s,children:l?(0,t.jsx)(r.Check,{}):(0,t.jsx)(r.Clipboard,{})})}function b({ref:e,...r}){let o=(0,n.useRef)(null),a=null!==(0,n.useContext)(y);return(0,t.jsx)(h,{ref:(0,l.mergeRefs)(o,e),...r,className:(0,i.cn)("bg-fd-card rounded-xl border",!a&&"my-4",r.className),children:(0,t.jsx)(y.Provider,{value:(0,n.useMemo)(()=>({containerRef:o,nested:a}
1),[a]),children:r.children})})}function k(e){return(0,t.jsx)(f,{...e,className:(0,i.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})}function w({children:e,...r}){return(0,t.jsxs)(p,{...r,className:(0,i.cn)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",r.className),children:[(0,t.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})}function C(e){return(0,t.jsx)(m,{...e})}e.s(["CodeBlock",()=>x,"CodeBlockTab",()=>C,"CodeBlockTabs",()=>b,"CodeBlockTabsList",()=>k,"CodeBlockTabsTrigger",()=>w,"Pre",()=>v],878237)},82838,e=>{"use strict";var t=e.i(884702),r=e.i(291967),n=e.i(408896),i=e.i(188625),o=e.i(352162),a=e.i(987438),s=e.i(6140),l=e.i(935125),u=e.i(575301),c=e.i(950074),d=e.i(466471),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[m,y,v]=(0,n.createCollection)(h),[x,g]=(0,o.createContextScope)(h,[v]),[b,k]=x(h),w=t.forwardRef((e,t)=>(0,d.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(C,{...e,ref:t})})}));w.displayName=h;var C=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,orientation:a,loop:m=!1,dir:v,currentTabStopId:x,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:k,onEntryFocus:w,preventScrollOnEntryFocus:C=!1,...R}=e,j=t.useRef(null),N=(0,i.useComposedRefs)(n,j),E=(0,c.useDirection)(v),[S,A]=(0,u.useControllableState)({prop:x,defaultProp:g??null,onChange:k,caller:h}),[I,T]=t.useState(!1),P=(0,l.useCallbackRef)(w),O=y(o),D=t.useRef(!1),[_,z]=t.useState(0);return t.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(f,P),()=>e.removeEventListener(f,P)},[P]),(0,d.jsx)(b,{scope:o,orientation:a,dir:E,loop:m,currentTabStopId:S,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>T(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,d.jsx)(s.Primitive.div,{tabIndex:I||0===_?-1:0,"data-orientation":a,...R,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),C)}}D.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>T(!1))})})}),R="RovingFocusGroupItem",j=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,focusable:o=!0,active:l=!1,tabStopId:u,children:c,...f}=e,p=(0,a.useId)(),h=u||p,v=k(R,i),x=v.currentTabStopId===h,g=y(i),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:C}=v;return t.useEffect(()=>{if(o)return b(),()=>w()},[o,b,w]),(0,d.jsx)(m.ItemSlot,{scope:i,id:h,focusable:o,active:l,children:(0,d.jsx)(s.Primitive.span,{tabIndex:x?0:-1,"data-orientation":v.orientation,...f,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{o?v.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>v.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return N[i]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=v.loop?(r=i,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(o+1)}setTimeout(()=>M(i))}}),children:"function"==typeof c?c({isCurrentTabStop:x,hasTabStop:null!=C}):c})})});j.displayName=R;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>j,"Root",()=>w,"createRovingFocusGroupScope",()=>g])},411960,e=>{"use strict";var t=e.i(884702),r=e.i(291967),n=e.i(352162),i=e.i(82838),o=e.i(775827),a=e.i(6140),s=e.i(950074),l=e.i(575301),u=e.i(987438),c=e.i(466471),d="Tabs",[f,p]=(0,n.createContextScope)(d,[i.createRovingFocusGroupScope]),h=(0,i.createRovingFocusGroupScope)(),[m,y]=f(d),v=t.forwardRef((e,t)=>
1{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:f="horizontal",dir:p,activationMode:h="automatic",...y}=e,v=(0,s.useDirection)(p),[x,g]=(0,l.useControllableState)({prop:n,onChange:i,defaultProp:o??"",caller:d});return(0,c.jsx)(m,{scope:r,baseId:(0,u.useId)(),value:x,onValueChange:g,orientation:f,dir:v,activationMode:h,children:(0,c.jsx)(a.Primitive.div,{dir:v,"data-orientation":f,...y,ref:t})})});v.displayName=d;var x="TabsList",g=t.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,s=y(x,r),l=h(r);return(0,c.jsx)(i.Root,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:n,children:(0,c.jsx)(a.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});g.displayName=x;var b="TabsTrigger",k=t.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,disabled:s=!1,...l}=e,u=y(b,n),d=h(n),f=R(u.baseId,o),p=j(u.baseId,o),m=o===u.value;return(0,c.jsx)(i.Item,{asChild:!0,...d,focusable:!s,active:m,children:(0,c.jsx)(a.Primitive.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:f,...l,ref:t,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(o)}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(o)}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==u.activationMode;m||s||!e||u.onValueChange(o)})})})});k.displayName=b;var w="TabsContent",C=t.forwardRef((e,r)=>{let{__scopeTabs:n,value:i,forceMount:s,children:l,...u}=e,d=y(w,n),f=R(d.baseId,i),p=j(d.baseId,i),h=i===d.value,m=t.useRef(h);return t.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(o.Presence,{present:s||h,children:({present:t})=>(0,c.jsx)(a.Primitive.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!t,id:p,tabIndex:0,...u,ref:r,style:{...e.style,animationDuration:m.current?"0s":void 0},children:t&&l})})});function R(e,t){return`${e}-trigger-${t}`}function j(e,t){return`${e}-content-${t}`}C.displayName=w,e.s(["Content",()=>C,"List",()=>g,"Root",()=>v,"Tabs",()=>v,"TabsContent",()=>C,"TabsList",()=>g,"TabsTrigger",()=>k,"Trigger",()=>k])},819232,188625,e=>{"use strict";var t=e.i(884702);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,i=e.map(e=>{let i=r(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():r(e[t],null)}}}}function i(...e){return t.useCallback(n(...e),e)}e.s(["composeRefs",()=>n,"useComposedRefs",()=>i],188625);var o=e.i(466471);function a(e){var r;let i,a=(r=e,(i=t.forwardRef((e,r)=>{let{children:i,...o}=e;if(t.isValidElement(i)){var a;let e,s,l=(a=i,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,i.props);return i.type!==t.Fragment&&(u.ref=r?n(r,l):l),t.cloneElement(i,u)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,i),s=t.forwardRef((e,r)=>{let{children:n,...i}=e,s=t.Children.toArray(n),l=s.find(c);if(l){let e=l.props.children,n=s.map(r=>r!==l?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,o.jsx)(a,{...i,ref:r,children:n})});return s.displayName=`${e}.Slot`,s}var s=a("Slot"),l=Symbol("radix.slottable");function u(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=l,t}function c(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}e.s(["Slot",()=>s,"createSlot",()=>a,"createSlottable",()=>u],819232)},6140,e=>{"use strict";var t=e.i(884702),r=e.i(847257),n=e.i(819232),i=e.i(466471),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let o=(0,n.createSlot)(`Primitive.${r}`),a=t.forwardRef((e,t)=>
1{let{asChild:n,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(n?o:r,{...a,ref:t})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});function a(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>o,"dispatchDiscreteCustomEvent",()=>a])},291967,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return r?.(t)}}"undefined"!=typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},352162,385064,e=>{"use strict";var t=e.i(884702),r=e.i(466471);function n(e,n){let i=t.createContext(n),o=e=>{let{children:n,...o}=e,a=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(i.Provider,{value:a,children:n})};return o.displayName=e+"Provider",[o,function(r){let o=t.useContext(i);if(o)return o;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function i(e,n=[]){let o=[],a=()=>{let r=o.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(n,i){let a=t.createContext(i),s=o.length;o=[...o,i];let l=n=>{let{scope:i,children:o,...l}=n,u=i?.[e]?.[s]||a,c=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(r,o){let l=o?.[e]?.[s]||a,u=t.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(a,...n)]}e.s(["createContext",()=>n,"createContextScope",()=>i],352162);var o=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>o],385064)},575301,e=>{"use strict";var t=e.i(884702),r=e.i(385064);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function i({prop:e,defaultProp:r,onChange:i=()=>{},caller:o}){let[a,s,l]=function({defaultProp:e,onChange:r}){let[i,o]=t.useState(e),a=t.useRef(i),s=t.useRef(r);return n(()=>{s.current=r},[r]),t.useEffect(()=>{a.current!==i&&(s.current?.(i),a.current=i)},[i,a]),[i,o,s]}({defaultProp:r,onChange:i}),u=void 0!==e,c=u?e:a;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}r.current=u},[u,o])}return[c,t.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>i],575301)},987438,e=>{"use strict";var t=e.i(884702),r=e.i(385064),n=t[" useId ".trim().toString()]||(()=>void 0),i=0;function o(e){let[o,a]=t.useState(n());return(0,r.useLayoutEffect)(()=>{e||a(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}e.s(["useId",()=>o])},775827,e=>{"use strict";var t=e.i(884702),r=e.i(188625),n=e.i(385064),i=e=>{var i;let a,s,{present:l,children:u}=e,c=function(e){var r,i;let[a,s]=t.useState(),l=t.useRef(null),u=t.useRef(e),c=t.useRef("none"),[d,f]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=o(l.current);c.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=o(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>
1{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let n=o(l.current).includes(CSS.escape(r.animationName));if(r.target===a&&n&&(f("ANIMATION_END"),!u.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},n=e=>{e.target===a&&(c.current=o(l.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{l.current=e?getComputedStyle(e):null,s(e)},[])}}(l),d="function"==typeof u?u({present:c.isPresent}):t.Children.only(u),f=(0,r.useComposedRefs)(c.ref,(i=d,(s=(a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.ref:(s=(a=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof u||c.isPresent?t.cloneElement(d,{ref:f}):null};function o(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",()=>i])},935125,e=>{"use strict";var t=e.i(884702);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}e.s(["useCallbackRef",()=>r])},408896,e=>{"use strict";var t=e.i(884702),r=e.i(352162),n=e.i(188625),i=e.i(819232),o=e.i(466471);function a(e){let a=e+"CollectionProvider",[s,l]=(0,r.createContextScope)(a),[u,c]=s(a,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,o.jsx)(u,{scope:r,itemMap:a,collectionRef:i,children:n})};d.displayName=a;let f=e+"CollectionSlot",p=(0,i.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=c(f,r),s=(0,n.useComposedRefs)(t,a.collectionRef);return(0,o.jsx)(p,{ref:s,children:i})});h.displayName=f;let m=e+"CollectionItemSlot",y="data-radix-collection-item",v=(0,i.createSlot)(m),x=t.default.forwardRef((e,r)=>{let{scope:i,children:a,...s}=e,l=t.default.useRef(null),u=(0,n.useComposedRefs)(r,l),d=c(m,i);return t.default.useEffect(()=>(d.itemMap.set(l,{ref:l,...s}),()=>void d.itemMap.delete(l))),(0,o.jsx)(v,{...{[y]:""},ref:u,children:a})});return x.displayName=m,[{Provider:d,Slot:h,ItemSlot:x},function(r){let n=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},l]}var s=new WeakMap;function l(e,t){var r,n;let i,o,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,i=r.length,(a=(o=u(n))>=0?o:i+o)<0||a>=i?-1:a);return -1===s?void 0:e[s]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],s.set(this,!0)}set(e,t){return s.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,a=u(e),s=a>=0?a:o+a,l=s<0||s>=o?-1:s;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!i;a<0&&s++;let d=[...this.#e],f=!1;for(let e=s;e<c;e++)if(s===e){let o=d[e];d[e]===t&&(o=d[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}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 void 0!==t&&this.delete(t)}at(e){let t=l(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=l(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return l(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>a])},950074,e=>{"use strict";var t=e.i(884702);e.i(466471);var r=t.createContext(void 0);function n(e){let n=t.useContext(r);return e||n||"ltr"}e.s(["useDirection",()=>n])},670805,e=>{"use strict";let t=(0,e.i(889522).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",()=>t])},155062,e=>{"use strict";var t=e.i(884702),r=e.i(291967),n=e.i(352162),i=e.i(575301),o=e.i(385064),a=e.i(188625),s=e.i(6140),l=e.i(775827),u=e.i(987438),c=e.i(466471),d="Collapsible",[f,p]=(0,n.createContextScope)(d),[h,m]=f(d),y=t.forwardRef((e,r)=>{let{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:l,onOpenChange:f,...p}=e,[m,y]=(0,i.useControllableState)({prop:o,defaultProp:a??!1,onChange:f,caller:d});return(0,c.jsx)(h,{scope:n,disabled:l,contentId:(0,u.useId)(),open:m,onOpenToggle:t.useCallback(()=>y(e=>!e),[y]),children:(0,c.jsx)(s.Primitive.div,{"data-state":w(m),"data-disabled":l?"":void 0,...p,ref:r})})});y.displayName=d;var v="CollapsibleTrigger",x=t.forwardRef((e,t)=>{let{__scopeCollapsible:n,...i}=e,o=m(v,n);return(0,c.jsx)(s.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":w(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,o.onOpenToggle)})});x.displayName=v;var g="CollapsibleContent",b=t.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=m(g,e.__scopeCollapsible);return(0,c.jsx)(l.Presence,{present:r||i.open,children:({present:e})=>(0,c.jsx)(k,{...n,ref:t,present:e})})});b.displayName=g;var k=t.forwardRef((e,r)=>{let{__scopeCollapsible:n,present:i,children:l,...u}=e,d=m(g,n),[f,p]=t.useState(i),h=t.useRef(null),y=(0,a.useComposedRefs)(r,h),v=t.useRef(0),x=v.current,b=t.useRef(0),k=b.current,C=d.open||f,R=t.useRef(C),j=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,o.useLayoutEffect)(()=>{let e=h.current;if(e){j.current=j.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,b.current=t.width,R.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),p(i)}},[d.open,i]),(0,c.jsx)(s.Primitive.div,{"data-state":w(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C,...u,ref:y,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":k?`${k}px`:void 0,...e.style},children:C&&l})});function w(e){return e?"open":"closed"}e.s(["CollapsibleContent",()=>b,"CollapsibleTrigger",()=>x,"Content",()=>b,"Root",()=>y,"Trigger",()=>x,"createCollapsibleScope",()=>p])},152378,e=>{"use strict";var t=e.i(670805);e.s(["ChevronDownIcon",()=>t.default])},184499,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(352162),o=e.i(408896),a=e.i(188625),s=e.i(291967),l=e.i(575301),u=e.i(6140),c=e.i(155062),d=e.i(987438),f=e.i(950074),p="Accordion",h=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[m,y,v]=(0,o.createCollection)(p),[x,g]=(0,i.createContextScope)(p,[v,c.createCollapsibleScope]),b=(0,c.createCollapsibleScope)(),k=n.default.forwardRef((e,r)=>{let{type:n,...i}=e;return(0,t.jsx)(m.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(M,{...i,ref:r}):(0,t.jsx)(N,{...i,ref:r})})});k.displayName=p;var[w,C]=x(p),[R,j]=x(p,{collapsible:!1}),N=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:o,onValueChange:a=()=>{},collapsible:s=!1,...u}=e,[c,d]=(0,l.useControllableState)({prop:i,defaultProp:o??"",onChange:a,caller:p});return(0,t.jsx)(w,{scope:e.__scopeAccordion,value:n.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:n.default.useCallback(()=>s&&d(""),[s,d]),children:(0,t.jsx)(R,{scope:e.__scopeAccordion,collapsible:s,children:(0,t.jsx)(A,{...u,ref:r})})})}),M=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:o,onValueChange:a=()=>{},...s}=e,[u,c]=(0,l.useControllableState)({prop:i,defaultProp:o??[],onChange:a,caller:p}),d=n.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),f=n.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(w,{scope:e.__scopeAccordion,value:u,onItemOpen:d,onItemClose:f,children:(0,t.jsx)(R,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(A,{...s,ref:r})})})}),[E,S]=x(p),A=n.default.forwardRef((e,r)=>{let{__scopeAccordion:i,disabled:o,dir:l,orientation:c="vertical",...d}=e,p=n.default.useRef(null),v=(0,a.useComposedRefs)(p,r),x=y(i),g="ltr"===(0,f.useDirection)(l),b=(0,s.composeEventHandlers)(e.onKeyDown,e=>
1{if(!h.includes(e.key))return;let t=e.target,r=x().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let o=n,a=i-1,s=()=>{(o=n+1)>a&&(o=0)},l=()=>{(o=n-1)<0&&(o=a)};switch(e.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===c&&(g?s():l());break;case"ArrowDown":"vertical"===c&&s();break;case"ArrowLeft":"horizontal"===c&&(g?l():s());break;case"ArrowUp":"vertical"===c&&l()}let u=o%i;r[u].ref.current?.focus()});return(0,t.jsx)(E,{scope:i,disabled:o,direction:l,orientation:c,children:(0,t.jsx)(m.Slot,{scope:i,children:(0,t.jsx)(u.Primitive.div,{...d,"data-orientation":c,ref:v,onKeyDown:o?void 0:b})})})}),I="AccordionItem",[T,P]=x(I),O=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,value:i,...o}=e,a=S(I,n),s=C(I,n),l=b(n),u=(0,d.useId)(),f=i&&s.value.includes(i)||!1,p=a.disabled||e.disabled;return(0,t.jsx)(T,{scope:n,open:f,disabled:p,triggerId:u,children:(0,t.jsx)(c.Root,{"data-orientation":a.orientation,"data-state":q(f),...l,...o,ref:r,disabled:p,open:f,onOpenChange:e=>{e?s.onItemOpen(i):s.onItemClose(i)}})})});O.displayName=I;var D="AccordionHeader",_=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,o=S(p,n),a=P(D,n);return(0,t.jsx)(u.Primitive.h3,{"data-orientation":o.orientation,"data-state":q(a.open),"data-disabled":a.disabled?"":void 0,...i,ref:r})});_.displayName=D;var z="AccordionTrigger",L=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,o=S(p,n),a=P(z,n),s=j(z,n),l=b(n);return(0,t.jsx)(m.ItemSlot,{scope:n,children:(0,t.jsx)(c.Trigger,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...i,ref:r})})});L.displayName=z;var H="AccordionContent",F=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,o=S(p,n),a=P(H,n),s=b(n);return(0,t.jsx)(c.Content,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...i,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function q(e){return e?"open":"closed"}F.displayName=H;var $=e.i(152378),V=e.i(526683);function U(e){let n,i,o=(0,r.c)(4);return o[0]!==e?({...n}=e,o[0]=e,o[1]=n):n=o[1],o[2]!==n?(i=(0,t.jsx)(k,{"data-slot":"accordion",...n}),o[2]=n,o[3]=i):i=o[3],i}function B(e){let n,i,o,a,s=(0,r.c)(8);return s[0]!==e?({className:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]),s[3]!==n?(o=(0,V.cn)("border-b last:border-b-0",n),s[3]=n,s[4]=o):o=s[4],s[5]!==i||s[6]!==o?(a=(0,t.jsx)(O,{"data-slot":"accordion-item",className:o,...i}),s[5]=i,s[6]=o,s[7]=a):a=s[7],a}function K(e){let n,i,o,a,s,l,u=(0,r.c)(11);return u[0]!==e?({className:i,children:n,...o}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=o):(n=u[1],i=u[2],o=u[3]),u[4]!==i?(a=(0,V.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",i),u[4]=i,u[5]=a):a=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)($.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}),u[6]=s):s=u[6],u[7]!==n||u[8]!==o||u[9]!==a?(l=(0,t.jsx)(_,{className:"flex",children:(0,t.jsxs)(L,{"data-slot":"accordion-trigger",className:a,...o,children:[n,s]})}),u[7]=n,u[8]=o,u[9]=a,u[10]=l):l=u[10],l}function W(e){let n,i,o,a,s,l,u=(0,r.c)(12);return u[0]!==e?({className:i,children:n,...o}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=o):(n=u[1],i=u[2],o=u[3]),u[4]!==i?(a=(0,V.cn)("pt-0 pb-4",i),u[4]=i,u[5]=a):a=u[5],u[6]!==n||u[7]!==a?(s=(0,t.jsx)("div",{className:a,children:n}),u[6]=n,u[7]=a,u[8]=s):s=u[8],u[9]!==o||u[10]!==s?(l=(0,t.jsx)(F,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...o,children:s}),u[9]=o,u[10]=s,u[11]=l):l=u[11],l}e.s(["Accordion",()=>U,"AccordionContent",()=>W,"AccordionItem",()=>B,"AccordionTrigger",()=>K],184499)}]);
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.