(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69206,e=>{"use strict";var t=e.i(47091),r=e.i(93909);let s=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={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"};let o=(0,r.createContext)({}),i=(0,r.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:i,className:l="",children:c,iconNode:u,...d},h)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:g=!1,color:f="currentColor",className:x=""}=(0,r.useContext)(o)??{},w=i??g?24*Number(n??p)/Number(t??m):n??p;return(0,r.createElement)("svg",{ref:h,...a,width:t??m??a.width,height:t??m??a.height,stroke:e??f,strokeWidth:w,className:s("lucide",x,l),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let a=(0,r.forwardRef)(({className:a,...o},l)=>(0,r.createElement)(i,{ref:l,iconNode:t,className:s(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...o}));return a.displayName=n(e),a},c=l("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),u=l("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["CollapsibleSection",0,function({title:e,defaultOpen:s=!1,children:n,headerRight:a,className:o="",persistKey:i}){let[l,d]=(0,r.useState)(()=>(function(e,t){if(!e)return t;try{let r=window.localStorage.getItem(e);if("1"===r)return!0;if("0"===r)return!1;return t}catch{return t}})(i,s));return(0,t.jsxs)("div",{className:`rounded-md border border-gray-200 ${o}`,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{d(e=>{let t=!e;if(i)try{window.localStorage.setItem(i,t?"1":"0")}catch{}return t})},"aria-expanded":l,className:"flex w-full items-center justify-between gap-2 px-3 py-2 text-left text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(l?c:u,{className:"h-4 w-4 text-gray-500","aria-hidden":!0}),(0,t.jsx)("span",{children:e})]}),a?(0,t.jsx)("span",{className:"ml-auto",children:a}):null]}),l?(0,t.jsx)("div",{className:"border-t border-gray-200 p-3",children:n}):null]})}],69206)},17323,(e,t,r)=>{t.exports=e.r(93659)},86244,e=>{"use strict";var t=e.i(47091),r=e.i(17323);e.s(["ProjectSwitcher",0,function({projects:e,currentProject:s}){let n=(0,r.useRouter)();return e.length<=1?null:(0,t.jsxs)("label",{className:"flex items-center gap-2 text-xs text-gray-500",children:[(0,t.jsx)("span",{children:"Project"}),(0,t.jsx)("select",{"data-testid":"project-switcher",className:"rounded-md border border-gray-300 bg-white px-2 py-1 text-sm text-gray-800 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500",value:s,onChange:e=>{let t=e.currentTarget.value;t!==s&&n.push(`/p/${t}/`)},children:e.map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e.name))})]})}])}]);