!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a099a4-bb45-7f41-bf18-d3c9a58bc2df")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,512357,741485,58115,e=>{"use strict";var t=e.i(270401),r=e.i(120102),n=e.i(86222),i=e.i(228876),o=e.i(361409),l=e.i(192291),u=e.i(271710),s=e.i(365054),a=e.i(686738),c=e.i(302113),d=e.i(991066),f=e.i(939550),m=e.i(467219),v=e.i(846755),h=e.i(861187);function g(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function p(e,t){return g(t,e===h.ARROW_UP||e===h.ARROW_DOWN,e===h.ARROW_LEFT||e===h.ARROW_RIGHT)}function x(e,t,r){return g(t,e===h.ARROW_DOWN,r?e===h.ARROW_LEFT:e===h.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,b){let E="rootStore"in e?e.rootStore:e,y=E.useState("open"),R=E.useState("floatingElement"),k=E.useState("domReferenceElement"),L=E.context.dataRef,{listRef:w,activeIndex:O,onNavigate:I=()=>{},enabled:C=!0,selectedIndex:N=null,allowEscape:S=!1,loopFocus:T=!1,nested:A=!1,rtl:M=!1,virtual:_=!1,focusItemOnOpen:D="auto",focusItemOnHover:W=!0,openOnArrowKeyDown:P=!0,disabledIndices:j,orientation:F="vertical",parentOrientation:B,cols:V=1,id:U,resetOnPointerLeave:z=!0,externalTree:G}=b,H=(0,s.getFloatingFocusElement)(R),K=(0,n.useValueAsRef)(H),q=(0,d.useFloatingParentNodeId)(),Y=(0,d.useFloatingTree)(G);(0,o.useIsoLayoutEffect)(()=>{L.current.orientation=F},[L,F]);let J=(0,s.isTypeableCombobox)(k),$=t.useRef(D),X=t.useRef(N??-1),Q=t.useRef(null),Z=t.useRef(!0),ee=(0,i.useStableCallback)(e=>{I(-1===X.current?null:X.current,e)}),et=t.useRef(ee),er=t.useRef(!!R),en=t.useRef(y),ei=t.useRef(!1),eo=t.useRef(!1),el=t.useRef(null),eu=(0,n.useValueAsRef)(j),es=(0,n.useValueAsRef)(y),ea=(0,n.useValueAsRef)(N),ec=(0,n.useValueAsRef)(z),ed=(0,i.useStableCallback)(()=>{function e(e){_?Y?.events.emit("virtualfocus",e):el.current=(0,v.enqueueFocus)(e,{sync:ei.current,preventScroll:!0})}let t=w.current[X.current],r=eo.current;t&&e(t),(ei.current?e=>e():requestAnimationFrame)(()=>{let n=w.current[X.current]||t;!n||(t||e(n),ev&&(r||!Z.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,o.useIsoLayoutEffect)(()=>{C&&(y&&R?(X.current=N??-1,$.current&&null!=N&&(eo.current=!0,ee())):er.current&&(X.current=-1,et.current()))},[C,y,R,N,ee]),(0,o.useIsoLayoutEffect)(()=>{if(C){if(!y){ei.current=!1;return}if(R)if(null==O){if(ei.current=!1,null!=ea.current)return;if(er.current&&(X.current=-1,ed()),(!en.current||!er.current)&&$.current&&(null!=Q.current||!0===$.current&&null==Q.current)){let e=0,t=()=>{null==w.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(X.current=null==Q.current||x(Q.current,F,M)||A?(0,c.getMinListIndex)(w):(0,c.getMaxListIndex)(w),Q.current=null,ee())};t()}}else(0,c.isIndexOutOfListBounds)(w.current,O)||(X.current=O,ed(),eo.current=!1)}},[C,y,R,O,ea,A,w,F,M,ee,ed,eu]),(0,o.useIsoLayoutEffect)(()=>{if(!C||R||!Y||_||!er.current)return;let e=Y.nodesRef.current,t=e.find(e=>e.id===q)?.context?.elements.floating,r=(0,u.activeElement)((0,l.ownerDocument)(R)),n=e.some(e=>e.context&&(0,u.contains)(e.context.elements.floating,r));t&&!n&&Z.current&&t.focus({preventScroll:!0})},[C,R,Y,q,_]),(0,o.useIsoLayoutEffect)(()=>{et.current=ee,en.current=y,er.current=!!R}),(0,o.useIsoLayoutEffect)(()=>{y||(Q.current=null,$.current=D)},[y,D]);let ef=null!=O,em=(0,i.useStableCallback)(e=>{if(!es.current)return;let t=w.current.indexOf(e.currentTarget);-1!==t&&(X.current!==t||O!==t)&&(X.current=t,ee(e))}),ev=t.useMemo(()=>({onFocus(e){ei.current=!0,em(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){ei.current=!0,eo.current=!1,W&&em(e)},onPointerLeave(e){if(!es.current||!Z.current||"touch"===e.pointerType)return;ei.current=!0;let t=e.relatedTarget;if(!(!W||w.current.includes(t))&&ec.current&&(el.current?.(),el.current=null,X.current=-1,ee(e),!_)){let e=K.current,t=(0,u.activeElement)((0,l.ownerDocument)(e));e&&(0,u.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[em,es,K,W,w,ee,ec,_]),eh=t.useCallback(()=>B??Y?.nodesRef.current.find(e=>e.id===q)?.context?.dataRef?.current.orientation,[q,Y,B]),eg=(0,i.useStableCallback)(e=>{var t;let n,i;if(Z.current=!1,ei.current=!0,229===e.which||!es.current&&e.currentTarget===K.current)return;if(A&&(t=e.key,n=M?t===h.ARROW_RIGHT:t===h.ARROW_LEFT,i=t===h.ARROW_UP,"both"===F||"horizontal"===F&&V&&V>1?"Escape"===t:g(F,n,i))){p(e.key,eh())||(0,a.stopEvent)(e),E.setOpen(!1,(0,f.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent)),(0,r.isHTMLElement)(k)&&(_?Y?.events.emit("virtualfocus",k):k.focus());return}let o=X.current,l=(0,c.getMinListIndex)(w,j),s=(0,c.getMaxListIndex)(w,j);if(J||("Home"===e.key&&((0,a.stopEvent)(e),X.current=l,ee(e)),"End"===e.key&&((0,a.stopEvent)(e),X.current=s,ee(e))),V>1){let t=Array.from({length:w.current.length},()=>({width:1,height:1})),r=(0,c.createGridCellMap)(t,V,!1),n=r.findIndex(e=>null!=e&&!(0,c.isListIndexDisabled)(w.current,e,j)),i=r.reduce((e,t,r)=>null==t||(0,c.isListIndexDisabled)(w.current,t,j)?e:r,-1),o=r[(0,c.getGridNavigatedIndex)(r.map(e=>null!=e?w.current[e]:null),{event:e,orientation:F,loopFocus:T,rtl:M,cols:V,disabledIndices:(0,c.getGridCellIndices)([...("function"!=typeof j?j:null)||w.current.map((e,t)=>(0,c.isListIndexDisabled)(w.current,t,j)?t:void 0),void 0],r),minIndex:n,maxIndex:i,prevIndex:(0,c.getGridCellIndexOfCorner)(X.current>s?l:X.current,t,r,V,e.key===h.ARROW_DOWN?"bl":e.key===(M?h.ARROW_LEFT:h.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=o&&(X.current=o,ee(e)),"both"===F)return}if(p(e.key,F)){if((0,a.stopEvent)(e),y&&!_&&(0,u.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){X.current=x(e.key,F,M)?l:s,ee(e);return}x(e.key,F,M)?T?o>=s?S&&o!==w.current.length?X.current=-1:(ei.current=!1,X.current=l):X.current=(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,disabledIndices:j}):X.current=Math.min(s,(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,disabledIndices:j})):T?o<=l?S&&-1!==o?X.current=w.current.length:(ei.current=!1,X.current=s):X.current=(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,decrement:!0,disabledIndices:j}):X.current=Math.max(l,(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,decrement:!0,disabledIndices:j})),(0,c.isIndexOutOfListBounds)(w.current,X.current)&&(X.current=-1),ee(e)}}),ep=t.useMemo(()=>_&&y&&ef&&{"aria-activedescendant":`${U}-${O}`},[_,y,ef,U,O]),ex=t.useMemo(()=>({"aria-orientation":"both"===F?void 0:F,...!J?ep:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&y&&!_){let t=(0,u.getTarget)(e.nativeEvent);if(t&&!(0,u.contains)(K.current,t))return;(0,a.stopEvent)(e),E.setOpen(!1,(0,f.createChangeEventDetails)(m.REASONS.focusOut,e.nativeEvent)),(0,r.isHTMLElement)(k)&&k.focus();return}eg(e)},onPointerMove(){Z.current=!0}}),[ep,eg,K,F,J,E,y,_,k]),eb=t.useMemo(()=>{function e(e){"auto"===D&&(0,a.isVirtualClick)(e.nativeEvent)&&($.current=!_)}function t(e){$.current=D,"auto"===D&&(0,a.isVirtualPointerEvent)(e.nativeEvent)&&($.current=!0)}return{onKeyDown(e){var t,r;let n=E.select("open");Z.current=!1;let i=e.key.startsWith("Arrow"),o=(t=e.key,r=eh(),g(r,M?t===h.ARROW_LEFT:t===h.ARROW_RIGHT,t===h.ARROW_DOWN)),l=p(e.key,F),u=(A?o:l)||"Enter"===e.key||""===e.key.trim();if(_&&n)return eg(e);if(n||P||!i){if(u){let t=p(e.key,eh());Q.current=A&&t?null:e.key}if(A){o&&((0,a.stopEvent)(e),n?(X.current=(0,c.getMinListIndex)(w,eu.current),ee(e)):E.setOpen(!0,(0,f.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}l&&(null!=ea.current&&(X.current=ea.current),(0,a.stopEvent)(e),!n&&P?E.setOpen(!0,(0,f.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):eg(e),n&&ee(e))}},onFocus(e){E.select("open")&&!_&&(X.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[eg,eu,D,w,A,ee,E,P,F,eh,M,ea,_]),eE=t.useMemo(()=>({...ep,...eb}),[ep,eb]);return t.useMemo(()=>C?{reference:eE,floating:ex,item:ev,trigger:eb}:{},[C,eE,ex,eb,ev])}],512357);var b=e.i(671695);e.s(["useTypeahead",0,function(e,r){let n="rootStore"in e?e.rootStore:e,l=n.context.dataRef,s=n.useState("open"),{listRef:d,elementsRef:f,activeIndex:m,onMatch:v,onTypingChange:h,enabled:g=!0,resetMs:p=750,selectedIndex:x=null}=r,E=(0,b.useTimeout)(),y=t.useRef(""),R=t.useRef(x??m??-1),k=t.useRef(null);(0,o.useIsoLayoutEffect)(()=>{(s||null===x)&&(E.clear(),k.current=null,""!==y.current&&(y.current=""))},[s,x,E]),(0,o.useIsoLayoutEffect)(()=>{s&&""===y.current&&(R.current=x??m??-1)},[s,x,m]);let L=(0,i.useStableCallback)(e=>{e?l.current.typing||(l.current.typing=e,h?.(e)):l.current.typing&&(l.current.typing=e,h?.(e))}),w=(0,i.useStableCallback)(e=>{function t(e,r,n=0){if(0===e.length)return -1;let i=(n%e.length+e.length)%e.length,o=r.toLocaleLowerCase();for(let t=0;t0&&" "===e.key&&((0,a.stopEvent)(e),L(!0)),y.current.length>0&&" "!==y.current[0]&&-1===t(r,y.current)&&" "!==e.key&&L(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;s&&" "!==e.key&&((0,a.stopEvent)(e),L(!0));let n=""===y.current;n&&(R.current=x??m??-1),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&y.current===e.key&&(y.current="",R.current=k.current),y.current+=e.key,E.start(p,()=>{y.current="",R.current=k.current,L(!1)});let i=n?x??m??-1:R.current,o=t(r,y.current,(i??0)+1);-1!==o?(v?.(o),k.current=o):" "!==e.key&&(y.current="",L(!1))}),O=(0,i.useStableCallback)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),i=n.select("floatingElement"),o=(0,u.contains)(r,t),l=(0,u.contains)(i,t);o||l||(E.clear(),y.current="",R.current=k.current,L(!1))}),I=t.useMemo(()=>({onKeyDown:w,onBlur:O}),[w,O]),C=t.useMemo(()=>({onKeyDown:w,onBlur:O}),[w,O]);return t.useMemo(()=>g?{reference:I,floating:C}:{},[g,I,C])}],741485);var E=e.i(281085);e.s(["getPseudoElementBounds",0,function(e){let t=e.getBoundingClientRect(),r=(0,E.ownerWindow)(e),n=r.getComputedStyle(e,"::before"),i=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===i.content)return t;let o=parseFloat(n.width)||0,l=parseFloat(n.height)||0,u=parseFloat(i.width)||0,s=parseFloat(i.height)||0,a=Math.max(t.width,o,u),c=Math.max(t.height,l,s),d=a-t.width,f=c-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}],58115)},897464,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(761073);e.s(["useRegisterFieldControl",0,function(e,i){let{enabled:o=!0,getValue:l,id:u,value:s}=i,{registerFieldControl:a}=(0,n.useFieldRootContext)(),c=t.useRef(null);c.current||(c.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=c.current;if(t&&o)return a(t,{controlRef:e,getValue:l,id:u,value:s}),()=>{a(t,void 0)}},[e,o,l,u,a,s])}])},761073,391699,e=>{"use strict";var t,r=e.i(397744),n=e.i(270401),i=e.i(618568);let o=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),l={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},u={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...u};e.s(["DEFAULT_FIELD_ROOT_STATE",0,s,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,u,"DEFAULT_VALIDITY_STATE",0,l,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[o.valid]:""}:{[o.invalid]:""}}],391699);let a=n.createContext({invalid:void 0,name:void 0,validityData:{state:l,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,touched:u.touched,setTouched:i.NOOP,dirty:u.dirty,setDirty:i.NOOP,filled:u.filled,setFilled:i.NOOP,focused:u.focused,setFocused:i.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s,markedDirtyRef:{current:!1},registerFieldControl:i.NOOP,validation:{getValidationProps:(e=i.EMPTY_OBJECT)=>e,getInputValidationProps:(e=i.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["useFieldRootContext",0,function(e=!0){let t=n.useContext(a);if(t.setValidityData===i.NOOP&&!e)throw Error((0,r.default)(28));return t}],761073)},965358,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}])},231152,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["useLabelableContext",0,function(){return t.useContext(n)}])},435848,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(228876),i=e.i(836033),o=e.i(120102),l=e.i(618568),u=e.i(593478),s=e.i(231152);e.s(["useLabelableId",0,function(e={}){let{id:a,implicit:c=!1,controlRef:d}=e,{controlId:f,registerControlId:m}=(0,s.useLabelableContext)(),v=(0,u.useBaseUiId)(a),h=c?f:void 0,g=(0,i.useRefWithInit)(()=>Symbol("labelable-control")),p=t.useRef(!1),x=t.useRef(null!=a),b=(0,n.useStableCallback)(()=>{p.current&&m!==l.NOOP&&(p.current=!1,m(g.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(m!==l.NOOP){if(c){let t=d?.current;e=(0,o.isElement)(t)&&null!=t.closest("label")?a??null:h??v}else if(null!=a)x.current=!0,e=a;else{if(!x.current)return void b();e=v}if(void 0===e)return void b();p.current=!0,m(g.current,e)}},[a,d,h,m,c,v,g,b]),t.useEffect(()=>b,[b]),f??v}])},39285,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},540427,e=>{"use strict";var t=e.i(270401),r=e.i(281334);let n=t.forwardRef(function(e,t){let{className:n,render:i,orientation:o="horizontal",style:l,...u}=e;return(0,r.useRenderElement)("div",e,{state:{orientation:o},ref:t,props:[{role:"separator","aria-orientation":o},u]})});e.s(["Separator",0,n])},777246,e=>{"use strict";var t=e.i(397744),r=e.i(270401);let n=r.createContext(void 0);e.s(["useToolbarRootContext",0,function(e){let i=r.useContext(n);if(void 0===i&&!e)throw Error((0,t.default)(69));return i}])},922651,e=>{"use strict";var t=e.i(270401),r=e.i(192291),n=e.i(987950),i=e.i(361409);e.s(["useAnchoredPopupScrollLock",0,function(e,o,l,u){let[s,a]=t.useState(!1);(0,i.useIsoLayoutEffect)(()=>{if(!e||!o||null==l)return void a(!1);let t=(0,r.ownerDocument)(l).documentElement.clientWidth,n=l.offsetWidth;a(t>0&&n>0&&n>=t-20)},[e,o,l]),(0,n.useScrollLock)(e&&(!o||s),u)}])},210761,e=>{"use strict";var t=e.i(361409),r=e.i(593478);e.s(["useRegisteredLabelId",0,function(e,n){let i=(0,r.useBaseUiId)(e);return(0,t.useIsoLayoutEffect)(()=>(n(i),()=>{n(void 0)}),[i,n]),i}])},298091,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});e.s(["Bars3Icon",0,r],298091)},797738,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["PlusIcon",0,r],797738)},543019,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))});e.s(["TrashIcon",0,r],543019)},30023,e=>{"use strict";let t=(0,e.i(202913).default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);e.s(["ArrowUpDown",0,t],30023)},479937,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},477986,e=>{"use strict";var t=e.i(479937);e.s(["ChevronUp",()=>t.default])},823634,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);let i=(0,n.cn)("flex min-h-[80px] w-full px-3 py-2","rounded-md border border-input bg-input-bg text-body pointer-coarse:text-base","placeholder:text-muted-foreground/50","focus-visible:outline-hidden focus-visible:ring-0 focus-visible:border-focus-border focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:opacity-50");e.s(["TEXTAREA_CLASSES",0,i,"Textarea",0,function(e){let o,l,u,s,a,c,d=(0,r.c)(12);return d[0]!==e?({className:o,inputClassName:l,ref:s,...u}=e,d[0]=e,d[1]=o,d[2]=l,d[3]=u,d[4]=s):(o=d[1],l=d[2],u=d[3],s=d[4]),d[5]!==o||d[6]!==l?(a=(0,n.cn)(i,l,o),d[5]=o,d[6]=l,d[7]=a):a=d[7],d[8]!==u||d[9]!==s||d[10]!==a?(c=(0,t.jsx)("textarea",{className:a,ref:s,...u}),d[8]=u,d[9]=s,d[10]=a,d[11]=c):c=d[11],c}])},524268,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(368862),i=e.i(298091),o=e.i(452473),l=e.i(528164),u=e.i(270401),s=e.i(214857),a=e.i(882968),c=e.i(340966);e.s(["HistorySidebarDrawer",0,function(e){let d,f,m,v,h,g,p,x,b,E,y,R,k,L,w,O,I,C,N,S,T,A,M,_,D,W,P,j=(0,r.c)(68),{title:F,triggerAriaLabel:B,isOpen:V,onOpenChange:U,newAction:z,children:G}=e,H=(0,c.usePortalContainer)(),K=z.icon;j[0]!==V||j[1]!==U?(d=()=>{if(!V)return;let e=e=>{"Escape"===e.key&&U(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},f=[V,U],j[0]=V,j[1]=U,j[2]=d,j[3]=f):(d=j[2],f=j[3]),(0,u.useEffect)(d,f),j[4]!==z||j[5]!==U?(m=async()=>{await z.onClick(),U(!1)},j[4]=z,j[5]=U,j[6]=m):m=j[6];let q=m;j[7]!==U?(v=()=>U(!1),j[7]=U,j[8]=v):v=j[8];let Y=V?"opacity-100":"pointer-events-none opacity-0";j[9]!==Y?(h=(0,o.cn)(a.MOBILE_DRAWER_BACKDROP,Y),j[9]=Y,j[10]=h):h=j[10],j[11]!==v||j[12]!==h?(g=(0,t.jsx)("div",{"aria-hidden":"true",onClick:v,className:h}),j[11]=v,j[12]=h,j[13]=g):g=j[13];let J=V?"open":"closed",$=V?"translate-x-0":"pointer-events-none invisible -translate-x-full";j[14]!==$?(p=(0,o.cn)(a.MOBILE_DRAWER_INSET,a.MOBILE_DRAWER_WIDTH,a.MOBILE_DRAWER_SURFACE,"left-0 flex flex-col dark:border-r","transition-[transform,visibility] duration-200 will-change-transform",$),j[14]=$,j[15]=p):p=j[15],j[16]!==V?(x=V?{}:{inert:!0},j[16]=V,j[17]=x):x=j[17],j[18]!==F?(b=F.toLowerCase(),j[18]=F,j[19]=b):b=j[19];let X=`Back to ${b}`;j[20]!==U?(E=()=>U(!1),j[20]=U,j[21]=E):E=j[21],j[22]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(n.ArrowLeftIcon,{className:"!size-5"}),j[22]=y):y=j[22],j[23]!==X||j[24]!==E?(R=(0,t.jsx)(l.Button,{type:"button",variant:"ghost",size:"icon",className:"h-9 w-9 shrink-0","aria-label":X,onClick:E,children:y}),j[23]=X,j[24]=E,j[25]=R):R=j[25],j[26]!==F?(k=(0,t.jsx)("span",{className:"text-sm font-medium text-foreground",children:F}),j[26]=F,j[27]=k):k=j[27],j[28]!==R||j[29]!==k?(L=(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-2 py-2",children:[R,k]}),j[28]=R,j[29]=k,j[30]=L):L=j[30],j[31]!==q?(w=()=>void q(),j[31]=q,j[32]=w):w=j[32],j[33]!==K?(O=(0,t.jsx)(K,{className:"absolute left-3 size-4"}),j[33]=K,j[34]=O):O=j[34],j[35]!==z.label?(I=(0,t.jsx)("span",{className:"w-full text-center",children:z.label}),j[35]=z.label,j[36]=I):I=j[36],j[37]!==w||j[38]!==O||j[39]!==I?(C=(0,t.jsxs)(l.Button,{type:"button",size:"md",variant:"outline",className:"relative w-full shrink-0 shadow-none",onClick:w,children:[O,I]}),j[37]=w,j[38]=O,j[39]=I,j[40]=C):C=j[40],j[41]!==G?(N=(0,t.jsx)("div",{className:"min-h-0 flex-1",children:G}),j[41]=G,j[42]=N):N=j[42],j[43]!==C||j[44]!==N?(S=(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-2",children:[C,N]}),j[43]=C,j[44]=N,j[45]=S):S=j[45],j[46]!==p||j[47]!==x||j[48]!==L||j[49]!==S||j[50]!==J||j[51]!==F?(T=(0,t.jsxs)("div",{role:"dialog","aria-label":F,"data-state":J,className:p,...x,children:[L,S]}),j[46]=p,j[47]=x,j[48]=L,j[49]=S,j[50]=J,j[51]=F,j[52]=T):T=j[52],j[53]!==T||j[54]!==g?(A=(0,t.jsxs)(t.Fragment,{children:[g,T]}),j[53]=T,j[54]=g,j[55]=A):A=j[55];let Q=A;return j[56]!==U?(M=()=>U(!0),j[56]=U,j[57]=M):M=j[57],j[58]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(i.Bars3Icon,{className:"!size-5"}),j[58]=_):_=j[58],j[59]!==M||j[60]!==B?(D=(0,t.jsx)(l.Button,{type:"button",variant:"ghost",size:"icon",className:"h-9 w-9 shrink-0 shadow-none","aria-label":B,onClick:M,children:_}),j[59]=M,j[60]=B,j[61]=D):D=j[61],j[62]!==H||j[63]!==Q?(W=H?(0,s.createPortal)(Q,H):null,j[62]=H,j[63]=Q,j[64]=W):W=j[64],j[65]!==D||j[66]!==W?(P=(0,t.jsxs)(t.Fragment,{children:[D,W]}),j[65]=D,j[66]=W,j[67]=P):P=j[67],P}])},160962,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(553215),i=e.i(452473),o=e.i(528164),l=e.i(252358),u=e.i(505987);e.i(406201);var s=e.i(806024);e.s(["NoWorkspaceState",0,function(e){let a,c,d,f,m,v,h,g,p=(0,r.c)(16),{surface:x,className:b,description:E}=e,y=void 0===E?"You need to be a member of a workspace to use Chat and Fusion.":E,R=(0,l.usePosthogClient)();return p[0]!==b?(a=(0,i.cn)("flex w-full flex-col items-center justify-center gap-4","px-6 py-16 text-center",b),p[0]=b,p[1]=a):a=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:(0,t.jsx)(u.Boxes,{"aria-hidden":"true",className:"size-6 text-muted-foreground"})}),p[2]=c):c=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("h2",{className:"text-lg font-medium text-foreground",children:"No workspace"}),p[3]=d):d=p[3],p[4]!==y?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[d,(0,t.jsx)("p",{className:"max-w-sm text-sm text-muted-foreground",children:y})]}),p[4]=y,p[5]=f):f=p[5],p[6]!==R||p[7]!==x?(m=()=>R.capture(n.PostHogEvent.ClickNoWorkspaceCta,{surface:x}),p[6]=R,p[7]=x,p[8]=m):m=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(s.Link,{href:"/workspaces",children:"Go to workspaces"}),p[9]=v):v=p[9],p[10]!==m?(h=(0,t.jsx)(o.Button,{onClick:m,render:v}),p[10]=m,p[11]=h):h=p[11],p[12]!==a||p[13]!==f||p[14]!==h?(g=(0,t.jsxs)("div",{className:a,children:[c,f,h]}),p[12]=a,p[13]=f,p[14]=h,p[15]=g):g=p[15],g}])},829104,205059,e=>{"use strict";let t={Loading:"loading",Blocked:"blocked",Allowed:"allowed"};function r({isAuthLoaded:e,isSignedIn:n,workspaces:i,didFetchFail:o}){return e?!0!==n?t.Allowed:void 0!==i?0===i.length?t.Blocked:t.Allowed:o?t.Allowed:t.Loading:t.Loading}e.s(["NoWorkspaceGateState",0,t,"resolveNoWorkspaceGate",0,r],829104);var n=e.i(505962),i=e.i(850658),o=e.i(48318);e.s(["useNoWorkspaceGate",0,function(){let e,t,l=(0,n.c)(7),{isLoaded:u,isSignedIn:s}=(0,i.useAuth)(),a=!0===s;l[0]!==a?(e={isEnabled:a},l[0]=a,l[1]=e):e=l[1];let{workspaces:c,didFetchFail:d}=(0,o.useUserWorkspaces)(e);return l[2]!==d||l[3]!==u||l[4]!==s||l[5]!==c?(t=r({isAuthLoaded:u,isSignedIn:s,workspaces:c,didFetchFail:d}),l[2]=d,l[3]=u,l[4]=s,l[5]=c,l[6]=t):t=l[6],t}],205059)}]); //# sourceMappingURL=3wy7l3flxgcks.js.map //# chunkId=01a099a4-bb45-7f41-bf18-d3c9a58bc2df