@tasks-timeline/components 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.cjs
CHANGED
|
@@ -69,7 +69,7 @@ ${b}`)}return a}))(HY);class VY extends OY{create(e,n){var r;const{api_version:o
|
|
|
69
69
|
`)},$Z=function(){var t=parseInt(document.body.getAttribute(e2)||"0",10);return isFinite(t)?t:0},afe=function(){le.useEffect(function(){return document.body.setAttribute(e2,($Z()+1).toString()),function(){var t=$Z()-1;t<=0?document.body.removeAttribute(e2):document.body.setAttribute(e2,t.toString())}},[])},sfe=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;afe();var i=le.useMemo(function(){return rfe(o)},[o]);return le.createElement(ofe,{styles:ife(i,!e,o,n?"":"!important")})},vO=!1;if(typeof window<"u")try{var ZD=Object.defineProperty({},"passive",{get:function(){return vO=!0,!0}});window.addEventListener("test",ZD,ZD),window.removeEventListener("test",ZD,ZD)}catch{vO=!1}var t2=vO?{passive:!1}:!1,lfe=function(t){return t.tagName==="TEXTAREA"},eX=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!lfe(t)&&n[e]==="visible")},cfe=function(t){return eX(t,"overflowY")},ufe=function(t){return eX(t,"overflowX")},tX=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=nX(t,r);if(o){var i=rX(t,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dfe=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},hfe=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},nX=function(t,e){return t==="v"?cfe(e):ufe(e)},rX=function(t,e){return t==="v"?dfe(e):hfe(e)},ffe=function(t,e){return t==="h"&&e==="rtl"?-1:1},pfe=function(t,e,n,r,o){var i=ffe(t,window.getComputedStyle(e).direction),a=i*r,s=n.target,c=e.contains(s),f=!1,m=a>0,b=0,C=0;do{if(!s)break;var A=rX(t,s),P=A[0],_=A[1],V=A[2],B=_-V-i*P;(P||B)&&nX(t,s)&&(b+=B,C+=P);var q=s.parentNode;s=q&&q.nodeType===Node.DOCUMENT_FRAGMENT_NODE?q.host:q}while(!c&&s!==document.body||c&&(e.contains(s)||e===s));return(m&&Math.abs(b)<1||!m&&Math.abs(C)<1)&&(f=!0),f},XD=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},oX=function(t){return[t.deltaX,t.deltaY]},iX=function(t){return t&&"current"in t?t.current:t},yfe=function(t,e){return t[0]===e[0]&&t[1]===e[1]},gfe=function(t){return`
|
|
70
70
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
71
71
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
72
|
-
`)},mfe=0,n2=[];function vfe(t){var e=le.useRef([]),n=le.useRef([0,0]),r=le.useRef(),o=le.useState(mfe++)[0],i=le.useState(jZ)[0],a=le.useRef(t);le.useEffect(function(){a.current=t},[t]),le.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var _=tt([t.lockRef.current],(t.shards||[]).map(iX),!0).filter(Boolean);return _.forEach(function(V){return V.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),_.forEach(function(V){return V.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var s=le.useCallback(function(_,V){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!a.current.allowPinchZoom;var B=XD(_),q=n.current,X="deltaX"in _?_.deltaX:q[0]-B[0],$="deltaY"in _?_.deltaY:q[1]-B[1],Q,re=_.target,he=Math.abs(X)>Math.abs($)?"h":"v";if("touches"in _&&he==="h"&&re.type==="range")return!1;var fe=window.getSelection(),me=fe&&fe.anchorNode,Ee=me?me===re||me.contains(re):!1;if(Ee)return!1;var Xe=tX(he,re);if(!Xe)return!0;if(Xe?Q=he:(Q=he==="v"?"h":"v",Xe=tX(he,re)),!Xe)return!1;if(!r.current&&"changedTouches"in _&&(X||$)&&(r.current=Q),!Q)return!0;var Oe=r.current||Q;return pfe(Oe,V,_,Oe==="h"?X:$)},[]),c=le.useCallback(function(_){var V=_;if(!(!n2.length||n2[n2.length-1]!==i)){var B="deltaY"in V?oX(V):XD(V),q=e.current.filter(function(Q){return Q.name===V.type&&(Q.target===V.target||V.target===Q.shadowParent)&&yfe(Q.delta,B)})[0];if(q&&q.should){V.cancelable&&V.preventDefault();return}if(!q){var X=(a.current.shards||[]).map(iX).filter(Boolean).filter(function(Q){return Q.contains(V.target)}),$=X.length>0?s(V,X[0]):!a.current.noIsolation;$&&V.cancelable&&V.preventDefault()}}},[]),f=le.useCallback(function(_,V,B,q){var X={name:_,delta:V,target:B,should:q,shadowParent:kfe(B)};e.current.push(X),setTimeout(function(){e.current=e.current.filter(function($){return $!==X})},1)},[]),m=le.useCallback(function(_){n.current=XD(_),r.current=void 0},[]),b=le.useCallback(function(_){f(_.type,oX(_),_.target,s(_,t.lockRef.current))},[]),C=le.useCallback(function(_){f(_.type,XD(_),_.target,s(_,t.lockRef.current))},[]);le.useEffect(function(){return n2.push(i),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",c,t2),document.addEventListener("touchmove",c,t2),document.addEventListener("touchstart",m,t2),function(){n2=n2.filter(function(_){return _!==i}),document.removeEventListener("wheel",c,t2),document.removeEventListener("touchmove",c,t2),document.removeEventListener("touchstart",m,t2)}},[]);var A=t.removeScrollBar,P=t.inert;return le.createElement(le.Fragment,null,P?le.createElement(i,{styles:gfe(o)}):null,A?le.createElement(sfe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function kfe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const xfe=qhe(QZ,vfe);var aX=le.forwardRef(function(t,e){return le.createElement(YD,Fo({},t,{ref:e,sideCar:xfe}))});aX.classNames=YD.classNames;var qD="Popover",[sX]=KN(qD,[NZ]),ip=NZ(),[bfe,ef]=sX(qD),lX=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=t,s=ip(e),c=le.useRef(null),[f,m]=le.useState(!1),[b,C]=XZ({prop:r,defaultProp:o??!1,onChange:i,caller:qD});return S.jsx(She,{...s,children:S.jsx(bfe,{scope:e,contentId:dZ(),triggerRef:c,open:b,onOpenChange:C,onOpenToggle:le.useCallback(()=>C(A=>!A),[C]),hasCustomAnchor:f,onCustomAnchorAdd:le.useCallback(()=>m(!0),[]),onCustomAnchorRemove:le.useCallback(()=>m(!1),[]),modal:a,children:n})})};lX.displayName=qD;var cX="PopoverAnchor",wfe=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ef(cX,n),i=ip(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return le.useEffect(()=>(a(),()=>s()),[a,s]),S.jsx(YZ,{...i,...r,ref:e})});wfe.displayName=cX;var uX="PopoverTrigger",dX=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ef(uX,n),i=ip(n),a=oh(e,o.triggerRef),s=S.jsx(yc.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mX(o.open),...r,ref:a,onClick:rh(t.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:S.jsx(YZ,{asChild:!0,...i,children:s})});dX.displayName=uX;var kO="PopoverPortal",[Mfe,Cfe]=sX(kO,{forceMount:void 0}),hX=t=>{const{__scopePopover:e,forceMount:n,children:r,container:o}=t,i=ef(kO,e);return S.jsx(Mfe,{scope:e,forceMount:n,children:S.jsx(zD,{present:n||i.open,children:S.jsx(ZZ,{asChild:!0,container:o,children:r})})})};hX.displayName=kO;var r2="PopoverContent",fX=le.forwardRef((t,e)=>{const n=Cfe(r2,t.__scopePopover),{forceMount:r=n.forceMount,...o}=t,i=ef(r2,t.__scopePopover);return S.jsx(zD,{present:r||i.open,children:i.modal?S.jsx(Sfe,{...o,ref:e}):S.jsx(Ife,{...o,ref:e})})});fX.displayName=r2;var Tfe=jY("PopoverContent.RemoveScroll"),Sfe=le.forwardRef((t,e)=>{const n=ef(r2,t.__scopePopover),r=le.useRef(null),o=oh(e,r),i=le.useRef(!1);return le.useEffect(()=>{const a=r.current;if(a)return zhe(a)},[]),S.jsx(aX,{as:Tfe,allowPinchZoom:!0,children:S.jsx(pX,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rh(t.onCloseAutoFocus,a=>{a.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:rh(t.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,f=s.button===2||c;i.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:rh(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ife=le.forwardRef((t,e)=>{const n=ef(r2,t.__scopePopover),r=le.useRef(!1),o=le.useRef(!1);return S.jsx(pX,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),pX=le.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,...b}=t,C=ef(r2,n),A=ip(n);return Kue(),S.jsx(aZ,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(tZ,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onDismiss:()=>C.onOpenChange(!1),children:S.jsx(Ihe,{"data-state":mX(C.open),role:"dialog",id:C.contentId,...A,...b,ref:e,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),yX="PopoverClose",gX=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ef(yX,n);return S.jsx(yc.button,{type:"button",...r,ref:e,onClick:rh(t.onClick,()=>o.onOpenChange(!1))})});gX.displayName=yX;var Efe="PopoverArrow",Afe=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ip(n);return S.jsx(Ehe,{...o,...r,ref:e})});Afe.displayName=Efe;function mX(t){return t?"open":"closed"}var Lfe=lX,Rfe=dX,Pfe=hX,vX=fX,Dfe=gX;const kX=xe.createContext({portalContainer:null}),xX=()=>xe.useContext(kX).portalContainer,tf=Lfe,nf=Rfe,X1=Dfe,lh=le.forwardRef(({className:t,align:e="center",sideOffset:n=4,...r},o)=>{const i=xX();return S.jsx(Pfe,{container:i,children:S.jsx(vX,{ref:o,align:e,sideOffset:n,"data-slot":"popover-content",className:et("z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...r})})});lh.displayName=vX.displayName;const bX=6048e5,Ffe=864e5,wX=Symbol.for("constructDateFrom");function Cl(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&wX in t?t[wX](e):t instanceof Date?new t.constructor(e):new Date(e)}function $a(t,e){return Cl(e||t,t)}function MX(t,e,n){const r=$a(t,n?.in);if(isNaN(e))return Cl(t,NaN);if(!e)return r;const o=r.getDate(),i=Cl(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let _fe={};function ap(){return _fe}function o2(t,e){const n=ap(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$a(t,e?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function JD(t,e){return o2(t,{...e,weekStartsOn:1})}function CX(t,e){const n=$a(t,e?.in),r=n.getFullYear(),o=Cl(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=JD(o),a=Cl(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=JD(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function TX(t){const e=$a(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function KD(t,...e){const n=Cl.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function QD(t,e){const n=$a(t,e?.in);return n.setHours(0,0,0,0),n}function Nfe(t,e,n){const[r,o]=KD(n?.in,t,e),i=QD(r),a=QD(o),s=+i-TX(i),c=+a-TX(a);return Math.round((s-c)/Ffe)}function Ofe(t,e){const n=CX(t,e),r=Cl(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),JD(r)}function Hfe(t){return Cl(t,Date.now())}function SX(t,e,n){const[r,o]=KD(n?.in,t,e);return+QD(r)==+QD(o)}function zfe(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Vfe(t){return!(!zfe(t)&&typeof t!="number"||isNaN(+$a(t)))}function Ufe(t,e){const n=$a(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Bfe(t,e){const[n,r]=KD(t,e.start,e.end);return{start:n,end:r}}function Wfe(t,e){const{start:n,end:r}=Bfe(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(Cl(n,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function jD(t,e){const n=$a(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Gfe(t,e){const n=$a(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Yfe(t,e){const n=ap(),r=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$a(t,e?.in),i=o.getDay(),a=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}const Zfe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Xfe=(t,e,n)=>{let r;const o=Zfe[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xO(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const qfe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jfe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kfe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qfe={date:xO({formats:qfe,defaultWidth:"full"}),time:xO({formats:Jfe,defaultWidth:"full"}),dateTime:xO({formats:Kfe,defaultWidth:"full"})},jfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$fe=(t,e,n,r)=>jfe[t];function sp(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,s=n?.width?String(n.width):a;o=t.formattingValues[s]||t.formattingValues[a]}else{const a=t.defaultWidth,s=n?.width?String(n.width):t.defaultWidth;o=t.values[s]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return o[i]}}const e1e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},t1e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n1e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},r1e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a1e={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:sp({values:e1e,defaultWidth:"wide"}),quarter:sp({values:t1e,defaultWidth:"wide",argumentCallback:t=>t-1}),month:sp({values:n1e,defaultWidth:"wide"}),day:sp({values:r1e,defaultWidth:"wide"}),dayPeriod:sp({values:o1e,defaultWidth:"wide",formattingValues:i1e,defaultFormattingWidth:"wide"})};function lp(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(o);if(!i)return null;const a=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?l1e(s,b=>b.test(a)):s1e(s,b=>b.test(a));let f;f=t.valueCallback?t.valueCallback(c):c,f=n.valueCallback?n.valueCallback(f):f;const m=e.slice(a.length);return{value:f,rest:m}}}function s1e(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function l1e(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function c1e(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=e.slice(o.length);return{value:a,rest:s}}}const u1e=/^(\d+)(th|st|nd|rd)?/i,d1e=/\d+/i,h1e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},f1e={any:[/^b/i,/^(a|c)/i]},p1e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},y1e={any:[/1/i,/2/i,/3/i,/4/i]},g1e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m1e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v1e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},k1e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},x1e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},b1e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},w1e={ordinalNumber:c1e({matchPattern:u1e,parsePattern:d1e,valueCallback:t=>parseInt(t,10)}),era:lp({matchPatterns:h1e,defaultMatchWidth:"wide",parsePatterns:f1e,defaultParseWidth:"any"}),quarter:lp({matchPatterns:p1e,defaultMatchWidth:"wide",parsePatterns:y1e,defaultParseWidth:"any",valueCallback:t=>t+1}),month:lp({matchPatterns:g1e,defaultMatchWidth:"wide",parsePatterns:m1e,defaultParseWidth:"any"}),day:lp({matchPatterns:v1e,defaultMatchWidth:"wide",parsePatterns:k1e,defaultParseWidth:"any"}),dayPeriod:lp({matchPatterns:x1e,defaultMatchWidth:"any",parsePatterns:b1e,defaultParseWidth:"any"})},M1e={code:"en-US",formatDistance:Xfe,formatLong:Qfe,formatRelative:$fe,localize:a1e,match:w1e,options:{weekStartsOn:0,firstWeekContainsDate:1}};function C1e(t,e){const n=$a(t,e?.in);return Nfe(n,Gfe(n))+1}function T1e(t,e){const n=$a(t,e?.in),r=+JD(n)-+Ofe(n);return Math.round(r/bX)+1}function IX(t,e){const n=$a(t,e?.in),r=n.getFullYear(),o=ap(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Cl(e?.in||t,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=o2(a,e),c=Cl(e?.in||t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const f=o2(c,e);return+n>=+s?r+1:+n>=+f?r:r-1}function S1e(t,e){const n=ap(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=IX(t,e),i=Cl(e?.in||t,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),o2(i,e)}function I1e(t,e){const n=$a(t,e?.in),r=+o2(n,e)-+S1e(n,e);return Math.round(r/bX)+1}function rr(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const rf={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return rr(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):rr(n+1,2)},d(t,e){return rr(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return rr(t.getHours()%12||12,e.length)},H(t,e){return rr(t.getHours(),e.length)},m(t,e){return rr(t.getMinutes(),e.length)},s(t,e){return rr(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return rr(o,e.length)}},i2={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},EX={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return rf.y(t,e)},Y:function(t,e,n,r){const o=IX(t,r),i=o>0?o:1-o;if(e==="YY"){const a=i%100;return rr(a,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):rr(i,e.length)},R:function(t,e){const n=CX(t);return rr(n,e.length)},u:function(t,e){const n=t.getFullYear();return rr(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return rr(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return rr(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return rf.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return rr(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=I1e(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):rr(o,e.length)},I:function(t,e,n){const r=T1e(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):rr(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):rf.d(t,e)},D:function(t,e,n){const r=C1e(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):rr(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return rr(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return rr(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return rr(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=i2.noon:r===0?o=i2.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=i2.evening:r>=12?o=i2.afternoon:r>=4?o=i2.morning:o=i2.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return rf.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):rf.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):rr(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):rr(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):rf.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):rf.s(t,e)},S:function(t,e){return rf.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return LX(r);case"XXXX":case"XX":return q1(r);default:return q1(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return LX(r);case"xxxx":case"xx":return q1(r);default:return q1(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+AX(r,":");default:return"GMT"+q1(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+AX(r,":");default:return"GMT"+q1(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return rr(r,e.length)},T:function(t,e,n){return rr(+t,e.length)}};function AX(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+e+rr(i,2)}function LX(t,e){return t%60===0?(t>0?"-":"+")+rr(Math.abs(t)/60,2):q1(t,e)}function q1(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=rr(Math.trunc(r/60),2),i=rr(r%60,2);return n+o+e+i}const RX=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},PX=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},E1e={p:PX,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return RX(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",RX(r,e)).replace("{{time}}",PX(o,e))}},A1e=/^D+$/,L1e=/^Y+$/,R1e=["D","DD","YY","YYYY"];function P1e(t){return A1e.test(t)}function D1e(t){return L1e.test(t)}function F1e(t,e,n){const r=_1e(t,e,n);if(console.warn(r),R1e.includes(t))throw new RangeError(r)}function _1e(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const N1e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O1e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,H1e=/^'([^]*?)'?$/,z1e=/''/g,V1e=/[a-zA-Z]/;function DX(t,e,n){const r=ap(),o=r.locale??M1e,i=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=$a(t,n?.in);if(!Vfe(s))throw new RangeError("Invalid time value");let c=e.match(O1e).map(m=>{const b=m[0];if(b==="p"||b==="P"){const C=E1e[b];return C(m,o.formatLong)}return m}).join("").match(N1e).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const b=m[0];if(b==="'")return{isToken:!1,value:U1e(m)};if(EX[b])return{isToken:!0,value:m};if(b.match(V1e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:m}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const f={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map(m=>{if(!m.isToken)return m.value;const b=m.value;(D1e(b)||P1e(b))&&F1e(b,e,String(t));const C=EX[b[0]];return C(s,b,o.localize,f)}).join("")}function U1e(t){const e=t.match(H1e);return e?e[1].replace(z1e,"'"):t}function B1e(t,e,n){const[r,o]=KD(n?.in,t,e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function W1e(t,e){return SX(Cl(t,t),Hfe(t))}function G1e(t,e,n){return MX(t,-1,n)}var Y1e=Symbol.for("react.lazy"),$D=le[" use ".trim().toString()];function Z1e(t){return typeof t=="object"&&t!==null&&"then"in t}function FX(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Y1e&&"_payload"in t&&Z1e(t._payload)}function X1e(t){const e=J1e(t),n=le.forwardRef((r,o)=>{let{children:i,...a}=r;FX(i)&&typeof $D=="function"&&(i=$D(i._payload));const s=le.Children.toArray(i),c=s.find(Q1e);if(c){const f=c.props.children,m=s.map(b=>b===c?le.Children.count(f)>1?le.Children.only(null):le.isValidElement(f)?f.props.children:null:b);return S.jsx(e,{...a,ref:o,children:le.isValidElement(f)?le.cloneElement(f,void 0,m):null})}return S.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}var q1e=X1e("Slot");function J1e(t){const e=le.forwardRef((n,r)=>{let{children:o,...i}=n;if(FX(o)&&typeof $D=="function"&&(o=$D(o._payload)),le.isValidElement(o)){const a=$1e(o),s=j1e(i,o.props);return o.type!==le.Fragment&&(s.ref=r?JN(r,a):a),le.cloneElement(o,s)}return le.Children.count(o)>1?le.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var K1e=Symbol("radix.slottable");function Q1e(t){return le.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===K1e}function j1e(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function $1e(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}const _X=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,NX=FB,e0e=((t,e)=>n=>{var r;if(e?.variants==null)return NX(t,n?.class,n?.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(f=>{const m=n?.[f],b=i?.[f];if(m===null)return null;const C=_X(m)||_X(b);return o[f][C]}),s=n&&Object.entries(n).reduce((f,m)=>{let[b,C]=m;return C===void 0||(f[b]=C),f},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:b,className:C,...A}=m;return Object.entries(A).every(P=>{let[_,V]=P;return Array.isArray(V)?V.includes({...i,...s}[_]):{...i,...s}[_]===V})?[...f,b,C]:f},[]);return NX(t,a,c,n?.class,n?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cp=le.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...o},i)=>{const a=r?q1e:"button";return S.jsx(a,{className:et(e0e({variant:e,size:n,className:t})),ref:i,...o})});cp.displayName="Button";function OX({className:t,selected:e,onSelect:n,disabled:r}){const[o,i]=le.useState(()=>jD(e||new Date)),a=["Su","Mo","Tu","We","Th","Fr","Sa"],s=jD(o),c=Ufe(o),f=o2(s),m=Yfe(c),b=Wfe({start:f,end:m}),C=()=>{i(G1e(o))},A=()=>{i(MX(o,1))},P=_=>{r?.(_)||n?.(_)};return S.jsxs("div",{"data-slot":"calendar",className:et("bg-popover p-3 w-[280px] select-none",t),children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx(cp,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:C,type:"button",children:S.jsx(X2,{className:"h-4 w-4"})}),S.jsx("span",{className:"text-sm font-semibold text-foreground",children:DX(o,"MMMM yyyy")}),S.jsx(cp,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:A,type:"button",children:S.jsx(q2,{className:"h-4 w-4"})})]}),S.jsx("div",{className:"grid grid-cols-7 mb-2",children:a.map(_=>S.jsx("div",{className:"h-8 flex items-center justify-center text-xs font-medium text-muted-foreground",children:_},_))}),S.jsx("div",{className:"grid grid-cols-7 gap-0.5",children:b.map((_,V)=>{const B=B1e(_,o),q=e&&SX(_,e),X=W1e(_),$=r?.(_);return S.jsx("button",{type:"button",onClick:()=>P(_),disabled:$,className:et("h-8 w-8 mx-auto rounded-full text-sm font-normal transition-all duration-150","hover:bg-accent hover:text-accent-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-95",!B&&"text-muted-foreground/40",X&&!q&&"bg-accent text-accent-foreground font-semibold ring-1 ring-primary/30",q&&"bg-primary text-primary-foreground font-semibold shadow-sm hover:bg-primary/90 hover:text-primary-foreground",$&&"pointer-events-none opacity-30"),children:DX(_,"d")},V)})}),S.jsx("div",{className:"mt-3 pt-3 border-t border-border",children:S.jsx(cp,{variant:"ghost",size:"sm",type:"button",className:"w-full text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>{const _=new Date;i(jD(_)),n?.(_)},children:"Today"})})]})}const eF=({type:t,date:e,label:n,icon:r,className:o,prefix:i="",onUpdate:a,task:s})=>{const[c,f]=xe.useState(()=>{if(!e)return;const q=xt.fromISO(e);return q.isValid?q.toJSDate():void 0}),[m,b]=xe.useState(()=>{if(!e)return"00:00";const q=xt.fromISO(e);return q.isValid?q.toFormat("HH:mm"):"00:00"}),C=t==="startAt"||t==="createdAt"||t==="completedAt",A=t.endsWith("At")?t.slice(0,t.length-2).toUpperCase():"",P=q=>{f(q)},_=q=>{b(q.target.value)},V=()=>{let q="";if(c){let $=xt.fromJSDate(c);if(C&&m){const[Q,re]=m.split(":").map(Number);$=$.set({hour:Q,minute:re})}q=C?$.toISO()||"":$.toISODate()||""}a({...s,[t==="dueDate"?"dueAt":t]:q})},B={dueDate:"Change Due Date",startAt:"Change Start Date",createdAt:"Change Created Date",completedAt:"Change Completed Date"};return S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:o,title:B[t],children:[S.jsx(Je,{name:r,size:10}),S.jsxs("span",{className:"font-mono",children:[i,n]})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:S.jsxs(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[S.jsx(OX,{mode:"single",selected:c,onSelect:P}),C&&S.jsxs("div",{className:"border-t border-border px-3 py-2",children:[S.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),S.jsx("input",{type:"time",value:m,onChange:_,className:et("w-full px-3 py-2 bg-background border border-input rounded-md text-sm","focus:ring-2 focus:ring-ring focus:border-ring outline-none")})]}),S.jsx("div",{className:"border-t border-border p-2",children:S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:V,className:et("w-full text-primary text-xs font-semibold py-2 rounded-md","hover:bg-accent transition-colors"),children:["Save ",A," date"]})})})]})})]})},t0e=({tag:t,badgeClass:e,task:n,onUpdate:r})=>S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:et(e,"text-blue-600 bg-blue-50/80 border-blue-100/50 hover:bg-rose-50 hover:text-rose-600 hover:border-rose-100 transition-colors"),title:"Click to remove",children:[S.jsx(Je,{name:"Tag",size:10}),S.jsx("span",{children:t.name})]})}),S.jsx(lh,{side:"top",align:"center",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:S.jsx(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"p-1",children:S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:()=>r({...n,tags:n.tags.filter(o=>o.id!==t.id)}),className:"flex items-center gap-1.5 text-xs text-rose-600! px-2 py-1 rounded hover:bg-rose-50",children:[S.jsx(Je,{name:"Trash",size:12}),"Remove Tag"]})})})})]}),n0e=({task:t,badgeClass:e,onUpdate:n})=>{const r=t.priority;let o="text-slate-600 bg-slate-100 border-slate-200";return r==="high"&&(o="text-rose-700 bg-rose-100 border-rose-200"),r==="medium"&&(o="text-amber-700 bg-amber-100 border-amber-200"),S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:et(e,o),title:"Change Priority",children:[S.jsx(Je,{name:"Flag",size:10,strokeWidth:r==="high"?3:2}),S.jsx("span",{className:"capitalize",children:r})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-1",children:S.jsx(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"flex flex-col gap-1",children:["high","medium","low"].map(i=>S.jsx(X1,{asChild:!0,children:S.jsx("button",{onClick:()=>n({...t,priority:i}),children:S.jsxs("div",{className:et("flex items-center gap-2 px-2 py-1.5 text-xs rounded-md text-left transition-colors justify-start! hover:bg-slate-300",t.priority===i?"bg-rose-300 font-bold":"hover:opacity-80 text-slate-600"),children:[S.jsx(Je,{name:"Flag",size:10,className:i==="high"?"text-rose-500":i==="medium"?"text-amber-500":"text-slate-400"}),S.jsx("span",{className:"capitalize",children:i})]})})},i))})})]})},r0e=({task:t,onUpdate:e,availableCategories:n,badgeClass:r})=>{const[o,i]=xe.useState(t.category||""),a=n.filter(s=>s.toLowerCase().includes(o.toLowerCase())&&s!==o).slice(0,5)||[];return S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:et(r,"text-slate-600 bg-slate-100 border-slate-200"),title:"Change Category",children:[S.jsx(Je,{name:"Folder",size:10}),S.jsx("span",{children:t.category||"No Category"})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-48 p-2",children:S.jsxs(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[S.jsx("input",{autoFocus:!0,value:o,onChange:s=>i(s.target.value),onKeyDown:s=>{s.key==="Enter"&&e({...t,category:o})},className:"w-full text-xs border border-slate-200 rounded px-2 py-1 mb-2 focus:ring-2 focus:ring-blue-500/20 outline-none",placeholder:"Category name..."}),S.jsxs("div",{className:"flex flex-col gap-0.5",children:[a.map(s=>S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:()=>e({...t,category:s}),className:"text-left px-2 py-1.5 text-xs text-slate-600 hover:opacity-80 rounded flex items-center gap-2 justify-start!",children:[S.jsx(Je,{name:"Folder",size:10,className:"opacity-50"}),s]})},s)),S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:()=>e({...t,category:o}),className:"text-center px-2 py-1.5 text-xs text-blue-600! hover:opacity-80 rounded font-medium mt-1",children:['Set to "',o,'"']})})]})]})})]})},HX=xe.createContext(void 0);function tF(){const t=xe.useContext(HX);if(!t)throw new Error("useTasksContext must be used within TasksProvider");return t}function o0e({children:t,value:e}){return S.jsx(HX.Provider,{value:e,children:t})}const zX=xe.createContext(void 0);function a2(){const t=xe.useContext(zX);if(!t)throw new Error("useSettingsContext must be used within SettingsProvider");return t}function i0e({children:t,value:e}){return S.jsx(zX.Provider,{value:e,children:t})}const nF=t=>t?xt.fromISO(t).isValid:!1,bO=({task:t,dateValidation:e})=>{const{onUpdateTask:n,onDeleteTask:r,onEditTask:o,availableCategories:i,onItemClick:a}=tF(),{settings:s}=a2(),[c,f]=xe.useState(!1),[m,b]=xe.useState(t.title),[C,A]=xe.useState(!1),P=xe.useRef(null),_=xe.useRef(null),V=t.status==="done",B=t.status==="cancelled",q=new Date().toISOString().split("T")[0],X=!V&&!B&&t.priority==="high"&&(t.status==="overdue"||t.status==="due"||t.dueAt&&t.dueAt<=q),$={sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"}[s.fontSize]||"text-sm",Q={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[s.fontSize]||"mt-0.5",re={sm:"text-[10px]",base:"text-[11px]",lg:"text-xs",xl:"text-sm"}[s.fontSize]||"text-[11px]";xe.useEffect(()=>{c&&_.current&&_.current.focus()},[c]);const he=Y=>{const Se=xt.now().toISO(),Ne={status:Y};(Y==="doing"||Y==="scheduled")&&!t.startAt&&t.status==="todo"&&(Ne.startAt=Se||void 0),Y==="done"&&!t.completedAt&&(Ne.completedAt=Se||void 0),Y==="cancelled"&&!t.cancelledAt&&(Ne.cancelledAt=Se||void 0),n({...t,...Ne})},fe=()=>{m.trim()?n({...t,title:m}):b(t.title),f(!1)},me=Y=>{Y.key==="Enter"&&fe(),Y.key==="Escape"&&(b(t.title),f(!1))},Ee=()=>{C?(r(t.id),P.current&&window.clearTimeout(P.current)):(A(!0),P.current=window.setTimeout(()=>{A(!1)},2e3))},Xe=(Y,Se)=>Se==="done"||Se==="cancelled"?"text-emerald-600 bg-emerald-50 border-emerald-200":Y?Se==="overdue"||Y<q?"text-rose-600 bg-rose-50 border-rose-200":Y===q?"text-amber-600 bg-amber-50 border-amber-200":"text-emerald-600 bg-emerald-50 border-emerald-200":"text-slate-400",Oe=Y=>{switch(Y){case"done":return"bg-emerald-500";case"doing":return"bg-sky-500";case"scheduled":return"bg-blue-500";case"due":return"bg-amber-500";case"overdue":return"bg-rose-500";case"cancelled":return"bg-slate-300";case"unplanned":return"bg-purple-500";default:return"bg-slate-200"}},je=Y=>{switch(Y){case"done":return"CheckCircle2";case"doing":return"PlayCircle";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},ze=Y=>{switch(Y){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-300";case"unplanned":return"text-purple-500";default:return"text-slate-300 group-hover:text-slate-400"}},De=(Y,Se=16)=>S.jsx(Je,{name:je(Y),size:Se,className:ze(Y),strokeWidth:Y==="done"?2.5:2}),ce=["todo","doing","scheduled","done","unplanned","due","overdue","cancelled"],ve=t.dueAt?TW(t.dueAt):null,Ae=t.startAt?TW(t.startAt):null,bt=ve||Ae,ae="flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none cursor-pointer hover:bg-slate-50 transition-colors select-none text-[length:inherit]";return S.jsxs(Li,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,height:0},className:et("group relative flex items-stretch gap-2 pb-1.5 pt-0.5 px-1 transition-all rounded-lg",(V||B)&&"opacity-60",X?"bg-rose-50/60 border border-rose-100 shadow-sm shadow-rose-100/50 hover:bg-rose-100/50":"hover:bg-slate-50 border border-transparent"),children:[S.jsxs("div",{className:et("relative flex flex-col items-center shrink-0 w-6",Q),children:[S.jsx("div",{className:et("absolute -top-1 h-6.5 w-px left-1/2 -translate-x-1/2 group-first:hidden","bg-slate-200")}),S.jsx("div",{className:et("absolute top-5 -bottom-1 w-px left-1/2 -translate-x-1/2 group-last:hidden",Oe(t.status))}),S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsx("button",{className:et("relative z-10 w-6 h-6 flex items-center justify-center transition-transform active:scale-90 outline-none focus:ring-2 focus:ring-slate-200 rounded-full",X?"bg-rose-50 hover:bg-rose-100 shadow-sm":"bg-white hover:bg-slate-50"),title:`Change Status (Current: ${t.status})`,children:De(t.status,18)})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:5,collisionPadding:10,className:"z-9999 outline-none w-44 p-1.5",children:S.jsx(Li,{initial:{opacity:0,scale:.9,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:-5},transition:{duration:.15},children:S.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce.map(Y=>S.jsx(X1,{asChild:!0,children:S.jsx("button",{onClick:()=>he(Y),children:S.jsxs("div",{className:et("w-full flex items-center gap-2.5 px-3 py-2 text-xs font-medium font-mono rounded-lg transition-all hover:bg-slate-300 text-left outline-none","justify-start! text-left!",t.status===Y?"bg-slate-200/60 text-slate-900 font-semibold":"text-slate-600 hover:text-slate-900 hover:opacity-80 active:scale-[0.98]"),children:[S.jsx("div",{className:et("shrink-0",t.status===Y?"opacity-100":"opacity-70"),children:De(Y,14)}),S.jsx("span",{className:"capitalize",children:Y})]})})},Y)),S.jsx("div",{className:"h-px bg-slate-100 my-1 mx-1"}),S.jsx(X1,{asChild:!0,children:S.jsx("button",{onClick:()=>o?.(t),children:S.jsxs("div",{className:"w-full flex items-center justify-start! gap-2 px-3 py-2 text-xs font-medium text-slate-600 hover:text-blue-600 hover:opacity-80 hover:bg-slate-300 transition-all text-left outline-none rounded-lg",children:[S.jsx(Je,{name:"Pencil",size:14,className:"opacity-70"}),S.jsx("span",{children:"Edit Details"})]})})})]})})})]})]}),S.jsxs("div",{className:et("flex-1 min-w-0 pt-0.5",bt?"pr-16":"pr-8"),children:[S.jsxs("div",{className:"flex items-center gap-2 min-h-5.5 mb-0.5",children:[c?S.jsx("input",{ref:_,value:m,onChange:Y=>b(Y.target.value),onBlur:fe,onKeyDown:me,className:et("flex-1 min-w-0 bg-transparent border-b border-blue-400 focus:outline-none font-medium text-slate-800 pb-0.5",$)}):S.jsx(S.Fragment,{children:S.jsx(ED,{onClick:()=>f(!0),className:et("font-medium leading-tight text-slate-800 transition-all cursor-text text-left border-none bg-transparent p-0 appearance-none font-inherit",$,V&&"line-through text-slate-500 decoration-slate-300",B&&"line-through text-slate-400 decoration-slate-300",X&&"text-rose-700 font-semibold"),children:t.title})}),!c&&S.jsx(ED,{whileHover:{scale:1.1},onClick:()=>f(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity text-slate-300 hover:text-blue-500 p-1 shrink-0 bg-transparent border-none",children:S.jsx(Je,{name:"Pencil",size:12})})]}),S.jsxs("div",{className:et("flex flex-wrap items-center gap-2 font-medium text-slate-500",re),onClick:Y=>{a&&Y.target===Y.currentTarget&&a?.(t)},children:[S.jsx(n0e,{task:t,onUpdate:n,badgeClass:ae}),e&&(e.hasInvalidDates?S.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-rose-600 bg-rose-50 border-rose-200",title:"One or more dates have an invalid format",children:[S.jsx(Je,{name:"AlertTriangle",size:10}),S.jsx("span",{className:"text-[10px]",children:"Invalid Date"})]}):e.hasMissingDates?S.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-amber-600 bg-amber-50 border-amber-200",title:"This task has no dates set",children:[S.jsx(Je,{name:"AlertCircle",size:10}),S.jsx("span",{className:"text-[10px]",children:"No Dates"})]}):null),t.category&&S.jsx(r0e,{task:t,onUpdate:n,badgeClass:ae,availableCategories:i}),!s.groupingStrategy.includes("createdAt")&&nF(t.createdAt)&&S.jsx(eF,{type:"createdAt",date:t.createdAt,label:lD(t.createdAt,s.useRelativeDates,s.dateFormat),task:t,onUpdate:n,icon:"Plus",className:et(ae,"text-slate-500 bg-slate-50 border-slate-200")}),nF(t.startAt)&&S.jsx(eF,{type:"startAt",date:t.startAt,label:lD(t.startAt,s.useRelativeDates,s.dateFormat),icon:"PlayCircle",task:t,onUpdate:n,className:et(ae,"text-slate-500 bg-slate-50 border-slate-200")}),nF(t.dueAt)&&S.jsx(eF,{type:"dueDate",date:t.dueAt,label:`Due: ${lD(t.dueAt,s.useRelativeDates,s.dateFormat)}`,icon:"Calendar",task:t,onUpdate:n,className:et(ae,Xe(t.dueAt,t.status))}),nF(t.completedAt)&&S.jsx(eF,{type:"completedAt",date:t.completedAt,label:`Done: ${lD(t.completedAt,s.useRelativeDates,s.dateFormat)}`,icon:"CheckCircle2",task:t,onUpdate:n,className:et(ae,"text-emerald-600 bg-emerald-50 border-emerald-200")}),t.isRecurring&&t.recurringInterval&&S.jsxs("div",{className:et(ae,"text-slate-500 bg-slate-100 border-slate-200 cursor-default"),title:wre(t.recurringInterval),children:[S.jsx(Je,{name:"Repeat",size:10}),S.jsx("span",{className:"capitalize",children:"Recurring"})]}),t.tags.map(Y=>S.jsx(t0e,{tag:Y,task:t,onUpdate:n,badgeClass:ae},Y.id))]}),t.description&&S.jsxs("div",{className:"mt-1 flex items-start gap-1.5 text-slate-400",children:[S.jsx(Je,{name:"FileText",size:10,className:"mt-0.5 shrink-0"}),S.jsx("p",{className:et("leading-relaxed line-clamp-2",re),children:t.description})]})]}),bt&&S.jsx("div",{className:"absolute right-8 top-3 text-[10px] font-mono font-bold text-slate-400 bg-slate-50 border border-slate-100 px-1.5 py-0.5 rounded-md",children:bt}),S.jsx(ED,{onClick:Ee,className:et("absolute top-2 right-1 p-1.5 rounded-md transition-all",C?"bg-rose-100 text-rose-600 opacity-100":"text-slate-300 opacity-0 group-hover:opacity-100 hover:text-rose-500 hover:bg-slate-100"),whileHover:{scale:1.1},whileTap:{scale:.9},title:C?"Click again to confirm delete":"Delete task",children:S.jsx(Je,{name:C?"Trash2":"Trash",size:14})})]})},rF={info:"color: #3b82f6; font-weight: bold;",warn:"color: #f59e0b; font-weight: bold;",error:"color: #ef4444; font-weight: bold;",debug:"color: #8b5cf6; font-weight: bold;"};class a0e{log(e,n,r,o){const i=new Date().toLocaleTimeString(),a=`%c[TasksTimeline][${i}][${n}]`;switch(e){case"info":console.log(`${a} ${r}`,rF.info,o||"");break;case"warn":console.warn(`${a} ${r}`,rF.warn,o||"");break;case"error":console.error(`${a} ${r}`,rF.error,o||"");break;case"debug":console.debug(`${a} ${r}`,rF.debug,o||"");break}}info(e,n,r){this.log("info",e,n,r)}warn(e,n,r){this.log("warn",e,n,r)}error(e,n,r){this.log("error",e,n,r)}debug(e,n,r){this.log("debug",e,n,r)}}const Gt=new a0e,wO=(t,e,n)=>{const[r,o]=xe.useState(!1),i=xe.useCallback(()=>{if(!t)return;const a=window,s=a.SpeechRecognition||a.webkitSpeechRecognition;if(!s){n("Browser does not support voice input.");return}try{Gt.info("Voice","Starting speech recognition...");const c=new s;c.continuous=!1,c.interimResults=!1,c.lang="en-US",c.onstart=()=>o(!0),c.onend=()=>o(!1),c.onerror=f=>{o(!1);const m=f.error;if(m!=="no-speech")if(m==="not-allowed"){const b="Microphone access denied. Please check permissions.";n(b),Gt.error("Voice",b)}else if(m==="network"){const b="Network error during voice recognition.";n(b),Gt.error("Voice",b)}else{const b=`Voice input error: ${m}`;n(b),Gt.warn("Voice",b)}},c.onresult=f=>{const m=f.results[0]?.[0]?.transcript;m&&(Gt.info("Voice","Transcript received",{text:m}),e(m))},c.start()}catch(c){console.error("Speech API Error",c),n("Failed to initialize voice input."),Gt.error("Voice","Initialization failed",c),o(!1)}},[t,e,n,o]);return{isListening:r,start:i}};var oF="Collapsible",[s0e]=KN(oF),[l0e,MO]=s0e(oF),CO=le.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=t,[c,f]=XZ({prop:r,defaultProp:o??!1,onChange:a,caller:oF});return S.jsx(l0e,{scope:n,disabled:i,contentId:dZ(),open:c,onOpenToggle:le.useCallback(()=>f(m=>!m),[f]),children:S.jsx(yc.div,{"data-state":SO(c),"data-disabled":i?"":void 0,...s,ref:e})})});CO.displayName=oF;var VX="CollapsibleTrigger",UX=le.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,o=MO(VX,n);return S.jsx(yc.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":SO(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:e,onClick:rh(t.onClick,o.onOpenToggle)})});UX.displayName=VX;var TO="CollapsibleContent",BX=le.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=MO(TO,t.__scopeCollapsible);return S.jsx(zD,{present:n||o.open,children:({present:i})=>S.jsx(c0e,{...r,ref:e,present:i})})});BX.displayName=TO;var c0e=le.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=t,a=MO(TO,n),[s,c]=le.useState(r),f=le.useRef(null),m=oh(e,f),b=le.useRef(0),C=b.current,A=le.useRef(0),P=A.current,_=a.open||s,V=le.useRef(_),B=le.useRef(void 0);return le.useEffect(()=>{const q=requestAnimationFrame(()=>V.current=!1);return()=>cancelAnimationFrame(q)},[]),ih(()=>{const q=f.current;if(q){B.current=B.current||{transitionDuration:q.style.transitionDuration,animationName:q.style.animationName},q.style.transitionDuration="0s",q.style.animationName="none";const X=q.getBoundingClientRect();b.current=X.height,A.current=X.width,V.current||(q.style.transitionDuration=B.current.transitionDuration,q.style.animationName=B.current.animationName),c(r)}},[a.open,r]),S.jsx(yc.div,{"data-state":SO(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!_,...i,ref:m,style:{"--radix-collapsible-content-height":C?`${C}px`:void 0,"--radix-collapsible-content-width":P?`${P}px`:void 0,...t.style},children:_&&o})});function SO(t){return t?"open":"closed"}var WX=CO;const GX=Object.freeze(Object.defineProperty({__proto__:null,Collapsible:CO,CollapsibleContent:BX,CollapsibleTrigger:UX,Root:WX},Symbol.toStringTag,{value:"Module"})),IO=WX,{CollapsibleTrigger:EO}=GX,{CollapsibleContent:AO}=GX,LO=({group:t})=>{const{onAddTask:e,onAICommand:n}=tF(),{settings:r,isAiMode:o,onVoiceError:i}=a2(),[a,s]=xe.useState(!0),[c,f]=xe.useState(!1),[m,b]=xe.useState(""),[C,A]=xe.useState(r.defaultCategory),[P,_]=xe.useState(!1),V=xe.useRef(null);xe.useEffect(()=>{c&&A(r.defaultCategory)},[c,r.defaultCategory]);const{isListening:B,start:q}=wO(r.enableVoiceInput,ze=>b(De=>De?`${De} ${ze}`:ze),i),X=xt.fromISO(t.date),$=X.toFormat("ccc"),Q=X.weekday>5,re=Q?"text-rose-500 bg-rose-50 border-rose-100":"text-slate-600 bg-slate-50 border-slate-200",he=bre(t.date),fe=he==="Today"||he==="Tomorrow"||he==="Yesterday",me=X.toFormat(r.dateFormat);xe.useEffect(()=>{c&&V.current&&V.current.focus()},[c]);const Ee=xe.useMemo(()=>t.tasks.reduce((ze,De)=>(De.status==="done"?ze.done++:De.status==="overdue"||De.status==="due"?ze.urgent++:["todo","scheduled","unplanned"].includes(De.status)&&ze.open++,ze),{done:0,urgent:0,open:0}),[t.tasks]),Xe=async()=>{if(!m.trim()){f(!1);return}_(!0);try{if(r.aiConfig.enabled&&o){const ze=`Add task to ${t.date}: ${m} (Category: ${C})`;await n(ze)}else e({title:m,dueAt:t.date,category:C});b("")}catch(ze){console.error(ze)}finally{_(!1)}},Oe=ze=>{ze.key==="Enter"&&Xe(),ze.key==="Escape"&&(f(!1),b(""))},je={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[r.fontSize]||"mt-0.5";return S.jsx("div",{className:"mb-2 relative",children:S.jsxs(IO,{open:a,onOpenChange:s,children:[S.jsx(EO,{asChild:!0,children:S.jsxs("button",{className:"w-full flex items-center justify-between mb-1 sticky top-0 bg-paper/95 backdrop-blur-sm z-20 py-1.5 border-b border-dashed border-slate-200 group hover:border-slate-300 transition-colors text-left outline-none pl-2",children:[S.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[S.jsx(ci.div,{animate:{rotate:a?90:0},transition:{duration:.2},className:"text-slate-400",children:S.jsx(Je,{name:"ChevronRight",size:14})}),S.jsxs("div",{className:"flex items-baseline gap-2",children:[fe&&S.jsx("span",{className:"text-xs font-bold text-blue-600 font-mono uppercase tracking-tight",children:he}),S.jsx("h3",{className:`text-sm font-bold text-slate-800 font-mono tracking-tight group-hover:text-blue-600 transition-colors ${fe?"opacity-60 font-normal":""}`,children:me})]})]}),S.jsxs("div",{className:"flex items-center gap-2 shrink-0 opacity-80 group-hover:opacity-100 transition-opacity",children:[Ee.urgent>0&&S.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-rose-100/50 text-rose-600 border border-rose-200/50 shadow-sm shadow-rose-100",children:[S.jsx(Je,{name:"AlertCircle",size:10,strokeWidth:2.5}),S.jsx("span",{className:"text-[10px] font-bold leading-none",children:Ee.urgent})]}),Ee.open>0&&S.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-slate-100 text-slate-500 border border-slate-200 shadow-sm shadow-slate-100",children:[S.jsx(Je,{name:"Circle",size:10,strokeWidth:2.5}),S.jsx("span",{className:"text-[10px] font-bold leading-none",children:Ee.open})]}),Ee.done>0&&S.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-emerald-100/50 text-emerald-600 border border-emerald-200/50 shadow-sm shadow-emerald-100",children:[S.jsx(Je,{name:"CheckCircle2",size:10,strokeWidth:2.5}),S.jsx("span",{className:"text-[10px] font-bold leading-none",children:Ee.done})]})]})]}),S.jsxs("div",{className:`flex flex-col items-center justify-center w-8 h-8 rounded-lg border ${re} shadow-sm shrink-0 ml-2`,children:[S.jsx("span",{className:"text-[10px] font-bold uppercase leading-none",children:$}),S.jsx("span",{className:"text-[10px] opacity-60 leading-none mt-0.5",children:t.tasks.length})]})]})}),S.jsx(sc,{initial:!1,children:a&&S.jsx(AO,{forceMount:!0,asChild:!0,children:S.jsx(ci.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:S.jsxs("div",{className:"space-y-0.5 relative pb-2",children:[t.tasks.map(ze=>S.jsx(bO,{task:ze},ze.id)),S.jsxs("div",{className:"group relative flex items-stretch gap-2 py-1.5 px-1 transition-all rounded-lg",children:[S.jsxs("div",{className:et("relative flex flex-col items-center shrink-0 w-6",je),children:[t.tasks.length>0&&S.jsx("div",{className:"absolute -top-1 h-4 w-px left-1/2 -translate-x-1/2 bg-slate-200"}),S.jsx("button",{onClick:()=>f(!0),className:et("relative z-10 w-6 h-6 flex items-center justify-center rounded-full transition-all outline-none",c?o?"bg-purple-100 text-purple-600":"bg-blue-100 text-blue-600":"bg-white hover:bg-slate-100 text-slate-300 hover:text-blue-500"),children:P?S.jsx("div",{className:"animate-spin",children:S.jsx(Je,{name:"Loader2",size:12})}):S.jsx(Je,{name:o?"Sparkles":"Plus",size:14})})]}),S.jsx("div",{className:"flex-1 min-w-0 pt-0.5",children:c?S.jsxs(ci.div,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},className:"flex items-center gap-2",children:[S.jsx("input",{ref:V,type:"text",value:m,onChange:ze=>b(ze.target.value),onKeyDown:Oe,onBlur:ze=>{(!ze.relatedTarget||!ze.relatedTarget.closest(".add-row-actions"))&&(m||f(!1))},placeholder:B?"Listening...":o?"Describe task for this day...":"Type a new task...",className:et("flex-1 bg-transparent border-b focus:outline-none text-sm py-0.5 transition-colors",o?"border-purple-300 focus:border-purple-500 placeholder:text-purple-300 text-purple-900":"border-blue-300 focus:border-blue-500"),disabled:P||B}),S.jsxs("div",{className:"flex items-center gap-1 add-row-actions",children:[S.jsxs("div",{className:"relative group/cat",children:[S.jsx("input",{list:`cat-list-${t.date}`,className:"w-20 text-[10px] bg-slate-100 hover:bg-slate-200 border-none rounded px-1.5 py-0.5 text-slate-600 focus:bg-white focus:ring-1 focus:ring-blue-300 outline-none transition-all placeholder:text-slate-400 truncate",placeholder:"Category",value:C,onChange:ze=>A(ze.target.value),onFocus:()=>{},title:"Task Category"}),S.jsxs("datalist",{id:`cat-list-${t.date}`,children:[S.jsx("option",{value:"Work"}),S.jsx("option",{value:"Personal"}),S.jsx("option",{value:"Home"}),S.jsx("option",{value:"Health"}),S.jsx("option",{value:"Finance"}),S.jsx("option",{value:"Urgent"})]})]}),r.enableVoiceInput&&S.jsx("button",{onClick:q,className:et("p-1 rounded hover:bg-slate-100 transition-colors",B&&"text-rose-500 animate-pulse"),tabIndex:-1,children:S.jsx(Je,{name:"Mic",size:14})})]})]}):S.jsx("button",{onClick:()=>f(!0),className:"text-left text-sm text-slate-400 hover:text-blue-500 transition-colors h-5.5 flex items-end font-medium",children:"Add task..."})})]})]})})})})]})})},YX=({group:t})=>{const{settings:e}=a2(),[n,r]=xe.useState(!0),o=Math.round(t.completedTasks/t.totalTasks*100)||0;return S.jsx("div",{className:"mb-4",children:S.jsxs(IO,{open:n,onOpenChange:r,children:[S.jsx(EO,{asChild:!0,children:S.jsxs("button",{className:"w-full text-left mb-1.5 group outline-none",children:[S.jsxs("div",{className:"flex items-end justify-between mb-1",children:[S.jsxs("div",{className:"flex items-baseline gap-4",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(ci.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"text-slate-400",children:S.jsx(Je,{name:"ChevronRight",size:20})}),S.jsx("h2",{className:"text-3xl font-black text-slate-800 tracking-tighter group-hover:text-blue-600 transition-colors",children:t.year})]}),S.jsxs("div",{className:"text-xs text-slate-400 font-mono hidden sm:inline-block",children:[S.jsx("span",{className:"text-rose-500 font-bold",children:t.totalTasks-t.completedTasks})," ","unfinished tasks in"," ",S.jsx("span",{className:"text-rose-500 font-bold",children:t.dayGroups.length})," ","active days."]})]}),S.jsx("div",{className:"flex items-center gap-2 pb-1",children:S.jsxs("span",{className:"text-[10px] text-slate-400 font-mono",children:[t.completedTasks," / ",t.totalTasks]})})]}),e.showProgressBar&&S.jsx("div",{className:"relative h-1.5 w-full bg-slate-100 rounded-full overflow-hidden",children:S.jsx(ci.div,{className:et("absolute top-0 left-0 h-full rounded-full",o===100?"bg-emerald-400":"bg-slate-800"),initial:{width:0},animate:{width:`${o}%`},transition:{duration:1,ease:"easeOut"}})})]})}),S.jsx(sc,{initial:!1,children:n&&S.jsx(AO,{forceMount:!0,asChild:!0,children:S.jsx(ci.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:t.dayGroups.map(i=>S.jsx(LO,{group:i},i.date))})})})]})})},ZX=({tasks:t})=>{const{settings:e}=a2(),[n,r]=xe.useState(!0);return S.jsx("div",{className:"mt-8 pt-4 border-t border-slate-100",children:S.jsxs(IO,{open:n,onOpenChange:r,children:[S.jsx(EO,{asChild:!0,children:S.jsxs("button",{className:"flex items-center gap-2 mb-4 pl-2 w-full group outline-none",children:[S.jsx(ci.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"text-slate-400",children:S.jsx(Je,{name:"ChevronRight",size:14})}),S.jsx(Je,{name:"Archive",size:14,className:"text-slate-400"}),S.jsx("h3",{className:"text-sm font-bold text-slate-500 uppercase tracking-wider group-hover:text-slate-700 transition-colors",children:"Backlog / Undated"}),S.jsx("span",{className:"text-xs bg-slate-100 text-slate-500 px-2 py-0.5 rounded-full font-mono",children:t.length})]})}),S.jsx(sc,{initial:!1,children:n&&S.jsx(AO,{forceMount:!0,asChild:!0,children:S.jsx(ci.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:S.jsx("div",{className:"space-y-0.5",children:t.map(o=>S.jsx(bO,{task:o,dateValidation:Mre(o,e.groupingStrategy)},o.id))})})})})]})})},XX=({className:t})=>{const{tasks:e}=tF(),{settings:n,isFocusMode:r}=a2(),{todayGroup:o,otherYearGroups:i,backlogTasks:a}=xe.useMemo(()=>{const s=xt.now(),c=s.toISODate(),f=n.showCompleted?e:e.filter(B=>B.status!=="done"&&B.status!=="cancelled"),m=[],b=[],C=["dueAt","startAt","createdAt","completedAt"];f.forEach(B=>{C.some(X=>{const $=B[X];return $&&xt.fromISO($).isValid})?m.push(B):b.push(B)});const A=Cre(m,n.groupingStrategy);let P=null;const _=[];for(const B of A){const q=B.dayGroups.find(X=>X.date===c);if(q){P=q;const X=B.dayGroups.filter($=>$.date!==c);X.length>0&&_.push({...B,dayGroups:X})}else _.push(B)}return{todayGroup:P||{date:c,tasks:[]},otherYearGroups:_,backlogTasks:b}},[e,n.showCompleted,n.groupingStrategy]);return S.jsxs("div",{className:t,children:[S.jsxs("div",{className:"mb-5 pb-3 border-b-2 border-dashed border-slate-100/80",children:[S.jsx("div",{className:"flex items-center gap-2 mb-2 pl-2 opacity-60",children:S.jsxs("span",{className:"text-[10px] font-bold font-mono uppercase tracking-widest text-slate-400",children:["Current Focus",n.groupingStrategy.length===1&&n.groupingStrategy[0]!=="dueAt"?` (${n.groupingStrategy[0].replace("At","").replace("Date","")})`:""]})}),S.jsx(LO,{group:o})]}),!r&&i.map(s=>S.jsx(YX,{group:s},s.year)),!r&&a.length>0&&S.jsx(ZX,{tasks:a}),!r&&i.length===0&&e.length>0&&!o.tasks.length&&a.length===0&&S.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"No tasks visible based on current filters."}),r&&!o.tasks.length&&S.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"Focus mode is on. No tasks for today."})]})},qX=()=>{const{onAddTask:t,onAICommand:e,availableTags:n,availableCategories:r}=tF(),{settings:o,filters:i,onFilterChange:a,sort:s,onSortChange:c,isAiMode:f,toggleAiMode:m,onVoiceError:b,onOpenSettings:C}=a2(),[A,P]=xe.useState(""),[_,V]=xe.useState(!1),{isListening:B,start:q}=wO(o.enableVoiceInput,Oe=>P(je=>je?`${je} ${Oe}`:Oe),b),X=o.aiConfig.enabled&&f,$=async()=>{if(!(!A.trim()||_)){V(!0);try{if(X)await e(A);else{const Oe=Tre(A);t(Oe)}P("")}catch(Oe){console.error("Failed to parse task",Oe)}finally{V(!1)}}},Q=Oe=>{Oe.key==="Enter"&&$()},re=(Oe,je)=>{const ze=i[Oe];if(Array.isArray(ze)){const De=ze,ce=De.includes(je)?De.filter(ve=>ve!==je):[...De,je];a({...i,[Oe]:ce})}},he=Oe=>{a({...i,[Oe]:[]})},fe=Oe=>{const je=i[Oe];return Array.isArray(je)||typeof je=="string"?je.length>0:!1},me=Oe=>{switch(Oe){case"todo":return"Circle";case"doing":return"PlayCircle";case"done":return"CheckCircle2";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},Ee=Oe=>{switch(Oe){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-400";case"unplanned":return"text-purple-500";default:return"text-slate-400"}},Xe=Oe=>{switch(Oe){case"high":return"text-rose-500";case"medium":return"text-amber-500";case"low":return"text-blue-400"}};return S.jsx("div",{className:"pt-3 pb-1",children:S.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6",children:[S.jsxs("div",{className:"relative group z-10",children:[S.jsx("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none z-10",children:_?S.jsx(Li,{animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},className:"text-blue-500",children:S.jsx(Je,{name:"Loader2",size:16})}):X?S.jsx(Li,{initial:{scale:0},animate:{scale:1},className:"text-purple-500",children:S.jsx(Je,{name:"Sparkles",size:16})}):S.jsx("div",{className:"text-slate-400",children:S.jsx(Je,{name:"PlusCircle",size:16})})}),S.jsx("input",{type:"text",className:et("w-full bg-white pl-10 pr-24 py-2.5 rounded-xl border shadow-sm text-sm focus:outline-none focus:ring-2 transition-all placeholder:text-slate-400 font-medium",X?"border-purple-200 focus:border-purple-400 focus:ring-purple-400/20":"border-slate-200 focus:border-slate-400 focus:ring-slate-400/20"),placeholder:B?"Listening...":X?"Describe tasks using natural language...":"Quick add (e.g., 'Meeting due:tomorrow p:high')",value:A,onChange:Oe=>P(Oe.target.value),onKeyDown:Q,disabled:_||B}),S.jsxs("div",{className:"absolute inset-y-0 right-3 flex items-center gap-1",children:[o.enableVoiceInput&&S.jsx("button",{onClick:q,className:et("p-1.5 rounded-md transition-all duration-200 relative",B?"text-rose-500 bg-rose-50 animate-pulse":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),disabled:B,title:"Voice Input",children:S.jsx(Je,{name:"Mic",size:16})}),o.aiConfig.enabled&&S.jsx("button",{onClick:m,className:et("p-1.5 rounded-md transition-all duration-200",X?"text-purple-600 bg-purple-50 hover:bg-purple-100 ring-1 ring-purple-200":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),title:X?"Switch to Manual Mode":"Switch to AI Mode",children:S.jsx(Je,{name:X?"Sparkles":"TerminalSquare",size:16})}),C&&o.settingButtonOnInputBar!==!1&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"w-px h-4 bg-slate-200 mx-1"}),S.jsx("button",{onClick:C,className:"text-slate-400 hover:text-blue-600 p-1.5 rounded-md hover:bg-blue-50 transition-colors",title:"Settings & Docs",children:S.jsx(Je,{name:"Settings",size:16})})]})]})]}),S.jsxs("div",{className:"flex items-center gap-2 mt-2 overflow-x-auto no-scrollbar pb-2 pl-1 pr-4",children:[o.tagsFilterOnInputBar!==!1&&S.jsx(iF,{label:"Tags",isActive:fe("tags"),count:i.tags.length,onClear:()=>he("tags"),children:S.jsxs("div",{className:"space-y-0.5",children:[n.length===0&&S.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No tags available"}),n.map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.tags.includes(Oe),onChange:()=>re("tags",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:"Tag",size:12,className:"text-blue-500 opacity-70 group-hover:opacity-100"}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))]})}),o.categoriesFilterOnInputBar!==!1&&S.jsx(iF,{label:"Categories",isActive:fe("categories"),count:i.categories.length,onClear:()=>he("categories"),children:S.jsxs("div",{className:"space-y-0.5",children:[r.length===0&&S.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No categories available"}),r.map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.categories.includes(Oe),onChange:()=>re("categories",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:"Folder",size:12,className:"text-amber-500 opacity-70 group-hover:opacity-100"}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))]})}),o.priorityFilterOnInputBar!==!1&&S.jsx(iF,{label:"Priority",isActive:fe("priorities"),count:i.priorities.length,onClear:()=>he("priorities"),children:S.jsx("div",{className:"space-y-0.5",children:["low","medium","high"].map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.priorities.includes(Oe),onChange:()=>re("priorities",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:"Flag",size:12,className:et("opacity-80",Xe(Oe)),fill:"currentColor"}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))})}),o.statusFilterOnInputBar!==!1&&S.jsx(iF,{label:"Status",isActive:fe("statuses"),count:i.statuses.length,onClear:()=>he("statuses"),children:S.jsx("div",{className:"space-y-0.5",children:["todo","doing","scheduled","done","due","overdue","cancelled","unplanned"].map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.statuses.includes(Oe),onChange:()=>re("statuses",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:me(Oe),size:13,className:et("opacity-80",Ee(Oe))}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))})}),(o.tagsFilterOnInputBar!==!1||o.categoriesFilterOnInputBar!==!1||o.priorityFilterOnInputBar!==!1||o.statusFilterOnInputBar!==!1)&&o.sortOnInputBar!==!1&&S.jsx("div",{className:"w-px h-4 bg-slate-300 mx-1 shrink-0"}),o.sortOnInputBar!==!1&&S.jsx(u0e,{sort:s,onSortChange:c})]})]})})},iF=({label:t,isActive:e,count:n,children:r,onClear:o})=>S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs(ED,{whileHover:{scale:1.02},whileTap:{scale:.98},className:et("flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-full border transition-all shrink-0 outline-none select-none",e?"bg-slate-800 text-white border-slate-800 shadow-md shadow-slate-200":"bg-white text-slate-600 border-slate-200 hover:border-slate-300 hover:text-slate-800"),children:[t,e&&S.jsx("span",{className:"flex items-center justify-center bg-white text-slate-900 text-[9px] font-bold h-4 min-w-4 px-0.5 rounded-full",children:n}),S.jsx(Je,{name:"ChevronDown",size:12,className:et("transition-transform duration-200",e?"text-slate-300":"opacity-40")})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:S.jsxs(Li,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-56 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[S.jsxs("div",{className:"flex justify-between items-center px-3 py-2 border-b border-slate-200 mb-1",children:[S.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider",children:t}),e&&S.jsx("button",{onClick:o,className:"text-[10px] font-medium text-rose-500 hover:text-rose-600 px-1.5 py-0.5 rounded hover:bg-rose-50 transition-colors",children:"Clear"})]}),S.jsx("div",{className:"max-h-60 overflow-y-auto p-1 custom-scrollbar",children:r})]})})]}),u0e=({sort:t,onSortChange:e})=>{const n=[{label:"Due Date",value:"dueAt",icon:"Calendar"},{label:"Created Date",value:"createdAt",icon:"Clock"},{label:"Priority",value:"priority",icon:"Flag"},{label:"Title",value:"title",icon:"Type"}],r=o=>{t.field===o?e({...t,direction:t.direction==="asc"?"desc":"asc"}):e({...t,field:o,direction:"asc"})};return S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-600 hover:text-slate-900 text-xs font-bold rounded-full transition-all shrink-0 outline-none ml-auto active:scale-95",children:[S.jsx(Je,{name:"ArrowUpDown",size:12}),S.jsx("span",{children:"Sort"})]})}),S.jsx(lh,{side:"bottom",align:"end",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:S.jsxs(Li,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-48 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[S.jsx("div",{className:"px-3 py-2 text-[10px] font-bold text-slate-400 uppercase border-b border-slate-200 mb-1",children:"Sort By"}),S.jsx("div",{className:"flex flex-col gap-0.5",children:n.map(o=>{const i=t.field===o.value;return S.jsx("button",{onClick:()=>r(o.value),children:S.jsxs("div",{className:et("flex items-center justify-start! text-sm rounded-lg outline-none hover:bg-slate-300 font-mono w-full p-2",i?"text-slate-900":"text-slate-600 hover:text-slate-900"),children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Je,{name:o.icon,size:14,className:i?"text-blue-500":"opacity-70"}),S.jsx("span",{children:o.label})]}),i&&S.jsx("div",{className:"flex items-center gap-1 text-blue-500",children:S.jsx(Je,{name:t.direction==="asc"?"ArrowUp":"ArrowDown",size:18})})]})},o.value)})})]})})]})};function s2({value:t,onChange:e,placeholder:n="Pick a date",className:r,disabled:o,showTime:i=!1}){const[a,s]=le.useState(!1),[c,f]=le.useState("00:00"),m=t?xt.fromISO(t):null,b=m?.isValid?m.toJSDate():void 0;le.useEffect(()=>{m?.isValid&&i&&f(m.toFormat("HH:mm"))},[t,m,i]);const C=_=>{if(!_){e("");return}let V=xt.fromJSDate(_);if(i&&c){const[B,q]=c.split(":").map(Number);V=V.set({hour:B,minute:q})}e(V.toISO()||""),i||s(!1)},A=_=>{const V=_.target.value;if(f(V),b){const[B,q]=V.split(":").map(Number),X=xt.fromJSDate(b).set({hour:B,minute:q});e(X.toISO()||"")}},P=le.useMemo(()=>m?.isValid?i?m.toFormat("MMM dd, yyyy HH:mm"):m.toFormat("MMM dd, yyyy"):n,[m,n,i]);return S.jsxs(tf,{open:a,onOpenChange:s,children:[S.jsx(nf,{asChild:!0,children:S.jsxs(cp,{variant:"outline",disabled:o,className:et("w-full justify-start text-left font-normal",!t&&"text-muted-foreground",r),children:[S.jsx(Z2,{className:"mr-2 h-4 w-4"}),P]})}),S.jsxs(lh,{className:"w-auto p-0",align:"start",children:[S.jsx(OX,{mode:"single",selected:b,onSelect:C,initialFocus:!0}),i&&S.jsxs("div",{className:"border-t border-border p-3",children:[S.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),S.jsx("input",{type:"time",value:c,onChange:A,className:"w-full px-3 py-2 bg-background border border-input rounded-md text-sm focus:ring-2 focus:ring-ring focus:border-ring outline-none"})]})]})]})}const d0e=[{value:rt.DAILY,label:"Daily"},{value:rt.WEEKLY,label:"Weekly"},{value:rt.MONTHLY,label:"Monthly"},{value:rt.YEARLY,label:"Yearly"}],h0e=[{label:"M",val:rt.MO},{label:"T",val:rt.TU},{label:"W",val:rt.WE},{label:"T",val:rt.TH},{label:"F",val:rt.FR},{label:"S",val:rt.SA},{label:"S",val:rt.SU}],f0e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],p0e=({task:t,onSave:e,onClose:n,availableCategories:r})=>{const[o,i]=xe.useState(t),[a,s]=xe.useState(!1),[c,f]=xe.useState(()=>{let P=rt.WEEKLY,_=1,V=[],B=[],q=[],X="",$="";if(t.isRecurring&&t.recurringInterval)try{const Q=rt.fromString(t.recurringInterval);P=Q.options.freq,_=Q.options.interval;const re=Q.options.byweekday;re&&(V=(Array.isArray(re)?re:[re]).map(fe=>typeof fe=="number"?new xa(fe):fe)),B=Q.options.bymonth?Array.isArray(Q.options.bymonth)?Q.options.bymonth:[Q.options.bymonth]:[],q=Q.options.bymonthday?Array.isArray(Q.options.bymonthday)?Q.options.bymonthday:[Q.options.bymonthday]:[],Q.options.dtstart&&(X=xt.fromJSDate(Q.options.dtstart).toISODate()||""),Q.options.until&&($=xt.fromJSDate(Q.options.until).toISODate()||"")}catch(Q){console.error(`parse recurrence rule failed with err: ${Q}`)}return{freq:P,interval:_,byWeekDay:V,byMonth:B,byMonthDay:q,start:X,end:$}}),m=P=>{f(_=>({..._,...P}))},b=()=>{const P={...o};if(P.isRecurring)try{const{start:_,end:V,freq:B,interval:q,byWeekDay:X,byMonth:$,byMonthDay:Q}=c,re=_?xt.fromISO(_).toJSDate():void 0,he=V?xt.fromISO(V).endOf("day").toJSDate():void 0,fe=new rt({freq:B,interval:q,byweekday:B===rt.WEEKLY?X:null,bymonth:B===rt.YEARLY&&$.length>0?$:null,bymonthday:(B===rt.MONTHLY||B===rt.YEARLY)&&Q.length>0?Q:null,dtstart:re,until:he});P.recurringInterval=fe.toString()}catch(_){console.error("Failed to generate RRule",_)}else P.recurringInterval=void 0;e(P)},C=()=>{i(P=>({...P,isRecurring:!P.isRecurring}))},A=r.filter(P=>P.toLowerCase().includes((o.category||"").toLowerCase())&&P.toLowerCase()!==(o.category||"").toLowerCase());return S.jsxs("div",{className:"flex flex-col max-h-[85vh]",children:[S.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 sticky top-0 backdrop-blur-md z-10 shrink-0",children:[S.jsx("h2",{className:"font-bold text-slate-800",children:"Edit Task"}),S.jsx("button",{onClick:n,"aria-label":"Close edit task modal",className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800",children:S.jsx(Je,{name:"X",size:20})})]}),S.jsxs("div",{className:"p-6 space-y-5 overflow-y-auto flex-1",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{htmlFor:"task-title",className:"text-xs font-semibold text-slate-500 uppercase",children:"Title"}),S.jsx("input",{id:"task-title",value:o.title,onChange:P=>i({...o,title:P.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none text-slate-900"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{htmlFor:"task-description",className:"text-xs font-semibold text-slate-500 uppercase",children:"Description"}),S.jsx("textarea",{id:"task-description",value:o.description||"",onChange:P=>i({...o,description:P.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none min-h-20 resize-none text-slate-900",placeholder:"Add details..."})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[S.jsxs("div",{className:"space-y-1 relative group",children:[S.jsx("label",{htmlFor:"task-category",className:"text-xs font-semibold text-slate-500 uppercase",children:"Category"}),S.jsxs("div",{className:"relative",children:[S.jsx("input",{id:"task-category",type:"text",value:o.category||"",onChange:P=>i({...o,category:P.target.value}),onFocus:()=>s(!0),onBlur:()=>setTimeout(()=>s(!1),200),placeholder:"Work, Personal...",className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none pl-9 text-slate-900"}),S.jsx("div",{className:"absolute left-3 top-2.5 text-slate-400 pointer-events-none",children:S.jsx(Je,{name:"Folder",size:14})}),S.jsx("div",{className:"absolute right-3 top-2.5 text-slate-400 pointer-events-none transition-transform duration-200",style:{transform:a?"rotate(180deg)":"rotate(0deg)"},children:S.jsx(Je,{name:"ChevronDown",size:14})})]}),S.jsx(sc,{children:a&&(A.length>0||o.category&&!r.includes(o.category))&&S.jsxs(ci.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0},className:"absolute z-20 w-full mt-1 bg-white border border-slate-100 rounded-lg shadow-xl max-h-40 overflow-y-auto py-1",children:[A.map(P=>S.jsxs("button",{onClick:()=>i({...o,category:P}),className:"w-full text-left px-3 py-2 text-sm text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[S.jsx(Je,{name:"Folder",size:12,className:"text-slate-400"}),P]},P)),o.category&&!r.includes(o.category)&&S.jsxs("div",{className:"px-3 py-2 text-xs text-blue-600 bg-blue-50/50 border-t border-blue-100 flex items-center gap-2",children:[S.jsx(Je,{name:"Plus",size:12}),'Create "',o.category,'"']})]})})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("span",{id:"priority-label",className:"text-xs font-semibold text-slate-500 uppercase",children:"Priority"}),S.jsx("div",{role:"radiogroup","aria-labelledby":"priority-label",className:"flex bg-slate-50 dark:bg-slate-800/50 p-1 rounded-lg border border-slate-200 dark:border-slate-700 h-9.5",children:["low","medium","high"].map(P=>S.jsx("button",{role:"radio","aria-checked":o.priority===P,onClick:()=>i({...o,priority:P}),className:et("flex-1 text-xs font-medium rounded-md capitalize transition-all flex items-center justify-center",o.priority===P?"bg-white dark:bg-slate-600 shadow-sm text-slate-800 dark:text-slate-100 border border-slate-100 dark:border-slate-500":"text-slate-500 hover:text-slate-700 dark:hover:text-slate-300"),children:P},P))})]})]}),S.jsxs("div",{className:"border-t border-slate-100 dark:border-slate-800 pt-4",children:[S.jsx("label",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-3 block",children:"Task Dates"}),S.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Created"}),S.jsx(s2,{value:o.createdAt,onChange:P=>i({...o,createdAt:P||o.createdAt}),showTime:!0,placeholder:"Select created date"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Due"}),S.jsx(s2,{value:o.dueAt,onChange:P=>i({...o,dueAt:P}),showTime:!0,placeholder:"Select due date"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Start At"}),S.jsx(s2,{value:o.startAt,onChange:P=>i({...o,startAt:P}),showTime:!0,placeholder:"Select start date"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Completed"}),S.jsx(s2,{value:o.completedAt,onChange:P=>i({...o,completedAt:P}),showTime:!0,placeholder:"Select completed date",disabled:o.status!=="done"&&o.status!=="cancelled"})]})]}),S.jsxs("div",{className:"bg-slate-50 dark:bg-slate-800/30 rounded-lg p-3 border border-slate-200/60 dark:border-slate-700 transition-colors",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:et("p-1.5 rounded-md",o.isRecurring?"bg-blue-100 text-blue-600":"bg-slate-200 text-slate-500"),children:S.jsx(Je,{name:"Repeat",size:16})}),S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"Recurrence"}),S.jsx("span",{className:"text-[10px] text-slate-400",children:"Repeats automatically"})]})]}),S.jsx("button",{onClick:C,role:"switch","aria-checked":o.isRecurring,"aria-label":"Toggle task recurrence",className:et("relative w-9 h-5 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",o.isRecurring?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(ci.div,{layout:!0,className:"absolute top-1 left-1 w-3 h-3 bg-white rounded-full shadow-sm",animate:{x:o.isRecurring?16:0}})})]}),S.jsx(sc,{children:o.isRecurring&&S.jsx(ci.div,{initial:{height:0,opacity:0,marginTop:0},animate:{height:"auto",opacity:1,marginTop:12},exit:{height:0,opacity:0,marginTop:0},className:"overflow-hidden",children:S.jsxs("div",{className:"pt-3 border-t border-slate-200/60 dark:border-slate-700 space-y-3",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("label",{htmlFor:"recurrence-interval",className:"text-xs font-medium text-slate-500",children:"Every"}),S.jsx("input",{id:"recurrence-interval",type:"number",min:"1",max:"99","aria-label":"Recurrence interval",value:c.interval,onChange:P=>m({interval:parseInt(P.target.value)||1}),className:"w-12 px-1.5 py-1 text-center bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 rounded-md text-xs focus:border-blue-500 outline-none text-slate-700 dark:text-slate-200"}),S.jsx("select",{"aria-label":"Recurrence frequency",value:c.freq,onChange:P=>m({freq:parseInt(P.target.value)}),className:"flex-1 bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 text-slate-700 dark:text-slate-200 text-xs rounded-md focus:ring-blue-500 focus:border-blue-500 block p-1 outline-none",children:d0e.map(P=>S.jsx("option",{value:P.value,children:P.label},P.value))})]}),c.freq===rt.WEEKLY&&S.jsxs("div",{className:"space-y-1",children:[S.jsx("span",{id:"weekdays-label",className:"text-[10px] font-semibold text-slate-400 uppercase",children:"On days"}),S.jsx("div",{role:"group","aria-labelledby":"weekdays-label",className:"flex justify-between",children:h0e.map((P,_)=>{const V=c.byWeekDay.some(q=>q.weekday===P.val.weekday),B=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return S.jsx("button",{"aria-label":B[_],"aria-pressed":V,onClick:()=>{const q=c.byWeekDay,X=q.some($=>$.weekday===P.val.weekday);m({byWeekDay:X?q.filter($=>$.weekday!==P.val.weekday):[...q,P.val]})},className:et("w-7 h-7 flex items-center justify-center rounded-full text-xs font-medium transition-all border",V?"bg-blue-500 text-white border-blue-600 shadow-sm":"bg-white dark:bg-slate-700 text-slate-500 dark:text-slate-400 border-slate-200 dark:border-slate-600 hover:border-blue-300 hover:text-blue-500"),children:P.label},P.label+P.val.weekday)})})]}),(c.freq===rt.MONTHLY||c.freq===rt.YEARLY)&&S.jsxs("div",{className:"space-y-3",children:[c.freq===rt.YEARLY&&S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Months"}),S.jsx("div",{className:"grid grid-cols-6 gap-1",children:f0e.map((P,_)=>{const V=_+1,B=c.byMonth.includes(V);return S.jsx("button",{onClick:()=>{const q=c.byMonth;m({byMonth:q.includes(V)?q.filter(X=>X!==V):[...q,V]})},className:et("py-1 text-[15px] rounded border transition-colors",B?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:P},P)})})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Days"}),S.jsx("div",{className:"grid grid-cols-7 gap-1",children:Array.from({length:31},(P,_)=>_+1).map(P=>{const _=c.byMonthDay.includes(P);return S.jsx("button",{onClick:()=>{const V=c.byMonthDay;m({byMonthDay:V.includes(P)?V.filter(B=>B!==P):[...V,P]})},className:et("w-full aspect-square flex items-center justify-center text-[15px] rounded border transition-colors",_?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:P},P)})})]})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-2 border-t border-slate-200/50 dark:border-slate-700/50",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Start Recurrence"}),S.jsx(s2,{value:c.start,onChange:P=>m({start:P&&xt.fromISO(P).toISODate()||""}),placeholder:"Select start",className:"h-8 text-xs"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"End Recurrence"}),S.jsx(s2,{value:c.end,onChange:P=>m({end:P&&xt.fromISO(P).toISODate()||""}),placeholder:"Select end",className:"h-8 text-xs"})]})]}),S.jsx("div",{className:"text-[10px] text-slate-400 italic bg-white/50 dark:bg-slate-800/50 p-2 rounded border border-slate-100 dark:border-slate-700 text-center",children:(()=>{try{const{freq:P,interval:_,byWeekDay:V,byMonth:B,byMonthDay:q,start:X,end:$}=c;return new rt({freq:P,interval:_,byweekday:P===rt.WEEKLY?V:null,bymonth:P===rt.YEARLY&&B.length>0?B:null,bymonthday:(P===rt.MONTHLY||P===rt.YEARLY)&&q.length>0?q:null,dtstart:X?xt.fromISO(X).toJSDate():void 0,until:$?xt.fromISO($).endOf("day").toJSDate():void 0}).toText()}catch(P){return console.error(`invalid recurrence rule: ${P}`),"Invalid Rule"}})()})]})})})]})]})]}),S.jsxs("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 border-t border-slate-100 dark:border-slate-800 flex justify-end gap-3 sticky bottom-0 z-10 shrink-0",children:[S.jsx("button",{onClick:n,className:"px-4 py-2 text-sm font-medium text-slate-600 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-lg transition-colors",children:"Cancel"}),S.jsx("button",{onClick:b,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg shadow-sm shadow-blue-200 transition-colors",children:"Save Changes"})]})]})},JX=({isOpen:t,onClose:e,task:n,onSave:r,availableCategories:o})=>S.jsx(sc,{children:t&&n&&S.jsxs(S.Fragment,{children:[S.jsx(ci.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),S.jsx(ci.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-lg bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden text-slate-900",children:S.jsx(p0e,{task:n,onSave:r,onClose:e,availableCategories:o},n.id)})]})}),KX=()=>S.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),S.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"AlertCircle",size:14,className:"text-rose-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Clock",size:14,className:"text-blue-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Zap",size:14,className:"text-purple-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Archive",size:14,className:"text-slate-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),S.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Code2",size:14,className:"text-emerald-500"}),"Scripting Guide"]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"Unlock advanced control by writing short JavaScript snippets to filter and sort your tasks precisely."}),S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[S.jsx(Je,{name:"Filter",size:12,className:"text-slate-400"}),"Filter Script"]}),S.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[S.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Show only high priority tasks due today"}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"const"})," today ="," ",S.jsx("span",{className:"text-blue-400",children:"new"})," ","Date().toISOString().split('T')[0];"]}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"return"})," task.priority === 'high' && task.dueDate === today;"]})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[S.jsx("b",{children:"Variable:"})," ",S.jsx("code",{children:"task"})," (The Task object).",S.jsx("br",{}),S.jsx("b",{children:"Return:"})," ",S.jsx("code",{children:"true"})," to keep, ",S.jsx("code",{children:"false"})," to hide."]})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[S.jsx(Je,{name:"ArrowUpDown",size:12,className:"text-slate-400"}),"Sort Script"]}),S.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[S.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Sort by title length, then alphabetically"}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"if"})," (a.title.length !== b.title.length) ",S.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.length - b.title.length;"]}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.localeCompare(b.title);"]})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[S.jsx("b",{children:"Variables:"})," ",S.jsx("code",{children:"a"}),", ",S.jsx("code",{children:"b"})," (Two Task objects to compare).",S.jsx("br",{}),S.jsx("b",{children:"Return:"})," Negative number if a < b, Positive if a > b, 0 if equal."]})]})]})]}),S.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"Mic",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),S.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"TerminalSquare",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),S.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",S.jsx("br",{}),S.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),S.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),S.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),S.jsx("span",{children:"Save task / Submit command"})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),S.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),S.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),y0e=[{id:"system",name:"System",colors:"bg-slate-400 border-slate-700"},{id:"light",name:"Light",colors:"bg-white border-slate-200"},{id:"dark",name:"Dark",colors:"bg-slate-900 border-slate-700"},{id:"midnight",name:"Midnight",colors:"bg-[#0B1120] border-slate-800"},{id:"coffee",name:"Coffee",colors:"bg-[#f5f2eb] border-[#e8e4db]"}],QX=({theme:t,setTheme:e})=>S.jsxs(S.Fragment,{children:[S.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Appearance"}),S.jsx("div",{className:"grid grid-cols-5 gap-2",children:y0e.map(n=>S.jsxs("button",{onClick:()=>e(n.id),className:et("flex flex-col items-center gap-2 p-2 rounded-xl border-2 transition-all outline-none",t===n.id?"border-blue-500 bg-blue-50/30 ring-2 ring-blue-200 dark:ring-blue-900":"border-transparent hover:bg-slate-50 dark:hover:bg-slate-800/50"),children:[S.jsx("div",{className:et("w-full aspect-square rounded-lg shadow-sm border border-slate-200/20",n.colors)}),S.jsx("span",{className:et("text-[10px] font-medium truncate w-full text-center",t===n.id?"text-blue-600":"text-slate-500"),children:n.name})]},n.id))})]}),g0e=[{id:"sm",label:"Small",class:"text-sm"},{id:"base",label:"Medium",class:"text-base"},{id:"lg",label:"Large",class:"text-lg"},{id:"xl",label:"Extra Large",class:"text-xl"}],jX=({fontSize:t,setFontSize:e})=>S.jsxs(S.Fragment,{children:[S.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Typography"}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500",children:"Item Font Size"}),S.jsx("div",{className:"grid grid-cols-4 gap-2",children:g0e.map(n=>S.jsxs("button",{onClick:()=>e(n.id),className:et("py-2 px-1 rounded-lg border text-center transition-all",t===n.id?"border-blue-500 bg-blue-50 dark:bg-slate-700 text-blue-700 dark:text-blue-100 shadow-sm":"border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-600 dark:text-slate-400"),children:[S.jsx("span",{className:et("block leading-none mb-1",n.class),children:"Ag"}),S.jsx("span",{className:"text-[10px] opacity-70",children:n.label})]},n.id))})]})]}),m0e=[{id:"dueAt",label:"Due Date"},{id:"createdAt",label:"Created Date"},{id:"startAt",label:"Start Date"},{id:"completedAt",label:"Completed Date"}],$X=[{value:"MMM d",label:"Oct 24"},{value:"EEE, MMM d",label:"Mon, Oct 24"},{value:"yyyy-MM-dd",label:"2023-10-24"},{value:"dd/MM/yyyy",label:"24/10/2023"}],eq=({showCompleted:t,toggleShowCompleted:e,useRelativeDates:n,toggleRelativeDates:r,showProgressBar:o,toggleProgressBar:i,defaultFocusMode:a,toggleDefaultFocus:s,setDateFormat:c,isCustomFormat:f,setIsCustomFormat:m,dateFormat:b,defaultCategory:C,setDefaultCategory:A,availableCategories:P,groupingStrategy:_,toggleGroupingStrategy:V})=>S.jsxs(S.Fragment,{children:[S.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"View Options"}),S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Show Completed"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Display finished items"})]}),S.jsx("button",{onClick:e,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:t?16:0}})})]}),S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Relative Dates"}),S.jsx("span",{className:"text-xs text-slate-400",children:'e.g. "In 2 days", "Yesterday"'})]}),S.jsx("button",{onClick:r,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",n?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:n?16:0}})})]}),S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Progress Bars"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Show visual completion in timeline"})]}),S.jsx("button",{onClick:i,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",o?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:o?16:0}})})]}),S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Default Focus Mode"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Start app in Focus Mode"})]}),S.jsx("button",{onClick:s,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",a?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:a?16:0}})})]}),S.jsxs("div",{className:"pt-2",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Date Format"}),S.jsx("div",{className:"grid grid-cols-2 gap-2 mb-2",children:$X.map(B=>S.jsxs("button",{onClick:()=>{c(B.value),m(!1)},className:et("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between",!f&&b===B.value?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[S.jsx("span",{children:B.label}),!f&&b===B.value&&S.jsx(Je,{name:"Check",size:12,className:"text-blue-500"})]},B.value))}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("button",{onClick:()=>m(!0),className:et("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between flex-1",f?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[S.jsx("span",{children:"Custom..."}),f&&S.jsx(Je,{name:"Check",size:12,className:"text-blue-500"})]}),f&&S.jsx("input",{type:"text",value:b,onChange:B=>c(B.target.value),className:"flex-1 px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500 font-mono",placeholder:"yyyy/MM/dd HH:mm"})]}),f&&S.jsxs("p",{className:"text-[10px] text-slate-400 mt-1 pl-1",children:["Uses Luxon format tokens (e.g. ",S.jsx("code",{children:"EEE, MMM d"}),")"]})]}),S.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Default Category"}),S.jsxs("div",{className:"relative",children:[S.jsx("input",{type:"text",list:"category-suggestions",value:C,onChange:B=>A(B.target.value),className:"w-full px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500",placeholder:"General"}),S.jsx("datalist",{id:"category-suggestions",children:P.map(B=>S.jsx("option",{value:B},B))})]})]}),S.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Group Tasks By (Multi-select)"}),S.jsx("div",{className:"grid grid-cols-2 gap-2",children:m0e.map(B=>{const q=_.includes(B.id);return S.jsxs("button",{onClick:()=>V(B.id),className:et("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between group",q?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[S.jsx("span",{children:B.label}),q&&S.jsx(Je,{name:"Check",size:12,className:"text-blue-500"})]},B.id)})})]})]})]}),v0e=({settings:t,onUpdateSettings:e,availableCategories:n})=>{const r=P=>e({...t,fontSize:P}),o=P=>e({...t,theme:P}),i=P=>e({...t,dateFormat:P}),a=P=>e({...t,defaultCategory:P}),s=()=>e({...t,showCompleted:!t.showCompleted}),c=()=>e({...t,useRelativeDates:!t.useRelativeDates}),f=()=>e({...t,showProgressBar:!t.showProgressBar}),m=()=>e({...t,defaultFocusMode:!t.defaultFocusMode}),b=P=>{const _=t.groupingStrategy,V=_.includes(P);let B;if(V){if(_.length===1)return;B=_.filter(q=>q!==P)}else B=[..._,P];e({...t,groupingStrategy:B})},[C,A]=xe.useState(!$X.some(P=>P.value===t.dateFormat));return S.jsx(S.Fragment,{children:S.jsxs("div",{className:"p-6 space-y-8",children:[S.jsx("section",{children:S.jsx(QX,{theme:t.theme,setTheme:o})}),S.jsx("section",{children:S.jsx(jX,{fontSize:t.fontSize,setFontSize:r})}),S.jsx("section",{children:S.jsx(eq,{showCompleted:t.showCompleted,toggleShowCompleted:s,useRelativeDates:t.useRelativeDates,toggleRelativeDates:c,showProgressBar:t.showProgressBar,toggleProgressBar:f,defaultFocusMode:t.defaultFocusMode,toggleDefaultFocus:m,dateFormat:t.dateFormat,setDateFormat:i,isCustomFormat:C,setIsCustomFormat:A,defaultCategory:t.defaultCategory,setDefaultCategory:a,availableCategories:n,groupingStrategy:t.groupingStrategy,toggleGroupingStrategy:b})})]})})},tq=({settings:t,onUpdateSettings:e,availableTags:n})=>{const r=()=>e({...t,enableVoiceInput:!t.enableVoiceInput}),o=C=>e({...t,voiceProvider:C}),i=()=>e({...t,aiConfig:{...t.aiConfig,enabled:!t.aiConfig.enabled}}),a=()=>e({...t,aiConfig:{...t.aiConfig,defaultMode:!t.aiConfig.defaultMode}}),s=C=>e({...t,aiConfig:{...t.aiConfig,activeProvider:C}}),c=C=>e({...t,filters:C}),f=C=>e({...t,sort:C}),m=(C,A,P)=>{e({...t,aiConfig:{...t.aiConfig,providers:{...t.aiConfig.providers,[C]:{...t.aiConfig.providers[C],[A]:P}}}})},b=t.aiConfig.providers[t.aiConfig.activeProvider];return S.jsxs("div",{className:"p-6 space-y-8 bg-slate-50/30 dark:bg-slate-900/20",children:[S.jsxs("section",{children:[S.jsxs("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4 flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Je,{name:"Sparkles",size:12,className:"text-blue-500"}),"AI Agent"]}),t.totalTokenUsage>0&&S.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 bg-slate-100 dark:bg-slate-800 rounded text-[10px] text-slate-500 font-mono",children:[S.jsx(Je,{name:"Cpu",size:10}),S.jsxs("span",{children:[t.totalTokenUsage.toLocaleString()," tokens"]})]})]}),S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Enable AI Agent"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Allow AI to manage your tasks"})]}),S.jsx("button",{onClick:i,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t.aiConfig.enabled?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:t.aiConfig.enabled?16:0}})})]}),S.jsx(sc,{children:t.aiConfig.enabled&&S.jsxs(Li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"space-y-5 overflow-hidden",children:[S.jsxs("div",{className:"flex items-center justify-between pl-2 border-l-2 border-slate-200 dark:border-slate-700 ml-1",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Default to AI"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Use AI for all inputs by default"})]}),S.jsx("button",{onClick:a,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t.aiConfig.defaultMode?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:t.aiConfig.defaultMode?16:0}})})]}),S.jsxs("div",{className:"space-y-3",children:[S.jsx("div",{className:"flex items-center gap-2 p-1 bg-slate-200 dark:bg-slate-800 rounded-lg",children:["gemini","openai","anthropic"].map(C=>S.jsx("button",{onClick:()=>s(C),className:et("flex-1 py-1.5 text-[10px] font-bold uppercase rounded-md transition-all",t.aiConfig.activeProvider===C?"bg-white dark:bg-slate-600 text-blue-600 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-700"),children:C},C))}),S.jsxs("div",{className:"space-y-3 p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"API Key"}),S.jsx("input",{type:"password",value:b.apiKey,onChange:C=>m(t.aiConfig.activeProvider,"apiKey",C.target.value),className:"w-full px-2 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded text-xs outline-none focus:border-blue-500 font-mono tracking-wide",placeholder:t.aiConfig.activeProvider==="gemini"?"(Auto-configured via Env)":"sk-..."})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Model"}),S.jsx("input",{type:"text",value:b.model,onChange:C=>m(t.aiConfig.activeProvider,"model",C.target.value),className:"w-full px-2 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded text-xs outline-none focus:border-blue-500"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Base URL"}),S.jsx("input",{type:"text",value:b.baseUrl,onChange:C=>m(t.aiConfig.activeProvider,"baseUrl",C.target.value),placeholder:"Default",className:"w-full px-2 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded text-xs outline-none focus:border-blue-500"})]})]})]})]})]})})]})]}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4 flex items-center gap-2",children:[S.jsx(Je,{name:"Filter",size:12,className:"text-blue-500"}),"Advanced Control"]}),S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Voice Input"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Enable microphone input"})]}),S.jsx("button",{onClick:r,className:et("relative w-9 h-5 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t.enableVoiceInput?"bg-emerald-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-3 h-3 bg-white rounded-full shadow-sm block",animate:{x:t.enableVoiceInput?16:0}})})]}),t.enableVoiceInput&&S.jsxs("div",{className:"pt-2",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Voice Provider"}),S.jsx("div",{className:"flex bg-slate-200 dark:bg-slate-700 p-1 rounded-lg",children:["browser","gemini-whisper"].map(C=>S.jsx("button",{onClick:()=>o(C),className:et("flex-1 py-1.5 text-[10px] font-bold uppercase rounded-md transition-all",t.voiceProvider===C?"bg-white dark:bg-slate-600 text-blue-600 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-700"),children:C==="gemini-whisper"?"Gemini":"Browser"},C))})]})]}),S.jsxs("div",{className:"space-y-3 border-t border-slate-200/50 dark:border-slate-700/50 pt-4",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 block",children:"Tags Filter"}),S.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.length===0&&S.jsx("span",{className:"text-xs text-slate-400 italic",children:"No tags found."}),n.map(C=>{const A=t.filters.tags.includes(C);return S.jsx("button",{onClick:()=>{const P=A?t.filters.tags.filter(_=>_!==C):[...t.filters.tags,C];c({...t.filters,tags:P})},className:et("px-2 py-1 text-xs rounded-md border transition-all",A?"bg-blue-100 border-blue-200 text-blue-700":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:C},C)})]})]}),S.jsxs("div",{className:"space-y-3 border-t border-slate-200/50 dark:border-slate-700/50 pt-4",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 block",children:"Script Filter"}),S.jsx("button",{onClick:()=>c({...t.filters,enableScript:!t.filters.enableScript}),className:et("relative w-7 h-4 rounded-full transition-colors focus:outline-none",t.filters.enableScript?"bg-purple-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-0.5 left-0.5 w-3 h-3 bg-white rounded-full shadow-sm block",animate:{x:t.filters.enableScript?12:0}})})]}),S.jsx(sc,{children:t.filters.enableScript&&S.jsxs(Li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:[S.jsx("textarea",{value:t.filters.script,onChange:C=>c({...t.filters,script:C.target.value}),className:"w-full h-28 p-3 bg-[#1e1e1e] text-purple-300 font-mono text-xs rounded-lg border border-slate-700 outline-none resize-none focus:ring-1 focus:ring-purple-500/50 focus:border-purple-500/50 transition-all shadow-inner leading-relaxed",placeholder:"return task.priority === 'high';",spellCheck:!1}),S.jsxs("p",{className:"text-[10px] text-slate-400 mt-1",children:["Var: ",S.jsx("code",{children:"task"}),". Use JS logic to return true/false."]})]})})]}),S.jsxs("div",{className:"space-y-3 border-t border-slate-200/50 dark:border-slate-700/50 pt-4",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 block",children:"Default Sorting"}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("select",{value:t.sort.field,onChange:C=>f({...t.sort,field:C.target.value}),className:"flex-1 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 text-slate-700 dark:text-slate-200 text-xs rounded-lg px-2 py-1.5 outline-none focus:ring-2 focus:ring-blue-500/20",children:[S.jsx("option",{value:"dueAt",children:"Due Date"}),S.jsx("option",{value:"createdAt",children:"Created Date"}),S.jsx("option",{value:"priority",children:"Priority"}),S.jsx("option",{value:"title",children:"Title"}),S.jsx("option",{value:"custom",children:"Custom Script"})]}),S.jsx("button",{onClick:()=>f({...t.sort,direction:t.sort.direction==="asc"?"desc":"asc"}),className:"px-3 py-1.5 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-lg text-slate-600 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-slate-700 transition-colors",children:t.sort.direction==="asc"?"ASC":"DESC"})]}),S.jsx(sc,{children:t.sort.field==="custom"&&S.jsxs(Li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:[S.jsx("textarea",{value:t.sort.script,onChange:C=>f({...t.sort,script:C.target.value}),className:"w-full h-28 p-3 bg-[#1e1e1e] text-emerald-400 font-mono text-xs rounded-lg border border-slate-700 outline-none resize-none focus:ring-1 focus:ring-emerald-500/50 focus:border-emerald-500/50 transition-all shadow-inner leading-relaxed",placeholder:"return a.title.localeCompare(b.title);",spellCheck:!1}),S.jsxs("p",{className:"text-[10px] text-slate-400 mt-1",children:["Vars: ",S.jsx("code",{children:"a"}),", ",S.jsx("code",{children:"b"}),". Return -1, 0, 1."]})]})})]})]})]})]})};var J1={},up={};var nq;function k0e(){if(nq)return up;nq=1;var t=xe,e=gf;function n(v){var x="https://react.dev/errors/"+v;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)x+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+v+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),_=Symbol.for("react.scope"),V=Symbol.for("react.activity"),B=Symbol.for("react.legacy_hidden"),q=Symbol.for("react.memo_cache_sentinel"),X=Symbol.for("react.view_transition"),$=Symbol.iterator;function Q(v){return v===null||typeof v!="object"?null:(v=$&&v[$]||v["@@iterator"],typeof v=="function"?v:null)}var re=Array.isArray;function he(v,x){var E=v.length&3,D=v.length-E,z=x;for(x=0;x<D;){var Z=v.charCodeAt(x)&255|(v.charCodeAt(++x)&255)<<8|(v.charCodeAt(++x)&255)<<16|(v.charCodeAt(++x)&255)<<24;++x,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,Z=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295,z^=Z,z=z<<13|z>>>19,z=5*(z&65535)+((5*(z>>>16)&65535)<<16)&4294967295,z=(z&65535)+27492+(((z>>>16)+58964&65535)<<16)}switch(Z=0,E){case 3:Z^=(v.charCodeAt(x+2)&255)<<16;case 2:Z^=(v.charCodeAt(x+1)&255)<<8;case 1:Z^=v.charCodeAt(x)&255,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,z^=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295}return z^=v.length,z^=z>>>16,z=2246822507*(z&65535)+((2246822507*(z>>>16)&65535)<<16)&4294967295,z^=z>>>13,z=3266489909*(z&65535)+((3266489909*(z>>>16)&65535)<<16)&4294967295,(z^z>>>16)>>>0}var fe=Object.assign,me=Object.prototype.hasOwnProperty,Ee=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Xe={},Oe={};function je(v){return me.call(Oe,v)?!0:me.call(Xe,v)?!1:Ee.test(v)?Oe[v]=!0:(Xe[v]=!0,!1)}var ze=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),De=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ce=/["'&<>]/;function ve(v){if(typeof v=="boolean"||typeof v=="number"||typeof v=="bigint")return""+v;v=""+v;var x=ce.exec(v);if(x){var E="",D,z=0;for(D=x.index;D<v.length;D++){switch(v.charCodeAt(D)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}z!==D&&(E+=v.slice(z,D)),z=D+1,E+=x}v=z!==D?E+v.slice(z,D):E}return v}var Ae=/([A-Z])/g,bt=/^ms-/,ae=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Y(v){return ae.test(""+v)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":v}var Se=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,We={pending:!1,data:null,method:null,action:null},Qe=Ne.d;Ne.d={f:Qe.f,r:Qe.r,D:Di,C:Vr,L:Os,m:xu,X:mh,S:$r,M:xd};var it=[],_e=null,yt=/(<\/|<)(s)(cript)/gi;function ht(v,x,E,D){return""+x+(E==="s"?"\\u0073":"\\u0053")+D}function at(v,x,E,D,z){return{idPrefix:v===void 0?"":v,nextFormID:0,streamingFormat:0,bootstrapScriptContent:E,bootstrapScripts:D,bootstrapModules:z,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function St(v,x,E,D){return{insertionMode:v,selectedValue:x,tagScope:E,viewTransition:D}}function Te(v,x,E){var D=v.tagScope&-25;switch(x){case"noscript":return St(2,null,D|1,null);case"select":return St(2,E.value!=null?E.value:E.defaultValue,D,null);case"svg":return St(4,null,D,null);case"picture":return St(2,null,D|2,null);case"math":return St(5,null,D,null);case"foreignObject":return St(2,null,D,null);case"table":return St(6,null,D,null);case"thead":case"tbody":case"tfoot":return St(7,null,D,null);case"colgroup":return St(9,null,D,null);case"tr":return St(8,null,D,null);case"head":if(2>v.insertionMode)return St(3,null,D,null);break;case"html":if(v.insertionMode===0)return St(1,null,D,null)}return 6<=v.insertionMode||2>v.insertionMode?St(2,null,D,null):v.tagScope!==D?St(v.insertionMode,v.selectedValue,D,null):v}function Be(v){return v===null?null:{update:v.update,enter:"none",exit:"none",share:v.update,name:v.autoName,autoName:v.autoName,nameIdx:0}}function ct(v,x){return x.tagScope&32&&(v.instructions|=128),St(x.insertionMode,x.selectedValue,x.tagScope|12,Be(x.viewTransition))}function At(v,x){v=Be(x.viewTransition);var E=x.tagScope|16;return v!==null&&v.share!=="none"&&(E|=64),St(x.insertionMode,x.selectedValue,E,v)}var $n=new Map;function Rs(v,x){if(typeof x!="object")throw Error(n(62));var E=!0,D;for(D in x)if(me.call(x,D)){var z=x[D];if(z!=null&&typeof z!="boolean"&&z!==""){if(D.indexOf("--")===0){var Z=ve(D);z=ve((""+z).trim())}else Z=$n.get(D),Z===void 0&&(Z=ve(D.replace(Ae,"-$1").toLowerCase().replace(bt,"-ms-")),$n.set(D,Z)),z=typeof z=="number"?z===0||ze.has(D)?""+z:z+"px":ve((""+z).trim());E?(E=!1,v.push(' style="',Z,":",z)):v.push(";",Z,":",z)}}E||v.push('"')}function es(v,x,E){E&&typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'=""')}function Pr(v,x,E){typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&v.push(" ",x,'="',ve(E),'"')}var xo=ve("javascript:throw new Error('React form unexpectedly submitted.')");function Ri(v,x){this.push('<input type="hidden"'),kr(v),Pr(this,"name",x),Pr(this,"value",v),this.push("/>")}function kr(v){if(typeof v!="string")throw Error(n(480))}function Pi(v,x){if(typeof x.$$FORM_ACTION=="function"){var E=v.nextFormID++;v=v.idPrefix+E;try{var D=x.$$FORM_ACTION(v);if(D){var z=D.data;z?.forEach(kr)}return D}catch(Z){if(typeof Z=="object"&&Z!==null&&typeof Z.then=="function")throw Z}}return null}function vu(v,x,E,D,z,Z,j,be){var oe=null;if(typeof D=="function"){var ge=Pi(x,D);ge!==null?(be=ge.name,D=ge.action||"",z=ge.encType,Z=ge.method,j=ge.target,oe=ge.data):(v.push(" ","formAction",'="',xo,'"'),j=Z=z=D=be=null,fh(x,E))}return be!=null&&qt(v,"name",be),D!=null&&qt(v,"formAction",D),z!=null&&qt(v,"formEncType",z),Z!=null&&qt(v,"formMethod",Z),j!=null&&qt(v,"formTarget",j),oe}function qt(v,x,E){switch(x){case"className":Pr(v,"class",E);break;case"tabIndex":Pr(v,"tabindex",E);break;case"dir":case"role":case"viewBox":case"width":case"height":Pr(v,x,E);break;case"style":Rs(v,E);break;case"src":case"href":if(E==="")break;case"action":case"formAction":if(E==null||typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=Y(""+E),v.push(" ",x,'="',ve(E),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":es(v,x.toLowerCase(),E);break;case"xlinkHref":if(typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=Y(""+E),v.push(" ","xlink:href",'="',ve(E),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'="',ve(E),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":E&&typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'=""');break;case"capture":case"download":E===!0?v.push(" ",x,'=""'):E!==!1&&typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'="',ve(E),'"');break;case"cols":case"rows":case"size":case"span":typeof E!="function"&&typeof E!="symbol"&&!isNaN(E)&&1<=E&&v.push(" ",x,'="',ve(E),'"');break;case"rowSpan":case"start":typeof E=="function"||typeof E=="symbol"||isNaN(E)||v.push(" ",x,'="',ve(E),'"');break;case"xlinkActuate":Pr(v,"xlink:actuate",E);break;case"xlinkArcrole":Pr(v,"xlink:arcrole",E);break;case"xlinkRole":Pr(v,"xlink:role",E);break;case"xlinkShow":Pr(v,"xlink:show",E);break;case"xlinkTitle":Pr(v,"xlink:title",E);break;case"xlinkType":Pr(v,"xlink:type",E);break;case"xmlBase":Pr(v,"xml:base",E);break;case"xmlLang":Pr(v,"xml:lang",E);break;case"xmlSpace":Pr(v,"xml:space",E);break;default:if((!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=De.get(x)||x,je(x))){switch(typeof E){case"function":case"symbol":return;case"boolean":var D=x.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-")return}v.push(" ",x,'="',ve(E),'"')}}}function jr(v,x,E){if(x!=null){if(E!=null)throw Error(n(60));if(typeof x!="object"||!("__html"in x))throw Error(n(61));x=x.__html,x!=null&&v.push(""+x)}}function kn(v){var x="";return t.Children.forEach(v,function(E){E!=null&&(x+=E)}),x}function fh(v,x){if((v.instructions&16)===0){v.instructions|=16;var E=x.preamble,D=x.bootstrapChunks;(E.htmlChunks||E.headChunks)&&D.length===0?(D.push(x.startInlineScript),wc(D,v),D.push(">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")):D.unshift(x.startInlineScript,">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")}}function or(v,x){v.push(Un("link"));for(var E in x)if(me.call(x,E)){var D=x[E];if(D!=null)switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:qt(v,E,D)}}return v.push("/>"),null}var gd=/(<\/|<)(s)(tyle)/gi;function md(v,x,E,D){return""+x+(E==="s"?"\\73 ":"\\53 ")+D}function Ca(v,x,E){v.push(Un(E));for(var D in x)if(me.call(x,D)){var z=x[D];if(z!=null)switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,E));default:qt(v,D,z)}}return v.push("/>"),null}function vd(v,x){v.push(Un("title"));var E=null,D=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),x=Array.isArray(E)?2>E.length?E[0]:null:E,typeof x!="function"&&typeof x!="symbol"&&x!==null&&x!==void 0&&v.push(ve(""+x)),jr(v,D,E),v.push(Fs("title")),null}function mc(v,x){v.push(Un("script"));var E=null,D=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),jr(v,D,E),typeof E=="string"&&v.push((""+E).replace(yt,ht)),v.push(Fs("script")),null}function Ps(v,x,E){v.push(Un(E));var D=E=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),jr(v,D,E),E}function ts(v,x,E){v.push(Un(E));var D=E=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),jr(v,D,E),typeof E=="string"?(v.push(ve(E)),null):E}var Ds=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vc=new Map;function Un(v){var x=vc.get(v);if(x===void 0){if(!Ds.test(v))throw Error(n(65,v));x="<"+v,vc.set(v,x)}return x}function In(v,x,E,D,z,Z,j,be,oe){switch(x){case"div":case"span":case"svg":case"path":break;case"a":v.push(Un("a"));var ge=null,Re=null,Ie;for(Ie in E)if(me.call(E,Ie)){var Ye=E[Ie];if(Ye!=null)switch(Ie){case"children":ge=Ye;break;case"dangerouslySetInnerHTML":Re=Ye;break;case"href":Ye===""?Pr(v,"href",""):qt(v,Ie,Ye);break;default:qt(v,Ie,Ye)}}if(v.push(">"),jr(v,Re,ge),typeof ge=="string"){v.push(ve(ge));var ft=null}else ft=ge;return ft;case"g":case"p":case"li":break;case"select":v.push(Un("select"));var Dt=null,Mt=null,mt;for(mt in E)if(me.call(E,mt)){var It=E[mt];if(It!=null)switch(mt){case"children":Dt=It;break;case"dangerouslySetInnerHTML":Mt=It;break;case"defaultValue":case"value":break;default:qt(v,mt,It)}}return v.push(">"),jr(v,Mt,Dt),Dt;case"option":var wt=be.selectedValue;v.push(Un("option"));var Rn=null,Ft=null,Yt=null,on=null,Rt;for(Rt in E)if(me.call(E,Rt)){var Wn=E[Rt];if(Wn!=null)switch(Rt){case"children":Rn=Wn;break;case"selected":Yt=Wn;break;case"dangerouslySetInnerHTML":on=Wn;break;case"value":Ft=Wn;default:qt(v,Rt,Wn)}}if(wt!=null){var jt=Ft!==null?""+Ft:kn(Rn);if(re(wt)){for(var eo=0;eo<wt.length;eo++)if(""+wt[eo]===jt){v.push(' selected=""');break}}else""+wt===jt&&v.push(' selected=""')}else Yt&&v.push(' selected=""');return v.push(">"),jr(v,on,Rn),Rn;case"textarea":v.push(Un("textarea"));var sn=null,Xt=null,$t=null,Et;for(Et in E)if(me.call(E,Et)){var en=E[Et];if(en!=null)switch(Et){case"children":$t=en;break;case"value":sn=en;break;case"defaultValue":Xt=en;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:qt(v,Et,en)}}if(sn===null&&Xt!==null&&(sn=Xt),v.push(">"),$t!=null){if(sn!=null)throw Error(n(92));if(re($t)){if(1<$t.length)throw Error(n(93));sn=""+$t[0]}sn=""+$t}return typeof sn=="string"&&sn[0]===`
|
|
72
|
+
`)},mfe=0,n2=[];function vfe(t){var e=le.useRef([]),n=le.useRef([0,0]),r=le.useRef(),o=le.useState(mfe++)[0],i=le.useState(jZ)[0],a=le.useRef(t);le.useEffect(function(){a.current=t},[t]),le.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var _=tt([t.lockRef.current],(t.shards||[]).map(iX),!0).filter(Boolean);return _.forEach(function(V){return V.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),_.forEach(function(V){return V.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var s=le.useCallback(function(_,V){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!a.current.allowPinchZoom;var B=XD(_),q=n.current,X="deltaX"in _?_.deltaX:q[0]-B[0],$="deltaY"in _?_.deltaY:q[1]-B[1],Q,re=_.target,he=Math.abs(X)>Math.abs($)?"h":"v";if("touches"in _&&he==="h"&&re.type==="range")return!1;var fe=window.getSelection(),me=fe&&fe.anchorNode,Ee=me?me===re||me.contains(re):!1;if(Ee)return!1;var Xe=tX(he,re);if(!Xe)return!0;if(Xe?Q=he:(Q=he==="v"?"h":"v",Xe=tX(he,re)),!Xe)return!1;if(!r.current&&"changedTouches"in _&&(X||$)&&(r.current=Q),!Q)return!0;var Oe=r.current||Q;return pfe(Oe,V,_,Oe==="h"?X:$)},[]),c=le.useCallback(function(_){var V=_;if(!(!n2.length||n2[n2.length-1]!==i)){var B="deltaY"in V?oX(V):XD(V),q=e.current.filter(function(Q){return Q.name===V.type&&(Q.target===V.target||V.target===Q.shadowParent)&&yfe(Q.delta,B)})[0];if(q&&q.should){V.cancelable&&V.preventDefault();return}if(!q){var X=(a.current.shards||[]).map(iX).filter(Boolean).filter(function(Q){return Q.contains(V.target)}),$=X.length>0?s(V,X[0]):!a.current.noIsolation;$&&V.cancelable&&V.preventDefault()}}},[]),f=le.useCallback(function(_,V,B,q){var X={name:_,delta:V,target:B,should:q,shadowParent:kfe(B)};e.current.push(X),setTimeout(function(){e.current=e.current.filter(function($){return $!==X})},1)},[]),m=le.useCallback(function(_){n.current=XD(_),r.current=void 0},[]),b=le.useCallback(function(_){f(_.type,oX(_),_.target,s(_,t.lockRef.current))},[]),C=le.useCallback(function(_){f(_.type,XD(_),_.target,s(_,t.lockRef.current))},[]);le.useEffect(function(){return n2.push(i),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",c,t2),document.addEventListener("touchmove",c,t2),document.addEventListener("touchstart",m,t2),function(){n2=n2.filter(function(_){return _!==i}),document.removeEventListener("wheel",c,t2),document.removeEventListener("touchmove",c,t2),document.removeEventListener("touchstart",m,t2)}},[]);var A=t.removeScrollBar,P=t.inert;return le.createElement(le.Fragment,null,P?le.createElement(i,{styles:gfe(o)}):null,A?le.createElement(sfe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function kfe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const xfe=qhe(QZ,vfe);var aX=le.forwardRef(function(t,e){return le.createElement(YD,Fo({},t,{ref:e,sideCar:xfe}))});aX.classNames=YD.classNames;var qD="Popover",[sX]=KN(qD,[NZ]),ip=NZ(),[bfe,ef]=sX(qD),lX=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=t,s=ip(e),c=le.useRef(null),[f,m]=le.useState(!1),[b,C]=XZ({prop:r,defaultProp:o??!1,onChange:i,caller:qD});return S.jsx(She,{...s,children:S.jsx(bfe,{scope:e,contentId:dZ(),triggerRef:c,open:b,onOpenChange:C,onOpenToggle:le.useCallback(()=>C(A=>!A),[C]),hasCustomAnchor:f,onCustomAnchorAdd:le.useCallback(()=>m(!0),[]),onCustomAnchorRemove:le.useCallback(()=>m(!1),[]),modal:a,children:n})})};lX.displayName=qD;var cX="PopoverAnchor",wfe=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ef(cX,n),i=ip(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return le.useEffect(()=>(a(),()=>s()),[a,s]),S.jsx(YZ,{...i,...r,ref:e})});wfe.displayName=cX;var uX="PopoverTrigger",dX=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ef(uX,n),i=ip(n),a=oh(e,o.triggerRef),s=S.jsx(yc.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mX(o.open),...r,ref:a,onClick:rh(t.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:S.jsx(YZ,{asChild:!0,...i,children:s})});dX.displayName=uX;var kO="PopoverPortal",[Mfe,Cfe]=sX(kO,{forceMount:void 0}),hX=t=>{const{__scopePopover:e,forceMount:n,children:r,container:o}=t,i=ef(kO,e);return S.jsx(Mfe,{scope:e,forceMount:n,children:S.jsx(zD,{present:n||i.open,children:S.jsx(ZZ,{asChild:!0,container:o,children:r})})})};hX.displayName=kO;var r2="PopoverContent",fX=le.forwardRef((t,e)=>{const n=Cfe(r2,t.__scopePopover),{forceMount:r=n.forceMount,...o}=t,i=ef(r2,t.__scopePopover);return S.jsx(zD,{present:r||i.open,children:i.modal?S.jsx(Sfe,{...o,ref:e}):S.jsx(Ife,{...o,ref:e})})});fX.displayName=r2;var Tfe=jY("PopoverContent.RemoveScroll"),Sfe=le.forwardRef((t,e)=>{const n=ef(r2,t.__scopePopover),r=le.useRef(null),o=oh(e,r),i=le.useRef(!1);return le.useEffect(()=>{const a=r.current;if(a)return zhe(a)},[]),S.jsx(aX,{as:Tfe,allowPinchZoom:!0,children:S.jsx(pX,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rh(t.onCloseAutoFocus,a=>{a.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:rh(t.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,f=s.button===2||c;i.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:rh(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ife=le.forwardRef((t,e)=>{const n=ef(r2,t.__scopePopover),r=le.useRef(!1),o=le.useRef(!1);return S.jsx(pX,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),pX=le.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,...b}=t,C=ef(r2,n),A=ip(n);return Kue(),S.jsx(aZ,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(tZ,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onDismiss:()=>C.onOpenChange(!1),children:S.jsx(Ihe,{"data-state":mX(C.open),role:"dialog",id:C.contentId,...A,...b,ref:e,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),yX="PopoverClose",gX=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ef(yX,n);return S.jsx(yc.button,{type:"button",...r,ref:e,onClick:rh(t.onClick,()=>o.onOpenChange(!1))})});gX.displayName=yX;var Efe="PopoverArrow",Afe=le.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ip(n);return S.jsx(Ehe,{...o,...r,ref:e})});Afe.displayName=Efe;function mX(t){return t?"open":"closed"}var Lfe=lX,Rfe=dX,Pfe=hX,vX=fX,Dfe=gX;const kX=xe.createContext({portalContainer:null}),xX=()=>xe.useContext(kX).portalContainer,tf=Lfe,nf=Rfe,X1=Dfe,lh=le.forwardRef(({className:t,align:e="center",sideOffset:n=4,...r},o)=>{const i=xX();return S.jsx(Pfe,{container:i,children:S.jsx(vX,{ref:o,align:e,sideOffset:n,"data-slot":"popover-content",className:et("z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...r})})});lh.displayName=vX.displayName;const bX=6048e5,Ffe=864e5,wX=Symbol.for("constructDateFrom");function Cl(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&wX in t?t[wX](e):t instanceof Date?new t.constructor(e):new Date(e)}function $a(t,e){return Cl(e||t,t)}function MX(t,e,n){const r=$a(t,n?.in);if(isNaN(e))return Cl(t,NaN);if(!e)return r;const o=r.getDate(),i=Cl(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let _fe={};function ap(){return _fe}function o2(t,e){const n=ap(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$a(t,e?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function JD(t,e){return o2(t,{...e,weekStartsOn:1})}function CX(t,e){const n=$a(t,e?.in),r=n.getFullYear(),o=Cl(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=JD(o),a=Cl(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=JD(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function TX(t){const e=$a(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function KD(t,...e){const n=Cl.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function QD(t,e){const n=$a(t,e?.in);return n.setHours(0,0,0,0),n}function Nfe(t,e,n){const[r,o]=KD(n?.in,t,e),i=QD(r),a=QD(o),s=+i-TX(i),c=+a-TX(a);return Math.round((s-c)/Ffe)}function Ofe(t,e){const n=CX(t,e),r=Cl(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),JD(r)}function Hfe(t){return Cl(t,Date.now())}function SX(t,e,n){const[r,o]=KD(n?.in,t,e);return+QD(r)==+QD(o)}function zfe(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Vfe(t){return!(!zfe(t)&&typeof t!="number"||isNaN(+$a(t)))}function Ufe(t,e){const n=$a(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Bfe(t,e){const[n,r]=KD(t,e.start,e.end);return{start:n,end:r}}function Wfe(t,e){const{start:n,end:r}=Bfe(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(Cl(n,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function jD(t,e){const n=$a(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Gfe(t,e){const n=$a(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Yfe(t,e){const n=ap(),r=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$a(t,e?.in),i=o.getDay(),a=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}const Zfe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Xfe=(t,e,n)=>{let r;const o=Zfe[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xO(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const qfe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jfe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kfe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qfe={date:xO({formats:qfe,defaultWidth:"full"}),time:xO({formats:Jfe,defaultWidth:"full"}),dateTime:xO({formats:Kfe,defaultWidth:"full"})},jfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$fe=(t,e,n,r)=>jfe[t];function sp(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,s=n?.width?String(n.width):a;o=t.formattingValues[s]||t.formattingValues[a]}else{const a=t.defaultWidth,s=n?.width?String(n.width):t.defaultWidth;o=t.values[s]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return o[i]}}const e1e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},t1e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n1e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},r1e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a1e={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:sp({values:e1e,defaultWidth:"wide"}),quarter:sp({values:t1e,defaultWidth:"wide",argumentCallback:t=>t-1}),month:sp({values:n1e,defaultWidth:"wide"}),day:sp({values:r1e,defaultWidth:"wide"}),dayPeriod:sp({values:o1e,defaultWidth:"wide",formattingValues:i1e,defaultFormattingWidth:"wide"})};function lp(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(o);if(!i)return null;const a=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?l1e(s,b=>b.test(a)):s1e(s,b=>b.test(a));let f;f=t.valueCallback?t.valueCallback(c):c,f=n.valueCallback?n.valueCallback(f):f;const m=e.slice(a.length);return{value:f,rest:m}}}function s1e(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function l1e(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function c1e(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=e.slice(o.length);return{value:a,rest:s}}}const u1e=/^(\d+)(th|st|nd|rd)?/i,d1e=/\d+/i,h1e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},f1e={any:[/^b/i,/^(a|c)/i]},p1e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},y1e={any:[/1/i,/2/i,/3/i,/4/i]},g1e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m1e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v1e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},k1e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},x1e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},b1e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},w1e={ordinalNumber:c1e({matchPattern:u1e,parsePattern:d1e,valueCallback:t=>parseInt(t,10)}),era:lp({matchPatterns:h1e,defaultMatchWidth:"wide",parsePatterns:f1e,defaultParseWidth:"any"}),quarter:lp({matchPatterns:p1e,defaultMatchWidth:"wide",parsePatterns:y1e,defaultParseWidth:"any",valueCallback:t=>t+1}),month:lp({matchPatterns:g1e,defaultMatchWidth:"wide",parsePatterns:m1e,defaultParseWidth:"any"}),day:lp({matchPatterns:v1e,defaultMatchWidth:"wide",parsePatterns:k1e,defaultParseWidth:"any"}),dayPeriod:lp({matchPatterns:x1e,defaultMatchWidth:"any",parsePatterns:b1e,defaultParseWidth:"any"})},M1e={code:"en-US",formatDistance:Xfe,formatLong:Qfe,formatRelative:$fe,localize:a1e,match:w1e,options:{weekStartsOn:0,firstWeekContainsDate:1}};function C1e(t,e){const n=$a(t,e?.in);return Nfe(n,Gfe(n))+1}function T1e(t,e){const n=$a(t,e?.in),r=+JD(n)-+Ofe(n);return Math.round(r/bX)+1}function IX(t,e){const n=$a(t,e?.in),r=n.getFullYear(),o=ap(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Cl(e?.in||t,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=o2(a,e),c=Cl(e?.in||t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const f=o2(c,e);return+n>=+s?r+1:+n>=+f?r:r-1}function S1e(t,e){const n=ap(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=IX(t,e),i=Cl(e?.in||t,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),o2(i,e)}function I1e(t,e){const n=$a(t,e?.in),r=+o2(n,e)-+S1e(n,e);return Math.round(r/bX)+1}function rr(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const rf={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return rr(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):rr(n+1,2)},d(t,e){return rr(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return rr(t.getHours()%12||12,e.length)},H(t,e){return rr(t.getHours(),e.length)},m(t,e){return rr(t.getMinutes(),e.length)},s(t,e){return rr(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return rr(o,e.length)}},i2={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},EX={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return rf.y(t,e)},Y:function(t,e,n,r){const o=IX(t,r),i=o>0?o:1-o;if(e==="YY"){const a=i%100;return rr(a,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):rr(i,e.length)},R:function(t,e){const n=CX(t);return rr(n,e.length)},u:function(t,e){const n=t.getFullYear();return rr(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return rr(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return rr(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return rf.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return rr(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=I1e(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):rr(o,e.length)},I:function(t,e,n){const r=T1e(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):rr(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):rf.d(t,e)},D:function(t,e,n){const r=C1e(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):rr(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return rr(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return rr(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return rr(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=i2.noon:r===0?o=i2.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=i2.evening:r>=12?o=i2.afternoon:r>=4?o=i2.morning:o=i2.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return rf.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):rf.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):rr(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):rr(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):rf.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):rf.s(t,e)},S:function(t,e){return rf.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return LX(r);case"XXXX":case"XX":return q1(r);default:return q1(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return LX(r);case"xxxx":case"xx":return q1(r);default:return q1(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+AX(r,":");default:return"GMT"+q1(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+AX(r,":");default:return"GMT"+q1(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return rr(r,e.length)},T:function(t,e,n){return rr(+t,e.length)}};function AX(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+e+rr(i,2)}function LX(t,e){return t%60===0?(t>0?"-":"+")+rr(Math.abs(t)/60,2):q1(t,e)}function q1(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=rr(Math.trunc(r/60),2),i=rr(r%60,2);return n+o+e+i}const RX=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},PX=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},E1e={p:PX,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return RX(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",RX(r,e)).replace("{{time}}",PX(o,e))}},A1e=/^D+$/,L1e=/^Y+$/,R1e=["D","DD","YY","YYYY"];function P1e(t){return A1e.test(t)}function D1e(t){return L1e.test(t)}function F1e(t,e,n){const r=_1e(t,e,n);if(console.warn(r),R1e.includes(t))throw new RangeError(r)}function _1e(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const N1e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O1e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,H1e=/^'([^]*?)'?$/,z1e=/''/g,V1e=/[a-zA-Z]/;function DX(t,e,n){const r=ap(),o=r.locale??M1e,i=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=$a(t,n?.in);if(!Vfe(s))throw new RangeError("Invalid time value");let c=e.match(O1e).map(m=>{const b=m[0];if(b==="p"||b==="P"){const C=E1e[b];return C(m,o.formatLong)}return m}).join("").match(N1e).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const b=m[0];if(b==="'")return{isToken:!1,value:U1e(m)};if(EX[b])return{isToken:!0,value:m};if(b.match(V1e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:m}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const f={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map(m=>{if(!m.isToken)return m.value;const b=m.value;(D1e(b)||P1e(b))&&F1e(b,e,String(t));const C=EX[b[0]];return C(s,b,o.localize,f)}).join("")}function U1e(t){const e=t.match(H1e);return e?e[1].replace(z1e,"'"):t}function B1e(t,e,n){const[r,o]=KD(n?.in,t,e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function W1e(t,e){return SX(Cl(t,t),Hfe(t))}function G1e(t,e,n){return MX(t,-1,n)}var Y1e=Symbol.for("react.lazy"),$D=le[" use ".trim().toString()];function Z1e(t){return typeof t=="object"&&t!==null&&"then"in t}function FX(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Y1e&&"_payload"in t&&Z1e(t._payload)}function X1e(t){const e=J1e(t),n=le.forwardRef((r,o)=>{let{children:i,...a}=r;FX(i)&&typeof $D=="function"&&(i=$D(i._payload));const s=le.Children.toArray(i),c=s.find(Q1e);if(c){const f=c.props.children,m=s.map(b=>b===c?le.Children.count(f)>1?le.Children.only(null):le.isValidElement(f)?f.props.children:null:b);return S.jsx(e,{...a,ref:o,children:le.isValidElement(f)?le.cloneElement(f,void 0,m):null})}return S.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}var q1e=X1e("Slot");function J1e(t){const e=le.forwardRef((n,r)=>{let{children:o,...i}=n;if(FX(o)&&typeof $D=="function"&&(o=$D(o._payload)),le.isValidElement(o)){const a=$1e(o),s=j1e(i,o.props);return o.type!==le.Fragment&&(s.ref=r?JN(r,a):a),le.cloneElement(o,s)}return le.Children.count(o)>1?le.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var K1e=Symbol("radix.slottable");function Q1e(t){return le.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===K1e}function j1e(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function $1e(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}const _X=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,NX=FB,e0e=((t,e)=>n=>{var r;if(e?.variants==null)return NX(t,n?.class,n?.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(f=>{const m=n?.[f],b=i?.[f];if(m===null)return null;const C=_X(m)||_X(b);return o[f][C]}),s=n&&Object.entries(n).reduce((f,m)=>{let[b,C]=m;return C===void 0||(f[b]=C),f},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:b,className:C,...A}=m;return Object.entries(A).every(P=>{let[_,V]=P;return Array.isArray(V)?V.includes({...i,...s}[_]):{...i,...s}[_]===V})?[...f,b,C]:f},[]);return NX(t,a,c,n?.class,n?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cp=le.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...o},i)=>{const a=r?q1e:"button";return S.jsx(a,{className:et(e0e({variant:e,size:n,className:t})),ref:i,...o})});cp.displayName="Button";function OX({className:t,selected:e,onSelect:n,disabled:r}){const[o,i]=le.useState(()=>jD(e||new Date)),a=["Su","Mo","Tu","We","Th","Fr","Sa"],s=jD(o),c=Ufe(o),f=o2(s),m=Yfe(c),b=Wfe({start:f,end:m}),C=()=>{i(G1e(o))},A=()=>{i(MX(o,1))},P=_=>{r?.(_)||n?.(_)};return S.jsxs("div",{"data-slot":"calendar",className:et("bg-popover p-3 w-[280px] select-none",t),children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx(cp,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:C,type:"button",children:S.jsx(X2,{className:"h-4 w-4"})}),S.jsx("span",{className:"text-sm font-semibold text-foreground",children:DX(o,"MMMM yyyy")}),S.jsx(cp,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:A,type:"button",children:S.jsx(q2,{className:"h-4 w-4"})})]}),S.jsx("div",{className:"grid grid-cols-7 mb-2",children:a.map(_=>S.jsx("div",{className:"h-8 flex items-center justify-center text-xs font-medium text-muted-foreground",children:_},_))}),S.jsx("div",{className:"grid grid-cols-7 gap-0.5",children:b.map((_,V)=>{const B=B1e(_,o),q=e&&SX(_,e),X=W1e(_),$=r?.(_);return S.jsx("button",{type:"button",onClick:()=>P(_),disabled:$,className:et("h-8 w-8 mx-auto rounded-full text-sm font-normal transition-all duration-150","hover:bg-accent hover:text-accent-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-95",!B&&"text-muted-foreground/40",X&&!q&&"bg-accent text-accent-foreground font-semibold ring-1 ring-primary/30",q&&"bg-primary text-primary-foreground font-semibold shadow-sm hover:bg-primary/90 hover:text-primary-foreground",$&&"pointer-events-none opacity-30"),children:DX(_,"d")},V)})}),S.jsx("div",{className:"mt-3 pt-3 border-t border-border",children:S.jsx(cp,{variant:"ghost",size:"sm",type:"button",className:"w-full text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>{const _=new Date;i(jD(_)),n?.(_)},children:"Today"})})]})}const eF=({type:t,date:e,label:n,icon:r,className:o,prefix:i="",onUpdate:a,task:s})=>{const[c,f]=xe.useState(()=>{if(!e)return;const q=xt.fromISO(e);return q.isValid?q.toJSDate():void 0}),[m,b]=xe.useState(()=>{if(!e)return"00:00";const q=xt.fromISO(e);return q.isValid?q.toFormat("HH:mm"):"00:00"}),C=t==="startAt"||t==="createdAt"||t==="completedAt",A=t.endsWith("At")?t.slice(0,t.length-2).toUpperCase():"",P=q=>{f(q)},_=q=>{b(q.target.value)},V=()=>{let q="";if(c){let $=xt.fromJSDate(c);if(C&&m){const[Q,re]=m.split(":").map(Number);$=$.set({hour:Q,minute:re})}q=C?$.toISO()||"":$.toISODate()||""}a({...s,[t==="dueDate"?"dueAt":t]:q})},B={dueDate:"Change Due Date",startAt:"Change Start Date",createdAt:"Change Created Date",completedAt:"Change Completed Date"};return S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:o,title:B[t],children:[S.jsx(Je,{name:r,size:10}),S.jsxs("span",{className:"font-mono",children:[i,n]})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:S.jsxs(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[S.jsx(OX,{mode:"single",selected:c,onSelect:P}),C&&S.jsxs("div",{className:"border-t border-border px-3 py-2",children:[S.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),S.jsx("input",{type:"time",value:m,onChange:_,className:et("w-full px-3 py-2 bg-background border border-input rounded-md text-sm","focus:ring-2 focus:ring-ring focus:border-ring outline-none")})]}),S.jsx("div",{className:"border-t border-border p-2",children:S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:V,className:et("w-full text-primary text-xs font-semibold py-2 rounded-md","hover:bg-accent transition-colors"),children:["Save ",A," date"]})})})]})})]})},t0e=({tag:t,badgeClass:e,task:n,onUpdate:r})=>S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:et(e,"text-blue-600 bg-blue-50/80 border-blue-100/50 hover:bg-rose-50 hover:text-rose-600 hover:border-rose-100 transition-colors"),title:"Click to remove",children:[S.jsx(Je,{name:"Tag",size:10}),S.jsx("span",{children:t.name})]})}),S.jsx(lh,{side:"top",align:"center",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:S.jsx(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"p-1",children:S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:()=>r({...n,tags:n.tags.filter(o=>o.id!==t.id)}),className:"flex items-center gap-1.5 text-xs text-rose-600! px-2 py-1 rounded hover:bg-rose-50",children:[S.jsx(Je,{name:"Trash",size:12}),"Remove Tag"]})})})})]}),n0e=({task:t,badgeClass:e,onUpdate:n})=>{const r=t.priority;let o="text-slate-600 bg-slate-100 border-slate-200";return r==="high"&&(o="text-rose-700 bg-rose-100 border-rose-200"),r==="medium"&&(o="text-amber-700 bg-amber-100 border-amber-200"),S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:et(e,o),title:"Change Priority",children:[S.jsx(Je,{name:"Flag",size:10,strokeWidth:r==="high"?3:2}),S.jsx("span",{className:"capitalize",children:r})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-1",children:S.jsx(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"flex flex-col gap-1",children:["high","medium","low"].map(i=>S.jsx(X1,{asChild:!0,children:S.jsx("button",{onClick:()=>n({...t,priority:i}),children:S.jsxs("div",{className:et("flex items-center gap-2 px-2 py-1.5 text-xs rounded-md text-left transition-colors justify-start! hover:bg-slate-300",t.priority===i?"bg-rose-300 font-bold":"hover:opacity-80 text-slate-600"),children:[S.jsx(Je,{name:"Flag",size:10,className:i==="high"?"text-rose-500":i==="medium"?"text-amber-500":"text-slate-400"}),S.jsx("span",{className:"capitalize",children:i})]})})},i))})})]})},r0e=({task:t,onUpdate:e,availableCategories:n,badgeClass:r})=>{const[o,i]=xe.useState(t.category||""),a=n.filter(s=>s.toLowerCase().includes(o.toLowerCase())&&s!==o).slice(0,5)||[];return S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:et(r,"text-slate-600 bg-slate-100 border-slate-200"),title:"Change Category",children:[S.jsx(Je,{name:"Folder",size:10}),S.jsx("span",{children:t.category||"No Category"})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-48 p-2",children:S.jsxs(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[S.jsx("input",{autoFocus:!0,value:o,onChange:s=>i(s.target.value),onKeyDown:s=>{s.key==="Enter"&&e({...t,category:o})},className:"w-full text-xs border border-slate-200 rounded px-2 py-1 mb-2 focus:ring-2 focus:ring-blue-500/20 outline-none",placeholder:"Category name..."}),S.jsxs("div",{className:"flex flex-col gap-0.5",children:[a.map(s=>S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:()=>e({...t,category:s}),className:"text-left px-2 py-1.5 text-xs text-slate-600 hover:opacity-80 rounded flex items-center gap-2 justify-start!",children:[S.jsx(Je,{name:"Folder",size:10,className:"opacity-50"}),s]})},s)),S.jsx(X1,{asChild:!0,children:S.jsxs("button",{onClick:()=>e({...t,category:o}),className:"text-center px-2 py-1.5 text-xs text-blue-600! hover:opacity-80 rounded font-medium mt-1",children:['Set to "',o,'"']})})]})]})})]})},HX=xe.createContext(void 0);function tF(){const t=xe.useContext(HX);if(!t)throw new Error("useTasksContext must be used within TasksProvider");return t}function o0e({children:t,value:e}){return S.jsx(HX.Provider,{value:e,children:t})}const zX=xe.createContext(void 0);function a2(){const t=xe.useContext(zX);if(!t)throw new Error("useSettingsContext must be used within SettingsProvider");return t}function i0e({children:t,value:e}){return S.jsx(zX.Provider,{value:e,children:t})}const nF=t=>t?xt.fromISO(t).isValid:!1,bO=({task:t,dateValidation:e})=>{const{onUpdateTask:n,onDeleteTask:r,onEditTask:o,availableCategories:i,onItemClick:a}=tF(),{settings:s}=a2(),[c,f]=xe.useState(!1),[m,b]=xe.useState(t.title),[C,A]=xe.useState(!1),P=xe.useRef(null),_=xe.useRef(null),V=t.status==="done",B=t.status==="cancelled",q=new Date().toISOString().split("T")[0],X=!V&&!B&&t.priority==="high"&&(t.status==="overdue"||t.status==="due"||t.dueAt&&t.dueAt<=q),$={sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"}[s.fontSize]||"text-sm",Q={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[s.fontSize]||"mt-0.5",re={sm:"text-[10px]",base:"text-[11px]",lg:"text-xs",xl:"text-sm"}[s.fontSize]||"text-[11px]";xe.useEffect(()=>{c&&_.current&&_.current.focus()},[c]);const he=Y=>{const Se=xt.now().toISO(),Ne={status:Y};(Y==="doing"||Y==="scheduled")&&!t.startAt&&t.status==="todo"&&(Ne.startAt=Se||void 0),Y==="done"&&!t.completedAt&&(Ne.completedAt=Se||void 0),Y==="cancelled"&&!t.cancelledAt&&(Ne.cancelledAt=Se||void 0),n({...t,...Ne})},fe=()=>{m.trim()?n({...t,title:m}):b(t.title),f(!1)},me=Y=>{Y.key==="Enter"&&fe(),Y.key==="Escape"&&(b(t.title),f(!1))},Ee=()=>{C?(r(t.id),P.current&&window.clearTimeout(P.current)):(A(!0),P.current=window.setTimeout(()=>{A(!1)},2e3))},Xe=(Y,Se)=>Se==="done"||Se==="cancelled"?"text-emerald-600 bg-emerald-50 border-emerald-200":Y?Se==="overdue"||Y<q?"text-rose-600 bg-rose-50 border-rose-200":Y===q?"text-amber-600 bg-amber-50 border-amber-200":"text-emerald-600 bg-emerald-50 border-emerald-200":"text-slate-400",Oe=Y=>{switch(Y){case"done":return"bg-emerald-500";case"doing":return"bg-sky-500";case"scheduled":return"bg-blue-500";case"due":return"bg-amber-500";case"overdue":return"bg-rose-500";case"cancelled":return"bg-slate-300";case"unplanned":return"bg-purple-500";default:return"bg-slate-200"}},je=Y=>{switch(Y){case"done":return"CheckCircle2";case"doing":return"PlayCircle";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},ze=Y=>{switch(Y){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-300";case"unplanned":return"text-purple-500";default:return"text-slate-300 group-hover:text-slate-400"}},De=(Y,Se=16)=>S.jsx(Je,{name:je(Y),size:Se,className:ze(Y),strokeWidth:Y==="done"?2.5:2}),ce=["todo","doing","scheduled","done","unplanned","due","overdue","cancelled"],ve=t.dueAt?TW(t.dueAt):null,Ae=t.startAt?TW(t.startAt):null,bt=ve||Ae,ae="flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none cursor-pointer hover:bg-slate-50 transition-colors select-none text-[length:inherit]";return S.jsxs(Li,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,height:0},className:et("group relative flex items-stretch gap-2 pb-1.5 pt-0.5 px-1 transition-all rounded-lg",(V||B)&&"opacity-60",X?"bg-rose-50/60 border border-rose-100 shadow-sm shadow-rose-100/50 hover:bg-rose-100/50":"hover:bg-slate-50 border border-transparent"),children:[S.jsxs("div",{className:et("relative flex flex-col items-center shrink-0 w-6",Q),children:[S.jsx("div",{className:et("absolute -top-1 h-6.5 w-px left-1/2 -translate-x-1/2 group-first:hidden","bg-slate-200")}),S.jsx("div",{className:et("absolute top-5 -bottom-1 w-px left-1/2 -translate-x-1/2 group-last:hidden",Oe(t.status))}),S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsx("button",{className:et("relative z-10 w-6 h-6 flex items-center justify-center transition-transform active:scale-90 outline-none focus:ring-2 focus:ring-slate-200 rounded-full",X?"bg-rose-50 hover:bg-rose-100 shadow-sm":"bg-white hover:bg-slate-50"),title:`Change Status (Current: ${t.status})`,children:De(t.status,18)})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:5,collisionPadding:10,className:"z-9999 outline-none w-44 p-1.5",children:S.jsx(Li,{initial:{opacity:0,scale:.9,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:-5},transition:{duration:.15},children:S.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce.map(Y=>S.jsx(X1,{asChild:!0,children:S.jsx("button",{onClick:()=>he(Y),children:S.jsxs("div",{className:et("w-full flex items-center gap-2.5 px-3 py-2 text-xs font-medium font-mono rounded-lg transition-all hover:bg-slate-300 text-left outline-none","justify-start! text-left!",t.status===Y?"bg-slate-200/60 text-slate-900 font-semibold":"text-slate-600 hover:text-slate-900 hover:opacity-80 active:scale-[0.98]"),children:[S.jsx("div",{className:et("shrink-0",t.status===Y?"opacity-100":"opacity-70"),children:De(Y,14)}),S.jsx("span",{className:"capitalize",children:Y})]})})},Y)),S.jsx("div",{className:"h-px bg-slate-100 my-1 mx-1"}),S.jsx(X1,{asChild:!0,children:S.jsx("button",{onClick:()=>o?.(t),children:S.jsxs("div",{className:"w-full flex items-center justify-start! gap-2 px-3 py-2 text-xs font-medium text-slate-600 hover:text-blue-600 hover:opacity-80 hover:bg-slate-300 transition-all text-left outline-none rounded-lg",children:[S.jsx(Je,{name:"Pencil",size:14,className:"opacity-70"}),S.jsx("span",{children:"Edit Details"})]})})})]})})})]})]}),S.jsxs("div",{className:et("flex-1 min-w-0 pt-0.5",bt?"pr-16":"pr-8"),children:[S.jsxs("div",{className:"flex items-center gap-2 min-h-5.5 mb-0.5",children:[c?S.jsx("input",{ref:_,value:m,onChange:Y=>b(Y.target.value),onBlur:fe,onKeyDown:me,className:et("flex-1 min-w-0 bg-transparent border-b border-blue-400 focus:outline-none font-medium text-slate-800 pb-0.5",$)}):S.jsx(S.Fragment,{children:S.jsx(ED,{onClick:()=>f(!0),className:et("font-medium leading-tight text-slate-800 transition-all cursor-text text-left border-none bg-transparent p-0 appearance-none font-inherit",$,V&&"line-through text-slate-500 decoration-slate-300",B&&"line-through text-slate-400 decoration-slate-300",X&&"text-rose-700 font-semibold"),children:t.title})}),!c&&S.jsx(ED,{whileHover:{scale:1.1},onClick:()=>f(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity text-slate-300 hover:text-blue-500 p-1 shrink-0 bg-transparent border-none",children:S.jsx(Je,{name:"Pencil",size:12})})]}),S.jsxs("div",{className:et("flex flex-wrap items-center gap-2 font-medium text-slate-500",re),onClick:Y=>{a&&Y.target===Y.currentTarget&&a?.(t)},children:[S.jsx(n0e,{task:t,onUpdate:n,badgeClass:ae}),e&&(e.hasInvalidDates?S.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-rose-600 bg-rose-50 border-rose-200",title:"One or more dates have an invalid format",children:[S.jsx(Je,{name:"AlertTriangle",size:10}),S.jsx("span",{className:"text-[10px]",children:"Invalid Date"})]}):e.hasMissingDates?S.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-amber-600 bg-amber-50 border-amber-200",title:"This task has no dates set",children:[S.jsx(Je,{name:"AlertCircle",size:10}),S.jsx("span",{className:"text-[10px]",children:"No Dates"})]}):null),t.category&&S.jsx(r0e,{task:t,onUpdate:n,badgeClass:ae,availableCategories:i}),!s.groupingStrategy.includes("createdAt")&&nF(t.createdAt)&&S.jsx(eF,{type:"createdAt",date:t.createdAt,label:lD(t.createdAt,s.useRelativeDates,s.dateFormat),task:t,onUpdate:n,icon:"Plus",className:et(ae,"text-slate-500 bg-slate-50 border-slate-200")}),nF(t.startAt)&&S.jsx(eF,{type:"startAt",date:t.startAt,label:lD(t.startAt,s.useRelativeDates,s.dateFormat),icon:"PlayCircle",task:t,onUpdate:n,className:et(ae,"text-slate-500 bg-slate-50 border-slate-200")}),nF(t.dueAt)&&S.jsx(eF,{type:"dueDate",date:t.dueAt,label:`Due: ${lD(t.dueAt,s.useRelativeDates,s.dateFormat)}`,icon:"Calendar",task:t,onUpdate:n,className:et(ae,Xe(t.dueAt,t.status))}),nF(t.completedAt)&&S.jsx(eF,{type:"completedAt",date:t.completedAt,label:`Done: ${lD(t.completedAt,s.useRelativeDates,s.dateFormat)}`,icon:"CheckCircle2",task:t,onUpdate:n,className:et(ae,"text-emerald-600 bg-emerald-50 border-emerald-200")}),t.isRecurring&&t.recurringInterval&&S.jsxs("div",{className:et(ae,"text-slate-500 bg-slate-100 border-slate-200 cursor-default"),title:wre(t.recurringInterval),children:[S.jsx(Je,{name:"Repeat",size:10}),S.jsx("span",{className:"capitalize",children:"Recurring"})]}),t.tags.map((Y,Se)=>S.jsx(t0e,{tag:Y,task:t,onUpdate:n,badgeClass:ae},`${t.id}-tag-${Se}`))]}),t.description&&S.jsxs("div",{className:"mt-1 flex items-start gap-1.5 text-slate-400",children:[S.jsx(Je,{name:"FileText",size:10,className:"mt-0.5 shrink-0"}),S.jsx("p",{className:et("leading-relaxed line-clamp-2",re),children:t.description})]})]}),bt&&S.jsx("div",{className:"absolute right-8 top-3 text-[10px] font-mono font-bold text-slate-400 bg-slate-50 border border-slate-100 px-1.5 py-0.5 rounded-md",children:bt}),S.jsx(ED,{onClick:Ee,className:et("absolute top-2 right-1 p-1.5 rounded-md transition-all",C?"bg-rose-100 text-rose-600 opacity-100":"text-slate-300 opacity-0 group-hover:opacity-100 hover:text-rose-500 hover:bg-slate-100"),whileHover:{scale:1.1},whileTap:{scale:.9},title:C?"Click again to confirm delete":"Delete task",children:S.jsx(Je,{name:C?"Trash2":"Trash",size:14})})]})},rF={info:"color: #3b82f6; font-weight: bold;",warn:"color: #f59e0b; font-weight: bold;",error:"color: #ef4444; font-weight: bold;",debug:"color: #8b5cf6; font-weight: bold;"};class a0e{log(e,n,r,o){const i=new Date().toLocaleTimeString(),a=`%c[TasksTimeline][${i}][${n}]`;switch(e){case"info":console.log(`${a} ${r}`,rF.info,o||"");break;case"warn":console.warn(`${a} ${r}`,rF.warn,o||"");break;case"error":console.error(`${a} ${r}`,rF.error,o||"");break;case"debug":console.debug(`${a} ${r}`,rF.debug,o||"");break}}info(e,n,r){this.log("info",e,n,r)}warn(e,n,r){this.log("warn",e,n,r)}error(e,n,r){this.log("error",e,n,r)}debug(e,n,r){this.log("debug",e,n,r)}}const Gt=new a0e,wO=(t,e,n)=>{const[r,o]=xe.useState(!1),i=xe.useCallback(()=>{if(!t)return;const a=window,s=a.SpeechRecognition||a.webkitSpeechRecognition;if(!s){n("Browser does not support voice input.");return}try{Gt.info("Voice","Starting speech recognition...");const c=new s;c.continuous=!1,c.interimResults=!1,c.lang="en-US",c.onstart=()=>o(!0),c.onend=()=>o(!1),c.onerror=f=>{o(!1);const m=f.error;if(m!=="no-speech")if(m==="not-allowed"){const b="Microphone access denied. Please check permissions.";n(b),Gt.error("Voice",b)}else if(m==="network"){const b="Network error during voice recognition.";n(b),Gt.error("Voice",b)}else{const b=`Voice input error: ${m}`;n(b),Gt.warn("Voice",b)}},c.onresult=f=>{const m=f.results[0]?.[0]?.transcript;m&&(Gt.info("Voice","Transcript received",{text:m}),e(m))},c.start()}catch(c){console.error("Speech API Error",c),n("Failed to initialize voice input."),Gt.error("Voice","Initialization failed",c),o(!1)}},[t,e,n,o]);return{isListening:r,start:i}};var oF="Collapsible",[s0e]=KN(oF),[l0e,MO]=s0e(oF),CO=le.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=t,[c,f]=XZ({prop:r,defaultProp:o??!1,onChange:a,caller:oF});return S.jsx(l0e,{scope:n,disabled:i,contentId:dZ(),open:c,onOpenToggle:le.useCallback(()=>f(m=>!m),[f]),children:S.jsx(yc.div,{"data-state":SO(c),"data-disabled":i?"":void 0,...s,ref:e})})});CO.displayName=oF;var VX="CollapsibleTrigger",UX=le.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,o=MO(VX,n);return S.jsx(yc.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":SO(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:e,onClick:rh(t.onClick,o.onOpenToggle)})});UX.displayName=VX;var TO="CollapsibleContent",BX=le.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=MO(TO,t.__scopeCollapsible);return S.jsx(zD,{present:n||o.open,children:({present:i})=>S.jsx(c0e,{...r,ref:e,present:i})})});BX.displayName=TO;var c0e=le.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=t,a=MO(TO,n),[s,c]=le.useState(r),f=le.useRef(null),m=oh(e,f),b=le.useRef(0),C=b.current,A=le.useRef(0),P=A.current,_=a.open||s,V=le.useRef(_),B=le.useRef(void 0);return le.useEffect(()=>{const q=requestAnimationFrame(()=>V.current=!1);return()=>cancelAnimationFrame(q)},[]),ih(()=>{const q=f.current;if(q){B.current=B.current||{transitionDuration:q.style.transitionDuration,animationName:q.style.animationName},q.style.transitionDuration="0s",q.style.animationName="none";const X=q.getBoundingClientRect();b.current=X.height,A.current=X.width,V.current||(q.style.transitionDuration=B.current.transitionDuration,q.style.animationName=B.current.animationName),c(r)}},[a.open,r]),S.jsx(yc.div,{"data-state":SO(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!_,...i,ref:m,style:{"--radix-collapsible-content-height":C?`${C}px`:void 0,"--radix-collapsible-content-width":P?`${P}px`:void 0,...t.style},children:_&&o})});function SO(t){return t?"open":"closed"}var WX=CO;const GX=Object.freeze(Object.defineProperty({__proto__:null,Collapsible:CO,CollapsibleContent:BX,CollapsibleTrigger:UX,Root:WX},Symbol.toStringTag,{value:"Module"})),IO=WX,{CollapsibleTrigger:EO}=GX,{CollapsibleContent:AO}=GX,LO=({group:t})=>{const{onAddTask:e,onAICommand:n}=tF(),{settings:r,isAiMode:o,onVoiceError:i}=a2(),[a,s]=xe.useState(!0),[c,f]=xe.useState(!1),[m,b]=xe.useState(""),[C,A]=xe.useState(r.defaultCategory),[P,_]=xe.useState(!1),V=xe.useRef(null);xe.useEffect(()=>{c&&A(r.defaultCategory)},[c,r.defaultCategory]);const{isListening:B,start:q}=wO(r.enableVoiceInput,ze=>b(De=>De?`${De} ${ze}`:ze),i),X=xt.fromISO(t.date),$=X.toFormat("ccc"),Q=X.weekday>5,re=Q?"text-rose-500 bg-rose-50 border-rose-100":"text-slate-600 bg-slate-50 border-slate-200",he=bre(t.date),fe=he==="Today"||he==="Tomorrow"||he==="Yesterday",me=X.toFormat(r.dateFormat);xe.useEffect(()=>{c&&V.current&&V.current.focus()},[c]);const Ee=xe.useMemo(()=>t.tasks.reduce((ze,De)=>(De.status==="done"?ze.done++:De.status==="overdue"||De.status==="due"?ze.urgent++:["todo","scheduled","unplanned"].includes(De.status)&&ze.open++,ze),{done:0,urgent:0,open:0}),[t.tasks]),Xe=async()=>{if(!m.trim()){f(!1);return}_(!0);try{if(r.aiConfig.enabled&&o){const ze=`Add task to ${t.date}: ${m} (Category: ${C})`;await n(ze)}else e({title:m,dueAt:t.date,category:C});b("")}catch(ze){console.error(ze)}finally{_(!1)}},Oe=ze=>{ze.key==="Enter"&&Xe(),ze.key==="Escape"&&(f(!1),b(""))},je={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[r.fontSize]||"mt-0.5";return S.jsx("div",{className:"mb-2 relative",children:S.jsxs(IO,{open:a,onOpenChange:s,children:[S.jsx(EO,{asChild:!0,children:S.jsxs("button",{className:"w-full flex items-center justify-between mb-1 sticky top-0 bg-paper/95 backdrop-blur-sm z-20 py-1.5 border-b border-dashed border-slate-200 group hover:border-slate-300 transition-colors text-left outline-none pl-2",children:[S.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[S.jsx(ci.div,{animate:{rotate:a?90:0},transition:{duration:.2},className:"text-slate-400",children:S.jsx(Je,{name:"ChevronRight",size:14})}),S.jsxs("div",{className:"flex items-baseline gap-2",children:[fe&&S.jsx("span",{className:"text-xs font-bold text-blue-600 font-mono uppercase tracking-tight",children:he}),S.jsx("h3",{className:`text-sm font-bold text-slate-800 font-mono tracking-tight group-hover:text-blue-600 transition-colors ${fe?"opacity-60 font-normal":""}`,children:me})]})]}),S.jsxs("div",{className:"flex items-center gap-2 shrink-0 opacity-80 group-hover:opacity-100 transition-opacity",children:[Ee.urgent>0&&S.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-rose-100/50 text-rose-600 border border-rose-200/50 shadow-sm shadow-rose-100",children:[S.jsx(Je,{name:"AlertCircle",size:10,strokeWidth:2.5}),S.jsx("span",{className:"text-[10px] font-bold leading-none",children:Ee.urgent})]}),Ee.open>0&&S.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-slate-100 text-slate-500 border border-slate-200 shadow-sm shadow-slate-100",children:[S.jsx(Je,{name:"Circle",size:10,strokeWidth:2.5}),S.jsx("span",{className:"text-[10px] font-bold leading-none",children:Ee.open})]}),Ee.done>0&&S.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-emerald-100/50 text-emerald-600 border border-emerald-200/50 shadow-sm shadow-emerald-100",children:[S.jsx(Je,{name:"CheckCircle2",size:10,strokeWidth:2.5}),S.jsx("span",{className:"text-[10px] font-bold leading-none",children:Ee.done})]})]})]}),S.jsxs("div",{className:`flex flex-col items-center justify-center w-8 h-8 rounded-lg border ${re} shadow-sm shrink-0 ml-2`,children:[S.jsx("span",{className:"text-[10px] font-bold uppercase leading-none",children:$}),S.jsx("span",{className:"text-[10px] opacity-60 leading-none mt-0.5",children:t.tasks.length})]})]})}),S.jsx(sc,{initial:!1,children:a&&S.jsx(AO,{forceMount:!0,asChild:!0,children:S.jsx(ci.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:S.jsxs("div",{className:"space-y-0.5 relative pb-2",children:[t.tasks.map(ze=>S.jsx(bO,{task:ze},ze.id)),S.jsxs("div",{className:"group relative flex items-stretch gap-2 py-1.5 px-1 transition-all rounded-lg",children:[S.jsxs("div",{className:et("relative flex flex-col items-center shrink-0 w-6",je),children:[t.tasks.length>0&&S.jsx("div",{className:"absolute -top-1 h-4 w-px left-1/2 -translate-x-1/2 bg-slate-200"}),S.jsx("button",{onClick:()=>f(!0),className:et("relative z-10 w-6 h-6 flex items-center justify-center rounded-full transition-all outline-none",c?o?"bg-purple-100 text-purple-600":"bg-blue-100 text-blue-600":"bg-white hover:bg-slate-100 text-slate-300 hover:text-blue-500"),children:P?S.jsx("div",{className:"animate-spin",children:S.jsx(Je,{name:"Loader2",size:12})}):S.jsx(Je,{name:o?"Sparkles":"Plus",size:14})})]}),S.jsx("div",{className:"flex-1 min-w-0 pt-0.5",children:c?S.jsxs(ci.div,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},className:"flex items-center gap-2",children:[S.jsx("input",{ref:V,type:"text",value:m,onChange:ze=>b(ze.target.value),onKeyDown:Oe,onBlur:ze=>{(!ze.relatedTarget||!ze.relatedTarget.closest(".add-row-actions"))&&(m||f(!1))},placeholder:B?"Listening...":o?"Describe task for this day...":"Type a new task...",className:et("flex-1 bg-transparent border-b focus:outline-none text-sm py-0.5 transition-colors",o?"border-purple-300 focus:border-purple-500 placeholder:text-purple-300 text-purple-900":"border-blue-300 focus:border-blue-500"),disabled:P||B}),S.jsxs("div",{className:"flex items-center gap-1 add-row-actions",children:[S.jsxs("div",{className:"relative group/cat",children:[S.jsx("input",{list:`cat-list-${t.date}`,className:"w-20 text-[10px] bg-slate-100 hover:bg-slate-200 border-none rounded px-1.5 py-0.5 text-slate-600 focus:bg-white focus:ring-1 focus:ring-blue-300 outline-none transition-all placeholder:text-slate-400 truncate",placeholder:"Category",value:C,onChange:ze=>A(ze.target.value),onFocus:()=>{},title:"Task Category"}),S.jsxs("datalist",{id:`cat-list-${t.date}`,children:[S.jsx("option",{value:"Work"}),S.jsx("option",{value:"Personal"}),S.jsx("option",{value:"Home"}),S.jsx("option",{value:"Health"}),S.jsx("option",{value:"Finance"}),S.jsx("option",{value:"Urgent"})]})]}),r.enableVoiceInput&&S.jsx("button",{onClick:q,className:et("p-1 rounded hover:bg-slate-100 transition-colors",B&&"text-rose-500 animate-pulse"),tabIndex:-1,children:S.jsx(Je,{name:"Mic",size:14})})]})]}):S.jsx("button",{onClick:()=>f(!0),className:"text-left text-sm text-slate-400 hover:text-blue-500 transition-colors h-5.5 flex items-end font-medium",children:"Add task..."})})]})]})})})})]})})},YX=({group:t})=>{const{settings:e}=a2(),[n,r]=xe.useState(!0),o=Math.round(t.completedTasks/t.totalTasks*100)||0;return S.jsx("div",{className:"mb-4",children:S.jsxs(IO,{open:n,onOpenChange:r,children:[S.jsx(EO,{asChild:!0,children:S.jsxs("button",{className:"w-full text-left mb-1.5 group outline-none",children:[S.jsxs("div",{className:"flex items-end justify-between mb-1",children:[S.jsxs("div",{className:"flex items-baseline gap-4",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(ci.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"text-slate-400",children:S.jsx(Je,{name:"ChevronRight",size:20})}),S.jsx("h2",{className:"text-3xl font-black text-slate-800 tracking-tighter group-hover:text-blue-600 transition-colors",children:t.year})]}),S.jsxs("div",{className:"text-xs text-slate-400 font-mono hidden sm:inline-block",children:[S.jsx("span",{className:"text-rose-500 font-bold",children:t.totalTasks-t.completedTasks})," ","unfinished tasks in"," ",S.jsx("span",{className:"text-rose-500 font-bold",children:t.dayGroups.length})," ","active days."]})]}),S.jsx("div",{className:"flex items-center gap-2 pb-1",children:S.jsxs("span",{className:"text-[10px] text-slate-400 font-mono",children:[t.completedTasks," / ",t.totalTasks]})})]}),e.showProgressBar&&S.jsx("div",{className:"relative h-1.5 w-full bg-slate-100 rounded-full overflow-hidden",children:S.jsx(ci.div,{className:et("absolute top-0 left-0 h-full rounded-full",o===100?"bg-emerald-400":"bg-slate-800"),initial:{width:0},animate:{width:`${o}%`},transition:{duration:1,ease:"easeOut"}})})]})}),S.jsx(sc,{initial:!1,children:n&&S.jsx(AO,{forceMount:!0,asChild:!0,children:S.jsx(ci.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:t.dayGroups.map(i=>S.jsx(LO,{group:i},i.date))})})})]})})},ZX=({tasks:t})=>{const{settings:e}=a2(),[n,r]=xe.useState(!0);return S.jsx("div",{className:"mt-8 pt-4 border-t border-slate-100",children:S.jsxs(IO,{open:n,onOpenChange:r,children:[S.jsx(EO,{asChild:!0,children:S.jsxs("button",{className:"flex items-center gap-2 mb-4 pl-2 w-full group outline-none",children:[S.jsx(ci.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"text-slate-400",children:S.jsx(Je,{name:"ChevronRight",size:14})}),S.jsx(Je,{name:"Archive",size:14,className:"text-slate-400"}),S.jsx("h3",{className:"text-sm font-bold text-slate-500 uppercase tracking-wider group-hover:text-slate-700 transition-colors",children:"Backlog / Undated"}),S.jsx("span",{className:"text-xs bg-slate-100 text-slate-500 px-2 py-0.5 rounded-full font-mono",children:t.length})]})}),S.jsx(sc,{initial:!1,children:n&&S.jsx(AO,{forceMount:!0,asChild:!0,children:S.jsx(ci.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:S.jsx("div",{className:"space-y-0.5",children:t.map(o=>S.jsx(bO,{task:o,dateValidation:Mre(o,e.groupingStrategy)},o.id))})})})})]})})},XX=({className:t})=>{const{tasks:e}=tF(),{settings:n,isFocusMode:r}=a2(),{todayGroup:o,otherYearGroups:i,backlogTasks:a}=xe.useMemo(()=>{const s=xt.now(),c=s.toISODate(),f=n.showCompleted?e:e.filter(B=>B.status!=="done"&&B.status!=="cancelled"),m=[],b=[],C=["dueAt","startAt","createdAt","completedAt"];f.forEach(B=>{C.some(X=>{const $=B[X];return $&&xt.fromISO($).isValid})?m.push(B):b.push(B)});const A=Cre(m,n.groupingStrategy);let P=null;const _=[];for(const B of A){const q=B.dayGroups.find(X=>X.date===c);if(q){P=q;const X=B.dayGroups.filter($=>$.date!==c);X.length>0&&_.push({...B,dayGroups:X})}else _.push(B)}return{todayGroup:P||{date:c,tasks:[]},otherYearGroups:_,backlogTasks:b}},[e,n.showCompleted,n.groupingStrategy]);return S.jsxs("div",{className:t,children:[S.jsxs("div",{className:"mb-5 pb-3 border-b-2 border-dashed border-slate-100/80",children:[S.jsx("div",{className:"flex items-center gap-2 mb-2 pl-2 opacity-60",children:S.jsxs("span",{className:"text-[10px] font-bold font-mono uppercase tracking-widest text-slate-400",children:["Current Focus",n.groupingStrategy.length===1&&n.groupingStrategy[0]!=="dueAt"?` (${n.groupingStrategy[0].replace("At","").replace("Date","")})`:""]})}),S.jsx(LO,{group:o})]}),!r&&i.map(s=>S.jsx(YX,{group:s},s.year)),!r&&a.length>0&&S.jsx(ZX,{tasks:a}),!r&&i.length===0&&e.length>0&&!o.tasks.length&&a.length===0&&S.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"No tasks visible based on current filters."}),r&&!o.tasks.length&&S.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"Focus mode is on. No tasks for today."})]})},qX=()=>{const{onAddTask:t,onAICommand:e,availableTags:n,availableCategories:r}=tF(),{settings:o,filters:i,onFilterChange:a,sort:s,onSortChange:c,isAiMode:f,toggleAiMode:m,onVoiceError:b,onOpenSettings:C}=a2(),[A,P]=xe.useState(""),[_,V]=xe.useState(!1),{isListening:B,start:q}=wO(o.enableVoiceInput,Oe=>P(je=>je?`${je} ${Oe}`:Oe),b),X=o.aiConfig.enabled&&f,$=async()=>{if(!(!A.trim()||_)){V(!0);try{if(X)await e(A);else{const Oe=Tre(A);t(Oe)}P("")}catch(Oe){console.error("Failed to parse task",Oe)}finally{V(!1)}}},Q=Oe=>{Oe.key==="Enter"&&$()},re=(Oe,je)=>{const ze=i[Oe];if(Array.isArray(ze)){const De=ze,ce=De.includes(je)?De.filter(ve=>ve!==je):[...De,je];a({...i,[Oe]:ce})}},he=Oe=>{a({...i,[Oe]:[]})},fe=Oe=>{const je=i[Oe];return Array.isArray(je)||typeof je=="string"?je.length>0:!1},me=Oe=>{switch(Oe){case"todo":return"Circle";case"doing":return"PlayCircle";case"done":return"CheckCircle2";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},Ee=Oe=>{switch(Oe){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-400";case"unplanned":return"text-purple-500";default:return"text-slate-400"}},Xe=Oe=>{switch(Oe){case"high":return"text-rose-500";case"medium":return"text-amber-500";case"low":return"text-blue-400"}};return S.jsx("div",{className:"pt-3 pb-1",children:S.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6",children:[S.jsxs("div",{className:"relative group z-10",children:[S.jsx("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none z-10",children:_?S.jsx(Li,{animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},className:"text-blue-500",children:S.jsx(Je,{name:"Loader2",size:16})}):X?S.jsx(Li,{initial:{scale:0},animate:{scale:1},className:"text-purple-500",children:S.jsx(Je,{name:"Sparkles",size:16})}):S.jsx("div",{className:"text-slate-400",children:S.jsx(Je,{name:"PlusCircle",size:16})})}),S.jsx("input",{type:"text",className:et("w-full bg-white pl-10 pr-24 py-2.5 rounded-xl border shadow-sm text-sm focus:outline-none focus:ring-2 transition-all placeholder:text-slate-400 font-medium",X?"border-purple-200 focus:border-purple-400 focus:ring-purple-400/20":"border-slate-200 focus:border-slate-400 focus:ring-slate-400/20"),placeholder:B?"Listening...":X?"Describe tasks using natural language...":"Quick add (e.g., 'Meeting due:tomorrow p:high')",value:A,onChange:Oe=>P(Oe.target.value),onKeyDown:Q,disabled:_||B}),S.jsxs("div",{className:"absolute inset-y-0 right-3 flex items-center gap-1",children:[o.enableVoiceInput&&S.jsx("button",{onClick:q,className:et("p-1.5 rounded-md transition-all duration-200 relative",B?"text-rose-500 bg-rose-50 animate-pulse":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),disabled:B,title:"Voice Input",children:S.jsx(Je,{name:"Mic",size:16})}),o.aiConfig.enabled&&S.jsx("button",{onClick:m,className:et("p-1.5 rounded-md transition-all duration-200",X?"text-purple-600 bg-purple-50 hover:bg-purple-100 ring-1 ring-purple-200":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),title:X?"Switch to Manual Mode":"Switch to AI Mode",children:S.jsx(Je,{name:X?"Sparkles":"TerminalSquare",size:16})}),C&&o.settingButtonOnInputBar!==!1&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"w-px h-4 bg-slate-200 mx-1"}),S.jsx("button",{onClick:C,className:"text-slate-400 hover:text-blue-600 p-1.5 rounded-md hover:bg-blue-50 transition-colors",title:"Settings & Docs",children:S.jsx(Je,{name:"Settings",size:16})})]})]})]}),S.jsxs("div",{className:"flex items-center gap-2 mt-2 overflow-x-auto no-scrollbar pb-2 pl-1 pr-4",children:[o.tagsFilterOnInputBar!==!1&&S.jsx(iF,{label:"Tags",isActive:fe("tags"),count:i.tags.length,onClear:()=>he("tags"),children:S.jsxs("div",{className:"space-y-0.5",children:[n.length===0&&S.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No tags available"}),n.map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.tags.includes(Oe),onChange:()=>re("tags",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:"Tag",size:12,className:"text-blue-500 opacity-70 group-hover:opacity-100"}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))]})}),o.categoriesFilterOnInputBar!==!1&&S.jsx(iF,{label:"Categories",isActive:fe("categories"),count:i.categories.length,onClear:()=>he("categories"),children:S.jsxs("div",{className:"space-y-0.5",children:[r.length===0&&S.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No categories available"}),r.map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.categories.includes(Oe),onChange:()=>re("categories",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:"Folder",size:12,className:"text-amber-500 opacity-70 group-hover:opacity-100"}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))]})}),o.priorityFilterOnInputBar!==!1&&S.jsx(iF,{label:"Priority",isActive:fe("priorities"),count:i.priorities.length,onClear:()=>he("priorities"),children:S.jsx("div",{className:"space-y-0.5",children:["low","medium","high"].map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.priorities.includes(Oe),onChange:()=>re("priorities",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:"Flag",size:12,className:et("opacity-80",Xe(Oe)),fill:"currentColor"}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))})}),o.statusFilterOnInputBar!==!1&&S.jsx(iF,{label:"Status",isActive:fe("statuses"),count:i.statuses.length,onClear:()=>he("statuses"),children:S.jsx("div",{className:"space-y-0.5",children:["todo","doing","scheduled","done","due","overdue","cancelled","unplanned"].map(Oe=>S.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[S.jsx("input",{type:"checkbox",checked:i.statuses.includes(Oe),onChange:()=>re("statuses",Oe),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),S.jsx(Je,{name:me(Oe),size:13,className:et("opacity-80",Ee(Oe))}),S.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Oe})]},Oe))})}),(o.tagsFilterOnInputBar!==!1||o.categoriesFilterOnInputBar!==!1||o.priorityFilterOnInputBar!==!1||o.statusFilterOnInputBar!==!1)&&o.sortOnInputBar!==!1&&S.jsx("div",{className:"w-px h-4 bg-slate-300 mx-1 shrink-0"}),o.sortOnInputBar!==!1&&S.jsx(u0e,{sort:s,onSortChange:c})]})]})})},iF=({label:t,isActive:e,count:n,children:r,onClear:o})=>S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs(ED,{whileHover:{scale:1.02},whileTap:{scale:.98},className:et("flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-full border transition-all shrink-0 outline-none select-none",e?"bg-slate-800 text-white border-slate-800 shadow-md shadow-slate-200":"bg-white text-slate-600 border-slate-200 hover:border-slate-300 hover:text-slate-800"),children:[t,e&&S.jsx("span",{className:"flex items-center justify-center bg-white text-slate-900 text-[9px] font-bold h-4 min-w-4 px-0.5 rounded-full",children:n}),S.jsx(Je,{name:"ChevronDown",size:12,className:et("transition-transform duration-200",e?"text-slate-300":"opacity-40")})]})}),S.jsx(lh,{side:"bottom",align:"start",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:S.jsxs(Li,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-56 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[S.jsxs("div",{className:"flex justify-between items-center px-3 py-2 border-b border-slate-200 mb-1",children:[S.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider",children:t}),e&&S.jsx("button",{onClick:o,className:"text-[10px] font-medium text-rose-500 hover:text-rose-600 px-1.5 py-0.5 rounded hover:bg-rose-50 transition-colors",children:"Clear"})]}),S.jsx("div",{className:"max-h-60 overflow-y-auto p-1 custom-scrollbar",children:r})]})})]}),u0e=({sort:t,onSortChange:e})=>{const n=[{label:"Due Date",value:"dueAt",icon:"Calendar"},{label:"Created Date",value:"createdAt",icon:"Clock"},{label:"Priority",value:"priority",icon:"Flag"},{label:"Title",value:"title",icon:"Type"}],r=o=>{t.field===o?e({...t,direction:t.direction==="asc"?"desc":"asc"}):e({...t,field:o,direction:"asc"})};return S.jsxs(tf,{children:[S.jsx(nf,{asChild:!0,children:S.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-600 hover:text-slate-900 text-xs font-bold rounded-full transition-all shrink-0 outline-none ml-auto active:scale-95",children:[S.jsx(Je,{name:"ArrowUpDown",size:12}),S.jsx("span",{children:"Sort"})]})}),S.jsx(lh,{side:"bottom",align:"end",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:S.jsxs(Li,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-48 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[S.jsx("div",{className:"px-3 py-2 text-[10px] font-bold text-slate-400 uppercase border-b border-slate-200 mb-1",children:"Sort By"}),S.jsx("div",{className:"flex flex-col gap-0.5",children:n.map(o=>{const i=t.field===o.value;return S.jsx("button",{onClick:()=>r(o.value),children:S.jsxs("div",{className:et("flex items-center justify-start! text-sm rounded-lg outline-none hover:bg-slate-300 font-mono w-full p-2",i?"text-slate-900":"text-slate-600 hover:text-slate-900"),children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Je,{name:o.icon,size:14,className:i?"text-blue-500":"opacity-70"}),S.jsx("span",{children:o.label})]}),i&&S.jsx("div",{className:"flex items-center gap-1 text-blue-500",children:S.jsx(Je,{name:t.direction==="asc"?"ArrowUp":"ArrowDown",size:18})})]})},o.value)})})]})})]})};function s2({value:t,onChange:e,placeholder:n="Pick a date",className:r,disabled:o,showTime:i=!1}){const[a,s]=le.useState(!1),[c,f]=le.useState("00:00"),m=t?xt.fromISO(t):null,b=m?.isValid?m.toJSDate():void 0;le.useEffect(()=>{m?.isValid&&i&&f(m.toFormat("HH:mm"))},[t,m,i]);const C=_=>{if(!_){e("");return}let V=xt.fromJSDate(_);if(i&&c){const[B,q]=c.split(":").map(Number);V=V.set({hour:B,minute:q})}e(V.toISO()||""),i||s(!1)},A=_=>{const V=_.target.value;if(f(V),b){const[B,q]=V.split(":").map(Number),X=xt.fromJSDate(b).set({hour:B,minute:q});e(X.toISO()||"")}},P=le.useMemo(()=>m?.isValid?i?m.toFormat("MMM dd, yyyy HH:mm"):m.toFormat("MMM dd, yyyy"):n,[m,n,i]);return S.jsxs(tf,{open:a,onOpenChange:s,children:[S.jsx(nf,{asChild:!0,children:S.jsxs(cp,{variant:"outline",disabled:o,className:et("w-full justify-start text-left font-normal",!t&&"text-muted-foreground",r),children:[S.jsx(Z2,{className:"mr-2 h-4 w-4"}),P]})}),S.jsxs(lh,{className:"w-auto p-0",align:"start",children:[S.jsx(OX,{mode:"single",selected:b,onSelect:C,initialFocus:!0}),i&&S.jsxs("div",{className:"border-t border-border p-3",children:[S.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),S.jsx("input",{type:"time",value:c,onChange:A,className:"w-full px-3 py-2 bg-background border border-input rounded-md text-sm focus:ring-2 focus:ring-ring focus:border-ring outline-none"})]})]})]})}const d0e=[{value:rt.DAILY,label:"Daily"},{value:rt.WEEKLY,label:"Weekly"},{value:rt.MONTHLY,label:"Monthly"},{value:rt.YEARLY,label:"Yearly"}],h0e=[{label:"M",val:rt.MO},{label:"T",val:rt.TU},{label:"W",val:rt.WE},{label:"T",val:rt.TH},{label:"F",val:rt.FR},{label:"S",val:rt.SA},{label:"S",val:rt.SU}],f0e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],p0e=({task:t,onSave:e,onClose:n,availableCategories:r})=>{const[o,i]=xe.useState(t),[a,s]=xe.useState(!1),[c,f]=xe.useState(()=>{let P=rt.WEEKLY,_=1,V=[],B=[],q=[],X="",$="";if(t.isRecurring&&t.recurringInterval)try{const Q=rt.fromString(t.recurringInterval);P=Q.options.freq,_=Q.options.interval;const re=Q.options.byweekday;re&&(V=(Array.isArray(re)?re:[re]).map(fe=>typeof fe=="number"?new xa(fe):fe)),B=Q.options.bymonth?Array.isArray(Q.options.bymonth)?Q.options.bymonth:[Q.options.bymonth]:[],q=Q.options.bymonthday?Array.isArray(Q.options.bymonthday)?Q.options.bymonthday:[Q.options.bymonthday]:[],Q.options.dtstart&&(X=xt.fromJSDate(Q.options.dtstart).toISODate()||""),Q.options.until&&($=xt.fromJSDate(Q.options.until).toISODate()||"")}catch(Q){console.error(`parse recurrence rule failed with err: ${Q}`)}return{freq:P,interval:_,byWeekDay:V,byMonth:B,byMonthDay:q,start:X,end:$}}),m=P=>{f(_=>({..._,...P}))},b=()=>{const P={...o};if(P.isRecurring)try{const{start:_,end:V,freq:B,interval:q,byWeekDay:X,byMonth:$,byMonthDay:Q}=c,re=_?xt.fromISO(_).toJSDate():void 0,he=V?xt.fromISO(V).endOf("day").toJSDate():void 0,fe=new rt({freq:B,interval:q,byweekday:B===rt.WEEKLY?X:null,bymonth:B===rt.YEARLY&&$.length>0?$:null,bymonthday:(B===rt.MONTHLY||B===rt.YEARLY)&&Q.length>0?Q:null,dtstart:re,until:he});P.recurringInterval=fe.toString()}catch(_){console.error("Failed to generate RRule",_)}else P.recurringInterval=void 0;e(P)},C=()=>{i(P=>({...P,isRecurring:!P.isRecurring}))},A=r.filter(P=>P.toLowerCase().includes((o.category||"").toLowerCase())&&P.toLowerCase()!==(o.category||"").toLowerCase());return S.jsxs("div",{className:"flex flex-col max-h-[85vh]",children:[S.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 sticky top-0 backdrop-blur-md z-10 shrink-0",children:[S.jsx("h2",{className:"font-bold text-slate-800",children:"Edit Task"}),S.jsx("button",{onClick:n,"aria-label":"Close edit task modal",className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800",children:S.jsx(Je,{name:"X",size:20})})]}),S.jsxs("div",{className:"p-6 space-y-5 overflow-y-auto flex-1",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{htmlFor:"task-title",className:"text-xs font-semibold text-slate-500 uppercase",children:"Title"}),S.jsx("input",{id:"task-title",value:o.title,onChange:P=>i({...o,title:P.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none text-slate-900"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{htmlFor:"task-description",className:"text-xs font-semibold text-slate-500 uppercase",children:"Description"}),S.jsx("textarea",{id:"task-description",value:o.description||"",onChange:P=>i({...o,description:P.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none min-h-20 resize-none text-slate-900",placeholder:"Add details..."})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[S.jsxs("div",{className:"space-y-1 relative group",children:[S.jsx("label",{htmlFor:"task-category",className:"text-xs font-semibold text-slate-500 uppercase",children:"Category"}),S.jsxs("div",{className:"relative",children:[S.jsx("input",{id:"task-category",type:"text",value:o.category||"",onChange:P=>i({...o,category:P.target.value}),onFocus:()=>s(!0),onBlur:()=>setTimeout(()=>s(!1),200),placeholder:"Work, Personal...",className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none pl-9 text-slate-900"}),S.jsx("div",{className:"absolute left-3 top-2.5 text-slate-400 pointer-events-none",children:S.jsx(Je,{name:"Folder",size:14})}),S.jsx("div",{className:"absolute right-3 top-2.5 text-slate-400 pointer-events-none transition-transform duration-200",style:{transform:a?"rotate(180deg)":"rotate(0deg)"},children:S.jsx(Je,{name:"ChevronDown",size:14})})]}),S.jsx(sc,{children:a&&(A.length>0||o.category&&!r.includes(o.category))&&S.jsxs(ci.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0},className:"absolute z-20 w-full mt-1 bg-white border border-slate-100 rounded-lg shadow-xl max-h-40 overflow-y-auto py-1",children:[A.map(P=>S.jsxs("button",{onClick:()=>i({...o,category:P}),className:"w-full text-left px-3 py-2 text-sm text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[S.jsx(Je,{name:"Folder",size:12,className:"text-slate-400"}),P]},P)),o.category&&!r.includes(o.category)&&S.jsxs("div",{className:"px-3 py-2 text-xs text-blue-600 bg-blue-50/50 border-t border-blue-100 flex items-center gap-2",children:[S.jsx(Je,{name:"Plus",size:12}),'Create "',o.category,'"']})]})})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("span",{id:"priority-label",className:"text-xs font-semibold text-slate-500 uppercase",children:"Priority"}),S.jsx("div",{role:"radiogroup","aria-labelledby":"priority-label",className:"flex bg-slate-50 dark:bg-slate-800/50 p-1 rounded-lg border border-slate-200 dark:border-slate-700 h-9.5",children:["low","medium","high"].map(P=>S.jsx("button",{role:"radio","aria-checked":o.priority===P,onClick:()=>i({...o,priority:P}),className:et("flex-1 text-xs font-medium rounded-md capitalize transition-all flex items-center justify-center",o.priority===P?"bg-white dark:bg-slate-600 shadow-sm text-slate-800 dark:text-slate-100 border border-slate-100 dark:border-slate-500":"text-slate-500 hover:text-slate-700 dark:hover:text-slate-300"),children:P},P))})]})]}),S.jsxs("div",{className:"border-t border-slate-100 dark:border-slate-800 pt-4",children:[S.jsx("label",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-3 block",children:"Task Dates"}),S.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Created"}),S.jsx(s2,{value:o.createdAt,onChange:P=>i({...o,createdAt:P||o.createdAt}),showTime:!0,placeholder:"Select created date"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Due"}),S.jsx(s2,{value:o.dueAt,onChange:P=>i({...o,dueAt:P}),showTime:!0,placeholder:"Select due date"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Start At"}),S.jsx(s2,{value:o.startAt,onChange:P=>i({...o,startAt:P}),showTime:!0,placeholder:"Select start date"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Completed"}),S.jsx(s2,{value:o.completedAt,onChange:P=>i({...o,completedAt:P}),showTime:!0,placeholder:"Select completed date",disabled:o.status!=="done"&&o.status!=="cancelled"})]})]}),S.jsxs("div",{className:"bg-slate-50 dark:bg-slate-800/30 rounded-lg p-3 border border-slate-200/60 dark:border-slate-700 transition-colors",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:et("p-1.5 rounded-md",o.isRecurring?"bg-blue-100 text-blue-600":"bg-slate-200 text-slate-500"),children:S.jsx(Je,{name:"Repeat",size:16})}),S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"Recurrence"}),S.jsx("span",{className:"text-[10px] text-slate-400",children:"Repeats automatically"})]})]}),S.jsx("button",{onClick:C,role:"switch","aria-checked":o.isRecurring,"aria-label":"Toggle task recurrence",className:et("relative w-9 h-5 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",o.isRecurring?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(ci.div,{layout:!0,className:"absolute top-1 left-1 w-3 h-3 bg-white rounded-full shadow-sm",animate:{x:o.isRecurring?16:0}})})]}),S.jsx(sc,{children:o.isRecurring&&S.jsx(ci.div,{initial:{height:0,opacity:0,marginTop:0},animate:{height:"auto",opacity:1,marginTop:12},exit:{height:0,opacity:0,marginTop:0},className:"overflow-hidden",children:S.jsxs("div",{className:"pt-3 border-t border-slate-200/60 dark:border-slate-700 space-y-3",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("label",{htmlFor:"recurrence-interval",className:"text-xs font-medium text-slate-500",children:"Every"}),S.jsx("input",{id:"recurrence-interval",type:"number",min:"1",max:"99","aria-label":"Recurrence interval",value:c.interval,onChange:P=>m({interval:parseInt(P.target.value)||1}),className:"w-12 px-1.5 py-1 text-center bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 rounded-md text-xs focus:border-blue-500 outline-none text-slate-700 dark:text-slate-200"}),S.jsx("select",{"aria-label":"Recurrence frequency",value:c.freq,onChange:P=>m({freq:parseInt(P.target.value)}),className:"flex-1 bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 text-slate-700 dark:text-slate-200 text-xs rounded-md focus:ring-blue-500 focus:border-blue-500 block p-1 outline-none",children:d0e.map(P=>S.jsx("option",{value:P.value,children:P.label},P.value))})]}),c.freq===rt.WEEKLY&&S.jsxs("div",{className:"space-y-1",children:[S.jsx("span",{id:"weekdays-label",className:"text-[10px] font-semibold text-slate-400 uppercase",children:"On days"}),S.jsx("div",{role:"group","aria-labelledby":"weekdays-label",className:"flex justify-between",children:h0e.map((P,_)=>{const V=c.byWeekDay.some(q=>q.weekday===P.val.weekday),B=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return S.jsx("button",{"aria-label":B[_],"aria-pressed":V,onClick:()=>{const q=c.byWeekDay,X=q.some($=>$.weekday===P.val.weekday);m({byWeekDay:X?q.filter($=>$.weekday!==P.val.weekday):[...q,P.val]})},className:et("w-7 h-7 flex items-center justify-center rounded-full text-xs font-medium transition-all border",V?"bg-blue-500 text-white border-blue-600 shadow-sm":"bg-white dark:bg-slate-700 text-slate-500 dark:text-slate-400 border-slate-200 dark:border-slate-600 hover:border-blue-300 hover:text-blue-500"),children:P.label},P.label+P.val.weekday)})})]}),(c.freq===rt.MONTHLY||c.freq===rt.YEARLY)&&S.jsxs("div",{className:"space-y-3",children:[c.freq===rt.YEARLY&&S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Months"}),S.jsx("div",{className:"grid grid-cols-6 gap-1",children:f0e.map((P,_)=>{const V=_+1,B=c.byMonth.includes(V);return S.jsx("button",{onClick:()=>{const q=c.byMonth;m({byMonth:q.includes(V)?q.filter(X=>X!==V):[...q,V]})},className:et("py-1 text-[15px] rounded border transition-colors",B?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:P},P)})})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Days"}),S.jsx("div",{className:"grid grid-cols-7 gap-1",children:Array.from({length:31},(P,_)=>_+1).map(P=>{const _=c.byMonthDay.includes(P);return S.jsx("button",{onClick:()=>{const V=c.byMonthDay;m({byMonthDay:V.includes(P)?V.filter(B=>B!==P):[...V,P]})},className:et("w-full aspect-square flex items-center justify-center text-[15px] rounded border transition-colors",_?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:P},P)})})]})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-2 border-t border-slate-200/50 dark:border-slate-700/50",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Start Recurrence"}),S.jsx(s2,{value:c.start,onChange:P=>m({start:P&&xt.fromISO(P).toISODate()||""}),placeholder:"Select start",className:"h-8 text-xs"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"End Recurrence"}),S.jsx(s2,{value:c.end,onChange:P=>m({end:P&&xt.fromISO(P).toISODate()||""}),placeholder:"Select end",className:"h-8 text-xs"})]})]}),S.jsx("div",{className:"text-[10px] text-slate-400 italic bg-white/50 dark:bg-slate-800/50 p-2 rounded border border-slate-100 dark:border-slate-700 text-center",children:(()=>{try{const{freq:P,interval:_,byWeekDay:V,byMonth:B,byMonthDay:q,start:X,end:$}=c;return new rt({freq:P,interval:_,byweekday:P===rt.WEEKLY?V:null,bymonth:P===rt.YEARLY&&B.length>0?B:null,bymonthday:(P===rt.MONTHLY||P===rt.YEARLY)&&q.length>0?q:null,dtstart:X?xt.fromISO(X).toJSDate():void 0,until:$?xt.fromISO($).endOf("day").toJSDate():void 0}).toText()}catch(P){return console.error(`invalid recurrence rule: ${P}`),"Invalid Rule"}})()})]})})})]})]})]}),S.jsxs("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 border-t border-slate-100 dark:border-slate-800 flex justify-end gap-3 sticky bottom-0 z-10 shrink-0",children:[S.jsx("button",{onClick:n,className:"px-4 py-2 text-sm font-medium text-slate-600 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-lg transition-colors",children:"Cancel"}),S.jsx("button",{onClick:b,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg shadow-sm shadow-blue-200 transition-colors",children:"Save Changes"})]})]})},JX=({isOpen:t,onClose:e,task:n,onSave:r,availableCategories:o})=>S.jsx(sc,{children:t&&n&&S.jsxs(S.Fragment,{children:[S.jsx(ci.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),S.jsx(ci.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-lg bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden text-slate-900",children:S.jsx(p0e,{task:n,onSave:r,onClose:e,availableCategories:o},n.id)})]})}),KX=()=>S.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),S.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"AlertCircle",size:14,className:"text-rose-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Clock",size:14,className:"text-blue-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Zap",size:14,className:"text-purple-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),S.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Archive",size:14,className:"text-slate-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),S.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Code2",size:14,className:"text-emerald-500"}),"Scripting Guide"]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"Unlock advanced control by writing short JavaScript snippets to filter and sort your tasks precisely."}),S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[S.jsx(Je,{name:"Filter",size:12,className:"text-slate-400"}),"Filter Script"]}),S.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[S.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Show only high priority tasks due today"}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"const"})," today ="," ",S.jsx("span",{className:"text-blue-400",children:"new"})," ","Date().toISOString().split('T')[0];"]}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"return"})," task.priority === 'high' && task.dueDate === today;"]})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[S.jsx("b",{children:"Variable:"})," ",S.jsx("code",{children:"task"})," (The Task object).",S.jsx("br",{}),S.jsx("b",{children:"Return:"})," ",S.jsx("code",{children:"true"})," to keep, ",S.jsx("code",{children:"false"})," to hide."]})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[S.jsx(Je,{name:"ArrowUpDown",size:12,className:"text-slate-400"}),"Sort Script"]}),S.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[S.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Sort by title length, then alphabetically"}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"if"})," (a.title.length !== b.title.length) ",S.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.length - b.title.length;"]}),S.jsxs("p",{children:[S.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.localeCompare(b.title);"]})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[S.jsx("b",{children:"Variables:"})," ",S.jsx("code",{children:"a"}),", ",S.jsx("code",{children:"b"})," (Two Task objects to compare).",S.jsx("br",{}),S.jsx("b",{children:"Return:"})," Negative number if a < b, Positive if a > b, 0 if equal."]})]})]})]}),S.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"Mic",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),S.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"TerminalSquare",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),S.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",S.jsx("br",{}),S.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),S.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),S.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),S.jsx("span",{children:"Save task / Submit command"})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),S.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),S.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),y0e=[{id:"system",name:"System",colors:"bg-slate-400 border-slate-700"},{id:"light",name:"Light",colors:"bg-white border-slate-200"},{id:"dark",name:"Dark",colors:"bg-slate-900 border-slate-700"},{id:"midnight",name:"Midnight",colors:"bg-[#0B1120] border-slate-800"},{id:"coffee",name:"Coffee",colors:"bg-[#f5f2eb] border-[#e8e4db]"}],QX=({theme:t,setTheme:e})=>S.jsxs(S.Fragment,{children:[S.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Appearance"}),S.jsx("div",{className:"grid grid-cols-5 gap-2",children:y0e.map(n=>S.jsxs("button",{onClick:()=>e(n.id),className:et("flex flex-col items-center gap-2 p-2 rounded-xl border-2 transition-all outline-none",t===n.id?"border-blue-500 bg-blue-50/30 ring-2 ring-blue-200 dark:ring-blue-900":"border-transparent hover:bg-slate-50 dark:hover:bg-slate-800/50"),children:[S.jsx("div",{className:et("w-full aspect-square rounded-lg shadow-sm border border-slate-200/20",n.colors)}),S.jsx("span",{className:et("text-[10px] font-medium truncate w-full text-center",t===n.id?"text-blue-600":"text-slate-500"),children:n.name})]},n.id))})]}),g0e=[{id:"sm",label:"Small",class:"text-sm"},{id:"base",label:"Medium",class:"text-base"},{id:"lg",label:"Large",class:"text-lg"},{id:"xl",label:"Extra Large",class:"text-xl"}],jX=({fontSize:t,setFontSize:e})=>S.jsxs(S.Fragment,{children:[S.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Typography"}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500",children:"Item Font Size"}),S.jsx("div",{className:"grid grid-cols-4 gap-2",children:g0e.map(n=>S.jsxs("button",{onClick:()=>e(n.id),className:et("py-2 px-1 rounded-lg border text-center transition-all",t===n.id?"border-blue-500 bg-blue-50 dark:bg-slate-700 text-blue-700 dark:text-blue-100 shadow-sm":"border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-600 dark:text-slate-400"),children:[S.jsx("span",{className:et("block leading-none mb-1",n.class),children:"Ag"}),S.jsx("span",{className:"text-[10px] opacity-70",children:n.label})]},n.id))})]})]}),m0e=[{id:"dueAt",label:"Due Date"},{id:"createdAt",label:"Created Date"},{id:"startAt",label:"Start Date"},{id:"completedAt",label:"Completed Date"}],$X=[{value:"MMM d",label:"Oct 24"},{value:"EEE, MMM d",label:"Mon, Oct 24"},{value:"yyyy-MM-dd",label:"2023-10-24"},{value:"dd/MM/yyyy",label:"24/10/2023"}],eq=({showCompleted:t,toggleShowCompleted:e,useRelativeDates:n,toggleRelativeDates:r,showProgressBar:o,toggleProgressBar:i,defaultFocusMode:a,toggleDefaultFocus:s,setDateFormat:c,isCustomFormat:f,setIsCustomFormat:m,dateFormat:b,defaultCategory:C,setDefaultCategory:A,availableCategories:P,groupingStrategy:_,toggleGroupingStrategy:V})=>S.jsxs(S.Fragment,{children:[S.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"View Options"}),S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Show Completed"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Display finished items"})]}),S.jsx("button",{onClick:e,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:t?16:0}})})]}),S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Relative Dates"}),S.jsx("span",{className:"text-xs text-slate-400",children:'e.g. "In 2 days", "Yesterday"'})]}),S.jsx("button",{onClick:r,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",n?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:n?16:0}})})]}),S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Progress Bars"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Show visual completion in timeline"})]}),S.jsx("button",{onClick:i,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",o?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:o?16:0}})})]}),S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Default Focus Mode"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Start app in Focus Mode"})]}),S.jsx("button",{onClick:s,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",a?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:a?16:0}})})]}),S.jsxs("div",{className:"pt-2",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Date Format"}),S.jsx("div",{className:"grid grid-cols-2 gap-2 mb-2",children:$X.map(B=>S.jsxs("button",{onClick:()=>{c(B.value),m(!1)},className:et("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between",!f&&b===B.value?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[S.jsx("span",{children:B.label}),!f&&b===B.value&&S.jsx(Je,{name:"Check",size:12,className:"text-blue-500"})]},B.value))}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("button",{onClick:()=>m(!0),className:et("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between flex-1",f?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[S.jsx("span",{children:"Custom..."}),f&&S.jsx(Je,{name:"Check",size:12,className:"text-blue-500"})]}),f&&S.jsx("input",{type:"text",value:b,onChange:B=>c(B.target.value),className:"flex-1 px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500 font-mono",placeholder:"yyyy/MM/dd HH:mm"})]}),f&&S.jsxs("p",{className:"text-[10px] text-slate-400 mt-1 pl-1",children:["Uses Luxon format tokens (e.g. ",S.jsx("code",{children:"EEE, MMM d"}),")"]})]}),S.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Default Category"}),S.jsxs("div",{className:"relative",children:[S.jsx("input",{type:"text",list:"category-suggestions",value:C,onChange:B=>A(B.target.value),className:"w-full px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500",placeholder:"General"}),S.jsx("datalist",{id:"category-suggestions",children:P.map(B=>S.jsx("option",{value:B},B))})]})]}),S.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Group Tasks By (Multi-select)"}),S.jsx("div",{className:"grid grid-cols-2 gap-2",children:m0e.map(B=>{const q=_.includes(B.id);return S.jsxs("button",{onClick:()=>V(B.id),className:et("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between group",q?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[S.jsx("span",{children:B.label}),q&&S.jsx(Je,{name:"Check",size:12,className:"text-blue-500"})]},B.id)})})]})]})]}),v0e=({settings:t,onUpdateSettings:e,availableCategories:n})=>{const r=P=>e({...t,fontSize:P}),o=P=>e({...t,theme:P}),i=P=>e({...t,dateFormat:P}),a=P=>e({...t,defaultCategory:P}),s=()=>e({...t,showCompleted:!t.showCompleted}),c=()=>e({...t,useRelativeDates:!t.useRelativeDates}),f=()=>e({...t,showProgressBar:!t.showProgressBar}),m=()=>e({...t,defaultFocusMode:!t.defaultFocusMode}),b=P=>{const _=t.groupingStrategy,V=_.includes(P);let B;if(V){if(_.length===1)return;B=_.filter(q=>q!==P)}else B=[..._,P];e({...t,groupingStrategy:B})},[C,A]=xe.useState(!$X.some(P=>P.value===t.dateFormat));return S.jsx(S.Fragment,{children:S.jsxs("div",{className:"p-6 space-y-8",children:[S.jsx("section",{children:S.jsx(QX,{theme:t.theme,setTheme:o})}),S.jsx("section",{children:S.jsx(jX,{fontSize:t.fontSize,setFontSize:r})}),S.jsx("section",{children:S.jsx(eq,{showCompleted:t.showCompleted,toggleShowCompleted:s,useRelativeDates:t.useRelativeDates,toggleRelativeDates:c,showProgressBar:t.showProgressBar,toggleProgressBar:f,defaultFocusMode:t.defaultFocusMode,toggleDefaultFocus:m,dateFormat:t.dateFormat,setDateFormat:i,isCustomFormat:C,setIsCustomFormat:A,defaultCategory:t.defaultCategory,setDefaultCategory:a,availableCategories:n,groupingStrategy:t.groupingStrategy,toggleGroupingStrategy:b})})]})})},tq=({settings:t,onUpdateSettings:e,availableTags:n})=>{const r=()=>e({...t,enableVoiceInput:!t.enableVoiceInput}),o=C=>e({...t,voiceProvider:C}),i=()=>e({...t,aiConfig:{...t.aiConfig,enabled:!t.aiConfig.enabled}}),a=()=>e({...t,aiConfig:{...t.aiConfig,defaultMode:!t.aiConfig.defaultMode}}),s=C=>e({...t,aiConfig:{...t.aiConfig,activeProvider:C}}),c=C=>e({...t,filters:C}),f=C=>e({...t,sort:C}),m=(C,A,P)=>{e({...t,aiConfig:{...t.aiConfig,providers:{...t.aiConfig.providers,[C]:{...t.aiConfig.providers[C],[A]:P}}}})},b=t.aiConfig.providers[t.aiConfig.activeProvider];return S.jsxs("div",{className:"p-6 space-y-8 bg-slate-50/30 dark:bg-slate-900/20",children:[S.jsxs("section",{children:[S.jsxs("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4 flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Je,{name:"Sparkles",size:12,className:"text-blue-500"}),"AI Agent"]}),t.totalTokenUsage>0&&S.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 bg-slate-100 dark:bg-slate-800 rounded text-[10px] text-slate-500 font-mono",children:[S.jsx(Je,{name:"Cpu",size:10}),S.jsxs("span",{children:[t.totalTokenUsage.toLocaleString()," tokens"]})]})]}),S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Enable AI Agent"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Allow AI to manage your tasks"})]}),S.jsx("button",{onClick:i,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t.aiConfig.enabled?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:t.aiConfig.enabled?16:0}})})]}),S.jsx(sc,{children:t.aiConfig.enabled&&S.jsxs(Li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"space-y-5 overflow-hidden",children:[S.jsxs("div",{className:"flex items-center justify-between pl-2 border-l-2 border-slate-200 dark:border-slate-700 ml-1",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Default to AI"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Use AI for all inputs by default"})]}),S.jsx("button",{onClick:a,className:et("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t.aiConfig.defaultMode?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:t.aiConfig.defaultMode?16:0}})})]}),S.jsxs("div",{className:"space-y-3",children:[S.jsx("div",{className:"flex items-center gap-2 p-1 bg-slate-200 dark:bg-slate-800 rounded-lg",children:["gemini","openai","anthropic"].map(C=>S.jsx("button",{onClick:()=>s(C),className:et("flex-1 py-1.5 text-[10px] font-bold uppercase rounded-md transition-all",t.aiConfig.activeProvider===C?"bg-white dark:bg-slate-600 text-blue-600 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-700"),children:C},C))}),S.jsxs("div",{className:"space-y-3 p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"API Key"}),S.jsx("input",{type:"password",value:b.apiKey,onChange:C=>m(t.aiConfig.activeProvider,"apiKey",C.target.value),className:"w-full px-2 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded text-xs outline-none focus:border-blue-500 font-mono tracking-wide",placeholder:t.aiConfig.activeProvider==="gemini"?"(Auto-configured via Env)":"sk-..."})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Model"}),S.jsx("input",{type:"text",value:b.model,onChange:C=>m(t.aiConfig.activeProvider,"model",C.target.value),className:"w-full px-2 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded text-xs outline-none focus:border-blue-500"})]}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Base URL"}),S.jsx("input",{type:"text",value:b.baseUrl,onChange:C=>m(t.aiConfig.activeProvider,"baseUrl",C.target.value),placeholder:"Default",className:"w-full px-2 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded text-xs outline-none focus:border-blue-500"})]})]})]})]})]})})]})]}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4 flex items-center gap-2",children:[S.jsx(Je,{name:"Filter",size:12,className:"text-blue-500"}),"Advanced Control"]}),S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Voice Input"}),S.jsx("span",{className:"text-xs text-slate-400",children:"Enable microphone input"})]}),S.jsx("button",{onClick:r,className:et("relative w-9 h-5 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",t.enableVoiceInput?"bg-emerald-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-1 left-1 w-3 h-3 bg-white rounded-full shadow-sm block",animate:{x:t.enableVoiceInput?16:0}})})]}),t.enableVoiceInput&&S.jsxs("div",{className:"pt-2",children:[S.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Voice Provider"}),S.jsx("div",{className:"flex bg-slate-200 dark:bg-slate-700 p-1 rounded-lg",children:["browser","gemini-whisper"].map(C=>S.jsx("button",{onClick:()=>o(C),className:et("flex-1 py-1.5 text-[10px] font-bold uppercase rounded-md transition-all",t.voiceProvider===C?"bg-white dark:bg-slate-600 text-blue-600 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-700"),children:C==="gemini-whisper"?"Gemini":"Browser"},C))})]})]}),S.jsxs("div",{className:"space-y-3 border-t border-slate-200/50 dark:border-slate-700/50 pt-4",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 block",children:"Tags Filter"}),S.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.length===0&&S.jsx("span",{className:"text-xs text-slate-400 italic",children:"No tags found."}),n.map(C=>{const A=t.filters.tags.includes(C);return S.jsx("button",{onClick:()=>{const P=A?t.filters.tags.filter(_=>_!==C):[...t.filters.tags,C];c({...t.filters,tags:P})},className:et("px-2 py-1 text-xs rounded-md border transition-all",A?"bg-blue-100 border-blue-200 text-blue-700":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:C},C)})]})]}),S.jsxs("div",{className:"space-y-3 border-t border-slate-200/50 dark:border-slate-700/50 pt-4",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 block",children:"Script Filter"}),S.jsx("button",{onClick:()=>c({...t.filters,enableScript:!t.filters.enableScript}),className:et("relative w-7 h-4 rounded-full transition-colors focus:outline-none",t.filters.enableScript?"bg-purple-500":"bg-slate-200 dark:bg-slate-700"),children:S.jsx(Kh,{layout:!0,className:"absolute top-0.5 left-0.5 w-3 h-3 bg-white rounded-full shadow-sm block",animate:{x:t.filters.enableScript?12:0}})})]}),S.jsx(sc,{children:t.filters.enableScript&&S.jsxs(Li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:[S.jsx("textarea",{value:t.filters.script,onChange:C=>c({...t.filters,script:C.target.value}),className:"w-full h-28 p-3 bg-[#1e1e1e] text-purple-300 font-mono text-xs rounded-lg border border-slate-700 outline-none resize-none focus:ring-1 focus:ring-purple-500/50 focus:border-purple-500/50 transition-all shadow-inner leading-relaxed",placeholder:"return task.priority === 'high';",spellCheck:!1}),S.jsxs("p",{className:"text-[10px] text-slate-400 mt-1",children:["Var: ",S.jsx("code",{children:"task"}),". Use JS logic to return true/false."]})]})})]}),S.jsxs("div",{className:"space-y-3 border-t border-slate-200/50 dark:border-slate-700/50 pt-4",children:[S.jsx("span",{className:"text-sm font-medium text-slate-700 block",children:"Default Sorting"}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("select",{value:t.sort.field,onChange:C=>f({...t.sort,field:C.target.value}),className:"flex-1 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 text-slate-700 dark:text-slate-200 text-xs rounded-lg px-2 py-1.5 outline-none focus:ring-2 focus:ring-blue-500/20",children:[S.jsx("option",{value:"dueAt",children:"Due Date"}),S.jsx("option",{value:"createdAt",children:"Created Date"}),S.jsx("option",{value:"priority",children:"Priority"}),S.jsx("option",{value:"title",children:"Title"}),S.jsx("option",{value:"custom",children:"Custom Script"})]}),S.jsx("button",{onClick:()=>f({...t.sort,direction:t.sort.direction==="asc"?"desc":"asc"}),className:"px-3 py-1.5 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-lg text-slate-600 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-slate-700 transition-colors",children:t.sort.direction==="asc"?"ASC":"DESC"})]}),S.jsx(sc,{children:t.sort.field==="custom"&&S.jsxs(Li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:[S.jsx("textarea",{value:t.sort.script,onChange:C=>f({...t.sort,script:C.target.value}),className:"w-full h-28 p-3 bg-[#1e1e1e] text-emerald-400 font-mono text-xs rounded-lg border border-slate-700 outline-none resize-none focus:ring-1 focus:ring-emerald-500/50 focus:border-emerald-500/50 transition-all shadow-inner leading-relaxed",placeholder:"return a.title.localeCompare(b.title);",spellCheck:!1}),S.jsxs("p",{className:"text-[10px] text-slate-400 mt-1",children:["Vars: ",S.jsx("code",{children:"a"}),", ",S.jsx("code",{children:"b"}),". Return -1, 0, 1."]})]})})]})]})]})]})};var J1={},up={};var nq;function k0e(){if(nq)return up;nq=1;var t=xe,e=gf;function n(v){var x="https://react.dev/errors/"+v;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)x+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+v+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),_=Symbol.for("react.scope"),V=Symbol.for("react.activity"),B=Symbol.for("react.legacy_hidden"),q=Symbol.for("react.memo_cache_sentinel"),X=Symbol.for("react.view_transition"),$=Symbol.iterator;function Q(v){return v===null||typeof v!="object"?null:(v=$&&v[$]||v["@@iterator"],typeof v=="function"?v:null)}var re=Array.isArray;function he(v,x){var E=v.length&3,D=v.length-E,z=x;for(x=0;x<D;){var Z=v.charCodeAt(x)&255|(v.charCodeAt(++x)&255)<<8|(v.charCodeAt(++x)&255)<<16|(v.charCodeAt(++x)&255)<<24;++x,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,Z=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295,z^=Z,z=z<<13|z>>>19,z=5*(z&65535)+((5*(z>>>16)&65535)<<16)&4294967295,z=(z&65535)+27492+(((z>>>16)+58964&65535)<<16)}switch(Z=0,E){case 3:Z^=(v.charCodeAt(x+2)&255)<<16;case 2:Z^=(v.charCodeAt(x+1)&255)<<8;case 1:Z^=v.charCodeAt(x)&255,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,z^=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295}return z^=v.length,z^=z>>>16,z=2246822507*(z&65535)+((2246822507*(z>>>16)&65535)<<16)&4294967295,z^=z>>>13,z=3266489909*(z&65535)+((3266489909*(z>>>16)&65535)<<16)&4294967295,(z^z>>>16)>>>0}var fe=Object.assign,me=Object.prototype.hasOwnProperty,Ee=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Xe={},Oe={};function je(v){return me.call(Oe,v)?!0:me.call(Xe,v)?!1:Ee.test(v)?Oe[v]=!0:(Xe[v]=!0,!1)}var ze=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),De=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ce=/["'&<>]/;function ve(v){if(typeof v=="boolean"||typeof v=="number"||typeof v=="bigint")return""+v;v=""+v;var x=ce.exec(v);if(x){var E="",D,z=0;for(D=x.index;D<v.length;D++){switch(v.charCodeAt(D)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}z!==D&&(E+=v.slice(z,D)),z=D+1,E+=x}v=z!==D?E+v.slice(z,D):E}return v}var Ae=/([A-Z])/g,bt=/^ms-/,ae=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Y(v){return ae.test(""+v)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":v}var Se=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,We={pending:!1,data:null,method:null,action:null},Qe=Ne.d;Ne.d={f:Qe.f,r:Qe.r,D:Di,C:Vr,L:Os,m:xu,X:mh,S:$r,M:xd};var it=[],_e=null,yt=/(<\/|<)(s)(cript)/gi;function ht(v,x,E,D){return""+x+(E==="s"?"\\u0073":"\\u0053")+D}function at(v,x,E,D,z){return{idPrefix:v===void 0?"":v,nextFormID:0,streamingFormat:0,bootstrapScriptContent:E,bootstrapScripts:D,bootstrapModules:z,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function St(v,x,E,D){return{insertionMode:v,selectedValue:x,tagScope:E,viewTransition:D}}function Te(v,x,E){var D=v.tagScope&-25;switch(x){case"noscript":return St(2,null,D|1,null);case"select":return St(2,E.value!=null?E.value:E.defaultValue,D,null);case"svg":return St(4,null,D,null);case"picture":return St(2,null,D|2,null);case"math":return St(5,null,D,null);case"foreignObject":return St(2,null,D,null);case"table":return St(6,null,D,null);case"thead":case"tbody":case"tfoot":return St(7,null,D,null);case"colgroup":return St(9,null,D,null);case"tr":return St(8,null,D,null);case"head":if(2>v.insertionMode)return St(3,null,D,null);break;case"html":if(v.insertionMode===0)return St(1,null,D,null)}return 6<=v.insertionMode||2>v.insertionMode?St(2,null,D,null):v.tagScope!==D?St(v.insertionMode,v.selectedValue,D,null):v}function Be(v){return v===null?null:{update:v.update,enter:"none",exit:"none",share:v.update,name:v.autoName,autoName:v.autoName,nameIdx:0}}function ct(v,x){return x.tagScope&32&&(v.instructions|=128),St(x.insertionMode,x.selectedValue,x.tagScope|12,Be(x.viewTransition))}function At(v,x){v=Be(x.viewTransition);var E=x.tagScope|16;return v!==null&&v.share!=="none"&&(E|=64),St(x.insertionMode,x.selectedValue,E,v)}var $n=new Map;function Rs(v,x){if(typeof x!="object")throw Error(n(62));var E=!0,D;for(D in x)if(me.call(x,D)){var z=x[D];if(z!=null&&typeof z!="boolean"&&z!==""){if(D.indexOf("--")===0){var Z=ve(D);z=ve((""+z).trim())}else Z=$n.get(D),Z===void 0&&(Z=ve(D.replace(Ae,"-$1").toLowerCase().replace(bt,"-ms-")),$n.set(D,Z)),z=typeof z=="number"?z===0||ze.has(D)?""+z:z+"px":ve((""+z).trim());E?(E=!1,v.push(' style="',Z,":",z)):v.push(";",Z,":",z)}}E||v.push('"')}function es(v,x,E){E&&typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'=""')}function Pr(v,x,E){typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&v.push(" ",x,'="',ve(E),'"')}var xo=ve("javascript:throw new Error('React form unexpectedly submitted.')");function Ri(v,x){this.push('<input type="hidden"'),kr(v),Pr(this,"name",x),Pr(this,"value",v),this.push("/>")}function kr(v){if(typeof v!="string")throw Error(n(480))}function Pi(v,x){if(typeof x.$$FORM_ACTION=="function"){var E=v.nextFormID++;v=v.idPrefix+E;try{var D=x.$$FORM_ACTION(v);if(D){var z=D.data;z?.forEach(kr)}return D}catch(Z){if(typeof Z=="object"&&Z!==null&&typeof Z.then=="function")throw Z}}return null}function vu(v,x,E,D,z,Z,j,be){var oe=null;if(typeof D=="function"){var ge=Pi(x,D);ge!==null?(be=ge.name,D=ge.action||"",z=ge.encType,Z=ge.method,j=ge.target,oe=ge.data):(v.push(" ","formAction",'="',xo,'"'),j=Z=z=D=be=null,fh(x,E))}return be!=null&&qt(v,"name",be),D!=null&&qt(v,"formAction",D),z!=null&&qt(v,"formEncType",z),Z!=null&&qt(v,"formMethod",Z),j!=null&&qt(v,"formTarget",j),oe}function qt(v,x,E){switch(x){case"className":Pr(v,"class",E);break;case"tabIndex":Pr(v,"tabindex",E);break;case"dir":case"role":case"viewBox":case"width":case"height":Pr(v,x,E);break;case"style":Rs(v,E);break;case"src":case"href":if(E==="")break;case"action":case"formAction":if(E==null||typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=Y(""+E),v.push(" ",x,'="',ve(E),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":es(v,x.toLowerCase(),E);break;case"xlinkHref":if(typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=Y(""+E),v.push(" ","xlink:href",'="',ve(E),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'="',ve(E),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":E&&typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'=""');break;case"capture":case"download":E===!0?v.push(" ",x,'=""'):E!==!1&&typeof E!="function"&&typeof E!="symbol"&&v.push(" ",x,'="',ve(E),'"');break;case"cols":case"rows":case"size":case"span":typeof E!="function"&&typeof E!="symbol"&&!isNaN(E)&&1<=E&&v.push(" ",x,'="',ve(E),'"');break;case"rowSpan":case"start":typeof E=="function"||typeof E=="symbol"||isNaN(E)||v.push(" ",x,'="',ve(E),'"');break;case"xlinkActuate":Pr(v,"xlink:actuate",E);break;case"xlinkArcrole":Pr(v,"xlink:arcrole",E);break;case"xlinkRole":Pr(v,"xlink:role",E);break;case"xlinkShow":Pr(v,"xlink:show",E);break;case"xlinkTitle":Pr(v,"xlink:title",E);break;case"xlinkType":Pr(v,"xlink:type",E);break;case"xmlBase":Pr(v,"xml:base",E);break;case"xmlLang":Pr(v,"xml:lang",E);break;case"xmlSpace":Pr(v,"xml:space",E);break;default:if((!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=De.get(x)||x,je(x))){switch(typeof E){case"function":case"symbol":return;case"boolean":var D=x.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-")return}v.push(" ",x,'="',ve(E),'"')}}}function jr(v,x,E){if(x!=null){if(E!=null)throw Error(n(60));if(typeof x!="object"||!("__html"in x))throw Error(n(61));x=x.__html,x!=null&&v.push(""+x)}}function kn(v){var x="";return t.Children.forEach(v,function(E){E!=null&&(x+=E)}),x}function fh(v,x){if((v.instructions&16)===0){v.instructions|=16;var E=x.preamble,D=x.bootstrapChunks;(E.htmlChunks||E.headChunks)&&D.length===0?(D.push(x.startInlineScript),wc(D,v),D.push(">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")):D.unshift(x.startInlineScript,">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")}}function or(v,x){v.push(Un("link"));for(var E in x)if(me.call(x,E)){var D=x[E];if(D!=null)switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:qt(v,E,D)}}return v.push("/>"),null}var gd=/(<\/|<)(s)(tyle)/gi;function md(v,x,E,D){return""+x+(E==="s"?"\\73 ":"\\53 ")+D}function Ca(v,x,E){v.push(Un(E));for(var D in x)if(me.call(x,D)){var z=x[D];if(z!=null)switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,E));default:qt(v,D,z)}}return v.push("/>"),null}function vd(v,x){v.push(Un("title"));var E=null,D=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),x=Array.isArray(E)?2>E.length?E[0]:null:E,typeof x!="function"&&typeof x!="symbol"&&x!==null&&x!==void 0&&v.push(ve(""+x)),jr(v,D,E),v.push(Fs("title")),null}function mc(v,x){v.push(Un("script"));var E=null,D=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),jr(v,D,E),typeof E=="string"&&v.push((""+E).replace(yt,ht)),v.push(Fs("script")),null}function Ps(v,x,E){v.push(Un(E));var D=E=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),jr(v,D,E),E}function ts(v,x,E){v.push(Un(E));var D=E=null,z;for(z in x)if(me.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":E=Z;break;case"dangerouslySetInnerHTML":D=Z;break;default:qt(v,z,Z)}}return v.push(">"),jr(v,D,E),typeof E=="string"?(v.push(ve(E)),null):E}var Ds=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vc=new Map;function Un(v){var x=vc.get(v);if(x===void 0){if(!Ds.test(v))throw Error(n(65,v));x="<"+v,vc.set(v,x)}return x}function In(v,x,E,D,z,Z,j,be,oe){switch(x){case"div":case"span":case"svg":case"path":break;case"a":v.push(Un("a"));var ge=null,Re=null,Ie;for(Ie in E)if(me.call(E,Ie)){var Ye=E[Ie];if(Ye!=null)switch(Ie){case"children":ge=Ye;break;case"dangerouslySetInnerHTML":Re=Ye;break;case"href":Ye===""?Pr(v,"href",""):qt(v,Ie,Ye);break;default:qt(v,Ie,Ye)}}if(v.push(">"),jr(v,Re,ge),typeof ge=="string"){v.push(ve(ge));var ft=null}else ft=ge;return ft;case"g":case"p":case"li":break;case"select":v.push(Un("select"));var Dt=null,Mt=null,mt;for(mt in E)if(me.call(E,mt)){var It=E[mt];if(It!=null)switch(mt){case"children":Dt=It;break;case"dangerouslySetInnerHTML":Mt=It;break;case"defaultValue":case"value":break;default:qt(v,mt,It)}}return v.push(">"),jr(v,Mt,Dt),Dt;case"option":var wt=be.selectedValue;v.push(Un("option"));var Rn=null,Ft=null,Yt=null,on=null,Rt;for(Rt in E)if(me.call(E,Rt)){var Wn=E[Rt];if(Wn!=null)switch(Rt){case"children":Rn=Wn;break;case"selected":Yt=Wn;break;case"dangerouslySetInnerHTML":on=Wn;break;case"value":Ft=Wn;default:qt(v,Rt,Wn)}}if(wt!=null){var jt=Ft!==null?""+Ft:kn(Rn);if(re(wt)){for(var eo=0;eo<wt.length;eo++)if(""+wt[eo]===jt){v.push(' selected=""');break}}else""+wt===jt&&v.push(' selected=""')}else Yt&&v.push(' selected=""');return v.push(">"),jr(v,on,Rn),Rn;case"textarea":v.push(Un("textarea"));var sn=null,Xt=null,$t=null,Et;for(Et in E)if(me.call(E,Et)){var en=E[Et];if(en!=null)switch(Et){case"children":$t=en;break;case"value":sn=en;break;case"defaultValue":Xt=en;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:qt(v,Et,en)}}if(sn===null&&Xt!==null&&(sn=Xt),v.push(">"),$t!=null){if(sn!=null)throw Error(n(92));if(re($t)){if(1<$t.length)throw Error(n(93));sn=""+$t[0]}sn=""+$t}return typeof sn=="string"&&sn[0]===`
|
|
73
73
|
`&&v.push(`
|
|
74
74
|
`),sn!==null&&v.push(ve(""+sn)),null;case"input":v.push(Un("input"));var Ir=null,Nt=null,ps=null,Na=null,to=null,hi=null,fi=null,pi=null,ia=null,Oa;for(Oa in E)if(me.call(E,Oa)){var wr=E[Oa];if(wr!=null)switch(Oa){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":Ir=wr;break;case"formAction":Nt=wr;break;case"formEncType":ps=wr;break;case"formMethod":Na=wr;break;case"formTarget":to=wr;break;case"defaultChecked":ia=wr;break;case"defaultValue":fi=wr;break;case"checked":pi=wr;break;case"value":hi=wr;break;default:qt(v,Oa,wr)}}var Js=vu(v,D,z,Nt,ps,Na,to,Ir);return pi!==null?es(v,"checked",pi):ia!==null&&es(v,"checked",ia),hi!==null?qt(v,"value",hi):fi!==null&&qt(v,"value",fi),v.push("/>"),Js?.forEach(Ri,v),null;case"button":v.push(Un("button"));var Ks=null,Nc=null,Pu=null,Hl=null,ys=null,no=null,Oc=null,ro;for(ro in E)if(me.call(E,ro)){var ri=E[ro];if(ri!=null)switch(ro){case"children":Ks=ri;break;case"dangerouslySetInnerHTML":Nc=ri;break;case"name":Pu=ri;break;case"formAction":Hl=ri;break;case"formEncType":ys=ri;break;case"formMethod":no=ri;break;case"formTarget":Oc=ri;break;default:qt(v,ro,ri)}}var Ha=vu(v,D,z,Hl,ys,no,Oc,Pu);if(v.push(">"),Ha?.forEach(Ri,v),jr(v,Nc,Ks),typeof Ks=="string"){v.push(ve(Ks));var Hc=null}else Hc=Ks;return Hc;case"form":v.push(Un("form"));var za=null,Du=null,dr=null,zc=null,gs=null,zl=null,Qs;for(Qs in E)if(me.call(E,Qs)){var ir=E[Qs];if(ir!=null)switch(Qs){case"children":za=ir;break;case"dangerouslySetInnerHTML":Du=ir;break;case"action":dr=ir;break;case"encType":zc=ir;break;case"method":gs=ir;break;case"target":zl=ir;break;default:qt(v,Qs,ir)}}var oi=null,_t=null;if(typeof dr=="function"){var Va=Pi(D,dr);Va!==null?(dr=Va.action||"",zc=Va.encType,gs=Va.method,zl=Va.target,oi=Va.data,_t=Va.name):(v.push(" ","action",'="',xo,'"'),zl=gs=zc=dr=null,fh(D,z))}if(dr!=null&&qt(v,"action",dr),zc!=null&&qt(v,"encType",zc),gs!=null&&qt(v,"method",gs),zl!=null&&qt(v,"target",zl),v.push(">"),_t!==null&&(v.push('<input type="hidden"'),Pr(v,"name",_t),v.push("/>"),oi?.forEach(Ri,v)),jr(v,Du,za),typeof za=="string"){v.push(ve(za));var Vl=null}else Vl=za;return Vl;case"menuitem":v.push(Un("menuitem"));for(var ms in E)if(me.call(E,ms)){var Gn=E[ms];if(Gn!=null)switch(ms){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:qt(v,ms,Gn)}}return v.push(">"),null;case"object":v.push(Un("object"));var So=null,vs=null,js;for(js in E)if(me.call(E,js)){var yi=E[js];if(yi!=null)switch(js){case"children":So=yi;break;case"dangerouslySetInnerHTML":vs=yi;break;case"data":var Wr=Y(""+yi);if(Wr==="")break;v.push(" ","data",'="',ve(Wr),'"');break;default:qt(v,js,yi)}}if(v.push(">"),jr(v,vs,So),typeof So=="string"){v.push(ve(So));var Ul=null}else Ul=So;return Ul;case"title":var oo=be.tagScope&1,Rd=be.tagScope&4;if(be.insertionMode===4||oo||E.itemProp!=null)var $s=vd(v,E);else Rd?$s=null:(vd(z.hoistableChunks,E),$s=void 0);return $s;case"link":var Vc=be.tagScope&1,Fu=be.tagScope&4,_u=E.rel,aa=E.href,el=E.precedence;if(be.insertionMode===4||Vc||E.itemProp!=null||typeof _u!="string"||typeof aa!="string"||aa===""){or(v,E);var tl=null}else if(E.rel==="stylesheet")if(typeof el!="string"||E.disabled!=null||E.onLoad||E.onError)tl=or(v,E);else{var io=z.styles.get(el),Uc=D.styleResources.hasOwnProperty(aa)?D.styleResources[aa]:void 0;if(Uc!==null){D.styleResources[aa]=null,io||(io={precedence:ve(el),rules:[],hrefs:[],sheets:new Map},z.styles.set(el,io));var Bc={state:0,props:fe({},E,{"data-precedence":E.precedence,precedence:null})};if(Uc){Uc.length===2&&bu(Bc.props,Uc);var Pd=z.preloads.stylesheets.get(aa);Pd&&0<Pd.length?Pd.length=0:Bc.state=1}io.sheets.set(aa,Bc),j&&j.stylesheets.add(Bc)}else if(io){var Dd=io.sheets.get(aa);Dd&&j&&j.stylesheets.add(Dd)}oe&&v.push("<!-- -->"),tl=null}else E.onLoad||E.onError?tl=or(v,E):(oe&&v.push("<!-- -->"),tl=Fu?null:or(z.hoistableChunks,E));return tl;case"script":var Nu=be.tagScope&1,Fd=E.async;if(typeof E.src!="string"||!E.src||!Fd||typeof Fd=="function"||typeof Fd=="symbol"||E.onLoad||E.onError||be.insertionMode===4||Nu||E.itemProp!=null)var _d=mc(v,E);else{var hr=E.src;if(E.type==="module")var Ou=D.moduleScriptResources,Wc=z.preloads.moduleScripts;else Ou=D.scriptResources,Wc=z.preloads.scripts;var Gc=Ou.hasOwnProperty(hr)?Ou[hr]:void 0;if(Gc!==null){Ou[hr]=null;var Hu=E;if(Gc){Gc.length===2&&(Hu=fe({},E),bu(Hu,Gc));var Nd=Wc.get(hr);Nd&&(Nd.length=0)}var zu=[];z.scripts.add(zu),mc(zu,Hu)}oe&&v.push("<!-- -->"),_d=null}return _d;case"style":var Vu=be.tagScope&1,ks=E.precedence,gi=E.href,Ch=E.nonce;if(be.insertionMode===4||Vu||E.itemProp!=null||typeof ks!="string"||typeof gi!="string"||gi===""){v.push(Un("style"));var nl=null,Yc=null,Ui;for(Ui in E)if(me.call(E,Ui)){var Bl=E[Ui];if(Bl!=null)switch(Ui){case"children":nl=Bl;break;case"dangerouslySetInnerHTML":Yc=Bl;break;default:qt(v,Ui,Bl)}}v.push(">");var xs=Array.isArray(nl)?2>nl.length?nl[0]:null:nl;typeof xs!="function"&&typeof xs!="symbol"&&xs!==null&&xs!==void 0&&v.push((""+xs).replace(gd,md)),jr(v,Yc,nl),v.push(Fs("style"));var Zc=null}else{var bs=z.styles.get(ks);if((D.styleResources.hasOwnProperty(gi)?D.styleResources[gi]:void 0)!==null){D.styleResources[gi]=null,bs||(bs={precedence:ve(ks),rules:[],hrefs:[],sheets:new Map},z.styles.set(ks,bs));var Th=z.nonce.style;if(!Th||Th===Ch){bs.hrefs.push(ve(gi));var Sh=bs.rules,Bi=null,Wl=null,ii;for(ii in E)if(me.call(E,ii)){var ws=E[ii];if(ws!=null)switch(ii){case"children":Bi=ws;break;case"dangerouslySetInnerHTML":Wl=ws}}var rl=Array.isArray(Bi)?2>Bi.length?Bi[0]:null:Bi;typeof rl!="function"&&typeof rl!="symbol"&&rl!==null&&rl!==void 0&&Sh.push((""+rl).replace(gd,md)),jr(Sh,Wl,Bi)}}bs&&j&&j.styles.add(bs),oe&&v.push("<!-- -->"),Zc=void 0}return Zc;case"meta":var mi=be.tagScope&1,Od=be.tagScope&4;if(be.insertionMode===4||mi||E.itemProp!=null)var Ih=Ca(v,E,"meta");else oe&&v.push("<!-- -->"),Ih=Od?null:typeof E.charSet=="string"?Ca(z.charsetChunks,E,"meta"):E.name==="viewport"?Ca(z.viewportChunks,E,"meta"):Ca(z.hoistableChunks,E,"meta");return Ih;case"listing":case"pre":v.push(Un(x));var Gl=null,y=null,k;for(k in E)if(me.call(E,k)){var I=E[k];if(I!=null)switch(k){case"children":Gl=I;break;case"dangerouslySetInnerHTML":y=I;break;default:qt(v,k,I)}}if(v.push(">"),y!=null){if(Gl!=null)throw Error(n(60));if(typeof y!="object"||!("__html"in y))throw Error(n(61));var F=y.__html;F!=null&&(typeof F=="string"&&0<F.length&&F[0]===`
|
|
75
75
|
`?v.push(`
|
|
@@ -251,7 +251,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
251
251
|
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
252
252
|
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),Mn=_('$RR("'),Gr=_('","'),Oo=_('",'),vi=_('"'),Tt=_(")<\/script>");_('<template data-rci="" data-bid="'),_('<template data-rri="" data-bid="'),_('" data-sid="'),_('" data-sty="');var ao=_('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),ar=_('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),Io=_('$RX("'),Ua=_('"'),Zn=_(","),ol=_(")<\/script>");_('<template data-rxi="" data-bid="'),_('" data-dgst="'),_('" data-msg="'),_('" data-stck="'),_('" data-cstck="');var ki=/[<\u2028\u2029]/g,so=/[&><\u2028\u2029]/g,Wi=_(' media="not all" data-precedence="'),lo=_('" data-href="'),il=_('">'),Yl=_("</style>"),Eo=!1,Zl=!0,co=[],al=_(' data-precedence="'),Hd=_('" data-href="'),Pn=_(" "),Xl=_('">'),Gi=_("</style>");_('<link rel="expect" href="#'),_('" blocking="render"/>');var Uu=_(' id="'),sl=_("["),Bu=_(",["),Wu=_(","),ql=_("]"),Ms=0,Gu=1,sa=2,ll=3,cl=/[<>\r\n]/g,Eh=/["';,\r\n]/g,xi=Function.prototype.bind,Ah=Symbol.for("react.client.reference"),ai={};Object.freeze(ai);var Cs={},Ba=null,Yu={},Zu={},Xu=new Set,ul=new Set,Lh=new Set,zd=new Set,Jl=new Set,Rh=new Set,qu=new Set,cf=new Set,Vd=new Set,uf={enqueueSetState:function(l,d,M){var L=l._reactInternals;L.queue===null?Vr(l,"setState"):(L.queue.push(d),M!=null&&Di(M))},enqueueReplaceState:function(l,d,M){l=l._reactInternals,l.replace=!0,l.queue=[d],M!=null&&Di(M)},enqueueForceUpdate:function(l,d){l._reactInternals.queue===null?Vr(l,"forceUpdate"):d!=null&&Di(d)}},Ju={id:1,overflow:""},Kl=Math.clz32?Math.clz32:xu,t0=Math.log,n0=Math.LN2,la=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Ph=null,r0=typeof Object.is=="function"?Object.is:bu,_r=null,Wa=null,uo=null,Ts=null,bi=null,ln=null,Ho=!1,Ga=!1,fr=0,Xc=0,Ku=-1,Dh=0,Ql=null,dl=null,qc=0,Yi=!1,hl,Jc={readContext:vh,use:function(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return xr(l);if(l.$$typeof===Ln)return vh(l)}throw Error("An unsupported type was passed to use(): "+String(l))},useContext:function(l){return hl="useContext",En(),l._currentValue},useMemo:Il,useReducer:Sl,useRef:function(l){_r=En(),ln=Tl();var d=ln.memoizedState;return d===null?(l={current:l},Object.seal(l),ln.memoizedState=l):d},useState:function(l){return hl="useState",Sl(kh,l)},useInsertionEffect:$r,useLayoutEffect:$r,useCallback:function(l,d){return Il(function(){return l},d)},useImperativeHandle:$r,useEffect:$r,useDebugValue:$r,useDeferredValue:function(l,d){return En(),d!==void 0?d:l},useTransition:function(){return En(),[!1,Mu]},useId:function(){var l=Wa.treeContext,d=l.overflow;l=l.id,l=(l&~(1<<32-Kl(l)-1)).toString(32)+d;var M=u;if(M===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return d=fr++,l="_"+M.idPrefix+"R_"+l,0<d&&(l+="H"+d.toString(32)),l+"_"},useSyncExternalStore:function(l,d,M){if(M===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return M()},useOptimistic:function(l){return En(),[l,Mc]},useActionState:Cc,useFormState:Cc,useHostTransitionStatus:function(){return En(),on},useMemoCache:function(l){for(var d=Array(l),M=0;M<l;M++)d[M]=Vi;return d},useCacheRefresh:function(){return El},useEffectEvent:function(){return ji}},u=null,p=null,T={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return p===null?null:p.componentStack}},R=0,O,W,ee,ie,Le,pe,Ce;Tc.__reactDisabledLog=!0;var Ge,$e,Ze=!1,Fe=new(typeof WeakMap=="function"?WeakMap:Map),Ot={react_stack_bottom_frame:function(l,d,M){return l(d,M)}},xn=Ot.react_stack_bottom_frame.bind(Ot),kt={react_stack_bottom_frame:function(l){return l.render()}},tn=kt.react_stack_bottom_frame.bind(kt),Yr={react_stack_bottom_frame:function(l){var d=l._init;return d(l._payload)}},Zr=Yr.react_stack_bottom_frame.bind(Yr),an=0;if(typeof performance=="object"&&typeof performance.now=="function")var Er=performance,ca=function(){return Er.now()};else{var Ao=Date;ca=function(){return Ao.now()}}var st=4,dn=0,hn=1,gn=2,Xn=3,Zt=4,Pt=5,ho=14,fn=null,Xr={},Dn={},zo={},jl={},Vo=!1,ua=!1,da=!1,ha=0,Nr=!1;zi(),zi(),Q1.prerender=function(l,d){return new Promise(function(M,L){var N=d?d.onHeaders:void 0,U;N&&(U=function(ye){N(new Headers(ye))});var K=bt(d?d.identifierPrefix:void 0,d?d.unstable_externalRuntimeSrc:void 0,d?d.bootstrapScriptContent:void 0,d?d.bootstrapScripts:void 0,d?d.bootstrapModules:void 0),ne=Mo(l,K,Ae(K,void 0,d?d.unstable_externalRuntimeSrc:void 0,d?d.importMap:void 0,U,d?d.maxHeadersLength:void 0),Se(d?d.namespaceURI:void 0),d?d.progressiveChunkSize:void 0,d?d.onError:void 0,function(){var ye=new ReadableStream({type:"bytes",pull:function(He){ti(ne,He)},cancel:function(He){ne.destination=null,yn(ne,He)}},{highWaterMark:0});ye={postponed:An(ne),prelude:ye},M(ye)},void 0,void 0,L,d?d.onPostpone:void 0);if(d&&d.signal){var we=d.signal;if(we.aborted)yn(ne,we.reason);else{var se=function(){yn(ne,we.reason),we.removeEventListener("abort",se)};we.addEventListener("abort",se)}}ei(ne)})},Q1.renderToReadableStream=function(l,d){return new Promise(function(M,L){var N,U,K=new Promise(function(Ve,Pe){U=Ve,N=Pe}),ne=d?d.onHeaders:void 0,we;ne&&(we=function(Ve){ne(new Headers(Ve))});var se=bt(d?d.identifierPrefix:void 0,d?d.unstable_externalRuntimeSrc:void 0,d?d.bootstrapScriptContent:void 0,d?d.bootstrapScripts:void 0,d?d.bootstrapModules:void 0),ye=Al(l,se,Ae(se,d?d.nonce:void 0,d?d.unstable_externalRuntimeSrc:void 0,d?d.importMap:void 0,we,d?d.maxHeadersLength:void 0),Se(d?d.namespaceURI:void 0),d?d.progressiveChunkSize:void 0,d?d.onError:void 0,U,function(){var Ve=new ReadableStream({type:"bytes",pull:function(Pe){ti(ye,Pe)},cancel:function(Pe){ye.destination=null,yn(ye,Pe)}},{highWaterMark:0});Ve.allReady=K,M(Ve)},function(Ve){K.catch(function(){}),L(Ve)},N,d?d.onPostpone:void 0,d?d.formState:void 0);if(d&&d.signal){var He=d.signal;if(He.aborted)yn(ye,He.reason);else{var Ue=function(){yn(ye,He.reason),He.removeEventListener("abort",Ue)};He.addEventListener("abort",Ue)}}ei(ye)})},Q1.resume=function(l,d,M){return new Promise(function(L,N){var U,K,ne=new Promise(function(He,Ue){K=He,U=Ue}),we=Tr(l,d,Ae(d.resumableState,M?M.nonce:void 0,void 0,void 0,void 0,void 0),M?M.onError:void 0,K,function(){var He=new ReadableStream({type:"bytes",pull:function(Ue){ti(we,Ue)},cancel:function(Ue){we.destination=null,yn(we,Ue)}},{highWaterMark:0});He.allReady=ne,L(He)},function(He){ne.catch(function(){}),N(He)},U,M?M.onPostpone:void 0);if(M&&M.signal){var se=M.signal;if(se.aborted)yn(we,se.reason);else{var ye=function(){yn(we,se.reason),se.removeEventListener("abort",ye)};se.addEventListener("abort",ye)}}ei(we)})},Q1.resumeAndPrerender=function(l,d,M){return new Promise(function(L,N){var U=bn(l,d,Ae(d.resumableState,void 0,void 0,void 0,void 0,void 0),M?M.onError:void 0,function(){var we=new ReadableStream({type:"bytes",pull:function(se){ti(U,se)},cancel:function(se){U.destination=null,yn(U,se)}},{highWaterMark:0});we={postponed:An(U),prelude:we},L(we)},void 0,void 0,N,M?M.onPostpone:void 0);if(M&&M.signal){var K=M.signal;if(K.aborted)yn(U,K.reason);else{var ne=function(){yn(U,K.reason),K.removeEventListener("abort",ne)};K.addEventListener("abort",ne)}}ei(U)})},Q1.version="19.2.4"})()),Q1}var aq;function M0e(){if(aq)return J1;aq=1;var t,e;return process.env.NODE_ENV==="production"?(t=k0e(),e=x0e()):(t=b0e(),e=w0e()),J1.version=t.version,J1.renderToString=t.renderToString,J1.renderToStaticMarkup=t.renderToStaticMarkup,J1.renderToReadableStream=e.renderToReadableStream,J1.resume=e.resume,J1}var C0e=M0e(),aF={exports:{}},sF={exports:{}},Qn={};var sq;function T0e(){if(sq)return Qn;sq=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,b=t?Symbol.for("react.suspense"):60113,C=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,P=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,V=t?Symbol.for("react.fundamental"):60117,B=t?Symbol.for("react.responder"):60118,q=t?Symbol.for("react.scope"):60119;function X(Q){if(typeof Q=="object"&&Q!==null){var re=Q.$$typeof;switch(re){case e:switch(Q=Q.type,Q){case c:case f:case r:case i:case o:case b:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case s:case m:case P:case A:case a:return Q;default:return re}}case n:return re}}}function $(Q){return X(Q)===f}return Qn.AsyncMode=c,Qn.ConcurrentMode=f,Qn.ContextConsumer=s,Qn.ContextProvider=a,Qn.Element=e,Qn.ForwardRef=m,Qn.Fragment=r,Qn.Lazy=P,Qn.Memo=A,Qn.Portal=n,Qn.Profiler=i,Qn.StrictMode=o,Qn.Suspense=b,Qn.isAsyncMode=function(Q){return $(Q)||X(Q)===c},Qn.isConcurrentMode=$,Qn.isContextConsumer=function(Q){return X(Q)===s},Qn.isContextProvider=function(Q){return X(Q)===a},Qn.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e},Qn.isForwardRef=function(Q){return X(Q)===m},Qn.isFragment=function(Q){return X(Q)===r},Qn.isLazy=function(Q){return X(Q)===P},Qn.isMemo=function(Q){return X(Q)===A},Qn.isPortal=function(Q){return X(Q)===n},Qn.isProfiler=function(Q){return X(Q)===i},Qn.isStrictMode=function(Q){return X(Q)===o},Qn.isSuspense=function(Q){return X(Q)===b},Qn.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===r||Q===f||Q===i||Q===o||Q===b||Q===C||typeof Q=="object"&&Q!==null&&(Q.$$typeof===P||Q.$$typeof===A||Q.$$typeof===a||Q.$$typeof===s||Q.$$typeof===m||Q.$$typeof===V||Q.$$typeof===B||Q.$$typeof===q||Q.$$typeof===_)},Qn.typeOf=X,Qn}var jn={};var lq;function S0e(){return lq||(lq=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,b=t?Symbol.for("react.suspense"):60113,C=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,P=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,V=t?Symbol.for("react.fundamental"):60117,B=t?Symbol.for("react.responder"):60118,q=t?Symbol.for("react.scope"):60119;function X(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===f||Te===i||Te===o||Te===b||Te===C||typeof Te=="object"&&Te!==null&&(Te.$$typeof===P||Te.$$typeof===A||Te.$$typeof===a||Te.$$typeof===s||Te.$$typeof===m||Te.$$typeof===V||Te.$$typeof===B||Te.$$typeof===q||Te.$$typeof===_)}function $(Te){if(typeof Te=="object"&&Te!==null){var Be=Te.$$typeof;switch(Be){case e:var ct=Te.type;switch(ct){case c:case f:case r:case i:case o:case b:return ct;default:var At=ct&&ct.$$typeof;switch(At){case s:case m:case P:case A:case a:return At;default:return Be}}case n:return Be}}}var Q=c,re=f,he=s,fe=a,me=e,Ee=m,Xe=r,Oe=P,je=A,ze=n,De=i,ce=o,ve=b,Ae=!1;function bt(Te){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ae(Te)||$(Te)===c}function ae(Te){return $(Te)===f}function Y(Te){return $(Te)===s}function Se(Te){return $(Te)===a}function Ne(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===e}function We(Te){return $(Te)===m}function Qe(Te){return $(Te)===r}function it(Te){return $(Te)===P}function _e(Te){return $(Te)===A}function yt(Te){return $(Te)===n}function ht(Te){return $(Te)===i}function at(Te){return $(Te)===o}function St(Te){return $(Te)===b}jn.AsyncMode=Q,jn.ConcurrentMode=re,jn.ContextConsumer=he,jn.ContextProvider=fe,jn.Element=me,jn.ForwardRef=Ee,jn.Fragment=Xe,jn.Lazy=Oe,jn.Memo=je,jn.Portal=ze,jn.Profiler=De,jn.StrictMode=ce,jn.Suspense=ve,jn.isAsyncMode=bt,jn.isConcurrentMode=ae,jn.isContextConsumer=Y,jn.isContextProvider=Se,jn.isElement=Ne,jn.isForwardRef=We,jn.isFragment=Qe,jn.isLazy=it,jn.isMemo=_e,jn.isPortal=yt,jn.isProfiler=ht,jn.isStrictMode=at,jn.isSuspense=St,jn.isValidElementType=X,jn.typeOf=$})()),jn}var cq;function uq(){return cq||(cq=1,process.env.NODE_ENV==="production"?sF.exports=T0e():sF.exports=S0e()),sF.exports}var RO,dq;function I0e(){if(dq)return RO;dq=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return RO=o()?Object.assign:function(i,a){for(var s,c=r(i),f,m=1;m<arguments.length;m++){s=Object(arguments[m]);for(var b in s)e.call(s,b)&&(c[b]=s[b]);if(t){f=t(s);for(var C=0;C<f.length;C++)n.call(s,f[C])&&(c[f[C]]=s[f[C]])}}return c},RO}var PO,hq;function DO(){if(hq)return PO;hq=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return PO=t,PO}var FO,fq;function pq(){return fq||(fq=1,FO=Function.call.bind(Object.prototype.hasOwnProperty)),FO}var _O,yq;function E0e(){if(yq)return _O;yq=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=DO(),n={},r=pq();t=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,f){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var b;try{if(typeof i[m]!="function"){var C=Error((c||"React class")+": "+s+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}b=i[m](a,m,c,s,null,e)}catch(P){b=P}if(b&&!(b instanceof Error)&&t((c||"React class")+": type specification of "+s+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof b+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),b instanceof Error&&!(b.message in n)){n[b.message]=!0;var A=f?f():"";t("Failed "+s+" type: "+b.message+(A??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_O=o,_O}var NO,gq;function A0e(){if(gq)return NO;gq=1;var t=uq(),e=I0e(),n=DO(),r=pq(),o=E0e(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return NO=function(s,c){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function b(ae){var Y=ae&&(f&&ae[f]||ae[m]);if(typeof Y=="function")return Y}var C="<<anonymous>>",A={array:B("array"),bigint:B("bigint"),bool:B("boolean"),func:B("function"),number:B("number"),object:B("object"),string:B("string"),symbol:B("symbol"),any:q(),arrayOf:X,element:$(),elementType:Q(),instanceOf:re,node:Ee(),objectOf:fe,oneOf:he,oneOfType:me,shape:Oe,exact:je};function P(ae,Y){return ae===Y?ae!==0||1/ae===1/Y:ae!==ae&&Y!==Y}function _(ae,Y){this.message=ae,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}_.prototype=Error.prototype;function V(ae){if(process.env.NODE_ENV!=="production")var Y={},Se=0;function Ne(Qe,it,_e,yt,ht,at,St){if(yt=yt||C,at=at||_e,St!==n){if(c){var Te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Be=yt+":"+_e;!Y[Be]&&Se<3&&(i("You are manually calling a React.PropTypes validation function for the `"+at+"` prop on `"+yt+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[Be]=!0,Se++)}}return it[_e]==null?Qe?it[_e]===null?new _("The "+ht+" `"+at+"` is marked as required "+("in `"+yt+"`, but its value is `null`.")):new _("The "+ht+" `"+at+"` is marked as required in "+("`"+yt+"`, but its value is `undefined`.")):null:ae(it,_e,yt,ht,at)}var We=Ne.bind(null,!1);return We.isRequired=Ne.bind(null,!0),We}function B(ae){function Y(Se,Ne,We,Qe,it,_e){var yt=Se[Ne],ht=ce(yt);if(ht!==ae){var at=ve(yt);return new _("Invalid "+Qe+" `"+it+"` of type "+("`"+at+"` supplied to `"+We+"`, expected ")+("`"+ae+"`."),{expectedType:ae})}return null}return V(Y)}function q(){return V(a)}function X(ae){function Y(Se,Ne,We,Qe,it){if(typeof ae!="function")return new _("Property `"+it+"` of component `"+We+"` has invalid PropType notation inside arrayOf.");var _e=Se[Ne];if(!Array.isArray(_e)){var yt=ce(_e);return new _("Invalid "+Qe+" `"+it+"` of type "+("`"+yt+"` supplied to `"+We+"`, expected an array."))}for(var ht=0;ht<_e.length;ht++){var at=ae(_e,ht,We,Qe,it+"["+ht+"]",n);if(at instanceof Error)return at}return null}return V(Y)}function $(){function ae(Y,Se,Ne,We,Qe){var it=Y[Se];if(!s(it)){var _e=ce(it);return new _("Invalid "+We+" `"+Qe+"` of type "+("`"+_e+"` supplied to `"+Ne+"`, expected a single ReactElement."))}return null}return V(ae)}function Q(){function ae(Y,Se,Ne,We,Qe){var it=Y[Se];if(!t.isValidElementType(it)){var _e=ce(it);return new _("Invalid "+We+" `"+Qe+"` of type "+("`"+_e+"` supplied to `"+Ne+"`, expected a single ReactElement type."))}return null}return V(ae)}function re(ae){function Y(Se,Ne,We,Qe,it){if(!(Se[Ne]instanceof ae)){var _e=ae.name||C,yt=bt(Se[Ne]);return new _("Invalid "+Qe+" `"+it+"` of type "+("`"+yt+"` supplied to `"+We+"`, expected ")+("instance of `"+_e+"`."))}return null}return V(Y)}function he(ae){if(!Array.isArray(ae))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function Y(Se,Ne,We,Qe,it){for(var _e=Se[Ne],yt=0;yt<ae.length;yt++)if(P(_e,ae[yt]))return null;var ht=JSON.stringify(ae,function(St,Te){var Be=ve(Te);return Be==="symbol"?String(Te):Te});return new _("Invalid "+Qe+" `"+it+"` of value `"+String(_e)+"` "+("supplied to `"+We+"`, expected one of "+ht+"."))}return V(Y)}function fe(ae){function Y(Se,Ne,We,Qe,it){if(typeof ae!="function")return new _("Property `"+it+"` of component `"+We+"` has invalid PropType notation inside objectOf.");var _e=Se[Ne],yt=ce(_e);if(yt!=="object")return new _("Invalid "+Qe+" `"+it+"` of type "+("`"+yt+"` supplied to `"+We+"`, expected an object."));for(var ht in _e)if(r(_e,ht)){var at=ae(_e,ht,We,Qe,it+"."+ht,n);if(at instanceof Error)return at}return null}return V(Y)}function me(ae){if(!Array.isArray(ae))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Y=0;Y<ae.length;Y++){var Se=ae[Y];if(typeof Se!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ae(Se)+" at index "+Y+"."),a}function Ne(We,Qe,it,_e,yt){for(var ht=[],at=0;at<ae.length;at++){var St=ae[at],Te=St(We,Qe,it,_e,yt,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&ht.push(Te.data.expectedType)}var Be=ht.length>0?", expected one of type ["+ht.join(", ")+"]":"";return new _("Invalid "+_e+" `"+yt+"` supplied to "+("`"+it+"`"+Be+"."))}return V(Ne)}function Ee(){function ae(Y,Se,Ne,We,Qe){return ze(Y[Se])?null:new _("Invalid "+We+" `"+Qe+"` supplied to "+("`"+Ne+"`, expected a ReactNode."))}return V(ae)}function Xe(ae,Y,Se,Ne,We){return new _((ae||"React class")+": "+Y+" type `"+Se+"."+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+We+"`.")}function Oe(ae){function Y(Se,Ne,We,Qe,it){var _e=Se[Ne],yt=ce(_e);if(yt!=="object")return new _("Invalid "+Qe+" `"+it+"` of type `"+yt+"` "+("supplied to `"+We+"`, expected `object`."));for(var ht in ae){var at=ae[ht];if(typeof at!="function")return Xe(We,Qe,it,ht,ve(at));var St=at(_e,ht,We,Qe,it+"."+ht,n);if(St)return St}return null}return V(Y)}function je(ae){function Y(Se,Ne,We,Qe,it){var _e=Se[Ne],yt=ce(_e);if(yt!=="object")return new _("Invalid "+Qe+" `"+it+"` of type `"+yt+"` "+("supplied to `"+We+"`, expected `object`."));var ht=e({},Se[Ne],ae);for(var at in ht){var St=ae[at];if(r(ae,at)&&typeof St!="function")return Xe(We,Qe,it,at,ve(St));if(!St)return new _("Invalid "+Qe+" `"+it+"` key `"+at+"` supplied to `"+We+"`.\nBad object: "+JSON.stringify(Se[Ne],null," ")+`
|
|
253
253
|
Valid keys: `+JSON.stringify(Object.keys(ae),null," "));var Te=St(_e,at,We,Qe,it+"."+at,n);if(Te)return Te}return null}return V(Y)}function ze(ae){switch(typeof ae){case"number":case"string":case"undefined":return!0;case"boolean":return!ae;case"object":if(Array.isArray(ae))return ae.every(ze);if(ae===null||s(ae))return!0;var Y=b(ae);if(Y){var Se=Y.call(ae),Ne;if(Y!==ae.entries){for(;!(Ne=Se.next()).done;)if(!ze(Ne.value))return!1}else for(;!(Ne=Se.next()).done;){var We=Ne.value;if(We&&!ze(We[1]))return!1}}else return!1;return!0;default:return!1}}function De(ae,Y){return ae==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function ce(ae){var Y=typeof ae;return Array.isArray(ae)?"array":ae instanceof RegExp?"object":De(Y,ae)?"symbol":Y}function ve(ae){if(typeof ae>"u"||ae===null)return""+ae;var Y=ce(ae);if(Y==="object"){if(ae instanceof Date)return"date";if(ae instanceof RegExp)return"regexp"}return Y}function Ae(ae){var Y=ve(ae);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function bt(ae){return!ae.constructor||!ae.constructor.name?C:ae.constructor.name}return A.checkPropTypes=o,A.resetWarningCache=o.resetWarningCache,A.PropTypes=A,A},NO}var OO,mq;function L0e(){if(mq)return OO;mq=1;var t=DO();function e(){}function n(){}return n.resetWarningCache=e,OO=function(){function r(a,s,c,f,m,b){if(b!==t){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},OO}var vq;function R0e(){if(vq)return aF.exports;if(vq=1,process.env.NODE_ENV!=="production"){var t=uq(),e=!0;aF.exports=A0e()(t.isElement,e)}else aF.exports=L0e()();return aF.exports}var P0e=R0e();const yu=eJ(P0e);var D0e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kq(t,e){return t(e={exports:{}},e.exports),e.exports}var F0e=kq((function(t){(function(e){var n=function(V,B,q){if(!c(B)||m(B)||b(B)||C(B)||s(B))return B;var X,$=0,Q=0;if(f(B))for(X=[],Q=B.length;$<Q;$++)X.push(n(V,B[$],q));else for(var re in X={},B)Object.prototype.hasOwnProperty.call(B,re)&&(X[V(re,q)]=n(V,B[re],q));return X},r=function(V){return A(V)?V:(V=V.replace(/[\-_\s]+(.)?/g,(function(B,q){return q?q.toUpperCase():""}))).substr(0,1).toLowerCase()+V.substr(1)},o=function(V){var B=r(V);return B.substr(0,1).toUpperCase()+B.substr(1)},i=function(V,B){return(function(q,X){var $=(X=X||{}).separator||"_",Q=X.split||/(?=[A-Z])/;return q.split(Q).join($)})(V,B).toLowerCase()},a=Object.prototype.toString,s=function(V){return typeof V=="function"},c=function(V){return V===Object(V)},f=function(V){return a.call(V)=="[object Array]"},m=function(V){return a.call(V)=="[object Date]"},b=function(V){return a.call(V)=="[object RegExp]"},C=function(V){return a.call(V)=="[object Boolean]"},A=function(V){return(V-=0)==V},P=function(V,B){var q=B&&"process"in B?B.process:B;return typeof q!="function"?V:function(X,$){return q(X,V,$)}},_={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(V,B){return n(P(r,B),V)},decamelizeKeys:function(V,B){return n(P(i,B),V,B)},pascalizeKeys:function(V,B){return n(P(o,B),V)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=_:e.humps=_})(D0e)})).decamelize,_0e=function(t){if(Array.isArray(t))return t},N0e=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){o=!0,i=c}finally{try{r||s.return==null||s.return()}finally{if(o)throw i}}return n}},xq=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},O0e=function(t,e){if(t){if(typeof t=="string")return xq(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xq(t,e):void 0}},H0e=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
254
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},z0e=function(t,e){return _0e(t)||N0e(t,e)||O0e(t,e)||H0e()},bq=kq((function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.apply(this,arguments)}t.exports=e})),V0e=function(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},wq=function(t,e){if(t==null)return{};var n,r,o=V0e(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},U0e=xe.createContext(null);function Mq(t){var e=t.children,n=e===void 0?"":e,r=wq(t,["children"]);return typeof n!="string"&&(n=C0e.renderToString(n)),xe.createElement("template",bq({},r,{dangerouslySetInnerHTML:{__html:n}}))}function Cq(t){var e=t.root,n=t.children;return gf.createPortal(n===void 0?null:n,e)}function B0e(t){var e=xe.forwardRef((function(n,r){var o,i,a=n.mode,s=a===void 0?"open":a,c=n.delegatesFocus,f=c!==void 0&&c,m=n.styleSheets,b=m===void 0?[]:m,C=n.ssr,A=C!==void 0&&C,P=n.children,_=wq(n,["mode","delegatesFocus","styleSheets","ssr","children"]),V=(i=xe.useRef((o=r)&&o.current),xe.useEffect((function(){o&&(o.current=i.current)}),[o]),i),B=xe.useState(null),q=z0e(B,2),X=q[0],$=q[1],Q="node_".concat(s).concat(f);return xe.useLayoutEffect((function(){if(V.current)try{if(typeof r=="function"&&r(V.current),A){var re=V.current.shadowRoot;return void $(re)}var he=V.current.attachShadow({mode:s,delegatesFocus:f});b.length>0&&(he.adoptedStyleSheets=b),$(he)}catch(fe){(function(me){var Ee=me.error,Xe=me.styleSheets,Oe=me.root;if(Ee.name==="NotSupportedError")Xe.length>0&&(Oe.adoptedStyleSheets=Xe);else throw Ee})({error:fe,styleSheets:b,root:X})}}),[r,V,b]),xe.createElement(xe.Fragment,null,xe.createElement(t.tag,bq({key:Q,ref:V},_),(X||A)&&xe.createElement(U0e.Provider,{value:X},A?xe.createElement(Mq,{shadowroot:s,shadowrootmode:s},t.render({root:X,ssr:A,children:P})):xe.createElement(Cq,{root:X},t.render({root:X,ssr:A,children:P})))))}));return e.propTypes={mode:yu.oneOf(["open","closed"]),delegatesFocus:yu.bool,styleSheets:yu.arrayOf(yu.instanceOf(globalThis.CSSStyleSheet)),ssr:yu.bool,children:yu.node},e}Mq.propTypes={children:yu.oneOfType([yu.string,yu.node])},Cq.propTypes={root:yu.object.isRequired,children:yu.node};var HO=new Map;function W0e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,o){var i=F0e(o,{separator:"-"}),a="".concat(e,"-").concat(i);return HO.has(a)||HO.set(a,B0e({tag:i,render:n})),HO.get(a)}})}var Tq=W0e();const Sq=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-x-reverse:0}}}@layer tasks-timeline-app{@layer theme{:root,:host{--font-sans:Inter,sans-serif;--font-mono:"JetBrains Mono",monospace;--color-amber-50:hsl(var(--amber-50));--color-amber-100:hsl(var(--amber-100));--color-amber-200:hsl(var(--amber-200));--color-amber-500:hsl(var(--amber-500));--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:hsl(var(--amber-700));--color-emerald-50:hsl(var(--emerald-50));--color-emerald-100:hsl(var(--emerald-100));--color-emerald-200:hsl(var(--emerald-200));--color-emerald-400:hsl(var(--emerald-400));--color-emerald-500:hsl(var(--emerald-500));--color-emerald-600:hsl(var(--emerald-600));--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:hsl(var(--blue-50));--color-blue-100:hsl(var(--blue-100));--color-blue-200:hsl(var(--blue-200));--color-blue-300:hsl(var(--blue-300));--color-blue-400:hsl(var(--blue-400));--color-blue-500:hsl(var(--blue-500));--color-blue-600:hsl(var(--blue-600));--color-blue-700:oklch(48.8% .243 264.376);--color-blue-900:oklch(37.9% .146 265.522);--color-purple-50:hsl(var(--purple-50));--color-purple-100:hsl(var(--purple-100));--color-purple-200:hsl(var(--purple-200));--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:hsl(var(--purple-400));--color-purple-500:hsl(var(--purple-500));--color-purple-600:hsl(var(--purple-600));--color-purple-700:oklch(49.6% .265 301.924);--color-purple-900:oklch(38.1% .176 304.987);--color-rose-50:hsl(var(--rose-50));--color-rose-100:hsl(var(--rose-100));--color-rose-200:hsl(var(--rose-200));--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:hsl(var(--rose-500));--color-rose-600:hsl(var(--rose-600));--color-rose-700:hsl(var(--rose-700));--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-slate-50:hsl(var(--slate-50));--color-slate-100:hsl(var(--slate-100));--color-slate-200:hsl(var(--slate-200));--color-slate-300:hsl(var(--slate-300));--color-slate-400:hsl(var(--slate-400));--color-slate-500:hsl(var(--slate-500));--color-slate-600:hsl(var(--slate-600));--color-slate-700:hsl(var(--slate-700));--color-slate-800:hsl(var(--slate-800));--color-slate-900:hsl(var(--slate-900));--color-slate-950:hsl(var(--slate-950));--color-gray-50:oklch(98.5% .002 247.839);--color-black:#000;--color-white:hsl(var(--background));--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:var(--radius);--color-background:hsl(var(--background));--color-foreground:hsl(var(--foreground));--color-popover:hsl(var(--popover));--color-popover-foreground:hsl(var(--popover-foreground));--color-primary:hsl(var(--primary));--color-primary-foreground:hsl(var(--primary-foreground));--color-secondary:hsl(var(--secondary));--color-secondary-foreground:hsl(var(--secondary-foreground));--color-muted:hsl(var(--muted));--color-muted-foreground:hsl(var(--muted-foreground));--color-accent:hsl(var(--accent));--color-accent-foreground:hsl(var(--accent-foreground));--color-destructive:hsl(var(--destructive));--color-destructive-foreground:hsl(var(--destructive-foreground));--color-border:hsl(var(--border));--color-input:hsl(var(--input));--color-ring:hsl(var(--ring));--color-paper:hsl(var(--card))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-2\\.5{top:calc(var(--spacing)*2.5)}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-5{top:calc(var(--spacing)*5)}.top-\\[50\\%\\]{top:50%}.right-1{right:calc(var(--spacing)*1)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-6{right:calc(var(--spacing)*6)}.right-8{right:calc(var(--spacing)*8)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-\\[50\\%\\]{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-9999{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.-mt-1{margin-top:calc(var(--spacing)*-1)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.-mr-1{margin-right:calc(var(--spacing)*-1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-6{height:calc(var(--spacing)*6)}.h-6\\.5{height:calc(var(--spacing)*6.5)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-9\\.5{height:calc(var(--spacing)*9.5)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-16{height:calc(var(--spacing)*16)}.h-28{height:calc(var(--spacing)*28)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:calc(var(--spacing)*40)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[85vh\\]{max-height:85vh}.max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-5\\.5{min-height:calc(var(--spacing)*5.5)}.min-h-20{min-height:calc(var(--spacing)*20)}.min-h-100{min-height:calc(var(--spacing)*100)}.min-h-screen{min-height:100vh}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-44{width:calc(var(--spacing)*44)}.w-48{width:calc(var(--spacing)*48)}.w-56{width:calc(var(--spacing)*56)}.w-72{width:calc(var(--spacing)*72)}.w-\\[280px\\]{width:280px}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-4{min-width:calc(var(--spacing)*4)}.min-w-50{min-width:calc(var(--spacing)*50)}.min-w-80{min-width:calc(var(--spacing)*80)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[250px\\]{min-width:250px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:--radix-popover-content-transform-origin}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize-none{resize:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-start\\!{justify-content:flex-start!important}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:var(--radius)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#e8e4db\\]{border-color:#e8e4db}.border-amber-100\\/50{border-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-amber-100\\/50{border-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-100\\/50{border-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-blue-100\\/50{border-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-border{border-color:var(--color-border)}.border-emerald-100\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-100\\/50{border-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-200\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-200\\/50{border-color:color-mix(in oklab,var(--color-emerald-200)50%,transparent)}}.border-input{border-color:var(--color-input)}.border-purple-100{border-color:var(--color-purple-100)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-purple-400{border-color:var(--color-purple-400)}.border-rose-100{border-color:var(--color-rose-100)}.border-rose-100\\/50{border-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-100\\/50{border-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-rose-200{border-color:var(--color-rose-200)}.border-rose-200\\/50{border-color:color-mix(in srgb,hsl(var(--rose-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-200\\/50{border-color:color-mix(in oklab,var(--color-rose-200)50%,transparent)}}.border-rose-400{border-color:var(--color-rose-400)}.border-slate-50{border-color:var(--color-slate-50)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-100\\/50{border-color:color-mix(in srgb,hsl(var(--slate-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/50{border-color:color-mix(in oklab,var(--color-slate-100)50%,transparent)}}.border-slate-100\\/80{border-color:color-mix(in srgb,hsl(var(--slate-100))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/80{border-color:color-mix(in oklab,var(--color-slate-100)80%,transparent)}}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/20{border-color:color-mix(in srgb,hsl(var(--slate-200))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/20{border-color:color-mix(in oklab,var(--color-slate-200)20%,transparent)}}.border-slate-200\\/50{border-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/50{border-color:color-mix(in oklab,var(--color-slate-200)50%,transparent)}}.border-slate-200\\/60{border-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/60{border-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-800{border-color:var(--color-slate-800)}.border-transparent{border-color:#0000}.border-y-blue-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-blue-100\\/50{border-block-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-y-emerald-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-emerald-100\\/50{border-block-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-y-rose-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-rose-100\\/50{border-block-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-r-blue-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-blue-100\\/50{border-right-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-r-emerald-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-emerald-100\\/50{border-right-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-r-rose-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-rose-100\\/50{border-right-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-l-blue-500{border-left-color:var(--color-blue-500)}.border-l-emerald-500{border-left-color:var(--color-emerald-500)}.border-l-rose-500{border-left-color:var(--color-rose-500)}.bg-\\[\\#0B1120\\]{background-color:#0b1120}.bg-\\[\\#1e1e1e\\]{background-color:#1e1e1e}.bg-\\[\\#29abe0\\]{background-color:#29abe0}.bg-\\[\\#FFDD00\\]{background-color:#fd0}.bg-\\[\\#f5f2eb\\]{background-color:#f5f2eb}.bg-accent{background-color:var(--color-accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\\/80{background-color:color-mix(in srgb,hsl(var(--amber-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\\/80{background-color:color-mix(in oklab,var(--color-amber-50)80%,transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--color-background)}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/30{background-color:color-mix(in srgb,hsl(var(--blue-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/30{background-color:color-mix(in oklab,var(--color-blue-50)30%,transparent)}}.bg-blue-50\\/50{background-color:color-mix(in srgb,hsl(var(--blue-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/50{background-color:color-mix(in oklab,var(--color-blue-50)50%,transparent)}}.bg-blue-50\\/80{background-color:color-mix(in srgb,hsl(var(--blue-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/80{background-color:color-mix(in oklab,var(--color-blue-50)80%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-destructive{background-color:var(--color-destructive)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-50\\/80{background-color:color-mix(in srgb,hsl(var(--emerald-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/80{background-color:color-mix(in oklab,var(--color-emerald-50)80%,transparent)}}.bg-emerald-100\\/50{background-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-100\\/50{background-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-muted{background-color:var(--color-muted)}.bg-paper{background-color:var(--color-paper)}.bg-paper\\/50{background-color:color-mix(in srgb,hsl(var(--card))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/50{background-color:color-mix(in oklab,var(--color-paper)50%,transparent)}}.bg-paper\\/95{background-color:color-mix(in srgb,hsl(var(--card))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/95{background-color:color-mix(in oklab,var(--color-paper)95%,transparent)}}.bg-popover{background-color:var(--color-popover)}.bg-primary{background-color:var(--color-primary)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-50\\/50{background-color:color-mix(in srgb,hsl(var(--rose-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/50{background-color:color-mix(in oklab,var(--color-rose-50)50%,transparent)}}.bg-rose-50\\/60{background-color:color-mix(in srgb,hsl(var(--rose-50))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/60{background-color:color-mix(in oklab,var(--color-rose-50)60%,transparent)}}.bg-rose-50\\/80{background-color:color-mix(in srgb,hsl(var(--rose-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/80{background-color:color-mix(in oklab,var(--color-rose-50)80%,transparent)}}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-100\\/50{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-100\\/50{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.bg-rose-300{background-color:var(--color-rose-300)}.bg-rose-500{background-color:var(--color-rose-500)}.bg-secondary{background-color:var(--color-secondary)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\\/30{background-color:color-mix(in srgb,hsl(var(--slate-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/30{background-color:color-mix(in oklab,var(--color-slate-50)30%,transparent)}}.bg-slate-50\\/50{background-color:color-mix(in srgb,hsl(var(--slate-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/50{background-color:color-mix(in oklab,var(--color-slate-50)50%,transparent)}}.bg-slate-50\\/80{background-color:color-mix(in srgb,hsl(var(--slate-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/80{background-color:color-mix(in oklab,var(--color-slate-50)80%,transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-200\\/60{background-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-200\\/60{background-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/40{background-color:color-mix(in srgb,hsl(var(--slate-900))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/50{background-color:color-mix(in srgb,hsl(var(--background))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/50{background-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.bg-white\\/95{background-color:color-mix(in srgb,hsl(var(--background))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.fill-current{fill:currentColor}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-0\\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-10{padding-block:calc(var(--spacing)*10)}.pt-0\\.5{padding-top:calc(var(--spacing)*.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-16{padding-right:calc(var(--spacing)*16)}.pr-24{padding-right:calc(var(--spacing)*24)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-1\\.5{padding-bottom:calc(var(--spacing)*1.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-10{padding-bottom:calc(var(--spacing)*10)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-left\\!{text-align:left!important}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[15px\\]{font-size:15px}.text-\\[length\\:inherit\\]{font-size:inherit}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-accent-foreground{color:var(--color-accent-foreground)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-600\\!{color:var(--color-blue-600)!important}.text-blue-700{color:var(--color-blue-700)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground{color:var(--color-foreground)}.text-muted-foreground{color:var(--color-muted-foreground)}.text-muted-foreground\\/40{color:color-mix(in srgb,hsl(var(--muted-foreground))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/40{color:color-mix(in oklab,var(--color-muted-foreground)40%,transparent)}}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-purple-300{color:var(--color-purple-300)}.text-purple-400{color:var(--color-purple-400)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-900{color:var(--color-purple-900)}.text-rose-400{color:var(--color-rose-400)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-600\\!{color:var(--color-rose-600)!important}.text-rose-700{color:var(--color-rose-700)}.text-rose-900{color:var(--color-rose-900)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sky-500{color:var(--color-sky-500)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-slate-300{-webkit-text-decoration-color:var(--color-slate-300);text-decoration-color:var(--color-slate-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-blue-200{--tw-shadow-color:hsl(var(--blue-200))}@supports (color:color-mix(in lab,red,red)){.shadow-blue-200{--tw-shadow-color:color-mix(in oklab,var(--color-blue-200)var(--tw-shadow-alpha),transparent)}}.shadow-emerald-100{--tw-shadow-color:hsl(var(--emerald-100))}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-100{--tw-shadow-color:color-mix(in oklab,var(--color-emerald-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100{--tw-shadow-color:hsl(var(--rose-100))}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100{--tw-shadow-color:color-mix(in oklab,var(--color-rose-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-rose-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-slate-100{--tw-shadow-color:hsl(var(--slate-100))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-100{--tw-shadow-color:color-mix(in oklab,var(--color-slate-100)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200{--tw-shadow-color:hsl(var(--slate-200))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200{--tw-shadow-color:color-mix(in oklab,var(--color-slate-200)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-slate-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.ring-blue-200{--tw-ring-color:var(--color-blue-200)}.ring-primary\\/30{--tw-ring-color:color-mix(in srgb,hsl(var(--primary))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.ring-primary\\/30{--tw-ring-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.ring-purple-200{--tw-ring-color:var(--color-purple-200)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-first\\:hidden:is(:where(.group):first-child *),.group-last\\:hidden:is(:where(.group):last-child *){display:none}@media(hover:hover){.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}.group-hover\\:text-blue-600:is(:where(.group):hover *){color:var(--color-blue-600)}.group-hover\\:text-slate-400:is(:where(.group):hover *){color:var(--color-slate-400)}.group-hover\\:text-slate-700:is(:where(.group):hover *){color:var(--color-slate-700)}.group-hover\\:text-slate-900:is(:where(.group):hover *){color:var(--color-slate-900)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-\\[\\.toast\\]\\:bg-muted:is(:where(.group).toast *){background-color:var(--color-muted)}.group-\\[\\.toast\\]\\:bg-primary:is(:where(.group).toast *){background-color:var(--color-primary)}.group-\\[\\.toast\\]\\:text-muted-foreground:is(:where(.group).toast *){color:var(--color-muted-foreground)}.group-\\[\\.toast\\]\\:text-primary-foreground:is(:where(.group).toast *){color:var(--color-primary-foreground)}.group-\\[\\.toaster\\]\\:border-border:is(:where(.group).toaster *){border-color:var(--color-border)}.group-\\[\\.toaster\\]\\:bg-background:is(:where(.group).toaster *){background-color:var(--color-background)}.group-\\[\\.toaster\\]\\:text-foreground:is(:where(.group).toaster *){color:var(--color-foreground)}.group-\\[\\.toaster\\]\\:shadow-lg:is(:where(.group).toaster *){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.selection\\:bg-rose-100 ::selection{background-color:var(--color-rose-100)}.selection\\:bg-rose-100::selection{background-color:var(--color-rose-100)}.selection\\:text-rose-900 ::selection{color:var(--color-rose-900)}.selection\\:text-rose-900::selection{color:var(--color-rose-900)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.placeholder\\:text-purple-300::placeholder{color:var(--color-purple-300)}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}@media(hover:hover){.hover\\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\\:border-rose-100:hover{border-color:var(--color-rose-100)}.hover\\:border-slate-200:hover{border-color:var(--color-slate-200)}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-accent:hover{background-color:var(--color-accent)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in srgb,hsl(var(--destructive))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--color-destructive)80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in srgb,hsl(var(--destructive))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--color-destructive)90%,transparent)}}.hover\\:bg-primary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--primary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--color-primary)80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:color-mix(in srgb,hsl(var(--primary))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--color-primary)90%,transparent)}}.hover\\:bg-purple-100:hover{background-color:var(--color-purple-100)}.hover\\:bg-rose-50:hover{background-color:var(--color-rose-50)}.hover\\:bg-rose-100:hover{background-color:var(--color-rose-100)}.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--secondary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--color-secondary)80%,transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\\:text-blue-500:hover{color:var(--color-blue-500)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-foreground:hover{color:var(--color-foreground)}.hover\\:text-primary-foreground:hover{color:var(--color-primary-foreground)}.hover\\:text-rose-500:hover{color:var(--color-rose-500)}.hover\\:text-rose-600:hover{color:var(--color-rose-600)}.hover\\:text-rose-800:hover{color:var(--color-rose-800)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-slate-700:hover{color:var(--color-slate-700)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-100:hover{opacity:1}.hover\\:brightness-95:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:border-purple-400:focus{border-color:var(--color-purple-400)}.focus\\:border-purple-500:focus{border-color:var(--color-purple-500)}.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:border-ring:focus{border-color:var(--color-ring)}.focus\\:border-slate-400:focus{border-color:var(--color-slate-400)}.focus\\:bg-accent:focus{background-color:var(--color-accent)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-300:focus{--tw-ring-color:var(--color-blue-300)}.focus\\:ring-blue-400:focus{--tw-ring-color:var(--color-blue-400)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-400)20%,transparent)}}.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\\:ring-slate-200:focus{--tw-ring-color:var(--color-slate-200)}.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--slate-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-slate-400)20%,transparent)}}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--color-accent)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}@media(min-width:40rem){.sm\\:inline-block{display:inline-block}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:calc(var(--spacing)*4)}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius-lg)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:48rem){.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(prefers-color-scheme:dark){.dark\\:border-rose-900\\/20{border-color:#8b083633}@supports (color:color-mix(in lab,red,red)){.dark\\:border-rose-900\\/20{border-color:color-mix(in oklab,var(--color-rose-900)20%,transparent)}}.dark\\:border-slate-500{border-color:var(--color-slate-500)}.dark\\:border-slate-600{border-color:var(--color-slate-600)}.dark\\:border-slate-700{border-color:var(--color-slate-700)}.dark\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.dark\\:border-slate-800{border-color:var(--color-slate-800)}.dark\\:bg-blue-900\\/30{background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-900\\/30{background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:bg-rose-900\\/10{background-color:#8b08361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-rose-900\\/10{background-color:color-mix(in oklab,var(--color-rose-900)10%,transparent)}}.dark\\:bg-slate-600{background-color:var(--color-slate-600)}.dark\\:bg-slate-700{background-color:var(--color-slate-700)}.dark\\:bg-slate-800{background-color:var(--color-slate-800)}.dark\\:bg-slate-800\\/30{background-color:color-mix(in srgb,hsl(var(--slate-800))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/30{background-color:color-mix(in oklab,var(--color-slate-800)30%,transparent)}}.dark\\:bg-slate-800\\/50{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/50{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:bg-slate-900{background-color:var(--color-slate-900)}.dark\\:bg-slate-900\\/10{background-color:color-mix(in srgb,hsl(var(--slate-900))10%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/10{background-color:color-mix(in oklab,var(--color-slate-900)10%,transparent)}}.dark\\:bg-slate-900\\/20{background-color:color-mix(in srgb,hsl(var(--slate-900))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/20{background-color:color-mix(in oklab,var(--color-slate-900)20%,transparent)}}.dark\\:text-blue-100{color:var(--color-blue-100)}.dark\\:text-blue-300{color:var(--color-blue-300)}.dark\\:text-slate-100{color:var(--color-slate-100)}.dark\\:text-slate-200{color:var(--color-slate-200)}.dark\\:text-slate-300{color:var(--color-slate-300)}.dark\\:text-slate-400{color:var(--color-slate-400)}.dark\\:shadow-slate-950{--tw-shadow-color:hsl(var(--slate-950))}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-slate-950{--tw-shadow-color:color-mix(in oklab,var(--color-slate-950)var(--tw-shadow-alpha),transparent)}}.dark\\:ring-blue-900{--tw-ring-color:var(--color-blue-900)}@media(hover:hover){.dark\\:hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.dark\\:hover\\:bg-slate-800:hover{background-color:var(--color-slate-800)}.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:hover\\:text-slate-200:hover{color:var(--color-slate-200)}.dark\\:hover\\:text-slate-300:hover{color:var(--color-slate-300)}}}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in srgb,hsl(var(--slate-800))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in oklab,var(--color-slate-800)95%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-blue-400{color:var(--color-blue-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-emerald-400{color:var(--color-emerald-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-rose-400{color:var(--color-rose-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-100{color:var(--color-slate-100)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-400{color:var(--color-slate-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:#0003}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-black)20%,transparent)var(--tw-shadow-alpha),transparent)}}}}:root{--background:0 0% 100%;--foreground:222.2 47.4% 11.2%;--card:0 0% 98.8%;--card-foreground:222.2 47.4% 11.2%;--popover:0 0% 98.8%;--popover-foreground:222.2 47.4% 11.2%;--primary:217.2 91.2% 59.8%;--primary-foreground:0 0% 100%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:214.3 100% 97.1%;--accent-foreground:217.2 91.2% 59.8%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:0 0% 100%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:217.2 91.2% 59.8%;--radius:.5rem;--slate-50:210 40% 98%;--slate-100:210 40% 96.1%;--slate-200:214.3 31.8% 91.4%;--slate-300:212.7 26.8% 83.9%;--slate-400:215 20.2% 65.1%;--slate-500:215.4 16.3% 46.9%;--slate-600:215.3 19.3% 34.5%;--slate-700:215.3 25% 26.7%;--slate-800:217.2 32.6% 17.5%;--slate-900:222.2 47.4% 11.2%;--slate-950:222.2 84% 4.9%;--rose-50:355.7 100% 97.3%;--rose-100:355.6 100% 94.7%;--rose-200:352.7 96.1% 90%;--rose-500:349.7 89.2% 60.2%;--rose-600:346.8 77.2% 49.8%;--rose-700:345.3 82.7% 40.8%;--emerald-50:151.8 81% 95.9%;--emerald-100:149.3 80.4% 90%;--emerald-200:152.4 76% 80.4%;--emerald-400:160.1 84.1% 52.5%;--emerald-500:160.1 84.1% 39.4%;--emerald-600:161.4 93.5% 30.4%;--blue-50:213.8 100% 96.9%;--blue-100:214.3 94.6% 92.7%;--blue-200:213.3 96.9% 87.3%;--blue-300:211.7 96.4% 78.4%;--blue-400:213.1 93.9% 67.8%;--blue-500:217.2 91.2% 59.8%;--blue-600:221.2 83.2% 53.3%;--amber-50:48 100% 96.1%;--amber-100:48 96.5% 88.8%;--amber-200:48 96.6% 76.7%;--amber-500:43 96.4% 56.3%;--amber-700:37.7 92.1% 38%;--purple-50:270 100% 98%;--purple-100:269 100% 95.5%;--purple-200:268.7 100% 91.8%;--purple-400:270.4 95.2% 75.3%;--purple-500:270.7 91% 65.1%;--purple-600:271.5 81.3% 55.9%}.tasks-timeline-app[data-theme=dark]{--background:222.2 47.4% 11.2%;--foreground:210 40% 98%;--card:217.2 32.6% 17.5%;--card-foreground:210 40% 98%;--popover:217.2 32.6% 17.5%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222.2 47.4% 11.2%;--secondary:215.3 25% 26.7%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:217.2 32.6% 17.5%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:217.2 32.6% 17.5%;--slate-100:215.3 25% 26.7%;--slate-200:215.3 19.3% 34.5%;--slate-300:215.4 16.3% 46.9%;--slate-400:215 20.2% 65.1%;--slate-500:212.7 26.8% 83.9%;--slate-600:214.3 31.8% 91.4%;--slate-700:210 40% 96.1%;--slate-800:210 40% 98%;--slate-900:0 0% 100%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=midnight]{--background:222 47% 7%;--foreground:210 40% 98%;--card:218 36% 13%;--card-foreground:210 40% 98%;--popover:218 36% 13%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222 47% 7%;--secondary:217.2 32.6% 17.5%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:218 36% 13%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:218 36% 13%;--slate-100:217.2 32.6% 17.5%;--slate-200:215.3 25% 26.7%;--slate-300:215.3 19.3% 34.5%;--slate-400:215.4 16.3% 46.9%;--slate-500:215 20.2% 65.1%;--slate-600:212.7 26.8% 83.9%;--slate-700:214.3 31.8% 91.4%;--slate-800:210 40% 96.1%;--slate-900:210 40% 98%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=coffee]{--background:40 17% 99%;--foreground:30 25% 10%;--card:40 23% 95%;--card-foreground:30 25% 10%;--popover:40 23% 95%;--popover-foreground:30 25% 10%;--primary:37.7 92.1% 38%;--primary-foreground:40 17% 99%;--secondary:40 19% 90%;--secondary-foreground:30 25% 10%;--muted:40 19% 90%;--muted-foreground:30 10% 46%;--accent:40 21% 94%;--accent-foreground:37.7 92.1% 38%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:40 17% 99%;--border:40 17% 80%;--input:40 17% 80%;--ring:37.7 92.1% 38%;--slate-50:40 21% 94%;--slate-100:40 19% 90%;--slate-200:40 17% 80%;--slate-300:40 13% 68%;--slate-400:40 9% 56%;--slate-500:30 10% 46%;--slate-600:30 11% 38%;--slate-700:30 14% 31%;--slate-800:30 18% 24%;--slate-900:30 23% 14%;--slate-950:30 25% 10%}.tasks-timeline-app button,.tasks-timeline-app input[type=text],.tasks-timeline-app input[type=search],.tasks-timeline-app input[type=number],.tasks-timeline-app input[type=date],.tasks-timeline-app input[type=datetime-local]{box-shadow:none;color:inherit;appearance:none;background-color:#0000;background-image:none;border:1px solid #0000;margin:0;padding:0;font-family:inherit}.tasks-timeline-app{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:var(--font-sans);-webkit-font-smoothing:antialiased;scrollbar-gutter:stable;box-sizing:border-box;transition:background-color .3s,color .3s}.tasks-timeline-app *,.tasks-timeline-app :before,.tasks-timeline-app :after{box-sizing:inherit;transition-property:background-color,border-color,color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tasks-timeline-app ::-webkit-scrollbar{width:10px;height:10px}.tasks-timeline-app ::-webkit-scrollbar-track{background:hsl(var(--muted)/.2);border-radius:6px;margin:2px}.tasks-timeline-app ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.4);border:2px solid hsl(var(--background));border-radius:6px;transition:all .2s}.tasks-timeline-app ::-webkit-scrollbar-thumb:hover{background:hsl(var(--primary)/.6);border-color:hsl(var(--muted)/.3)}.tasks-timeline-app ::-webkit-scrollbar-thumb:active{background:hsl(var(--primary)/.8)}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar{display:none}.tasks-timeline-app .no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`,G0e=()=>S.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[S.jsxs("section",{className:"text-center space-y-3 pt-4",children:[S.jsx("div",{className:"w-16 h-16 bg-slate-900 text-white rounded-2xl mx-auto flex items-center justify-center shadow-lg shadow-slate-200 dark:shadow-slate-950",children:S.jsx(Je,{name:"CheckSquare",size:32})}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:"Tasks Timeline View"}),S.jsxs("p",{className:"text-xs text-slate-500 font-mono",children:["v","0.0.10"," • Built at ",void 0]})]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 max-w-sm mx-auto leading-relaxed",children:"A high-fidelity, timeline-based task management tool designed for focus, clarity, and AI-assisted productivity."})]}),S.jsxs("section",{className:"space-y-3",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Connect & Contribute"}),S.jsx("div",{className:"grid grid-cols-1 gap-2",children:S.jsxs("a",{href:"https://github.com/Leonezz/tasks-timeline-components",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 rounded-xl border border-slate-200 bg-white hover:bg-slate-50 dark:bg-slate-900 dark:border-slate-800 dark:hover:bg-slate-800 transition-colors group",children:[S.jsx("div",{className:"bg-slate-100 dark:bg-slate-800 p-2 rounded-lg group-hover:scale-105 transition-transform text-slate-700 dark:text-slate-300",children:S.jsx(Je,{name:"Github",size:20})}),S.jsxs("div",{className:"flex-1",children:[S.jsx("div",{className:"text-sm font-bold text-slate-800 dark:text-slate-200",children:"GitHub Repository"}),S.jsx("div",{className:"text-xs text-slate-500",children:"View source code, report issues, or contribute."})]}),S.jsx(Je,{name:"ExternalLink",size:14,className:"text-slate-400 group-hover:text-blue-500 transition-colors"})]})})]}),S.jsxs("section",{className:"space-y-3",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Support Development"}),S.jsxs("div",{className:"rounded-xl border border-rose-100 bg-rose-50/50 dark:bg-rose-900/10 dark:border-rose-900/20 p-4 space-y-4",children:[S.jsx("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:"If you find this tool useful, consider supporting its development. Your contribution helps keep the updates coming!"}),S.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[S.jsx("a",{href:"https://buymeacoffee.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#FFDD00] text-slate-900 font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:S.jsx("img",{src:"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png",alt:"Buy Me A Coffee"})}),S.jsxs("a",{href:"https://ko-fi.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[S.jsx(Je,{name:"CoffeeIcon",size:16}),S.jsx("span",{children:"Ko-fi"})]}),S.jsxs("a",{href:"https://patreon.com/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[S.jsx(Je,{name:"Star",size:16}),S.jsx("span",{children:"Patreon"})]}),S.jsxs("a",{href:"https://www.paypal.com/paypalme/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[S.jsx(Je,{name:"Wallet2",size:16}),S.jsx("span",{children:"Paypal"})]})]})]})]}),S.jsx("div",{className:"pt-6 border-t border-slate-100 dark:border-slate-800 text-center",children:S.jsxs("p",{className:"text-[10px] text-slate-400 leading-relaxed",children:["Built with React, Tailwind, Framer Motion & Gemini AI. ",S.jsx("br",{}),"MIT License © ",new Date().getFullYear()," Chronos"]})})]}),Y0e=["general","advanced","docs","about"],Iq=({settings:t,onUpdateSettings:e,availableCategories:n,availableTags:r,onClose:o,inSeperatePage:i,inDarkMode:a,customTabs:s=[]})=>{const[c,f]=xe.useState("general"),[m,b]=xe.useState(null);xe.useEffect(()=>{s.forEach(A=>{Y0e.includes(A.id)&&Gt.warn("Settings",`CustomSettingsTab id "${A.id}" conflicts with built-in tab. Consider using a different id.`)})},[s]),xe.useEffect(()=>{if(Gt.info("Settings",`system in dark mode: ${a}, in seperate page: ${i}, onClose: ${o}`),!i||!m)return;const A=a?"midnight":"light";Gt.info("Settings","adjust to system theme: ",A),m.setAttribute("data-theme",A)},[t.theme,m,a,i,o]);const C=()=>S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"p-2 bg-slate-200 dark:bg-slate-700 rounded-lg text-slate-600 dark:text-slate-200",children:S.jsx(Je,{name:"Settings",size:18})}),S.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Settings"})]}),S.jsxs("div",{className:"flex p-1 bg-slate-100 dark:bg-slate-800 rounded-lg",children:[S.jsx("button",{onClick:()=>f("general"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="general"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"General"}),S.jsx("button",{onClick:()=>f("advanced"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="advanced"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Advanced"}),S.jsx("button",{onClick:()=>f("docs"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="docs"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Docs"}),S.jsx("button",{onClick:()=>f("about"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="about"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"About"}),s.map(A=>S.jsxs("button",{onClick:()=>f(A.id),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all flex items-center gap-1",c===A.id?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:[A.icon&&S.jsx(Je,{name:A.icon,size:12}),A.label]},A.id))]})]}),o&&S.jsx("button",{onClick:o,className:"p-2 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-full transition-colors outline-none",children:S.jsx(Je,{name:"X",size:20})})]}),S.jsxs("div",{className:"p-0 overflow-y-auto flex-1 min-h-100",children:[c==="general"&&S.jsx(v0e,{settings:t,onUpdateSettings:e,availableCategories:n}),c==="advanced"&&S.jsx(tq,{settings:t,onUpdateSettings:e,availableTags:r}),c==="docs"&&S.jsx(KX,{}),c==="about"&&S.jsx(G0e,{}),s.find(A=>A.id===c)?.content]}),S.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:S.jsxs("p",{className:"text-[10px] text-slate-400",children:["Timeline Tasks View • ","0.0.10"," at ",void 0]})})]});return i?S.jsx("div",{ref:b,className:"tasks-timeline-app",id:"tasks-timeline-app",style:{width:"100%"},children:S.jsxs(Tq.div,{children:[S.jsx("style",{children:Sq}),C()]})}):C()},Eq=({isOpen:t,onClose:e,settings:n,onUpdateSettings:r,availableTags:o,availableCategories:i,customTabs:a})=>S.jsx(sc,{children:t&&S.jsxs(S.Fragment,{children:[S.jsx(Li,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-40"}),S.jsx(Li,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},transition:{type:"spring",duration:.5},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-2xl shadow-2xl z-50 overflow-hidden border border-slate-200 dark:border-slate-800 flex flex-col max-h-[85vh] text-slate-900",children:S.jsx(Iq,{settings:n,onUpdateSettings:r,availableCategories:i,availableTags:o,onClose:e,inSeperatePage:!1,customTabs:a})})]})}),Z0e=({isOpen:t,onClose:e})=>S.jsx(sc,{children:t&&S.jsxs(S.Fragment,{children:[S.jsx(ci.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),S.jsxs(ci.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden max-h-[85vh] flex flex-col text-slate-900",children:[S.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg text-blue-600 dark:text-blue-300",children:S.jsx(Je,{name:"BookOpen",size:18})}),S.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Documentation"})]}),S.jsx("button",{onClick:e,className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:S.jsx(Je,{name:"X",size:20})})]}),S.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar",children:[S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),S.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"AlertCircle",size:14,className:"text-rose-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Clock",size:14,className:"text-blue-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Zap",size:14,className:"text-purple-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Archive",size:14,className:"text-slate-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),S.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"Mic",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),S.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"TerminalSquare",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),S.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",S.jsx("br",{}),S.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),S.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),S.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),S.jsx("span",{children:"Save task / Submit command"})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),S.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),S.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),S.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:S.jsx("p",{className:"text-[10px] text-slate-400",children:"Tasks Timeline • v0.1.2"})})]})]})}),Aq=({toast:t,onDismiss:e})=>{xe.useEffect(()=>{const i=setTimeout(()=>{e(t.id)},4e3);return()=>clearTimeout(i)},[t.id,e]);const n=()=>{switch(t.type){case"success":return"CheckCircle2";case"error":return"AlertCircle";case"info":return"Info"}},r=()=>{const i="bg-white/95 backdrop-blur-md border shadow-xl shadow-slate-200/50 [.chronos-app[data-theme='dark']_&]:bg-slate-800/95 [.chronos-app[data-theme='dark']_&]:shadow-black/20 [.chronos-app[data-theme='dark']_&]:border-slate-700/50";switch(t.type){case"success":return et(i,"border-l-4 border-l-emerald-500 border-y-emerald-100/50 border-r-emerald-100/50 [.chronos-app[data-theme='dark']_&]:border-y-emerald-500/20 [.chronos-app[data-theme='dark']_&]:border-r-emerald-500/20");case"error":return et(i,"border-l-4 border-l-rose-500 border-y-rose-100/50 border-r-rose-100/50 [.chronos-app[data-theme='dark']_&]:border-y-rose-500/20 [.chronos-app[data-theme='dark']_&]:border-r-rose-500/20");case"info":return et(i,"border-l-4 border-l-blue-500 border-y-blue-100/50 border-r-blue-100/50 [.chronos-app[data-theme='dark']_&]:border-y-blue-500/20 [.chronos-app[data-theme='dark']_&]:border-r-blue-500/20")}},o=()=>{switch(t.type){case"success":return"text-emerald-500 [.chronos-app[data-theme='dark']_&]:text-emerald-400";case"error":return"text-rose-500 [.chronos-app[data-theme='dark']_&]:text-rose-400";case"info":return"text-blue-500 [.chronos-app[data-theme='dark']_&]:text-blue-400"}};return S.jsxs(Li,{layout:!0,initial:{opacity:0,x:50,scale:.9},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.9},className:et("flex items-start gap-3 p-4 rounded-lg max-w-sm w-full pointer-events-auto text-slate-800 [.chronos-app[data-theme='dark']_&]:text-slate-100",r()),children:[S.jsx("div",{className:et("mt-0.5 shrink-0",o()),children:S.jsx(Je,{name:n(),size:18})}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("h4",{className:"text-sm font-bold leading-tight",children:t.title}),t.description&&S.jsx("p",{className:"text-xs opacity-80 mt-1 leading-snug font-medium text-slate-500 [.chronos-app[data-theme='dark']_&]:text-slate-400",children:t.description})]}),S.jsx("button",{onClick:()=>e(t.id),className:"opacity-40 hover:opacity-100 transition-opacity p-0.5 -mr-1 -mt-1",children:S.jsx(Je,{name:"X",size:14})})]})};var gc="INUMBER",l2="IOP1",c2="IOP2",u2="IOP3",ch="IVAR",j1="IVARNAME",d2="IFUNCALL",lF="IFUNDEF",Ls="IEXPR",zO="IEXPREVAL",$1="IMEMBER",cF="IENDSTATEMENT",h2="IARRAY";function Sn(t,e){this.type=t,this.value=e??0}Sn.prototype.toString=function(){switch(this.type){case gc:case l2:case c2:case u2:case ch:case j1:case cF:return this.value;case d2:return"CALL "+this.value;case lF:return"DEF "+this.value;case h2:return"ARRAY "+this.value;case $1:return"."+this.value;default:return"Invalid Instruction"}};function uF(t){return new Sn(l2,t)}function uh(t){return new Sn(c2,t)}function Lq(t){return new Sn(u2,t)}function VO(t,e,n,r,o){for(var i=[],a=[],s,c,f,m,b=0;b<t.length;b++){var C=t[b],A=C.type;if(A===gc||A===j1)Array.isArray(C.value)?i.push.apply(i,VO(C.value.map(function(P){return new Sn(gc,P)}).concat(new Sn(h2,C.value.length)),e,n,r,o)):i.push(C);else if(A===ch&&o.hasOwnProperty(C.value))C=new Sn(gc,o[C.value]),i.push(C);else if(A===c2&&i.length>1)c=i.pop(),s=i.pop(),m=n[C.value],C=new Sn(gc,m(s.value,c.value)),i.push(C);else if(A===u2&&i.length>2)f=i.pop(),c=i.pop(),s=i.pop(),C.value==="?"?i.push(s.value?c.value:f.value):(m=r[C.value],C=new Sn(gc,m(s.value,c.value,f.value)),i.push(C));else if(A===l2&&i.length>0)s=i.pop(),m=e[C.value],C=new Sn(gc,m(s.value)),i.push(C);else if(A===Ls){for(;i.length>0;)a.push(i.shift());a.push(new Sn(Ls,VO(C.value,e,n,r,o)))}else if(A===$1&&i.length>0)s=i.pop(),i.push(new Sn(gc,s.value[C.value]));else{for(;i.length>0;)a.push(i.shift());a.push(C)}}for(;i.length>0;)a.push(i.shift());return a}function Rq(t,e,n){for(var r=[],o=0;o<t.length;o++){var i=t[o],a=i.type;if(a===ch&&i.value===e)for(var s=0;s<n.tokens.length;s++){var c=n.tokens[s],f;c.type===l2?f=uF(c.value):c.type===c2?f=uh(c.value):c.type===u2?f=Lq(c.value):f=new Sn(c.type,c.value),r.push(f)}else a===Ls?r.push(new Sn(Ls,Rq(i.value,e,n))):r.push(i)}return r}function e0(t,e,n){var r=[],o,i,a,s,c,f;if(UO(t))return dh(t,n);for(var m=t.length,b=0;b<m;b++){var C=t[b],A=C.type;if(A===gc||A===j1)r.push(C.value);else if(A===c2)i=r.pop(),o=r.pop(),C.value==="and"?r.push(o?!!e0(i,e,n):!1):C.value==="or"?r.push(o?!0:!!e0(i,e,n)):C.value==="="?(s=e.binaryOps[C.value],r.push(s(o,e0(i,e,n),n))):(s=e.binaryOps[C.value],r.push(s(dh(o,n),dh(i,n))));else if(A===u2)a=r.pop(),i=r.pop(),o=r.pop(),C.value==="?"?r.push(e0(o?i:a,e,n)):(s=e.ternaryOps[C.value],r.push(s(dh(o,n),dh(i,n),dh(a,n))));else if(A===ch)if(C.value in e.functions)r.push(e.functions[C.value]);else if(C.value in e.unaryOps&&e.parser.isOperatorEnabled(C.value))r.push(e.unaryOps[C.value]);else{var P=n[C.value];if(P!==void 0)r.push(P);else throw new Error("undefined variable: "+C.value)}else if(A===l2)o=r.pop(),s=e.unaryOps[C.value],r.push(s(dh(o,n)));else if(A===d2){for(f=C.value,c=[];f-- >0;)c.unshift(dh(r.pop(),n));if(s=r.pop(),s.apply&&s.call)r.push(s.apply(void 0,c));else throw new Error(s+" is not a function")}else if(A===lF)r.push((function(){for(var _=r.pop(),V=[],B=C.value;B-- >0;)V.unshift(r.pop());var q=r.pop(),X=function(){for(var $=Object.assign({},n),Q=0,re=V.length;Q<re;Q++)$[V[Q]]=arguments[Q];return e0(_,e,$)};return Object.defineProperty(X,"name",{value:q,writable:!1}),n[q]=X,X})());else if(A===Ls)r.push(X0e(C,e));else if(A===zO)r.push(C);else if(A===$1)o=r.pop(),r.push(o[C.value]);else if(A===cF)r.pop();else if(A===h2){for(f=C.value,c=[];f-- >0;)c.unshift(r.pop());r.push(c)}else throw new Error("invalid Expression")}if(r.length>1)throw new Error("invalid Expression (parity)");return r[0]===0?0:dh(r[0],n)}function X0e(t,e,n){return UO(t)?t:{type:zO,value:function(r){return e0(t.value,e,r)}}}function UO(t){return t&&t.type===zO}function dh(t,e){return UO(t)?t.value(e):t}function BO(t,e){for(var n=[],r,o,i,a,s,c,f=0;f<t.length;f++){var m=t[f],b=m.type;if(b===gc)typeof m.value=="number"&&m.value<0?n.push("("+m.value+")"):Array.isArray(m.value)?n.push("["+m.value.map(Pq).join(", ")+"]"):n.push(Pq(m.value));else if(b===c2)o=n.pop(),r=n.pop(),a=m.value,e?a==="^"?n.push("Math.pow("+r+", "+o+")"):a==="and"?n.push("(!!"+r+" && !!"+o+")"):a==="or"?n.push("(!!"+r+" || !!"+o+")"):a==="||"?n.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+o+")))"):a==="=="?n.push("("+r+" === "+o+")"):a==="!="?n.push("("+r+" !== "+o+")"):a==="["?n.push(r+"[("+o+") | 0]"):n.push("("+r+" "+a+" "+o+")"):a==="["?n.push(r+"["+o+"]"):n.push("("+r+" "+a+" "+o+")");else if(b===u2)if(i=n.pop(),o=n.pop(),r=n.pop(),a=m.value,a==="?")n.push("("+r+" ? "+o+" : "+i+")");else throw new Error("invalid Expression");else if(b===ch||b===j1)n.push(m.value);else if(b===l2)r=n.pop(),a=m.value,a==="-"||a==="+"?n.push("("+a+r+")"):e?a==="not"?n.push("(!"+r+")"):a==="!"?n.push("fac("+r+")"):n.push(a+"("+r+")"):a==="!"?n.push("("+r+"!)"):n.push("("+a+" "+r+")");else if(b===d2){for(c=m.value,s=[];c-- >0;)s.unshift(n.pop());a=n.pop(),n.push(a+"("+s.join(", ")+")")}else if(b===lF){for(o=n.pop(),c=m.value,s=[];c-- >0;)s.unshift(n.pop());r=n.pop(),e?n.push("("+r+" = function("+s.join(", ")+") { return "+o+" })"):n.push("("+r+"("+s.join(", ")+") = "+o+")")}else if(b===$1)r=n.pop(),n.push(r+"."+m.value);else if(b===h2){for(c=m.value,s=[];c-- >0;)s.unshift(n.pop());n.push("["+s.join(", ")+"]")}else if(b===Ls)n.push("("+BO(m.value,e)+")");else if(b!==cF)throw new Error("invalid Expression")}return n.length>1&&(e?n=[n.join(",")]:n=[n.join(";")]),String(n[0])}function Pq(t){return typeof t=="string"?JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):t}function f2(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function WO(t,e,n){n=n||{};for(var r=!!n.withMembers,o=null,i=0;i<t.length;i++){var a=t[i];a.type===ch||a.type===j1?!r&&!f2(e,a.value)?e.push(a.value):(o!==null&&(f2(e,o)||e.push(o)),o=a.value):a.type===$1&&r&&o!==null?o+="."+a.value:a.type===Ls?WO(a.value,e,n):o!==null&&(f2(e,o)||e.push(o),o=null)}o!==null&&!f2(e,o)&&e.push(o)}function gu(t,e){this.tokens=t,this.parser=e,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.functions=e.functions}gu.prototype.simplify=function(t){return t=t||{},new gu(VO(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,t),this.parser)},gu.prototype.substitute=function(t,e){return e instanceof gu||(e=this.parser.parse(String(e))),new gu(Rq(this.tokens,t,e),this.parser)},gu.prototype.evaluate=function(t){return t=t||{},e0(this.tokens,this,t)},gu.prototype.toString=function(){return BO(this.tokens,!1)},gu.prototype.symbols=function(t){t=t||{};var e=[];return WO(this.tokens,e,t),e},gu.prototype.variables=function(t){t=t||{};var e=[];WO(this.tokens,e,t);var n=this.functions;return e.filter(function(r){return!(r in n)})},gu.prototype.toJSFunction=function(t,e){var n=this,r=new Function(t,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+BO(this.simplify(e).tokens,!0)+"; }");return function(){return r.apply(n,arguments)}};var hp="TEOF",Cr="TOP",dF="TNUMBER",Dq="TSTRING",hh="TPAREN",p2="TBRACKET",hF="TCOMMA",GO="TNAME",YO="TSEMICOLON";function Fq(t,e,n){this.type=t,this.value=e,this.index=n}Fq.prototype.toString=function(){return this.type+": "+this.value};function ko(t,e){this.pos=0,this.current=null,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.consts=t.consts,this.expression=e,this.savedPosition=0,this.savedCurrent=null,this.options=t.options,this.parser=t}ko.prototype.newToken=function(t,e,n){return new Fq(t,e,n??this.pos)},ko.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},ko.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},ko.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(hp,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},ko.prototype.isString=function(){var t=!1,e=this.pos,n=this.expression.charAt(e);if(n==="'"||n==='"')for(var r=this.expression.indexOf(n,e+1);r>=0&&this.pos<this.expression.length;){if(this.pos=r+1,this.expression.charAt(r-1)!=="\\"){var o=this.expression.substring(e+1,r);this.current=this.newToken(Dq,this.unescape(o),e),t=!0;break}r=this.expression.indexOf(n,r+1)}return t},ko.prototype.isParen=function(){var t=this.expression.charAt(this.pos);return t==="("||t===")"?(this.current=this.newToken(hh,t),this.pos++,!0):!1},ko.prototype.isBracket=function(){var t=this.expression.charAt(this.pos);return(t==="["||t==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(p2,t),this.pos++,!0):!1},ko.prototype.isComma=function(){var t=this.expression.charAt(this.pos);return t===","?(this.current=this.newToken(hF,","),this.pos++,!0):!1},ko.prototype.isSemicolon=function(){var t=this.expression.charAt(this.pos);return t===";"?(this.current=this.newToken(YO,";"),this.pos++,!0):!1},ko.prototype.isConst=function(){for(var t=this.pos,e=t;e<this.expression.length;e++){var n=this.expression.charAt(e);if(n.toUpperCase()===n.toLowerCase()&&(e===this.pos||n!=="_"&&n!=="."&&(n<"0"||n>"9")))break}if(e>t){var r=this.expression.substring(t,e);if(r in this.consts)return this.current=this.newToken(dF,this.consts[r]),this.pos+=r.length,!0}return!1},ko.prototype.isNamedOp=function(){for(var t=this.pos,e=t;e<this.expression.length;e++){var n=this.expression.charAt(e);if(n.toUpperCase()===n.toLowerCase()&&(e===this.pos||n!=="_"&&(n<"0"||n>"9")))break}if(e>t){var r=this.expression.substring(t,e);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(Cr,r),this.pos+=r.length,!0}return!1},ko.prototype.isName=function(){for(var t=this.pos,e=t,n=!1;e<this.expression.length;e++){var r=this.expression.charAt(e);if(r.toUpperCase()===r.toLowerCase()){if(e===this.pos&&(r==="$"||r==="_")){r==="_"&&(n=!0);continue}else if(e===this.pos||!n||r!=="_"&&(r<"0"||r>"9"))break}else n=!0}if(n){var o=this.expression.substring(t,e);return this.current=this.newToken(GO,o),this.pos+=o.length,!0}return!1},ko.prototype.isWhitespace=function(){for(var t=!1,e=this.expression.charAt(this.pos);(e===" "||e===" "||e===`
|
|
254
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},z0e=function(t,e){return _0e(t)||N0e(t,e)||O0e(t,e)||H0e()},bq=kq((function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.apply(this,arguments)}t.exports=e})),V0e=function(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},wq=function(t,e){if(t==null)return{};var n,r,o=V0e(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},U0e=xe.createContext(null);function Mq(t){var e=t.children,n=e===void 0?"":e,r=wq(t,["children"]);return typeof n!="string"&&(n=C0e.renderToString(n)),xe.createElement("template",bq({},r,{dangerouslySetInnerHTML:{__html:n}}))}function Cq(t){var e=t.root,n=t.children;return gf.createPortal(n===void 0?null:n,e)}function B0e(t){var e=xe.forwardRef((function(n,r){var o,i,a=n.mode,s=a===void 0?"open":a,c=n.delegatesFocus,f=c!==void 0&&c,m=n.styleSheets,b=m===void 0?[]:m,C=n.ssr,A=C!==void 0&&C,P=n.children,_=wq(n,["mode","delegatesFocus","styleSheets","ssr","children"]),V=(i=xe.useRef((o=r)&&o.current),xe.useEffect((function(){o&&(o.current=i.current)}),[o]),i),B=xe.useState(null),q=z0e(B,2),X=q[0],$=q[1],Q="node_".concat(s).concat(f);return xe.useLayoutEffect((function(){if(V.current)try{if(typeof r=="function"&&r(V.current),A){var re=V.current.shadowRoot;return void $(re)}var he=V.current.attachShadow({mode:s,delegatesFocus:f});b.length>0&&(he.adoptedStyleSheets=b),$(he)}catch(fe){(function(me){var Ee=me.error,Xe=me.styleSheets,Oe=me.root;if(Ee.name==="NotSupportedError")Xe.length>0&&(Oe.adoptedStyleSheets=Xe);else throw Ee})({error:fe,styleSheets:b,root:X})}}),[r,V,b]),xe.createElement(xe.Fragment,null,xe.createElement(t.tag,bq({key:Q,ref:V},_),(X||A)&&xe.createElement(U0e.Provider,{value:X},A?xe.createElement(Mq,{shadowroot:s,shadowrootmode:s},t.render({root:X,ssr:A,children:P})):xe.createElement(Cq,{root:X},t.render({root:X,ssr:A,children:P})))))}));return e.propTypes={mode:yu.oneOf(["open","closed"]),delegatesFocus:yu.bool,styleSheets:yu.arrayOf(yu.instanceOf(globalThis.CSSStyleSheet)),ssr:yu.bool,children:yu.node},e}Mq.propTypes={children:yu.oneOfType([yu.string,yu.node])},Cq.propTypes={root:yu.object.isRequired,children:yu.node};var HO=new Map;function W0e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,o){var i=F0e(o,{separator:"-"}),a="".concat(e,"-").concat(i);return HO.has(a)||HO.set(a,B0e({tag:i,render:n})),HO.get(a)}})}var Tq=W0e();const Sq=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-x-reverse:0}}}@layer tasks-timeline-app{@layer theme{:root,:host{--font-sans:Inter,sans-serif;--font-mono:"JetBrains Mono",monospace;--color-amber-50:hsl(var(--amber-50));--color-amber-100:hsl(var(--amber-100));--color-amber-200:hsl(var(--amber-200));--color-amber-500:hsl(var(--amber-500));--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:hsl(var(--amber-700));--color-emerald-50:hsl(var(--emerald-50));--color-emerald-100:hsl(var(--emerald-100));--color-emerald-200:hsl(var(--emerald-200));--color-emerald-400:hsl(var(--emerald-400));--color-emerald-500:hsl(var(--emerald-500));--color-emerald-600:hsl(var(--emerald-600));--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:hsl(var(--blue-50));--color-blue-100:hsl(var(--blue-100));--color-blue-200:hsl(var(--blue-200));--color-blue-300:hsl(var(--blue-300));--color-blue-400:hsl(var(--blue-400));--color-blue-500:hsl(var(--blue-500));--color-blue-600:hsl(var(--blue-600));--color-blue-700:oklch(48.8% .243 264.376);--color-blue-900:oklch(37.9% .146 265.522);--color-purple-50:hsl(var(--purple-50));--color-purple-100:hsl(var(--purple-100));--color-purple-200:hsl(var(--purple-200));--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:hsl(var(--purple-400));--color-purple-500:hsl(var(--purple-500));--color-purple-600:hsl(var(--purple-600));--color-purple-700:oklch(49.6% .265 301.924);--color-purple-900:oklch(38.1% .176 304.987);--color-rose-50:hsl(var(--rose-50));--color-rose-100:hsl(var(--rose-100));--color-rose-200:hsl(var(--rose-200));--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:hsl(var(--rose-500));--color-rose-600:hsl(var(--rose-600));--color-rose-700:hsl(var(--rose-700));--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-slate-50:hsl(var(--slate-50));--color-slate-100:hsl(var(--slate-100));--color-slate-200:hsl(var(--slate-200));--color-slate-300:hsl(var(--slate-300));--color-slate-400:hsl(var(--slate-400));--color-slate-500:hsl(var(--slate-500));--color-slate-600:hsl(var(--slate-600));--color-slate-700:hsl(var(--slate-700));--color-slate-800:hsl(var(--slate-800));--color-slate-900:hsl(var(--slate-900));--color-slate-950:hsl(var(--slate-950));--color-gray-50:oklch(98.5% .002 247.839);--color-black:#000;--color-white:hsl(var(--background));--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:var(--radius);--color-background:hsl(var(--background));--color-foreground:hsl(var(--foreground));--color-popover:hsl(var(--popover));--color-popover-foreground:hsl(var(--popover-foreground));--color-primary:hsl(var(--primary));--color-primary-foreground:hsl(var(--primary-foreground));--color-secondary:hsl(var(--secondary));--color-secondary-foreground:hsl(var(--secondary-foreground));--color-muted:hsl(var(--muted));--color-muted-foreground:hsl(var(--muted-foreground));--color-accent:hsl(var(--accent));--color-accent-foreground:hsl(var(--accent-foreground));--color-destructive:hsl(var(--destructive));--color-destructive-foreground:hsl(var(--destructive-foreground));--color-border:hsl(var(--border));--color-input:hsl(var(--input));--color-ring:hsl(var(--ring));--color-paper:hsl(var(--card))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-2\\.5{top:calc(var(--spacing)*2.5)}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-5{top:calc(var(--spacing)*5)}.top-\\[50\\%\\]{top:50%}.right-1{right:calc(var(--spacing)*1)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-6{right:calc(var(--spacing)*6)}.right-8{right:calc(var(--spacing)*8)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-\\[50\\%\\]{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-9999{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.-mt-1{margin-top:calc(var(--spacing)*-1)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.-mr-1{margin-right:calc(var(--spacing)*-1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-6{height:calc(var(--spacing)*6)}.h-6\\.5{height:calc(var(--spacing)*6.5)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-9\\.5{height:calc(var(--spacing)*9.5)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-16{height:calc(var(--spacing)*16)}.h-28{height:calc(var(--spacing)*28)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:calc(var(--spacing)*40)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[85vh\\]{max-height:85vh}.max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-5\\.5{min-height:calc(var(--spacing)*5.5)}.min-h-20{min-height:calc(var(--spacing)*20)}.min-h-100{min-height:calc(var(--spacing)*100)}.min-h-screen{min-height:100vh}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-44{width:calc(var(--spacing)*44)}.w-48{width:calc(var(--spacing)*48)}.w-56{width:calc(var(--spacing)*56)}.w-72{width:calc(var(--spacing)*72)}.w-\\[280px\\]{width:280px}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-4{min-width:calc(var(--spacing)*4)}.min-w-50{min-width:calc(var(--spacing)*50)}.min-w-80{min-width:calc(var(--spacing)*80)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[250px\\]{min-width:250px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:--radix-popover-content-transform-origin}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize-none{resize:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-start\\!{justify-content:flex-start!important}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:var(--radius)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#e8e4db\\]{border-color:#e8e4db}.border-amber-100\\/50{border-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-amber-100\\/50{border-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-100\\/50{border-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-blue-100\\/50{border-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-border{border-color:var(--color-border)}.border-emerald-100\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-100\\/50{border-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-200\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-200\\/50{border-color:color-mix(in oklab,var(--color-emerald-200)50%,transparent)}}.border-input{border-color:var(--color-input)}.border-purple-100{border-color:var(--color-purple-100)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-purple-400{border-color:var(--color-purple-400)}.border-rose-100{border-color:var(--color-rose-100)}.border-rose-100\\/50{border-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-100\\/50{border-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-rose-200{border-color:var(--color-rose-200)}.border-rose-200\\/50{border-color:color-mix(in srgb,hsl(var(--rose-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-200\\/50{border-color:color-mix(in oklab,var(--color-rose-200)50%,transparent)}}.border-rose-400{border-color:var(--color-rose-400)}.border-slate-50{border-color:var(--color-slate-50)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-100\\/50{border-color:color-mix(in srgb,hsl(var(--slate-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/50{border-color:color-mix(in oklab,var(--color-slate-100)50%,transparent)}}.border-slate-100\\/80{border-color:color-mix(in srgb,hsl(var(--slate-100))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/80{border-color:color-mix(in oklab,var(--color-slate-100)80%,transparent)}}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/20{border-color:color-mix(in srgb,hsl(var(--slate-200))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/20{border-color:color-mix(in oklab,var(--color-slate-200)20%,transparent)}}.border-slate-200\\/50{border-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/50{border-color:color-mix(in oklab,var(--color-slate-200)50%,transparent)}}.border-slate-200\\/60{border-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/60{border-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-800{border-color:var(--color-slate-800)}.border-transparent{border-color:#0000}.border-y-blue-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-blue-100\\/50{border-block-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-y-emerald-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-emerald-100\\/50{border-block-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-y-rose-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-rose-100\\/50{border-block-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-r-blue-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-blue-100\\/50{border-right-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-r-emerald-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-emerald-100\\/50{border-right-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-r-rose-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-rose-100\\/50{border-right-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-l-blue-500{border-left-color:var(--color-blue-500)}.border-l-emerald-500{border-left-color:var(--color-emerald-500)}.border-l-rose-500{border-left-color:var(--color-rose-500)}.bg-\\[\\#0B1120\\]{background-color:#0b1120}.bg-\\[\\#1e1e1e\\]{background-color:#1e1e1e}.bg-\\[\\#29abe0\\]{background-color:#29abe0}.bg-\\[\\#FFDD00\\]{background-color:#fd0}.bg-\\[\\#f5f2eb\\]{background-color:#f5f2eb}.bg-accent{background-color:var(--color-accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\\/80{background-color:color-mix(in srgb,hsl(var(--amber-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\\/80{background-color:color-mix(in oklab,var(--color-amber-50)80%,transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--color-background)}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/30{background-color:color-mix(in srgb,hsl(var(--blue-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/30{background-color:color-mix(in oklab,var(--color-blue-50)30%,transparent)}}.bg-blue-50\\/50{background-color:color-mix(in srgb,hsl(var(--blue-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/50{background-color:color-mix(in oklab,var(--color-blue-50)50%,transparent)}}.bg-blue-50\\/80{background-color:color-mix(in srgb,hsl(var(--blue-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/80{background-color:color-mix(in oklab,var(--color-blue-50)80%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-destructive{background-color:var(--color-destructive)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-50\\/80{background-color:color-mix(in srgb,hsl(var(--emerald-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/80{background-color:color-mix(in oklab,var(--color-emerald-50)80%,transparent)}}.bg-emerald-100\\/50{background-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-100\\/50{background-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-muted{background-color:var(--color-muted)}.bg-paper{background-color:var(--color-paper)}.bg-paper\\/50{background-color:color-mix(in srgb,hsl(var(--card))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/50{background-color:color-mix(in oklab,var(--color-paper)50%,transparent)}}.bg-paper\\/95{background-color:color-mix(in srgb,hsl(var(--card))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/95{background-color:color-mix(in oklab,var(--color-paper)95%,transparent)}}.bg-popover{background-color:var(--color-popover)}.bg-primary{background-color:var(--color-primary)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-50\\/50{background-color:color-mix(in srgb,hsl(var(--rose-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/50{background-color:color-mix(in oklab,var(--color-rose-50)50%,transparent)}}.bg-rose-50\\/60{background-color:color-mix(in srgb,hsl(var(--rose-50))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/60{background-color:color-mix(in oklab,var(--color-rose-50)60%,transparent)}}.bg-rose-50\\/80{background-color:color-mix(in srgb,hsl(var(--rose-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/80{background-color:color-mix(in oklab,var(--color-rose-50)80%,transparent)}}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-100\\/50{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-100\\/50{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.bg-rose-300{background-color:var(--color-rose-300)}.bg-rose-500{background-color:var(--color-rose-500)}.bg-secondary{background-color:var(--color-secondary)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\\/30{background-color:color-mix(in srgb,hsl(var(--slate-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/30{background-color:color-mix(in oklab,var(--color-slate-50)30%,transparent)}}.bg-slate-50\\/50{background-color:color-mix(in srgb,hsl(var(--slate-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/50{background-color:color-mix(in oklab,var(--color-slate-50)50%,transparent)}}.bg-slate-50\\/80{background-color:color-mix(in srgb,hsl(var(--slate-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/80{background-color:color-mix(in oklab,var(--color-slate-50)80%,transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-200\\/60{background-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-200\\/60{background-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/40{background-color:color-mix(in srgb,hsl(var(--slate-900))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/50{background-color:color-mix(in srgb,hsl(var(--background))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/50{background-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.bg-white\\/95{background-color:color-mix(in srgb,hsl(var(--background))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.fill-current{fill:currentColor}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-0\\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-10{padding-block:calc(var(--spacing)*10)}.pt-0\\.5{padding-top:calc(var(--spacing)*.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-16{padding-right:calc(var(--spacing)*16)}.pr-24{padding-right:calc(var(--spacing)*24)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-1\\.5{padding-bottom:calc(var(--spacing)*1.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-10{padding-bottom:calc(var(--spacing)*10)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-left\\!{text-align:left!important}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[15px\\]{font-size:15px}.text-\\[length\\:inherit\\]{font-size:inherit}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-accent-foreground{color:var(--color-accent-foreground)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-600\\!{color:var(--color-blue-600)!important}.text-blue-700{color:var(--color-blue-700)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground{color:var(--color-foreground)}.text-muted-foreground{color:var(--color-muted-foreground)}.text-muted-foreground\\/40{color:color-mix(in srgb,hsl(var(--muted-foreground))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/40{color:color-mix(in oklab,var(--color-muted-foreground)40%,transparent)}}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-purple-300{color:var(--color-purple-300)}.text-purple-400{color:var(--color-purple-400)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-900{color:var(--color-purple-900)}.text-rose-400{color:var(--color-rose-400)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-600\\!{color:var(--color-rose-600)!important}.text-rose-700{color:var(--color-rose-700)}.text-rose-900{color:var(--color-rose-900)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sky-500{color:var(--color-sky-500)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-slate-300{-webkit-text-decoration-color:var(--color-slate-300);text-decoration-color:var(--color-slate-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-blue-200{--tw-shadow-color:hsl(var(--blue-200))}@supports (color:color-mix(in lab,red,red)){.shadow-blue-200{--tw-shadow-color:color-mix(in oklab,var(--color-blue-200)var(--tw-shadow-alpha),transparent)}}.shadow-emerald-100{--tw-shadow-color:hsl(var(--emerald-100))}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-100{--tw-shadow-color:color-mix(in oklab,var(--color-emerald-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100{--tw-shadow-color:hsl(var(--rose-100))}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100{--tw-shadow-color:color-mix(in oklab,var(--color-rose-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-rose-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-slate-100{--tw-shadow-color:hsl(var(--slate-100))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-100{--tw-shadow-color:color-mix(in oklab,var(--color-slate-100)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200{--tw-shadow-color:hsl(var(--slate-200))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200{--tw-shadow-color:color-mix(in oklab,var(--color-slate-200)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-slate-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.ring-blue-200{--tw-ring-color:var(--color-blue-200)}.ring-primary\\/30{--tw-ring-color:color-mix(in srgb,hsl(var(--primary))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.ring-primary\\/30{--tw-ring-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.ring-purple-200{--tw-ring-color:var(--color-purple-200)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-first\\:hidden:is(:where(.group):first-child *),.group-last\\:hidden:is(:where(.group):last-child *){display:none}@media(hover:hover){.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}.group-hover\\:text-blue-600:is(:where(.group):hover *){color:var(--color-blue-600)}.group-hover\\:text-slate-400:is(:where(.group):hover *){color:var(--color-slate-400)}.group-hover\\:text-slate-700:is(:where(.group):hover *){color:var(--color-slate-700)}.group-hover\\:text-slate-900:is(:where(.group):hover *){color:var(--color-slate-900)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-\\[\\.toast\\]\\:bg-muted:is(:where(.group).toast *){background-color:var(--color-muted)}.group-\\[\\.toast\\]\\:bg-primary:is(:where(.group).toast *){background-color:var(--color-primary)}.group-\\[\\.toast\\]\\:text-muted-foreground:is(:where(.group).toast *){color:var(--color-muted-foreground)}.group-\\[\\.toast\\]\\:text-primary-foreground:is(:where(.group).toast *){color:var(--color-primary-foreground)}.group-\\[\\.toaster\\]\\:border-border:is(:where(.group).toaster *){border-color:var(--color-border)}.group-\\[\\.toaster\\]\\:bg-background:is(:where(.group).toaster *){background-color:var(--color-background)}.group-\\[\\.toaster\\]\\:text-foreground:is(:where(.group).toaster *){color:var(--color-foreground)}.group-\\[\\.toaster\\]\\:shadow-lg:is(:where(.group).toaster *){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.selection\\:bg-rose-100 ::selection{background-color:var(--color-rose-100)}.selection\\:bg-rose-100::selection{background-color:var(--color-rose-100)}.selection\\:text-rose-900 ::selection{color:var(--color-rose-900)}.selection\\:text-rose-900::selection{color:var(--color-rose-900)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.placeholder\\:text-purple-300::placeholder{color:var(--color-purple-300)}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}@media(hover:hover){.hover\\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\\:border-rose-100:hover{border-color:var(--color-rose-100)}.hover\\:border-slate-200:hover{border-color:var(--color-slate-200)}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-accent:hover{background-color:var(--color-accent)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in srgb,hsl(var(--destructive))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--color-destructive)80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in srgb,hsl(var(--destructive))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--color-destructive)90%,transparent)}}.hover\\:bg-primary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--primary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--color-primary)80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:color-mix(in srgb,hsl(var(--primary))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--color-primary)90%,transparent)}}.hover\\:bg-purple-100:hover{background-color:var(--color-purple-100)}.hover\\:bg-rose-50:hover{background-color:var(--color-rose-50)}.hover\\:bg-rose-100:hover{background-color:var(--color-rose-100)}.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--secondary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--color-secondary)80%,transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\\:text-blue-500:hover{color:var(--color-blue-500)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-foreground:hover{color:var(--color-foreground)}.hover\\:text-primary-foreground:hover{color:var(--color-primary-foreground)}.hover\\:text-rose-500:hover{color:var(--color-rose-500)}.hover\\:text-rose-600:hover{color:var(--color-rose-600)}.hover\\:text-rose-800:hover{color:var(--color-rose-800)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-slate-700:hover{color:var(--color-slate-700)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-100:hover{opacity:1}.hover\\:brightness-95:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:border-purple-400:focus{border-color:var(--color-purple-400)}.focus\\:border-purple-500:focus{border-color:var(--color-purple-500)}.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:border-ring:focus{border-color:var(--color-ring)}.focus\\:border-slate-400:focus{border-color:var(--color-slate-400)}.focus\\:bg-accent:focus{background-color:var(--color-accent)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-300:focus{--tw-ring-color:var(--color-blue-300)}.focus\\:ring-blue-400:focus{--tw-ring-color:var(--color-blue-400)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-400)20%,transparent)}}.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\\:ring-slate-200:focus{--tw-ring-color:var(--color-slate-200)}.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--slate-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-slate-400)20%,transparent)}}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--color-accent)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}@media(min-width:40rem){.sm\\:inline-block{display:inline-block}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:calc(var(--spacing)*4)}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius-lg)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:48rem){.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(prefers-color-scheme:dark){.dark\\:border-rose-900\\/20{border-color:#8b083633}@supports (color:color-mix(in lab,red,red)){.dark\\:border-rose-900\\/20{border-color:color-mix(in oklab,var(--color-rose-900)20%,transparent)}}.dark\\:border-slate-500{border-color:var(--color-slate-500)}.dark\\:border-slate-600{border-color:var(--color-slate-600)}.dark\\:border-slate-700{border-color:var(--color-slate-700)}.dark\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.dark\\:border-slate-800{border-color:var(--color-slate-800)}.dark\\:bg-blue-900\\/30{background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-900\\/30{background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:bg-rose-900\\/10{background-color:#8b08361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-rose-900\\/10{background-color:color-mix(in oklab,var(--color-rose-900)10%,transparent)}}.dark\\:bg-slate-600{background-color:var(--color-slate-600)}.dark\\:bg-slate-700{background-color:var(--color-slate-700)}.dark\\:bg-slate-800{background-color:var(--color-slate-800)}.dark\\:bg-slate-800\\/30{background-color:color-mix(in srgb,hsl(var(--slate-800))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/30{background-color:color-mix(in oklab,var(--color-slate-800)30%,transparent)}}.dark\\:bg-slate-800\\/50{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/50{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:bg-slate-900{background-color:var(--color-slate-900)}.dark\\:bg-slate-900\\/10{background-color:color-mix(in srgb,hsl(var(--slate-900))10%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/10{background-color:color-mix(in oklab,var(--color-slate-900)10%,transparent)}}.dark\\:bg-slate-900\\/20{background-color:color-mix(in srgb,hsl(var(--slate-900))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/20{background-color:color-mix(in oklab,var(--color-slate-900)20%,transparent)}}.dark\\:text-blue-100{color:var(--color-blue-100)}.dark\\:text-blue-300{color:var(--color-blue-300)}.dark\\:text-slate-100{color:var(--color-slate-100)}.dark\\:text-slate-200{color:var(--color-slate-200)}.dark\\:text-slate-300{color:var(--color-slate-300)}.dark\\:text-slate-400{color:var(--color-slate-400)}.dark\\:shadow-slate-950{--tw-shadow-color:hsl(var(--slate-950))}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-slate-950{--tw-shadow-color:color-mix(in oklab,var(--color-slate-950)var(--tw-shadow-alpha),transparent)}}.dark\\:ring-blue-900{--tw-ring-color:var(--color-blue-900)}@media(hover:hover){.dark\\:hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.dark\\:hover\\:bg-slate-800:hover{background-color:var(--color-slate-800)}.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:hover\\:text-slate-200:hover{color:var(--color-slate-200)}.dark\\:hover\\:text-slate-300:hover{color:var(--color-slate-300)}}}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in srgb,hsl(var(--slate-800))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in oklab,var(--color-slate-800)95%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-blue-400{color:var(--color-blue-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-emerald-400{color:var(--color-emerald-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-rose-400{color:var(--color-rose-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-100{color:var(--color-slate-100)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-400{color:var(--color-slate-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:#0003}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-black)20%,transparent)var(--tw-shadow-alpha),transparent)}}}}:root{--background:0 0% 100%;--foreground:222.2 47.4% 11.2%;--card:0 0% 98.8%;--card-foreground:222.2 47.4% 11.2%;--popover:0 0% 98.8%;--popover-foreground:222.2 47.4% 11.2%;--primary:217.2 91.2% 59.8%;--primary-foreground:0 0% 100%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:214.3 100% 97.1%;--accent-foreground:217.2 91.2% 59.8%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:0 0% 100%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:217.2 91.2% 59.8%;--radius:.5rem;--slate-50:210 40% 98%;--slate-100:210 40% 96.1%;--slate-200:214.3 31.8% 91.4%;--slate-300:212.7 26.8% 83.9%;--slate-400:215 20.2% 65.1%;--slate-500:215.4 16.3% 46.9%;--slate-600:215.3 19.3% 34.5%;--slate-700:215.3 25% 26.7%;--slate-800:217.2 32.6% 17.5%;--slate-900:222.2 47.4% 11.2%;--slate-950:222.2 84% 4.9%;--rose-50:355.7 100% 97.3%;--rose-100:355.6 100% 94.7%;--rose-200:352.7 96.1% 90%;--rose-500:349.7 89.2% 60.2%;--rose-600:346.8 77.2% 49.8%;--rose-700:345.3 82.7% 40.8%;--emerald-50:151.8 81% 95.9%;--emerald-100:149.3 80.4% 90%;--emerald-200:152.4 76% 80.4%;--emerald-400:160.1 84.1% 52.5%;--emerald-500:160.1 84.1% 39.4%;--emerald-600:161.4 93.5% 30.4%;--blue-50:213.8 100% 96.9%;--blue-100:214.3 94.6% 92.7%;--blue-200:213.3 96.9% 87.3%;--blue-300:211.7 96.4% 78.4%;--blue-400:213.1 93.9% 67.8%;--blue-500:217.2 91.2% 59.8%;--blue-600:221.2 83.2% 53.3%;--amber-50:48 100% 96.1%;--amber-100:48 96.5% 88.8%;--amber-200:48 96.6% 76.7%;--amber-500:43 96.4% 56.3%;--amber-700:37.7 92.1% 38%;--purple-50:270 100% 98%;--purple-100:269 100% 95.5%;--purple-200:268.7 100% 91.8%;--purple-400:270.4 95.2% 75.3%;--purple-500:270.7 91% 65.1%;--purple-600:271.5 81.3% 55.9%}.tasks-timeline-app[data-theme=dark]{--background:222.2 47.4% 11.2%;--foreground:210 40% 98%;--card:217.2 32.6% 17.5%;--card-foreground:210 40% 98%;--popover:217.2 32.6% 17.5%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222.2 47.4% 11.2%;--secondary:215.3 25% 26.7%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:217.2 32.6% 17.5%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:217.2 32.6% 17.5%;--slate-100:215.3 25% 26.7%;--slate-200:215.3 19.3% 34.5%;--slate-300:215.4 16.3% 46.9%;--slate-400:215 20.2% 65.1%;--slate-500:212.7 26.8% 83.9%;--slate-600:214.3 31.8% 91.4%;--slate-700:210 40% 96.1%;--slate-800:210 40% 98%;--slate-900:0 0% 100%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=midnight]{--background:222 47% 7%;--foreground:210 40% 98%;--card:218 36% 13%;--card-foreground:210 40% 98%;--popover:218 36% 13%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222 47% 7%;--secondary:217.2 32.6% 17.5%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:218 36% 13%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:218 36% 13%;--slate-100:217.2 32.6% 17.5%;--slate-200:215.3 25% 26.7%;--slate-300:215.3 19.3% 34.5%;--slate-400:215.4 16.3% 46.9%;--slate-500:215 20.2% 65.1%;--slate-600:212.7 26.8% 83.9%;--slate-700:214.3 31.8% 91.4%;--slate-800:210 40% 96.1%;--slate-900:210 40% 98%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=coffee]{--background:40 17% 99%;--foreground:30 25% 10%;--card:40 23% 95%;--card-foreground:30 25% 10%;--popover:40 23% 95%;--popover-foreground:30 25% 10%;--primary:37.7 92.1% 38%;--primary-foreground:40 17% 99%;--secondary:40 19% 90%;--secondary-foreground:30 25% 10%;--muted:40 19% 90%;--muted-foreground:30 10% 46%;--accent:40 21% 94%;--accent-foreground:37.7 92.1% 38%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:40 17% 99%;--border:40 17% 80%;--input:40 17% 80%;--ring:37.7 92.1% 38%;--slate-50:40 21% 94%;--slate-100:40 19% 90%;--slate-200:40 17% 80%;--slate-300:40 13% 68%;--slate-400:40 9% 56%;--slate-500:30 10% 46%;--slate-600:30 11% 38%;--slate-700:30 14% 31%;--slate-800:30 18% 24%;--slate-900:30 23% 14%;--slate-950:30 25% 10%}.tasks-timeline-app button,.tasks-timeline-app input[type=text],.tasks-timeline-app input[type=search],.tasks-timeline-app input[type=number],.tasks-timeline-app input[type=date],.tasks-timeline-app input[type=datetime-local]{box-shadow:none;color:inherit;appearance:none;background-color:#0000;background-image:none;border:1px solid #0000;margin:0;padding:0;font-family:inherit}.tasks-timeline-app{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:var(--font-sans);-webkit-font-smoothing:antialiased;scrollbar-gutter:stable;box-sizing:border-box;transition:background-color .3s,color .3s}.tasks-timeline-app *,.tasks-timeline-app :before,.tasks-timeline-app :after{box-sizing:inherit;transition-property:background-color,border-color,color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tasks-timeline-app ::-webkit-scrollbar{width:10px;height:10px}.tasks-timeline-app ::-webkit-scrollbar-track{background:hsl(var(--muted)/.2);border-radius:6px;margin:2px}.tasks-timeline-app ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.4);border:2px solid hsl(var(--background));border-radius:6px;transition:all .2s}.tasks-timeline-app ::-webkit-scrollbar-thumb:hover{background:hsl(var(--primary)/.6);border-color:hsl(var(--muted)/.3)}.tasks-timeline-app ::-webkit-scrollbar-thumb:active{background:hsl(var(--primary)/.8)}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar{display:none}.tasks-timeline-app .no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`,G0e=()=>S.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[S.jsxs("section",{className:"text-center space-y-3 pt-4",children:[S.jsx("div",{className:"w-16 h-16 bg-slate-900 text-white rounded-2xl mx-auto flex items-center justify-center shadow-lg shadow-slate-200 dark:shadow-slate-950",children:S.jsx(Je,{name:"CheckSquare",size:32})}),S.jsxs("div",{className:"space-y-1",children:[S.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:"Tasks Timeline View"}),S.jsxs("p",{className:"text-xs text-slate-500 font-mono",children:["v","0.0.11"," • Built at ",void 0]})]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 max-w-sm mx-auto leading-relaxed",children:"A high-fidelity, timeline-based task management tool designed for focus, clarity, and AI-assisted productivity."})]}),S.jsxs("section",{className:"space-y-3",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Connect & Contribute"}),S.jsx("div",{className:"grid grid-cols-1 gap-2",children:S.jsxs("a",{href:"https://github.com/Leonezz/tasks-timeline-components",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 rounded-xl border border-slate-200 bg-white hover:bg-slate-50 dark:bg-slate-900 dark:border-slate-800 dark:hover:bg-slate-800 transition-colors group",children:[S.jsx("div",{className:"bg-slate-100 dark:bg-slate-800 p-2 rounded-lg group-hover:scale-105 transition-transform text-slate-700 dark:text-slate-300",children:S.jsx(Je,{name:"Github",size:20})}),S.jsxs("div",{className:"flex-1",children:[S.jsx("div",{className:"text-sm font-bold text-slate-800 dark:text-slate-200",children:"GitHub Repository"}),S.jsx("div",{className:"text-xs text-slate-500",children:"View source code, report issues, or contribute."})]}),S.jsx(Je,{name:"ExternalLink",size:14,className:"text-slate-400 group-hover:text-blue-500 transition-colors"})]})})]}),S.jsxs("section",{className:"space-y-3",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Support Development"}),S.jsxs("div",{className:"rounded-xl border border-rose-100 bg-rose-50/50 dark:bg-rose-900/10 dark:border-rose-900/20 p-4 space-y-4",children:[S.jsx("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:"If you find this tool useful, consider supporting its development. Your contribution helps keep the updates coming!"}),S.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[S.jsx("a",{href:"https://buymeacoffee.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#FFDD00] text-slate-900 font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:S.jsx("img",{src:"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png",alt:"Buy Me A Coffee"})}),S.jsxs("a",{href:"https://ko-fi.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[S.jsx(Je,{name:"CoffeeIcon",size:16}),S.jsx("span",{children:"Ko-fi"})]}),S.jsxs("a",{href:"https://patreon.com/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[S.jsx(Je,{name:"Star",size:16}),S.jsx("span",{children:"Patreon"})]}),S.jsxs("a",{href:"https://www.paypal.com/paypalme/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[S.jsx(Je,{name:"Wallet2",size:16}),S.jsx("span",{children:"Paypal"})]})]})]})]}),S.jsx("div",{className:"pt-6 border-t border-slate-100 dark:border-slate-800 text-center",children:S.jsxs("p",{className:"text-[10px] text-slate-400 leading-relaxed",children:["Built with React, Tailwind, Framer Motion & Gemini AI. ",S.jsx("br",{}),"MIT License © ",new Date().getFullYear()," Chronos"]})})]}),Y0e=["general","advanced","docs","about"],Iq=({settings:t,onUpdateSettings:e,availableCategories:n,availableTags:r,onClose:o,inSeperatePage:i,inDarkMode:a,customTabs:s=[]})=>{const[c,f]=xe.useState("general"),[m,b]=xe.useState(null);xe.useEffect(()=>{s.forEach(A=>{Y0e.includes(A.id)&&Gt.warn("Settings",`CustomSettingsTab id "${A.id}" conflicts with built-in tab. Consider using a different id.`)})},[s]),xe.useEffect(()=>{if(Gt.info("Settings",`system in dark mode: ${a}, in seperate page: ${i}, onClose: ${o}`),!i||!m)return;const A=a?"midnight":"light";Gt.info("Settings","adjust to system theme: ",A),m.setAttribute("data-theme",A)},[t.theme,m,a,i,o]);const C=()=>S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"p-2 bg-slate-200 dark:bg-slate-700 rounded-lg text-slate-600 dark:text-slate-200",children:S.jsx(Je,{name:"Settings",size:18})}),S.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Settings"})]}),S.jsxs("div",{className:"flex p-1 bg-slate-100 dark:bg-slate-800 rounded-lg",children:[S.jsx("button",{onClick:()=>f("general"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="general"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"General"}),S.jsx("button",{onClick:()=>f("advanced"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="advanced"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Advanced"}),S.jsx("button",{onClick:()=>f("docs"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="docs"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Docs"}),S.jsx("button",{onClick:()=>f("about"),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all",c==="about"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"About"}),s.map(A=>S.jsxs("button",{onClick:()=>f(A.id),className:et("px-3 py-1 text-xs font-medium rounded-md transition-all flex items-center gap-1",c===A.id?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:[A.icon&&S.jsx(Je,{name:A.icon,size:12}),A.label]},A.id))]})]}),o&&S.jsx("button",{onClick:o,className:"p-2 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-full transition-colors outline-none",children:S.jsx(Je,{name:"X",size:20})})]}),S.jsxs("div",{className:"p-0 overflow-y-auto flex-1 min-h-100",children:[c==="general"&&S.jsx(v0e,{settings:t,onUpdateSettings:e,availableCategories:n}),c==="advanced"&&S.jsx(tq,{settings:t,onUpdateSettings:e,availableTags:r}),c==="docs"&&S.jsx(KX,{}),c==="about"&&S.jsx(G0e,{}),s.find(A=>A.id===c)?.content]}),S.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:S.jsxs("p",{className:"text-[10px] text-slate-400",children:["Timeline Tasks View • ","0.0.11"," at ",void 0]})})]});return i?S.jsx("div",{ref:b,className:"tasks-timeline-app",id:"tasks-timeline-app",style:{width:"100%"},children:S.jsxs(Tq.div,{children:[S.jsx("style",{children:Sq}),C()]})}):C()},Eq=({isOpen:t,onClose:e,settings:n,onUpdateSettings:r,availableTags:o,availableCategories:i,customTabs:a})=>S.jsx(sc,{children:t&&S.jsxs(S.Fragment,{children:[S.jsx(Li,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-40"}),S.jsx(Li,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},transition:{type:"spring",duration:.5},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-2xl shadow-2xl z-50 overflow-hidden border border-slate-200 dark:border-slate-800 flex flex-col max-h-[85vh] text-slate-900",children:S.jsx(Iq,{settings:n,onUpdateSettings:r,availableCategories:i,availableTags:o,onClose:e,inSeperatePage:!1,customTabs:a})})]})}),Z0e=({isOpen:t,onClose:e})=>S.jsx(sc,{children:t&&S.jsxs(S.Fragment,{children:[S.jsx(ci.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),S.jsxs(ci.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden max-h-[85vh] flex flex-col text-slate-900",children:[S.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg text-blue-600 dark:text-blue-300",children:S.jsx(Je,{name:"BookOpen",size:18})}),S.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Documentation"})]}),S.jsx("button",{onClick:e,className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:S.jsx(Je,{name:"X",size:20})})]}),S.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar",children:[S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),S.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),S.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"AlertCircle",size:14,className:"text-rose-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Clock",size:14,className:"text-blue-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Zap",size:14,className:"text-purple-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),S.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(Je,{name:"Archive",size:14,className:"text-slate-500"}),S.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),S.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),S.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"Mic",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),S.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),S.jsxs("div",{className:"flex gap-3",children:[S.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:S.jsx(Je,{name:"TerminalSquare",size:16})}),S.jsxs("div",{children:[S.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),S.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",S.jsx("br",{}),S.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),S.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),S.jsxs("section",{children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[S.jsx(Je,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),S.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),S.jsx("span",{children:"Save task / Submit command"})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),S.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),S.jsxs("li",{className:"flex items-center gap-2",children:[S.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),S.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),S.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:S.jsx("p",{className:"text-[10px] text-slate-400",children:"Tasks Timeline • v0.1.2"})})]})]})}),Aq=({toast:t,onDismiss:e})=>{xe.useEffect(()=>{const i=setTimeout(()=>{e(t.id)},4e3);return()=>clearTimeout(i)},[t.id,e]);const n=()=>{switch(t.type){case"success":return"CheckCircle2";case"error":return"AlertCircle";case"info":return"Info"}},r=()=>{const i="bg-white/95 backdrop-blur-md border shadow-xl shadow-slate-200/50 [.chronos-app[data-theme='dark']_&]:bg-slate-800/95 [.chronos-app[data-theme='dark']_&]:shadow-black/20 [.chronos-app[data-theme='dark']_&]:border-slate-700/50";switch(t.type){case"success":return et(i,"border-l-4 border-l-emerald-500 border-y-emerald-100/50 border-r-emerald-100/50 [.chronos-app[data-theme='dark']_&]:border-y-emerald-500/20 [.chronos-app[data-theme='dark']_&]:border-r-emerald-500/20");case"error":return et(i,"border-l-4 border-l-rose-500 border-y-rose-100/50 border-r-rose-100/50 [.chronos-app[data-theme='dark']_&]:border-y-rose-500/20 [.chronos-app[data-theme='dark']_&]:border-r-rose-500/20");case"info":return et(i,"border-l-4 border-l-blue-500 border-y-blue-100/50 border-r-blue-100/50 [.chronos-app[data-theme='dark']_&]:border-y-blue-500/20 [.chronos-app[data-theme='dark']_&]:border-r-blue-500/20")}},o=()=>{switch(t.type){case"success":return"text-emerald-500 [.chronos-app[data-theme='dark']_&]:text-emerald-400";case"error":return"text-rose-500 [.chronos-app[data-theme='dark']_&]:text-rose-400";case"info":return"text-blue-500 [.chronos-app[data-theme='dark']_&]:text-blue-400"}};return S.jsxs(Li,{layout:!0,initial:{opacity:0,x:50,scale:.9},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.9},className:et("flex items-start gap-3 p-4 rounded-lg max-w-sm w-full pointer-events-auto text-slate-800 [.chronos-app[data-theme='dark']_&]:text-slate-100",r()),children:[S.jsx("div",{className:et("mt-0.5 shrink-0",o()),children:S.jsx(Je,{name:n(),size:18})}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("h4",{className:"text-sm font-bold leading-tight",children:t.title}),t.description&&S.jsx("p",{className:"text-xs opacity-80 mt-1 leading-snug font-medium text-slate-500 [.chronos-app[data-theme='dark']_&]:text-slate-400",children:t.description})]}),S.jsx("button",{onClick:()=>e(t.id),className:"opacity-40 hover:opacity-100 transition-opacity p-0.5 -mr-1 -mt-1",children:S.jsx(Je,{name:"X",size:14})})]})};var gc="INUMBER",l2="IOP1",c2="IOP2",u2="IOP3",ch="IVAR",j1="IVARNAME",d2="IFUNCALL",lF="IFUNDEF",Ls="IEXPR",zO="IEXPREVAL",$1="IMEMBER",cF="IENDSTATEMENT",h2="IARRAY";function Sn(t,e){this.type=t,this.value=e??0}Sn.prototype.toString=function(){switch(this.type){case gc:case l2:case c2:case u2:case ch:case j1:case cF:return this.value;case d2:return"CALL "+this.value;case lF:return"DEF "+this.value;case h2:return"ARRAY "+this.value;case $1:return"."+this.value;default:return"Invalid Instruction"}};function uF(t){return new Sn(l2,t)}function uh(t){return new Sn(c2,t)}function Lq(t){return new Sn(u2,t)}function VO(t,e,n,r,o){for(var i=[],a=[],s,c,f,m,b=0;b<t.length;b++){var C=t[b],A=C.type;if(A===gc||A===j1)Array.isArray(C.value)?i.push.apply(i,VO(C.value.map(function(P){return new Sn(gc,P)}).concat(new Sn(h2,C.value.length)),e,n,r,o)):i.push(C);else if(A===ch&&o.hasOwnProperty(C.value))C=new Sn(gc,o[C.value]),i.push(C);else if(A===c2&&i.length>1)c=i.pop(),s=i.pop(),m=n[C.value],C=new Sn(gc,m(s.value,c.value)),i.push(C);else if(A===u2&&i.length>2)f=i.pop(),c=i.pop(),s=i.pop(),C.value==="?"?i.push(s.value?c.value:f.value):(m=r[C.value],C=new Sn(gc,m(s.value,c.value,f.value)),i.push(C));else if(A===l2&&i.length>0)s=i.pop(),m=e[C.value],C=new Sn(gc,m(s.value)),i.push(C);else if(A===Ls){for(;i.length>0;)a.push(i.shift());a.push(new Sn(Ls,VO(C.value,e,n,r,o)))}else if(A===$1&&i.length>0)s=i.pop(),i.push(new Sn(gc,s.value[C.value]));else{for(;i.length>0;)a.push(i.shift());a.push(C)}}for(;i.length>0;)a.push(i.shift());return a}function Rq(t,e,n){for(var r=[],o=0;o<t.length;o++){var i=t[o],a=i.type;if(a===ch&&i.value===e)for(var s=0;s<n.tokens.length;s++){var c=n.tokens[s],f;c.type===l2?f=uF(c.value):c.type===c2?f=uh(c.value):c.type===u2?f=Lq(c.value):f=new Sn(c.type,c.value),r.push(f)}else a===Ls?r.push(new Sn(Ls,Rq(i.value,e,n))):r.push(i)}return r}function e0(t,e,n){var r=[],o,i,a,s,c,f;if(UO(t))return dh(t,n);for(var m=t.length,b=0;b<m;b++){var C=t[b],A=C.type;if(A===gc||A===j1)r.push(C.value);else if(A===c2)i=r.pop(),o=r.pop(),C.value==="and"?r.push(o?!!e0(i,e,n):!1):C.value==="or"?r.push(o?!0:!!e0(i,e,n)):C.value==="="?(s=e.binaryOps[C.value],r.push(s(o,e0(i,e,n),n))):(s=e.binaryOps[C.value],r.push(s(dh(o,n),dh(i,n))));else if(A===u2)a=r.pop(),i=r.pop(),o=r.pop(),C.value==="?"?r.push(e0(o?i:a,e,n)):(s=e.ternaryOps[C.value],r.push(s(dh(o,n),dh(i,n),dh(a,n))));else if(A===ch)if(C.value in e.functions)r.push(e.functions[C.value]);else if(C.value in e.unaryOps&&e.parser.isOperatorEnabled(C.value))r.push(e.unaryOps[C.value]);else{var P=n[C.value];if(P!==void 0)r.push(P);else throw new Error("undefined variable: "+C.value)}else if(A===l2)o=r.pop(),s=e.unaryOps[C.value],r.push(s(dh(o,n)));else if(A===d2){for(f=C.value,c=[];f-- >0;)c.unshift(dh(r.pop(),n));if(s=r.pop(),s.apply&&s.call)r.push(s.apply(void 0,c));else throw new Error(s+" is not a function")}else if(A===lF)r.push((function(){for(var _=r.pop(),V=[],B=C.value;B-- >0;)V.unshift(r.pop());var q=r.pop(),X=function(){for(var $=Object.assign({},n),Q=0,re=V.length;Q<re;Q++)$[V[Q]]=arguments[Q];return e0(_,e,$)};return Object.defineProperty(X,"name",{value:q,writable:!1}),n[q]=X,X})());else if(A===Ls)r.push(X0e(C,e));else if(A===zO)r.push(C);else if(A===$1)o=r.pop(),r.push(o[C.value]);else if(A===cF)r.pop();else if(A===h2){for(f=C.value,c=[];f-- >0;)c.unshift(r.pop());r.push(c)}else throw new Error("invalid Expression")}if(r.length>1)throw new Error("invalid Expression (parity)");return r[0]===0?0:dh(r[0],n)}function X0e(t,e,n){return UO(t)?t:{type:zO,value:function(r){return e0(t.value,e,r)}}}function UO(t){return t&&t.type===zO}function dh(t,e){return UO(t)?t.value(e):t}function BO(t,e){for(var n=[],r,o,i,a,s,c,f=0;f<t.length;f++){var m=t[f],b=m.type;if(b===gc)typeof m.value=="number"&&m.value<0?n.push("("+m.value+")"):Array.isArray(m.value)?n.push("["+m.value.map(Pq).join(", ")+"]"):n.push(Pq(m.value));else if(b===c2)o=n.pop(),r=n.pop(),a=m.value,e?a==="^"?n.push("Math.pow("+r+", "+o+")"):a==="and"?n.push("(!!"+r+" && !!"+o+")"):a==="or"?n.push("(!!"+r+" || !!"+o+")"):a==="||"?n.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+o+")))"):a==="=="?n.push("("+r+" === "+o+")"):a==="!="?n.push("("+r+" !== "+o+")"):a==="["?n.push(r+"[("+o+") | 0]"):n.push("("+r+" "+a+" "+o+")"):a==="["?n.push(r+"["+o+"]"):n.push("("+r+" "+a+" "+o+")");else if(b===u2)if(i=n.pop(),o=n.pop(),r=n.pop(),a=m.value,a==="?")n.push("("+r+" ? "+o+" : "+i+")");else throw new Error("invalid Expression");else if(b===ch||b===j1)n.push(m.value);else if(b===l2)r=n.pop(),a=m.value,a==="-"||a==="+"?n.push("("+a+r+")"):e?a==="not"?n.push("(!"+r+")"):a==="!"?n.push("fac("+r+")"):n.push(a+"("+r+")"):a==="!"?n.push("("+r+"!)"):n.push("("+a+" "+r+")");else if(b===d2){for(c=m.value,s=[];c-- >0;)s.unshift(n.pop());a=n.pop(),n.push(a+"("+s.join(", ")+")")}else if(b===lF){for(o=n.pop(),c=m.value,s=[];c-- >0;)s.unshift(n.pop());r=n.pop(),e?n.push("("+r+" = function("+s.join(", ")+") { return "+o+" })"):n.push("("+r+"("+s.join(", ")+") = "+o+")")}else if(b===$1)r=n.pop(),n.push(r+"."+m.value);else if(b===h2){for(c=m.value,s=[];c-- >0;)s.unshift(n.pop());n.push("["+s.join(", ")+"]")}else if(b===Ls)n.push("("+BO(m.value,e)+")");else if(b!==cF)throw new Error("invalid Expression")}return n.length>1&&(e?n=[n.join(",")]:n=[n.join(";")]),String(n[0])}function Pq(t){return typeof t=="string"?JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):t}function f2(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function WO(t,e,n){n=n||{};for(var r=!!n.withMembers,o=null,i=0;i<t.length;i++){var a=t[i];a.type===ch||a.type===j1?!r&&!f2(e,a.value)?e.push(a.value):(o!==null&&(f2(e,o)||e.push(o)),o=a.value):a.type===$1&&r&&o!==null?o+="."+a.value:a.type===Ls?WO(a.value,e,n):o!==null&&(f2(e,o)||e.push(o),o=null)}o!==null&&!f2(e,o)&&e.push(o)}function gu(t,e){this.tokens=t,this.parser=e,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.functions=e.functions}gu.prototype.simplify=function(t){return t=t||{},new gu(VO(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,t),this.parser)},gu.prototype.substitute=function(t,e){return e instanceof gu||(e=this.parser.parse(String(e))),new gu(Rq(this.tokens,t,e),this.parser)},gu.prototype.evaluate=function(t){return t=t||{},e0(this.tokens,this,t)},gu.prototype.toString=function(){return BO(this.tokens,!1)},gu.prototype.symbols=function(t){t=t||{};var e=[];return WO(this.tokens,e,t),e},gu.prototype.variables=function(t){t=t||{};var e=[];WO(this.tokens,e,t);var n=this.functions;return e.filter(function(r){return!(r in n)})},gu.prototype.toJSFunction=function(t,e){var n=this,r=new Function(t,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+BO(this.simplify(e).tokens,!0)+"; }");return function(){return r.apply(n,arguments)}};var hp="TEOF",Cr="TOP",dF="TNUMBER",Dq="TSTRING",hh="TPAREN",p2="TBRACKET",hF="TCOMMA",GO="TNAME",YO="TSEMICOLON";function Fq(t,e,n){this.type=t,this.value=e,this.index=n}Fq.prototype.toString=function(){return this.type+": "+this.value};function ko(t,e){this.pos=0,this.current=null,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.consts=t.consts,this.expression=e,this.savedPosition=0,this.savedCurrent=null,this.options=t.options,this.parser=t}ko.prototype.newToken=function(t,e,n){return new Fq(t,e,n??this.pos)},ko.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},ko.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},ko.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(hp,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},ko.prototype.isString=function(){var t=!1,e=this.pos,n=this.expression.charAt(e);if(n==="'"||n==='"')for(var r=this.expression.indexOf(n,e+1);r>=0&&this.pos<this.expression.length;){if(this.pos=r+1,this.expression.charAt(r-1)!=="\\"){var o=this.expression.substring(e+1,r);this.current=this.newToken(Dq,this.unescape(o),e),t=!0;break}r=this.expression.indexOf(n,r+1)}return t},ko.prototype.isParen=function(){var t=this.expression.charAt(this.pos);return t==="("||t===")"?(this.current=this.newToken(hh,t),this.pos++,!0):!1},ko.prototype.isBracket=function(){var t=this.expression.charAt(this.pos);return(t==="["||t==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(p2,t),this.pos++,!0):!1},ko.prototype.isComma=function(){var t=this.expression.charAt(this.pos);return t===","?(this.current=this.newToken(hF,","),this.pos++,!0):!1},ko.prototype.isSemicolon=function(){var t=this.expression.charAt(this.pos);return t===";"?(this.current=this.newToken(YO,";"),this.pos++,!0):!1},ko.prototype.isConst=function(){for(var t=this.pos,e=t;e<this.expression.length;e++){var n=this.expression.charAt(e);if(n.toUpperCase()===n.toLowerCase()&&(e===this.pos||n!=="_"&&n!=="."&&(n<"0"||n>"9")))break}if(e>t){var r=this.expression.substring(t,e);if(r in this.consts)return this.current=this.newToken(dF,this.consts[r]),this.pos+=r.length,!0}return!1},ko.prototype.isNamedOp=function(){for(var t=this.pos,e=t;e<this.expression.length;e++){var n=this.expression.charAt(e);if(n.toUpperCase()===n.toLowerCase()&&(e===this.pos||n!=="_"&&(n<"0"||n>"9")))break}if(e>t){var r=this.expression.substring(t,e);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(Cr,r),this.pos+=r.length,!0}return!1},ko.prototype.isName=function(){for(var t=this.pos,e=t,n=!1;e<this.expression.length;e++){var r=this.expression.charAt(e);if(r.toUpperCase()===r.toLowerCase()){if(e===this.pos&&(r==="$"||r==="_")){r==="_"&&(n=!0);continue}else if(e===this.pos||!n||r!=="_"&&(r<"0"||r>"9"))break}else n=!0}if(n){var o=this.expression.substring(t,e);return this.current=this.newToken(GO,o),this.pos+=o.length,!0}return!1},ko.prototype.isWhitespace=function(){for(var t=!1,e=this.expression.charAt(this.pos);(e===" "||e===" "||e===`
|
|
255
255
|
`||e==="\r")&&(t=!0,this.pos++,!(this.pos>=this.expression.length));)e=this.expression.charAt(this.pos);return t};var q0e=/^[0-9a-f]{4}$/i;ko.prototype.unescape=function(t){var e=t.indexOf("\\");if(e<0)return t;for(var n=t.substring(0,e);e>=0;){var r=t.charAt(++e);switch(r){case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+=`
|
|
256
256
|
`;break;case"r":n+="\r";break;case"t":n+=" ";break;case"u":var o=t.substring(e+1,e+5);q0e.test(o)||this.parseError("Illegal escape sequence: \\u"+o),n+=String.fromCharCode(parseInt(o,16)),e+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+r+'"')}++e;var i=t.indexOf("\\",e);n+=t.substring(e,i<0?t.length:i),e=i}return n},ko.prototype.isComment=function(){var t=this.expression.charAt(this.pos);return t==="/"&&this.expression.charAt(this.pos+1)==="*"?(this.pos=this.expression.indexOf("*/",this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1},ko.prototype.isRadixInteger=function(){var t=this.pos;if(t>=this.expression.length-2||this.expression.charAt(t)!=="0")return!1;++t;var e,n;if(this.expression.charAt(t)==="x")e=16,n=/^[0-9a-f]$/i,++t;else if(this.expression.charAt(t)==="b")e=2,n=/^[01]$/i,++t;else return!1;for(var r=!1,o=t;t<this.expression.length;){var i=this.expression.charAt(t);if(n.test(i))t++,r=!0;else break}return r&&(this.current=this.newToken(dF,parseInt(this.expression.substring(o,t),e)),this.pos=t),r},ko.prototype.isNumber=function(){for(var t=!1,e=this.pos,n=e,r=e,o=!1,i=!1,a;e<this.expression.length&&(a=this.expression.charAt(e),a>="0"&&a<="9"||!o&&a===".");)a==="."?o=!0:i=!0,e++,t=i;if(t&&(r=e),a==="e"||a==="E"){e++;for(var s=!0,c=!1;e<this.expression.length;){if(a=this.expression.charAt(e),s&&(a==="+"||a==="-"))s=!1;else if(a>="0"&&a<="9")c=!0,s=!1;else break;e++}c||(e=r)}return t?(this.current=this.newToken(dF,parseFloat(this.expression.substring(n,e))),this.pos=e):this.pos=r,t},ko.prototype.isOperator=function(){var t=this.pos,e=this.expression.charAt(this.pos);if(e==="+"||e==="-"||e==="*"||e==="/"||e==="%"||e==="^"||e==="?"||e===":"||e===".")this.current=this.newToken(Cr,e);else if(e==="∙"||e==="•")this.current=this.newToken(Cr,"*");else if(e===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Cr,">="),this.pos++):this.current=this.newToken(Cr,">");else if(e==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Cr,"<="),this.pos++):this.current=this.newToken(Cr,"<");else if(e==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(Cr,"||"),this.pos++;else return!1;else if(e==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Cr,"=="),this.pos++):this.current=this.newToken(Cr,e);else if(e==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Cr,"!="),this.pos++):this.current=this.newToken(Cr,e);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=t,!1)},ko.prototype.isOperatorEnabled=function(t){return this.parser.isOperatorEnabled(t)},ko.prototype.getCoordinates=function(){var t=0,e,n=-1;do t++,e=this.pos-n,n=this.expression.indexOf(`
|
|
257
257
|
`,n+1);while(n>=0&&n<this.pos);return{line:t,column:e}},ko.prototype.parseError=function(t){var e=this.getCoordinates();throw new Error("parse error ["+e.line+":"+e.column+"]: "+t)};function Rr(t,e,n){this.parser=t,this.tokens=e,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=n.allowMemberAccess!==!1}Rr.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},Rr.prototype.tokenMatches=function(t,e){return typeof e>"u"?!0:Array.isArray(e)?f2(e,t.value):typeof e=="function"?e(t):t.value===e},Rr.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},Rr.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},Rr.prototype.accept=function(t,e){return this.nextToken.type===t&&this.tokenMatches(this.nextToken,e)?(this.next(),!0):!1},Rr.prototype.expect=function(t,e){if(!this.accept(t,e)){var n=this.tokens.getCoordinates();throw new Error("parse error ["+n.line+":"+n.column+"]: Expected "+(e||t))}},Rr.prototype.parseAtom=function(t){var e=this.tokens.unaryOps;function n(o){return o.value in e}if(this.accept(GO)||this.accept(Cr,n))t.push(new Sn(ch,this.current.value));else if(this.accept(dF))t.push(new Sn(gc,this.current.value));else if(this.accept(Dq))t.push(new Sn(gc,this.current.value));else if(this.accept(hh,"("))this.parseExpression(t),this.expect(hh,")");else if(this.accept(p2,"["))if(this.accept(p2,"]"))t.push(new Sn(h2,0));else{var r=this.parseArrayList(t);t.push(new Sn(h2,r))}else throw new Error("unexpected "+this.nextToken)},Rr.prototype.parseExpression=function(t){var e=[];this.parseUntilEndStatement(t,e)||(this.parseVariableAssignmentExpression(e),!this.parseUntilEndStatement(t,e)&&this.pushExpression(t,e))},Rr.prototype.pushExpression=function(t,e){for(var n=0,r=e.length;n<r;n++)t.push(e[n])},Rr.prototype.parseUntilEndStatement=function(t,e){return this.accept(YO)?(this.nextToken&&this.nextToken.type!==hp&&!(this.nextToken.type===hh&&this.nextToken.value===")")&&e.push(new Sn(cF)),this.nextToken.type!==hp&&this.parseExpression(e),t.push(new Sn(Ls,e)),!0):!1},Rr.prototype.parseArrayList=function(t){for(var e=0;!this.accept(p2,"]");)for(this.parseExpression(t),++e;this.accept(hF);)this.parseExpression(t),++e;return e},Rr.prototype.parseVariableAssignmentExpression=function(t){for(this.parseConditionalExpression(t);this.accept(Cr,"=");){var e=t.pop(),n=[],r=t.length-1;if(e.type===d2){if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var o=0,i=e.value+1;o<i;o++){var a=r-o;t[a].type===ch&&(t[a]=new Sn(j1,t[a].value))}this.parseVariableAssignmentExpression(n),t.push(new Sn(Ls,n)),t.push(new Sn(lF,e.value));continue}if(e.type!==ch&&e.type!==$1)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(n),t.push(new Sn(j1,e.value)),t.push(new Sn(Ls,n)),t.push(uh("="))}},Rr.prototype.parseConditionalExpression=function(t){for(this.parseOrExpression(t);this.accept(Cr,"?");){var e=[],n=[];this.parseConditionalExpression(e),this.expect(Cr,":"),this.parseConditionalExpression(n),t.push(new Sn(Ls,e)),t.push(new Sn(Ls,n)),t.push(Lq("?"))}},Rr.prototype.parseOrExpression=function(t){for(this.parseAndExpression(t);this.accept(Cr,"or");){var e=[];this.parseAndExpression(e),t.push(new Sn(Ls,e)),t.push(uh("or"))}},Rr.prototype.parseAndExpression=function(t){for(this.parseComparison(t);this.accept(Cr,"and");){var e=[];this.parseComparison(e),t.push(new Sn(Ls,e)),t.push(uh("and"))}};var J0e=["==","!=","<","<=",">=",">","in"];Rr.prototype.parseComparison=function(t){for(this.parseAddSub(t);this.accept(Cr,J0e);){var e=this.current;this.parseAddSub(t),t.push(uh(e.value))}};var K0e=["+","-","||"];Rr.prototype.parseAddSub=function(t){for(this.parseTerm(t);this.accept(Cr,K0e);){var e=this.current;this.parseTerm(t),t.push(uh(e.value))}};var Q0e=["*","/","%"];Rr.prototype.parseTerm=function(t){for(this.parseFactor(t);this.accept(Cr,Q0e);){var e=this.current;this.parseFactor(t),t.push(uh(e.value))}},Rr.prototype.parseFactor=function(t){var e=this.tokens.unaryOps;function n(o){return o.value in e}if(this.save(),this.accept(Cr,n)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===hh&&this.nextToken.value==="("){this.restore(),this.parseExponential(t);return}else if(this.nextToken.type===YO||this.nextToken.type===hF||this.nextToken.type===hp||this.nextToken.type===hh&&this.nextToken.value===")"){this.restore(),this.parseAtom(t);return}}var r=this.current;this.parseFactor(t),t.push(uF(r.value))}else this.parseExponential(t)},Rr.prototype.parseExponential=function(t){for(this.parsePostfixExpression(t);this.accept(Cr,"^");)this.parseFactor(t),t.push(uh("^"))},Rr.prototype.parsePostfixExpression=function(t){for(this.parseFunctionCall(t);this.accept(Cr,"!");)t.push(uF("!"))},Rr.prototype.parseFunctionCall=function(t){var e=this.tokens.unaryOps;function n(i){return i.value in e}if(this.accept(Cr,n)){var r=this.current;this.parseAtom(t),t.push(uF(r.value))}else for(this.parseMemberExpression(t);this.accept(hh,"(");)if(this.accept(hh,")"))t.push(new Sn(d2,0));else{var o=this.parseArgumentList(t);t.push(new Sn(d2,o))}},Rr.prototype.parseArgumentList=function(t){for(var e=0;!this.accept(hh,")");)for(this.parseExpression(t),++e;this.accept(hF);)this.parseExpression(t),++e;return e},Rr.prototype.parseMemberExpression=function(t){for(this.parseAtom(t);this.accept(Cr,".")||this.accept(p2,"[");){var e=this.current;if(e.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(GO),t.push(new Sn($1,this.current.value))}else if(e.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(t),this.expect(p2,"]"),t.push(uh("["))}else throw new Error("unexpected symbol: "+e.value)}};function j0e(t,e){return Number(t)+Number(e)}function $0e(t,e){return t-e}function e2e(t,e){return t*e}function t2e(t,e){return t/e}function n2e(t,e){return t%e}function r2e(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):""+t+e}function o2e(t,e){return t===e}function i2e(t,e){return t!==e}function a2e(t,e){return t>e}function s2e(t,e){return t<e}function l2e(t,e){return t>=e}function c2e(t,e){return t<=e}function u2e(t,e){return!!(t&&e)}function d2e(t,e){return!!(t||e)}function h2e(t,e){return f2(e,t)}function f2e(t){return(Math.exp(t)-Math.exp(-t))/2}function p2e(t){return(Math.exp(t)+Math.exp(-t))/2}function y2e(t){return t===1/0?1:t===-1/0?-1:(Math.exp(t)-Math.exp(-t))/(Math.exp(t)+Math.exp(-t))}function g2e(t){return t===-1/0?t:Math.log(t+Math.sqrt(t*t+1))}function m2e(t){return Math.log(t+Math.sqrt(t*t-1))}function v2e(t){return Math.log((1+t)/(1-t))/2}function _q(t){return Math.log(t)*Math.LOG10E}function k2e(t){return-t}function x2e(t){return!t}function b2e(t){return t<0?Math.ceil(t):Math.floor(t)}function w2e(t){return Math.random()*(t||1)}function Nq(t){return XO(t+1)}function M2e(t){return isFinite(t)&&t===Math.round(t)}var C2e=4.7421875,ZO=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function XO(t){var e,n;if(M2e(t)){if(t<=0)return isFinite(t)?1/0:NaN;if(t>171)return 1/0;for(var r=t-2,o=t-1;r>1;)o*=r,r--;return o===0&&(o=1),o}if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*XO(1-t));if(t>=171.35)return 1/0;if(t>85){var i=t*t,a=i*t,s=a*t,c=s*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*i)-139/(51840*a)-571/(2488320*s)+163879/(209018880*c)+5246819/(75246796800*c*t))}--t,n=ZO[0];for(var f=1;f<ZO.length;++f)n+=ZO[f]/(t+f);return e=t+C2e+.5,Math.sqrt(2*Math.PI)*Math.pow(e,t+.5)*Math.exp(-e)*n}function T2e(t){return Array.isArray(t)?t.length:String(t).length}function Oq(){for(var t=0,e=0,n=0;n<arguments.length;n++){var r=Math.abs(arguments[n]),o;e<r?(o=e/r,t=t*o*o+1,e=r):r>0?(o=r/e,t+=o*o):t+=r}return e===1/0?1/0:e*Math.sqrt(t)}function Hq(t,e,n){return t?e:n}function S2e(t,e){return typeof e>"u"||+e==0?Math.round(t):(t=+t,e=-+e,isNaN(t)||!(typeof e=="number"&&e%1===0)?NaN:(t=t.toString().split("e"),t=Math.round(+(t[0]+"e"+(t[1]?+t[1]-e:-e))),t=t.toString().split("e"),+(t[0]+"e"+(t[1]?+t[1]+e:e))))}function I2e(t,e,n){return n&&(n[t]=e),e}function E2e(t,e){return t[e|0]}function A2e(t){return arguments.length===1&&Array.isArray(t)?Math.max.apply(Math,t):Math.max.apply(Math,arguments)}function L2e(t){return arguments.length===1&&Array.isArray(t)?Math.min.apply(Math,t):Math.min.apply(Math,arguments)}function R2e(t,e){if(typeof t!="function")throw new Error("First argument to map is not a function");if(!Array.isArray(e))throw new Error("Second argument to map is not an array");return e.map(function(n,r){return t(n,r)})}function P2e(t,e,n){if(typeof t!="function")throw new Error("First argument to fold is not a function");if(!Array.isArray(n))throw new Error("Second argument to fold is not an array");return n.reduce(function(r,o,i){return t(r,o,i)},e)}function D2e(t,e){if(typeof t!="function")throw new Error("First argument to filter is not a function");if(!Array.isArray(e))throw new Error("Second argument to filter is not an array");return e.filter(function(n,r){return t(n,r)})}function F2e(t,e){if(!(Array.isArray(e)||typeof e=="string"))throw new Error("Second argument to indexOf is not a string or array");return e.indexOf(t)}function _2e(t,e){if(!Array.isArray(e))throw new Error("Second argument to join is not an array");return e.join(t)}function N2e(t){return(t>0)-(t<0)||+t}var zq=1/3;function O2e(t){return t<0?-Math.pow(-t,zq):Math.pow(t,zq)}function H2e(t){return Math.exp(t)-1}function z2e(t){return Math.log(1+t)}function V2e(t){return Math.log(t)/Math.LN2}function of(t){this.options=t||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||f2e,cosh:Math.cosh||p2e,tanh:Math.tanh||y2e,asinh:Math.asinh||g2e,acosh:Math.acosh||m2e,atanh:Math.atanh||v2e,sqrt:Math.sqrt,cbrt:Math.cbrt||O2e,log:Math.log,log2:Math.log2||V2e,ln:Math.log,lg:Math.log10||_q,log10:Math.log10||_q,expm1:Math.expm1||H2e,log1p:Math.log1p||z2e,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||b2e,"-":k2e,"+":Number,exp:Math.exp,not:x2e,length:T2e,"!":Nq,sign:Math.sign||N2e},this.binaryOps={"+":j0e,"-":$0e,"*":e2e,"/":t2e,"%":n2e,"^":Math.pow,"||":r2e,"==":o2e,"!=":i2e,">":a2e,"<":s2e,">=":l2e,"<=":c2e,and:u2e,or:d2e,in:h2e,"=":I2e,"[":E2e},this.ternaryOps={"?":Hq},this.functions={random:w2e,fac:Nq,min:L2e,max:A2e,hypot:Math.hypot||Oq,pyt:Math.hypot||Oq,pow:Math.pow,atan2:Math.atan2,if:Hq,gamma:XO,roundTo:S2e,map:R2e,fold:P2e,filter:D2e,indexOf:F2e,join:_2e},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}of.prototype.parse=function(t){var e=[],n=new Rr(this,new ko(this,t),{allowMemberAccess:this.options.allowMemberAccess});return n.parseExpression(e),n.expect(hp,"EOF"),new gu(e,this)},of.prototype.evaluate=function(t,e){return this.parse(t).evaluate(e)};var Vq=new of;of.parse=function(t){return Vq.parse(t)},of.evaluate=function(t,e){return Vq.parse(t).evaluate(e)};var Uq={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function U2e(t){return Uq.hasOwnProperty(t)?Uq[t]:t}of.prototype.isOperatorEnabled=function(t){var e=U2e(t),n=this.options.operators||{};return!(e in n)||!!n[e]};const Bq=(t,e,n)=>{const{uniqueTags:r,uniqueCategories:o}=xe.useMemo(()=>{const a=new Set,s=new Set;return t.forEach(c=>{c.tags.forEach(f=>a.add(f.name)),c.category&&s.add(c.category)}),{uniqueTags:Array.from(a),uniqueCategories:Array.from(s)}},[t]);return{processedTasks:xe.useMemo(()=>{let a=[...t];if(e.tags.length>0&&(a=a.filter(s=>s.tags.some(c=>e.tags.includes(c.name)))),e.categories.length>0&&(a=a.filter(s=>s.category&&e.categories.includes(s.category))),e.priorities.length>0&&(a=a.filter(s=>e.priorities.includes(s.priority))),e.statuses.length>0&&(a=a.filter(s=>e.statuses.includes(s.status))),e.enableScript&&e.script.trim())try{const s=new of,c=s.parse(e.script);a=a.filter(f=>{try{return!!c.evaluate({task:f})}catch(m){return Gt.error("TaskFiltering","Custom filter script execution failed",m),!1}})}catch(s){Gt.error("TaskFiltering","Custom filter script parsing failed",s)}return a.sort((s,c)=>{if(n.field==="custom"){if(!n.script.trim())return 0;try{const b=new of,C=b.parse(n.script),A=C.evaluate({a:s,b:c});return typeof A=="number"?A:0}catch(b){return Gt.error("TaskFiltering","Custom sort script failed",b),0}}let f=s[n.field],m=c[n.field];if(n.field==="priority"){const b={high:3,medium:2,low:1};f=b[s.priority],m=b[c.priority]}return f==null&&(f=""),m==null&&(m=""),f<m?n.direction==="asc"?-1:1:f>m?n.direction==="asc"?1:-1:0}),a},[t,e,n]),uniqueTags:r,uniqueCategories:o}},Wq=t=>xe.useMemo(()=>t.reduce((e,n)=>(n.status==="done"||n.status==="cancelled"||(n.status==="todo"&&e.todo++,n.status==="unplanned"&&e.unplanned++,n.status==="scheduled"&&e.scheduled++,n.status==="doing"&&e.doing++,(n.status==="overdue"||n.status==="due")&&e.urgent++),e),{todo:0,unplanned:0,urgent:0,scheduled:0,doing:0}),[t]),Gq=(t,e,n,r,o,i,a,s)=>{const c=xe.useRef(t);xe.useEffect(()=>{c.current=t},[t]);const f=async b=>{const C=b.args,A=c.current;switch(Gt.info("AI",`Executing tool: ${b.name}`,C),b.name){case"create_task":{const P={id:`ai-${Date.now()}-${Math.random().toString(36).slice(2,5)}`,title:C.title,description:C.description,status:"todo",priority:C.priority||"medium",createdAt:new Date().toISOString(),dueAt:C.dueAt||new Date().toISOString().split("T")[0],category:C.category,tags:C.tags?C.tags.map(_=>({id:`tag-${_}`,name:_})):[]};return await e(P),a("success","Task Created",`"${P.title}" added to your list.`),Gt.info("AI","Tool Result: Task Created",{id:P.id}),{success:!0,id:P.id,message:"Task created successfully"}}case"query_tasks":{let P=A;if(C.status&&(P=P.filter(_=>_.status===C.status)),C.date&&(P=P.filter(_=>{const V=["startAt","createdAt","completedAt","dueAt"];for(const B of V)if(_[B]&&_[B].startsWith(C.date))return!0;return!1})),C.search){const _=C.search.toLowerCase();P=P.filter(V=>V.title.toLowerCase().includes(_))}return Gt.debug("AI",`Tool Result: Query found ${P.length} tasks`),P.map(_=>({id:_.id,title:_.title,dueAt:_.dueAt,status:_.status}))}case"update_task":{const P=A.find(q=>q.id===C.id);if(!P)return a("error","Update Failed",`Could not find task with ID ${C.id}`),Gt.warn("AI","Tool Result: Update Failed (Not Found)",{id:C.id}),{success:!1,message:"Task not found"};const _=[];Object.keys(C).forEach(q=>{q!=="id"&&C[q]!==P[q]&&_.push(q)});const V={...P,...C};await n(V,P);const B=_.length>0?`Updated ${_.join(", ")}`:"Updated properties";return a("success","Task Updated",`${B} for "${P.title}"`),Gt.info("AI","Tool Result: Task Updated",{id:C.id,fields:_}),{success:!0,message:"Updated"}}case"delete_task":{const P=A.find(_=>_.id===C.id);return P?(await r(C.id,P),a("info","Task Deleted",`Removed "${P.title}"`),Gt.info("AI","Tool Result: Task Deleted",{id:C.id}),{success:!0,message:"Deleted"}):(a("error","Delete Failed",`Could not find task with ID ${C.id}`),Gt.warn("AI","Tool Result: Delete Failed (Not Found)",{id:C.id}),{success:!1,message:"Task not found"})}default:return Gt.error("AI",`Unknown tool called: ${b.name}`),{error:"Unknown tool"}}};return{handleAICommand:async b=>{const C=o.aiConfig.providers[o.aiConfig.activeProvider];if(o.aiConfig.activeProvider!=="gemini"){a("error","Provider Not Supported","Only Gemini provider is fully implemented in this demo.");return}const A=new Pue({apiKey:process.env.API_KEY}),P=Due();try{Gt.info("AI","Sending prompt to Gemini",{input:b,model:C.model});const _=A.chats.create({model:C.model||"gemini-3-flash-preview",config:{systemInstruction:`You are a task manager agent. You have tools to query, create, update, and delete tasks. When asked to modify tasks based on criteria (e.g. 'all tasks next week'), ALWAYS query_tasks first to get their IDs. Today is ${new Date().toISOString()}`,tools:[{functionDeclarations:P}]}});let V=await _.sendMessage({message:b});if(V.usageMetadata&&s){const X=V.usageMetadata.totalTokenCount||0;s(X),Gt.debug("AI","Token Usage",{tokens:X})}let B=0;const q=5;for(;V.functionCalls&&V.functionCalls.length>0&&B<q;){B++;const X=[];for(const $ of V.functionCalls){const Q=await f($);X.push({functionResponse:{id:$.id,name:$.name,response:{result:Q}}})}if(V=await _.sendMessage({message:X}),V.usageMetadata&&s){const $=V.usageMetadata.totalTokenCount||0;s($)}}}catch(_){console.error("AI Error",_),a("error","AI Agent Error","Something went wrong while processing your request."),Gt.error("AI","Agent processing failed",_)}}}},B2e=xe.createContext(null),qO={didCatch:!1,error:null};class JO extends xe.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qO}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:n}=this.state;n!==null&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(qO))}componentDidCatch(e,n){this.props.onError?.(e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&W2e(e.resetKeys,o)&&(this.props.onReset?.({next:o,prev:e.resetKeys,reason:"keys"}),this.setState(qO))}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=e;if(i){const c={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")s=n(c);else if(r)s=xe.createElement(r,c);else if(o!==void 0)s=o;else throw a}return xe.createElement(B2e.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function W2e(t=[],e=[]){return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}class G2e{name="Local Browser Settings";settingsKey="tasks_timeline_settings_data";settingsSaveTimeout=null;async loadSettings(){const e=localStorage.getItem(this.settingsKey);if(!e)return null;try{const n=JSON.parse(e);return Gt.debug("Storage","Loaded settings from local storage."),n}catch(n){return Gt.error("Storage","Failed to parse settings",n),null}}async saveSettings(e){return this.settingsSaveTimeout&&window.clearTimeout(this.settingsSaveTimeout),new Promise(n=>{this.settingsSaveTimeout=window.setTimeout(()=>{try{localStorage.setItem(this.settingsKey,JSON.stringify(e)),Gt.debug("Storage","Persisted settings."),this.settingsSaveTimeout=null,n()}catch(r){Gt.error("Storage","Failed to save settings",r),n()}},500)})}}const Y2e=({children:t,theme:e})=>{const[n,r]=xe.useState(null);return S.jsxs(Tq.div,{id:"tasks-timeline-app",className:"tasks-timeline-app","data-theme":e,children:[S.jsx("style",{children:Sq}),S.jsxs(kX.Provider,{value:{portalContainer:n},children:[t,S.jsx("div",{ref:r,id:"portal-root",className:"tasks-timeline-app","data-theme":e})]})]})},KO=t=>t instanceof Error?t.message:typeof t=="string"?t:"An unknown error occurred",Z2e=({error:t,resetErrorBoundary:e})=>S.jsxs(Li,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"p-8 text-center space-y-4 max-w-md mx-auto",children:[S.jsx("div",{className:"text-rose-500 flex justify-center",children:S.jsx(Je,{name:"AlertTriangle",size:48})}),S.jsxs("div",{children:[S.jsx("h3",{className:"font-bold text-lg text-slate-900",children:"Something went wrong"}),S.jsx("p",{className:"text-sm text-slate-600 mt-2 font-mono bg-slate-50 p-3 rounded border border-slate-200",children:KO(t)})]}),S.jsx("button",{onClick:e,className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors shadow-sm",children:"Try Again"})]}),X2e=({error:t,resetErrorBoundary:e})=>S.jsx(Li,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"p-4 bg-rose-50 border border-rose-200 rounded-lg mx-4 mb-4",children:S.jsxs("div",{className:"flex items-start gap-3",children:[S.jsx("div",{className:"text-rose-600 mt-0.5",children:S.jsx(Je,{name:"AlertCircle",size:20})}),S.jsxs("div",{className:"flex-1",children:[S.jsx("h4",{className:"font-semibold text-rose-900 text-sm",children:"AI Command Failed"}),S.jsx("p",{className:"text-sm text-rose-700 mt-1",children:KO(t)}),S.jsx("button",{onClick:e,className:"text-xs text-rose-600 underline mt-2 hover:text-rose-800",children:"Dismiss"})]})]})}),q2e=({error:t,resetErrorBoundary:e})=>S.jsxs("div",{className:"p-6 text-center space-y-4",children:[S.jsx("div",{className:"text-rose-500 flex justify-center",children:S.jsx(Je,{name:"XCircle",size:40})}),S.jsxs("div",{children:[S.jsx("h3",{className:"font-bold text-base text-slate-900",children:"Failed to load modal"}),S.jsx("p",{className:"text-xs text-slate-600 mt-2 font-mono bg-slate-50 p-2 rounded border border-slate-200",children:KO(t)})]}),S.jsx("button",{onClick:e,className:"px-3 py-1.5 text-sm bg-slate-600 text-white rounded-lg hover:bg-slate-700 transition-colors",children:"Close"})]}),mu={theme:"light",dateFormat:"MMM d",showCompleted:!0,showProgressBar:!0,soundEnabled:!1,fontSize:"base",useRelativeDates:!0,groupingStrategy:["dueAt"],enableVoiceInput:!0,voiceProvider:"browser",defaultFocusMode:!1,totalTokenUsage:0,defaultCategory:"General",settingButtonOnInputBar:void 0,aiConfig:{enabled:!0,defaultMode:!1,activeProvider:"gemini",providers:{gemini:{apiKey:"",model:"gemini-3-flash-preview",baseUrl:""},openai:{apiKey:"",model:"gpt-4o",baseUrl:""},anthropic:{apiKey:"",model:"claude-3-5-sonnet-20240620",baseUrl:""}}},filters:{tags:[],categories:[],priorities:[],statuses:[],enableScript:!1,script:""},sort:{field:"createdAt",direction:"asc",script:""}},J2e=({className:t,tasks:e,onTaskAdded:n,onTaskUpdated:r,onTaskDeleted:o,settingsRepository:i,apiKey:a,systemInDarkMode:s,onItemClick:c,customSettingsTabs:f})=>{const[m,b]=xe.useState(!1),[C,A]=xe.useState(null),[P,_]=xe.useState(null),[V,B]=xe.useState([]),q=xe.useMemo(()=>i||new G2e,[i]),[X,$]=xe.useState(()=>a?{...mu,aiConfig:{...mu.aiConfig,providers:{...mu.aiConfig.providers,gemini:{...mu.aiConfig.providers.gemini,apiKey:a}}}}:mu),[Q,re]=xe.useState(!1),[he,fe]=xe.useState(mu.defaultFocusMode),[me,Ee]=xe.useState(!1);xe.useEffect(()=>{(async()=>{Gt.info("App","Loading settings...");try{const Be=await q.loadSettings();if(Be){const ct={...mu,...Be,aiConfig:{...mu.aiConfig,...Be.aiConfig||{},providers:{...mu.aiConfig.providers,...Be.aiConfig?.providers||{}}}};a&&(ct.aiConfig.providers.gemini.apiKey=a),$(ct),fe(ct.defaultFocusMode),Ee(ct.aiConfig.enabled&&ct.aiConfig.defaultMode)}else Ee(mu.aiConfig.enabled&&mu.aiConfig.defaultMode);re(!0)}catch(Be){Gt.error("App","Failed to load settings",Be),re(!0)}})()},[q,a]),xe.useEffect(()=>{Q&&q.saveSettings(X)},[X,q,Q]);const Xe=(Te,Be,ct)=>{const At=Math.random().toString(36).slice(2,11);B($n=>[...$n,{id:At,type:Te,title:Be,description:ct}]),Gt.info("Notification",Be,{type:Te,description:ct})},Oe=Te=>{B(Be=>Be.filter(ct=>ct.id!==Te))},je=Te=>{$(Be=>({...Be,totalTokenUsage:Be.totalTokenUsage+Te}))},[ze,De]=xe.useState(X.filters),[ce,ve]=xe.useState(X.sort),Ae=xe.useDeferredValue(ze),bt=X.theme==="system"?s?"midnight":"light":X.theme;xe.useEffect(()=>{Gt.info("App","system in dark mode: ",s),P&&(Gt.info("App","set theme on outer container: ",bt),P.setAttribute("data-theme",bt))},[bt,P,s]);const{processedTasks:ae,uniqueTags:Y,uniqueCategories:Se}=Bq(e,Ae,ce),Ne=Wq(e),We=async Te=>{const Be=e.find(At=>At.id===Te.id);if(!Be){console.warn(`Task ${Te.id} not found`);return}const ct={...Te,status:bN(Te)};Gt.info("Task","Updated task",{id:ct.id,title:ct.title});try{await r(ct,Be)}catch(At){Gt.error("Task","Failed to update task",{error:At}),Xe("error","Update Failed","Could not save changes")}},Qe=async Te=>{const Be=e.find(ct=>ct.id===Te);if(!Be){console.warn(`Task ${Te} not found`);return}Xe("info","Task Deleted","Item removed from your list"),Gt.info("Task","Deleted task",{id:Te});try{await o(Te,Be)}catch(ct){Gt.error("Task","Failed to delete task",{error:ct}),Xe("error","Delete Failed","Could not remove task")}},it=Te=>{We(Te),A(null)},_e=async(Te,Be)=>{let ct;const At={id:`new-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,status:"todo",createdAt:new Date().toISOString(),priority:"medium",tags:[],category:X.defaultCategory};if(typeof Te=="string"&&Be)ct={...At,title:Be,dueAt:Te};else if(typeof Te=="object")ct={...At,title:"New Task",...Te},ct.title||(ct.title="Untitled Task");else return;ct.status=bN(ct),Gt.info("Task","Created task",{id:ct.id,title:ct.title});try{await n(ct)}catch($n){Gt.error("Task","Failed to add task",{error:$n}),Xe("error","Add Failed","Could not create task")}},{handleAICommand:yt}=Gq(e,n,r,o,X,_e,Xe,je),ht=Te=>{const Be=Te.every(ct=>ze.statuses.includes(ct))&&ze.statuses.length===Te.length;De(ct=>({...ct,statuses:Be?[]:Te}))},at=Te=>Te.every(Be=>ze.statuses.includes(Be))&&ze.statuses.length===Te.length,St=Te=>{Xe("error","Voice Input Error",Te),Gt.error("Voice",Te)};return S.jsx("div",{ref:_,className:et("tasks-timeline-app bg-paper text-slate-900 font-sans selection:bg-rose-100 selection:text-rose-900 transition-colors duration-300 antialiased",t),children:S.jsx(Y2e,{theme:bt,children:S.jsx(o0e,{value:{tasks:ae,availableCategories:Se,availableTags:Y,onUpdateTask:We,onDeleteTask:Qe,onAddTask:_e,onEditTask:A,onAICommand:yt,onItemClick:c},children:S.jsx(i0e,{value:{settings:X,updateSettings:Te=>$(Be=>({...Be,...Te})),isFocusMode:he,toggleFocusMode:()=>fe(!he),isAiMode:me,toggleAiMode:()=>Ee(!me),filters:ze,onFilterChange:De,sort:ce,onSortChange:ve,onVoiceError:St,onOpenSettings:X.settingButtonOnInputBar===!1?void 0:()=>b(!0)},children:S.jsxs("div",{className:"max-w-3xl mx-auto min-h-screen bg-white shadow-xl shadow-slate-200/50 border-x border-slate-100 pb-10 relative",children:[S.jsxs("div",{className:"sticky top-0 z-40 bg-white/95 backdrop-blur-md border-b border-slate-200/60 shadow-sm transition-all duration-300",children:[S.jsx(JO,{FallbackComponent:X2e,onError:(Te,Be)=>{Gt.error("InputBar","Error caught by boundary",{error:Te,info:Be}),Xe("error","Input Error",Te instanceof Error?Te.message:String(Te))},onReset:()=>{Ee(!1)},children:S.jsx(qX,{})}),S.jsx("div",{className:"px-4 sm:px-6 pb-3",children:S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("button",{onClick:()=>fe(!he),className:et("rounded-lg p-2 flex flex-col items-center justify-center border w-20 shrink-0 transition-all",he?"bg-purple-100 border-purple-400 text-purple-700 shadow-inner":"bg-slate-50 border-slate-100 text-slate-400 hover:text-slate-600 hover:border-slate-200"),title:he?"Turn Off Focus Mode":"Turn On Focus Mode",children:[S.jsx(Je,{name:he?"Minimize2":"Target",size:20,className:"mb-0.5"}),S.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider",children:"Focus"})]}),S.jsxs("div",{className:"grid grid-cols-4 gap-2 flex-1",children:[S.jsxs("button",{onClick:()=>ht(["todo"]),className:et("rounded-lg p-2 flex flex-col items-center justify-center border",at(["todo"])?"bg-slate-100 border-slate-400":"bg-slate-50 border-slate-100"),children:[S.jsx("span",{className:"text-lg font-black text-slate-800 leading-none",children:Ne.todo}),S.jsx("span",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-wider mt-1",children:"To Do"})]}),S.jsxs("button",{onClick:()=>ht(["unplanned"]),className:et("rounded-lg p-2 flex flex-col items-center justify-center border",at(["unplanned"])?"bg-purple-100 border-purple-400":"bg-purple-50 border-purple-100"),children:[S.jsx("span",{className:"text-lg font-black text-purple-600 leading-none",children:Ne.unplanned}),S.jsx("span",{className:"text-[9px] font-bold text-purple-400 uppercase tracking-wider mt-1",children:"Unplanned"})]}),S.jsxs("button",{onClick:()=>ht(["due","overdue"]),className:et("rounded-lg p-2 flex flex-col items-center justify-center border",at(["due","overdue"])?"bg-rose-100 border-rose-400":"bg-rose-50 border-rose-100"),children:[S.jsx("span",{className:"text-lg font-black text-rose-600 leading-none",children:Ne.urgent}),S.jsx("span",{className:"text-[9px] font-bold text-rose-400 uppercase tracking-wider mt-1 truncate w-full text-center",children:"Due & OD"})]}),S.jsxs("button",{onClick:()=>ht(["scheduled","doing"]),className:et("rounded-lg p-2 flex flex-col items-center justify-center border",at(["scheduled","doing"])?"bg-blue-100 border-blue-400":"bg-blue-50 border-blue-100"),children:[S.jsx("span",{className:"text-lg font-black text-blue-600 leading-none",children:Ne.scheduled+Ne.doing}),S.jsx("span",{className:"text-[9px] font-bold text-blue-400 uppercase tracking-wider mt-1",children:"Doing"})]})]})]})})]}),S.jsx("main",{className:"px-4 sm:px-6 pt-6",children:S.jsx(JO,{FallbackComponent:Z2e,onError:(Te,Be)=>{Gt.error("TodoList","Error caught by boundary",{error:Te,info:Be}),Xe("error","Task List Error",Te instanceof Error?Te.message:String(Te))},onReset:()=>{De({tags:[],categories:[],priorities:[],statuses:[],script:"",enableScript:!1})},children:S.jsx(XX,{})})}),S.jsx("footer",{className:"mt-10 py-6 text-center text-slate-400 text-xs border-t border-slate-50",children:S.jsx("p",{children:"Timeline Tasks View"})}),S.jsx("div",{className:"fixed bottom-6 right-6 z-50 flex flex-col gap-2 pointer-events-none",children:S.jsx(sc,{children:V.map(Te=>S.jsx(Aq,{toast:Te,onDismiss:Oe},Te.id))})}),S.jsx(Eq,{isOpen:m,onClose:()=>b(!1),settings:X,onUpdateSettings:$,availableTags:Y,availableCategories:Se,customTabs:f}),S.jsx(JO,{FallbackComponent:q2e,onError:(Te,Be)=>{Gt.error("TaskEditModal","Error in modal",{error:Te,info:Be}),Xe("error","Failed to Edit Task",Te instanceof Error?Te.message:String(Te))},onReset:()=>{A(null)},children:S.jsx(JX,{isOpen:!!C,onClose:()=>A(null),task:C,onSave:it,availableCategories:Se})})]})})})})})};Nn.BacklogSection=ZX,Nn.DaySection=LO,Nn.Documentation=KX,Nn.HelpModal=Z0e,Nn.Icon=Je,Nn.InputBar=qX,Nn.SettingsModal=Eq,Nn.SettingsPage=Iq,Nn.SettingsPageAdvanced=tq,Nn.TaskEditModal=JX,Nn.TaskItem=bO,Nn.TasksTimelineApp=J2e,Nn.ThemeSection=QX,Nn.Toast=Aq,Nn.TodoList=XX,Nn.TypographySection=jX,Nn.ViewSection=eq,Nn.YearSection=YX,Nn.cn=et,Nn.deriveTaskStatus=bN,Nn.useAIAgent=Gq,Nn.usePortalContainer=xX,Nn.useTaskFiltering=Bq,Nn.useTaskStats=Wq,Nn.useVoiceInput=wO,Object.defineProperty(Nn,Symbol.toStringTag,{value:"Module"})}));
|