@medway-ui/core 1.16.4 → 1.16.6
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.d.mts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as H from'react';import {createContext,forwardRef,createElement,Children,isValidElement,useContext,useState,useMemo,useEffect,useRef,useId,useCallback,cloneElement}from'react';import {cva}from'class-variance-authority';import {Mail,CloseMd,ChevronDown,Check,User,ChevronRightMd,MoreHorizontal,TimeRemaining,RemoveMinus,ChevronRight,Calendar,ChevronLeftMd,Lock,Hide,Show,TriangleWarning,ChevronLeftDuo,ChevronRightDuo,Circle,Info,CheckboxFill,Warning,ArrowRightMd,ChevronUp,HamburgerMd,EditPencil,OctagonWarning,CircleCheck,SearchMagnifyingGlass}from'@medway-ui/icons';import {clsx}from'clsx';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {Toast,Slot,AlertDialog,Separator,Dialog,Avatar,Progress,Checkbox,Collapsible,DropdownMenu,Label,RadioGroup,Tooltip,ScrollArea,Select,Tabs,Switch,Popover}from'radix-ui';import {motion,AnimatePresence}from'framer-motion';var gl=Object.defineProperty,xl=Object.defineProperties;var hl=Object.getOwnPropertyDescriptors;var qa=Object.getOwnPropertySymbols;var wo=Object.prototype.hasOwnProperty,Po=Object.prototype.propertyIsEnumerable;var So=(e,a,o)=>a in e?gl(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,l=(e,a)=>{for(var o in a||(a={}))wo.call(a,o)&&So(e,o,a[o]);if(qa)for(var o of qa(a))Po.call(a,o)&&So(e,o,a[o]);return e},c=(e,a)=>xl(e,hl(a));var d=(e,a)=>{var o={};for(var t in e)wo.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&qa)for(var t of qa(e))a.indexOf(t)<0&&Po.call(e,t)&&(o[t]=e[t]);return o};var bl=(e,a)=>{let o=new Array(e.length+a.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<a.length;t++)o[e.length+t]=a[t];return o},Ll=(e,a)=>({classGroupId:e,validator:a}),Fo=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var To=[],vl="arbitrary..",Cl=e=>{let a=kl(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Il(i);let u=i.split("-"),f=u[0]===""&&u.length>1?1:0;return Eo(u,f,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let f=t[i],p=o[i];return f?p?bl(p,f):f:p||To}return o[i]||To}}},Eo=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],s=o.nextPart.get(r);if(s){let p=Eo(e,a+1,s);if(p)return p}let i=o.validators;if(i===null)return;let u=a===0?e.join("-"):e.slice(a).join("-"),f=i.length;for(let p=0;p<f;p++){let m=i[p];if(m.validator(u))return m.classGroupId}},Il=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),o=a.indexOf(":"),t=a.slice(0,o);return t?vl+t:void 0})(),kl=e=>{let{theme:a,classGroups:o}=e;return yl(o,a)},yl=(e,a)=>{let o=Fo();for(let t in e){let r=e[t];At(r,o,t,a);}return o},At=(e,a,o,t)=>{let r=e.length;for(let s=0;s<r;s++){let i=e[s];Sl(i,a,o,t);}},Sl=(e,a,o,t)=>{if(typeof e=="string"){wl(e,a,o);return}if(typeof e=="function"){Pl(e,a,o,t);return}Tl(e,a,o,t);},wl=(e,a,o)=>{let t=e===""?a:Oo(a,e);t.classGroupId=o;},Pl=(e,a,o,t)=>{if(Al(e)){At(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Ll(o,e));},Tl=(e,a,o,t)=>{let r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){let[u,f]=r[i];At(f,Oo(a,u),o,t);}},Oo=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let s=0;s<r;s++){let i=t[s],u=o.nextPart.get(i);u||(u=Fo(),o.nextPart.set(i,u)),o=u;}return o},Al=e=>"isThemeGetter"in e&&e.isThemeGetter===true,Rl=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(s,i)=>{o[s]=i,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(s){let i=o[s];if(i!==void 0)return i;if((i=t[s])!==void 0)return r(s,i),i},set(s,i){s in o?o[s]=i:r(s,i);}}};var Dl=[],Ao=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),Ml=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let s=[],i=0,u=0,f=0,p,m=r.length;for(let D=0;D<m;D++){let N=r[D];if(i===0&&u===0){if(N===":"){s.push(r.slice(f,D)),f=D+1;continue}if(N==="/"){p=D;continue}}N==="["?i++:N==="]"?i--:N==="("?u++:N===")"&&u--;}let h=s.length===0?r:r.slice(f),b=h,I=false;h.endsWith("!")?(b=h.slice(0,-1),I=true):h.startsWith("!")&&(b=h.slice(1),I=true);let C=p&&p>f?p-f:void 0;return Ao(s,I,b,C)};if(a){let r=a+":",s=t;t=i=>i.startsWith(r)?s(i.slice(r.length)):Ao(Dl,false,i,void 0,true);}if(o){let r=t;t=s=>o({className:s,parseClassName:r});}return t},Bl=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let s=0;s<o.length;s++){let i=o[s],u=i[0]==="[",f=a.has(i);u||f?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(i)):r.push(i);}return r.length>0&&(r.sort(),t.push(...r)),t}},Nl=e=>l({cache:Rl(e.cacheSize),parseClassName:Ml(e),sortModifiers:Bl(e)},Cl(e)),Fl=/\s+/,El=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:s}=a,i=[],u=e.trim().split(Fl),f="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:h,modifiers:b,hasImportantModifier:I,baseClassName:C,maybePostfixModifierPosition:D}=o(m);if(h){f=m+(f.length>0?" "+f:f);continue}let N=!!D,V=t(N?C.substring(0,D):C);if(!V){if(!N){f=m+(f.length>0?" "+f:f);continue}if(V=t(C),!V){f=m+(f.length>0?" "+f:f);continue}N=false;}let S=b.length===0?"":b.length===1?b[0]:s(b).join(":"),A=I?S+"!":S,X=A+V;if(i.indexOf(X)>-1)continue;i.push(X);let g=r(V,N);for(let k=0;k<g.length;++k){let B=g[k];i.push(A+B);}f=m+(f.length>0?" "+f:f);}return f},Ol=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=Ho(o))&&(r&&(r+=" "),r+=t);return r},Ho=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=Ho(e[t]))&&(o&&(o+=" "),o+=a);return o},Ro=(e,...a)=>{let o,t,r,s,i=f=>{let p=a.reduce((m,h)=>h(m),e());return o=Nl(p),t=o.cache.get,r=o.cache.set,s=u,u(f)},u=f=>{let p=t(f);if(p)return p;let m=El(f,o);return r(f,m),m};return s=i,(...f)=>s(Ol(...f))},Hl=[],se=e=>{let a=o=>o[e]||Hl;return a.isThemeGetter=true,a},zo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ql=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ul=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_l=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>zl.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),ze=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith("%")&&W(e.slice(0,-1)),De=e=>ql.test(e),Uo=()=>true,Wl=e=>Ul.test(e)&&!Vl.test(e),Rt=()=>false,Xl=e=>_l.test(e),Kl=e=>Gl.test(e),jl=e=>!T(e)&&!R(e),Zl=e=>qe(e,Go,Rt),T=e=>zo.test(e),Ge=e=>qe(e,Wo,Wl),Do=e=>qe(e,on,W),Ql=e=>qe(e,Ko,Uo),$l=e=>qe(e,Xo,Rt),Mo=e=>qe(e,Vo,Rt),Jl=e=>qe(e,_o,Kl),Ua=e=>qe(e,jo,Xl),R=e=>qo.test(e),ha=e=>We(e,Wo),Yl=e=>We(e,Xo),Bo=e=>We(e,Vo),en=e=>We(e,Go),an=e=>We(e,_o),Va=e=>We(e,jo,true),tn=e=>We(e,Ko,true),qe=(e,a,o)=>{let t=zo.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},We=(e,a,o=false)=>{let t=qo.exec(e);return t?t[1]?a(t[1]):o:false},Vo=e=>e==="position"||e==="percentage",_o=e=>e==="image"||e==="url",Go=e=>e==="length"||e==="size"||e==="bg-size",Wo=e=>e==="length",on=e=>e==="number",Xo=e=>e==="family-name",Ko=e=>e==="number"||e==="weight",jo=e=>e==="shadow";var No=()=>{let e=se("color"),a=se("font"),o=se("text"),t=se("font-weight"),r=se("tracking"),s=se("leading"),i=se("breakpoint"),u=se("container"),f=se("spacing"),p=se("radius"),m=se("shadow"),h=se("inset-shadow"),b=se("text-shadow"),I=se("drop-shadow"),C=se("blur"),D=se("perspective"),N=se("aspect"),V=se("ease"),S=se("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],g=()=>[...X(),R,T],k=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],v=()=>[R,T,f],q=()=>[He,"full","auto",...v()],K=()=>[ze,"none","subgrid",R,T],ee=()=>["auto",{span:["full",ze,R,T]},ze,R,T],re=()=>[ze,"auto",R,T],be=()=>["auto","min","max","fr",R,T],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...v()],fe=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],we=()=>[He,"screen","full","dvw","lvw","svw","min","max","fit",...v()],ce=()=>[He,"screen","full","lh","dvh","lvh","svh","min","max","fit",...v()],w=()=>[e,R,T],ne=()=>[...X(),Bo,Mo,{position:[R,T]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",en,Zl,{size:[R,T]}],z=()=>[Tt,ha,Ge],y=()=>["","none","full",p,R,T],P=()=>["",W,ha,Ge],_=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[W,Tt,Bo,Mo],M=()=>["","none",C,R,T],L=()=>["none",W,R,T],F=()=>["none",W,R,T],Z=()=>[W,R,T],pe=()=>[He,"full",...v()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[De],breakpoint:[De],color:[Uo],container:[De],"drop-shadow":[De],ease:["in","out","in-out"],font:[jl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[De],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[De],shadow:[De],spacing:["px",W],text:[De],"text-shadow":[De],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,T,R,N]}],container:["container"],columns:[{columns:[W,T,R,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{"inset-s":q(),start:q()}],end:[{"inset-e":q(),end:q()}],"inset-bs":[{"inset-bs":q()}],"inset-be":[{"inset-be":q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[ze,"auto",R,T]}],basis:[{basis:[He,"full","auto",u,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,He,"auto","initial","none",T]}],grow:[{grow:["",W,R,T]}],shrink:[{shrink:["",W,R,T]}],order:[{order:[ze,"first","last","none",R,T]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":be()}],"auto-rows":[{"auto-rows":be()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pbs:[{pbs:v()}],pbe:[{pbe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...we()]}],"min-inline-size":[{"min-inline":["auto",...we()]}],"max-inline-size":[{"max-inline":["none",...we()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[u,"screen",...fe()]}],"min-w":[{"min-w":[u,"screen","none",...fe()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",o,ha,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,tn,Ql]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tt,T]}],"font-family":[{font:[Yl,$l,a]}],"font-features":[{"font-features":[T]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,R,T]}],"line-clamp":[{"line-clamp":[W,"none",R,Do]}],leading:[{leading:[s,...v()]}],"list-image":[{"list-image":["none",R,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",R,Ge]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[W,"auto",R,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:Re()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ze,R,T],radial:["",R,T],conic:[ze,R,T]},an,Jl]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:y()}],"rounded-s":[{"rounded-s":y()}],"rounded-e":[{"rounded-e":y()}],"rounded-t":[{"rounded-t":y()}],"rounded-r":[{"rounded-r":y()}],"rounded-b":[{"rounded-b":y()}],"rounded-l":[{"rounded-l":y()}],"rounded-ss":[{"rounded-ss":y()}],"rounded-se":[{"rounded-se":y()}],"rounded-ee":[{"rounded-ee":y()}],"rounded-es":[{"rounded-es":y()}],"rounded-tl":[{"rounded-tl":y()}],"rounded-tr":[{"rounded-tr":y()}],"rounded-br":[{"rounded-br":y()}],"rounded-bl":[{"rounded-bl":y()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._(),"hidden","none"]}],"divide-style":[{divide:[..._(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[..._(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,R,T]}],"outline-w":[{outline:["",W,ha,Ge]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",m,Va,Ua]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",h,Va,Ua]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[W,Ge]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",b,Va,Ua]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[W,R,T]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[R,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":X()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:Re()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,T]}],filter:[{filter:["","none",R,T]}],blur:[{blur:M()}],brightness:[{brightness:[W,R,T]}],contrast:[{contrast:[W,R,T]}],"drop-shadow":[{"drop-shadow":["","none",I,Va,Ua]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",W,R,T]}],"hue-rotate":[{"hue-rotate":[W,R,T]}],invert:[{invert:["",W,R,T]}],saturate:[{saturate:[W,R,T]}],sepia:[{sepia:["",W,R,T]}],"backdrop-filter":[{"backdrop-filter":["","none",R,T]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[W,R,T]}],"backdrop-contrast":[{"backdrop-contrast":[W,R,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,R,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,R,T]}],"backdrop-invert":[{"backdrop-invert":["",W,R,T]}],"backdrop-opacity":[{"backdrop-opacity":[W,R,T]}],"backdrop-saturate":[{"backdrop-saturate":[W,R,T]}],"backdrop-sepia":[{"backdrop-sepia":["",W,R,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",R,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",R,T]}],ease:[{ease:["linear","initial",V,R,T]}],delay:[{delay:[W,R,T]}],animate:[{animate:["none",S,R,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,R,T]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[R,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mbs":[{"scroll-mbs":v()}],"scroll-mbe":[{"scroll-mbe":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pbs":[{"scroll-pbs":v()}],"scroll-pbe":[{"scroll-pbe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R,T]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[W,ha,Ge,Do]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rn=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:s={}})=>(ba(e,"cacheSize",a),ba(e,"prefix",o),ba(e,"experimentalParseClassName",t),_a(e.theme,s.theme),_a(e.classGroups,s.classGroups),_a(e.conflictingClassGroups,s.conflictingClassGroups),_a(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ba(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Ga(e.theme,r.theme),Ga(e.classGroups,r.classGroups),Ga(e.conflictingClassGroups,r.conflictingClassGroups),Ga(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Zo(e,r,"orderSensitiveModifiers"),e),ba=(e,a,o)=>{o!==void 0&&(e[a]=o);},_a=(e,a)=>{if(a)for(let o in a)ba(e,o,a[o]);},Ga=(e,a)=>{if(a)for(let o in a)Zo(e,a,o);},Zo=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},Qo=(e,...a)=>typeof e=="function"?Ro(No,e,...a):Ro(()=>rn(No(),e),...a);var ln=Qo({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-md","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"]}}});function n(...e){return ln(clsx(e))}var Dt=createContext(null),ar=cva("relative flex flex-col items-center justify-between gap-5 w-full rounded-md px-4 py-3 text-sm has-[>svg]:gap-x-9 gap-y-1 items-center [&>svg]:translate-y-0 [&>svg]:text-current lg:flex-row",{variants:{variant:{regular:"[background:linear-gradient(0deg,_var(--color-primary-background-soft)_0%,_var(--color-primary-background-soft)_100%),_var(--color-surface-card)] text-primary-foreground [&>svg]:text-primary-foreground",emphasis:"[background:linear-gradient(0deg,_var(--color-secondary-background-soft)_0%,_var(--color-secondary-background-soft)_100%),_var(--color-surface-card)] text-secondary-foreground [&>svg]:text-secondary-foreground",success:"[background:linear-gradient(0deg,_var(--color-green-background-soft)_0%,_var(--color-green-background-soft)_100%),_var(--color-surface-card)] text-green-foreground [&>svg]:text-green-foreground",warning:"[background:linear-gradient(0deg,_var(--color-yellow-background-soft)_0%,_var(--color-yellow-background-soft)_100%),_var(--color-surface-card)] text-yellow-foreground [&>svg]:text-yellow-foreground",error:"[background:linear-gradient(0deg,_var(--color-red-background-soft)_0%,_var(--color-red-background-soft)_100%),_var(--color-surface-card)] text-red-foreground [&>svg]:text-red-foreground"}},defaultVariants:{variant:"regular"}});function un(s){var i=s,{className:e,variant:a="regular",onClose:o,children:t}=i,r=d(i,["className","variant","onClose","children"]);let u=Children.toArray(t).some(p=>isValidElement(p)&&p.type===or),f=Children.toArray(t).some(p=>isValidElement(p)&&p.type===tr);return jsx(Dt.Provider,{value:{variant:a,hasDescription:u,hasTitle:f,onClose:o},children:jsxs("div",c(l({"data-slot":"alert",role:"alert",className:n(ar({variant:a}),e)},r),{children:[t,o&&jsx(CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function fn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-container",className:n("flex gap-3",e)},a))}function cn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-content",className:n("flex flex-col gap-1",e)},a))}function pn(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",c(l({"data-slot":"alert-icon",className:n("size-6",e)},o),{children:a}))}function tr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-title",className:n("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function or(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-description",className:n("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function mn(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Dt),s=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsx("div",l({"data-slot":"alert-actions",className:n("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!s||!i)&&u&&"lg:right-5",e)},a))}var rr=cva("inline-flex items-center justify-center rounded-pill px-3 py-2 min-h-10 text-sm font-semibold transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:brightness-90",{variants:{variant:{regular:"text-current",basic:"text-current"},alertVariant:{regular:"",emphasis:"",success:"",warning:"",error:""}},compoundVariants:[{variant:"regular",alertVariant:"regular",class:"bg-primary-background-soft"},{variant:"regular",alertVariant:"emphasis",class:"bg-secondary-background-soft"},{variant:"regular",alertVariant:"success",class:"bg-green-background-soft"},{variant:"regular",alertVariant:"warning",class:"bg-yellow-background-soft"},{variant:"regular",alertVariant:"error",class:"bg-red-background-soft"}],defaultVariants:{variant:"regular",alertVariant:"regular"}});function gn(t){var r=t,{className:e,variant:a}=r,o=d(r,["className","variant"]);let s=useContext(Dt),i=(s==null?void 0:s.variant)||"regular";return jsx("button",l({className:n(rr({variant:a,alertVariant:i}),e)},o))}function Mt({size:e=24,className:a}){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n("animate-spin",a),children:jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var vn={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},Cn={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},lr=cva("inline-flex items-center justify-center rounded-pill border font-semibold w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:pointer-events-none overflow-hidden border-transparent px-2",{variants:{variant:{regular:"bg-secondary-background-fill text-secondary-foreground-onfill",error:"bg-red-background-soft text-red-stroke-emphasis",warning:"bg-yellow-background-soft text-yellow-foreground",freemium:"[background:radial-gradient(135.09%_111.8%_at_0%_50%,rgba(24,98,188,0.02)_0%,rgba(0,32,91,0)_100%),linear-gradient(46deg,rgba(62,218,199,0.56)_6.54%,rgba(24,98,188,0.17)_85.21%),var(--color-primary)] text-white"},size:{sm:"min-w-4 text-xxs [&>svg]:size-2.5",md:"min-w-5 text-xs [&>svg]:size-3",lg:"min-w-6 text-xs [&>svg]:size-3.5",xl:"min-w-7 text-sm [&>svg]:size-4"}},defaultVariants:{variant:"regular",size:"md"}});function Xe(u){var f=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:s=false}=f,i=d(f,["className","variant","size","icon","animation","asChild"]);let p=s?Slot.Slot:"span",m=Children.count(i.children)>0,h=!!t&&!m,b=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",I=/^[A-Za-z0-9]$/.test(b),C=/^[A-Za-z0-9]{2,3}$/.test(b),D=/^\d{1,2}\S$/.test(b),N=C||D;return jsxs(p,c(l({"data-slot":"badge",className:n(lr({variant:a,size:o}),(h||I)&&vn[o||"md"],!h&&N&&Cn[o||"md"],r==="shine"&&"animate-shine bg-[linear-gradient(135deg,transparent_25%,var(--color-white-24)_50%,transparent_75%,transparent_100%)] bg-[length:250%_250%,100%_100%] bg-no-repeat",e)},i),{children:[t,i.children]}))}var Sn={sm:"!h-8 !min-h-8 !w-8 !px-3 !py-2",md:"!h-10 !min-h-10 !w-10 !px-[14px] !py-[10px]",lg:"!h-12 !min-h-12 !w-12 !p-3",xl:"!h-14 !min-h-14 !w-14 !p-3"},nr={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},wn={sm:"sm",md:"md",lg:"md",xl:"lg"},La=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill text-sm font-semibold whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","regular-basic":"bg-transparent text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill hover:bg-secondary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","emphasis-basic":"bg-transparent text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",error:"bg-red-background-fill text-red-foreground-onfill hover:bg-red-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","error-basic":"bg-transparent text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",warning:"bg-yellow-background-fill text-yellow-foreground-onfill hover:bg-yellow-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","warning-basic":"bg-transparent text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",success:"bg-green-background-fill text-green-foreground-onfill hover:bg-green-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","success-basic":"bg-transparent text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",outlined:"border border-gray-stroke-muted bg-transparent text-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function Le(h){var b=h,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:s,iconLeft:i,badge:u,loading:f=false,alert:p}=b,m=d(b,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let I=r?Slot.Slot:"button",C=A=>A!=null&&A!==0&&A!==""&&A!=="0",D=A=>A,N=!m.children&&(i||s||p),V=()=>p?jsxs("span",{className:n("relative mr-1 flex size-2.5",nr[t||"md"]),children:[jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsx("span",{className:n("relative inline-flex size-2.5 rounded-full",nr[t||"md"]),style:{backgroundColor:p}})]}):null,S=()=>f?jsxs(Fragment,{children:[jsx(Mt,{className:"[grid-area:stack]"}),jsx("span",{className:n("[grid-area:stack]",f&&"invisible"),children:m.children})]}):jsxs(Fragment,{children:[p?V():i&&D(i),m.children&&jsx("span",{children:m.children}),s&&D(s)]});return jsxs("div",{className:n("relative",a),children:[C(u)&&jsx(Xe,{size:wn[t||"md"],variant:"regular",className:n("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsx(I,c(l({disabled:f,"aria-busy":f,"aria-live":f?"polite":void 0,"data-slot":"button",className:n(N&&Sn[t||"md"],f&&"!inline-grid",La({variant:o,size:t,className:e}))},m),{children:S()}))]})}function Pn(a){var e=d(a,[]);return jsx(AlertDialog.Root,l({"data-slot":"alert-dialog"},e))}function Tn(a){var e=d(a,[]);return jsx(AlertDialog.Trigger,l({"data-slot":"alert-dialog-trigger"},e))}function ir(a){var e=d(a,[]);return jsx(AlertDialog.Portal,l({"data-slot":"alert-dialog-portal"},e))}function ur(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Overlay,l({"data-slot":"alert-dialog-overlay",className:n("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function An(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs(ir,{children:[jsx(ur,{}),jsx(AlertDialog.Content,l({"data-slot":"alert-dialog-content",className:n("fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border bg-surface-elevated p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},a))]})}function Rn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",e)},a))}function Dn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-dialog-footer",className:n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function Mn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Title,l({"data-slot":"alert-dialog-title",className:n("text-lg font-semibold",e)},a))}function Bn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Description,l({"data-slot":"alert-dialog-description",className:n("text-sm text-foreground",e)},a))}function Nn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Action,l({className:n(La(),e)},a))}function Fn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Cancel,l({className:n(La({variant:"outlined"}),e)},a))}var On=0;function Hn(){return `medway-id-${++On}`}var zn=H.useId||(()=>{});function ke(){let e=zn(),[a]=H.useState(()=>e!=null?e:Hn());return a}var qn=/[\\\/_+.#"@\[\(\{&]/,Un=/[\\\/_+.#"@\[\(\{&]/g,Vn=/[\s-]/,cr=/[\s-]/g;function Bt(e,a,o,t,r,s,i){if(s===a.length)return r===e.length?1:.99;let u=`${r},${s}`;if(i[u]!==void 0)return i[u];let f=t.charAt(s),p=o.indexOf(f,r),m=0,h,b,I,C;for(;p>=0;)h=Bt(e,a,o,t,p+1,s+1,i),h>m&&(p===r?h*=1:qn.test(e.charAt(p-1))?(h*=.8,I=e.slice(r,p-1).match(Un),I&&r>0&&(h*=Math.pow(.999,I.length))):Vn.test(e.charAt(p-1))?(h*=.9,C=e.slice(r,p-1).match(cr),C&&r>0&&(h*=Math.pow(.999,C.length))):(h*=.17,r>0&&(h*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(s)&&(h*=.9999)),(h<.1&&o.charAt(p-1)===t.charAt(s+1)||t.charAt(s+1)===t.charAt(s)&&o.charAt(p-1)!==t.charAt(s))&&(b=Bt(e,a,o,t,p+1,s+2,i),b*.1>h&&(h=b*.1)),h>m&&(m=h),p=o.indexOf(f,p+1);return i[u]=m,m}function fr(e){return e.toLowerCase().replace(cr," ")}function pr(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,Bt(e,a,fr(e),fr(a),0,0,{})}var va='[cmdk-group=""]',Nt='[cmdk-group-items=""]',_n='[cmdk-group-heading=""]',gr='[cmdk-item=""]',mr=`${gr}:not([aria-disabled="true"])`,Ft="cmdk-item-select",ta="data-value",Gn=(e,a,o)=>pr(e,a,o),xr=H.createContext(void 0),Ia=()=>H.useContext(xr),hr=H.createContext(void 0),Et=()=>H.useContext(hr),br=H.createContext(void 0),Lr=H.forwardRef((e,a)=>{let o=oa(()=>{var x,z;return {search:"",value:(z=(x=e.value)!=null?x:e.defaultValue)!=null?z:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=oa(()=>new Set),r=oa(()=>new Map),s=oa(()=>new Map),i=oa(()=>new Set),u=Pr(e),Re=e,{label:f,children:p,value:m,onValueChange:h,filter:b,shouldFilter:I,loop:C,disablePointerSelection:D=false,vimBindings:N=true}=Re,V=d(Re,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),S=ke(),A=ke(),X=ke(),g=H.useRef(null),k=Kn();Ue(()=>{if(m!==void 0){let x=m.trim();o.current.value=x,B.emit();}},[m]),Ue(()=>{k(6,be);},[]);let B=H.useMemo(()=>({subscribe:x=>(i.current.add(x),()=>i.current.delete(x)),snapshot:()=>o.current,setState:(x,z,y)=>{var P,_,J,G,M,L;if(!Object.is(o.current[x],z)){if(o.current[x]=z,x==="search")re(),K(),k(1,ee);else if(x==="value"){if((P=document.activeElement)!=null&&P.hasAttribute("cmdk-input")||(_=document.activeElement)!=null&&_.hasAttribute("cmdk-root")){let F=document.getElementById(X);F?F.focus():(J=document.getElementById(S))==null||J.focus();}if(k(7,()=>{var F;o.current.selectedItemId=(F=ie())==null?void 0:F.id,B.emit();}),y||k(5,be),((G=u.current)==null?void 0:G.value)!==void 0){let F=z!=null?z:"";(L=(M=u.current).onValueChange)==null||L.call(M,F);return}}B.emit();}},emit:()=>{i.current.forEach(x=>x());}}),[]),v=H.useMemo(()=>({value:(x,z,y)=>{var P;z!==((P=s.current.get(x))==null?void 0:P.value)&&(s.current.set(x,{value:z,keywords:y}),o.current.filtered.items.set(x,q(z,y)),k(2,()=>{K(),B.emit();}));},item:(x,z)=>(t.current.add(x),z&&(r.current.has(z)?r.current.get(z).add(x):r.current.set(z,new Set([x]))),k(3,()=>{re(),K(),o.current.value||ee(),B.emit();}),()=>{s.current.delete(x),t.current.delete(x),o.current.filtered.items.delete(x);let y=ie();k(4,()=>{re(),(y==null?void 0:y.getAttribute("id"))===x&&ee(),B.emit();});}),group:x=>(r.current.has(x)||r.current.set(x,new Set),()=>{s.current.delete(x),r.current.delete(x);}),filter:()=>u.current.shouldFilter!==false,label:f||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:S,inputId:X,labelId:A,listInnerRef:g}),[]);function q(x,z){var P,_;let y=(_=(P=u.current)==null?void 0:P.filter)!=null?_:Gn;return x?y(x,o.current.search,z):0}function K(){if(!o.current.search||u.current.shouldFilter===false)return;let x=o.current.filtered.items,z=[];o.current.filtered.groups.forEach(P=>{let _=r.current.get(P),J=0;_==null||_.forEach(G=>{let M=x.get(G);J=Math.max(M!=null?M:0,J);}),z.push([P,J]);});let y=g.current;le().sort((P,_)=>{var M,L;let J=P.getAttribute("id"),G=_.getAttribute("id");return ((M=x.get(G))!=null?M:0)-((L=x.get(J))!=null?L:0)}).forEach(P=>{let _=P.closest(Nt);_?_.appendChild(P.parentElement===_?P:P.closest(`${Nt} > *`)):y==null||y.appendChild(P.parentElement===y?P:P.closest(`${Nt} > *`));}),z.sort((P,_)=>_[1]-P[1]).forEach(P=>{var J,G;let _=(J=g.current)==null?void 0:J.querySelector(`${va}[${ta}="${encodeURIComponent(P[0])}"]`);(G=_==null?void 0:_.parentElement)==null||G.appendChild(_);});}function ee(){let x=le().find(y=>y.getAttribute("aria-disabled")!=="true"),z=x==null?void 0:x.getAttribute(ta);B.setState("value",z||void 0);}function re(){var z,y,P,_,J;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let x=0;for(let G of t.current){let M=(y=(z=s.current.get(G))==null?void 0:z.value)!=null?y:"",L=(_=(P=s.current.get(G))==null?void 0:P.keywords)!=null?_:[],F=q(M,L);o.current.filtered.items.set(G,F),F>0&&x++;}for(let[G,M]of r.current)for(let L of M)if(((J=o.current.filtered.items.get(L))!=null?J:0)>0){o.current.filtered.groups.add(G);break}o.current.filtered.count=x;}function be(){var z,y,P;let x=ie();x&&(((z=x.parentElement)==null?void 0:z.firstChild)===x&&((P=(y=x.closest(va))==null?void 0:y.querySelector(_n))==null||P.scrollIntoView({block:"nearest"})),x.scrollIntoView({block:"nearest"}));}function ie(){var x;return (x=g.current)==null?void 0:x.querySelector(`${gr}[aria-selected="true"]`)}function le(){var x;return Array.from(((x=g.current)==null?void 0:x.querySelectorAll(mr))||[])}function Q(x){let y=le()[x];y&&B.setState("value",y.getAttribute(ta));}function fe(x){var J;let z=ie(),y=le(),P=y.findIndex(G=>G===z),_=y[P+x];(J=u.current)!=null&&J.loop&&(_=P+x<0?y[y.length-1]:P+x===y.length?y[0]:y[P+x]),_&&B.setState("value",_.getAttribute(ta));}function we(x){let z=ie(),y=z==null?void 0:z.closest(va),P;for(;y&&!P;)y=x>0?Wn(y,va):Xn(y,va),P=y==null?void 0:y.querySelector(mr);P?B.setState("value",P.getAttribute(ta)):fe(x);}let ce=()=>Q(le().length-1),w=x=>{x.preventDefault(),x.metaKey?ce():x.altKey?we(1):fe(1);},ne=x=>{x.preventDefault(),x.metaKey?Q(0):x.altKey?we(-1):fe(-1);};return jsxs("div",c(l({ref:a,tabIndex:-1},V),{"cmdk-root":"",onKeyDown:x=>{var y;(y=V.onKeyDown)==null||y.call(V,x);let z=x.nativeEvent.isComposing||x.keyCode===229;if(!(x.defaultPrevented||z))switch(x.key){case "n":case "j":{N&&x.ctrlKey&&w(x);break}case "ArrowDown":{w(x);break}case "p":case "k":{N&&x.ctrlKey&&ne(x);break}case "ArrowUp":{ne(x);break}case "Home":{x.preventDefault(),Q(0);break}case "End":{x.preventDefault(),ce();break}case "Enter":{x.preventDefault();let P=ie();if(P){let _=new Event(Ft);P.dispatchEvent(_);}}}},children:[jsx("label",{"cmdk-label":"",htmlFor:v.inputId,id:v.labelId,style:Zn,children:f}),Ka(e,x=>jsx(hr.Provider,{value:B,children:jsx(xr.Provider,{value:v,children:x})}))]}))});Lr.displayName="Command";var vr=H.forwardRef((e,a)=>{var X,g;let o=ke(),t=H.useRef(null),r=H.useContext(br),s=Ia(),i=Pr(e),u=(g=(X=i.current)==null?void 0:X.forceMount)!=null?g:r==null?void 0:r.forceMount;Ue(()=>{if(!u)return s.item(o,r==null?void 0:r.id)},[u]);let f=Tr(o,t,[e.value,e.children,t],e.keywords),p=Et(),m=Ve(B=>B.value&&B.value===f.current),h=Ve(B=>{var v;return u||s.filter()===false?true:B.search?((v=B.filtered.items.get(o))!=null?v:0)>0:true});H.useEffect(()=>{let B=t.current;if(!(!B||e.disabled))return B.addEventListener(Ft,b),()=>B.removeEventListener(Ft,b)},[h,e.onSelect,e.disabled]);function b(){var B,v,q;I(),(q=(v=i.current).onSelect)==null||q.call(v,(B=f.current)!=null?B:"");}function I(){var B;p.setState("value",(B=f.current)!=null?B:"",true);}if(!h)return null;let k=e,{disabled:C,value:D,onSelect:N,forceMount:V,keywords:S}=k,A=d(k,["disabled","value","onSelect","forceMount","keywords"]);return jsx("div",c(l({ref:Ca(t,a)},A),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!m,"data-disabled":!!C,"data-selected":!!m,onPointerMove:C||s.getDisablePointerSelection()?void 0:I,onClick:C?void 0:b,children:e.children}))});vr.displayName="Item";var Cr=H.forwardRef((e,a)=>{let I=e,{heading:o,children:t,forceMount:r}=I,s=d(I,["heading","children","forceMount"]),i=ke(),u=H.useRef(null),f=H.useRef(null),p=ke(),m=Ia(),h=Ve(C=>r||m.filter()===false?true:C.search?C.filtered.groups.has(i):true);Ue(()=>m.group(i),[]),Tr(i,u,[e.value,e.heading,f]);let b=H.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxs("div",c(l({ref:Ca(u,a)},s),{"cmdk-group":"",role:"presentation",hidden:h?void 0:true,children:[o&&jsx("div",{ref:f,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),Ka(e,C=>jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsx(br.Provider,{value:b,children:C})}))]}))});Cr.displayName="Group";var Ir=H.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=d(i,["alwaysRender"]),r=H.useRef(null),s=Ve(u=>!u.search);return !o&&!s?null:jsx("div",c(l({ref:Ca(r,a)},t),{"cmdk-separator":"",role:"separator"}))});Ir.displayName="Separator";var kr=H.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=d(p,["onValueChange"]),r=e.value!=null,s=Et(),i=Ve(m=>m.search),u=Ve(m=>m.selectedItemId),f=Ia();return H.useEffect(()=>{e.value!=null&&s.setState("search",e.value);},[e.value]),jsx("input",c(l({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":u,id:f.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||s.setState("search",m.target.value),o==null||o(m.target.value);}}))});kr.displayName="Input";var yr=H.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=d(p,["children","label"]),s=H.useRef(null),i=H.useRef(null),u=Ve(m=>m.selectedItemId),f=Ia();return H.useEffect(()=>{if(i.current&&s.current){let m=i.current,h=s.current,b,I=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let C=m.offsetHeight;h.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px");});});return I.observe(m),()=>{cancelAnimationFrame(b),I.unobserve(m);}}},[]),H.useEffect(()=>{let m=s.current;if(!m)return;let h=b=>{m.contains(b.target)&&b.stopPropagation();};return document.addEventListener("wheel",h,{capture:true}),()=>{document.removeEventListener("wheel",h,{capture:true});}},[]),jsx("div",c(l({ref:Ca(s,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:f.listId,children:Ka(e,m=>jsx("div",{ref:Ca(i,f.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});yr.displayName="List";var Sr=H.forwardRef((e,a)=>Ve(t=>t.filtered.count===0)?jsx("div",c(l({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);Sr.displayName="Empty";var wr=H.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,s=d(i,["progress","children","label"]);return jsx("div",c(l({ref:a},s),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:Ka(e,u=>jsx("div",{"aria-hidden":true,children:u}))}))});wr.displayName="Loading";var je=Object.assign(Lr,{List:yr,Item:vr,Input:kr,Group:Cr,Separator:Ir,Empty:Sr,Loading:wr});function Wn(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function Xn(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function Pr(e){let a=H.useRef(e);return Ue(()=>{a.current=e;}),a}var Ue=typeof window=="undefined"?H.useEffect:H.useLayoutEffect;function oa(e){let a=H.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function Ve(e){let a=Et(),[,o]=H.useState({}),t=H.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),Ue(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function Tr(e,a,o,t=[]){let r=H.useRef(void 0),s=Ia();return Ue(()=>{var f;let i=(()=>{var p;for(let m of o){if(typeof m=="string")return m.trim();if(typeof m=="object"&&m!==null&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());s.value(e,i!=null?i:"",u),(f=a.current)==null||f.setAttribute(ta,i!=null?i:""),r.current=i;}),r}var Kn=()=>{let[e,a]=H.useState(),o=oa(()=>new Map);return Ue(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function jn(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function Ka({asChild:e,children:a},o){return e&&H.isValidElement(a)?H.cloneElement(jn(a),{ref:a.ref},o(a.props.children)):o(a)}function Ca(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var Zn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ra(r){var s=r,{className:e,orientation:a="horizontal",decorative:o=true}=s,t=d(s,["className","orientation","decorative"]);return jsx(Separator.Root,l({"data-slot":"separator-root",decorative:o,orientation:a,className:n("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function ad(a){var e=d(a,[]);return jsx(Dialog.Root,l({"data-slot":"dialog"},e))}function td(a){var e=d(a,[]);return jsx(Dialog.Trigger,l({"data-slot":"dialog-trigger"},e))}function Rr(a){var e=d(a,[]);return jsx(Dialog.Portal,l({"data-slot":"dialog-portal"},e))}function od(a){var e=d(a,[]);return jsx(Dialog.Close,l({"data-slot":"dialog-close"},e))}function Dr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Overlay,l({"data-slot":"dialog-overlay",className:n("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function rd(s){var i=s,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=d(i,["className","overlayClassName","children","showCloseButton"]);return jsxs(Rr,{"data-slot":"dialog-portal",children:[jsx(Dr,{className:a}),jsxs(Dialog.Content,c(l({"data-slot":"dialog-container",className:n("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxs(Dialog.Close,{"data-slot":"dialog-close",className:"rounded-xs focus:outline-hidden absolute right-4 top-4 disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function sd({className:e,children:a}){return jsx("div",{className:"overflow-y-auto",children:jsx("div",{"data-slot":"dialog-content",className:n("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function ld(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxs(Fragment,{children:[jsx("div",l({"data-slot":"dialog-header",className:n("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsx(ra,{})]})}function nd(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxs(Fragment,{children:[a&&jsx(ra,{}),jsx("div",l({"data-slot":"dialog-footer",className:n("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function dd(s){var i=s,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=d(i,["className","iconLeft","iconRight","children"]);let u=f=>isValidElement(f)?cloneElement(f,{size:32,strokeWidth:2.2}):f;return jsxs(Dialog.Title,c(l({"data-slot":"dialog-title",className:n("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&u(a),t,o&&u(o)]}))}function id(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Description,l({"data-slot":"dialog-description",className:n("text-md leading-md text-content-paragraph",e)},a))}function Br(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(je,l({className:n("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function Nr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsx(je.Input,l({className:n("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsx(SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function Fr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(je.List,l({className:n("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list","data-radix-scroll-area":""},a))}function Er(a){var e=d(a,[]);return jsx(je.Empty,l({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function Or(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(je.Group,l({className:n("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function Hr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(je.Item,l({className:n("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function zr(a){var e=d(a,[]);return jsx(Popover.Root,l({"data-slot":"popover"},e))}function qr(a){var e=d(a,[]);return jsx(Popover.Trigger,l({"data-slot":"popover-trigger"},e))}function Ur(s){var i=s,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=d(i,["className","align","sideOffset","showArrow"]);return jsx(Popover.Portal,{children:jsxs(Popover.Content,c(l({align:a,className:n("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-foreground shadow-md 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",e),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsx(Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var na=createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function xd({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:s,onOpenChange:i,defaultValues:u=[]}){let[f,p]=useState(u),[m,h]=useState(false),[b,I]=useState([]),C=t!==void 0,D=s!==void 0,N=C?t:f,V=D?s:m,S=k=>{let B=N.includes(k)?N.filter(v=>v!==k):[...N,k];C||p(B),r==null||r(B);},A=k=>{o||(k&&I(N),D||h(k),i==null||i(k));},X=()=>{C||p(b),r==null||r(b);},g=ke();return jsx(na.Provider,{value:{invalid:a,disabled:o,open:V,setOpen:A,values:N,toggleValue:S,onCancelSelection:X,listId:g},children:jsx(zr,{open:V,onOpenChange:A,children:e})})}function hd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function bd(r){var s=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=s,t=d(s,["className","placeholder","children"]);let{invalid:i,disabled:u,open:f,values:p,listId:m}=useContext(na),h=ke(),b=p.length>0;return jsx(qr,{asChild:true,children:jsxs("button",c(l({"aria-controls":m,"aria-expanded":f,"aria-invalid":i||void 0,className:n("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",b&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:h,role:"combobox",type:"button"},t),{children:[jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsx(ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function Ht({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:s,onCancelSelection:i,values:u}=useContext(na);return jsxs("div",{className:n("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsx(Le,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),s(false);},children:a}),jsx(Le,{size:"sm",variant:"emphasis",iconLeft:jsx(Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),s(false);},children:o})]})}function Ld({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=Children.toArray(e),s=r.filter(u=>isValidElement(u)&&u.type===Ht),i=r.filter(u=>!(isValidElement(u)&&u.type===Ht));return jsxs(Ur,{align:"start",className:n("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxs(Br,{children:[jsx(Nr,{placeholder:o}),jsxs(Fr,{id:useContext(na).listId,children:[jsx(Er,{children:t}),i]})]}),s]})}function vd({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:s,toggleValue:i}=useContext(na),u=s.includes(a);return jsxs(Hr,{className:n("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",t),disabled:r,onSelect:()=>{i(a);},value:a,keywords:o?[o]:void 0,children:[jsx("span",{className:n("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",u?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:u&&jsx(Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function Cd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Or,l({className:e},a))}function Id(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(na);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var Sd={sm:"sm",md:"md",lg:"md",xl:"lg"},Gr=cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-8",md:"size-10",lg:"size-12",xl:"size-14"}},defaultVariants:{size:"md"}});function qt(s){var i=s,{className:e,size:a,badge:o,children:t}=i,r=d(i,["className","size","badge","children"]);return jsxs("div",{className:"relative",children:[o&&jsx(Xe,{size:Sd[a||"md"],className:n("absolute -right-2 -top-1 z-10"),children:String(o)}),jsx(Avatar.Root,c(l({"data-slot":"avatar",className:n(Gr({size:a,className:e}))},r),{children:t}))]})}function Ut(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Avatar.Image,l({"data-slot":"avatar-image",className:n("size-full object-cover",e)},a))}function Vt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Avatar.Fallback,c(l({"data-slot":"avatar-fallback",className:n("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsx(User,{className:"size-1/2"})}))}function _t(a){var e=d(a,[]);return jsx("nav",l({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Gt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ol",l({className:n("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function Rd(r){var s=r,{className:e,icon:a,children:o}=s,t=d(s,["className","icon","children"]);return jsx("li",c(l({className:n("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function Dd(t){var r=t,{asChild:e,className:a}=r,o=d(r,["asChild","className"]);let s=e?Slot.Root:"a";return jsx(s,l({className:n("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function Md(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"aria-current":"page","aria-disabled":"true",className:n("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function Bd(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("li",c(l({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsx(ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function Nd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs("span",c(l({"aria-hidden":"true",className:n("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsx(MoreHorizontal,{className:"text-gray-foreground",size:18}),jsx("span",{className:"sr-only",children:"More"})]}))}var Xr=cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold w-fit whitespace-nowrap shrink-0 gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground",success:"bg-green-background-fill text-green-foreground-onfill fill-green-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground fill-green-foreground","success-basic":"bg-transparent text-green-foreground fill-green-foreground",error:"bg-red-background-fill text-red-foreground-onfill fill-red-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground fill-red-foreground","error-basic":"bg-transparent text-red-foreground fill-red-foreground",warning:"bg-yellow-background-fill text-yellow-foreground-onfill fill-yellow-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground fill-yellow-foreground","warning-basic":"bg-transparent text-yellow-foreground fill-yellow-foreground",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground"}},defaultVariants:{variant:"regular"}});function Od(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",c(l({"data-slot":"tag-icon",className:n("[&>svg]:size-3.5",e)},o),{children:a}))}function da(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,s=d(u,["className","variant","asChild","icon","children"]);let f=o?Slot.Slot:"span";return jsxs(f,c(l({"data-slot":"tag",className:n(Xr({variant:a}),e)},s),{children:[t&&jsx(Od,{icon:t}),r]}))}function Wt(m){var h=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:s,value:i=0,size:u=96,strokeWidth:f=2}=h,p=d(h,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let b=typeof i=="string",I=b?0:Math.round(i),C=(u-f)/2,D=C*2*Math.PI,N=D-I/100*D,V=Math.max(18,Math.min(u/5)),S=Math.max(10,Math.min(u/9,16));return jsxs("div",c(l({"data-slot":"progress-circle",className:n("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:C,stroke:"currentColor",strokeWidth:f,fill:"none",className:n("text-gray-stroke-muted",o)}),jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:C,stroke:"currentColor",strokeWidth:f,fill:"none",strokeDasharray:D,strokeDashoffset:N,strokeLinecap:"round",className:n("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxs("div",{"data-slot":"progress-circle-content",className:"relative z-10 flex flex-col items-center justify-center px-2 text-sm font-medium text-gray-foreground-muted",children:[jsxs("div",{children:[jsx("span",{className:n("mr-px font-semibold",t),style:{fontSize:`${V}px`},children:i}),!b&&"%"]}),r&&jsx("div",{"data-slot":"progress-circle-label",className:n("text-center font-medium leading-tight text-gray-foreground-muted",s),style:{fontSize:`${S}px`},children:r})]})]}))}function jt(s){var i=s,{className:e,indicatorClassName:a,label:o,value:t}=i,r=d(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsx("span",{children:o})]}),jsx(Progress.Root,c(l({"data-slot":"progress",className:n("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsx(Progress.Indicator,{"data-slot":"progress-indicator",className:n("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}var wa=createContext(null);function Vd(s){var i=s,{className:e,done:a,postponed:o,skipped:t}=i,r=d(i,["className","done","postponed","skipped"]);let u=useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsx(wa.Provider,{value:u,children:jsx("div",l({"data-slot":"card-week",className:n("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function _d(s){var i=s,{className:e,children:a,tag:o,tagIcon:t}=i,r=d(i,["className","children","tag","tagIcon"]);return jsxs("div",c(l({"data-slot":"card-week-breadcrumb",className:n("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsx(_t,{className:"flex-1 overflow-hidden",children:jsx(Gt,{className:"flex-nowrap gap-1.5 text-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",children:a})}),o&&jsx(da,{variant:"regular-soft",icon:t,children:o})]}))}function Gd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-container",className:n("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function Wd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-header",className:n("flex justify-between [&.border-b]:pb-6",e)},a))}function Xd(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(wa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",l({"data-slot":"card-week-title",className:n("text-lg font-semibold leading-lg text-primary-foreground",(s||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function Kd(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(wa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",l({"data-slot":"card-week-description",className:n("text-xs font-semibold leading-xs text-gray-foreground",(s||i||u)&&"text-gray-foreground-muted",e)},a))}function jd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-tags",className:n("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function Zd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",c(l({"data-slot":"card-week-progress-circle",className:n("flex flex-1 justify-end",e)},a),{children:jsx(Wt,l({size:104},a))}))}function Qd(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(wa),s=r==null?void 0:r.done;return jsx("div",c(l({"data-slot":"card-week-progress",className:n("flex flex-1",e)},a),{children:jsx(jt,l({value:s?100:a.value},a))}))}function $d(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-footer",className:n("mt-auto flex flex-col gap-2",e)},a))}function Jd(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("div",c(l({"data-slot":"card-week-content",className:n("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Yd(r){var s=r,{className:e,children:a,isTime:o}=s,t=d(s,["className","children","isTime"]);return jsxs("div",c(l({"data-slot":"card-week-text",className:n("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsx(TimeRemaining,{size:16}),jsx("span",{children:a})]}))}function ei(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(wa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !s&&!i&&!u?null:i||u?jsxs("div",c(l({"data-slot":"card-week-status",className:n("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-yellow-darken-4",children:i?"Adiado":"Pulado"})]})):jsxs("div",c(l({"data-slot":"card-week-status",className:n("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold",children:"Feito"})]}))}function ai(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-actions",className:n("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var $r=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-sm whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:text-gray-background-fill-muted"},size:{sm:"size-4 [&_svg]:size-3",md:"size-5 [&_svg]:size-4",lg:"size-6 [&_svg]:size-5"}},defaultVariants:{variant:"regular",size:"md"}});function si(s){var i=s,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=d(i,["className","size","variant","uncheckIcon"]);return jsx(Checkbox.Root,c(l({"data-slot":"checkbox",className:n("group peer",$r({size:a,variant:o}),e)},r),{children:jsx(Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsx(RemoveMinus,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsx(Check,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var Jr=createContext({animation:void 0});function di(o){var t=o,{animation:e}=t,a=d(t,["animation"]);return jsx(Jr.Provider,{value:{animation:e},children:jsx(Collapsible.Root,l({"data-slot":"collapsible"},a))})}function ii(a){var e=d(a,[]);return jsx(Collapsible.Trigger,l({"data-slot":"collapsible-trigger"},e))}function ui(o){var t=o,{className:e}=t,a=d(t,["className"]);let{animation:r}=useContext(Jr),s={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsx(Collapsible.Content,l({"data-slot":"collapsible-content",className:n(r&&s[r],e)},a))}var Qt=768;function Pa(){let[e,a]=useState(void 0);return useEffect(()=>{let o=window.matchMedia(`(max-width: ${Qt-1}px)`),t=()=>{a(window.innerWidth<Qt);};return o.addEventListener("change",t),a(window.innerWidth<Qt),()=>o.removeEventListener("change",t)},[]),!!e}function $t(a){var e=d(a,[]);return jsx(DropdownMenu.Root,l({"data-slot":"dropdown-menu"},e))}function mi(a){var e=d(a,[]);return jsx(DropdownMenu.Portal,l({"data-slot":"dropdown-menu-portal"},e))}function Jt(a){var e=d(a,[]);return jsx(DropdownMenu.Trigger,l({className:n("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function Yt(r){var s=r,{className:e,sideOffset:a=4,side:o}=s,t=d(s,["className","sideOffset","side"]);let i=Pa();return jsx(DropdownMenu.Portal,{children:jsx(DropdownMenu.Content,l({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"bottom":o,className:n("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md 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",e)},t))})}function gi(a){var e=d(a,[]);return jsx(DropdownMenu.Group,l({"data-slot":"dropdown-menu-group"},e))}function at(r){var s=r,{className:e,inset:a,variant:o="default"}=s,t=d(s,["className","inset","variant"]);return jsx(DropdownMenu.Item,l({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:n("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function xi(r){var s=r,{className:e,children:a,checked:o}=s,t=d(s,["className","children","checked"]);return jsxs(DropdownMenu.CheckboxItem,c(l({"data-slot":"dropdown-menu-checkbox-item",className:n("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function tt(a){var e=d(a,[]);return jsx(DropdownMenu.RadioGroup,l({"data-slot":"dropdown-menu-radio-group"},e))}function eo(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxs(DropdownMenu.RadioItem,c(l({"data-slot":"dropdown-menu-radio-item",className:n("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function ao(t){var r=t,{className:e,inset:a}=r,o=d(r,["className","inset"]);return jsx(DropdownMenu.Label,l({"data-slot":"dropdown-menu-label","data-inset":a,className:n("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function to(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(DropdownMenu.Separator,l({"data-slot":"dropdown-menu-separator",className:n("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function hi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"data-slot":"dropdown-menu-shortcut",className:n("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function bi(a){var e=d(a,[]);return jsx(DropdownMenu.Sub,l({"data-slot":"dropdown-menu-sub"},e))}function Li(r){var s=r,{className:e,inset:a,children:o}=s,t=d(s,["className","inset","children"]);return jsxs(DropdownMenu.SubTrigger,c(l({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:n("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsx(ChevronRight,{className:"ml-auto size-3"})]}))}function vi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(DropdownMenu.SubContent,l({"data-slot":"dropdown-menu-sub-content",className:n("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg 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",e)},a))}var so=createContext({invalid:false});function ki(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function yi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",c(l({className:n("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground",e),"data-slot":"date-picker-label"},o),{children:a}))}function Si(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(so);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"date-picker-text"},a))}function ia(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Ta(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function rt(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function st(e){return new Date(e.getFullYear(),e.getMonth(),1)}function ro(e,a){return ia(e).getTime()<ia(a).getTime()}function ls(e,a){return ia(e).getTime()>ia(a).getTime()}function Aa(e,a,o){return !!(a&&ro(e,a)||o&&ls(e,o))}function ns(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}function wi(N){var V=N,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:s,max:i,format:u=ns,className:f,inputClassName:p,contentClassName:m,yearRange:h={start:1950,end:2026},showYearSelector:b=true,invalid:I=false,children:C}=V,D=d(V,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","yearRange","showYearSelector","invalid","children"]);let S=e!==void 0,[A,X]=useState(a),g=S?e:A,[k,B]=useState(false),[v,q]=useState(()=>st(g!=null?g:new Date)),K=useRef(null),ee=useId(),[re,be]=useState(null),[ie,le]=useState("below"),Q=useCallback(M=>{S||X(M),o==null||o(M);},[S,o]);useEffect(()=>{k&&q(st(g!=null?g:new Date));},[k,g]),useEffect(()=>{k||(be(null),le("below"));},[k]),useEffect(()=>{if(!k)return;let M=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=M;}},[k]),useEffect(()=>{if(!re)return;let M=()=>B(false);return window.addEventListener("scroll",M,{passive:true,capture:true}),()=>window.removeEventListener("scroll",M,{capture:true})},[re]),useEffect(()=>{if(!k)return;let M=F=>{let Z=K.current;Z&&F.target instanceof Node&&!Z.contains(F.target)&&B(false);},L=F=>{F.key==="Escape"&&B(false);};return window.addEventListener("pointerdown",M,{capture:true}),window.addEventListener("keydown",L),()=>{window.removeEventListener("pointerdown",M,{capture:true}),window.removeEventListener("keydown",L);}},[k]);let fe=290,we=()=>{var M;if(k)B(false);else {let L=(M=K.current)==null?void 0:M.getBoundingClientRect();if(L){let Z=window.innerHeight-L.bottom<fe;le(Z?"above":"below"),window.matchMedia("(max-width: 639px)").matches&&be(c(l({position:"fixed"},Z?{bottom:window.innerHeight-L.top+8}:{top:L.bottom+8}),{left:L.left+L.width/2,transform:"translateX(-50%)"}));}B(true);}},ce=ia(new Date),w=v.getFullYear(),ne=v.getMonth(),Re=new Date(w,ne,1),x=new Date(w,ne+1,0).getDate(),z=Re.getDay(),y=g?u(g):"",P=Array.from({length:12},(M,L)=>({value:L,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,L,1))})),_=Array.from({length:h.end-h.start+1},(M,L)=>h.start+L),J=M=>{q(new Date(w,M,1));},G=M=>{q(new Date(M,ne,1));};return jsxs(so.Provider,{value:{invalid:I},children:[jsxs("div",{ref:K,className:n("relative inline-flex w-full",f),children:[jsxs("button",c(l(c(l({type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":k,"aria-controls":k?ee:void 0,"data-invalid":I||void 0,"data-slot":"date-picker-trigger","data-state":k?"open":"closed"},!y&&{"data-placeholder":""}),{className:n("shadow-xs peer flex h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] enabled:hover:border-gray-stroke-emphasis enabled:hover:ring-[3px] enabled:hover:ring-state-focus disabled:pointer-events-none disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted data-[invalid]:border-feedback-error-stroke data-[invalid]:enabled:hover:border-feedback-error-stroke data-[invalid]:enabled:hover:ring-[3px] data-[invalid]:enabled:hover:ring-state-error max-sm:h-14 max-sm:text-base",k&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&!I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&I&&"border-feedback-error-stroke ring-[3px] ring-state-error","group-has-[[data-slot=date-picker-label]]:data-[placeholder]:text-transparent",p),onClick:we}),D),{children:[jsx("span",{className:"truncate",children:y||t}),jsx(Calendar,{size:20,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),k&&jsxs("div",{id:ee,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:re!=null?re:void 0,className:n("absolute left-0 z-50 w-[min(20rem,100%)] overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md max-sm:left-1/2 max-sm:w-[min(32rem,calc(100vw-1rem))] max-sm:-translate-x-1/2",ie==="below"&&"top-[calc(100%+8px)]",ie==="above"&&"bottom-[calc(100%+8px)]",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(M=>rt(M,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:ne,onChange:M=>J(Number(M.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:P.map(M=>jsx("option",{value:M.value,className:"capitalize",children:M.label},M.value))}),jsx(ChevronDown,{size:12,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),b?jsxs("div",{className:"relative",children:[jsx("select",{value:w,onChange:M=>G(Number(M.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:_.map(M=>jsx("option",{value:M,children:M},M))}),jsx(ChevronDown,{size:12,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:w})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(M=>rt(M,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:z}).map((M,L)=>jsx("div",{},`empty-${L}`)),Array.from({length:x}).map((M,L)=>{let F=new Date(w,ne,L+1),Z=g?Ta(F,g):false,pe=Ta(F,ce),za=r||Aa(F,s,i);return jsx("button",{type:"button",disabled:za,onClick:()=>{Q(F),B(false);},className:n("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50 max-sm:h-11 max-sm:text-base",pe&&"ring-1 ring-gray-stroke-emphasis",Z&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":Z,children:L+1},F.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>{Q(ce),B(false);},disabled:r||Aa(ce,s,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>Q(null),disabled:r||!g,children:"Limpar"})]})]})]}),C]})}function Pi(N){var V=N,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:s,max:i,format:u=ns,className:f,inputClassName:p,contentClassName:m,yearRange:h={start:1900,end:2100},showYearSelector:b=true,invalid:I=false,children:C}=V,D=d(V,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","yearRange","showYearSelector","invalid","children"]);let S=e!==void 0,[A,X]=useState(a),g=S?e:A,[k,B]=useState(false),[v,q]=useState(()=>{var L,F;return st((F=(L=g==null?void 0:g.start)!=null?L:g==null?void 0:g.end)!=null?F:new Date)}),K=useRef(null),ee=useId(),[re,be]=useState(null),[ie,le]=useState("below"),Q=useCallback(L=>{S||X(L),o==null||o(L);},[S,o]);useEffect(()=>{var L,F;k&&q(st((F=(L=g==null?void 0:g.start)!=null?L:g==null?void 0:g.end)!=null?F:new Date));},[k,g]),useEffect(()=>{k||(be(null),le("below"));},[k]),useEffect(()=>{if(!k)return;let L=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=L;}},[k]),useEffect(()=>{if(!re)return;let L=()=>B(false);return window.addEventListener("scroll",L,{passive:true,capture:true}),()=>window.removeEventListener("scroll",L,{capture:true})},[re]),useEffect(()=>{if(!k)return;let L=Z=>{let pe=K.current;pe&&Z.target instanceof Node&&!pe.contains(Z.target)&&B(false);},F=Z=>{Z.key==="Escape"&&B(false);};return window.addEventListener("pointerdown",L,{capture:true}),window.addEventListener("keydown",F),()=>{window.removeEventListener("pointerdown",L,{capture:true}),window.removeEventListener("keydown",F);}},[k]);let fe=290,we=()=>{var L;if(k)B(false);else {let F=(L=K.current)==null?void 0:L.getBoundingClientRect();if(F){let pe=window.innerHeight-F.bottom<fe;le(pe?"above":"below"),window.matchMedia("(max-width: 639px)").matches&&be(c(l({position:"fixed"},pe?{bottom:window.innerHeight-F.top+8}:{top:F.bottom+8}),{left:F.left+F.width/2,transform:"translateX(-50%)"}));}B(true);}},ce=ia(new Date),w=v.getFullYear(),ne=v.getMonth(),Re=new Date(w,ne,1),x=new Date(w,ne+1,0).getDate(),z=Re.getDay(),y=Array.from({length:12},(L,F)=>({value:F,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,F,1))})),P=Array.from({length:h.end-h.start+1},(L,F)=>h.start+F),_=L=>{q(new Date(w,L,1));},J=L=>{q(new Date(L,ne,1));},G=L=>{r||Aa(L,s,i)||(!g||!g.start||g.end?Q({start:L,end:null}):(ro(L,g.start)?Q({start:L,end:g.start}):Q({start:g.start,end:L}),B(false)));},M=g!=null&&g.start&&(g!=null&&g.end)?`${u(g.start)} - ${u(g.end)}`:g!=null&&g.start?u(g.start):"";return jsxs(so.Provider,{value:{invalid:I},children:[jsxs("div",{ref:K,className:n("relative inline-flex w-full",f),children:[jsxs("button",c(l(c(l({type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":k,"aria-controls":k?ee:void 0,"data-invalid":I||void 0,"data-slot":"date-picker-trigger","data-state":k?"open":"closed"},!M&&{"data-placeholder":""}),{className:n("shadow-xs peer flex h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] enabled:hover:border-gray-stroke-emphasis enabled:hover:ring-[3px] enabled:hover:ring-state-focus disabled:pointer-events-none disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted data-[invalid]:border-feedback-error-stroke data-[invalid]:enabled:hover:border-feedback-error-stroke data-[invalid]:enabled:hover:ring-[3px] data-[invalid]:enabled:hover:ring-state-error max-sm:h-14 max-sm:text-base",k&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",M&&!I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",M&&I&&"border-feedback-error-stroke ring-[3px] ring-state-error","group-has-[[data-slot=date-picker-label]]:data-[placeholder]:text-transparent",p),onClick:we}),D),{children:[jsx("span",{className:"truncate",children:M||t}),jsx(Calendar,{size:20,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),k&&jsxs("div",{id:ee,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:re!=null?re:void 0,className:n("absolute left-0 z-50 w-[min(20rem,100%)] overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md max-sm:left-1/2 max-sm:w-[min(32rem,calc(100vw-1rem))] max-sm:-translate-x-1/2",ie==="below"&&"top-[calc(100%+8px)]",ie==="above"&&"bottom-[calc(100%+8px)]",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(L=>rt(L,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:ne,onChange:L=>_(Number(L.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:y.map(L=>jsx("option",{value:L.value,className:"capitalize",children:L.label},L.value))}),jsx(ChevronDown,{size:16,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),b?jsxs("div",{className:"relative",children:[jsx("select",{value:w,onChange:L=>J(Number(L.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:P.map(L=>jsx("option",{value:L,children:L},L))}),jsx(ChevronDown,{size:16,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:w})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(L=>rt(L,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:z}).map((L,F)=>jsx("div",{},`empty-${F}`)),Array.from({length:x}).map((L,F)=>{let Z=new Date(w,ne,F+1),pe=(g==null?void 0:g.start)&&Ta(Z,g.start),za=(g==null?void 0:g.end)&&Ta(Z,g.end),cl=(g==null?void 0:g.start)&&(g==null?void 0:g.end)&&ls(Z,g.start)&&ro(Z,g.end),pl=Ta(Z,ce),ml=r||Aa(Z,s,i);return jsx("button",{type:"button",disabled:ml,onClick:()=>G(Z),className:n("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50",pl&&"ring-1 ring-gray-stroke-emphasis",cl&&"bg-primary-background-soft",(pe||za)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":pe||za||void 0,children:F+1},Z.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>{Q({start:ce,end:ce}),B(false);},disabled:r||Aa(ce,s,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>Q(null),disabled:r||!g,children:"Limpar"})]})]})]}),C]})}var Ei=24,Oi=20,Hi=1.6,is=10,us=8;function zi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function qi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("relative",e),"data-slot":"input-field"},a))}function Ui(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",c(l({className:n("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=input][disabled]]:bg-transparent","group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-4 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-1/2 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:px-0 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:text-md group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:font-normal","group-has-[[data-slot=input][data-empty]:not(:focus)]:start-4 group-has-[[data-slot=input][data-empty]:not(:focus)]:top-1/2 group-has-[[data-slot=input][data-empty]:not(:focus)]:px-0 group-has-[[data-slot=input][data-empty]:not(:focus)]:text-md group-has-[[data-slot=input][data-empty]:not(:focus)]:font-normal","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:!text-sm","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:!text-sm","group-has-[[data-slot=input][aria-invalid=true]]:text-feedback-error-foreground","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-12","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:start-12",e),"data-slot":"input-label"},o),{children:a}))}function Vi(t){var r=t,{className:e,invalid:a=false}=r,o=d(r,["className","invalid"]);return jsx("span",l({className:n("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function lo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function it(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({className:n("pointer-events-none absolute start-4 top-1/2 z-10 flex -translate-y-1/2 items-center pr-3 text-gray-foreground",e),"data-slot":"input-start-icon"},a))}function no(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({className:n("absolute end-4 top-1/2 z-10 flex -translate-y-1/2 items-center text-gray-foreground",e),"data-slot":"input-end-icon"},a))}var nt=cva(["shadow-xs w-full min-w-0 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-gray-foreground outline-none transition-[color,box-shadow] selection:bg-secondary-background-soft-emphasis selection:text-gray-foreground placeholder:text-gray-foreground-emphasis hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:placeholder:text-gray-foreground-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0","focus-visible:border-gray-stroke-emphasis focus-visible:ring-[3px] focus-visible:ring-state-focus","aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-state-error aria-[invalid]:focus-visible:ring-state-error","aria-[invalid]:[&:not(:placeholder-shown)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown)]:border-gray-stroke-emphasis [&:not(:placeholder-shown)]:ring-[3px] [&:not(:placeholder-shown)]:ring-state-focus","group-has-[[data-slot=input-end-icon]]/adornment:pr-10"],{variants:{size:{lg:["h-12 max-h-12 text-md","group-has-[[data-slot=input-label]]:h-14","group-has-[[data-slot=input-start-icon]]/adornment:pl-[48px]"],md:["h-10 max-h-10 text-sm","group-has-[[data-slot=input-label]]:h-11","group-has-[[data-slot=input-start-icon]]/adornment:pl-[44px]"]}},defaultVariants:{size:"lg"}}),_i={email:jsx(Mail,{})},Gi={};function ua(e,a="lg"){return cloneElement(e,{size:a==="md"?Oi:Ei,strokeWidth:Hi})}function cs(s){var i=s,{className:e,invalid:a=false,size:o="lg",disabled:t}=i,r=d(i,["className","invalid","size","disabled"]);let[u,f]=useState(false);return jsxs(lo,{children:[jsx(it,{children:ua(jsx(Lock,{}),o)}),jsx("input",l({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:n(nt({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsx(no,{children:jsx("button",{type:"button",tabIndex:-1,disabled:t,onClick:()=>f(p=>!p),className:n("text-gray-foreground transition-colors hover:text-gray-foreground-emphasis disabled:cursor-default disabled:opacity-50"),"data-invalid":a,"aria-label":u?"Hide password":"Show password",children:ua(u?jsx(Hide,{}):jsx(Show,{}),o)})})]})}function ps(m){var h=m,{className:e,invalid:a=false,size:o="lg",iconLeft:t,min:r,value:s,defaultValue:i,onChange:u,disabled:f}=h,p=d(h,["className","invalid","size","iconLeft","min","value","defaultValue","onChange","disabled"]);let b=s!==void 0,[I,C]=useState(()=>i!=null?i:""),D=useRef(null),N=b?s===""?"":String(s):I,V=N===""?NaN:Number(N),S=r!==void 0&&Number(r)<0,A=useCallback(v=>{let q=r!==void 0&&Number(r)<0,K=v.replace(/[^\d.-]/g,"");q?K=(K.startsWith("-")?"-":"")+K.replace(/-/g,""):K=K.replace(/-/g,"");let ee=K.indexOf(".");return ee===-1?K:K.slice(0,ee+1)+K.slice(ee+1).replace(/\./g,"")},[r]),X=useCallback(v=>{let q=A(v.target.value);if(q===v.target.value)b?u==null||u(v):(C(q),u==null||u(c(l({},v),{target:c(l({},v.target),{value:q})})));else {let K=c(l({},v),{target:c(l({},v.target),{value:q})});b||C(q),u==null||u(K);}},[b,u,A]),g=r!==void 0?Number(r):void 0,k=useCallback(v=>{let K=(Number.isNaN(V)?g!=null?g:0:V)+v;return g!==void 0&&K<g?g:K},[V,g]),B=useCallback(v=>{let q=k(v),K=String(q),ee=D.current,be={type:"change",target:ee?{value:K,name:ee.name,id:ee.id,form:ee.form,type:ee.type}:{value:K},currentTarget:ee,bubbles:true,cancelable:false,nativeEvent:{}};b||C(K),u==null||u(be);},[k,b,u]);return jsxs(lo,{children:[t!=null&&jsx(it,{children:ua(t,o)}),jsx("input",l({ref:D,type:"text",inputMode:"decimal",pattern:S?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":N===""?"":void 0,min:r,value:N,onChange:X,disabled:f,className:n(nt({size:o}),"pr-12","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",e),"aria-invalid":a||p["aria-invalid"]?true:void 0},p)),jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsx("button",{type:"button",tabIndex:-1,disabled:f,onClick:()=>B(1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Increase value",children:jsx(ChevronDown,{className:"rotate-180",size:o==="md"?us:is,strokeWidth:3})}),jsx("button",{type:"button",tabIndex:-1,disabled:f,onClick:()=>B(-1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Decrease value",children:jsx(ChevronDown,{size:o==="md"?us:is,strokeWidth:3})})]})]})}function io(u){var f=u,{className:e,type:a="text",size:o="lg",invalid:t=false,iconLeft:r,iconRight:s}=f,i=d(f,["className","type","size","invalid","iconLeft","iconRight"]);if(a==="numeric")return jsx(ps,l({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsx(cs,l({className:e,size:o,invalid:t},i));let p=r!=null?r:_i[a],m=(a==="text"||a==="email")&&t,h=m?jsx(TriangleWarning,{}):s!=null?s:Gi[a];return p!=null||h!=null?jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsx(it,{children:ua(p,o)}),jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(nt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),h!=null&&jsx(no,{className:m?"text-feedback-error-foreground":void 0,children:ua(h,o)})]}):jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(nt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var ms=cva("inline-flex select-none items-center gap-3 text-sm font-medium leading-none disabled:cursor-default disabled:text-gray-foreground-muted peer-disabled:cursor-default peer-disabled:text-gray-foreground-muted group-data-[disabled]:pointer-events-none group-data-[disabled]:text-gray-foreground-muted whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0",{variants:{variant:{regular:"text-gray-foreground hover:text-gray-foreground-emphasis"},size:{sm:"text-xs",md:"text-sm",lg:"text-md"}},defaultVariants:{variant:"regular",size:"md"}});function Ki(s){var i=s,{className:e,variant:a,size:o,block:t}=i,r=d(i,["className","variant","size","block"]);return jsx(Label.Root,l({"data-slot":"label",className:n(e,ms({className:e,size:o,variant:a}),t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function Zi({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxs("svg",{className:n("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsx("path",{fill:"#01CFB5",d:"M170.246 8.366 158.874 34.77c-.317.744-1.131 1.23-2.038 1.23h-3.47c-1.552 0-2.606-1.377-2.011-2.628l2.875-6.066-8.476-18.918c-.563-1.246.492-2.59 2.027-2.59h3.541c.929 0 1.755.513 2.061 1.278l4.688 11.864h.093l4.464-11.836c.295-.782 1.126-1.306 2.066-1.306h3.514c1.524 0 2.573 1.322 2.038 2.568Zm-24.869 8.623v10.42a.823.823 0 0 1-.82.826h-3.956a.818.818 0 0 1-.82-.825v-.667a11.207 11.207 0 0 1-5.699 1.541c-6.235 0-11.295-5.054-11.295-11.295 0-6.24 5.06-11.295 11.295-11.295 2.076 0 4.027.557 5.694 1.541v-.006a11.295 11.295 0 0 1 5.601 9.76Zm-5.984.005c0-2.94-2.377-5.327-5.306-5.327-2.929 0-5.306 2.388-5.306 5.327 0 2.94 2.377 5.323 5.306 5.323 2.929 0 5.306-2.383 5.306-5.323Zm5.793.4c.005-.099.005-.192.005-.29 0-.098-.005-.191-.005-.284v.573Zm-26.17-11.722h-4.355a.977.977 0 0 0-.978.978v11.902a3.416 3.416 0 0 1-6.831 0V6.65a.977.977 0 0 0-.978-.978h-4.355a.977.977 0 0 0-.978.978v11.902a3.417 3.417 0 0 1-5.83 2.415c-.618-.617-1-1.47-1-2.415V6.65a.977.977 0 0 0-.979-.978h-4.355a.977.977 0 0 0-.978.978v13.088h-.006c0 .781.115 1.535.334 2.256 1.098 3.623 4.765 6.29 9.13 6.29 2.739 0 5.209-1.054 6.935-2.732 1.689 1.83 4.197 2.994 7 2.994 4.53 0 8.295-3.043 9.06-7.043.093-.487.143-.99.143-1.497V6.65a.978.978 0 0 0-.979-.978Z"}),jsx("path",{fill:"#00205B",className:t,d:"M65.557 7.694c-.639.399-1.235.863-1.781 1.388.54-.536 1.137-1 1.781-1.388ZM82.727.831v26.617a.82.82 0 0 1-.82.825h-3.956a.77.77 0 0 1-.415-.12.81.81 0 0 1-.405-.71v-.755a11.018 11.018 0 0 1-5.689 1.574c-5.47 0-10.01-3.967-10.923-9.191-.016-.098-.038-.197-.054-.3-.011-.088-.028-.18-.039-.268 0-.028-.005-.055-.01-.088-.006-.06-.012-.12-.023-.18-.005-.076-.01-.159-.021-.24v-.028c-.006-.093-.017-.18-.017-.273a9.516 9.516 0 0 1 0-1.11l.017-.273v-.027l.032-.311c0-.033.006-.066.006-.099a.665.665 0 0 0 .01-.104c.012-.087.023-.18.039-.267.016-.11.033-.213.055-.323a11.09 11.09 0 0 1 3.17-6.005 11.548 11.548 0 0 1 1.88-1.48 9.127 9.127 0 0 1 1.31-.646c1.039-.42 2.186-.65 3.405-.683-.071 0-.142.011-.213.011a9.587 9.587 0 0 0-3.203.672c-.453.18-.896.4-1.311.65.393-.245.809-.459 1.23-.655-.006 0-.011.005-.017.005l.033-.016c-.011.005-.022.005-.038.01a8.79 8.79 0 0 1 .519-.229c-.039.017-.071.033-.104.05.038-.017.07-.033.11-.05.087-.033.174-.065.267-.098.087-.038.175-.066.268-.099.033-.016.065-.021.098-.032.055-.017.104-.039.158-.055.11-.033.214-.066.323-.098a9.584 9.584 0 0 1 .607-.153c.092-.022.196-.044.295-.066.098-.016.196-.033.295-.055l.295-.049h.005a2.82 2.82 0 0 0 .197-.027c.07-.005.131-.022.202-.022.087-.01.18-.016.268-.022.082-.01.164-.01.246-.016.07 0 .142-.011.213-.011.136-.006.273-.006.415-.006.093 0 .191.006.284.006h.12c.083 0 .159.005.236.01.098.006.196.012.295.023.087.005.174.01.256.022.05.005.099.01.142.016.088.01.175.022.257.038l.312.05c1.06.185 2.07.519 3.005.983v.115c-.038-.022-.076-.038-.12-.06.038.022.077.038.12.065v-.12c.268.131.525.273.77.426V.825a.827.827 0 0 1 .82-.825h3.957a.838.838 0 0 1 .836.83Zm-5.694 16.213a5.32 5.32 0 0 0-5.312-5.323c-2.929 0-5.306 2.388-5.306 5.323 0 2.94 2.377 5.322 5.306 5.322a5.316 5.316 0 0 0 5.312-5.322Zm-19.59.431c0 .41-.017.765-.066 1.132a.597.597 0 0 1-.596.524H42.284a.598.598 0 0 0-.574.77c.623 1.94 2.46 3.192 4.749 3.192 1.607 0 2.678-.574 3.656-1.749a.614.614 0 0 1 .47-.213h5.191c.448 0 .738.47.53.869-2.093 4.033-5.705 6.372-9.847 6.372-6.06 0-11.137-5.055-11.137-11.088 0-6.033 4.847-11.235 11.022-11.235h.006c6.284 0 11.093 4.94 11.093 11.426Zm-6.563-3.393c-.738-1.683-2.437-2.754-4.541-2.754-1.973 0-3.721 1.027-4.47 2.754a.594.594 0 0 0 .552.825h7.907a.593.593 0 0 0 .552-.825ZM23.13 5.803c-2.738 0-5.207 1.055-6.934 2.733-1.689-1.831-4.197-2.995-7-2.995-4.53 0-8.295 3.044-9.06 7.044-.088.486-.137.989-.137 1.497v13.35c0 .54.437.978.978.978h4.355a.977.977 0 0 0 .978-.978V15.618c0-1.65 1.328-3.263 2.962-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V15.618c0-1.65 1.327-3.263 2.961-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V14.344a7.75 7.75 0 0 0-.334-2.257c-1.098-3.623-4.77-6.284-9.13-6.284Z"})]})}function Qi({width:e=60,height:a=67,className:o,svgClassName:t}){return jsx("svg",{className:n("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fill:"#00205B",className:t,d:"M42.33 10.8959C37.32 10.8959 32.8 12.8259 29.64 15.8959C26.55 12.5459 21.96 10.4159 16.83 10.4159C8.54 10.4159 1.65 15.9859 0.25 23.3059C0.09 24.1959 0 25.1159 0 26.0459V50.4759C0 51.4659 0.8 52.2659 1.79 52.2659H9.76C10.75 52.2659 11.55 51.4659 11.55 50.4759V28.8559C11.55 25.8359 13.98 22.8859 16.97 22.4959C19.03 22.2259 20.91 22.9659 22.22 24.2759C23.35 25.4059 24.05 26.9659 24.05 28.6959V50.4759C24.05 51.4659 24.85 52.2659 25.84 52.2659H33.81C34.8 52.2659 35.6 51.4659 35.6 50.4759V28.8559C35.6 25.8359 38.03 22.8859 41.02 22.4959C43.08 22.2259 44.96 22.9659 46.27 24.2759C47.4 25.4059 48.1 26.9659 48.1 28.6959V50.4759C48.1 51.4659 48.9 52.2659 49.89 52.2659H57.86C58.85 52.2659 59.65 51.4659 59.65 50.4759V26.5259C59.65 25.0959 59.44 23.7159 59.04 22.3959C57.03 15.7659 50.31 10.8959 42.33 10.8959Z"})})}var fa={tablet:"600px",mobile:"320px"};function xs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("nav",l({role:"navigation","aria-label":"pagination",className:n("flex w-full items-center justify-between",e)},a))}function hs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({className:n("flex flex-row items-center gap-2",e)},a))}function uo(r){var s=r,{count:e,label:a="itens",className:o}=s,t=d(s,["count","label","className"]);return jsx("p",c(l({className:n("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxs(Fragment,{children:["Mostrando"," ",jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxs(Fragment,{children:[jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function ft(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("li",l({className:n("",e)},a))}function bs(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:s="regular",activeVariant:i,inactiveVariant:u}=m,f=d(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsx(Le,c(l({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?s:`${s}-soft`,className:n("",e),size:r,iconLeft:o,iconRight:t},f),{children:f.children}))}function Ls(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsx(Le,c(l({"aria-label":"Go to previous page",className:n("",e),iconLeft:jsx(ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function vs(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsx(Le,c(l({"aria-label":"Go to next page",className:n("",e),variant:o,iconRight:jsx(ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function Cs(t){var r=t,{className:e,size:a="md"}=r,o=d(r,["className","size"]);return jsx("span",c(l({"aria-hidden":true,className:n("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsx(MoreHorizontal,{className:"h-4 w-4"})}))}function Is(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let s=1;s<=o+1;s++)t.push(s);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let s=a-o;s<=a;s++)t.push(s);}else {t.push(1,-1);for(let s=e-r;s<=e+r;s++)t.push(s);t.push(-1,a);}}return t}function ou({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:s,className:i,responsive:u=true,size:f="md"}){let[p,m]=useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(fa.tablet));useEffect(()=>{if(typeof window=="undefined"||!u)return;let C=parseInt(fa.tablet),D=()=>{m(window.innerWidth<=C);};return window.addEventListener("resize",D),D(),()=>window.removeEventListener("resize",D)},[u]);let h=typeof o=="number"?o:u&&p?0:2,b=u&&p,I=()=>Is(e,a,h);return jsxs(xs,{className:n("",i),children:[r!==void 0&&!b?jsx(uo,{count:r,label:"itens"}):jsx("div",{}),jsxs(hs,{children:[jsx(ft,{children:jsx(Ls,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:f})}),I().map((C,D)=>jsx(ft,{children:C===-1?jsx(Cs,{size:f}):jsx(bs,{onClick:()=>t(C),isActive:C===e,size:f,children:C})},D)),jsx(ft,{children:jsx(vs,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:f})})]}),s!==void 0&&!b?jsx(uo,{count:s,label:"total"}):jsx("div",{})]})}var lu={sm:"size-2 group-data-[disabled]:group-data-[state=checked]:size-1.5",md:"size-2.5 group-data-[disabled]:group-data-[state=checked]:size-1.5",lg:"size-3.5 group-data-[disabled]:group-data-[state=checked]:size-2"},ks=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function nu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(RadioGroup.Root,l({"data-slot":"radio-group",className:n("grid gap-3",e)},a))}function du(r){var s=r,{className:e,size:a,variant:o}=s,t=d(s,["className","size","variant"]);return jsx(RadioGroup.Item,c(l({"data-slot":"radio-group-item",className:n("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",ks({size:a,variant:o}),e)},t),{children:jsx(RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsx(Circle,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",lu[a||"md"])})})}))}function Qe(o){var t=o,{delayDuration:e=0}=t,a=d(t,["delayDuration"]);return jsx(Tooltip.Provider,l({"data-slot":"tooltip-provider",delayDuration:e},a))}function $e(a){var e=d(a,[]);return jsx(Qe,{children:jsx(Tooltip.Root,l({"data-slot":"tooltip"},e))})}function Je(a){var e=d(a,[]);return jsx(Tooltip.Trigger,l({"data-slot":"tooltip-trigger"},e))}function Ye(r){var s=r,{className:e,sideOffset:a=0,children:o}=s,t=d(s,["className","sideOffset","children"]);return jsx(Tooltip.Portal,{children:jsxs(Tooltip.Content,c(l({"data-slot":"tooltip-content",sideOffset:a,className:n("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e)},t),{children:[o,jsx(Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function xu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsx("table",c(l({className:n("w-full border-collapse text-left",a)},o),{children:e}))})}function hu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("thead",c(l({className:n("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsx("tr",{children:e})}))}function bu(s){var i=s,{children:e,className:a,tooltip:o,highlight:t}=i,r=d(i,["children","className","tooltip","highlight"]);return jsx("th",c(l({className:n("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxs("div",{className:"flex items-center gap-1.5",children:[jsx("span",{className:n(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsx(Qe,{children:jsxs($e,{children:[jsx(Je,{asChild:true,children:jsx(Info,{className:"size-4"})}),jsx(Ye,{children:o})]})})]})}))}function Lu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("tbody",c(l({className:n("bg-surface-card",a)},o),{children:e}))}function vu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("tr",c(l({className:n("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function Cu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",{className:"py-4 pl-5 align-middle",children:jsx("div",c(l({className:n("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function Iu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:n("flex items-center gap-5",a),children:jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function ku(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",c(l({className:n("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function yu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("span",c(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function Su(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("span",c(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function wu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx(da,c(l({className:n("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsx(CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function Pu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:n("flex flex-col items-start gap-2",a),children:e})}))}function Tu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("p",c(l({className:n("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function Au(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",c(l({className:n("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Ru(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,s=d(u,["src","alt","fallback","className","tooltip"]);let f=jsxs(qt,c(l({size:"sm",className:n("ring-2 ring-background",t)},s),{children:[jsx(Ut,{src:e,alt:a}),jsx(Vt,{children:o})]}));return r?jsx(Qe,{children:jsxs($e,{children:[jsx(Je,{asChild:true,children:f}),jsx(Ye,{children:r})]})}):f}function Du(r){var s=r,{children:e,className:a,icon:o}=s,t=d(s,["children","className","icon"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsx(da,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Mu({className:e,percentage:a}){let o=t=>t>=0&&t<=49||t>=50&&t<=80||t>=81&&t<=100?"bg-primary-stroke":"bg-gray-100";return jsx("div",{className:n("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsx("div",{className:n("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Bu(r){var s=r,{questions:e,answered:a,className:o}=s,t=d(s,["questions","answered","className"]);let i=a>0?a/e*100:0;return a===0?jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsx(RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxs("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsx(Mu,{percentage:i})]})}))}var Nu={notStarted:{icon:RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:Warning,bgColor:"bg-feedback-warning-background-soft",iconColor:"text-feedback-warning-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"M\xEDnimo n\xE3o atingido",subtitle:({remainingQuestions:e})=>e>1?`Faltam ${e} quest\xF5es`:`Falta ${e} quest\xE3o`},dominated:{icon:Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`},notDominated:{icon:CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`}};function Fu(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Eu(s){var i=s,{answered:e,correct:a,minQuestions:o,className:t}=i,r=d(i,["answered","correct","minQuestions","className"]);let u=e>0?a/e*100:0,f=e===0,p=a<o,m=o-a,h=Fu(f,p,u),{icon:b,bgColor:I,iconColor:C,titleClassName:D,title:N,subtitle:V}=Nu[h],S={progress:u,correct:a,answered:e,remainingQuestions:m};return jsx("td",c(l({className:"px-5 py-4 align-middle"},r),{children:jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:n("flex size-4 items-center justify-center rounded-full",I),children:jsx(b,{className:n("size-3",C),strokeWidth:2.6})}),jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsx("span",{className:n("whitespace-nowrap",D),children:N(S)}),jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:V(S)})]})]})})}))}function Ou(r){var s=r,{children:e,className:a,onClick:o}=s,t=d(s,["children","className","onClick"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsx(Le,{variant:"regular-soft",size:"sm",iconRight:jsx(ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var Ps=cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),zu=cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),Ts=cva("inline-flex items-center justify-center",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"},readOnly:{true:"cursor-default",false:"cursor-pointer"}},defaultVariants:{size:"md",readOnly:false}}),As=cva("flex w-full min-w-0 justify-between text-gray-foreground font-medium gap-2",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}});function qu({state:e,className:a}){let o=ke(),t=useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",className:"fill-feedback-warning-background-soft stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="half"?jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsx("defs",{children:jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:`url(#${r})`,className:"stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}):jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:"transparent",className:"stroke-gray-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Uu(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function Vu({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:s="md",className:i,classNameContainer:u,classNameLabels:f}){let[p,m]=useState(e!=null?e:0),[h,b]=useState(null),I=e!==void 0,C=I?e:p,D=S=>{if(t)return;let A=S+1;I||m(A),a==null||a(A);},N=S=>{t||b(S);},V=()=>{t||b(null);};return jsxs("div",{"data-slot":"rating",className:n("inline-flex w-fit flex-col gap-2",i),children:[jsx("div",{className:n("inline-flex flex-row gap-1",u),onMouseLeave:V,children:Array.from({length:o},(S,A)=>{let X=h!==null,g=X&&A<=h,k=h===A,B=X?g?"full":"empty":Uu(A,C);return jsx("button",{type:"button",disabled:t,onClick:()=>D(A),onMouseEnter:()=>N(A),className:Ts({size:s,readOnly:t}),"aria-label":`Rate ${A+1} out of ${o}`,children:jsx(qu,{state:B,className:k&&!t?zu({size:s}):Ps({size:s})})},A)})}),r&&r.length===2&&jsxs("div",{className:n(As({size:s}),f),children:[jsx("span",{className:"truncate",children:r[0]}),jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function co(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxs(ScrollArea.Root,c(l({"data-slot":"scroll-area",className:n("relative",e)},o),{children:[jsx(ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsx(Da,{}),jsx(Da,{orientation:"horizontal"}),jsx(ScrollArea.Corner,{})]}))}function Da(t){var r=t,{className:e,orientation:a="vertical"}=r,o=d(r,["className","orientation"]);return jsx(ScrollArea.ScrollAreaScrollbar,c(l({"data-slot":"scroll-area-scrollbar",orientation:a,className:n("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsx(ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var xt=createContext({invalid:false,size:"lg"});function ju(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=d(r,["invalid","size"]);return jsx(xt.Provider,{value:{invalid:e,size:a},children:jsx(Select.Root,l({"data-slot":"select"},o))})}function Zu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function Qu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",c(l({className:n("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-1/2 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground","group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:!text-sm",e),"data-slot":"select-label"},o),{children:a}))}function $u(a){var e=d(a,[]);return jsx(Select.Group,l({"data-slot":"select-group"},e))}function Ju(a){var e=d(a,[]);return jsx(Select.Value,l({"data-slot":"select-value"},e))}var Yu=cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:{lg:["h-12 max-h-12 text-md","group-has-[[data-slot=select-label]]:h-14"],md:["h-10 max-h-10 text-sm","group-has-[[data-slot=select-label]]:h-11"]}},defaultVariants:{size:"lg"}});function ef(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{invalid:s,size:i}=useContext(xt);return jsxs(Select.Trigger,c(l({className:n(Yu({size:i}),!s&&"[&:not([data-placeholder])]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","data-size":i,"aria-invalid":s||void 0},o),{children:[a,jsx(Select.Icon,{asChild:true,children:jsx(ChevronDown,{className:n("shrink-0 text-gray-foreground"),size:i==="md"?20:24,strokeWidth:1.6})})]}))}function af(r){var s=r,{className:e,children:a,position:o="popper"}=s,t=d(s,["className","children","position"]);return jsx(Select.Portal,{children:jsxs(Select.Content,c(l({className:n("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-foreground shadow-md 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 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsx(Ds,{}),jsx(Select.Viewport,{className:n("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsx(Ms,{})]}))})}function tf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.Label,l({className:n("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function of(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{size:s}=useContext(xt);return jsxs(Select.Item,c(l({className:n("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis",s==="lg"&&"py-2.5 text-base",s==="md"&&"py-2 text-sm",e),"data-slot":"select-item"},o),{children:[jsx(Select.ItemText,{children:a}),jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsx(Select.ItemIndicator,{children:jsx(Check,{size:20,strokeWidth:2,className:"text-secondary-foreground"})})})]}))}function rf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.Separator,l({className:n("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function Ds(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.ScrollUpButton,c(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsx(ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Ms(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.ScrollDownButton,c(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsx(ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function sf(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(xt);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var Bs=createContext(null);function uf(r){var s=r,{className:e,size:a="md",children:o}=s,t=d(s,["className","size","children"]);return jsx(Bs.Provider,{value:{size:a},children:jsx(Tabs.Root,c(l({"data-slot":"tabs",className:n("flex flex-col gap-2",e)},t),{children:o}))})}function ff(t){var r=t,{className:e,containerClassName:a}=r,o=d(r,["className","containerClassName"]);return jsxs(co,{className:n("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsx(Tabs.List,l({"data-slot":"tabs-list",className:n("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsx(Da,{orientation:"horizontal"})]})}var Ns=cva("shadow-transparent data-[state=active]:shadow-level-1 group inline-flex items-center justify-center gap-2.5 whitespace-nowrap rounded-[6px] font-medium text-gray-foreground outline-none data-[state=active]:bg-surface-card data-[state=active]:text-primary-foreground [&_svg]:shrink-0 [&_svg]:text-inherit disabled:text-gray-foreground-muted disabled:pointer-events-none",{variants:{size:{sm:"max-h-7 px-3 py-1.5 text-xs [&_svg]:size-4",md:"max-h-9 px-4 py-2 text-sm [&_svg]:size-5",lg:"max-h-11 px-4 py-2.5 text-md [&_svg]:size-6"}},defaultVariants:{size:"md"}});function cf(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,s=d(u,["className","icon","badge","badgeVariant","children"]);var h;let f=b=>b!=null&&b!==0&&b!==""&&b!=="0"&&!s.disabled,p=useContext(Bs),m=(h=p==null?void 0:p.size)!=null?h:"md";return jsxs(Tabs.Trigger,c(l({"data-slot":"tabs-trigger",className:n(Ns({size:m,className:e}))},s),{children:[a,r&&jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),f(o)&&jsx(Xe,{size:m,variant:t,children:String(o)})]}))}function pf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Tabs.Content,l({"data-slot":"tabs-content",className:n("flex-1 outline-none",e)},a))}var Fs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),xo=e=>{let a=mf(e);return a.charAt(0).toUpperCase()+a.slice(1)},bt=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Es=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Os={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var zs=forwardRef((p,f)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:s,iconNode:i}=m,u=d(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return createElement("svg",l(l(c(l({ref:f},Os),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:bt("lucide",r)}),!s&&!Es(u)&&{"aria-hidden":"true"}),u),[...i.map(([h,b])=>createElement(h,b)),...Array.isArray(s)?s:[s]])});var qs=(e,a)=>{let o=forwardRef((i,s)=>{var u=i,{className:t}=u,r=d(u,["className"]);return createElement(zs,l({ref:s,iconNode:a,className:bt(`lucide-${Fs(xo(e))}`,`lucide-${e}`,t)},r))});return o.displayName=xo(e),o};var bf=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ma=qs("x",bf);function bo(a){var e=d(a,[]);return jsx(Dialog.Root,l({"data-slot":"sheet"},e))}function Lf(a){var e=d(a,[]);return jsx(Dialog.Trigger,l({"data-slot":"sheet-trigger"},e))}function vf(a){var e=d(a,[]);return jsx(Dialog.Close,l({"data-slot":"sheet-close"},e))}function Cf(a){var e=d(a,[]);return jsx(Dialog.Portal,l({"data-slot":"sheet-portal"},e))}function If(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Overlay,l({"data-slot":"sheet-overlay",className:n("bg-black/50 fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Lo(r){var s=r,{className:e,children:a,side:o="right"}=s,t=d(s,["className","children","side"]);return jsxs(Cf,{children:[jsx(If,{}),jsxs(Dialog.Content,c(l({"data-slot":"sheet-content",className:n("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,jsxs(Dialog.Close,{className:"rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(Ma,{className:"size-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function kf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sheet-header",className:n("flex flex-col gap-1.5 p-4",e)},a))}function yf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sheet-footer",className:n("mt-auto flex flex-col gap-2 p-4",e)},a))}function Sf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Title,l({"data-slot":"sheet-title",className:n("font-semibold text-foreground",e)},a))}function wf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Description,l({"data-slot":"sheet-description",className:n("text-muted-foreground text-sm",e)},a))}function Lt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"skeleton",className:n("animate-pulse rounded-md bg-gray-150",e)},a))}var Ef="sidebar_state",Of=3600*24*7,Hf="b",Gs=createContext(null);function ga(){let e=useContext(Gs);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function zf(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,s=d(u,["defaultOpen","open","onOpenChange","className","children"]);let f=Pa(),[p,m]=useState(false),[h,b]=useState(e),I=a!=null?a:h,C=useCallback(S=>{let A=typeof S=="function"?S(I):S;o?o(A):b(A),document.cookie=`${Ef}=${A}; path=/; max-age=${Of}`;},[o,I]),D=useCallback(()=>f?m(S=>!S):C(S=>!S),[f,C,m]);useEffect(()=>{let S=A=>{A.key===Hf&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),D());};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[D]);let N=I?"expanded":"collapsed",V=useMemo(()=>({state:N,open:I,setOpen:C,isMobile:f,openMobile:p,setOpenMobile:m,toggleSidebar:D}),[N,I,C,f,p,m,D]);return jsx(Gs.Provider,{value:V,children:jsx(Qe,{delayDuration:0,children:jsx("div",c(l({"data-slot":"sidebar-wrapper",className:n("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},s),{children:r}))})})}function qf(u){var f=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:s}=f,i=d(f,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:h,setOpenMobile:b}=ga();return o==="none"?jsx("div",c(l({"data-slot":"sidebar",className:n("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:s})):p?jsx(bo,c(l({open:h,onOpenChange:b},i),{children:jsx(Lo,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:n("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsx("div",{className:"flex h-full w-full flex-col",children:s})})})):jsxs("div",{className:n("group peer hidden text-gray-foreground md:block",t),"data-state":m,"data-collapsible":m==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsx("div",{"data-slot":"sidebar-gap",className:n("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsx("div",c(l({"data-slot":"sidebar-container",className:n("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},i),{children:jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-sm",children:s})}))]})}function Uf(f){var p=f,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsx(HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:s,enableHover:i=false}=p,u=d(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:h,isMobile:b}=ga(),[I,C]=useState(false),N=s||{open:"Esconder",closed:"Mostrar"},V=()=>i&&I?h?jsx(ChevronLeftMd,{className:o}):jsx(ChevronRightMd,{className:o}):t,S=jsxs("button",c(l({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:n("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:A=>{a==null||a(A),m();},onMouseEnter:!b&&i?()=>C(true):void 0,onMouseLeave:!b&&i?()=>C(false):void 0},u),{children:[V(),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||b?S:jsxs($e,{children:[jsx(Je,{asChild:true,children:S}),jsx(Ye,{side:"right",align:"center",children:h?N.open:N.closed})]})}function Vf(o){var t=o,{className:e}=t,a=d(t,["className"]);let{toggleSidebar:r}=ga();return jsx("button",l({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function _f(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("main",l({"data-slot":"sidebar-inset",className:n("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function Gf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(io,l({"data-slot":"sidebar-input","data-sidebar":"input",className:n("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Wf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-header","data-sidebar":"header",className:n("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function Xf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-footer","data-sidebar":"footer",className:n("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function Kf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(ra,l({"data-slot":"sidebar-separator","data-sidebar":"separator",className:n("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function jf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-content","data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Zf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-group","data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Qf(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?Slot.Slot:"div";return jsx(s,l({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:n("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function $f(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?Slot.Slot:"button";return jsx(s,l({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:n("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function Jf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n("w-full text-sm",e)},a))}function Yf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({"data-slot":"sidebar-menu","data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e)},a))}function ec(r){var s=r,{className:e,isActive:a,children:o}=s,t=d(s,["className","isActive","children"]);return jsxs("li",c(l({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var ac=cva("peer/menu-button font-medium flex w-full items-center gap-2.5 overflow-hidden rounded-md p-[.55rem] text-left text-sm outline-hidden ring-ring transition-[width,height,padding] hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:text-secondary-foreground active:font-semibold disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:text-secondary-foreground data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg]:data-[active=true]:stroke-[2.2] [&>svg]:size-5 [&>svg]:shrink-0 mx-auto",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_hsl(var(--color-border))] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_hsl(var(--secondary))]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"md"}});function tc(u){var f=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:s}=f,i=d(f,["asChild","isActive","variant","size","tooltip","className"]);let p=e?Slot.Slot:"button",{isMobile:m,state:h}=ga(),b=jsx(p,l({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:n(ac({variant:o,size:t}),s)},i));return r?(typeof r=="string"&&(r={children:r}),jsxs($e,{children:[jsx(Je,{asChild:true,children:b}),jsx(Ye,l({side:"right",align:"center",hidden:h!=="collapsed"||m},r))]})):b}function oc(r){var s=r,{className:e,asChild:a=false,showOnHover:o=false}=s,t=d(s,["className","asChild","showOnHover"]);let i=a?Slot.Slot:"button";return jsx(i,l({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:n("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function rc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:n("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e)},a))}function sc(t){var r=t,{className:e,showIcon:a=false}=r,o=d(r,["className","showIcon"]);let s=useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",c(l({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:n("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsx(Lt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(Lt,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function lc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function nc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("li",l({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:n("group/menu-sub-item relative",e)},a))}function dc({icon:e,title:a}){let{state:o,isMobile:t}=ga();return jsxs(Fragment,{children:[isValidElement(e)?cloneElement(e,{strokeWidth:1.8}):e,jsx("span",{className:n("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function ic(){return jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsx(ChevronRightMd,{size:20,strokeWidth:1.5})})}function uc(s){var i=s,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=d(i,["asChild","size","isActive","className"]);let u=e?Slot.Slot:"a";return jsx(u,l({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:n("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var mc={sm:"size-2",md:"size-3",lg:"size-4"},Xs={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},gc={sm:"data-[state=checked]:translate-x-[11px] data-[state=checked]:rtl:-translate-x-[11px] data-[state=checked]:data-[disabled]:translate-x-[10px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[10px]",md:"data-[state=checked]:translate-x-[15px] data-[state=checked]:rtl:-translate-x-[15px] data-[state=checked]:data-[disabled]:translate-x-[14px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[14px]",lg:"data-[state=checked]:translate-x-[19px] data-[state=checked]:rtl:-translate-x-[19px] data-[state=checked]:data-[disabled]:translate-x-[18px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[18px]"},Ks=cva("peer inline-flex shrink-0 items-center rounded-pill outline-none transition-all disabled:pointer-events-none focus:outline-0",{variants:{variant:{regular:"border-2 border-gray-stroke-muted data-[disabled]:cursor-default data-[disabled]:!bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=unchecked]:bg-surface-card data-[state=checked]:border-transparent data-[disabled]:data-[state=checked]:bg-gray-background-soft-muted data-[disabled]:data-[state=checked]:border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis"},size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{variant:"regular",size:"md"}});function xc(f){var p=f,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:s,defaultChecked:i}=p,u=d(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,h]=useState(i||false),b=s!==void 0,I=b?s:m,C=t||r;return jsx(Switch.Root,c(l({"data-slot":"switch",className:n("group",Ks({size:a,variant:o}),e),checked:s,defaultChecked:i,onCheckedChange:D=>{var N;b||h(D),(N=u.onCheckedChange)==null||N.call(u,D);}},u),{children:jsx(Switch.Thumb,{"data-slot":"switch-thumb",className:n("pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",C&&"!bg-transparent data-[disabled]:!bg-transparent",mc[a||"md"],gc[a||"md"]),children:C&&jsxs(Fragment,{children:[I&&t&&jsx("span",{className:n("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",Xs[a||"md"]),children:t}),!I&&r&&jsx("span",{className:n("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",Xs[a||"md"]),children:r})]})})}))}var js=createContext({});function Ic({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:s}){let[i,u]=useState(a||""),f={value:a||i,onValueChange:o||u};return jsx(js.Provider,{value:f,children:jsx($t,{open:t,defaultOpen:r,onOpenChange:s,children:e})})}function kc({children:e,asChild:a=true,className:o}){return jsx(Jt,{className:o,asChild:a,children:e})}function yc({children:e,align:a="center",side:o="right",className:t}){return jsx(Yt,{className:t,align:a,side:o,children:e})}function Sc({children:e,label:a}){let{value:o,onValueChange:t}=useContext(js);return a?jsxs(Fragment,{children:[jsx(ao,{children:a}),jsx(tt,{value:o,onValueChange:t,children:e})]}):jsx(tt,{value:o,onValueChange:t,children:e})}function wc({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxs(eo,{value:a,onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxs(at,{onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function Pc({children:e,onClick:a,icon:o}){return jsxs(at,{onClick:a,children:[o,e]})}function Tc(){return jsx(to,{})}var $s=createContext(null),Nc=150,Zs=16,Fc="w-8";function yt(){let e=useContext($s);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function Ec(e,a){let o=useRef(null);return useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var Js=cva("relative inline-flex min-w-full items-center justify-between gap-0 bg-surface-section",{variants:{variant:{standalone:"rounded-lg border border-gray-stroke-muted px-6",header:"border-b border-gray-stroke-muted px-3.5 sm:px-6 lg:px-8 bg-transparent"}},defaultVariants:{variant:"standalone"}}),Ys=cva(["inline-flex min-w-fit flex-1 items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:text-gray-foreground-muted","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-all","relative font-medium text-gray-foreground hover:text-gray-foreground data-[state=active]:text-primary-foreground data-[state=active]:font-semibold"],{variants:{variant:{standalone:"px-3.5 md:px-10 lg:px-16",header:"px-4"},size:{md:"h-[46px] text-sm",lg:"h-[54px] text-base"}},defaultVariants:{variant:"standalone",size:"md"}}),Oc=cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),Qs=cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Fc],{variants:{side:{left:"left-0 bg-gradient-to-r from-background to-transparent",right:"right-0 bg-gradient-to-l from-background to-transparent"},variant:{standalone:"",header:""}},compoundVariants:[{side:"left",variant:"header",class:"left-3.5 sm:left-6 lg:left-8"},{side:"right",variant:"header",class:"right-3.5 sm:right-6 lg:right-8"}],defaultVariants:{side:"left",variant:"standalone"}}),el=cva("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{standalone:"",header:""},size:{md:"",lg:""}},compoundVariants:[{variant:"standalone",size:"md",class:"m-4"},{variant:"standalone",size:"lg",class:"m-6"},{variant:"header",size:"md",class:"my-4"},{variant:"header",size:"lg",class:"my-6"}],defaultVariants:{variant:"standalone",size:"md"}});function Hc(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,s=d(u,["className","variant","size","responsive","children"]);let[f,p]=useState(o),m=useCallback(()=>{if(typeof window=="undefined")return;let b=parseInt(fa.tablet),I=parseInt(fa.mobile),C=window.innerWidth;C<=I||C<=b?p("md"):p(o);},[o]),h=Ec(m,Nc);return useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[t,o,m,h]),jsx($s.Provider,{value:{variant:a,size:o,responsiveSize:f},children:jsx(Tabs.Root,c(l({"data-slot":"tabs","data-variant":a,"data-size":f,className:n("flex w-full max-w-full flex-col overflow-hidden",e)},s),{children:r}))})}function zc(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,responsiveSize:i}=yt(),u=useRef(null),f=useRef(null),[p,m]=useState(false),[h,b]=useState(false),[I,C]=useState(null),D=useCallback(()=>{let S=u.current;if(!S)return;let{scrollLeft:A,scrollWidth:X,clientWidth:g}=S,k=X>g;m(k&&A>0),b(k&&A<X-g-1);},[]),N=useCallback(()=>{let S=f.current;if(!S)return;let A=S.querySelector('[data-state="active"]');if(A){let X=S.getBoundingClientRect(),g=A.getBoundingClientRect();C({left:g.left-X.left,width:g.width});}},[]),V=useCallback(()=>{let S=u.current,A=f.current;if(!S||!A)return;let X=A.querySelector('[data-state="active"]');if(X){let g=S.getBoundingClientRect(),k=X.getBoundingClientRect();k.left<g.left?S.scrollBy({left:k.left-g.left-Zs,behavior:"smooth"}):k.right>g.right&&S.scrollBy({left:k.right-g.right+Zs,behavior:"smooth"});}},[]);return useEffect(()=>{let S=u.current;if(!S)return;D();let A=new ResizeObserver(()=>{D(),N();});return A.observe(S),S.addEventListener("scroll",D,{passive:true}),()=>{A.disconnect(),S.removeEventListener("scroll",D);}},[D,N]),useEffect(()=>{N();},[N,a]),useEffect(()=>{let S=f.current;if(!S)return;let A=new MutationObserver(X=>{for(let g of X)if(g.type==="attributes"&&g.attributeName==="data-state"){N(),V();break}});return A.observe(S,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>A.disconnect()},[N,V]),jsxs("div",{"data-slot":"tabs-list-wrapper",className:Oc({variant:s}),children:[jsx("div",{className:n(Qs({side:"left",variant:s}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{className:n(Qs({side:"right",variant:s}),h?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxs("div",{ref:f,className:"relative",children:[jsx(Tabs.List,c(l({"data-slot":"tabs-list","data-variant":s,"data-size":i,className:n(Js({variant:s}),e)},o),{children:a})),I&&jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:I.left,width:I.width},"aria-hidden":"true"})]})})]})}function qc(s){var i=s,{className:e,children:a,icon:o,badge:t}=i,r=d(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:f}=yt(),p=useRef(null),[m,h]=useState(false);useEffect(()=>{let I=p.current;if(!I)return;let C=()=>{h(I.getAttribute("data-state")==="active");};C();let D=new MutationObserver(C);return D.observe(I,{attributes:true,attributeFilter:["data-state"]}),()=>D.disconnect()},[]);let b=()=>o?isValidElement(o)?cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxs(Tabs.Trigger,c(l({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":f,className:n(Ys({variant:u,size:f}),e)},r),{children:[o&&jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:b()}),jsx("span",{children:a}),t&&jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function Uc(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r,responsiveSize:s}=yt();return jsx(Tabs.Content,l({"data-slot":"tabs-content","data-variant":r,"data-size":s,className:n(el({variant:r,size:s}),e)},a))}var al=cva("group/tile relative flex flex-col justify-center rounded-lg gap-0.5 px-5 py-4 cursor-default data-[disabled=true]:pointer-events-none",{variants:{variant:{regular:"bg-surface-settings-on text-primary-foreground fill-primary-foreground data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-on)_100%)] data-[disabled=true]:bg-surface-disable data-[inactive=true]:bg-surface-settings-off data-[inactive=true]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-off)_100%)]",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cm-background-fill-emphasis)_0%,_var(--color-cm-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-go-background-fill-emphasis)_0%,_var(--color-go-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cir-background-fill-emphasis)_0%,_var(--color-cir-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-ped-background-fill-emphasis)_0%,_var(--color-ped-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-prev-background-fill-emphasis)_0%,_var(--color-prev-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]"}},defaultVariants:{variant:"regular"}});function Wc(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,s=d(u,["className","variant","asChild","disabled","inactive"]);let f=o?Slot.Slot:"div";return jsxs(f,c(l({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:n(al({variant:a,className:e}),s.onClick&&!t&&"cursor-pointer")},s),{children:[s.children,s.onClick&&!t&&jsx(EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Xc(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",c(l({"data-slot":"tile-icon",className:n("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Kc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"tile-title",className:n("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function jc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"data-slot":"tile-description",className:n("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var Jc=3,Yc=1e6,Oe={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},Io=0;function ep(){return Io=(Io+1)%Number.MAX_SAFE_INTEGER,Io.toString()}var ko=new Map,tl=e=>{if(ko.has(e))return;let a=setTimeout(()=>{ko.delete(e),Oa({type:Oe.REMOVE_TOAST,toastId:e});},Yc);ko.set(e,a);},ap=(e,a)=>{switch(a.type){case Oe.ADD_TOAST:return c(l({},e),{toasts:[a.toast,...e.toasts].slice(0,Jc)});case Oe.UPDATE_TOAST:return c(l({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?l(l({},o),a.toast):o)});case Oe.DISMISS_TOAST:{let{toastId:o}=a;return o?tl(o):e.toasts.forEach(t=>{tl(t.id);}),c(l({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?c(l({},t),{open:false}):t)})}case Oe.REMOVE_TOAST:return a.toastId===void 0?c(l({},e),{toasts:[]}):c(l({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},wt=[],Pt={toasts:[]};function Oa(e){Pt=ap(Pt,e),wt.forEach(a=>{a(Pt);});}function tp(a){var e=d(a,[]);let o=ep(),t=s=>Oa({type:Oe.UPDATE_TOAST,toast:c(l({},s),{id:o})}),r=()=>Oa({type:Oe.DISMISS_TOAST,toastId:o});return Oa({type:Oe.ADD_TOAST,toast:c(l({},e),{id:o,open:true,onOpenChange:s=>{s||r();}})}),{id:o,dismiss:r,update:t}}function yo(){let[e,a]=useState(Pt);return useEffect(()=>(wt.push(a),()=>{let o=wt.indexOf(a);o>-1&&wt.splice(o,1);}),[e]),c(l({},e),{toast:tp,dismiss:o=>Oa({type:Oe.DISMISS_TOAST,toastId:o})})}var sl=cva("group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md bg-surface-elevated p-2 pl-4 shadow-lg",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),ip=cva("size-6 shrink-0",{variants:{variant:{primary:"text-primary-foreground fill-primary-background-soft",secondary:"text-secondary-foreground fill-secondary-background-soft",success:"text-feedback-success-foreground fill-feedback-success-background-soft",warning:"text-feedback-warning-foreground fill-feedback-warning-background-soft",error:"text-feedback-error-foreground fill-feedback-error-background-soft"}},defaultVariants:{variant:"primary"}}),up={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},fp={primary:Info,secondary:Info,success:CircleCheck,warning:TriangleWarning,error:OctagonWarning},ll=Toast.Provider;function nl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Viewport,l({className:n("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function dl(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,s=d(u,["className","variant","showIcon","duration","children"]);let f=fp[a||"primary"];return jsx(Toast.Root,c(l({duration:t},s),{forceMount:true,asChild:true,children:jsxs(motion.li,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50,zIndex:-1},transition:{duration:.4,ease:"easeInOut"},layout:true,className:n(sl({variant:a}),e),children:[o&&jsx(f,{className:n(ip({variant:a}))}),jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function cp(f){var p=f,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:s,altText:i="Toast action"}=p,u=d(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsx(Toast.Action,c(l({asChild:true,altText:i,className:n("inline-flex items-center justify-center",e)},u),{children:jsx(Le,{iconLeft:t,iconRight:r,size:o,variant:up[a],children:s})}))}function il(t){var r=t,{className:e,label:a="Fechar"}=r,o=d(r,["className","label"]);return jsx(Toast.Close,c(l({className:n("shrink-0",e)},o),{asChild:true,children:jsx(Le,{iconLeft:jsx(CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function ul(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Title,l({className:n("flex-1 text-md font-medium",e)},a))}function fl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Description,l({className:n("text-xs",e)},a))}function pp(){let{toasts:e}=yo();return jsxs(ll,{children:[jsx(AnimatePresence,{mode:"popLayout",children:e.filter(a=>a.open).map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,s=d(u,["id","title","description","action"]);return jsxs(dl,c(l({},s),{children:[jsxs("div",{className:"grid",children:[o&&jsx(ul,{children:o}),t&&jsx(fl,{children:t})]}),jsxs("div",{className:"flex items-center gap-2",children:[r,jsx(il,{})]})]}),a)})}),jsx(nl,{})]})}/*! Bundled license information:
|
|
1
|
+
import*as E from'react';import {createContext,forwardRef,createElement,Children,isValidElement,useContext,useState,useMemo,useEffect,useRef,useId,useCallback,cloneElement}from'react';import {cva}from'class-variance-authority';import {Mail,CloseMd,ChevronDown,Check,User,ChevronRightMd,MoreHorizontal,TimeRemaining,RemoveMinus,ChevronRight,Calendar,ChevronLeftMd,Lock,Hide,Show,TriangleWarning,ChevronLeftDuo,ChevronRightDuo,Circle,Info,CheckboxFill,Warning,ArrowRightMd,ChevronUp,HamburgerMd,EditPencil,OctagonWarning,CircleCheck,SearchMagnifyingGlass}from'@medway-ui/icons';import {clsx}from'clsx';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {Toast,Slot,AlertDialog,Separator,Dialog,Avatar,Progress,Checkbox,Collapsible,DropdownMenu,Label,RadioGroup,Tooltip,ScrollArea,Select,Tabs,Switch,Popover}from'radix-ui';import {createPortal}from'react-dom';import {motion,AnimatePresence}from'framer-motion';var Tl=Object.defineProperty,Al=Object.defineProperties;var Rl=Object.getOwnPropertyDescriptors;var Qa=Object.getOwnPropertySymbols;var Ho=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable;var Oo=(e,a,o)=>a in e?Tl(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,l=(e,a)=>{for(var o in a||(a={}))Ho.call(a,o)&&Oo(e,o,a[o]);if(Qa)for(var o of Qa(a))zo.call(a,o)&&Oo(e,o,a[o]);return e},c=(e,a)=>Al(e,Rl(a));var d=(e,a)=>{var o={};for(var t in e)Ho.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&Qa)for(var t of Qa(e))a.indexOf(t)<0&&zo.call(e,t)&&(o[t]=e[t]);return o};var Dl=(e,a)=>{let o=new Array(e.length+a.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<a.length;t++)o[e.length+t]=a[t];return o},Ml=(e,a)=>({classGroupId:e,validator:a}),Ko=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var qo=[],Bl="arbitrary..",Nl=e=>{let a=El(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Fl(i);let u=i.split("-"),f=u[0]===""&&u.length>1?1:0;return jo(u,f,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let f=t[i],p=o[i];return f?p?Dl(p,f):f:p||qo}return o[i]||qo}}},jo=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],s=o.nextPart.get(r);if(s){let p=jo(e,a+1,s);if(p)return p}let i=o.validators;if(i===null)return;let u=a===0?e.join("-"):e.slice(a).join("-"),f=i.length;for(let p=0;p<f;p++){let m=i[p];if(m.validator(u))return m.classGroupId}},Fl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),o=a.indexOf(":"),t=a.slice(0,o);return t?Bl+t:void 0})(),El=e=>{let{theme:a,classGroups:o}=e;return Ol(o,a)},Ol=(e,a)=>{let o=Ko();for(let t in e){let r=e[t];qt(r,o,t,a);}return o},qt=(e,a,o,t)=>{let r=e.length;for(let s=0;s<r;s++){let i=e[s];Hl(i,a,o,t);}},Hl=(e,a,o,t)=>{if(typeof e=="string"){zl(e,a,o);return}if(typeof e=="function"){ql(e,a,o,t);return}Ul(e,a,o,t);},zl=(e,a,o)=>{let t=e===""?a:Zo(a,e);t.classGroupId=o;},ql=(e,a,o,t)=>{if(Vl(e)){qt(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Ml(o,e));},Ul=(e,a,o,t)=>{let r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){let[u,f]=r[i];qt(f,Zo(a,u),o,t);}},Zo=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let s=0;s<r;s++){let i=t[s],u=o.nextPart.get(i);u||(u=Ko(),o.nextPart.set(i,u)),o=u;}return o},Vl=e=>"isThemeGetter"in e&&e.isThemeGetter===true,_l=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(s,i)=>{o[s]=i,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(s){let i=o[s];if(i!==void 0)return i;if((i=t[s])!==void 0)return r(s,i),i},set(s,i){s in o?o[s]=i:r(s,i);}}};var Gl=[],Uo=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),Wl=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let s=[],i=0,u=0,f=0,p,m=r.length;for(let D=0;D<m;D++){let M=r[D];if(i===0&&u===0){if(M===":"){s.push(r.slice(f,D)),f=D+1;continue}if(M==="/"){p=D;continue}}M==="["?i++:M==="]"?i--:M==="("?u++:M===")"&&u--;}let b=s.length===0?r:r.slice(f),x=b,T=false;b.endsWith("!")?(x=b.slice(0,-1),T=true):b.startsWith("!")&&(x=b.slice(1),T=true);let C=p&&p>f?p-f:void 0;return Uo(s,T,x,C)};if(a){let r=a+":",s=t;t=i=>i.startsWith(r)?s(i.slice(r.length)):Uo(Gl,false,i,void 0,true);}if(o){let r=t;t=s=>o({className:s,parseClassName:r});}return t},Xl=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let s=0;s<o.length;s++){let i=o[s],u=i[0]==="[",f=a.has(i);u||f?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(i)):r.push(i);}return r.length>0&&(r.sort(),t.push(...r)),t}},Kl=e=>l({cache:_l(e.cacheSize),parseClassName:Wl(e),sortModifiers:Xl(e)},Nl(e)),jl=/\s+/,Zl=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:s}=a,i=[],u=e.trim().split(jl),f="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:b,modifiers:x,hasImportantModifier:T,baseClassName:C,maybePostfixModifierPosition:D}=o(m);if(b){f=m+(f.length>0?" "+f:f);continue}let M=!!D,G=t(M?C.substring(0,D):C);if(!G){if(!M){f=m+(f.length>0?" "+f:f);continue}if(G=t(C),!G){f=m+(f.length>0?" "+f:f);continue}M=false;}let w=x.length===0?"":x.length===1?x[0]:s(x).join(":"),k=T?w+"!":w,j=k+G;if(i.indexOf(j)>-1)continue;i.push(j);let H=r(G,M);for(let g=0;g<H.length;++g){let I=H[g];i.push(k+I);}f=m+(f.length>0?" "+f:f);}return f},Ql=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=Qo(o))&&(r&&(r+=" "),r+=t);return r},Qo=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=Qo(e[t]))&&(o&&(o+=" "),o+=a);return o},Vo=(e,...a)=>{let o,t,r,s,i=f=>{let p=a.reduce((m,b)=>b(m),e());return o=Kl(p),t=o.cache.get,r=o.cache.set,s=u,u(f)},u=f=>{let p=t(f);if(p)return p;let m=Zl(f,o);return r(f,m),m};return s=i,(...f)=>s(Ql(...f))},$l=[],de=e=>{let a=o=>o[e]||$l;return a.isThemeGetter=true,a},$o=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Yl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,en=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,an=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,on=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qe=e=>Jl.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),Ue=e=>!!e&&Number.isInteger(Number(e)),zt=e=>e.endsWith("%")&&_(e.slice(0,-1)),Me=e=>Yl.test(e),Yo=()=>true,rn=e=>en.test(e)&&!an.test(e),Ut=()=>false,sn=e=>tn.test(e),ln=e=>on.test(e),nn=e=>!P(e)&&!A(e),dn=e=>Ve(e,tr,Ut),P=e=>$o.test(e),je=e=>Ve(e,or,rn),_o=e=>Ve(e,hn,_),un=e=>Ve(e,sr,Yo),fn=e=>Ve(e,rr,Ut),Go=e=>Ve(e,er,Ut),cn=e=>Ve(e,ar,ln),$a=e=>Ve(e,lr,sn),A=e=>Jo.test(e),Ta=e=>Ze(e,or),pn=e=>Ze(e,rr),Wo=e=>Ze(e,er),mn=e=>Ze(e,tr),gn=e=>Ze(e,ar),Ja=e=>Ze(e,lr,true),xn=e=>Ze(e,sr,true),Ve=(e,a,o)=>{let t=$o.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},Ze=(e,a,o=false)=>{let t=Jo.exec(e);return t?t[1]?a(t[1]):o:false},er=e=>e==="position"||e==="percentage",ar=e=>e==="image"||e==="url",tr=e=>e==="length"||e==="size"||e==="bg-size",or=e=>e==="length",hn=e=>e==="number",rr=e=>e==="family-name",sr=e=>e==="number"||e==="weight",lr=e=>e==="shadow";var Xo=()=>{let e=de("color"),a=de("font"),o=de("text"),t=de("font-weight"),r=de("tracking"),s=de("leading"),i=de("breakpoint"),u=de("container"),f=de("spacing"),p=de("radius"),m=de("shadow"),b=de("inset-shadow"),x=de("text-shadow"),T=de("drop-shadow"),C=de("blur"),D=de("perspective"),M=de("aspect"),G=de("ease"),w=de("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...j(),A,P],g=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],L=()=>[A,P,f],X=()=>[qe,"full","auto",...L()],W=()=>[Ue,"none","subgrid",A,P],Q=()=>["auto",{span:["full",Ue,A,P]},Ue,A,P],me=()=>[Ue,"auto",A,P],Le=()=>["auto","min","max","fr",A,P],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...L()],se=()=>[qe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],Te=()=>[qe,"screen","full","dvw","lvw","svw","min","max","fit",...L()],Ae=()=>[qe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],R=()=>[e,A,P],ne=()=>[...j(),Wo,Go,{position:[A,P]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],h=()=>["auto","cover","contain",mn,dn,{size:[A,P]}],O=()=>[zt,Ta,je],S=()=>["","none","full",p,A,P],y=()=>["",_,Ta,je],q=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[_,zt,Wo,Go],le=()=>["","none",C,A,P],B=()=>["none",_,A,P],v=()=>["none",_,A,P],V=()=>[_,A,P],K=()=>[qe,"full",...L()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[Yo],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[nn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",_],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qe,P,A,M]}],container:["container"],columns:[{columns:[_,P,A,u]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:H()}],overflow:[{overflow:g()}],"overflow-x":[{"overflow-x":g()}],"overflow-y":[{"overflow-y":g()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{"inset-s":X(),start:X()}],end:[{"inset-e":X(),end:X()}],"inset-bs":[{"inset-bs":X()}],"inset-be":[{"inset-be":X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[Ue,"auto",A,P]}],basis:[{basis:[qe,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,qe,"auto","initial","none",P]}],grow:[{grow:["",_,A,P]}],shrink:[{shrink:["",_,A,P]}],order:[{order:[Ue,"first","last","none",A,P]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...Te()]}],"min-inline-size":[{"min-inline":["auto",...Te()]}],"max-inline-size":[{"max-inline":["none",...Te()]}],"block-size":[{block:["auto",...Ae()]}],"min-block-size":[{"min-block":["auto",...Ae()]}],"max-block-size":[{"max-block":["none",...Ae()]}],w:[{w:[u,"screen",...se()]}],"min-w":[{"min-w":[u,"screen","none",...se()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",o,Ta,je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,xn,un]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zt,P]}],"font-family":[{font:[pn,fn,a]}],"font-features":[{"font-features":[P]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,A,P]}],"line-clamp":[{"line-clamp":[_,"none",A,_o]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",A,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",A,je]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[_,"auto",A,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",A,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:h()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ue,A,P],radial:["",A,P],conic:[Ue,A,P]},gn,cn]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:y()}],"border-w-x":[{"border-x":y()}],"border-w-y":[{"border-y":y()}],"border-w-s":[{"border-s":y()}],"border-w-e":[{"border-e":y()}],"border-w-bs":[{"border-bs":y()}],"border-w-be":[{"border-be":y()}],"border-w-t":[{"border-t":y()}],"border-w-r":[{"border-r":y()}],"border-w-b":[{"border-b":y()}],"border-w-l":[{"border-l":y()}],"divide-x":[{"divide-x":y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,A,P]}],"outline-w":[{outline:["",_,Ta,je]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,Ja,$a]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",b,Ja,$a]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[_,je]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",x,Ja,$a]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[_,A,P]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[A,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:h()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,P]}],filter:[{filter:["","none",A,P]}],blur:[{blur:le()}],brightness:[{brightness:[_,A,P]}],contrast:[{contrast:[_,A,P]}],"drop-shadow":[{"drop-shadow":["","none",T,Ja,$a]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",_,A,P]}],"hue-rotate":[{"hue-rotate":[_,A,P]}],invert:[{invert:["",_,A,P]}],saturate:[{saturate:[_,A,P]}],sepia:[{sepia:["",_,A,P]}],"backdrop-filter":[{"backdrop-filter":["","none",A,P]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[_,A,P]}],"backdrop-contrast":[{"backdrop-contrast":[_,A,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,A,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,A,P]}],"backdrop-invert":[{"backdrop-invert":["",_,A,P]}],"backdrop-opacity":[{"backdrop-opacity":[_,A,P]}],"backdrop-saturate":[{"backdrop-saturate":[_,A,P]}],"backdrop-sepia":[{"backdrop-sepia":["",_,A,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",A,P]}],ease:[{ease:["linear","initial",G,A,P]}],delay:[{delay:[_,A,P]}],animate:[{animate:["none",w,A,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,A,P]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:v()}],"scale-x":[{"scale-x":v()}],"scale-y":[{"scale-y":v()}],"scale-z":[{"scale-z":v()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[A,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",A,P]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",A,P]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[_,Ta,je,_o]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bn=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:s={}})=>(Aa(e,"cacheSize",a),Aa(e,"prefix",o),Aa(e,"experimentalParseClassName",t),Ya(e.theme,s.theme),Ya(e.classGroups,s.classGroups),Ya(e.conflictingClassGroups,s.conflictingClassGroups),Ya(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Aa(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),et(e.theme,r.theme),et(e.classGroups,r.classGroups),et(e.conflictingClassGroups,r.conflictingClassGroups),et(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),nr(e,r,"orderSensitiveModifiers"),e),Aa=(e,a,o)=>{o!==void 0&&(e[a]=o);},Ya=(e,a)=>{if(a)for(let o in a)Aa(e,o,a[o]);},et=(e,a)=>{if(a)for(let o in a)nr(e,a,o);},nr=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},dr=(e,...a)=>typeof e=="function"?Vo(Xo,e,...a):Vo(()=>bn(Xo(),e),...a);var vn=dr({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-md","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"]}}});function n(...e){return vn(clsx(e))}var Vt=createContext(null),pr=cva("relative flex flex-col items-center justify-between gap-5 w-full rounded-md px-4 py-3 text-sm has-[>svg]:gap-x-9 gap-y-1 items-center [&>svg]:translate-y-0 [&>svg]:text-current lg:flex-row",{variants:{variant:{regular:"[background:linear-gradient(0deg,_var(--color-primary-background-soft)_0%,_var(--color-primary-background-soft)_100%),_var(--color-surface-card)] text-primary-foreground [&>svg]:text-primary-foreground",emphasis:"[background:linear-gradient(0deg,_var(--color-secondary-background-soft)_0%,_var(--color-secondary-background-soft)_100%),_var(--color-surface-card)] text-secondary-foreground [&>svg]:text-secondary-foreground",success:"[background:linear-gradient(0deg,_var(--color-green-background-soft)_0%,_var(--color-green-background-soft)_100%),_var(--color-surface-card)] text-green-foreground [&>svg]:text-green-foreground",warning:"[background:linear-gradient(0deg,_var(--color-yellow-background-soft)_0%,_var(--color-yellow-background-soft)_100%),_var(--color-surface-card)] text-yellow-foreground [&>svg]:text-yellow-foreground",error:"[background:linear-gradient(0deg,_var(--color-red-background-soft)_0%,_var(--color-red-background-soft)_100%),_var(--color-surface-card)] text-red-foreground [&>svg]:text-red-foreground"}},defaultVariants:{variant:"regular"}});function kn(s){var i=s,{className:e,variant:a="regular",onClose:o,children:t}=i,r=d(i,["className","variant","onClose","children"]);let u=Children.toArray(t).some(p=>isValidElement(p)&&p.type===gr),f=Children.toArray(t).some(p=>isValidElement(p)&&p.type===mr);return jsx(Vt.Provider,{value:{variant:a,hasDescription:u,hasTitle:f,onClose:o},children:jsxs("div",c(l({"data-slot":"alert",role:"alert",className:n(pr({variant:a}),e)},r),{children:[t,o&&jsx(CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function yn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-container",className:n("flex gap-3",e)},a))}function Sn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-content",className:n("flex flex-col gap-1",e)},a))}function wn(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",c(l({"data-slot":"alert-icon",className:n("size-6",e)},o),{children:a}))}function mr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-title",className:n("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function gr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-description",className:n("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function Pn(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Vt),s=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsx("div",l({"data-slot":"alert-actions",className:n("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!s||!i)&&u&&"lg:right-5",e)},a))}var xr=cva("inline-flex items-center justify-center rounded-pill px-3 py-2 min-h-10 text-sm font-semibold transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:brightness-90",{variants:{variant:{regular:"text-current",basic:"text-current"},alertVariant:{regular:"",emphasis:"",success:"",warning:"",error:""}},compoundVariants:[{variant:"regular",alertVariant:"regular",class:"bg-primary-background-soft"},{variant:"regular",alertVariant:"emphasis",class:"bg-secondary-background-soft"},{variant:"regular",alertVariant:"success",class:"bg-green-background-soft"},{variant:"regular",alertVariant:"warning",class:"bg-yellow-background-soft"},{variant:"regular",alertVariant:"error",class:"bg-red-background-soft"}],defaultVariants:{variant:"regular",alertVariant:"regular"}});function Tn(t){var r=t,{className:e,variant:a}=r,o=d(r,["className","variant"]);let s=useContext(Vt),i=(s==null?void 0:s.variant)||"regular";return jsx("button",l({className:n(xr({variant:a,alertVariant:i}),e)},o))}function _t({size:e=24,className:a}){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n("animate-spin",a),children:jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Bn={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},Nn={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},br=cva("inline-flex items-center justify-center rounded-pill border font-semibold w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:pointer-events-none overflow-hidden border-transparent px-2",{variants:{variant:{regular:"bg-secondary-background-fill text-secondary-foreground-onfill",error:"bg-red-background-soft text-red-stroke-emphasis",warning:"bg-yellow-background-soft text-yellow-foreground",freemium:"[background:radial-gradient(135.09%_111.8%_at_0%_50%,rgba(24,98,188,0.02)_0%,rgba(0,32,91,0)_100%),linear-gradient(46deg,rgba(62,218,199,0.56)_6.54%,rgba(24,98,188,0.17)_85.21%),var(--color-primary)] text-white"},size:{sm:"min-w-4 text-xxs [&>svg]:size-2.5",md:"min-w-5 text-xs [&>svg]:size-3",lg:"min-w-6 text-xs [&>svg]:size-3.5",xl:"min-w-7 text-sm [&>svg]:size-4"}},defaultVariants:{variant:"regular",size:"md"}});function Qe(u){var f=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:s=false}=f,i=d(f,["className","variant","size","icon","animation","asChild"]);let p=s?Slot.Slot:"span",m=Children.count(i.children)>0,b=!!t&&!m,x=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",T=/^[A-Za-z0-9]$/.test(x),C=/^[A-Za-z0-9]{2,3}$/.test(x),D=/^\d{1,2}\S$/.test(x),M=C||D;return jsxs(p,c(l({"data-slot":"badge",className:n(br({variant:a,size:o}),(b||T)&&Bn[o||"md"],!b&&M&&Nn[o||"md"],r==="shine"&&"animate-shine bg-[linear-gradient(135deg,transparent_25%,var(--color-white-24)_50%,transparent_75%,transparent_100%)] bg-[length:250%_250%,100%_100%] bg-no-repeat",e)},i),{children:[t,i.children]}))}var Hn={sm:"!h-8 !min-h-8 !w-8 !px-3 !py-2",md:"!h-10 !min-h-10 !w-10 !px-[14px] !py-[10px]",lg:"!h-12 !min-h-12 !w-12 !p-3",xl:"!h-14 !min-h-14 !w-14 !p-3"},Lr={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},zn={sm:"sm",md:"md",lg:"md",xl:"lg"},Ra=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill text-sm font-semibold whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","regular-basic":"bg-transparent text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill hover:bg-secondary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","emphasis-basic":"bg-transparent text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",error:"bg-red-background-fill text-red-foreground-onfill hover:bg-red-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","error-basic":"bg-transparent text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",warning:"bg-yellow-background-fill text-yellow-foreground-onfill hover:bg-yellow-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","warning-basic":"bg-transparent text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",success:"bg-green-background-fill text-green-foreground-onfill hover:bg-green-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","success-basic":"bg-transparent text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",outlined:"border border-gray-stroke-muted bg-transparent text-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function ve(b){var x=b,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:s,iconLeft:i,badge:u,loading:f=false,alert:p}=x,m=d(x,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let T=r?Slot.Slot:"button",C=k=>k!=null&&k!==0&&k!==""&&k!=="0",D=k=>k,M=!m.children&&(i||s||p),G=()=>p?jsxs("span",{className:n("relative mr-1 flex size-2.5",Lr[t||"md"]),children:[jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsx("span",{className:n("relative inline-flex size-2.5 rounded-full",Lr[t||"md"]),style:{backgroundColor:p}})]}):null,w=()=>f?jsxs(Fragment,{children:[jsx(_t,{className:"[grid-area:stack]"}),jsx("span",{className:n("[grid-area:stack]",f&&"invisible"),children:m.children})]}):jsxs(Fragment,{children:[p?G():i&&D(i),m.children&&jsx("span",{children:m.children}),s&&D(s)]});return jsxs("div",{className:n("relative",a),children:[C(u)&&jsx(Qe,{size:zn[t||"md"],variant:"regular",className:n("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsx(T,c(l({disabled:f,"aria-busy":f,"aria-live":f?"polite":void 0,"data-slot":"button",className:n(M&&Hn[t||"md"],f&&"!inline-grid",Ra({variant:o,size:t,className:e}))},m),{children:w()}))]})}function qn(a){var e=d(a,[]);return jsx(AlertDialog.Root,l({"data-slot":"alert-dialog"},e))}function Un(a){var e=d(a,[]);return jsx(AlertDialog.Trigger,l({"data-slot":"alert-dialog-trigger"},e))}function Cr(a){var e=d(a,[]);return jsx(AlertDialog.Portal,l({"data-slot":"alert-dialog-portal"},e))}function Ir(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Overlay,l({"data-slot":"alert-dialog-overlay",className:n("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Vn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs(Cr,{children:[jsx(Ir,{}),jsx(AlertDialog.Content,l({"data-slot":"alert-dialog-content",className:n("fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border bg-surface-elevated p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},a))]})}function _n(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",e)},a))}function Gn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-dialog-footer",className:n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function Wn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Title,l({"data-slot":"alert-dialog-title",className:n("text-lg font-semibold",e)},a))}function Xn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Description,l({"data-slot":"alert-dialog-description",className:n("text-sm text-foreground",e)},a))}function Kn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Action,l({className:n(Ra(),e)},a))}function jn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Cancel,l({className:n(Ra({variant:"outlined"}),e)},a))}var Qn=0;function $n(){return `medway-id-${++Qn}`}var Jn=E.useId||(()=>{});function ye(){let e=Jn(),[a]=E.useState(()=>e!=null?e:$n());return a}var Yn=/[\\\/_+.#"@\[\(\{&]/,ed=/[\\\/_+.#"@\[\(\{&]/g,ad=/[\s-]/,yr=/[\s-]/g;function Gt(e,a,o,t,r,s,i){if(s===a.length)return r===e.length?1:.99;let u=`${r},${s}`;if(i[u]!==void 0)return i[u];let f=t.charAt(s),p=o.indexOf(f,r),m=0,b,x,T,C;for(;p>=0;)b=Gt(e,a,o,t,p+1,s+1,i),b>m&&(p===r?b*=1:Yn.test(e.charAt(p-1))?(b*=.8,T=e.slice(r,p-1).match(ed),T&&r>0&&(b*=Math.pow(.999,T.length))):ad.test(e.charAt(p-1))?(b*=.9,C=e.slice(r,p-1).match(yr),C&&r>0&&(b*=Math.pow(.999,C.length))):(b*=.17,r>0&&(b*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(s)&&(b*=.9999)),(b<.1&&o.charAt(p-1)===t.charAt(s+1)||t.charAt(s+1)===t.charAt(s)&&o.charAt(p-1)!==t.charAt(s))&&(x=Gt(e,a,o,t,p+1,s+2,i),x*.1>b&&(b=x*.1)),b>m&&(m=b),p=o.indexOf(f,p+1);return i[u]=m,m}function kr(e){return e.toLowerCase().replace(yr," ")}function Sr(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,Gt(e,a,kr(e),kr(a),0,0,{})}var Da='[cmdk-group=""]',Wt='[cmdk-group-items=""]',td='[cmdk-group-heading=""]',Pr='[cmdk-item=""]',wr=`${Pr}:not([aria-disabled="true"])`,Xt="cmdk-item-select",na="data-value",od=(e,a,o)=>Sr(e,a,o),Tr=E.createContext(void 0),Ba=()=>E.useContext(Tr),Ar=E.createContext(void 0),Kt=()=>E.useContext(Ar),Rr=E.createContext(void 0),Dr=E.forwardRef((e,a)=>{let o=da(()=>{var h,O;return {search:"",value:(O=(h=e.value)!=null?h:e.defaultValue)!=null?O:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=da(()=>new Set),r=da(()=>new Map),s=da(()=>new Map),i=da(()=>new Set),u=zr(e),ue=e,{label:f,children:p,value:m,onValueChange:b,filter:x,shouldFilter:T,loop:C,disablePointerSelection:D=false,vimBindings:M=true}=ue,G=d(ue,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),w=ye(),k=ye(),j=ye(),H=E.useRef(null),g=ld();_e(()=>{if(m!==void 0){let h=m.trim();o.current.value=h,I.emit();}},[m]),_e(()=>{g(6,Le);},[]);let I=E.useMemo(()=>({subscribe:h=>(i.current.add(h),()=>i.current.delete(h)),snapshot:()=>o.current,setState:(h,O,S)=>{var y,q,Y,U,le,B;if(!Object.is(o.current[h],O)){if(o.current[h]=O,h==="search")me(),W(),g(1,Q);else if(h==="value"){if((y=document.activeElement)!=null&&y.hasAttribute("cmdk-input")||(q=document.activeElement)!=null&&q.hasAttribute("cmdk-root")){let v=document.getElementById(j);v?v.focus():(Y=document.getElementById(w))==null||Y.focus();}if(g(7,()=>{var v;o.current.selectedItemId=(v=ce())==null?void 0:v.id,I.emit();}),S||g(5,Le),((U=u.current)==null?void 0:U.value)!==void 0){let v=O!=null?O:"";(B=(le=u.current).onValueChange)==null||B.call(le,v);return}}I.emit();}},emit:()=>{i.current.forEach(h=>h());}}),[]),L=E.useMemo(()=>({value:(h,O,S)=>{var y;O!==((y=s.current.get(h))==null?void 0:y.value)&&(s.current.set(h,{value:O,keywords:S}),o.current.filtered.items.set(h,X(O,S)),g(2,()=>{W(),I.emit();}));},item:(h,O)=>(t.current.add(h),O&&(r.current.has(O)?r.current.get(O).add(h):r.current.set(O,new Set([h]))),g(3,()=>{me(),W(),o.current.value||Q(),I.emit();}),()=>{s.current.delete(h),t.current.delete(h),o.current.filtered.items.delete(h);let S=ce();g(4,()=>{me(),(S==null?void 0:S.getAttribute("id"))===h&&Q(),I.emit();});}),group:h=>(r.current.has(h)||r.current.set(h,new Set),()=>{s.current.delete(h),r.current.delete(h);}),filter:()=>u.current.shouldFilter!==false,label:f||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:w,inputId:j,labelId:k,listInnerRef:H}),[]);function X(h,O){var y,q;let S=(q=(y=u.current)==null?void 0:y.filter)!=null?q:od;return h?S(h,o.current.search,O):0}function W(){if(!o.current.search||u.current.shouldFilter===false)return;let h=o.current.filtered.items,O=[];o.current.filtered.groups.forEach(y=>{let q=r.current.get(y),Y=0;q==null||q.forEach(U=>{let le=h.get(U);Y=Math.max(le!=null?le:0,Y);}),O.push([y,Y]);});let S=H.current;J().sort((y,q)=>{var le,B;let Y=y.getAttribute("id"),U=q.getAttribute("id");return ((le=h.get(U))!=null?le:0)-((B=h.get(Y))!=null?B:0)}).forEach(y=>{let q=y.closest(Wt);q?q.appendChild(y.parentElement===q?y:y.closest(`${Wt} > *`)):S==null||S.appendChild(y.parentElement===S?y:y.closest(`${Wt} > *`));}),O.sort((y,q)=>q[1]-y[1]).forEach(y=>{var Y,U;let q=(Y=H.current)==null?void 0:Y.querySelector(`${Da}[${na}="${encodeURIComponent(y[0])}"]`);(U=q==null?void 0:q.parentElement)==null||U.appendChild(q);});}function Q(){let h=J().find(S=>S.getAttribute("aria-disabled")!=="true"),O=h==null?void 0:h.getAttribute(na);I.setState("value",O||void 0);}function me(){var O,S,y,q,Y;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let h=0;for(let U of t.current){let le=(S=(O=s.current.get(U))==null?void 0:O.value)!=null?S:"",B=(q=(y=s.current.get(U))==null?void 0:y.keywords)!=null?q:[],v=X(le,B);o.current.filtered.items.set(U,v),v>0&&h++;}for(let[U,le]of r.current)for(let B of le)if(((Y=o.current.filtered.items.get(B))!=null?Y:0)>0){o.current.filtered.groups.add(U);break}o.current.filtered.count=h;}function Le(){var O,S,y;let h=ce();h&&(((O=h.parentElement)==null?void 0:O.firstChild)===h&&((y=(S=h.closest(Da))==null?void 0:S.querySelector(td))==null||y.scrollIntoView({block:"nearest"})),h.scrollIntoView({block:"nearest"}));}function ce(){var h;return (h=H.current)==null?void 0:h.querySelector(`${Pr}[aria-selected="true"]`)}function J(){var h;return Array.from(((h=H.current)==null?void 0:h.querySelectorAll(wr))||[])}function re(h){let S=J()[h];S&&I.setState("value",S.getAttribute(na));}function se(h){var Y;let O=ce(),S=J(),y=S.findIndex(U=>U===O),q=S[y+h];(Y=u.current)!=null&&Y.loop&&(q=y+h<0?S[S.length-1]:y+h===S.length?S[0]:S[y+h]),q&&I.setState("value",q.getAttribute(na));}function Te(h){let O=ce(),S=O==null?void 0:O.closest(Da),y;for(;S&&!y;)S=h>0?rd(S,Da):sd(S,Da),y=S==null?void 0:S.querySelector(wr);y?I.setState("value",y.getAttribute(na)):se(h);}let Ae=()=>re(J().length-1),R=h=>{h.preventDefault(),h.metaKey?Ae():h.altKey?Te(1):se(1);},ne=h=>{h.preventDefault(),h.metaKey?re(0):h.altKey?Te(-1):se(-1);};return jsxs("div",c(l({ref:a,tabIndex:-1},G),{"cmdk-root":"",onKeyDown:h=>{var S;(S=G.onKeyDown)==null||S.call(G,h);let O=h.nativeEvent.isComposing||h.keyCode===229;if(!(h.defaultPrevented||O))switch(h.key){case "n":case "j":{M&&h.ctrlKey&&R(h);break}case "ArrowDown":{R(h);break}case "p":case "k":{M&&h.ctrlKey&&ne(h);break}case "ArrowUp":{ne(h);break}case "Home":{h.preventDefault(),re(0);break}case "End":{h.preventDefault(),Ae();break}case "Enter":{h.preventDefault();let y=ce();if(y){let q=new Event(Xt);y.dispatchEvent(q);}}}},children:[jsx("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:dd,children:f}),ot(e,h=>jsx(Ar.Provider,{value:I,children:jsx(Tr.Provider,{value:L,children:h})}))]}))});Dr.displayName="Command";var Mr=E.forwardRef((e,a)=>{var j,H;let o=ye(),t=E.useRef(null),r=E.useContext(Rr),s=Ba(),i=zr(e),u=(H=(j=i.current)==null?void 0:j.forceMount)!=null?H:r==null?void 0:r.forceMount;_e(()=>{if(!u)return s.item(o,r==null?void 0:r.id)},[u]);let f=qr(o,t,[e.value,e.children,t],e.keywords),p=Kt(),m=Ge(I=>I.value&&I.value===f.current),b=Ge(I=>{var L;return u||s.filter()===false?true:I.search?((L=I.filtered.items.get(o))!=null?L:0)>0:true});E.useEffect(()=>{let I=t.current;if(!(!I||e.disabled))return I.addEventListener(Xt,x),()=>I.removeEventListener(Xt,x)},[b,e.onSelect,e.disabled]);function x(){var I,L,X;T(),(X=(L=i.current).onSelect)==null||X.call(L,(I=f.current)!=null?I:"");}function T(){var I;p.setState("value",(I=f.current)!=null?I:"",true);}if(!b)return null;let g=e,{disabled:C,value:D,onSelect:M,forceMount:G,keywords:w}=g,k=d(g,["disabled","value","onSelect","forceMount","keywords"]);return jsx("div",c(l({ref:Ma(t,a)},k),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!m,"data-disabled":!!C,"data-selected":!!m,onPointerMove:C||s.getDisablePointerSelection()?void 0:T,onClick:C?void 0:x,children:e.children}))});Mr.displayName="Item";var Br=E.forwardRef((e,a)=>{let T=e,{heading:o,children:t,forceMount:r}=T,s=d(T,["heading","children","forceMount"]),i=ye(),u=E.useRef(null),f=E.useRef(null),p=ye(),m=Ba(),b=Ge(C=>r||m.filter()===false?true:C.search?C.filtered.groups.has(i):true);_e(()=>m.group(i),[]),qr(i,u,[e.value,e.heading,f]);let x=E.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxs("div",c(l({ref:Ma(u,a)},s),{"cmdk-group":"",role:"presentation",hidden:b?void 0:true,children:[o&&jsx("div",{ref:f,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),ot(e,C=>jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsx(Rr.Provider,{value:x,children:C})}))]}))});Br.displayName="Group";var Nr=E.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=d(i,["alwaysRender"]),r=E.useRef(null),s=Ge(u=>!u.search);return !o&&!s?null:jsx("div",c(l({ref:Ma(r,a)},t),{"cmdk-separator":"",role:"separator"}))});Nr.displayName="Separator";var Fr=E.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=d(p,["onValueChange"]),r=e.value!=null,s=Kt(),i=Ge(m=>m.search),u=Ge(m=>m.selectedItemId),f=Ba();return E.useEffect(()=>{e.value!=null&&s.setState("search",e.value);},[e.value]),jsx("input",c(l({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":u,id:f.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||s.setState("search",m.target.value),o==null||o(m.target.value);}}))});Fr.displayName="Input";var Er=E.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=d(p,["children","label"]),s=E.useRef(null),i=E.useRef(null),u=Ge(m=>m.selectedItemId),f=Ba();return E.useEffect(()=>{if(i.current&&s.current){let m=i.current,b=s.current,x,T=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let C=m.offsetHeight;b.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px");});});return T.observe(m),()=>{cancelAnimationFrame(x),T.unobserve(m);}}},[]),E.useEffect(()=>{let m=s.current;if(!m)return;let b=x=>{m.contains(x.target)&&x.stopPropagation();};return document.addEventListener("wheel",b,{capture:true}),()=>{document.removeEventListener("wheel",b,{capture:true});}},[]),jsx("div",c(l({ref:Ma(s,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:f.listId,children:ot(e,m=>jsx("div",{ref:Ma(i,f.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});Er.displayName="List";var Or=E.forwardRef((e,a)=>Ge(t=>t.filtered.count===0)?jsx("div",c(l({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);Or.displayName="Empty";var Hr=E.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,s=d(i,["progress","children","label"]);return jsx("div",c(l({ref:a},s),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:ot(e,u=>jsx("div",{"aria-hidden":true,children:u}))}))});Hr.displayName="Loading";var Je=Object.assign(Dr,{List:Er,Item:Mr,Input:Fr,Group:Br,Separator:Nr,Empty:Or,Loading:Hr});function rd(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function sd(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function zr(e){let a=E.useRef(e);return _e(()=>{a.current=e;}),a}var _e=typeof window=="undefined"?E.useEffect:E.useLayoutEffect;function da(e){let a=E.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function Ge(e){let a=Kt(),[,o]=E.useState({}),t=E.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),_e(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function qr(e,a,o,t=[]){let r=E.useRef(void 0),s=Ba();return _e(()=>{var f;let i=(()=>{var p;for(let m of o){if(typeof m=="string")return m.trim();if(typeof m=="object"&&m!==null&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());s.value(e,i!=null?i:"",u),(f=a.current)==null||f.setAttribute(na,i!=null?i:""),r.current=i;}),r}var ld=()=>{let[e,a]=E.useState(),o=da(()=>new Map);return _e(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function nd(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function ot({asChild:e,children:a},o){return e&&E.isValidElement(a)?E.cloneElement(nd(a),{ref:a.ref},o(a.props.children)):o(a)}function Ma(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var dd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ia(r){var s=r,{className:e,orientation:a="horizontal",decorative:o=true}=s,t=d(s,["className","orientation","decorative"]);return jsx(Separator.Root,l({"data-slot":"separator-root",decorative:o,orientation:a,className:n("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function md(a){var e=d(a,[]);return jsx(Dialog.Root,l({"data-slot":"dialog"},e))}function gd(a){var e=d(a,[]);return jsx(Dialog.Trigger,l({"data-slot":"dialog-trigger"},e))}function Vr(a){var e=d(a,[]);return jsx(Dialog.Portal,l({"data-slot":"dialog-portal"},e))}function xd(a){var e=d(a,[]);return jsx(Dialog.Close,l({"data-slot":"dialog-close"},e))}function _r(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Overlay,l({"data-slot":"dialog-overlay",className:n("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function hd(s){var i=s,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=d(i,["className","overlayClassName","children","showCloseButton"]);return jsxs(Vr,{"data-slot":"dialog-portal",children:[jsx(_r,{className:a}),jsxs(Dialog.Content,c(l({"data-slot":"dialog-container",className:n("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxs(Dialog.Close,{"data-slot":"dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function bd({className:e,children:a}){return jsx("div",{className:"mb-auto overflow-y-auto",children:jsx("div",{"data-slot":"dialog-content",className:n("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function Ld(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxs(Fragment,{children:[jsx("div",l({"data-slot":"dialog-header",className:n("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsx(ia,{})]})}function vd(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxs(Fragment,{children:[a&&jsx(ia,{}),jsx("div",l({"data-slot":"dialog-footer",className:n("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function Cd(s){var i=s,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=d(i,["className","iconLeft","iconRight","children"]);let u=f=>isValidElement(f)?cloneElement(f,{size:32,strokeWidth:2.2,className:"flex-shrink-0"}):f;return jsxs(Dialog.Title,c(l({"data-slot":"dialog-title",className:n("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&u(a),t,o&&u(o)]}))}function Id(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Description,l({"data-slot":"dialog-description",className:n("text-md leading-md text-content-paragraph",e)},a))}function Wr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Je,l({className:n("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function Xr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsx(Je.Input,l({className:n("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsx(SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function Kr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Je.List,l({className:n("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list","data-radix-scroll-area":""},a))}function jr(a){var e=d(a,[]);return jsx(Je.Empty,l({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function Zr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Je.Group,l({className:n("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function Qr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Je.Item,l({className:n("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function $r(a){var e=d(a,[]);return jsx(Popover.Root,l({"data-slot":"popover"},e))}function Jr(a){var e=d(a,[]);return jsx(Popover.Trigger,l({"data-slot":"popover-trigger"},e))}function Yr(s){var i=s,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=d(i,["className","align","sideOffset","showArrow"]);return jsx(Popover.Portal,{children:jsxs(Popover.Content,c(l({align:a,className:n("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-foreground shadow-md 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",e),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsx(Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var ca=createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function Ad({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:s,onOpenChange:i,defaultValues:u=[]}){let[f,p]=useState(u),[m,b]=useState(false),[x,T]=useState([]),C=t!==void 0,D=s!==void 0,M=C?t:f,G=D?s:m,w=g=>{let I=M.includes(g)?M.filter(L=>L!==g):[...M,g];C||p(I),r==null||r(I);},k=g=>{o||(g&&T(M),D||b(g),i==null||i(g));},j=()=>{C||p(x),r==null||r(x);},H=ye();return jsx(ca.Provider,{value:{invalid:a,disabled:o,open:G,setOpen:k,values:M,toggleValue:w,onCancelSelection:j,listId:H},children:jsx($r,{open:G,onOpenChange:k,children:e})})}function Rd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function Dd(r){var s=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=s,t=d(s,["className","placeholder","children"]);let{invalid:i,disabled:u,open:f,values:p,listId:m}=useContext(ca),b=ye(),x=p.length>0;return jsx(Jr,{asChild:true,children:jsxs("button",c(l({"aria-controls":m,"aria-expanded":f,"aria-invalid":i||void 0,className:n("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",x&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:b,role:"combobox",type:"button"},t),{children:[jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsx(ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function Zt({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:s,onCancelSelection:i,values:u}=useContext(ca);return jsxs("div",{className:n("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsx(ve,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),s(false);},children:a}),jsx(ve,{size:"sm",variant:"emphasis",iconLeft:jsx(Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),s(false);},children:o})]})}function Md({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=Children.toArray(e),s=r.filter(u=>isValidElement(u)&&u.type===Zt),i=r.filter(u=>!(isValidElement(u)&&u.type===Zt));return jsxs(Yr,{align:"start",className:n("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxs(Wr,{children:[jsx(Xr,{placeholder:o}),jsxs(Kr,{id:useContext(ca).listId,children:[jsx(jr,{children:t}),i]})]}),s]})}function Bd({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:s,toggleValue:i}=useContext(ca),u=s.includes(a);return jsxs(Qr,{className:n("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",t),disabled:r,onSelect:()=>{i(a);},value:a,keywords:o?[o]:void 0,children:[jsx("span",{className:n("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",u?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:u&&jsx(Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function Nd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Zr,l({className:e},a))}function Fd(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(ca);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var Hd={sm:"sm",md:"md",lg:"md",xl:"lg"},ts=cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-8",md:"size-10",lg:"size-12",xl:"size-14"}},defaultVariants:{size:"md"}});function $t(s){var i=s,{className:e,size:a,badge:o,children:t}=i,r=d(i,["className","size","badge","children"]);return jsxs("div",{className:"relative",children:[o&&jsx(Qe,{size:Hd[a||"md"],className:n("absolute -right-2 -top-1 z-10"),children:String(o)}),jsx(Avatar.Root,c(l({"data-slot":"avatar",className:n(ts({size:a,className:e}))},r),{children:t}))]})}function Jt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Avatar.Image,l({"data-slot":"avatar-image",className:n("size-full object-cover",e)},a))}function Yt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Avatar.Fallback,c(l({"data-slot":"avatar-fallback",className:n("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsx(User,{className:"size-1/2"})}))}function eo(a){var e=d(a,[]);return jsx("nav",l({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function ao(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ol",l({className:n("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function _d(r){var s=r,{className:e,icon:a,children:o}=s,t=d(s,["className","icon","children"]);return jsx("li",c(l({className:n("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function Gd(t){var r=t,{asChild:e,className:a}=r,o=d(r,["asChild","className"]);let s=e?Slot.Root:"a";return jsx(s,l({className:n("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function Wd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"aria-current":"page","aria-disabled":"true",className:n("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function Xd(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("li",c(l({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsx(ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function Kd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs("span",c(l({"aria-hidden":"true",className:n("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsx(MoreHorizontal,{className:"text-gray-foreground",size:18}),jsx("span",{className:"sr-only",children:"More"})]}))}var rs=cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold w-fit whitespace-nowrap shrink-0 gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground",success:"bg-green-background-fill text-green-foreground-onfill fill-green-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground fill-green-foreground","success-basic":"bg-transparent text-green-foreground fill-green-foreground",error:"bg-red-background-fill text-red-foreground-onfill fill-red-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground fill-red-foreground","error-basic":"bg-transparent text-red-foreground fill-red-foreground",warning:"bg-yellow-background-fill text-yellow-foreground-onfill fill-yellow-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground fill-yellow-foreground","warning-basic":"bg-transparent text-yellow-foreground fill-yellow-foreground",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground"}},defaultVariants:{variant:"regular"}});function Qd(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",c(l({"data-slot":"tag-icon",className:n("[&>svg]:size-3.5",e)},o),{children:a}))}function pa(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,s=d(u,["className","variant","asChild","icon","children"]);let f=o?Slot.Slot:"span";return jsxs(f,c(l({"data-slot":"tag",className:n(rs({variant:a}),e)},s),{children:[t&&jsx(Qd,{icon:t}),r]}))}function to(m){var b=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:s,value:i=0,size:u=96,strokeWidth:f=2}=b,p=d(b,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let x=typeof i=="string",T=x?0:Math.round(i),C=(u-f)/2,D=C*2*Math.PI,M=D-T/100*D,G=Math.max(18,Math.min(u/5)),w=Math.max(10,Math.min(u/9,16));return jsxs("div",c(l({"data-slot":"progress-circle",className:n("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:C,stroke:"currentColor",strokeWidth:f,fill:"none",className:n("text-gray-stroke-muted",o)}),jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:C,stroke:"currentColor",strokeWidth:f,fill:"none",strokeDasharray:D,strokeDashoffset:M,strokeLinecap:"round",className:n("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxs("div",{"data-slot":"progress-circle-content",className:"relative z-10 flex flex-col items-center justify-center px-2 text-sm font-medium text-gray-foreground-muted",children:[jsxs("div",{children:[jsx("span",{className:n("mr-px font-semibold",t),style:{fontSize:`${G}px`},children:i}),!x&&"%"]}),r&&jsx("div",{"data-slot":"progress-circle-label",className:n("text-center font-medium leading-tight text-gray-foreground-muted",s),style:{fontSize:`${w}px`},children:r})]})]}))}function so(s){var i=s,{className:e,indicatorClassName:a,label:o,value:t}=i,r=d(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsx("span",{children:o})]}),jsx(Progress.Root,c(l({"data-slot":"progress",className:n("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsx(Progress.Indicator,{"data-slot":"progress-indicator",className:n("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}var Oa=createContext(null);function ai(s){var i=s,{className:e,done:a,postponed:o,skipped:t}=i,r=d(i,["className","done","postponed","skipped"]);let u=useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsx(Oa.Provider,{value:u,children:jsx("div",l({"data-slot":"card-week",className:n("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function ti(s){var i=s,{className:e,children:a,tag:o,tagIcon:t}=i,r=d(i,["className","children","tag","tagIcon"]);return jsxs("div",c(l({"data-slot":"card-week-breadcrumb",className:n("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsx(eo,{className:"flex-1 overflow-hidden",children:jsx(ao,{className:"flex-nowrap gap-1.5 text-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",children:a})}),o&&jsx(pa,{variant:"regular-soft",icon:t,children:o})]}))}function oi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-container",className:n("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function ri(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-header",className:n("flex justify-between [&.border-b]:pb-6",e)},a))}function si(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Oa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",l({"data-slot":"card-week-title",className:n("text-lg font-semibold leading-lg text-primary-foreground",(s||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function li(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Oa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",l({"data-slot":"card-week-description",className:n("text-xs font-semibold leading-xs text-gray-foreground",(s||i||u)&&"text-gray-foreground-muted",e)},a))}function ni(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-tags",className:n("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function di(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",c(l({"data-slot":"card-week-progress-circle",className:n("flex flex-1 justify-end",e)},a),{children:jsx(to,l({size:104},a))}))}function ii(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Oa),s=r==null?void 0:r.done;return jsx("div",c(l({"data-slot":"card-week-progress",className:n("flex flex-1",e)},a),{children:jsx(so,l({value:s?100:a.value},a))}))}function ui(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-footer",className:n("mt-auto flex flex-col gap-2",e)},a))}function fi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("div",c(l({"data-slot":"card-week-content",className:n("flex flex-col text-xs font-medium",e)},o),{children:a}))}function ci(r){var s=r,{className:e,children:a,isTime:o}=s,t=d(s,["className","children","isTime"]);return jsxs("div",c(l({"data-slot":"card-week-text",className:n("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsx(TimeRemaining,{size:16}),jsx("span",{children:a})]}))}function pi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Oa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !s&&!i&&!u?null:i||u?jsxs("div",c(l({"data-slot":"card-week-status",className:n("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-yellow-darken-4",children:i?"Adiado":"Pulado"})]})):jsxs("div",c(l({"data-slot":"card-week-status",className:n("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold",children:"Feito"})]}))}function mi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-actions",className:n("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var is=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-sm whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:text-gray-background-fill-muted"},size:{sm:"size-4 [&_svg]:size-3",md:"size-5 [&_svg]:size-4",lg:"size-6 [&_svg]:size-5"}},defaultVariants:{variant:"regular",size:"md"}});function bi(s){var i=s,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=d(i,["className","size","variant","uncheckIcon"]);return jsx(Checkbox.Root,c(l({"data-slot":"checkbox",className:n("group peer",is({size:a,variant:o}),e)},r),{children:jsx(Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsx(RemoveMinus,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsx(Check,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var us=createContext({animation:void 0});function Ci(o){var t=o,{animation:e}=t,a=d(t,["animation"]);return jsx(us.Provider,{value:{animation:e},children:jsx(Collapsible.Root,l({"data-slot":"collapsible"},a))})}function Ii(a){var e=d(a,[]);return jsx(Collapsible.Trigger,l({"data-slot":"collapsible-trigger"},e))}function ki(o){var t=o,{className:e}=t,a=d(t,["className"]);let{animation:r}=useContext(us),s={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsx(Collapsible.Content,l({"data-slot":"collapsible-content",className:n(r&&s[r],e)},a))}var no=768;function Ha(){let[e,a]=useState(void 0);return useEffect(()=>{let o=window.matchMedia(`(max-width: ${no-1}px)`),t=()=>{a(window.innerWidth<no);};return o.addEventListener("change",t),a(window.innerWidth<no),()=>o.removeEventListener("change",t)},[]),!!e}function io(a){var e=d(a,[]);return jsx(DropdownMenu.Root,l({"data-slot":"dropdown-menu"},e))}function Pi(a){var e=d(a,[]);return jsx(DropdownMenu.Portal,l({"data-slot":"dropdown-menu-portal"},e))}function uo(a){var e=d(a,[]);return jsx(DropdownMenu.Trigger,l({className:n("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function fo(r){var s=r,{className:e,sideOffset:a=4,side:o}=s,t=d(s,["className","sideOffset","side"]);let i=Ha();return jsx(DropdownMenu.Portal,{children:jsx(DropdownMenu.Content,l({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"bottom":o,className:n("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md 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",e)},t))})}function Ti(a){var e=d(a,[]);return jsx(DropdownMenu.Group,l({"data-slot":"dropdown-menu-group"},e))}function ft(r){var s=r,{className:e,inset:a,variant:o="default"}=s,t=d(s,["className","inset","variant"]);return jsx(DropdownMenu.Item,l({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:n("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function Ai(r){var s=r,{className:e,children:a,checked:o}=s,t=d(s,["className","children","checked"]);return jsxs(DropdownMenu.CheckboxItem,c(l({"data-slot":"dropdown-menu-checkbox-item",className:n("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function ct(a){var e=d(a,[]);return jsx(DropdownMenu.RadioGroup,l({"data-slot":"dropdown-menu-radio-group"},e))}function co(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxs(DropdownMenu.RadioItem,c(l({"data-slot":"dropdown-menu-radio-item",className:n("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function po(t){var r=t,{className:e,inset:a}=r,o=d(r,["className","inset"]);return jsx(DropdownMenu.Label,l({"data-slot":"dropdown-menu-label","data-inset":a,className:n("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function mo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(DropdownMenu.Separator,l({"data-slot":"dropdown-menu-separator",className:n("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function Ri(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"data-slot":"dropdown-menu-shortcut",className:n("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function Di(a){var e=d(a,[]);return jsx(DropdownMenu.Sub,l({"data-slot":"dropdown-menu-sub"},e))}function Mi(r){var s=r,{className:e,inset:a,children:o}=s,t=d(s,["className","inset","children"]);return jsxs(DropdownMenu.SubTrigger,c(l({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:n("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsx(ChevronRight,{className:"ml-auto size-3"})]}))}function Bi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(DropdownMenu.SubContent,l({"data-slot":"dropdown-menu-sub-content",className:n("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg 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",e)},a))}var ho=createContext({invalid:false}),bs={start:1950,end:new Date().getFullYear()};function mt(e,a){let o=e.getFullYear();return o<a.start?new Date(a.start,0,1):o>a.end?new Date(a.end,11,31):e}var bo=cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] enabled:hover:border-gray-stroke-emphasis enabled:hover:ring-[3px] enabled:hover:ring-state-focus disabled:pointer-events-none disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted data-[invalid]:border-feedback-error-stroke data-[invalid]:enabled:hover:border-feedback-error-stroke data-[invalid]:enabled:hover:ring-[3px] data-[invalid]:enabled:hover:ring-state-error","group-has-[[data-slot=date-picker-label]]:data-[placeholder]:text-transparent"],{variants:{size:{lg:["h-12 max-h-12 text-md","max-sm:h-14 max-sm:text-base"],md:["h-10 max-h-10 text-sm","max-sm:h-11"]}},defaultVariants:{size:"lg"}});function Oi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function Hi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",c(l({className:n("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground max-sm:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-7","group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:!text-sm max-sm:group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-[22px]",e),"data-slot":"date-picker-label"},o),{children:a}))}function zi(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(ho);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"date-picker-text"},a))}function ga(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function za(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function gt(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function xt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function xo(e,a){return ga(e).getTime()<ga(a).getTime()}function Ls(e,a){return ga(e).getTime()>ga(a).getTime()}function qa(e,a,o){return !!(a&&xo(e,a)||o&&Ls(e,o))}function vs(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}var Cs=20,Is=18;function qi(G){var w=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:s,max:i,format:u=vs,className:f,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=bs,showYearSelector:T=true,invalid:C=false,children:D}=w,M=d(w,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,H]=useState(a),g=k?e:j,[I,L]=useState(false),[X,W]=useState(()=>xt(mt(g!=null?g:new Date,x))),Q=useRef(null),me=useRef(null),Le=useRef(null),ce=useId(),[J,re]=useState(null),se=useCallback(B=>{k||H(B),o==null||o(B);},[k,o]);useEffect(()=>{I&&W(xt(mt(g!=null?g:new Date,x)));},[I,g,x]),useEffect(()=>{I||re(null);},[I]),useEffect(()=>{if(!I)return;let B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=B;}},[I]),useEffect(()=>{if(!J)return;let B=()=>L(false);return window.addEventListener("scroll",B,{passive:true,capture:true}),()=>window.removeEventListener("scroll",B,{capture:true})},[J]),useEffect(()=>{if(!I)return;let B=V=>{let K=Q.current,ie=Le.current;K&&V.target instanceof Node&&!K.contains(V.target)&&!(ie!=null&&ie.contains(V.target))&&L(false);},v=V=>{V.key==="Escape"&&L(false);};return window.addEventListener("pointerdown",B,{capture:true}),window.addEventListener("keydown",v),()=>{window.removeEventListener("pointerdown",B,{capture:true}),window.removeEventListener("keydown",v);}},[I]);let Te=290,Ae=()=>{var B,v,V;if(I)L(false);else {let K=(V=(B=me.current)==null?void 0:B.getBoundingClientRect())!=null?V:(v=Q.current)==null?void 0:v.getBoundingClientRect();if(K){let we=window.innerHeight-K.bottom<Te,Ke=window.innerWidth,ka=window.matchMedia("(max-width: 639px)").matches?Math.min(512,Ke-16):Math.min(320,Ke),ya=8,Sa=ya,wa=Ke-ka-ya,ze=K.left;ze<Sa?ze=Sa:ze>wa&&(ze=wa),re(c(l({position:"fixed"},we?{bottom:window.innerHeight-K.top+8}:{top:K.bottom+8}),{left:ze,width:ka,maxWidth:360}));}L(true);}},R=ga(new Date),ne=X.getFullYear(),ue=X.getMonth(),h=new Date(ne,ue,1),O=new Date(ne,ue+1,0).getDate(),S=h.getDay(),y=g?u(g):"",q=Array.from({length:12},(B,v)=>({value:v,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,v,1))})),Y=Array.from({length:x.end-x.start+1},(B,v)=>x.start+v),U=B=>{W(new Date(ne,B,1));},le=B=>{W(new Date(B,ue,1));};return jsxs(ho.Provider,{value:{invalid:C},children:[jsxs("div",{ref:Q,className:n("relative inline-flex w-full",f),children:[jsxs("button",c(l(c(l({ref:me,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?ce:void 0,"data-invalid":C||void 0,"data-slot":"date-picker-trigger","data-size":b,"data-state":I?"open":"closed"},!y&&{"data-placeholder":""}),{className:n(bo({size:b}),I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&!C&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&C&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:Ae}),M),{children:[jsx("span",{className:"truncate",children:y||t}),jsx(Calendar,{size:b==="md"?Is:Cs,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&createPortal(jsxs("div",{ref:Le,id:ce,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:J!=null?J:void 0,className:n("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(B=>gt(B,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:ue,onChange:B=>U(Number(B.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:q.map(B=>jsx("option",{value:B.value,className:"capitalize",children:B.label},B.value))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),T?jsxs("div",{className:"relative",children:[jsx("select",{value:ne,onChange:B=>le(Number(B.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:Y.map(B=>jsx("option",{value:B,children:B},B))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(B=>gt(B,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((B,v)=>jsx("div",{},`empty-${v}`)),Array.from({length:O}).map((B,v)=>{let V=new Date(ne,ue,v+1),K=g?za(V,g):false,ie=za(V,R),we=r||qa(V,s,i);return jsx("button",{type:"button",disabled:we,onClick:()=>{se(V),L(false);},className:n("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50 max-sm:h-11 max-sm:text-base",ie&&"ring-1 ring-gray-stroke-emphasis",K&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":K,children:v+1},V.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>{se(R),L(false);},disabled:r||qa(R,s,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>se(null),disabled:r||!g,children:"Limpar"})]})]}),document.body)]}),D]})}function Ui(G){var w=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:s,max:i,format:u=vs,className:f,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=bs,showYearSelector:T=true,invalid:C=false,children:D}=w,M=d(w,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,H]=useState(a),g=k?e:j,[I,L]=useState(false),[X,W]=useState(()=>{var v,V;return xt(mt((V=(v=g==null?void 0:g.start)!=null?v:g==null?void 0:g.end)!=null?V:new Date,x))}),Q=useRef(null),me=useRef(null),Le=useRef(null),ce=useId(),[J,re]=useState(null),se=useCallback(v=>{k||H(v),o==null||o(v);},[k,o]);useEffect(()=>{var v,V;I&&W(xt(mt((V=(v=g==null?void 0:g.start)!=null?v:g==null?void 0:g.end)!=null?V:new Date,x)));},[I,g,x]),useEffect(()=>{I||re(null);},[I]),useEffect(()=>{if(!I)return;let v=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=v;}},[I]),useEffect(()=>{if(!J)return;let v=()=>L(false);return window.addEventListener("scroll",v,{passive:true,capture:true}),()=>window.removeEventListener("scroll",v,{capture:true})},[J]),useEffect(()=>{if(!I)return;let v=K=>{let ie=Q.current,we=Le.current;ie&&K.target instanceof Node&&!ie.contains(K.target)&&!(we!=null&&we.contains(K.target))&&L(false);},V=K=>{K.key==="Escape"&&L(false);};return window.addEventListener("pointerdown",v,{capture:true}),window.addEventListener("keydown",V),()=>{window.removeEventListener("pointerdown",v,{capture:true}),window.removeEventListener("keydown",V);}},[I]);let Te=330,Ae=()=>{var v,V,K;if(I)L(false);else {let ie=(K=(v=me.current)==null?void 0:v.getBoundingClientRect())!=null?K:(V=Q.current)==null?void 0:V.getBoundingClientRect();if(ie){let Ke=window.innerHeight-ie.bottom<Te,la=window.innerWidth,ya=window.matchMedia("(max-width: 639px)").matches?Math.min(512,la-16):Math.min(320,la),Sa=8,wa=Sa,ze=la-ya-Sa,Pa=ie.left;Pa<wa?Pa=wa:Pa>ze&&(Pa=ze),re(c(l({position:"fixed"},Ke?{bottom:window.innerHeight-ie.top+8}:{top:ie.bottom+8}),{left:Pa,width:ya,maxWidth:360}));}L(true);}},R=ga(new Date),ne=X.getFullYear(),ue=X.getMonth(),h=new Date(ne,ue,1),O=new Date(ne,ue+1,0).getDate(),S=h.getDay(),y=Array.from({length:12},(v,V)=>({value:V,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,V,1))})),q=Array.from({length:x.end-x.start+1},(v,V)=>x.start+V),Y=v=>{W(new Date(ne,v,1));},U=v=>{W(new Date(v,ue,1));},le=v=>{r||qa(v,s,i)||(!g||!g.start||g.end?se({start:v,end:null}):(xo(v,g.start)?se({start:v,end:g.start}):se({start:g.start,end:v}),L(false)));},B=g!=null&&g.start&&(g!=null&&g.end)?`${u(g.start)} - ${u(g.end)}`:g!=null&&g.start?u(g.start):"";return jsxs(ho.Provider,{value:{invalid:C},children:[jsxs("div",{ref:Q,className:n("relative inline-flex w-full",f),children:[jsxs("button",c(l(c(l({ref:me,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?ce:void 0,"data-invalid":C||void 0,"data-slot":"date-picker-trigger","data-size":b,"data-state":I?"open":"closed"},!B&&{"data-placeholder":""}),{className:n(bo({size:b}),I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",B&&!C&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",B&&C&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:Ae}),M),{children:[jsx("span",{className:"truncate",children:B||t}),jsx(Calendar,{size:b==="md"?Is:Cs,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&createPortal(jsxs("div",{ref:Le,id:ce,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:J!=null?J:void 0,className:n("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(v=>gt(v,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:ue,onChange:v=>Y(Number(v.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:y.map(v=>jsx("option",{value:v.value,className:"capitalize",children:v.label},v.value))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),T?jsxs("div",{className:"relative",children:[jsx("select",{value:ne,onChange:v=>U(Number(v.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:q.map(v=>jsx("option",{value:v,children:v},v))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(v=>gt(v,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((v,V)=>jsx("div",{},`empty-${V}`)),Array.from({length:O}).map((v,V)=>{let K=new Date(ne,ue,V+1),ie=(g==null?void 0:g.start)&&za(K,g.start),we=(g==null?void 0:g.end)&&za(K,g.end),Ke=(g==null?void 0:g.start)&&(g==null?void 0:g.end)&&Ls(K,g.start)&&xo(K,g.end),la=za(K,R),ka=r||qa(K,s,i);return jsx("button",{type:"button",disabled:ka,onClick:()=>le(K),className:n("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50",la&&"ring-1 ring-gray-stroke-emphasis",Ke&&"bg-primary-background-soft",(ie||we)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":ie||we||void 0,children:V+1},K.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>{se({start:R,end:R}),L(false);},disabled:r||qa(R,s,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>se(null),disabled:r||!g,children:"Limpar"})]})]}),document.body)]}),D]})}var Qi=24,$i=20,Ji=1.6,ys=10,Ss=8;function Yi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function eu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("relative",e),"data-slot":"input-field"},a))}function au(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",c(l({className:n("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=input][disabled]]:bg-transparent","group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-4 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-6 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:bg-transparent group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:px-0 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:text-md group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:font-normal","group-has-[[data-slot=input][data-empty]:not(:focus)]:start-4 group-has-[[data-slot=input][data-empty]:not(:focus)]:top-6 group-has-[[data-slot=input][data-empty]:not(:focus)]:bg-transparent group-has-[[data-slot=input][data-empty]:not(:focus)]:px-0 group-has-[[data-slot=input][data-empty]:not(:focus)]:text-md group-has-[[data-slot=input][data-empty]:not(:focus)]:font-normal","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-5 group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:!text-sm","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:top-5 group-has-[[data-slot=input][data-empty]:not(:focus)]:!text-sm","group-has-[[data-slot=input][aria-invalid=true]]:text-feedback-error-foreground","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-12","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:start-12",e),"data-slot":"input-label"},o),{children:a}))}function tu(t){var r=t,{className:e,invalid:a=false}=r,o=d(r,["className","invalid"]);return jsx("span",l({className:n("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function Lo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function vt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({className:n("pointer-events-none absolute start-4 top-1/2 z-10 flex -translate-y-1/2 items-center pr-3 text-gray-foreground",e),"data-slot":"input-start-icon"},a))}function vo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({className:n("absolute end-4 top-1/2 z-10 flex -translate-y-1/2 items-center text-gray-foreground",e),"data-slot":"input-end-icon"},a))}var bt=cva(["shadow-xs w-full min-w-0 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-gray-foreground outline-none transition-[color,box-shadow] selection:bg-secondary-background-soft-emphasis selection:text-gray-foreground placeholder:text-gray-foreground-emphasis hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:placeholder:text-gray-foreground-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0","focus-visible:border-gray-stroke-emphasis focus-visible:ring-[3px] focus-visible:ring-state-focus","aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-state-error aria-[invalid]:focus-visible:ring-state-error","aria-[invalid]:[&:not(:placeholder-shown)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown)]:border-gray-stroke-emphasis [&:not(:placeholder-shown)]:ring-[3px] [&:not(:placeholder-shown)]:ring-state-focus","group-has-[[data-slot=input-end-icon]]/adornment:pr-10"],{variants:{size:{lg:["h-12 max-h-12 text-md","group-has-[[data-slot=input-label]]:h-14","group-has-[[data-slot=input-start-icon]]/adornment:pl-[48px]"],md:["h-10 max-h-10 text-sm","group-has-[[data-slot=input-label]]:h-11","group-has-[[data-slot=input-start-icon]]/adornment:pl-[44px]"]}},defaultVariants:{size:"lg"}}),ou={email:jsx(Mail,{})},ru={};function xa(e,a="lg"){return cloneElement(e,{size:a==="md"?$i:Qi,strokeWidth:Ji})}function Ps(s){var i=s,{className:e,invalid:a=false,size:o="lg",disabled:t}=i,r=d(i,["className","invalid","size","disabled"]);let[u,f]=useState(false);return jsxs(Lo,{children:[jsx(vt,{children:xa(jsx(Lock,{}),o)}),jsx("input",l({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:n(bt({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsx(vo,{children:jsx("button",{type:"button",tabIndex:-1,disabled:t,onClick:()=>f(p=>!p),className:n("text-gray-foreground transition-colors hover:text-gray-foreground-emphasis disabled:cursor-default disabled:opacity-50"),"data-invalid":a,"aria-label":u?"Hide password":"Show password",children:xa(u?jsx(Hide,{}):jsx(Show,{}),o)})})]})}function Ts(m){var b=m,{className:e,invalid:a=false,size:o="lg",iconLeft:t,min:r,value:s,defaultValue:i,onChange:u,disabled:f}=b,p=d(b,["className","invalid","size","iconLeft","min","value","defaultValue","onChange","disabled"]);let x=s!==void 0,[T,C]=useState(()=>i!=null?i:""),D=useRef(null),M=x?s===""?"":String(s):T,G=M===""?NaN:Number(M),w=r!==void 0&&Number(r)<0,k=useCallback(L=>{let X=r!==void 0&&Number(r)<0,W=L.replace(/[^\d.-]/g,"");X?W=(W.startsWith("-")?"-":"")+W.replace(/-/g,""):W=W.replace(/-/g,"");let Q=W.indexOf(".");return Q===-1?W:W.slice(0,Q+1)+W.slice(Q+1).replace(/\./g,"")},[r]),j=useCallback(L=>{let X=k(L.target.value);if(X===L.target.value)x?u==null||u(L):(C(X),u==null||u(c(l({},L),{target:c(l({},L.target),{value:X})})));else {let W=c(l({},L),{target:c(l({},L.target),{value:X})});x||C(X),u==null||u(W);}},[x,u,k]),H=r!==void 0?Number(r):void 0,g=useCallback(L=>{let W=(Number.isNaN(G)?H!=null?H:0:G)+L;return H!==void 0&&W<H?H:W},[G,H]),I=useCallback(L=>{let X=g(L),W=String(X),Q=D.current,Le={type:"change",target:Q?{value:W,name:Q.name,id:Q.id,form:Q.form,type:Q.type}:{value:W},currentTarget:Q,bubbles:true,cancelable:false,nativeEvent:{}};x||C(W),u==null||u(Le);},[g,x,u]);return jsxs(Lo,{children:[t!=null&&jsx(vt,{children:xa(t,o)}),jsx("input",l({ref:D,type:"text",inputMode:"decimal",pattern:w?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":M===""?"":void 0,min:r,value:M,onChange:j,disabled:f,className:n(bt({size:o}),"pr-12","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",e),"aria-invalid":a||p["aria-invalid"]?true:void 0},p)),jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsx("button",{type:"button",tabIndex:-1,disabled:f,onClick:()=>I(1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Increase value",children:jsx(ChevronDown,{className:"rotate-180",size:o==="md"?Ss:ys,strokeWidth:3})}),jsx("button",{type:"button",tabIndex:-1,disabled:f,onClick:()=>I(-1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Decrease value",children:jsx(ChevronDown,{size:o==="md"?Ss:ys,strokeWidth:3})})]})]})}function Co(u){var f=u,{className:e,type:a="text",size:o="lg",invalid:t=false,iconLeft:r,iconRight:s}=f,i=d(f,["className","type","size","invalid","iconLeft","iconRight"]);if(a==="numeric")return jsx(Ts,l({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsx(Ps,l({className:e,size:o,invalid:t},i));let p=r!=null?r:ou[a],m=(a==="text"||a==="email")&&t,b=m?jsx(TriangleWarning,{}):s!=null?s:ru[a];return p!=null||b!=null?jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsx(vt,{children:xa(p,o)}),jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(bt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),b!=null&&jsx(vo,{className:m?"text-feedback-error-foreground":void 0,children:xa(b,o)})]}):jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(bt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var As=cva("inline-flex select-none items-center gap-3 text-sm font-medium leading-none disabled:cursor-default disabled:text-gray-foreground-muted peer-disabled:cursor-default peer-disabled:text-gray-foreground-muted group-data-[disabled]:pointer-events-none group-data-[disabled]:text-gray-foreground-muted whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0",{variants:{variant:{regular:"text-gray-foreground hover:text-gray-foreground-emphasis"},size:{sm:"text-xs",md:"text-sm",lg:"text-md"}},defaultVariants:{variant:"regular",size:"md"}});function nu(s){var i=s,{className:e,variant:a,size:o,block:t}=i,r=d(i,["className","variant","size","block"]);return jsx(Label.Root,l({"data-slot":"label",className:n(e,As({className:e,size:o,variant:a}),t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function iu({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxs("svg",{className:n("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsx("path",{fill:"#01CFB5",d:"M170.246 8.366 158.874 34.77c-.317.744-1.131 1.23-2.038 1.23h-3.47c-1.552 0-2.606-1.377-2.011-2.628l2.875-6.066-8.476-18.918c-.563-1.246.492-2.59 2.027-2.59h3.541c.929 0 1.755.513 2.061 1.278l4.688 11.864h.093l4.464-11.836c.295-.782 1.126-1.306 2.066-1.306h3.514c1.524 0 2.573 1.322 2.038 2.568Zm-24.869 8.623v10.42a.823.823 0 0 1-.82.826h-3.956a.818.818 0 0 1-.82-.825v-.667a11.207 11.207 0 0 1-5.699 1.541c-6.235 0-11.295-5.054-11.295-11.295 0-6.24 5.06-11.295 11.295-11.295 2.076 0 4.027.557 5.694 1.541v-.006a11.295 11.295 0 0 1 5.601 9.76Zm-5.984.005c0-2.94-2.377-5.327-5.306-5.327-2.929 0-5.306 2.388-5.306 5.327 0 2.94 2.377 5.323 5.306 5.323 2.929 0 5.306-2.383 5.306-5.323Zm5.793.4c.005-.099.005-.192.005-.29 0-.098-.005-.191-.005-.284v.573Zm-26.17-11.722h-4.355a.977.977 0 0 0-.978.978v11.902a3.416 3.416 0 0 1-6.831 0V6.65a.977.977 0 0 0-.978-.978h-4.355a.977.977 0 0 0-.978.978v11.902a3.417 3.417 0 0 1-5.83 2.415c-.618-.617-1-1.47-1-2.415V6.65a.977.977 0 0 0-.979-.978h-4.355a.977.977 0 0 0-.978.978v13.088h-.006c0 .781.115 1.535.334 2.256 1.098 3.623 4.765 6.29 9.13 6.29 2.739 0 5.209-1.054 6.935-2.732 1.689 1.83 4.197 2.994 7 2.994 4.53 0 8.295-3.043 9.06-7.043.093-.487.143-.99.143-1.497V6.65a.978.978 0 0 0-.979-.978Z"}),jsx("path",{fill:"#00205B",className:t,d:"M65.557 7.694c-.639.399-1.235.863-1.781 1.388.54-.536 1.137-1 1.781-1.388ZM82.727.831v26.617a.82.82 0 0 1-.82.825h-3.956a.77.77 0 0 1-.415-.12.81.81 0 0 1-.405-.71v-.755a11.018 11.018 0 0 1-5.689 1.574c-5.47 0-10.01-3.967-10.923-9.191-.016-.098-.038-.197-.054-.3-.011-.088-.028-.18-.039-.268 0-.028-.005-.055-.01-.088-.006-.06-.012-.12-.023-.18-.005-.076-.01-.159-.021-.24v-.028c-.006-.093-.017-.18-.017-.273a9.516 9.516 0 0 1 0-1.11l.017-.273v-.027l.032-.311c0-.033.006-.066.006-.099a.665.665 0 0 0 .01-.104c.012-.087.023-.18.039-.267.016-.11.033-.213.055-.323a11.09 11.09 0 0 1 3.17-6.005 11.548 11.548 0 0 1 1.88-1.48 9.127 9.127 0 0 1 1.31-.646c1.039-.42 2.186-.65 3.405-.683-.071 0-.142.011-.213.011a9.587 9.587 0 0 0-3.203.672c-.453.18-.896.4-1.311.65.393-.245.809-.459 1.23-.655-.006 0-.011.005-.017.005l.033-.016c-.011.005-.022.005-.038.01a8.79 8.79 0 0 1 .519-.229c-.039.017-.071.033-.104.05.038-.017.07-.033.11-.05.087-.033.174-.065.267-.098.087-.038.175-.066.268-.099.033-.016.065-.021.098-.032.055-.017.104-.039.158-.055.11-.033.214-.066.323-.098a9.584 9.584 0 0 1 .607-.153c.092-.022.196-.044.295-.066.098-.016.196-.033.295-.055l.295-.049h.005a2.82 2.82 0 0 0 .197-.027c.07-.005.131-.022.202-.022.087-.01.18-.016.268-.022.082-.01.164-.01.246-.016.07 0 .142-.011.213-.011.136-.006.273-.006.415-.006.093 0 .191.006.284.006h.12c.083 0 .159.005.236.01.098.006.196.012.295.023.087.005.174.01.256.022.05.005.099.01.142.016.088.01.175.022.257.038l.312.05c1.06.185 2.07.519 3.005.983v.115c-.038-.022-.076-.038-.12-.06.038.022.077.038.12.065v-.12c.268.131.525.273.77.426V.825a.827.827 0 0 1 .82-.825h3.957a.838.838 0 0 1 .836.83Zm-5.694 16.213a5.32 5.32 0 0 0-5.312-5.323c-2.929 0-5.306 2.388-5.306 5.323 0 2.94 2.377 5.322 5.306 5.322a5.316 5.316 0 0 0 5.312-5.322Zm-19.59.431c0 .41-.017.765-.066 1.132a.597.597 0 0 1-.596.524H42.284a.598.598 0 0 0-.574.77c.623 1.94 2.46 3.192 4.749 3.192 1.607 0 2.678-.574 3.656-1.749a.614.614 0 0 1 .47-.213h5.191c.448 0 .738.47.53.869-2.093 4.033-5.705 6.372-9.847 6.372-6.06 0-11.137-5.055-11.137-11.088 0-6.033 4.847-11.235 11.022-11.235h.006c6.284 0 11.093 4.94 11.093 11.426Zm-6.563-3.393c-.738-1.683-2.437-2.754-4.541-2.754-1.973 0-3.721 1.027-4.47 2.754a.594.594 0 0 0 .552.825h7.907a.593.593 0 0 0 .552-.825ZM23.13 5.803c-2.738 0-5.207 1.055-6.934 2.733-1.689-1.831-4.197-2.995-7-2.995-4.53 0-8.295 3.044-9.06 7.044-.088.486-.137.989-.137 1.497v13.35c0 .54.437.978.978.978h4.355a.977.977 0 0 0 .978-.978V15.618c0-1.65 1.328-3.263 2.962-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V15.618c0-1.65 1.327-3.263 2.961-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V14.344a7.75 7.75 0 0 0-.334-2.257c-1.098-3.623-4.77-6.284-9.13-6.284Z"})]})}function uu({width:e=60,height:a=67,className:o,svgClassName:t}){return jsx("svg",{className:n("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fill:"#00205B",className:t,d:"M42.33 10.8959C37.32 10.8959 32.8 12.8259 29.64 15.8959C26.55 12.5459 21.96 10.4159 16.83 10.4159C8.54 10.4159 1.65 15.9859 0.25 23.3059C0.09 24.1959 0 25.1159 0 26.0459V50.4759C0 51.4659 0.8 52.2659 1.79 52.2659H9.76C10.75 52.2659 11.55 51.4659 11.55 50.4759V28.8559C11.55 25.8359 13.98 22.8859 16.97 22.4959C19.03 22.2259 20.91 22.9659 22.22 24.2759C23.35 25.4059 24.05 26.9659 24.05 28.6959V50.4759C24.05 51.4659 24.85 52.2659 25.84 52.2659H33.81C34.8 52.2659 35.6 51.4659 35.6 50.4759V28.8559C35.6 25.8359 38.03 22.8859 41.02 22.4959C43.08 22.2259 44.96 22.9659 46.27 24.2759C47.4 25.4059 48.1 26.9659 48.1 28.6959V50.4759C48.1 51.4659 48.9 52.2659 49.89 52.2659H57.86C58.85 52.2659 59.65 51.4659 59.65 50.4759V26.5259C59.65 25.0959 59.44 23.7159 59.04 22.3959C57.03 15.7659 50.31 10.8959 42.33 10.8959Z"})})}var ha={tablet:"600px",mobile:"320px"};function Ds(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("nav",l({role:"navigation","aria-label":"pagination",className:n("flex w-full items-center justify-between",e)},a))}function Ms(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({className:n("flex flex-row items-center gap-2",e)},a))}function Io(r){var s=r,{count:e,label:a="itens",className:o}=s,t=d(s,["count","label","className"]);return jsx("p",c(l({className:n("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxs(Fragment,{children:["Mostrando"," ",jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxs(Fragment,{children:[jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function It(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("li",l({className:n("",e)},a))}function Bs(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:s="regular",activeVariant:i,inactiveVariant:u}=m,f=d(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsx(ve,c(l({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?s:`${s}-soft`,className:n("",e),size:r,iconLeft:o,iconRight:t},f),{children:f.children}))}function Ns(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsx(ve,c(l({"aria-label":"Go to previous page",className:n("",e),iconLeft:jsx(ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function Fs(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsx(ve,c(l({"aria-label":"Go to next page",className:n("",e),variant:o,iconRight:jsx(ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function Es(t){var r=t,{className:e,size:a="md"}=r,o=d(r,["className","size"]);return jsx("span",c(l({"aria-hidden":true,className:n("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsx(MoreHorizontal,{className:"h-4 w-4"})}))}function Os(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let s=1;s<=o+1;s++)t.push(s);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let s=a-o;s<=a;s++)t.push(s);}else {t.push(1,-1);for(let s=e-r;s<=e+r;s++)t.push(s);t.push(-1,a);}}return t}function hu({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:s,className:i,responsive:u=true,size:f="md"}){let[p,m]=useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(ha.tablet));useEffect(()=>{if(typeof window=="undefined"||!u)return;let C=parseInt(ha.tablet),D=()=>{m(window.innerWidth<=C);};return window.addEventListener("resize",D),D(),()=>window.removeEventListener("resize",D)},[u]);let b=typeof o=="number"?o:u&&p?0:2,x=u&&p,T=()=>Os(e,a,b);return jsxs(Ds,{className:n("",i),children:[r!==void 0&&!x?jsx(Io,{count:r,label:"itens"}):jsx("div",{}),jsxs(Ms,{children:[jsx(It,{children:jsx(Ns,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:f})}),T().map((C,D)=>jsx(It,{children:C===-1?jsx(Es,{size:f}):jsx(Bs,{onClick:()=>t(C),isActive:C===e,size:f,children:C})},D)),jsx(It,{children:jsx(Fs,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:f})})]}),s!==void 0&&!x?jsx(Io,{count:s,label:"total"}):jsx("div",{})]})}var vu={sm:"size-2 group-data-[disabled]:group-data-[state=checked]:size-1.5",md:"size-2.5 group-data-[disabled]:group-data-[state=checked]:size-1.5",lg:"size-3.5 group-data-[disabled]:group-data-[state=checked]:size-2"},Hs=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function Cu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(RadioGroup.Root,l({"data-slot":"radio-group",className:n("grid gap-3",e)},a))}function Iu(r){var s=r,{className:e,size:a,variant:o}=s,t=d(s,["className","size","variant"]);return jsx(RadioGroup.Item,c(l({"data-slot":"radio-group-item",className:n("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",Hs({size:a,variant:o}),e)},t),{children:jsx(RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsx(Circle,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",vu[a||"md"])})})}))}function ea(o){var t=o,{delayDuration:e=0}=t,a=d(t,["delayDuration"]);return jsx(Tooltip.Provider,l({"data-slot":"tooltip-provider",delayDuration:e},a))}function aa(a){var e=d(a,[]);return jsx(ea,{children:jsx(Tooltip.Root,l({"data-slot":"tooltip"},e))})}function ta(a){var e=d(a,[]);return jsx(Tooltip.Trigger,l({"data-slot":"tooltip-trigger"},e))}function oa(r){var s=r,{className:e,sideOffset:a=0,children:o}=s,t=d(s,["className","sideOffset","children"]);return jsx(Tooltip.Portal,{children:jsxs(Tooltip.Content,c(l({"data-slot":"tooltip-content",sideOffset:a,className:n("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e)},t),{children:[o,jsx(Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function Ru(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsx("table",c(l({className:n("w-full border-collapse text-left",a)},o),{children:e}))})}function Du(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("thead",c(l({className:n("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsx("tr",{children:e})}))}function Mu(s){var i=s,{children:e,className:a,tooltip:o,highlight:t}=i,r=d(i,["children","className","tooltip","highlight"]);return jsx("th",c(l({className:n("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxs("div",{className:"flex items-center gap-1.5",children:[jsx("span",{className:n(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsx(ea,{children:jsxs(aa,{children:[jsx(ta,{asChild:true,children:jsx(Info,{className:"size-4"})}),jsx(oa,{children:o})]})})]})}))}function Bu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("tbody",c(l({className:n("bg-surface-card",a)},o),{children:e}))}function Nu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("tr",c(l({className:n("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function Fu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",{className:"py-4 pl-5 align-middle",children:jsx("div",c(l({className:n("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function Eu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:n("flex items-center gap-5",a),children:jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function Ou(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",c(l({className:n("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function Hu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("span",c(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function zu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("span",c(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function qu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx(pa,c(l({className:n("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsx(CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function Uu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:n("flex flex-col items-start gap-2",a),children:e})}))}function Vu(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("p",c(l({className:n("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function _u(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",c(l({className:n("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Gu(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,s=d(u,["src","alt","fallback","className","tooltip"]);let f=jsxs($t,c(l({size:"sm",className:n("ring-2 ring-background",t)},s),{children:[jsx(Jt,{src:e,alt:a}),jsx(Yt,{children:o})]}));return r?jsx(ea,{children:jsxs(aa,{children:[jsx(ta,{asChild:true,children:f}),jsx(oa,{children:r})]})}):f}function Wu(r){var s=r,{children:e,className:a,icon:o}=s,t=d(s,["children","className","icon"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsx(pa,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Xu({className:e,percentage:a}){let o=t=>t>=0&&t<=49||t>=50&&t<=80||t>=81&&t<=100?"bg-primary-stroke":"bg-gray-100";return jsx("div",{className:n("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsx("div",{className:n("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Ku(r){var s=r,{questions:e,answered:a,className:o}=s,t=d(s,["questions","answered","className"]);let i=a>0?a/e*100:0;return a===0?jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsx(RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxs("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsx(Xu,{percentage:i})]})}))}var ju={notStarted:{icon:RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:Warning,bgColor:"bg-feedback-warning-background-soft",iconColor:"text-feedback-warning-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"M\xEDnimo n\xE3o atingido",subtitle:({remainingQuestions:e})=>e>1?`Faltam ${e} quest\xF5es`:`Falta ${e} quest\xE3o`},dominated:{icon:Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`},notDominated:{icon:CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`}};function Zu(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Qu(s){var i=s,{answered:e,correct:a,minQuestions:o,className:t}=i,r=d(i,["answered","correct","minQuestions","className"]);let u=e>0?a/e*100:0,f=e===0,p=a<o,m=o-a,b=Zu(f,p,u),{icon:x,bgColor:T,iconColor:C,titleClassName:D,title:M,subtitle:G}=ju[b],w={progress:u,correct:a,answered:e,remainingQuestions:m};return jsx("td",c(l({className:"px-5 py-4 align-middle"},r),{children:jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:n("flex size-4 items-center justify-center rounded-full",T),children:jsx(x,{className:n("size-3",C),strokeWidth:2.6})}),jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsx("span",{className:n("whitespace-nowrap",D),children:M(w)}),jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:G(w)})]})]})})}))}function $u(r){var s=r,{children:e,className:a,onClick:o}=s,t=d(s,["children","className","onClick"]);return jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsx(ve,{variant:"regular-soft",size:"sm",iconRight:jsx(ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var Vs=cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Yu=cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),_s=cva("inline-flex items-center justify-center",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"},readOnly:{true:"cursor-default",false:"cursor-pointer"}},defaultVariants:{size:"md",readOnly:false}}),Gs=cva("flex w-full min-w-0 justify-between text-gray-foreground font-medium gap-2",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}});function ef({state:e,className:a}){let o=ye(),t=useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",className:"fill-feedback-warning-background-soft stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="half"?jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsx("defs",{children:jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:`url(#${r})`,className:"stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}):jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:"transparent",className:"stroke-gray-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function af(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function tf({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:s="md",className:i,classNameContainer:u,classNameLabels:f}){let[p,m]=useState(e!=null?e:0),[b,x]=useState(null),T=e!==void 0,C=T?e:p,D=w=>{if(t)return;let k=w+1;T||m(k),a==null||a(k);},M=w=>{t||x(w);},G=()=>{t||x(null);};return jsxs("div",{"data-slot":"rating",className:n("inline-flex w-fit flex-col gap-2",i),children:[jsx("div",{className:n("inline-flex flex-row gap-1",u),onMouseLeave:G,children:Array.from({length:o},(w,k)=>{let j=b!==null,H=j&&k<=b,g=b===k,I=j?H?"full":"empty":af(k,C);return jsx("button",{type:"button",disabled:t,onClick:()=>D(k),onMouseEnter:()=>M(k),className:_s({size:s,readOnly:t}),"aria-label":`Rate ${k+1} out of ${o}`,children:jsx(ef,{state:I,className:g&&!t?Yu({size:s}):Vs({size:s})})},k)})}),r&&r.length===2&&jsxs("div",{className:n(Gs({size:s}),f),children:[jsx("span",{className:"truncate",children:r[0]}),jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function yo(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxs(ScrollArea.Root,c(l({"data-slot":"scroll-area",className:n("relative",e)},o),{children:[jsx(ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsx(Va,{}),jsx(Va,{orientation:"horizontal"}),jsx(ScrollArea.Corner,{})]}))}function Va(t){var r=t,{className:e,orientation:a="vertical"}=r,o=d(r,["className","orientation"]);return jsx(ScrollArea.ScrollAreaScrollbar,c(l({"data-slot":"scroll-area-scrollbar",orientation:a,className:n("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsx(ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Pt=createContext({invalid:false,size:"lg"});function uf(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=d(r,["invalid","size"]);return jsx(Pt.Provider,{value:{invalid:e,size:a},children:jsx(Select.Root,l({"data-slot":"select"},o))})}function ff(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function cf(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",c(l({className:n("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground","group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:!text-sm",e),"data-slot":"select-label"},o),{children:a}))}function pf(a){var e=d(a,[]);return jsx(Select.Group,l({"data-slot":"select-group"},e))}function mf(a){var e=d(a,[]);return jsx(Select.Value,l({"data-slot":"select-value"},e))}var gf=cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:{lg:["h-12 max-h-12 text-md [&_svg]:size-6","group-has-[[data-slot=select-label]]:h-14"],md:["h-10 max-h-10 text-sm [&_svg]:size-5","group-has-[[data-slot=select-label]]:h-11"]}},defaultVariants:{size:"lg"}}),xf=cva("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis gap-3",{variants:{size:{lg:"py-2 text-sm [&_svg]:size-5",md:"py-2 text-sm [&_svg]:size-5"}},defaultVariants:{size:"lg"}});function hf(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{invalid:s,size:i}=useContext(Pt);return jsxs(Select.Trigger,c(l({className:n(gf({size:i}),!s&&"[&:not([data-placeholder])]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","data-size":i,"aria-invalid":s||void 0},o),{children:[a,jsx(Select.Icon,{asChild:true,children:jsx(ChevronDown,{className:n("flex-shrink-0 text-gray-foreground"),strokeWidth:1.6})})]}))}function bf(r){var s=r,{className:e,children:a,position:o="popper"}=s,t=d(s,["className","children","position"]);return jsx(Select.Portal,{children:jsxs(Select.Content,c(l({className:n("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-foreground shadow-md 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 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsx(Ks,{}),jsx(Select.Viewport,{className:n("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsx(js,{})]}))})}function Lf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.Label,l({className:n("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function vf(r){var s=r,{className:e,children:a,icon:o}=s,t=d(s,["className","children","icon"]);let{size:i}=useContext(Pt);return jsxs(Select.Item,c(l({className:n(xf({size:i}),e),"data-slot":"select-item"},t),{children:[o&&jsx("span",{className:"flex shrink-0 items-center justify-center text-gray-foreground",children:isValidElement(o)?cloneElement(o,{strokeWidth:1.6}):o}),jsx(Select.ItemText,{children:a}),jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsx(Select.ItemIndicator,{children:jsx(Check,{strokeWidth:1.6,className:"text-secondary-foreground"})})})]}))}function Cf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.Separator,l({className:n("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function Ks(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.ScrollUpButton,c(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsx(ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function js(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.ScrollDownButton,c(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsx(ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function If(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(Pt);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var Zs=createContext(null);function wf(r){var s=r,{className:e,size:a="md",children:o}=s,t=d(s,["className","size","children"]);return jsx(Zs.Provider,{value:{size:a},children:jsx(Tabs.Root,c(l({"data-slot":"tabs",className:n("flex flex-col gap-2",e)},t),{children:o}))})}function Pf(t){var r=t,{className:e,containerClassName:a}=r,o=d(r,["className","containerClassName"]);return jsxs(yo,{className:n("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsx(Tabs.List,l({"data-slot":"tabs-list",className:n("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsx(Va,{orientation:"horizontal"})]})}var Qs=cva("shadow-transparent data-[state=active]:shadow-level-1 group inline-flex items-center justify-center gap-2.5 whitespace-nowrap rounded-[6px] font-medium text-gray-foreground outline-none data-[state=active]:bg-surface-card data-[state=active]:text-primary-foreground [&_svg]:shrink-0 [&_svg]:text-inherit disabled:text-gray-foreground-muted disabled:pointer-events-none",{variants:{size:{sm:"max-h-7 px-3 py-1.5 text-xs [&_svg]:size-4",md:"max-h-9 px-4 py-2 text-sm [&_svg]:size-5",lg:"max-h-11 px-4 py-2.5 text-md [&_svg]:size-6"}},defaultVariants:{size:"md"}});function Tf(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,s=d(u,["className","icon","badge","badgeVariant","children"]);var b;let f=x=>x!=null&&x!==0&&x!==""&&x!=="0"&&!s.disabled,p=useContext(Zs),m=(b=p==null?void 0:p.size)!=null?b:"md";return jsxs(Tabs.Trigger,c(l({"data-slot":"tabs-trigger",className:n(Qs({size:m,className:e}))},s),{children:[a,r&&jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),f(o)&&jsx(Qe,{size:m,variant:t,children:String(o)})]}))}function Af(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Tabs.Content,l({"data-slot":"tabs-content",className:n("flex-1 outline-none",e)},a))}var $s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),To=e=>{let a=Rf(e);return a.charAt(0).toUpperCase()+a.slice(1)},At=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Js=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Ys={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var al=forwardRef((p,f)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:s,iconNode:i}=m,u=d(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return createElement("svg",l(l(c(l({ref:f},Ys),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:At("lucide",r)}),!s&&!Js(u)&&{"aria-hidden":"true"}),u),[...i.map(([b,x])=>createElement(b,x)),...Array.isArray(s)?s:[s]])});var tl=(e,a)=>{let o=forwardRef((i,s)=>{var u=i,{className:t}=u,r=d(u,["className"]);return createElement(al,l({ref:s,iconNode:a,className:At(`lucide-${$s(To(e))}`,`lucide-${e}`,t)},r))});return o.displayName=To(e),o};var Nf=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_a=tl("x",Nf);function Ro(a){var e=d(a,[]);return jsx(Dialog.Root,l({"data-slot":"sheet"},e))}function Ff(a){var e=d(a,[]);return jsx(Dialog.Trigger,l({"data-slot":"sheet-trigger"},e))}function Ef(a){var e=d(a,[]);return jsx(Dialog.Close,l({"data-slot":"sheet-close"},e))}function Of(a){var e=d(a,[]);return jsx(Dialog.Portal,l({"data-slot":"sheet-portal"},e))}function Hf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Overlay,l({"data-slot":"sheet-overlay",className:n("bg-black/50 fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Do(r){var s=r,{className:e,children:a,side:o="right"}=s,t=d(s,["className","children","side"]);return jsxs(Of,{children:[jsx(Hf,{}),jsxs(Dialog.Content,c(l({"data-slot":"sheet-content",className:n("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,jsxs(Dialog.Close,{className:"rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(_a,{className:"size-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function zf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sheet-header",className:n("flex flex-col gap-1.5 p-4",e)},a))}function qf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sheet-footer",className:n("mt-auto flex flex-col gap-2 p-4",e)},a))}function Uf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Title,l({"data-slot":"sheet-title",className:n("font-semibold text-foreground",e)},a))}function Vf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Description,l({"data-slot":"sheet-description",className:n("text-muted-foreground text-sm",e)},a))}function Rt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"skeleton",className:n("animate-pulse rounded-md bg-gray-150",e)},a))}var Jf="sidebar_state",Yf=3600*24*7,ec="b",ll=createContext(null);function Ca(){let e=useContext(ll);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ac(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,s=d(u,["defaultOpen","open","onOpenChange","className","children"]);let f=Ha(),[p,m]=useState(false),[b,x]=useState(e),T=a!=null?a:b,C=useCallback(w=>{let k=typeof w=="function"?w(T):w;o?o(k):x(k),document.cookie=`${Jf}=${k}; path=/; max-age=${Yf}`;},[o,T]),D=useCallback(()=>f?m(w=>!w):C(w=>!w),[f,C,m]);useEffect(()=>{let w=k=>{k.key===ec&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),D());};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[D]);let M=T?"expanded":"collapsed",G=useMemo(()=>({state:M,open:T,setOpen:C,isMobile:f,openMobile:p,setOpenMobile:m,toggleSidebar:D}),[M,T,C,f,p,m,D]);return jsx(ll.Provider,{value:G,children:jsx(ea,{delayDuration:0,children:jsx("div",c(l({"data-slot":"sidebar-wrapper",className:n("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},s),{children:r}))})})}function tc(u){var f=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:s}=f,i=d(f,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:b,setOpenMobile:x}=Ca();return o==="none"?jsx("div",c(l({"data-slot":"sidebar",className:n("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:s})):p?jsx(Ro,c(l({open:b,onOpenChange:x},i),{children:jsx(Do,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:n("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsx("div",{className:"flex h-full w-full flex-col",children:s})})})):jsxs("div",{className:n("group peer hidden text-gray-foreground md:block",t),"data-state":m,"data-collapsible":m==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsx("div",{"data-slot":"sidebar-gap",className:n("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsx("div",c(l({"data-slot":"sidebar-container",className:n("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},i),{children:jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-sm",children:s})}))]})}function oc(f){var p=f,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsx(HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:s,enableHover:i=false}=p,u=d(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:b,isMobile:x}=Ca(),[T,C]=useState(false),M=s||{open:"Esconder",closed:"Mostrar"},G=()=>i&&T?b?jsx(ChevronLeftMd,{className:o}):jsx(ChevronRightMd,{className:o}):t,w=jsxs("button",c(l({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:n("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:k=>{a==null||a(k),m();},onMouseEnter:!x&&i?()=>C(true):void 0,onMouseLeave:!x&&i?()=>C(false):void 0},u),{children:[G(),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||x?w:jsxs(aa,{children:[jsx(ta,{asChild:true,children:w}),jsx(oa,{side:"right",align:"center",children:b?M.open:M.closed})]})}function rc(o){var t=o,{className:e}=t,a=d(t,["className"]);let{toggleSidebar:r}=Ca();return jsx("button",l({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function sc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("main",l({"data-slot":"sidebar-inset",className:n("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function lc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Co,l({"data-slot":"sidebar-input","data-sidebar":"input",className:n("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function nc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-header","data-sidebar":"header",className:n("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function dc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-footer","data-sidebar":"footer",className:n("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function ic(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(ia,l({"data-slot":"sidebar-separator","data-sidebar":"separator",className:n("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function uc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-content","data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function fc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-group","data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function cc(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?Slot.Slot:"div";return jsx(s,l({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:n("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function pc(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?Slot.Slot:"button";return jsx(s,l({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:n("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function mc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n("w-full text-sm",e)},a))}function gc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({"data-slot":"sidebar-menu","data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e)},a))}function xc(r){var s=r,{className:e,isActive:a,children:o}=s,t=d(s,["className","isActive","children"]);return jsxs("li",c(l({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var hc=cva("peer/menu-button font-medium flex w-full items-center gap-2.5 overflow-hidden rounded-md p-[.55rem] text-left text-sm outline-hidden ring-ring transition-[width,height,padding] hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:text-secondary-foreground active:font-semibold disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:text-secondary-foreground data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg]:data-[active=true]:stroke-[2.2] [&>svg]:size-5 [&>svg]:shrink-0 mx-auto",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_hsl(var(--color-border))] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_hsl(var(--secondary))]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"md"}});function bc(u){var f=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:s}=f,i=d(f,["asChild","isActive","variant","size","tooltip","className"]);let p=e?Slot.Slot:"button",{isMobile:m,state:b}=Ca(),x=jsx(p,l({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:n(hc({variant:o,size:t}),s)},i));return r?(typeof r=="string"&&(r={children:r}),jsxs(aa,{children:[jsx(ta,{asChild:true,children:x}),jsx(oa,l({side:"right",align:"center",hidden:b!=="collapsed"||m},r))]})):x}function Lc(r){var s=r,{className:e,asChild:a=false,showOnHover:o=false}=s,t=d(s,["className","asChild","showOnHover"]);let i=a?Slot.Slot:"button";return jsx(i,l({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:n("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function vc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:n("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e)},a))}function Cc(t){var r=t,{className:e,showIcon:a=false}=r,o=d(r,["className","showIcon"]);let s=useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",c(l({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:n("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsx(Rt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(Rt,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function Ic(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function kc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("li",l({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:n("group/menu-sub-item relative",e)},a))}function yc({icon:e,title:a}){let{state:o,isMobile:t}=Ca();return jsxs(Fragment,{children:[isValidElement(e)?cloneElement(e,{strokeWidth:1.8}):e,jsx("span",{className:n("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function Sc(){return jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsx(ChevronRightMd,{size:20,strokeWidth:1.5})})}function wc(s){var i=s,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=d(i,["asChild","size","isActive","className"]);let u=e?Slot.Slot:"a";return jsx(u,l({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:n("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var Rc={sm:"size-2",md:"size-3",lg:"size-4"},dl={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},Dc={sm:"data-[state=checked]:translate-x-[11px] data-[state=checked]:rtl:-translate-x-[11px] data-[state=checked]:data-[disabled]:translate-x-[10px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[10px]",md:"data-[state=checked]:translate-x-[15px] data-[state=checked]:rtl:-translate-x-[15px] data-[state=checked]:data-[disabled]:translate-x-[14px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[14px]",lg:"data-[state=checked]:translate-x-[19px] data-[state=checked]:rtl:-translate-x-[19px] data-[state=checked]:data-[disabled]:translate-x-[18px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[18px]"},il=cva("peer inline-flex shrink-0 items-center rounded-pill outline-none transition-all disabled:pointer-events-none focus:outline-0",{variants:{variant:{regular:"border-2 border-gray-stroke-muted data-[disabled]:cursor-default data-[disabled]:!bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=unchecked]:bg-surface-card data-[state=checked]:border-transparent data-[disabled]:data-[state=checked]:bg-gray-background-soft-muted data-[disabled]:data-[state=checked]:border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis"},size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{variant:"regular",size:"md"}});function Mc(f){var p=f,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:s,defaultChecked:i}=p,u=d(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,b]=useState(i||false),x=s!==void 0,T=x?s:m,C=t||r;return jsx(Switch.Root,c(l({"data-slot":"switch",className:n("group",il({size:a,variant:o}),e),checked:s,defaultChecked:i,onCheckedChange:D=>{var M;x||b(D),(M=u.onCheckedChange)==null||M.call(u,D);}},u),{children:jsx(Switch.Thumb,{"data-slot":"switch-thumb",className:n("pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",C&&"!bg-transparent data-[disabled]:!bg-transparent",Rc[a||"md"],Dc[a||"md"]),children:C&&jsxs(Fragment,{children:[T&&t&&jsx("span",{className:n("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",dl[a||"md"]),children:t}),!T&&r&&jsx("span",{className:n("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",dl[a||"md"]),children:r})]})})}))}var ul=createContext({});function Hc({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:s}){let[i,u]=useState(a||""),f={value:a||i,onValueChange:o||u};return jsx(ul.Provider,{value:f,children:jsx(io,{open:t,defaultOpen:r,onOpenChange:s,children:e})})}function zc({children:e,asChild:a=true,className:o}){return jsx(uo,{className:o,asChild:a,children:e})}function qc({children:e,align:a="center",side:o="right",className:t}){return jsx(fo,{className:t,align:a,side:o,children:e})}function Uc({children:e,label:a}){let{value:o,onValueChange:t}=useContext(ul);return a?jsxs(Fragment,{children:[jsx(po,{children:a}),jsx(ct,{value:o,onValueChange:t,children:e})]}):jsx(ct,{value:o,onValueChange:t,children:e})}function Vc({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxs(co,{value:a,onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxs(ft,{onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function _c({children:e,onClick:a,icon:o}){return jsxs(ft,{onClick:a,children:[o,e]})}function Gc(){return jsx(mo,{})}var pl=createContext(null),Qc=150,fl=16,$c="w-8";function Ft(){let e=useContext(pl);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function Jc(e,a){let o=useRef(null);return useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var ml=cva("relative inline-flex min-w-full items-center justify-between gap-0 bg-surface-section",{variants:{variant:{standalone:"rounded-lg border border-gray-stroke-muted px-6",header:"border-b border-gray-stroke-muted px-3.5 sm:px-6 lg:px-8 bg-transparent"}},defaultVariants:{variant:"standalone"}}),gl=cva(["inline-flex min-w-fit flex-1 items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:text-gray-foreground-muted","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-all","relative font-medium text-gray-foreground hover:text-gray-foreground data-[state=active]:text-primary-foreground data-[state=active]:font-semibold"],{variants:{variant:{standalone:"px-3.5 md:px-10 lg:px-16",header:"px-4"},size:{md:"h-[46px] text-sm",lg:"h-[54px] text-base"}},defaultVariants:{variant:"standalone",size:"md"}}),Yc=cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),cl=cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",$c],{variants:{side:{left:"left-0 bg-gradient-to-r from-background to-transparent",right:"right-0 bg-gradient-to-l from-background to-transparent"},variant:{standalone:"",header:""}},compoundVariants:[{side:"left",variant:"header",class:"left-3.5 sm:left-6 lg:left-8"},{side:"right",variant:"header",class:"right-3.5 sm:right-6 lg:right-8"}],defaultVariants:{side:"left",variant:"standalone"}}),xl=cva("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{standalone:"",header:""},size:{md:"",lg:""}},compoundVariants:[{variant:"standalone",size:"md",class:"m-4"},{variant:"standalone",size:"lg",class:"m-6"},{variant:"header",size:"md",class:"my-4"},{variant:"header",size:"lg",class:"my-6"}],defaultVariants:{variant:"standalone",size:"md"}});function ep(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,s=d(u,["className","variant","size","responsive","children"]);let[f,p]=useState(o),m=useCallback(()=>{if(typeof window=="undefined")return;let x=parseInt(ha.tablet),T=parseInt(ha.mobile),C=window.innerWidth;C<=T||C<=x?p("md"):p(o);},[o]),b=Jc(m,Qc);return useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[t,o,m,b]),jsx(pl.Provider,{value:{variant:a,size:o,responsiveSize:f},children:jsx(Tabs.Root,c(l({"data-slot":"tabs","data-variant":a,"data-size":f,className:n("flex w-full max-w-full flex-col overflow-hidden",e)},s),{children:r}))})}function ap(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,responsiveSize:i}=Ft(),u=useRef(null),f=useRef(null),[p,m]=useState(false),[b,x]=useState(false),[T,C]=useState(null),D=useCallback(()=>{let w=u.current;if(!w)return;let{scrollLeft:k,scrollWidth:j,clientWidth:H}=w,g=j>H;m(g&&k>0),x(g&&k<j-H-1);},[]),M=useCallback(()=>{let w=f.current;if(!w)return;let k=w.querySelector('[data-state="active"]');if(k){let j=w.getBoundingClientRect(),H=k.getBoundingClientRect();C({left:H.left-j.left,width:H.width});}},[]),G=useCallback(()=>{let w=u.current,k=f.current;if(!w||!k)return;let j=k.querySelector('[data-state="active"]');if(j){let H=w.getBoundingClientRect(),g=j.getBoundingClientRect();g.left<H.left?w.scrollBy({left:g.left-H.left-fl,behavior:"smooth"}):g.right>H.right&&w.scrollBy({left:g.right-H.right+fl,behavior:"smooth"});}},[]);return useEffect(()=>{let w=u.current;if(!w)return;D();let k=new ResizeObserver(()=>{D(),M();});return k.observe(w),w.addEventListener("scroll",D,{passive:true}),()=>{k.disconnect(),w.removeEventListener("scroll",D);}},[D,M]),useEffect(()=>{M();},[M,a]),useEffect(()=>{let w=f.current;if(!w)return;let k=new MutationObserver(j=>{for(let H of j)if(H.type==="attributes"&&H.attributeName==="data-state"){M(),G();break}});return k.observe(w,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>k.disconnect()},[M,G]),jsxs("div",{"data-slot":"tabs-list-wrapper",className:Yc({variant:s}),children:[jsx("div",{className:n(cl({side:"left",variant:s}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{className:n(cl({side:"right",variant:s}),b?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxs("div",{ref:f,className:"relative",children:[jsx(Tabs.List,c(l({"data-slot":"tabs-list","data-variant":s,"data-size":i,className:n(ml({variant:s}),e)},o),{children:a})),T&&jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:T.left,width:T.width},"aria-hidden":"true"})]})})]})}function tp(s){var i=s,{className:e,children:a,icon:o,badge:t}=i,r=d(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:f}=Ft(),p=useRef(null),[m,b]=useState(false);useEffect(()=>{let T=p.current;if(!T)return;let C=()=>{b(T.getAttribute("data-state")==="active");};C();let D=new MutationObserver(C);return D.observe(T,{attributes:true,attributeFilter:["data-state"]}),()=>D.disconnect()},[]);let x=()=>o?isValidElement(o)?cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxs(Tabs.Trigger,c(l({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":f,className:n(gl({variant:u,size:f}),e)},r),{children:[o&&jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:x()}),jsx("span",{children:a}),t&&jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function op(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r,responsiveSize:s}=Ft();return jsx(Tabs.Content,l({"data-slot":"tabs-content","data-variant":r,"data-size":s,className:n(xl({variant:r,size:s}),e)},a))}var hl=cva("group/tile relative flex flex-col justify-center rounded-lg gap-0.5 px-5 py-4 cursor-default data-[disabled=true]:pointer-events-none",{variants:{variant:{regular:"bg-surface-settings-on text-primary-foreground fill-primary-foreground data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-on)_100%)] data-[disabled=true]:bg-surface-disable data-[inactive=true]:bg-surface-settings-off data-[inactive=true]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-off)_100%)]",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cm-background-fill-emphasis)_0%,_var(--color-cm-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-go-background-fill-emphasis)_0%,_var(--color-go-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cir-background-fill-emphasis)_0%,_var(--color-cir-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-ped-background-fill-emphasis)_0%,_var(--color-ped-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-prev-background-fill-emphasis)_0%,_var(--color-prev-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]"}},defaultVariants:{variant:"regular"}});function np(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,s=d(u,["className","variant","asChild","disabled","inactive"]);let f=o?Slot.Slot:"div";return jsxs(f,c(l({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:n(hl({variant:a,className:e}),s.onClick&&!t&&"cursor-pointer")},s),{children:[s.children,s.onClick&&!t&&jsx(EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function dp(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",c(l({"data-slot":"tile-icon",className:n("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function ip(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"tile-title",className:n("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function up(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"data-slot":"tile-description",className:n("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var mp=3,gp=1e6,He={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},No=0;function xp(){return No=(No+1)%Number.MAX_SAFE_INTEGER,No.toString()}var Fo=new Map,bl=e=>{if(Fo.has(e))return;let a=setTimeout(()=>{Fo.delete(e),ja({type:He.REMOVE_TOAST,toastId:e});},gp);Fo.set(e,a);},hp=(e,a)=>{switch(a.type){case He.ADD_TOAST:return c(l({},e),{toasts:[a.toast,...e.toasts].slice(0,mp)});case He.UPDATE_TOAST:return c(l({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?l(l({},o),a.toast):o)});case He.DISMISS_TOAST:{let{toastId:o}=a;return o?bl(o):e.toasts.forEach(t=>{bl(t.id);}),c(l({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?c(l({},t),{open:false}):t)})}case He.REMOVE_TOAST:return a.toastId===void 0?c(l({},e),{toasts:[]}):c(l({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},Ot=[],Ht={toasts:[]};function ja(e){Ht=hp(Ht,e),Ot.forEach(a=>{a(Ht);});}function bp(a){var e=d(a,[]);let o=xp(),t=s=>ja({type:He.UPDATE_TOAST,toast:c(l({},s),{id:o})}),r=()=>ja({type:He.DISMISS_TOAST,toastId:o});return ja({type:He.ADD_TOAST,toast:c(l({},e),{id:o,open:true,onOpenChange:s=>{s||r();}})}),{id:o,dismiss:r,update:t}}function Eo(){let[e,a]=useState(Ht);return useEffect(()=>(Ot.push(a),()=>{let o=Ot.indexOf(a);o>-1&&Ot.splice(o,1);}),[e]),c(l({},e),{toast:bp,dismiss:o=>ja({type:He.DISMISS_TOAST,toastId:o})})}var Cl=cva("group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md bg-surface-elevated p-2 pl-4 shadow-lg",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),Sp=cva("size-6 shrink-0",{variants:{variant:{primary:"text-primary-foreground fill-primary-background-soft",secondary:"text-secondary-foreground fill-secondary-background-soft",success:"text-feedback-success-foreground fill-feedback-success-background-soft",warning:"text-feedback-warning-foreground fill-feedback-warning-background-soft",error:"text-feedback-error-foreground fill-feedback-error-background-soft"}},defaultVariants:{variant:"primary"}}),wp={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},Pp={primary:Info,secondary:Info,success:CircleCheck,warning:TriangleWarning,error:OctagonWarning},Il=Toast.Provider;function kl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Viewport,l({className:n("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function yl(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,s=d(u,["className","variant","showIcon","duration","children"]);let f=Pp[a||"primary"];return jsx(Toast.Root,c(l({duration:t},s),{forceMount:true,asChild:true,children:jsxs(motion.li,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50,zIndex:-1},transition:{duration:.4,ease:"easeInOut"},layout:true,className:n(Cl({variant:a}),e),children:[o&&jsx(f,{className:n(Sp({variant:a}))}),jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function Tp(f){var p=f,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:s,altText:i="Toast action"}=p,u=d(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsx(Toast.Action,c(l({asChild:true,altText:i,className:n("inline-flex items-center justify-center",e)},u),{children:jsx(ve,{iconLeft:t,iconRight:r,size:o,variant:wp[a],children:s})}))}function Sl(t){var r=t,{className:e,label:a="Fechar"}=r,o=d(r,["className","label"]);return jsx(Toast.Close,c(l({className:n("shrink-0",e)},o),{asChild:true,children:jsx(ve,{iconLeft:jsx(CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function wl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Title,l({className:n("flex-1 text-md font-medium",e)},a))}function Pl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Description,l({className:n("text-xs",e)},a))}function Ap(){let{toasts:e}=Eo();return jsxs(Il,{children:[jsx(AnimatePresence,{mode:"popLayout",children:e.filter(a=>a.open).map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,s=d(u,["id","title","description","action"]);return jsxs(yl,c(l({},s),{children:[jsxs("div",{className:"grid",children:[o&&jsx(wl,{children:o}),t&&jsx(Pl,{children:t})]}),jsxs("div",{className:"flex items-center gap-2",children:[r,jsx(Sl,{})]})]}),a)})}),jsx(kl,{})]})}/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
@@ -12,5 +12,5 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
12
12
|
* This source code is licensed under the ISC license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
14
|
*)
|
|
15
|
-
*/export{
|
|
15
|
+
*/export{kn as Alert,Pn as AlertActions,Tn as AlertButton,yn as AlertContainer,Sn as AlertContent,gr as AlertDescription,qn as AlertDialog,Kn as AlertDialogAction,jn as AlertDialogCancel,Vn as AlertDialogContent,Xn as AlertDialogDescription,Gn as AlertDialogFooter,_n as AlertDialogHeader,Ir as AlertDialogOverlay,Cr as AlertDialogPortal,Wn as AlertDialogTitle,Un as AlertDialogTrigger,wn as AlertIcon,mr as AlertTitle,Ad as Autocomplete,Md as AutocompleteContent,Zt as AutocompleteContentFooter,Nd as AutocompleteGroup,Bd as AutocompleteItem,Fd as AutocompleteText,Dd as AutocompleteTrigger,Rd as AutocompleteWrapper,$t as Avatar,Yt as AvatarFallback,Jt as AvatarImage,Qe as Badge,eo as Breadcrumb,Kd as BreadcrumbEllipsis,_d as BreadcrumbItem,Gd as BreadcrumbLink,ao as BreadcrumbList,Wd as BreadcrumbPage,Xd as BreadcrumbSeparator,ve as Button,ai as CardWeek,mi as CardWeekActions,ti as CardWeekBreadcrumb,oi as CardWeekContainer,fi as CardWeekContent,li as CardWeekDescription,ui as CardWeekFooter,ri as CardWeekHeader,ii as CardWeekProgress,di as CardWeekProgressCircle,pi as CardWeekStatus,ni as CardWeekTags,ci as CardWeekText,si as CardWeekTitle,bi as Checkbox,Ci as Collapsible,ki as CollapsibleContent,Ii as CollapsibleTrigger,qi as DatePicker,Hi as DatePickerLabel,zi as DatePickerText,Oi as DatePickerWrapper,Ui as DateRangePicker,md as Dialog,xd as DialogClose,hd as DialogContainer,bd as DialogContent,Id as DialogDescription,vd as DialogFooter,Ld as DialogHeader,_r as DialogOverlay,Vr as DialogPortal,Cd as DialogTitle,gd as DialogTrigger,io as DropdownMenu,Ai as DropdownMenuCheckboxItem,fo as DropdownMenuContent,Ti as DropdownMenuGroup,ft as DropdownMenuItem,po as DropdownMenuLabel,Pi as DropdownMenuPortal,ct as DropdownMenuRadioGroup,co as DropdownMenuRadioItem,mo as DropdownMenuSeparator,Ri as DropdownMenuShortcut,Di as DropdownMenuSub,Bi as DropdownMenuSubContent,Mi as DropdownMenuSubTrigger,uo as DropdownMenuTrigger,Co as Input,Lo as InputAdornment,vo as InputEndIcon,eu as InputField,au as InputLabel,Ts as InputNumeric,Ps as InputPassword,vt as InputStartIcon,tu as InputText,Yi as InputWrapper,nu as Label,_t as Loading,iu as Logo,uu as LogoShort,hu as Pagination,Ms as PaginationContent,Es as PaginationEllipsis,Io as PaginationInfo,It as PaginationItem,Bs as PaginationLink,Fs as PaginationNext,Ns as PaginationPrevious,Ds as PaginationRoot,so as Progress,to as ProgressCircle,Cu as RadioGroup,Iu as RadioGroupItem,Ru as Ranking,_u as RankingAssigneeGroup,Gu as RankingAssigneeItem,Vu as RankingAssigneeLabel,Uu as RankingAssigneesColumn,Bu as RankingBody,$u as RankingButton,Du as RankingHeader,Mu as RankingHeaderCell,Nu as RankingItem,Fu as RankingNumber,Qu as RankingPerformance,Wu as RankingPriority,Ku as RankingQuestions,Hu as RankingSpecialty,qu as RankingSuperFocus,zu as RankingTopic,Eu as RankingTopicColumn,Ou as RankingTopicContent,tf as Rating,_s as RatingButtonVariants,Gs as RatingLabelVariants,Vs as RatingStarVariants,yo as ScrollArea,Va as ScrollBar,wf as SegmentControl,Af as SegmentControlContent,Pf as SegmentControlList,Tf as SegmentControlTrigger,uf as Select,bf as SelectContent,pf as SelectGroup,Lf as SelectHeader,vf as SelectItem,cf as SelectLabel,js as SelectScrollDownButton,Ks as SelectScrollUpButton,Cf as SelectSeparator,If as SelectText,hf as SelectTrigger,mf as SelectValue,ff as SelectWrapper,ia as Separator,Ro as Sheet,Ef as SheetClose,Do as SheetContent,Vf as SheetDescription,qf as SheetFooter,zf as SheetHeader,Uf as SheetTitle,Ff as SheetTrigger,tc as Sidebar,uc as SidebarContent,dc as SidebarFooter,fc as SidebarGroup,pc as SidebarGroupAction,mc as SidebarGroupContent,cc as SidebarGroupLabel,nc as SidebarHeader,lc as SidebarInput,sc as SidebarInset,gc as SidebarMenu,Lc as SidebarMenuAction,vc as SidebarMenuBadge,bc as SidebarMenuButton,xc as SidebarMenuItem,Sc as SidebarMenuItemCollapse,yc as SidebarMenuItemTitle,Cc as SidebarMenuSkeleton,Ic as SidebarMenuSub,wc as SidebarMenuSubButton,kc as SidebarMenuSubItem,ac as SidebarProvider,rc as SidebarRail,ic as SidebarSeparator,oc as SidebarTrigger,Rt as Skeleton,Mc as Switch,Hc as Switcher,qc as SwitcherContent,_c as SwitcherFooter,Uc as SwitcherGroup,Vc as SwitcherItem,Gc as SwitcherSeparator,zc as SwitcherTrigger,ep as Tabs,op as TabsContent,ap as TabsList,tp as TabsTrigger,pa as Tag,np as Tile,up as TileDescription,dp as TileIcon,ip as TileTitle,yl as Toast,Tp as ToastAction,Sl as ToastClose,Pl as ToastDescription,Il as ToastProvider,wl as ToastTitle,kl as ToastViewport,Ap as Toaster,aa as Tooltip,oa as TooltipContent,ea as TooltipProvider,ta as TooltipTrigger,xr as alertButtonVariants,pr as alertVariants,xa as applyInputIconSize,ts as avatarVariants,br as badgeVariants,Ra as buttonVariants,Os as calculatePageNumbers,is as checkboxVariants,bo as datePickerTriggerVariants,As as labelVariants,Hs as radioGroupVariants,Qs as segmentControlTriggerVariants,il as switchVariants,xl as tabsContentVariants,ml as tabsListVariants,gl as tabsTriggerVariants,rs as tagVariants,hl as tileVariants,Cl as toastVariants,Ha as useIsMobile,Ca as useSidebar,Ft as useTabsContext,Eo as useToast};//# sourceMappingURL=index.mjs.map
|
|
16
16
|
//# sourceMappingURL=index.mjs.map
|