@medway-ui/core 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var E=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),reactDom=require('react-dom'),framerMotion=require('framer-motion');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var E__namespace=/*#__PURE__*/_interopNamespace(E);var Gl=Object.defineProperty,Wl=Object.defineProperties;var Xl=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var Qo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable;var Zo=(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={}))Qo.call(a,o)&&Zo(e,o,a[o]);if(rt)for(var o of rt(a))$o.call(a,o)&&Zo(e,o,a[o]);return e},c=(e,a)=>Wl(e,Xl(a));var d=(e,a)=>{var o={};for(var t in e)Qo.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&rt)for(var t of rt(e))a.indexOf(t)<0&&$o.call(e,t)&&(o[t]=e[t]);return o};var Kl=(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},jl=(e,a)=>({classGroupId:e,validator:a}),sr=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var Jo=[],Zl="arbitrary..",Ql=e=>{let a=Jl(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return $l(i);let u=i.split("-"),f=u[0]===""&&u.length>1?1:0;return lr(u,f,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let f=t[i],p=o[i];return f?p?Kl(p,f):f:p||Jo}return o[i]||Jo}}},lr=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],s=o.nextPart.get(r);if(s){let p=lr(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}},$l=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?Zl+t:void 0})(),Jl=e=>{let{theme:a,classGroups:o}=e;return Yl(o,a)},Yl=(e,a)=>{let o=sr();for(let t in e){let r=e[t];$t(r,o,t,a);}return o},$t=(e,a,o,t)=>{let r=e.length;for(let s=0;s<r;s++){let i=e[s];en(i,a,o,t);}},en=(e,a,o,t)=>{if(typeof e=="string"){an(e,a,o);return}if(typeof e=="function"){tn(e,a,o,t);return}on(e,a,o,t);},an=(e,a,o)=>{let t=e===""?a:nr(a,e);t.classGroupId=o;},tn=(e,a,o,t)=>{if(rn(e)){$t(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(jl(o,e));},on=(e,a,o,t)=>{let r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){let[u,f]=r[i];$t(f,nr(a,u),o,t);}},nr=(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=sr(),o.nextPart.set(i,u)),o=u;}return o},rn=e=>"isThemeGetter"in e&&e.isThemeGetter===true,sn=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 ln=[],Yo=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),nn=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let s=[],i=0,u=0,f=0,p,m=r.length;for(let M=0;M<m;M++){let D=r[M];if(i===0&&u===0){if(D===":"){s.push(r.slice(f,M)),f=M+1;continue}if(D==="/"){p=M;continue}}D==="["?i++:D==="]"?i--:D==="("?u++:D===")"&&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 Yo(s,T,x,C)};if(a){let r=a+":",s=t;t=i=>i.startsWith(r)?s(i.slice(r.length)):Yo(ln,false,i,void 0,true);}if(o){let r=t;t=s=>o({className:s,parseClassName:r});}return t},dn=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}},un=e=>l({cache:sn(e.cacheSize),parseClassName:nn(e),sortModifiers:dn(e)},Ql(e)),fn=/\s+/,cn=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:s}=a,i=[],u=e.trim().split(fn),f="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:b,modifiers:x,hasImportantModifier:T,baseClassName:C,maybePostfixModifierPosition:M}=o(m);if(b){f=m+(f.length>0?" "+f:f);continue}let D=!!M,G=t(D?C.substring(0,M):C);if(!G){if(!D){f=m+(f.length>0?" "+f:f);continue}if(G=t(C),!G){f=m+(f.length>0?" "+f:f);continue}D=false;}let P=x.length===0?"":x.length===1?x[0]:s(x).join(":"),k=T?P+"!":P,j=k+G;if(i.indexOf(j)>-1)continue;i.push(j);let H=r(G,D);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},pn=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=dr(o))&&(r&&(r+=" "),r+=t);return r},dr=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=dr(e[t]))&&(o&&(o+=" "),o+=a);return o},er=(e,...a)=>{let o,t,r,s,i=f=>{let p=a.reduce((m,b)=>b(m),e());return o=un(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=cn(f,o);return r(f,m),m};return s=i,(...f)=>s(pn(...f))},mn=[],de=e=>{let a=o=>o[e]||mn;return a.isThemeGetter=true,a},ir=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ur=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gn=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hn=/\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$/,bn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ln=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>gn.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),We=e=>!!e&&Number.isInteger(Number(e)),Qt=e=>e.endsWith("%")&&_(e.slice(0,-1)),Fe=e=>xn.test(e),fr=()=>true,Cn=e=>hn.test(e)&&!bn.test(e),Jt=()=>false,In=e=>Ln.test(e),kn=e=>vn.test(e),yn=e=>!w(e)&&!A(e),Sn=e=>Xe(e,mr,Jt),w=e=>ir.test(e),Ye=e=>Xe(e,gr,Cn),ar=e=>Xe(e,Bn,_),Pn=e=>Xe(e,hr,fr),wn=e=>Xe(e,xr,Jt),tr=e=>Xe(e,cr,Jt),Tn=e=>Xe(e,pr,kn),st=e=>Xe(e,br,In),A=e=>ur.test(e),Da=e=>ea(e,gr),An=e=>ea(e,xr),or=e=>ea(e,cr),Rn=e=>ea(e,mr),Mn=e=>ea(e,pr),lt=e=>ea(e,br,true),Dn=e=>ea(e,hr,true),Xe=(e,a,o)=>{let t=ir.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},ea=(e,a,o=false)=>{let t=ur.exec(e);return t?t[1]?a(t[1]):o:false},cr=e=>e==="position"||e==="percentage",pr=e=>e==="image"||e==="url",mr=e=>e==="length"||e==="size"||e==="bg-size",gr=e=>e==="length",Bn=e=>e==="number",xr=e=>e==="family-name",hr=e=>e==="number"||e==="weight",br=e=>e==="shadow";var rr=()=>{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"),M=de("perspective"),D=de("aspect"),G=de("ease"),P=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,w],g=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],L=()=>[A,w,f],X=()=>[Ge,"full","auto",...L()],W=()=>[We,"none","subgrid",A,w],Q=()=>["auto",{span:["full",We,A,w]},We,A,w],xe=()=>[We,"auto",A,w],ke=()=>["auto","min","max","fr",A,w],pe=()=>["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=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],Me=()=>[Ge,"screen","full","dvw","lvw","svw","min","max","fit",...L()],De=()=>[Ge,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],R=()=>[e,A,w],ne=()=>[...j(),or,tr,{position:[A,w]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],h=()=>["auto","cover","contain",Rn,Sn,{size:[A,w]}],O=()=>[Qt,Da,Ye],S=()=>["","none","full",p,A,w],y=()=>["",_,Da,Ye],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"],V=()=>[_,Qt,or,tr],le=()=>["","none",C,A,w],B=()=>["none",_,A,w],v=()=>["none",_,A,w],U=()=>[_,A,w],K=()=>[Ge,"full",...L()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fe],breakpoint:[Fe],color:[fr],container:[Fe],"drop-shadow":[Fe],ease:["in","out","in-out"],font:[yn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fe],shadow:[Fe],spacing:["px",_],text:[Fe],"text-shadow":[Fe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,w,A,D]}],container:["container"],columns:[{columns:[_,w,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:[We,"auto",A,w]}],basis:[{basis:[Ge,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,Ge,"auto","initial","none",w]}],grow:[{grow:["",_,A,w]}],shrink:[{shrink:["",_,A,w]}],order:[{order:[We,"first","last","none",A,w]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ke()}],"auto-rows":[{"auto-rows":ke()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"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",...Me()]}],"min-inline-size":[{"min-inline":["auto",...Me()]}],"max-inline-size":[{"max-inline":["none",...Me()]}],"block-size":[{block:["auto",...De()]}],"min-block-size":[{"min-block":["auto",...De()]}],"max-block-size":[{"max-block":["none",...De()]}],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,Da,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,Dn,Pn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qt,w]}],"font-family":[{font:[An,wn,a]}],"font-features":[{"font-features":[w]}],"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,w]}],"line-clamp":[{"line-clamp":[_,"none",A,ar]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",A,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,w]}],"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,Ye]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[_,"auto",A,w]}],"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,w]}],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,w]}],"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:fe()}],"bg-size":[{bg:h()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},We,A,w],radial:["",A,w],conic:[We,A,w]},Mn,Tn]}],"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,w]}],"outline-w":[{outline:["",_,Da,Ye]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,lt,st]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",b,lt,st]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[_,Ye]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",x,lt,st]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[_,A,w]}],"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":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"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":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"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":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"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":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"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":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"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":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"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":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[A,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"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":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"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:fe()}],"mask-size":[{mask:h()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,w]}],filter:[{filter:["","none",A,w]}],blur:[{blur:le()}],brightness:[{brightness:[_,A,w]}],contrast:[{contrast:[_,A,w]}],"drop-shadow":[{"drop-shadow":["","none",T,lt,st]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",_,A,w]}],"hue-rotate":[{"hue-rotate":[_,A,w]}],invert:[{invert:["",_,A,w]}],saturate:[{saturate:[_,A,w]}],sepia:[{sepia:["",_,A,w]}],"backdrop-filter":[{"backdrop-filter":["","none",A,w]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[_,A,w]}],"backdrop-contrast":[{"backdrop-contrast":[_,A,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,A,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,A,w]}],"backdrop-invert":[{"backdrop-invert":["",_,A,w]}],"backdrop-opacity":[{"backdrop-opacity":[_,A,w]}],"backdrop-saturate":[{"backdrop-saturate":[_,A,w]}],"backdrop-sepia":[{"backdrop-sepia":["",_,A,w]}],"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,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",A,w]}],ease:[{ease:["linear","initial",G,A,w]}],delay:[{delay:[_,A,w]}],animate:[{animate:["none",P,A,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,A,w]}],"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:U()}],"skew-x":[{"skew-x":U()}],"skew-y":[{"skew-y":U()}],transform:[{transform:[A,w,"","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,w]}],"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,w]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[_,Da,Ye,ar]}],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"]}},Nn=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:s={}})=>(Ba(e,"cacheSize",a),Ba(e,"prefix",o),Ba(e,"experimentalParseClassName",t),nt(e.theme,s.theme),nt(e.classGroups,s.classGroups),nt(e.conflictingClassGroups,s.conflictingClassGroups),nt(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Ba(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),dt(e.theme,r.theme),dt(e.classGroups,r.classGroups),dt(e.conflictingClassGroups,r.conflictingClassGroups),dt(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Lr(e,r,"orderSensitiveModifiers"),e),Ba=(e,a,o)=>{o!==void 0&&(e[a]=o);},nt=(e,a)=>{if(a)for(let o in a)Ba(e,o,a[o]);},dt=(e,a)=>{if(a)for(let o in a)Lr(e,a,o);},Lr=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},vr=(e,...a)=>typeof e=="function"?er(rr,e,...a):er(()=>Nn(rr(),e),...a);var En=vr({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 En(clsx.clsx(e))}var Yt=E.createContext(null),Sr=classVarianceAuthority.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 zn(s){var i=s,{className:e,variant:a="regular",onClose:o,children:t}=i,r=d(i,["className","variant","onClose","children"]);let u=E.Children.toArray(t).some(p=>E.isValidElement(p)&&p.type===wr),f=E.Children.toArray(t).some(p=>E.isValidElement(p)&&p.type===Pr);return jsxRuntime.jsx(Yt.Provider,{value:{variant:a,hasDescription:u,hasTitle:f,onClose:o},children:jsxRuntime.jsxs("div",c(l({"data-slot":"alert",role:"alert",className:n(Sr({variant:a}),e)},r),{children:[t,o&&jsxRuntime.jsx(icons.CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function qn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-container",className:n("flex gap-3",e)},a))}function Vn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-content",className:n("flex flex-col gap-1",e)},a))}function Un(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"alert-icon",className:n("size-6",e)},o),{children:a}))}function Pr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-title",className:n("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function wr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 _n(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=E.useContext(Yt),s=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsxRuntime.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 Tr=classVarianceAuthority.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=E.useContext(Yt),i=(s==null?void 0:s.variant)||"regular";return jsxRuntime.jsx("button",l({className:n(Tr({variant:a,alertVariant:i}),e)},o))}function eo({size:e=24,className:a}){return jsxRuntime.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:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Zn={sm:"size-4 p-0 leading-none",md:"size-5 p-0 leading-none",lg:"size-6 p-0 leading-none",xl:"size-7 p-0 leading-none"},Qn={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Rr=classVarianceAuthority.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 aa(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?radixUi.Slot.Slot:"span",m=E.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),M=/^\d{1,2}\S$/.test(x),D=C||M;return jsxRuntime.jsxs(p,c(l({"data-slot":"badge",className:n(Rr({variant:a,size:o}),(b||T)&&Zn[o||"md"],!b&&D&&Qn[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 ed={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"},Mr={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},ad={sm:"sm",md:"md",lg:"md",xl:"lg"},Na=classVarianceAuthority.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 ie(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?radixUi.Slot.Slot:"button",C=k=>k!=null&&k!==0&&k!==""&&k!=="0",M=k=>k,D=!m.children&&(i||s||p),G=()=>p?jsxRuntime.jsxs("span",{className:n("relative mr-1 flex size-2.5",Mr[t||"md"]),children:[jsxRuntime.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsxRuntime.jsx("span",{className:n("relative inline-flex size-2.5 rounded-full",Mr[t||"md"]),style:{backgroundColor:p}})]}):null,P=()=>f?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(eo,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:n("[grid-area:stack]",f&&"invisible"),children:m.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?G():i&&M(i),m.children&&jsxRuntime.jsx("span",{children:m.children}),s&&M(s)]});return jsxRuntime.jsxs("div",{className:n("relative",a),children:[C(u)&&jsxRuntime.jsx(aa,{size:ad[t||"md"],variant:"regular",className:n("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(T,c(l({disabled:f,"aria-busy":f,"aria-live":f?"polite":void 0,"data-slot":"button",className:n(D&&ed[t||"md"],f&&"!inline-grid",Na({variant:o,size:t,className:e}))},m),{children:P()}))]})}function td(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Root,l({"data-slot":"alert-dialog"},e))}function od(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,l({"data-slot":"alert-dialog-trigger"},e))}function Br(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,l({"data-slot":"alert-dialog-portal"},e))}function Nr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 rd(t){var r=t,{className:e,overlayClassName:a}=r,o=d(r,["className","overlayClassName"]);return jsxRuntime.jsxs(Br,{children:[jsxRuntime.jsx(Nr,{className:a}),jsxRuntime.jsx(radixUi.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)},o))]})}function sd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",e)},a))}function ld(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 nd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,l({"data-slot":"alert-dialog-title",className:n("text-lg font-semibold",e)},a))}function dd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,l({"data-slot":"alert-dialog-description",className:n("text-sm text-foreground",e)},a))}function id(r){var s=r,{className:e,variant:a,size:o}=s,t=d(s,["className","variant","size"]);return jsxRuntime.jsx(radixUi.AlertDialog.Action,l({className:n(Na({variant:a,size:o}),e)},t))}function ud(r){var s=r,{className:e,variant:a="outlined",size:o}=s,t=d(s,["className","variant","size"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,l({className:n(Na({variant:a,size:o}),e)},t))}var cd=0;function pd(){return `medway-id-${++cd}`}var md=E__namespace.useId||(()=>{});function we(){let e=md(),[a]=E__namespace.useState(()=>e!=null?e:pd());return a}var gd=/[\\\/_+.#"@\[\(\{&]/,xd=/[\\\/_+.#"@\[\(\{&]/g,hd=/[\s-]/,Er=/[\s-]/g;function ao(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=ao(e,a,o,t,p+1,s+1,i),b>m&&(p===r?b*=1:gd.test(e.charAt(p-1))?(b*=.8,T=e.slice(r,p-1).match(xd),T&&r>0&&(b*=Math.pow(.999,T.length))):hd.test(e.charAt(p-1))?(b*=.9,C=e.slice(r,p-1).match(Er),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=ao(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 Fr(e){return e.toLowerCase().replace(Er," ")}function Or(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,ao(e,a,Fr(e),Fr(a),0,0,{})}var Fa='[cmdk-group=""]',to='[cmdk-group-items=""]',bd='[cmdk-group-heading=""]',zr='[cmdk-item=""]',Hr=`${zr}:not([aria-disabled="true"])`,oo="cmdk-item-select",ca="data-value",Ld=(e,a,o)=>Or(e,a,o),qr=E__namespace.createContext(void 0),Oa=()=>E__namespace.useContext(qr),Vr=E__namespace.createContext(void 0),ro=()=>E__namespace.useContext(Vr),Ur=E__namespace.createContext(void 0),_r=E__namespace.forwardRef((e,a)=>{let o=pa(()=>{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=pa(()=>new Set),r=pa(()=>new Map),s=pa(()=>new Map),i=pa(()=>new Set),u=$r(e),fe=e,{label:f,children:p,value:m,onValueChange:b,filter:x,shouldFilter:T,loop:C,disablePointerSelection:M=false,vimBindings:D=true}=fe,G=d(fe,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),P=we(),k=we(),j=we(),H=E__namespace.useRef(null),g=Id();Ke(()=>{if(m!==void 0){let h=m.trim();o.current.value=h,I.emit();}},[m]),Ke(()=>{g(6,ke);},[]);let I=E__namespace.useMemo(()=>({subscribe:h=>(i.current.add(h),()=>i.current.delete(h)),snapshot:()=>o.current,setState:(h,O,S)=>{var y,q,Y,V,le,B;if(!Object.is(o.current[h],O)){if(o.current[h]=O,h==="search")xe(),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(P))==null||Y.focus();}if(g(7,()=>{var v;o.current.selectedItemId=(v=pe())==null?void 0:v.id,I.emit();}),S||g(5,ke),((V=u.current)==null?void 0:V.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__namespace.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,()=>{xe(),W(),o.current.value||Q(),I.emit();}),()=>{s.current.delete(h),t.current.delete(h),o.current.filtered.items.delete(h);let S=pe();g(4,()=>{xe(),(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:P,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:Ld;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(V=>{let le=h.get(V);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"),V=q.getAttribute("id");return ((le=h.get(V))!=null?le:0)-((B=h.get(Y))!=null?B:0)}).forEach(y=>{let q=y.closest(to);q?q.appendChild(y.parentElement===q?y:y.closest(`${to} > *`)):S==null||S.appendChild(y.parentElement===S?y:y.closest(`${to} > *`));}),O.sort((y,q)=>q[1]-y[1]).forEach(y=>{var Y,V;let q=(Y=H.current)==null?void 0:Y.querySelector(`${Fa}[${ca}="${encodeURIComponent(y[0])}"]`);(V=q==null?void 0:q.parentElement)==null||V.appendChild(q);});}function Q(){let h=J().find(S=>S.getAttribute("aria-disabled")!=="true"),O=h==null?void 0:h.getAttribute(ca);I.setState("value",O||void 0);}function xe(){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 V of t.current){let le=(S=(O=s.current.get(V))==null?void 0:O.value)!=null?S:"",B=(q=(y=s.current.get(V))==null?void 0:y.keywords)!=null?q:[],v=X(le,B);o.current.filtered.items.set(V,v),v>0&&h++;}for(let[V,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(V);break}o.current.filtered.count=h;}function ke(){var O,S,y;let h=pe();h&&(((O=h.parentElement)==null?void 0:O.firstChild)===h&&((y=(S=h.closest(Fa))==null?void 0:S.querySelector(bd))==null||y.scrollIntoView({block:"nearest"})),h.scrollIntoView({block:"nearest"}));}function pe(){var h;return (h=H.current)==null?void 0:h.querySelector(`${zr}[aria-selected="true"]`)}function J(){var h;return Array.from(((h=H.current)==null?void 0:h.querySelectorAll(Hr))||[])}function re(h){let S=J()[h];S&&I.setState("value",S.getAttribute(ca));}function se(h){var Y;let O=pe(),S=J(),y=S.findIndex(V=>V===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(ca));}function Me(h){let O=pe(),S=O==null?void 0:O.closest(Fa),y;for(;S&&!y;)S=h>0?vd(S,Fa):Cd(S,Fa),y=S==null?void 0:S.querySelector(Hr);y?I.setState("value",y.getAttribute(ca)):se(h);}let De=()=>re(J().length-1),R=h=>{h.preventDefault(),h.metaKey?De():h.altKey?Me(1):se(1);},ne=h=>{h.preventDefault(),h.metaKey?re(0):h.altKey?Me(-1):se(-1);};return jsxRuntime.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":{D&&h.ctrlKey&&R(h);break}case "ArrowDown":{R(h);break}case "p":case "k":{D&&h.ctrlKey&&ne(h);break}case "ArrowUp":{ne(h);break}case "Home":{h.preventDefault(),re(0);break}case "End":{h.preventDefault(),De();break}case "Enter":{h.preventDefault();let y=pe();if(y){let q=new Event(oo);y.dispatchEvent(q);}}}},children:[jsxRuntime.jsx("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:yd,children:f}),ft(e,h=>jsxRuntime.jsx(Vr.Provider,{value:I,children:jsxRuntime.jsx(qr.Provider,{value:L,children:h})}))]}))});_r.displayName="Command";var Gr=E__namespace.forwardRef((e,a)=>{var j,H;let o=we(),t=E__namespace.useRef(null),r=E__namespace.useContext(Ur),s=Oa(),i=$r(e),u=(H=(j=i.current)==null?void 0:j.forceMount)!=null?H:r==null?void 0:r.forceMount;Ke(()=>{if(!u)return s.item(o,r==null?void 0:r.id)},[u]);let f=Jr(o,t,[e.value,e.children,t],e.keywords),p=ro(),m=je(I=>I.value&&I.value===f.current),b=je(I=>{var L;return u||s.filter()===false?true:I.search?((L=I.filtered.items.get(o))!=null?L:0)>0:true});E__namespace.useEffect(()=>{let I=t.current;if(!(!I||e.disabled))return I.addEventListener(oo,x),()=>I.removeEventListener(oo,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:M,onSelect:D,forceMount:G,keywords:P}=g,k=d(g,["disabled","value","onSelect","forceMount","keywords"]);return jsxRuntime.jsx("div",c(l({ref:Ea(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}))});Gr.displayName="Item";var Wr=E__namespace.forwardRef((e,a)=>{let T=e,{heading:o,children:t,forceMount:r}=T,s=d(T,["heading","children","forceMount"]),i=we(),u=E__namespace.useRef(null),f=E__namespace.useRef(null),p=we(),m=Oa(),b=je(C=>r||m.filter()===false?true:C.search?C.filtered.groups.has(i):true);Ke(()=>m.group(i),[]),Jr(i,u,[e.value,e.heading,f]);let x=E__namespace.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxRuntime.jsxs("div",c(l({ref:Ea(u,a)},s),{"cmdk-group":"",role:"presentation",hidden:b?void 0:true,children:[o&&jsxRuntime.jsx("div",{ref:f,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),ft(e,C=>jsxRuntime.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsxRuntime.jsx(Ur.Provider,{value:x,children:C})}))]}))});Wr.displayName="Group";var Xr=E__namespace.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=d(i,["alwaysRender"]),r=E__namespace.useRef(null),s=je(u=>!u.search);return !o&&!s?null:jsxRuntime.jsx("div",c(l({ref:Ea(r,a)},t),{"cmdk-separator":"",role:"separator"}))});Xr.displayName="Separator";var Kr=E__namespace.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=d(p,["onValueChange"]),r=e.value!=null,s=ro(),i=je(m=>m.search),u=je(m=>m.selectedItemId),f=Oa();return E__namespace.useEffect(()=>{e.value!=null&&s.setState("search",e.value);},[e.value]),jsxRuntime.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 jr=E__namespace.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=d(p,["children","label"]),s=E__namespace.useRef(null),i=E__namespace.useRef(null),u=je(m=>m.selectedItemId),f=Oa();return E__namespace.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__namespace.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});}},[]),jsxRuntime.jsx("div",c(l({ref:Ea(s,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:f.listId,children:ft(e,m=>jsxRuntime.jsx("div",{ref:Ea(i,f.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});jr.displayName="List";var Zr=E__namespace.forwardRef((e,a)=>je(t=>t.filtered.count===0)?jsxRuntime.jsx("div",c(l({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);Zr.displayName="Empty";var Qr=E__namespace.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,s=d(i,["progress","children","label"]);return jsxRuntime.jsx("div",c(l({ref:a},s),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:ft(e,u=>jsxRuntime.jsx("div",{"aria-hidden":true,children:u}))}))});Qr.displayName="Loading";var oa=Object.assign(_r,{List:jr,Item:Gr,Input:Kr,Group:Wr,Separator:Xr,Empty:Zr,Loading:Qr});function vd(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function Cd(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function $r(e){let a=E__namespace.useRef(e);return Ke(()=>{a.current=e;}),a}var Ke=typeof window=="undefined"?E__namespace.useEffect:E__namespace.useLayoutEffect;function pa(e){let a=E__namespace.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function je(e){let a=ro(),[,o]=E__namespace.useState({}),t=E__namespace.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),Ke(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function Jr(e,a,o,t=[]){let r=E__namespace.useRef(void 0),s=Oa();return Ke(()=>{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(ca,i!=null?i:""),r.current=i;}),r}var Id=()=>{let[e,a]=E__namespace.useState(),o=pa(()=>new Map);return Ke(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function kd(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function ft({asChild:e,children:a},o){return e&&E__namespace.isValidElement(a)?E__namespace.cloneElement(kd(a),{ref:a.ref},o(a.props.children)):o(a)}function Ea(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var yd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ma(r){var s=r,{className:e,orientation:a="horizontal",decorative:o=true}=s,t=d(s,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.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 Rd(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"dialog"},e))}function Md(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"dialog-trigger"},e))}function es(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"dialog-portal"},e))}function Dd(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"dialog-close"},e))}function as(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 Bd(s){var i=s,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=d(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(es,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(as,{className:a}),jsxRuntime.jsxs(radixUi.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&&jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Nd({containerClassName:e,className:a,children:o}){return jsxRuntime.jsx("div",{className:n("mb-auto overflow-y-auto",e),children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:n("px-8 py-6 text-md leading-md text-primary-foreground",a),children:o})})}function Fd(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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&&jsxRuntime.jsx(ma,{})]})}function Ed(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(ma,{}),jsxRuntime.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 Od(s){var i=s,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=d(i,["className","iconLeft","iconRight","children"]);let u=f=>E.isValidElement(f)?E.cloneElement(f,{size:32,strokeWidth:2.2,className:"flex-shrink-0"}):f;return jsxRuntime.jsxs(radixUi.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 Hd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"dialog-description",className:n("text-md leading-md text-content-paragraph",e)},a))}function os(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa,l({className:n("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function rs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(oa.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)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function ss(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa.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 ls(a){var e=d(a,[]);return jsxRuntime.jsx(oa.Empty,l({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function ns(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa.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 ds(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa.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 is(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,l({"data-slot":"popover"},e))}function us(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,l({"data-slot":"popover-trigger"},e))}function fs(s){var i=s,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=d(i,["className","align","sideOffset","showArrow"]);return jsxRuntime.jsx(radixUi.Popover.Portal,{children:jsxRuntime.jsxs(radixUi.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&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var ha=E.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function Wd({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:s,onOpenChange:i,defaultValues:u=[]}){let[f,p]=E.useState(u),[m,b]=E.useState(false),[x,T]=E.useState([]),C=t!==void 0,M=s!==void 0,D=C?t:f,G=M?s:m,P=g=>{let I=D.includes(g)?D.filter(L=>L!==g):[...D,g];C||p(I),r==null||r(I);},k=g=>{o||(g&&T(D),M||b(g),i==null||i(g));},j=()=>{C||p(x),r==null||r(x);},H=we();return jsxRuntime.jsx(ha.Provider,{value:{invalid:a,disabled:o,open:G,setOpen:k,values:D,toggleValue:P,onCancelSelection:j,listId:H},children:jsxRuntime.jsx(is,{open:G,onOpenChange:k,children:e})})}function Xd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function Kd(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}=E.useContext(ha),b=we(),x=p.length>0;return jsxRuntime.jsx(us,{asChild:true,children:jsxRuntime.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:[jsxRuntime.jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function lo({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:s,onCancelSelection:i,values:u}=E.useContext(ha);return jsxRuntime.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:[jsxRuntime.jsx(ie,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),s(false);},children:a}),jsxRuntime.jsx(ie,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),s(false);},children:o})]})}function jd({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=E.Children.toArray(e),s=r.filter(u=>E.isValidElement(u)&&u.type===lo),i=r.filter(u=>!(E.isValidElement(u)&&u.type===lo));return jsxRuntime.jsxs(fs,{align:"start",className:n("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(os,{children:[jsxRuntime.jsx(rs,{placeholder:o}),jsxRuntime.jsxs(ss,{id:E.useContext(ha).listId,children:[jsxRuntime.jsx(ls,{children:t}),i]})]}),s]})}function Zd({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:s,toggleValue:i}=E.useContext(ha),u=s.includes(a);return jsxRuntime.jsxs(ds,{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:[jsxRuntime.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&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function Qd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(ns,l({className:e},a))}function $d(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=E.useContext(ha);return jsxRuntime.jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var ei={sm:"sm",md:"md",lg:"md",xl:"lg"},ms=classVarianceAuthority.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 io(s){var i=s,{className:e,size:a,badge:o,children:t}=i,r=d(i,["className","size","badge","children"]);return jsxRuntime.jsxs("div",{className:"relative",children:[o&&jsxRuntime.jsx(aa,{size:ei[a||"md"],className:n("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,c(l({"data-slot":"avatar",className:n(ms({size:a,className:e}))},r),{children:t}))]})}function uo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,l({"data-slot":"avatar-image",className:n("size-full object-cover",e)},a))}function fo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function Va(a){var e=d(a,[]);return jsxRuntime.jsx("nav",l({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Ua(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 pt(r){var s=r,{className:e,icon:a,children:o}=s,t=d(s,["className","icon","children"]);return jsxRuntime.jsx("li",c(l({className:n("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function si(t){var r=t,{asChild:e,className:a}=r,o=d(r,["asChild","className"]);let s=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(s,l({className:n("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function co(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 po(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("li",c(l({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsxRuntime.jsx(icons.ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function li(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}function _a(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 jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxRuntime.jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsxRuntime.jsx("span",{children:o})]}),jsxRuntime.jsx(radixUi.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:jsxRuntime.jsx(radixUi.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)}%)`}})}))]})}function xo(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,M=C*2*Math.PI,D=M-T/100*M,G=Math.max(18,Math.min(u/5)),P=Math.max(10,Math.min(u/9,16));return jsxRuntime.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:[jsxRuntime.jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsxRuntime.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)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:C,stroke:"currentColor",strokeWidth:f,fill:"none",strokeDasharray:M,strokeDashoffset:D,strokeLinecap:"round",className:n("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxRuntime.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:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:n("mr-px font-semibold",t),style:{fontSize:`${G}px`},children:i}),!x&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:n("text-center font-medium leading-tight text-gray-foreground-muted",s),style:{fontSize:`${P}px`},children:r})]})]}))}var hs=classVarianceAuthority.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",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)]"}},defaultVariants:{variant:"regular"}});function ii(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"tag-icon",className:n("[&>svg]:size-3.5",e)},o),{children:a}))}function qe(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?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(f,c(l({"data-slot":"tag",className:n(hs({variant:a}),e)},s),{children:[t&&jsxRuntime.jsx(ii,{icon:t}),jsxRuntime.jsx("span",{"data-slot":"tag-text",children:r})]}))}var Ga=E.createContext(null);function mi(s){var i=s,{className:e,done:a,postponed:o,skipped:t}=i,r=d(i,["className","done","postponed","skipped"]);let u=E.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(Ga.Provider,{value:u,children:jsxRuntime.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 gi(s){var i=s,{className:e,children:a,tag:o,tagIcon:t}=i,r=d(i,["className","children","tag","tagIcon"]);return jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-breadcrumb",className:n("flex min-h-12 items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(Va,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(Ua,{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&&jsxRuntime.jsx(qe,{variant:"regular-soft",icon:t,children:o})]}))}function xi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 hi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-header",className:n("flex justify-between [&.border-b]:pb-6",e)},a))}function bi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=E.useContext(Ga),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.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=E.useContext(Ga),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.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 vi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Ci(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-progress-circle",className:n("flex flex-1 justify-end",e)},a),{children:jsxRuntime.jsx(xo,l({size:104},a))}))}function Ii(r){var s=r,{className:e,value:a,indicatorClassName:o}=s,t=d(s,["className","value","indicatorClassName"]);let i=E.useContext(Ga),u=i==null?void 0:i.done;return jsxRuntime.jsx("div",{"data-slot":"card-week-progress",className:n("flex flex-1",e),children:jsxRuntime.jsx(_a,c(l({},t),{value:u?100:a,indicatorClassName:n(u&&"bg-secondary-stroke-emphasis",o)}))})}function ki(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-footer",className:n("mt-auto flex flex-col gap-2",e)},a))}function yi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-content",className:n("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Si(r){var s=r,{className:e,children:a,isTime:o}=s,t=d(s,["className","children","isTime"]);return jsxRuntime.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&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function Pi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=E.useContext(Ga),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?jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-status",className:n("ml-auto flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-feedback-warning-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-feedback-warning-foreground",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-status",className:n("ml-auto flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-secondary-foreground",children:"Feito"})]}))}function wi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-actions",className:n("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var vs=classVarianceAuthority.cva("flex flex-col gap-4 overflow-hidden rounded-lg border border-gray-stroke-muted p-6",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),bt=classVarianceAuthority.cva("text-xs font-medium leading-xs text-gray-foreground-muted"),Cs=E.createContext(null);function Lt(){var e;return (e=E.useContext(Cs))!=null?e:{}}function Bi(r){var s=r,{className:e,variant:a,availableDate:o}=s,t=d(s,["className","variant","availableDate"]);let i=E.useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsxRuntime.jsx(Cs.Provider,{value:i,children:jsxRuntime.jsx("div",l({"data-slot":"card-module",className:n(vs({variant:a}),e)},t))})}function Ni(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-module-header",className:n("flex flex-col",e)},a))}function Fi(r){var s=r,{className:e,children:a,count:o}=s,t=d(s,["className","children","count"]);let{variant:i}=Lt();return jsxRuntime.jsxs("div",c(l({"data-slot":"card-module-label",className:n("flex items-center justify-between gap-2 text-xs font-medium leading-xs",i==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},t),{children:[jsxRuntime.jsx("span",{children:a}),o&&jsxRuntime.jsx("span",{className:"text-sm leading-sm text-gray-foreground-muted",children:o})]}))}function Ei(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=Lt();return jsxRuntime.jsx("div",l({"data-slot":"card-module-title",className:n("line-clamp-2 min-h-14 max-w-[70%] text-lg font-semibold",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function Oi(t){var r=t,{className:e,progress:a}=r,o=d(r,["className","progress"]);let{variant:s}=Lt(),i=Number.isFinite(a)?Math.min(100,Math.max(0,a)):0,u=s==="blocked"?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:bt(),children:"N\xE3o iniciado"}):i>=100?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:bt(),children:"Conclu\xEDdo"}):jsxRuntime.jsxs("div",{"data-slot":"card-module-status",className:bt(),children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[i,"%"]})," ","de progresso"]});return jsxRuntime.jsxs("div",c(l({"data-slot":"card-module-progress",className:n("flex flex-col gap-2",e)},o),{children:[u,s!=="blocked"&&jsxRuntime.jsx(_a,{value:i,indicatorClassName:i===100?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function Hi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,availableDate:i}=Lt();return s!=="blocked"||!i?null:jsxRuntime.jsxs("div",c(l({"data-slot":"card-module-footer",className:n("flex flex-col gap-3",e)},o),{children:[jsxRuntime.jsx("div",{className:"border-t border-gray-stroke-muted"}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold leading-xs text-gray-foreground",children:[jsxRuntime.jsx(icons.Lock,{size:14}),jsxRuntime.jsxs("span",{children:["Dispon\xEDvel em ",i]})]}),a]})]}))}function zi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(ie,l({"data-slot":"card-module-button",size:"sm",iconLeft:jsxRuntime.jsx(icons.ArrowRightMd,{}),className:n(e)},a))}function qi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-module-action",className:n("flex items-center justify-end",e)},o),{children:a}))}function Gi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue",className:n("flex gap-3 bg-transparent",e)},a))}function Wi(s){var i=s,{className:e,src:a,alt:o="",children:t}=i,r=d(i,["className","src","alt","children"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-continue-image",className:n("relative h-[122px] w-[200px] shrink-0 overflow-hidden rounded-md bg-gray-background-soft",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t}))}function Xi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue-content",className:n("flex min-w-0 flex-1 flex-col justify-between gap-2",e)},a))}function Ki(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue-header",className:n("flex min-w-0 flex-col gap-1",e)},a))}function ji({items:e,className:a}){return jsxRuntime.jsx(Va,{"data-slot":"card-continue-breadcrumb",className:"overflow-hidden",children:jsxRuntime.jsx(Ua,{className:n("flex-nowrap gap-1 text-xs font-medium leading-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",a),children:e.map((o,t)=>jsxRuntime.jsx(E.Fragment,{children:t<e.length-1?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(pt,{className:"text-content-paragraph",children:o}),jsxRuntime.jsx(po,{children:jsxRuntime.jsx(icons.ChevronRight,{size:12,className:"text-gray-foreground"})})]}):jsxRuntime.jsx(pt,{children:jsxRuntime.jsx(co,{className:"font-medium text-content-paragraph",children:o})})},`${o}-${t}`))})})}function Zi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue-title",className:n("line-clamp-2 text-lg font-semibold leading-lg text-primary-foreground",e)},a))}function Qi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx(ie,c(l({"data-slot":"card-continue-button",variant:"emphasis-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightSm,{}),className:n("self-start",e)},o),{children:a}))}var Is=classVarianceAuthority.cva("relative z-0 flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),ks=E.createContext(null);function Wa(){var e;return (e=E.useContext(ks))!=null?e:{}}function su(s){var i=s,{className:e,variant:a,availableDate:o,children:t}=i,r=d(i,["className","variant","availableDate","children"]);let u=E.useMemo(()=>({variant:a,availableDate:o}),[a,o]),f=jsxRuntime.jsx("div",c(l({"data-slot":"card-lesson",className:n(Is({variant:a}),e)},r),{children:t}));return jsxRuntime.jsx(ks.Provider,{value:u,children:a==="blocked"?f:jsxRuntime.jsxs("div",{"data-slot":"card-lesson-stack",className:"relative pt-[17px]",children:[jsxRuntime.jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-[34px] bottom-0 top-0 z-0 rounded-2xl border border-gray-stroke-muted bg-surface-card"}),jsxRuntime.jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-4 bottom-0 top-2 z-0 rounded-2xl border border-gray-stroke-muted bg-surface-card"}),f]})})}function lu(s){var i=s,{className:e,src:a,alt:o="",children:t}=i,r=d(i,["className","src","alt","children"]);let{variant:u}=Wa(),f=n("h-[153px] w-full rounded-md",u==="blocked"&&"opacity-20");return jsxRuntime.jsx("div",c(l({"data-slot":"card-lesson-image",className:n("px-3 pt-3",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:n(f,"object-cover")}):jsxRuntime.jsx("div",{className:n(f,"bg-gray-background-soft"),children:t})}))}function nu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-content",className:n("flex flex-col gap-4 px-6 pb-6 pt-4",e)},a))}function du(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-header",className:n("flex flex-col",e)},a))}function iu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=Wa();return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-label",className:n("text-xs font-medium leading-xs",r==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},a))}function uu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=Wa();return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-title",className:n("leading-lg line-clamp-2 text-lg font-semibold",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function fu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,availableDate:i}=Wa();return jsxRuntime.jsxs("div",c(l({"data-slot":"card-lesson-footer",className:n("flex items-center justify-between",e)},o),{children:[s==="blocked"&&i?jsxRuntime.jsxs(qe,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{}),children:["Dispon\xEDvel em ",i]}):null,a]}))}function cu(t){var r=t,{className:e,status:a}=r,o=d(r,["className","status"]);let s=a==="completed";return jsxRuntime.jsx(qe,c(l({"data-slot":"card-lesson-status",variant:s?"success-soft":"warning-soft",icon:s?jsxRuntime.jsx(icons.Check,{}):void 0,className:e},o),{children:s?"Conclu\xEDdo":"Iniciado"}))}function pu(r){var s=r,{className:e,children:a,containerClassName:o}=s,t=d(s,["className","children","containerClassName"]);let{variant:i}=Wa();return jsxRuntime.jsx(ie,c(l({"data-slot":"card-lesson-button",variant:"regular",size:"sm",disabled:i==="blocked",containerClassName:n("ml-auto",o),className:n("rounded-full disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted",e)},t),{children:a}))}var Ss=classVarianceAuthority.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 hu(s){var i=s,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=d(i,["className","size","variant","uncheckIcon"]);return jsxRuntime.jsx(radixUi.Checkbox.Root,c(l({"data-slot":"checkbox",className:n("group peer",Ss({size:a,variant:o}),e)},r),{children:jsxRuntime.jsx(radixUi.Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsxRuntime.jsx(icons.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}):jsxRuntime.jsx(icons.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 Ps=E.createContext({animation:void 0});function vu(o){var t=o,{animation:e}=t,a=d(t,["animation"]);return jsxRuntime.jsx(Ps.Provider,{value:{animation:e},children:jsxRuntime.jsx(radixUi.Collapsible.Root,l({"data-slot":"collapsible"},a))})}function Cu(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,l({"data-slot":"collapsible-trigger"},e))}function Iu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{animation:r}=E.useContext(Ps),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 jsxRuntime.jsx(radixUi.Collapsible.Content,l({"data-slot":"collapsible-content",className:n(r&&s[r],e)},a))}var vo=768;function Xa(){let[e,a]=E.useState(void 0);return E.useEffect(()=>{let o=window.matchMedia(`(max-width: ${vo-1}px)`),t=()=>{a(window.innerWidth<vo);};return o.addEventListener("change",t),a(window.innerWidth<vo),()=>o.removeEventListener("change",t)},[]),!!e}function Co(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,l({"data-slot":"dropdown-menu"},e))}function Pu(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,l({"data-slot":"dropdown-menu-portal"},e))}function Io(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,l({className:n("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function ko(r){var s=r,{className:e,sideOffset:a=4,side:o}=s,t=d(s,["className","sideOffset","side"]);let i=Xa();return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,{children:jsxRuntime.jsx(radixUi.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 wu(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,l({"data-slot":"dropdown-menu-group"},e))}function It(r){var s=r,{className:e,inset:a,variant:o="default"}=s,t=d(s,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.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 Tu(r){var s=r,{className:e,children:a,checked:o}=s,t=d(s,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function kt(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,l({"data-slot":"dropdown-menu-radio-group"},e))}function yo(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function So(t){var r=t,{className:e,inset:a}=r,o=d(r,["className","inset"]);return jsxRuntime.jsx(radixUi.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 Po(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,l({"data-slot":"dropdown-menu-separator",className:n("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function Au(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"dropdown-menu-shortcut",className:n("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function Ru(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,l({"data-slot":"dropdown-menu-sub"},e))}function Mu(r){var s=r,{className:e,inset:a,children:o}=s,t=d(s,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.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,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function Du(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 Ao=E.createContext({invalid:false}),Ns={start:1950,end:new Date().getFullYear()};function St(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 Ro=classVarianceAuthority.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 Eu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function Ou(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.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 Hu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=E.useContext(Ao);return jsxRuntime.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 La(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Ka(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function Pt(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function wt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function To(e,a){return La(e).getTime()<La(a).getTime()}function Fs(e,a){return La(e).getTime()>La(a).getTime()}function ja(e,a,o){return !!(a&&To(e,a)||o&&Fs(e,o))}function Es(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}var Os=20,Hs=18;function zu(G){var P=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:s,max:i,format:u=Es,className:f,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=Ns,showYearSelector:T=true,invalid:C=false,children:M}=P,D=d(P,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,H]=E.useState(a),g=k?e:j,[I,L]=E.useState(false),[X,W]=E.useState(()=>wt(St(g!=null?g:new Date,x))),Q=E.useRef(null),xe=E.useRef(null),ke=E.useRef(null),pe=E.useId(),[J,re]=E.useState(null),se=E.useCallback(B=>{k||H(B),o==null||o(B);},[k,o]);E.useEffect(()=>{I&&W(wt(St(g!=null?g:new Date,x)));},[I,g,x]),E.useEffect(()=>{I||re(null);},[I]),E.useEffect(()=>{if(!I)return;let B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=B;}},[I]),E.useEffect(()=>{if(!J)return;let B=()=>L(false);return window.addEventListener("scroll",B,{passive:true,capture:true}),()=>window.removeEventListener("scroll",B,{capture:true})},[J]),E.useEffect(()=>{if(!I)return;let B=U=>{let K=Q.current,ue=ke.current;K&&U.target instanceof Node&&!K.contains(U.target)&&!(ue!=null&&ue.contains(U.target))&&L(false);},v=U=>{U.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 Me=290,De=()=>{var B,v,U;if(I)L(false);else {let K=(U=(B=xe.current)==null?void 0:B.getBoundingClientRect())!=null?U:(v=Q.current)==null?void 0:v.getBoundingClientRect();if(K){let Ae=window.innerHeight-K.bottom<Me,Je=window.innerWidth,wa=window.matchMedia("(max-width: 639px)").matches?Math.min(512,Je-16):Math.min(320,Je),Ta=8,Aa=Ta,Ra=Je-wa-Ta,_e=K.left;_e<Aa?_e=Aa:_e>Ra&&(_e=Ra),re(c(l({position:"fixed"},Ae?{bottom:window.innerHeight-K.top+8}:{top:K.bottom+8}),{left:_e,width:wa,maxWidth:360}));}L(true);}},R=La(new Date),ne=X.getFullYear(),fe=X.getMonth(),h=new Date(ne,fe,1),O=new Date(ne,fe+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),V=B=>{W(new Date(ne,B,1));},le=B=>{W(new Date(B,fe,1));};return jsxRuntime.jsxs(Ao.Provider,{value:{invalid:C},children:[jsxRuntime.jsxs("div",{ref:Q,className:n("relative inline-flex w-full",f),children:[jsxRuntime.jsxs("button",c(l(c(l({ref:xe,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?pe: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(Ro({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:De}),D),{children:[jsxRuntime.jsx("span",{className:"truncate",children:y||t}),jsxRuntime.jsx(icons.Calendar,{size:b==="md"?Hs:Os,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:ke,id:pe,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:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.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=>Pt(B,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:fe,onChange:B=>V(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=>jsxRuntime.jsx("option",{value:B.value,className:"capitalize",children:B.label},B.value))}),jsxRuntime.jsx(icons.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?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.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=>jsxRuntime.jsx("option",{value:B,children:B},B))}),jsxRuntime.jsx(icons.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})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsxRuntime.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=>Pt(B,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((B,v)=>jsxRuntime.jsx("div",{},`empty-${v}`)),Array.from({length:O}).map((B,v)=>{let U=new Date(ne,fe,v+1),K=g?Ka(U,g):false,ue=Ka(U,R),Ae=r||ja(U,s,i);return jsxRuntime.jsx("button",{type:"button",disabled:Ae,onClick:()=>{se(U),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",ue&&"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},U.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.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||ja(R,s,i),children:"Hoje"}),jsxRuntime.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)]}),M]})}function qu(G){var P=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:s,max:i,format:u=Es,className:f,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=Ns,showYearSelector:T=true,invalid:C=false,children:M}=P,D=d(P,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,H]=E.useState(a),g=k?e:j,[I,L]=E.useState(false),[X,W]=E.useState(()=>{var v,U;return wt(St((U=(v=g==null?void 0:g.start)!=null?v:g==null?void 0:g.end)!=null?U:new Date,x))}),Q=E.useRef(null),xe=E.useRef(null),ke=E.useRef(null),pe=E.useId(),[J,re]=E.useState(null),se=E.useCallback(v=>{k||H(v),o==null||o(v);},[k,o]);E.useEffect(()=>{var v,U;I&&W(wt(St((U=(v=g==null?void 0:g.start)!=null?v:g==null?void 0:g.end)!=null?U:new Date,x)));},[I,g,x]),E.useEffect(()=>{I||re(null);},[I]),E.useEffect(()=>{if(!I)return;let v=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=v;}},[I]),E.useEffect(()=>{if(!J)return;let v=()=>L(false);return window.addEventListener("scroll",v,{passive:true,capture:true}),()=>window.removeEventListener("scroll",v,{capture:true})},[J]),E.useEffect(()=>{if(!I)return;let v=K=>{let ue=Q.current,Ae=ke.current;ue&&K.target instanceof Node&&!ue.contains(K.target)&&!(Ae!=null&&Ae.contains(K.target))&&L(false);},U=K=>{K.key==="Escape"&&L(false);};return window.addEventListener("pointerdown",v,{capture:true}),window.addEventListener("keydown",U),()=>{window.removeEventListener("pointerdown",v,{capture:true}),window.removeEventListener("keydown",U);}},[I]);let Me=330,De=()=>{var v,U,K;if(I)L(false);else {let ue=(K=(v=xe.current)==null?void 0:v.getBoundingClientRect())!=null?K:(U=Q.current)==null?void 0:U.getBoundingClientRect();if(ue){let Je=window.innerHeight-ue.bottom<Me,fa=window.innerWidth,Ta=window.matchMedia("(max-width: 639px)").matches?Math.min(512,fa-16):Math.min(320,fa),Aa=8,Ra=Aa,_e=fa-Ta-Aa,Ma=ue.left;Ma<Ra?Ma=Ra:Ma>_e&&(Ma=_e),re(c(l({position:"fixed"},Je?{bottom:window.innerHeight-ue.top+8}:{top:ue.bottom+8}),{left:Ma,width:Ta,maxWidth:360}));}L(true);}},R=La(new Date),ne=X.getFullYear(),fe=X.getMonth(),h=new Date(ne,fe,1),O=new Date(ne,fe+1,0).getDate(),S=h.getDay(),y=Array.from({length:12},(v,U)=>({value:U,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,U,1))})),q=Array.from({length:x.end-x.start+1},(v,U)=>x.start+U),Y=v=>{W(new Date(ne,v,1));},V=v=>{W(new Date(v,fe,1));},le=v=>{r||ja(v,s,i)||(!g||!g.start||g.end?se({start:v,end:null}):(To(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 jsxRuntime.jsxs(Ao.Provider,{value:{invalid:C},children:[jsxRuntime.jsxs("div",{ref:Q,className:n("relative inline-flex w-full",f),children:[jsxRuntime.jsxs("button",c(l(c(l({ref:xe,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?pe: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(Ro({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:De}),D),{children:[jsxRuntime.jsx("span",{className:"truncate",children:B||t}),jsxRuntime.jsx(icons.Calendar,{size:b==="md"?Hs:Os,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:ke,id:pe,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:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.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=>Pt(v,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:fe,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=>jsxRuntime.jsx("option",{value:v.value,className:"capitalize",children:v.label},v.value))}),jsxRuntime.jsx(icons.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?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ne,onChange:v=>V(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=>jsxRuntime.jsx("option",{value:v,children:v},v))}),jsxRuntime.jsx(icons.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})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsxRuntime.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=>Pt(v,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((v,U)=>jsxRuntime.jsx("div",{},`empty-${U}`)),Array.from({length:O}).map((v,U)=>{let K=new Date(ne,fe,U+1),ue=(g==null?void 0:g.start)&&Ka(K,g.start),Ae=(g==null?void 0:g.end)&&Ka(K,g.end),Je=(g==null?void 0:g.start)&&(g==null?void 0:g.end)&&Fs(K,g.start)&&To(K,g.end),fa=Ka(K,R),wa=r||ja(K,s,i);return jsxRuntime.jsx("button",{type:"button",disabled:wa,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",fa&&"ring-1 ring-gray-stroke-emphasis",Je&&"bg-primary-background-soft",(ue||Ae)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":ue||Ae||void 0,children:U+1},K.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.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||ja(R,s,i),children:"Hoje"}),jsxRuntime.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)]}),M]})}var Zu=24,Qu=20,$u=1.6,qs=10,Vs=8;function Ju(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function Yu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("relative",e),"data-slot":"input-field"},a))}function ef(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.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]: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 af(t){var r=t,{className:e,invalid:a=false}=r,o=d(r,["className","invalid"]);return jsxRuntime.jsx("span",l({className:n("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function Mo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function Mt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Do(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 At=classVarianceAuthority.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):not(:disabled)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown):not(:disabled)]:border-gray-stroke-emphasis [&:not(:placeholder-shown):not(:disabled)]:ring-[3px] [&:not(:placeholder-shown):not(:disabled)]: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"}}),tf={email:jsxRuntime.jsx(icons.Mail,{})},of={};function va(e,a="lg"){return E.cloneElement(e,{size:a==="md"?Qu:Zu,strokeWidth:$u})}function _s(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]=E.useState(false);return jsxRuntime.jsxs(Mo,{children:[jsxRuntime.jsx(Mt,{children:va(jsxRuntime.jsx(icons.Lock,{}),o)}),jsxRuntime.jsx("input",l({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:n(At({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsxRuntime.jsx(Do,{children:jsxRuntime.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:va(u?jsxRuntime.jsx(icons.Hide,{}):jsxRuntime.jsx(icons.Show,{}),o)})})]})}function Gs(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]=E.useState(()=>i!=null?i:""),M=E.useRef(null),D=x?s===""?"":String(s):T,G=D===""?NaN:Number(D),P=r!==void 0&&Number(r)<0,k=E.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=E.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=E.useCallback(L=>{let W=(Number.isNaN(G)?H!=null?H:0:G)+L;return H!==void 0&&W<H?H:W},[G,H]),I=E.useCallback(L=>{let X=g(L),W=String(X),Q=M.current,ke={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(ke);},[g,x,u]);return jsxRuntime.jsxs(Mo,{children:[t!=null&&jsxRuntime.jsx(Mt,{children:va(t,o)}),jsxRuntime.jsx("input",l({ref:M,type:"text",inputMode:"decimal",pattern:P?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":D===""?"":void 0,min:r,value:D,onChange:j,disabled:f,className:n(At({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)),jsxRuntime.jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsxRuntime.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:jsxRuntime.jsx(icons.ChevronDown,{className:"rotate-180",size:o==="md"?Vs:qs,strokeWidth:3})}),jsxRuntime.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:jsxRuntime.jsx(icons.ChevronDown,{size:o==="md"?Vs:qs,strokeWidth:3})})]})]})}function Bo(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 jsxRuntime.jsx(Gs,l({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsxRuntime.jsx(_s,l({className:e,size:o,invalid:t},i));let p=r!=null?r:tf[a],m=(a==="text"||a==="email")&&t,b=m?jsxRuntime.jsx(icons.TriangleWarning,{}):s!=null?s:of[a];return p!=null||b!=null?jsxRuntime.jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsxRuntime.jsx(Mt,{children:va(p,o)}),jsxRuntime.jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(At({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),b!=null&&jsxRuntime.jsx(Do,{className:m?"text-feedback-error-foreground":void 0,children:va(b,o)})]}):jsxRuntime.jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(At({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var Ws=classVarianceAuthority.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 lf(s){var i=s,{className:e,variant:a,size:o,block:t}=i,r=d(i,["className","variant","size","block"]);return jsxRuntime.jsx(radixUi.Label.Root,l({"data-slot":"label",className:n(e,Ws({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 df({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.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:[jsxRuntime.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"}),jsxRuntime.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 uf({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.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:jsxRuntime.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 Ca={tablet:"600px",mobile:"320px"};function Ks(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("nav",l({role:"navigation","aria-label":"pagination",className:n("flex w-full items-center justify-between",e)},a))}function js(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("ul",l({className:n("flex flex-row items-center gap-2",e)},a))}function No(r){var s=r,{count:e,label:a="itens",className:o}=s,t=d(s,["count","label","className"]);return jsxRuntime.jsx("p",c(l({className:n("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Mostrando"," ",jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function Bt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("li",l({className:n("",e)},a))}function Zs(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 jsxRuntime.jsx(ie,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 Qs(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsxRuntime.jsx(ie,c(l({"aria-label":"Go to previous page",className:n("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function $s(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsxRuntime.jsx(ie,c(l({"aria-label":"Go to next page",className:n("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function Js(t){var r=t,{className:e,size:a="md"}=r,o=d(r,["className","size"]);return jsxRuntime.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:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function Ys(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 hf({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:s,className:i,responsive:u=true,size:f="md"}){let[p,m]=E.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(Ca.tablet));E.useEffect(()=>{if(typeof window=="undefined"||!u)return;let C=parseInt(Ca.tablet),M=()=>{m(window.innerWidth<=C);};return window.addEventListener("resize",M),M(),()=>window.removeEventListener("resize",M)},[u]);let b=typeof o=="number"?o:u&&p?0:2,x=u&&p,T=()=>Ys(e,a,b);return jsxRuntime.jsxs(Ks,{className:n("",i),children:[r!==void 0&&!x?jsxRuntime.jsx(No,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(js,{children:[jsxRuntime.jsx(Bt,{children:jsxRuntime.jsx(Qs,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:f})}),T().map((C,M)=>jsxRuntime.jsx(Bt,{children:C===-1?jsxRuntime.jsx(Js,{size:f}):jsxRuntime.jsx(Zs,{onClick:()=>t(C),isActive:C===e,size:f,children:C})},M)),jsxRuntime.jsx(Bt,{children:jsxRuntime.jsx($s,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:f})})]}),s!==void 0&&!x?jsxRuntime.jsx(No,{count:s,label:"total"}):jsxRuntime.jsx("div",{})]})}var vf={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"},el=classVarianceAuthority.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 Cf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,l({"data-slot":"radio-group",className:n("grid gap-3",e)},a))}function If(r){var s=r,{className:e,size:a,variant:o}=s,t=d(s,["className","size","variant"]);return jsxRuntime.jsx(radixUi.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",el({size:a,variant:o}),e)},t),{children:jsxRuntime.jsx(radixUi.RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsxRuntime.jsx(icons.Circle,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",vf[a||"md"])})})}))}function sa(o){var t=o,{delayDuration:e=0}=t,a=d(t,["delayDuration"]);return jsxRuntime.jsx(radixUi.Tooltip.Provider,l({"data-slot":"tooltip-provider",delayDuration:e},a))}function la(a){var e=d(a,[]);return jsxRuntime.jsx(sa,{children:jsxRuntime.jsx(radixUi.Tooltip.Root,l({"data-slot":"tooltip"},e))})}function na(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,l({"data-slot":"tooltip-trigger"},e))}function da(r){var s=r,{className:e,sideOffset:a=0,children:o}=s,t=d(s,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.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,jsxRuntime.jsx(radixUi.Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function Rf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsxRuntime.jsx("table",c(l({className:n("w-full border-collapse text-left",a)},o),{children:e}))})}function Mf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("thead",c(l({className:n("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function Df(s){var i=s,{children:e,className:a,tooltip:o,highlight:t}=i,r=d(i,["children","className","tooltip","highlight"]);return jsxRuntime.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:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:n(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(sa,{children:jsxRuntime.jsxs(la,{children:[jsxRuntime.jsx(na,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(da,{children:o})]})})]})}))}function Bf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("tbody",c(l({className:n("bg-surface-card",a)},o),{children:e}))}function Nf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.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 Ff(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("td",{className:"py-4 pl-5 align-middle",children:jsxRuntime.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 Ef(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:n("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function Of(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("div",c(l({className:n("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function Hf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.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 zf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.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 qf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx(qe,c(l({className:n("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsxRuntime.jsx(icons.CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function Vf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:n("flex flex-col items-start gap-2",a),children:e})}))}function Uf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.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 _f(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("div",c(l({className:n("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Gf(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=jsxRuntime.jsxs(io,c(l({size:"sm",className:n("ring-2 ring-background",t)},s),{children:[jsxRuntime.jsx(uo,{src:e,alt:a}),jsxRuntime.jsx(fo,{children:o})]}));return r?jsxRuntime.jsx(sa,{children:jsxRuntime.jsxs(la,{children:[jsxRuntime.jsx(na,{asChild:true,children:f}),jsxRuntime.jsx(da,{children:r})]})}):f}function Wf(r){var s=r,{children:e,className:a,icon:o}=s,t=d(s,["children","className","icon"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(qe,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Xf({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 jsxRuntime.jsx("div",{className:n("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:n("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Kf(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?jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsxRuntime.jsx(icons.RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsxRuntime.jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsxs("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxRuntime.jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsxRuntime.jsx(Xf,{percentage:i})]})}))}var jf={notStarted:{icon:icons.RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:icons.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:icons.Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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:icons.CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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 Zf(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Qf(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=Zf(f,p,u),{icon:x,bgColor:T,iconColor:C,titleClassName:M,title:D,subtitle:G}=jf[b],P={progress:u,correct:a,answered:e,remainingQuestions:m};return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:n("flex size-4 items-center justify-center rounded-full",T),children:jsxRuntime.jsx(x,{className:n("size-3",C),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:n("whitespace-nowrap",M),children:D(P)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:G(P)})]})]})})}))}function $f(r){var s=r,{children:e,className:a,onClick:o}=s,t=d(s,["children","className","onClick"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(ie,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var rl=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Yf=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),sl=classVarianceAuthority.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}}),ll=classVarianceAuthority.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 ec({state:e,className:a}){let o=we(),t=E.useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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"?jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntime.jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsxRuntime.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"})]}):jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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 ac(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function tc({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:s="md",className:i,classNameContainer:u,classNameLabels:f}){let[p,m]=E.useState(e!=null?e:0),[b,x]=E.useState(null),T=e!==void 0,C=T?e:p,M=P=>{if(t)return;let k=P+1;T||m(k),a==null||a(k);},D=P=>{t||x(P);},G=()=>{t||x(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:n("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:n("inline-flex flex-row gap-1",u),onMouseLeave:G,children:Array.from({length:o},(P,k)=>{let j=b!==null,H=j&&k<=b,g=b===k,I=j?H?"full":"empty":ac(k,C);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>M(k),onMouseEnter:()=>D(k),className:sl({size:s,readOnly:t}),"aria-label":`Rate ${k+1} out of ${o}`,children:jsxRuntime.jsx(ec,{state:I,className:g&&!t?Yf({size:s}):rl({size:s})})},k)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:n(ll({size:s}),f),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Eo(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsxs(radixUi.ScrollArea.Root,c(l({"data-slot":"scroll-area",className:n("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(Qa,{}),jsxRuntime.jsx(Qa,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function Qa(t){var r=t,{className:e,orientation:a="vertical"}=r,o=d(r,["className","orientation"]);return jsxRuntime.jsx(radixUi.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:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Ht=E.createContext({invalid:false,size:"lg"});function ic(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=d(r,["invalid","size"]);return jsxRuntime.jsx(Ht.Provider,{value:{invalid:e,size:a},children:jsxRuntime.jsx(radixUi.Select.Root,l({"data-slot":"select"},o))})}function uc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function fc(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.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 cc(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,l({"data-slot":"select-group"},e))}function pc(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,l({"data-slot":"select-value"},e))}var mc=classVarianceAuthority.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"}}),gc=classVarianceAuthority.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 xc(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{invalid:s,size:i}=E.useContext(Ht);return jsxRuntime.jsxs(radixUi.Select.Trigger,c(l({className:n(mc({size:i}),!s&&"[&:not([data-placeholder]):not(:disabled)]: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,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:n("flex-shrink-0 text-gray-foreground"),strokeWidth:1.6})})]}))}function hc(r){var s=r,{className:e,children:a,position:o="popper"}=s,t=d(s,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:n("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(ul,{})]}))})}function bc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,l({className:n("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function Lc(r){var s=r,{className:e,children:a,icon:o}=s,t=d(s,["className","children","icon"]);let{size:i}=E.useContext(Ht);return jsxRuntime.jsxs(radixUi.Select.Item,c(l({className:n(gc({size:i}),e),"data-slot":"select-item"},t),{children:[o&&jsxRuntime.jsx("span",{className:"flex shrink-0 items-center justify-center text-gray-foreground",children:E.isValidElement(o)?E.cloneElement(o,{strokeWidth:1.6}):o}),jsxRuntime.jsx(radixUi.Select.ItemText,{children:a}),jsxRuntime.jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.Select.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{strokeWidth:1.6,className:"text-secondary-foreground"})})})]}))}function vc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,l({className:n("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function il(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,c(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsxRuntime.jsx(icons.ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function ul(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,c(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsxRuntime.jsx(icons.ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Cc(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=E.useContext(Ht);return jsxRuntime.jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var fl=E.createContext(null);function Sc(r){var s=r,{className:e,size:a="md",children:o}=s,t=d(s,["className","size","children"]);return jsxRuntime.jsx(fl.Provider,{value:{size:a},children:jsxRuntime.jsx(radixUi.Tabs.Root,c(l({"data-slot":"tabs",className:n("flex flex-col gap-2",e)},t),{children:o}))})}function Pc(t){var r=t,{className:e,containerClassName:a}=r,o=d(r,["className","containerClassName"]);return jsxRuntime.jsxs(Eo,{className:n("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.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)),jsxRuntime.jsx(Qa,{orientation:"horizontal"})]})}var cl=classVarianceAuthority.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 wc(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=E.useContext(fl),m=(b=p==null?void 0:p.size)!=null?b:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,c(l({"data-slot":"tabs-trigger",className:n(cl({size:m,className:e}))},s),{children:[a,r&&jsxRuntime.jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsxRuntime.jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),f(o)&&jsxRuntime.jsx(aa,{size:m,variant:t,children:String(o)})]}))}function Tc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content",className:n("flex-1 outline-none",e)},a))}var pl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ac=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),qo=e=>{let a=Ac(e);return a.charAt(0).toUpperCase()+a.slice(1)},qt=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),ml=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var gl={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 hl=E.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 E.createElement("svg",l(l(c(l({ref:f},gl),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:qt("lucide",r)}),!s&&!ml(u)&&{"aria-hidden":"true"}),u),[...i.map(([b,x])=>E.createElement(b,x)),...Array.isArray(s)?s:[s]])});var bl=(e,a)=>{let o=E.forwardRef((i,s)=>{var u=i,{className:t}=u,r=d(u,["className"]);return E.createElement(hl,l({ref:s,iconNode:a,className:qt(`lucide-${pl(qo(e))}`,`lucide-${e}`,t)},r))});return o.displayName=qo(e),o};var Bc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$a=bl("x",Bc);function Uo(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"sheet"},e))}function Nc(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"sheet-trigger"},e))}function Fc(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"sheet-close"},e))}function Ec(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"sheet-portal"},e))}function Oc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 _o(r){var s=r,{className:e,children:a,side:o="right"}=s,t=d(s,["className","children","side"]);return jsxRuntime.jsxs(Ec,{children:[jsxRuntime.jsx(Oc,{}),jsxRuntime.jsxs(radixUi.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,jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx($a,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Hc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-header",className:n("flex flex-col gap-1.5 p-4",e)},a))}function zc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-footer",className:n("mt-auto flex flex-col gap-2 p-4",e)},a))}function qc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,l({"data-slot":"sheet-title",className:n("font-semibold text-foreground",e)},a))}function Vc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"sheet-description",className:n("text-muted-foreground text-sm",e)},a))}function Vt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"skeleton",className:n("animate-pulse rounded-md bg-gray-150",e)},a))}var $c="sidebar_state",Jc=3600*24*7,Yc="b",Il=E.createContext(null);function Sa(){let e=E.useContext(Il);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ep(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=Xa(),[p,m]=E.useState(false),[b,x]=E.useState(e),T=a!=null?a:b,C=E.useCallback(P=>{let k=typeof P=="function"?P(T):P;o?o(k):x(k),document.cookie=`${$c}=${k}; path=/; max-age=${Jc}`;},[o,T]),M=E.useCallback(()=>f?m(P=>!P):C(P=>!P),[f,C,m]);E.useEffect(()=>{let P=k=>{k.key===Yc&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),M());};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[M]);let D=T?"expanded":"collapsed",G=E.useMemo(()=>({state:D,open:T,setOpen:C,isMobile:f,openMobile:p,setOpenMobile:m,toggleSidebar:M}),[D,T,C,f,p,m,M]);return jsxRuntime.jsx(Il.Provider,{value:G,children:jsxRuntime.jsx(sa,{delayDuration:0,children:jsxRuntime.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 ap(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}=Sa();return o==="none"?jsxRuntime.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?jsxRuntime.jsx(Uo,c(l({open:b,onOpenChange:x},i),{children:jsxRuntime.jsx(_o,{"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:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:s})})})):jsxRuntime.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:[jsxRuntime.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)]")}),jsxRuntime.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:jsxRuntime.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 tp(f){var p=f,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.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}=Sa(),[T,C]=E.useState(false),D=s||{open:"Esconder",closed:"Mostrar"},G=()=>i&&T?b?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,P=jsxRuntime.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(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||x?P:jsxRuntime.jsxs(la,{children:[jsxRuntime.jsx(na,{asChild:true,children:P}),jsxRuntime.jsx(da,{side:"right",align:"center",children:b?D.open:D.closed})]})}function op(o){var t=o,{className:e}=t,a=d(t,["className"]);let{toggleSidebar:r}=Sa();return jsxRuntime.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 rp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 sp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(Bo,l({"data-slot":"sidebar-input","data-sidebar":"input",className:n("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function lp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 np(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 dp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(ma,l({"data-slot":"sidebar-separator","data-sidebar":"separator",className:n("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function ip(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 up(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 fp(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"div";return jsxRuntime.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 cp(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"button";return jsxRuntime.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 pp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n("w-full text-sm",e)},a))}function mp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 gp(r){var s=r,{className:e,isActive:a,children:o}=s,t=d(s,["className","isActive","children"]);return jsxRuntime.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&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var xp=classVarianceAuthority.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] [&>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 hp(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?radixUi.Slot.Slot:"button",{isMobile:m,state:b}=Sa(),x=jsxRuntime.jsx(p,l({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:n(xp({variant:o,size:t}),s)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(la,{children:[jsxRuntime.jsx(na,{asChild:true,children:x}),jsxRuntime.jsx(da,l({side:"right",align:"center",hidden:b!=="collapsed"||m},r))]})):x}function bp(r){var s=r,{className:e,asChild:a=false,showOnHover:o=false}=s,t=d(s,["className","asChild","showOnHover"]);let i=a?radixUi.Slot.Slot:"button";return jsxRuntime.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 Lp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 vp(t){var r=t,{className:e,showIcon:a=false}=r,o=d(r,["className","showIcon"]);let s=E.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.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&&jsxRuntime.jsx(Vt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Vt,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function Cp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Ip(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("li",l({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:n("group/menu-sub-item relative",e)},a))}function kp({icon:e,title:a}){let{state:o,isMobile:t}=Sa();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[E.isValidElement(e)?E.cloneElement(e):e,jsxRuntime.jsx("span",{className:n("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function yp(){return jsxRuntime.jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:20})})}function Sp(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?radixUi.Slot.Slot:"a";return jsxRuntime.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 Ap={sm:"size-2",md:"size-3",lg:"size-4"},yl={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},Rp={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]"},Sl=classVarianceAuthority.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 Mp(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]=E.useState(i||false),x=s!==void 0,T=x?s:m,C=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,c(l({"data-slot":"switch",className:n("group",Sl({size:a,variant:o}),e),checked:s,defaultChecked:i,onCheckedChange:M=>{var D;x||b(M),(D=u.onCheckedChange)==null||D.call(u,M);}},u),{children:jsxRuntime.jsx(radixUi.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",Ap[a||"md"],Rp[a||"md"]),children:C&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[T&&t&&jsxRuntime.jsx("span",{className:n("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",yl[a||"md"]),children:t}),!T&&r&&jsxRuntime.jsx("span",{className:n("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",yl[a||"md"]),children:r})]})})}))}var Pl=E.createContext({});function Op({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:s}){let[i,u]=E.useState(a||""),f={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(Pl.Provider,{value:f,children:jsxRuntime.jsx(Co,{open:t,defaultOpen:r,onOpenChange:s,children:e})})}function Hp({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(Io,{className:o,asChild:a,children:e})}function zp({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(ko,{className:t,align:a,side:o,children:e})}function qp({children:e,label:a}){let{value:o,onValueChange:t}=E.useContext(Pl);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(So,{children:a}),jsxRuntime.jsx(kt,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(kt,{value:o,onValueChange:t,children:e})}function Vp({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(yo,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(It,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function Up({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(It,{onClick:a,children:[o,e]})}function _p(){return jsxRuntime.jsx(Po,{})}var Al=E.createContext(null),Zp=150,wl=16,Qp="w-8";function Xt(){let e=E.useContext(Al);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function $p(e,a){let o=E.useRef(null);return E.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),E.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var Rl=classVarianceAuthority.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"}}),Ml=classVarianceAuthority.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"}}),Jp=classVarianceAuthority.cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),Tl=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Qp],{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"}}),Dl=classVarianceAuthority.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 Yp(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]=E.useState(o),m=E.useCallback(()=>{if(typeof window=="undefined")return;let x=parseInt(Ca.tablet),T=parseInt(Ca.mobile),C=window.innerWidth;C<=T||C<=x?p("md"):p(o);},[o]),b=$p(m,Zp);return E.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[t,o,m,b]),jsxRuntime.jsx(Al.Provider,{value:{variant:a,size:o,responsiveSize:f},children:jsxRuntime.jsx(radixUi.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 em(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,responsiveSize:i}=Xt(),u=E.useRef(null),f=E.useRef(null),[p,m]=E.useState(false),[b,x]=E.useState(false),[T,C]=E.useState(null),M=E.useCallback(()=>{let P=u.current;if(!P)return;let{scrollLeft:k,scrollWidth:j,clientWidth:H}=P,g=j>H;m(g&&k>0),x(g&&k<j-H-1);},[]),D=E.useCallback(()=>{let P=f.current;if(!P)return;let k=P.querySelector('[data-state="active"]');if(k){let j=P.getBoundingClientRect(),H=k.getBoundingClientRect();C({left:H.left-j.left,width:H.width});}},[]),G=E.useCallback(()=>{let P=u.current,k=f.current;if(!P||!k)return;let j=k.querySelector('[data-state="active"]');if(j){let H=P.getBoundingClientRect(),g=j.getBoundingClientRect();g.left<H.left?P.scrollBy({left:g.left-H.left-wl,behavior:"smooth"}):g.right>H.right&&P.scrollBy({left:g.right-H.right+wl,behavior:"smooth"});}},[]);return E.useEffect(()=>{let P=u.current;if(!P)return;M();let k=new ResizeObserver(()=>{M(),D();});return k.observe(P),P.addEventListener("scroll",M,{passive:true}),()=>{k.disconnect(),P.removeEventListener("scroll",M);}},[M,D]),E.useEffect(()=>{D();},[D,a]),E.useEffect(()=>{let P=f.current;if(!P)return;let k=new MutationObserver(j=>{for(let H of j)if(H.type==="attributes"&&H.attributeName==="data-state"){D(),G();break}});return k.observe(P,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>k.disconnect()},[D,G]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:Jp({variant:s}),children:[jsxRuntime.jsx("div",{className:n(Tl({side:"left",variant:s}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:n(Tl({side:"right",variant:s}),b?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxRuntime.jsxs("div",{ref:f,className:"relative",children:[jsxRuntime.jsx(radixUi.Tabs.List,c(l({"data-slot":"tabs-list","data-variant":s,"data-size":i,className:n(Rl({variant:s}),e)},o),{children:a})),T&&jsxRuntime.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 am(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}=Xt(),p=E.useRef(null),[m,b]=E.useState(false);E.useEffect(()=>{let T=p.current;if(!T)return;let C=()=>{b(T.getAttribute("data-state")==="active");};C();let M=new MutationObserver(C);return M.observe(T,{attributes:true,attributeFilter:["data-state"]}),()=>M.disconnect()},[]);let x=()=>o?E.isValidElement(o)?E.cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxRuntime.jsxs(radixUi.Tabs.Trigger,c(l({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":f,className:n(Ml({variant:u,size:f}),e)},r),{children:[o&&jsxRuntime.jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:x()}),jsxRuntime.jsx("span",{children:a}),t&&jsxRuntime.jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function tm(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r,responsiveSize:s}=Xt();return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content","data-variant":r,"data-size":s,className:n(Dl({variant:r,size:s}),e)},a))}var Bl=classVarianceAuthority.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 lm(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?radixUi.Slot.Slot:"div";return jsxRuntime.jsxs(f,c(l({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:n(Bl({variant:a,className:e}),s.onClick&&!t&&"cursor-pointer")},s),{children:[s.children,s.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function nm(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"tile-icon",className:n("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function dm(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"tile-title",className:n("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function im(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"tile-description",className:n("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var pm=3,mm=5e3,Ue={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},Xo=0;function gm(){return Xo=(Xo+1)%Number.MAX_SAFE_INTEGER,Xo.toString()}var Ko=new Map,Nl=e=>{if(Ko.has(e))return;let a=setTimeout(()=>{Ko.delete(e),tt({type:Ue.REMOVE_TOAST,toastId:e});},mm);Ko.set(e,a);},xm=(e,a)=>{switch(a.type){case Ue.ADD_TOAST:return c(l({},e),{toasts:[a.toast,...e.toasts].slice(0,pm)});case Ue.UPDATE_TOAST:return c(l({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?l(l({},o),a.toast):o)});case Ue.DISMISS_TOAST:{let{toastId:o}=a;return o?Nl(o):e.toasts.forEach(t=>{Nl(t.id);}),c(l({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?c(l({},t),{open:false}):t)})}case Ue.REMOVE_TOAST:return a.toastId===void 0?c(l({},e),{toasts:[]}):c(l({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},jt=[],Zt={toasts:[]};function tt(e){Zt=xm(Zt,e),[...jt].forEach(a=>{a(Zt);});}function hm(a){var e=d(a,[]);let o=gm(),t=s=>tt({type:Ue.UPDATE_TOAST,toast:c(l({},s),{id:o})}),r=()=>tt({type:Ue.DISMISS_TOAST,toastId:o});return tt({type:Ue.ADD_TOAST,toast:c(l({},e),{id:o,open:true,onOpenChange:s=>{s||r();}})}),{id:o,dismiss:r,update:t}}function jo(){let[e,a]=E.useState(Zt);return E.useEffect(()=>(jt.push(a),()=>{let o=jt.indexOf(a);o>-1&&jt.splice(o,1);}),[]),c(l({},e),{toast:hm,dismiss:o=>tt({type:Ue.DISMISS_TOAST,toastId:o})})}var Ol=classVarianceAuthority.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"}}),ym=classVarianceAuthority.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"}}),Sm={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},Pm={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},Hl=radixUi.Toast.Provider;function zl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,l({"data-slot":"toast-viewport",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 ql(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=Pm[a||"primary"];return jsxRuntime.jsx(radixUi.Toast.Root,c(l({duration:t},s),{forceMount:true,asChild:true,children:jsxRuntime.jsxs(framerMotion.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(Ol({variant:a}),e),children:[o&&jsxRuntime.jsx(f,{className:n(ym({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function wm(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 jsxRuntime.jsx(radixUi.Toast.Action,c(l({asChild:true,altText:i,className:n("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(ie,{iconLeft:t,iconRight:r,size:o,variant:Sm[a],children:s})}))}function Vl(t){var r=t,{className:e,label:a="Fechar"}=r,o=d(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,c(l({className:n("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(ie,{iconLeft:jsxRuntime.jsx(icons.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 jsxRuntime.jsx(radixUi.Toast.Title,l({className:n("flex-1 text-md font-medium",e)},a))}function _l(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,l({className:n("text-xs",e)},a))}function Tm(){let{toasts:e}=jo();return jsxRuntime.jsxs(Hl,{children:[jsxRuntime.jsx(framerMotion.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 jsxRuntime.jsxs(ql,c(l({},s),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(Ul,{children:o}),t&&jsxRuntime.jsx(_l,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(Vl,{})]})]}),a)})}),jsxRuntime.jsx(zl,{})]})}/*! Bundled license information:
1
+ 'use strict';var E=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),reactDom=require('react-dom'),framerMotion=require('framer-motion');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var E__namespace=/*#__PURE__*/_interopNamespace(E);var $l=Object.defineProperty,Jl=Object.defineProperties;var Yl=Object.getOwnPropertyDescriptors;var nt=Object.getOwnPropertySymbols;var tr=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable;var ar=(e,a,o)=>a in e?$l(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,l=(e,a)=>{for(var o in a||(a={}))tr.call(a,o)&&ar(e,o,a[o]);if(nt)for(var o of nt(a))or.call(a,o)&&ar(e,o,a[o]);return e},f=(e,a)=>Jl(e,Yl(a));var d=(e,a)=>{var o={};for(var t in e)tr.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&nt)for(var t of nt(e))a.indexOf(t)<0&&or.call(e,t)&&(o[t]=e[t]);return o};var en=(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},an=(e,a)=>({classGroupId:e,validator:a}),fr=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var rr=[],tn="arbitrary..",on=e=>{let a=sn(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return rn(i);let u=i.split("-"),c=u[0]===""&&u.length>1?1:0;return cr(u,c,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let c=t[i],p=o[i];return c?p?en(p,c):c:p||rr}return o[i]||rr}}},cr=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],s=o.nextPart.get(r);if(s){let p=cr(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("-"),c=i.length;for(let p=0;p<c;p++){let m=i[p];if(m.validator(u))return m.classGroupId}},rn=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?tn+t:void 0})(),sn=e=>{let{theme:a,classGroups:o}=e;return ln(o,a)},ln=(e,a)=>{let o=fr();for(let t in e){let r=e[t];eo(r,o,t,a);}return o},eo=(e,a,o,t)=>{let r=e.length;for(let s=0;s<r;s++){let i=e[s];nn(i,a,o,t);}},nn=(e,a,o,t)=>{if(typeof e=="string"){dn(e,a,o);return}if(typeof e=="function"){un(e,a,o,t);return}fn(e,a,o,t);},dn=(e,a,o)=>{let t=e===""?a:pr(a,e);t.classGroupId=o;},un=(e,a,o,t)=>{if(cn(e)){eo(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(an(o,e));},fn=(e,a,o,t)=>{let r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){let[u,c]=r[i];eo(c,pr(a,u),o,t);}},pr=(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=fr(),o.nextPart.set(i,u)),o=u;}return o},cn=e=>"isThemeGetter"in e&&e.isThemeGetter===true,pn=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 mn=[],sr=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),gn=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let s=[],i=0,u=0,c=0,p,m=r.length;for(let M=0;M<m;M++){let D=r[M];if(i===0&&u===0){if(D===":"){s.push(r.slice(c,M)),c=M+1;continue}if(D==="/"){p=M;continue}}D==="["?i++:D==="]"?i--:D==="("?u++:D===")"&&u--;}let b=s.length===0?r:r.slice(c),x=b,T=false;b.endsWith("!")?(x=b.slice(0,-1),T=true):b.startsWith("!")&&(x=b.slice(1),T=true);let v=p&&p>c?p-c:void 0;return sr(s,T,x,v)};if(a){let r=a+":",s=t;t=i=>i.startsWith(r)?s(i.slice(r.length)):sr(mn,false,i,void 0,true);}if(o){let r=t;t=s=>o({className:s,parseClassName:r});}return t},xn=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]==="[",c=a.has(i);u||c?(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}},hn=e=>l({cache:pn(e.cacheSize),parseClassName:gn(e),sortModifiers:xn(e)},on(e)),bn=/\s+/,Cn=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:s}=a,i=[],u=e.trim().split(bn),c="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:b,modifiers:x,hasImportantModifier:T,baseClassName:v,maybePostfixModifierPosition:M}=o(m);if(b){c=m+(c.length>0?" "+c:c);continue}let D=!!M,G=t(D?v.substring(0,M):v);if(!G){if(!D){c=m+(c.length>0?" "+c:c);continue}if(G=t(v),!G){c=m+(c.length>0?" "+c:c);continue}D=false;}let P=x.length===0?"":x.length===1?x[0]:s(x).join(":"),k=T?P+"!":P,j=k+G;if(i.indexOf(j)>-1)continue;i.push(j);let z=r(G,D);for(let g=0;g<z.length;++g){let I=z[g];i.push(k+I);}c=m+(c.length>0?" "+c:c);}return c},Ln=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=mr(o))&&(r&&(r+=" "),r+=t);return r},mr=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=mr(e[t]))&&(o&&(o+=" "),o+=a);return o},lr=(e,...a)=>{let o,t,r,s,i=c=>{let p=a.reduce((m,b)=>b(m),e());return o=hn(p),t=o.cache.get,r=o.cache.set,s=u,u(c)},u=c=>{let p=t(c);if(p)return p;let m=Cn(c,o);return r(c,m),m};return s=i,(...c)=>s(Ln(...c))},vn=[],de=e=>{let a=o=>o[e]||vn;return a.isThemeGetter=true,a},gr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,In=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yn=/\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$/,Sn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>In.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),Xe=e=>!!e&&Number.isInteger(Number(e)),Yt=e=>e.endsWith("%")&&_(e.slice(0,-1)),Oe=e=>kn.test(e),hr=()=>true,Tn=e=>yn.test(e)&&!Sn.test(e),ao=()=>false,An=e=>Pn.test(e),Rn=e=>wn.test(e),Mn=e=>!w(e)&&!A(e),Dn=e=>Ke(e,Lr,ao),w=e=>gr.test(e),Ye=e=>Ke(e,vr,Tn),nr=e=>Ke(e,qn,_),Bn=e=>Ke(e,kr,hr),Nn=e=>Ke(e,Ir,ao),dr=e=>Ke(e,br,ao),Fn=e=>Ke(e,Cr,Rn),dt=e=>Ke(e,yr,An),A=e=>xr.test(e),Fa=e=>ea(e,vr),En=e=>ea(e,Ir),ir=e=>ea(e,br),On=e=>ea(e,Lr),zn=e=>ea(e,Cr),it=e=>ea(e,yr,true),Hn=e=>ea(e,kr,true),Ke=(e,a,o)=>{let t=gr.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},ea=(e,a,o=false)=>{let t=xr.exec(e);return t?t[1]?a(t[1]):o:false},br=e=>e==="position"||e==="percentage",Cr=e=>e==="image"||e==="url",Lr=e=>e==="length"||e==="size"||e==="bg-size",vr=e=>e==="length",qn=e=>e==="number",Ir=e=>e==="family-name",kr=e=>e==="number"||e==="weight",yr=e=>e==="shadow";var ur=()=>{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"),c=de("spacing"),p=de("radius"),m=de("shadow"),b=de("inset-shadow"),x=de("text-shadow"),T=de("drop-shadow"),v=de("blur"),M=de("perspective"),D=de("aspect"),G=de("ease"),P=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"],z=()=>[...j(),A,w],g=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],C=()=>[A,w,c],X=()=>[We,"full","auto",...C()],W=()=>[Xe,"none","subgrid",A,w],Q=()=>["auto",{span:["full",Xe,A,w]},Xe,A,w],he=()=>[Xe,"auto",A,w],ke=()=>["auto","min","max","fr",A,w],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...C()],se=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],Be=()=>[We,"screen","full","dvw","lvw","svw","min","max","fit",...C()],Ne=()=>[We,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],R=()=>[e,A,w],ne=()=>[...j(),ir,dr,{position:[A,w]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],h=()=>["auto","cover","contain",On,Dn,{size:[A,w]}],O=()=>[Yt,Fa,Ye],S=()=>["","none","full",p,A,w],y=()=>["",_,Fa,Ye],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"],V=()=>[_,Yt,ir,dr],le=()=>["","none",v,A,w],B=()=>["none",_,A,w],L=()=>["none",_,A,w],U=()=>[_,A,w],K=()=>[We,"full",...C()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Oe],breakpoint:[Oe],color:[hr],container:[Oe],"drop-shadow":[Oe],ease:["in","out","in-out"],font:[Mn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Oe],shadow:[Oe],spacing:["px",_],text:[Oe],"text-shadow":[Oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",We,w,A,D]}],container:["container"],columns:[{columns:[_,w,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:z()}],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:[Xe,"auto",A,w]}],basis:[{basis:[We,"full","auto",u,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,We,"auto","initial","none",w]}],grow:[{grow:["",_,A,w]}],shrink:[{shrink:["",_,A,w]}],order:[{order:[Xe,"first","last","none",A,w]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ke()}],"auto-rows":[{"auto-rows":ke()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],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":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...Be()]}],"min-inline-size":[{"min-inline":["auto",...Be()]}],"max-inline-size":[{"max-inline":["none",...Be()]}],"block-size":[{block:["auto",...Ne()]}],"min-block-size":[{"min-block":["auto",...Ne()]}],"max-block-size":[{"max-block":["none",...Ne()]}],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,Fa,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,Hn,Bn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,w]}],"font-family":[{font:[En,Nn,a]}],"font-features":[{"font-features":[w]}],"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,w]}],"line-clamp":[{"line-clamp":[_,"none",A,nr]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",A,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,w]}],"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,Ye]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[_,"auto",A,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,w]}],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,w]}],"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:fe()}],"bg-size":[{bg:h()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xe,A,w],radial:["",A,w],conic:[Xe,A,w]},zn,Fn]}],"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,w]}],"outline-w":[{outline:["",_,Fa,Ye]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,it,dt]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",b,it,dt]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[_,Ye]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",x,it,dt]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[_,A,w]}],"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":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"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":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"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":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"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":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"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":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"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":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"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":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[A,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"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":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"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:fe()}],"mask-size":[{mask:h()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,w]}],filter:[{filter:["","none",A,w]}],blur:[{blur:le()}],brightness:[{brightness:[_,A,w]}],contrast:[{contrast:[_,A,w]}],"drop-shadow":[{"drop-shadow":["","none",T,it,dt]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",_,A,w]}],"hue-rotate":[{"hue-rotate":[_,A,w]}],invert:[{invert:["",_,A,w]}],saturate:[{saturate:[_,A,w]}],sepia:[{sepia:["",_,A,w]}],"backdrop-filter":[{"backdrop-filter":["","none",A,w]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[_,A,w]}],"backdrop-contrast":[{"backdrop-contrast":[_,A,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,A,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,A,w]}],"backdrop-invert":[{"backdrop-invert":["",_,A,w]}],"backdrop-opacity":[{"backdrop-opacity":[_,A,w]}],"backdrop-saturate":[{"backdrop-saturate":[_,A,w]}],"backdrop-sepia":[{"backdrop-sepia":["",_,A,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",A,w]}],ease:[{ease:["linear","initial",G,A,w]}],delay:[{delay:[_,A,w]}],animate:[{animate:["none",P,A,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,A,w]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:U()}],"skew-x":[{"skew-x":U()}],"skew-y":[{"skew-y":U()}],transform:[{transform:[A,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"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,w]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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,w]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[_,Fa,Ye,nr]}],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"]}},Vn=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:s={}})=>(Ea(e,"cacheSize",a),Ea(e,"prefix",o),Ea(e,"experimentalParseClassName",t),ut(e.theme,s.theme),ut(e.classGroups,s.classGroups),ut(e.conflictingClassGroups,s.conflictingClassGroups),ut(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Ea(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),ft(e.theme,r.theme),ft(e.classGroups,r.classGroups),ft(e.conflictingClassGroups,r.conflictingClassGroups),ft(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Sr(e,r,"orderSensitiveModifiers"),e),Ea=(e,a,o)=>{o!==void 0&&(e[a]=o);},ut=(e,a)=>{if(a)for(let o in a)Ea(e,o,a[o]);},ft=(e,a)=>{if(a)for(let o in a)Sr(e,a,o);},Sr=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},Pr=(e,...a)=>typeof e=="function"?lr(ur,e,...a):lr(()=>Vn(ur(),e),...a);var _n=Pr({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 _n(clsx.clsx(e))}var to=E.createContext(null),Mr=classVarianceAuthority.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 Xn(s){var i=s,{className:e,variant:a="regular",onClose:o,children:t}=i,r=d(i,["className","variant","onClose","children"]);let u=E.Children.toArray(t).some(p=>E.isValidElement(p)&&p.type===Br),c=E.Children.toArray(t).some(p=>E.isValidElement(p)&&p.type===Dr);return jsxRuntime.jsx(to.Provider,{value:{variant:a,hasDescription:u,hasTitle:c,onClose:o},children:jsxRuntime.jsxs("div",f(l({"data-slot":"alert",role:"alert",className:n(Mr({variant:a}),e)},r),{children:[t,o&&jsxRuntime.jsx(icons.CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function Kn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-container",className:n("flex gap-3",e)},a))}function jn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-content",className:n("flex flex-col gap-1",e)},a))}function Zn(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsxRuntime.jsx("div",f(l({"data-slot":"alert-icon",className:n("size-6",e)},o),{children:a}))}function Dr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-title",className:n("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Br(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Qn(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=E.useContext(to),s=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsxRuntime.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 Nr=classVarianceAuthority.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 $n(t){var r=t,{className:e,variant:a}=r,o=d(r,["className","variant"]);let s=E.useContext(to),i=(s==null?void 0:s.variant)||"regular";return jsxRuntime.jsx("button",l({className:n(Nr({variant:a,alertVariant:i}),e)},o))}function oo({size:e=24,className:a}){return jsxRuntime.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:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var td={sm:"size-4 p-0 leading-none",md:"size-5 p-0 leading-none",lg:"size-6 p-0 leading-none",xl:"size-7 p-0 leading-none"},od={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Er=classVarianceAuthority.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 aa(u){var c=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:s=false}=c,i=d(c,["className","variant","size","icon","animation","asChild"]);let p=s?radixUi.Slot.Slot:"span",m=E.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),v=/^[A-Za-z0-9]{2,3}$/.test(x),M=/^\d{1,2}\S$/.test(x),D=v||M;return jsxRuntime.jsxs(p,f(l({"data-slot":"badge",className:n(Er({variant:a,size:o}),(b||T)&&td[o||"md"],!b&&D&&od[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 nd={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"},Or={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},dd={sm:"sm",md:"md",lg:"md",xl:"lg"},Oa=classVarianceAuthority.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 ie(b){var x=b,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:s,iconLeft:i,badge:u,loading:c=false,alert:p}=x,m=d(x,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let T=r?radixUi.Slot.Slot:"button",v=k=>k!=null&&k!==0&&k!==""&&k!=="0",M=k=>k,D=!m.children&&(i||s||p),G=()=>p?jsxRuntime.jsxs("span",{className:n("relative mr-1 flex size-2.5",Or[t||"md"]),children:[jsxRuntime.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsxRuntime.jsx("span",{className:n("relative inline-flex size-2.5 rounded-full",Or[t||"md"]),style:{backgroundColor:p}})]}):null,P=()=>c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(oo,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:n("[grid-area:stack]",c&&"invisible"),children:m.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?G():i&&M(i),m.children&&jsxRuntime.jsx("span",{children:m.children}),s&&M(s)]});return jsxRuntime.jsxs("div",{className:n("relative",a),children:[v(u)&&jsxRuntime.jsx(aa,{size:dd[t||"md"],variant:"regular",className:n("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(T,f(l({disabled:c,"aria-busy":c,"aria-live":c?"polite":void 0,"data-slot":"button",className:n(D&&nd[t||"md"],c&&"!inline-grid",Oa({variant:o,size:t,className:e}))},m),{children:P()}))]})}function id(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Root,l({"data-slot":"alert-dialog"},e))}function ud(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,l({"data-slot":"alert-dialog-trigger"},e))}function Hr(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,l({"data-slot":"alert-dialog-portal"},e))}function qr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 fd(t){var r=t,{className:e,overlayClassName:a}=r,o=d(r,["className","overlayClassName"]);return jsxRuntime.jsxs(Hr,{children:[jsxRuntime.jsx(qr,{className:a}),jsxRuntime.jsx(radixUi.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)},o))]})}function cd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",e)},a))}function pd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 md(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,l({"data-slot":"alert-dialog-title",className:n("text-lg font-semibold",e)},a))}function gd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,l({"data-slot":"alert-dialog-description",className:n("text-sm text-foreground",e)},a))}function xd(r){var s=r,{className:e,variant:a,size:o}=s,t=d(s,["className","variant","size"]);return jsxRuntime.jsx(radixUi.AlertDialog.Action,l({className:n(Oa({variant:a,size:o}),e)},t))}function hd(r){var s=r,{className:e,variant:a="outlined",size:o}=s,t=d(s,["className","variant","size"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,l({className:n(Oa({variant:a,size:o}),e)},t))}var Cd=0;function Ld(){return `medway-id-${++Cd}`}var vd=E__namespace.useId||(()=>{});function Ae(){let e=vd(),[a]=E__namespace.useState(()=>e!=null?e:Ld());return a}var Id=/[\\\/_+.#"@\[\(\{&]/,kd=/[\\\/_+.#"@\[\(\{&]/g,yd=/[\s-]/,Ur=/[\s-]/g;function ro(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 c=t.charAt(s),p=o.indexOf(c,r),m=0,b,x,T,v;for(;p>=0;)b=ro(e,a,o,t,p+1,s+1,i),b>m&&(p===r?b*=1:Id.test(e.charAt(p-1))?(b*=.8,T=e.slice(r,p-1).match(kd),T&&r>0&&(b*=Math.pow(.999,T.length))):yd.test(e.charAt(p-1))?(b*=.9,v=e.slice(r,p-1).match(Ur),v&&r>0&&(b*=Math.pow(.999,v.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=ro(e,a,o,t,p+1,s+2,i),x*.1>b&&(b=x*.1)),b>m&&(m=b),p=o.indexOf(c,p+1);return i[u]=m,m}function Vr(e){return e.toLowerCase().replace(Ur," ")}function _r(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,ro(e,a,Vr(e),Vr(a),0,0,{})}var za='[cmdk-group=""]',so='[cmdk-group-items=""]',Sd='[cmdk-group-heading=""]',Wr='[cmdk-item=""]',Gr=`${Wr}:not([aria-disabled="true"])`,lo="cmdk-item-select",ma="data-value",Pd=(e,a,o)=>_r(e,a,o),Xr=E__namespace.createContext(void 0),qa=()=>E__namespace.useContext(Xr),Kr=E__namespace.createContext(void 0),no=()=>E__namespace.useContext(Kr),jr=E__namespace.createContext(void 0),Zr=E__namespace.forwardRef((e,a)=>{let o=ga(()=>{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=ga(()=>new Set),r=ga(()=>new Map),s=ga(()=>new Map),i=ga(()=>new Set),u=os(e),fe=e,{label:c,children:p,value:m,onValueChange:b,filter:x,shouldFilter:T,loop:v,disablePointerSelection:M=false,vimBindings:D=true}=fe,G=d(fe,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),P=Ae(),k=Ae(),j=Ae(),z=E__namespace.useRef(null),g=Ad();je(()=>{if(m!==void 0){let h=m.trim();o.current.value=h,I.emit();}},[m]),je(()=>{g(6,ke);},[]);let I=E__namespace.useMemo(()=>({subscribe:h=>(i.current.add(h),()=>i.current.delete(h)),snapshot:()=>o.current,setState:(h,O,S)=>{var y,q,Y,V,le,B;if(!Object.is(o.current[h],O)){if(o.current[h]=O,h==="search")he(),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 L=document.getElementById(j);L?L.focus():(Y=document.getElementById(P))==null||Y.focus();}if(g(7,()=>{var L;o.current.selectedItemId=(L=pe())==null?void 0:L.id,I.emit();}),S||g(5,ke),((V=u.current)==null?void 0:V.value)!==void 0){let L=O!=null?O:"";(B=(le=u.current).onValueChange)==null||B.call(le,L);return}}I.emit();}},emit:()=>{i.current.forEach(h=>h());}}),[]),C=E__namespace.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,()=>{he(),W(),o.current.value||Q(),I.emit();}),()=>{s.current.delete(h),t.current.delete(h),o.current.filtered.items.delete(h);let S=pe();g(4,()=>{he(),(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:c||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:P,inputId:j,labelId:k,listInnerRef:z}),[]);function X(h,O){var y,q;let S=(q=(y=u.current)==null?void 0:y.filter)!=null?q:Pd;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(V=>{let le=h.get(V);Y=Math.max(le!=null?le:0,Y);}),O.push([y,Y]);});let S=z.current;J().sort((y,q)=>{var le,B;let Y=y.getAttribute("id"),V=q.getAttribute("id");return ((le=h.get(V))!=null?le:0)-((B=h.get(Y))!=null?B:0)}).forEach(y=>{let q=y.closest(so);q?q.appendChild(y.parentElement===q?y:y.closest(`${so} > *`)):S==null||S.appendChild(y.parentElement===S?y:y.closest(`${so} > *`));}),O.sort((y,q)=>q[1]-y[1]).forEach(y=>{var Y,V;let q=(Y=z.current)==null?void 0:Y.querySelector(`${za}[${ma}="${encodeURIComponent(y[0])}"]`);(V=q==null?void 0:q.parentElement)==null||V.appendChild(q);});}function Q(){let h=J().find(S=>S.getAttribute("aria-disabled")!=="true"),O=h==null?void 0:h.getAttribute(ma);I.setState("value",O||void 0);}function he(){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 V of t.current){let le=(S=(O=s.current.get(V))==null?void 0:O.value)!=null?S:"",B=(q=(y=s.current.get(V))==null?void 0:y.keywords)!=null?q:[],L=X(le,B);o.current.filtered.items.set(V,L),L>0&&h++;}for(let[V,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(V);break}o.current.filtered.count=h;}function ke(){var O,S,y;let h=pe();h&&(((O=h.parentElement)==null?void 0:O.firstChild)===h&&((y=(S=h.closest(za))==null?void 0:S.querySelector(Sd))==null||y.scrollIntoView({block:"nearest"})),h.scrollIntoView({block:"nearest"}));}function pe(){var h;return (h=z.current)==null?void 0:h.querySelector(`${Wr}[aria-selected="true"]`)}function J(){var h;return Array.from(((h=z.current)==null?void 0:h.querySelectorAll(Gr))||[])}function re(h){let S=J()[h];S&&I.setState("value",S.getAttribute(ma));}function se(h){var Y;let O=pe(),S=J(),y=S.findIndex(V=>V===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(ma));}function Be(h){let O=pe(),S=O==null?void 0:O.closest(za),y;for(;S&&!y;)S=h>0?wd(S,za):Td(S,za),y=S==null?void 0:S.querySelector(Gr);y?I.setState("value",y.getAttribute(ma)):se(h);}let Ne=()=>re(J().length-1),R=h=>{h.preventDefault(),h.metaKey?Ne():h.altKey?Be(1):se(1);},ne=h=>{h.preventDefault(),h.metaKey?re(0):h.altKey?Be(-1):se(-1);};return jsxRuntime.jsxs("div",f(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":{D&&h.ctrlKey&&R(h);break}case "ArrowDown":{R(h);break}case "p":case "k":{D&&h.ctrlKey&&ne(h);break}case "ArrowUp":{ne(h);break}case "Home":{h.preventDefault(),re(0);break}case "End":{h.preventDefault(),Ne();break}case "Enter":{h.preventDefault();let y=pe();if(y){let q=new Event(lo);y.dispatchEvent(q);}}}},children:[jsxRuntime.jsx("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:Md,children:c}),mt(e,h=>jsxRuntime.jsx(Kr.Provider,{value:I,children:jsxRuntime.jsx(Xr.Provider,{value:C,children:h})}))]}))});Zr.displayName="Command";var Qr=E__namespace.forwardRef((e,a)=>{var j,z;let o=Ae(),t=E__namespace.useRef(null),r=E__namespace.useContext(jr),s=qa(),i=os(e),u=(z=(j=i.current)==null?void 0:j.forceMount)!=null?z:r==null?void 0:r.forceMount;je(()=>{if(!u)return s.item(o,r==null?void 0:r.id)},[u]);let c=rs(o,t,[e.value,e.children,t],e.keywords),p=no(),m=Ze(I=>I.value&&I.value===c.current),b=Ze(I=>{var C;return u||s.filter()===false?true:I.search?((C=I.filtered.items.get(o))!=null?C:0)>0:true});E__namespace.useEffect(()=>{let I=t.current;if(!(!I||e.disabled))return I.addEventListener(lo,x),()=>I.removeEventListener(lo,x)},[b,e.onSelect,e.disabled]);function x(){var I,C,X;T(),(X=(C=i.current).onSelect)==null||X.call(C,(I=c.current)!=null?I:"");}function T(){var I;p.setState("value",(I=c.current)!=null?I:"",true);}if(!b)return null;let g=e,{disabled:v,value:M,onSelect:D,forceMount:G,keywords:P}=g,k=d(g,["disabled","value","onSelect","forceMount","keywords"]);return jsxRuntime.jsx("div",f(l({ref:Ha(t,a)},k),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!m,"data-disabled":!!v,"data-selected":!!m,onPointerMove:v||s.getDisablePointerSelection()?void 0:T,onClick:v?void 0:x,children:e.children}))});Qr.displayName="Item";var $r=E__namespace.forwardRef((e,a)=>{let T=e,{heading:o,children:t,forceMount:r}=T,s=d(T,["heading","children","forceMount"]),i=Ae(),u=E__namespace.useRef(null),c=E__namespace.useRef(null),p=Ae(),m=qa(),b=Ze(v=>r||m.filter()===false?true:v.search?v.filtered.groups.has(i):true);je(()=>m.group(i),[]),rs(i,u,[e.value,e.heading,c]);let x=E__namespace.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxRuntime.jsxs("div",f(l({ref:Ha(u,a)},s),{"cmdk-group":"",role:"presentation",hidden:b?void 0:true,children:[o&&jsxRuntime.jsx("div",{ref:c,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),mt(e,v=>jsxRuntime.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsxRuntime.jsx(jr.Provider,{value:x,children:v})}))]}))});$r.displayName="Group";var Jr=E__namespace.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=d(i,["alwaysRender"]),r=E__namespace.useRef(null),s=Ze(u=>!u.search);return !o&&!s?null:jsxRuntime.jsx("div",f(l({ref:Ha(r,a)},t),{"cmdk-separator":"",role:"separator"}))});Jr.displayName="Separator";var Yr=E__namespace.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=d(p,["onValueChange"]),r=e.value!=null,s=no(),i=Ze(m=>m.search),u=Ze(m=>m.selectedItemId),c=qa();return E__namespace.useEffect(()=>{e.value!=null&&s.setState("search",e.value);},[e.value]),jsxRuntime.jsx("input",f(l({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||s.setState("search",m.target.value),o==null||o(m.target.value);}}))});Yr.displayName="Input";var es=E__namespace.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=d(p,["children","label"]),s=E__namespace.useRef(null),i=E__namespace.useRef(null),u=Ze(m=>m.selectedItemId),c=qa();return E__namespace.useEffect(()=>{if(i.current&&s.current){let m=i.current,b=s.current,x,T=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let v=m.offsetHeight;b.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px");});});return T.observe(m),()=>{cancelAnimationFrame(x),T.unobserve(m);}}},[]),E__namespace.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});}},[]),jsxRuntime.jsx("div",f(l({ref:Ha(s,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:c.listId,children:mt(e,m=>jsxRuntime.jsx("div",{ref:Ha(i,c.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});es.displayName="List";var as=E__namespace.forwardRef((e,a)=>Ze(t=>t.filtered.count===0)?jsxRuntime.jsx("div",f(l({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);as.displayName="Empty";var ts=E__namespace.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,s=d(i,["progress","children","label"]);return jsxRuntime.jsx("div",f(l({ref:a},s),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:mt(e,u=>jsxRuntime.jsx("div",{"aria-hidden":true,children:u}))}))});ts.displayName="Loading";var oa=Object.assign(Zr,{List:es,Item:Qr,Input:Yr,Group:$r,Separator:Jr,Empty:as,Loading:ts});function wd(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function Td(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function os(e){let a=E__namespace.useRef(e);return je(()=>{a.current=e;}),a}var je=typeof window=="undefined"?E__namespace.useEffect:E__namespace.useLayoutEffect;function ga(e){let a=E__namespace.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function Ze(e){let a=no(),[,o]=E__namespace.useState({}),t=E__namespace.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),je(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function rs(e,a,o,t=[]){let r=E__namespace.useRef(void 0),s=qa();return je(()=>{var c;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),(c=a.current)==null||c.setAttribute(ma,i!=null?i:""),r.current=i;}),r}var Ad=()=>{let[e,a]=E__namespace.useState(),o=ga(()=>new Map);return je(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function Rd(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function mt({asChild:e,children:a},o){return e&&E__namespace.isValidElement(a)?E__namespace.cloneElement(Rd(a),{ref:a.ref},o(a.props.children)):o(a)}function Ha(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var Md={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function xa(r){var s=r,{className:e,orientation:a="horizontal",decorative:o=true}=s,t=d(s,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.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 Od(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"dialog"},e))}function zd(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"dialog-trigger"},e))}function ls(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"dialog-portal"},e))}function Hd(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"dialog-close"},e))}function ns(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 qd(s){var i=s,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=d(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(ls,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(ns,{className:a}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(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&&jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Vd({containerClassName:e,className:a,children:o}){return jsxRuntime.jsx("div",{className:n("mb-auto overflow-y-auto",e),children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:n("px-8 py-6 text-md leading-md text-primary-foreground",a),children:o})})}function Ud(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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&&jsxRuntime.jsx(xa,{})]})}function _d(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(xa,{}),jsxRuntime.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 Gd(s){var i=s,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=d(i,["className","iconLeft","iconRight","children"]);let u=c=>E.isValidElement(c)?E.cloneElement(c,{size:32,strokeWidth:2.2,className:"flex-shrink-0"}):c;return jsxRuntime.jsxs(radixUi.Dialog.Title,f(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 Wd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"dialog-description",className:n("text-md leading-md text-content-paragraph",e)},a))}function is(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa,l({className:n("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function us(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(oa.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)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function fs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa.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 cs(a){var e=d(a,[]);return jsxRuntime.jsx(oa.Empty,l({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function ps(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa.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 ms(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(oa.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 gs(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,l({"data-slot":"popover"},e))}function xs(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,l({"data-slot":"popover-trigger"},e))}function hs(s){var i=s,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=d(i,["className","align","sideOffset","showArrow"]);return jsxRuntime.jsx(radixUi.Popover.Portal,{children:jsxRuntime.jsxs(radixUi.Popover.Content,f(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&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var Ca=E.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function Jd({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:s,onOpenChange:i,defaultValues:u=[]}){let[c,p]=E.useState(u),[m,b]=E.useState(false),[x,T]=E.useState([]),v=t!==void 0,M=s!==void 0,D=v?t:c,G=M?s:m,P=g=>{let I=D.includes(g)?D.filter(C=>C!==g):[...D,g];v||p(I),r==null||r(I);},k=g=>{o||(g&&T(D),M||b(g),i==null||i(g));},j=()=>{v||p(x),r==null||r(x);},z=Ae();return jsxRuntime.jsx(Ca.Provider,{value:{invalid:a,disabled:o,open:G,setOpen:k,values:D,toggleValue:P,onCancelSelection:j,listId:z},children:jsxRuntime.jsx(gs,{open:G,onOpenChange:k,children:e})})}function Yd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function ei(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:c,values:p,listId:m}=E.useContext(Ca),b=Ae(),x=p.length>0;return jsxRuntime.jsx(xs,{asChild:true,children:jsxRuntime.jsxs("button",f(l({"aria-controls":m,"aria-expanded":c,"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:[jsxRuntime.jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function uo({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:s,onCancelSelection:i,values:u}=E.useContext(Ca);return jsxRuntime.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:[jsxRuntime.jsx(ie,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),s(false);},children:a}),jsxRuntime.jsx(ie,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),s(false);},children:o})]})}function ai({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=E.Children.toArray(e),s=r.filter(u=>E.isValidElement(u)&&u.type===uo),i=r.filter(u=>!(E.isValidElement(u)&&u.type===uo));return jsxRuntime.jsxs(hs,{align:"start",className:n("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(is,{children:[jsxRuntime.jsx(us,{placeholder:o}),jsxRuntime.jsxs(fs,{id:E.useContext(Ca).listId,children:[jsxRuntime.jsx(cs,{children:t}),i]})]}),s]})}function ti({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:s,toggleValue:i}=E.useContext(Ca),u=s.includes(a);return jsxRuntime.jsxs(ms,{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:[jsxRuntime.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&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function oi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(ps,l({className:e},a))}function ri(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=E.useContext(Ca);return jsxRuntime.jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var ni={sm:"sm",md:"md",lg:"md",xl:"lg"},Ls=classVarianceAuthority.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 co(s){var i=s,{className:e,size:a,badge:o,children:t}=i,r=d(i,["className","size","badge","children"]);return jsxRuntime.jsxs("div",{className:"relative",children:[o&&jsxRuntime.jsx(aa,{size:ni[a||"md"],className:n("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,f(l({"data-slot":"avatar",className:n(Ls({size:a,className:e}))},r),{children:t}))]})}function po(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,l({"data-slot":"avatar-image",className:n("size-full object-cover",e)},a))}function mo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Fallback,f(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:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function Ga(a){var e=d(a,[]);return jsxRuntime.jsx("nav",l({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Wa(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 xt(r){var s=r,{className:e,icon:a,children:o}=s,t=d(s,["className","icon","children"]);return jsxRuntime.jsx("li",f(l({className:n("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function ci(t){var r=t,{asChild:e,className:a}=r,o=d(r,["asChild","className"]);let s=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(s,l({className:n("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function go(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 xo(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("li",f(l({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsxRuntime.jsx(icons.ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function pi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsxs("span",f(l({"aria-hidden":"true",className:n("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}function sa(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 jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxRuntime.jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsxRuntime.jsx("span",{children:o})]}),jsxRuntime.jsx(radixUi.Progress.Root,f(l({"data-slot":"progress",className:n("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsxRuntime.jsx(radixUi.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)}%)`}})}))]})}function Co(m){var b=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:s,value:i=0,size:u=96,strokeWidth:c=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),v=(u-c)/2,M=v*2*Math.PI,D=M-T/100*M,G=Math.max(18,Math.min(u/5)),P=Math.max(10,Math.min(u/9,16));return jsxRuntime.jsxs("div",f(l({"data-slot":"progress-circle",className:n("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxRuntime.jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsxRuntime.jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:v,stroke:"currentColor",strokeWidth:c,fill:"none",className:n("text-gray-stroke-muted",o)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:v,stroke:"currentColor",strokeWidth:c,fill:"none",strokeDasharray:M,strokeDashoffset:D,strokeLinecap:"round",className:n("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxRuntime.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:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:n("mr-px font-semibold",t),style:{fontSize:`${G}px`},children:i}),!x&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:n("text-center font-medium leading-tight text-gray-foreground-muted",s),style:{fontSize:`${P}px`},children:r})]})]}))}var ks=classVarianceAuthority.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",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)]"}},defaultVariants:{variant:"regular"}});function xi(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsxRuntime.jsx("div",f(l({"data-slot":"tag-icon",className:n("[&>svg]:size-3.5",e)},o),{children:a}))}function ye(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 c=o?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(c,f(l({"data-slot":"tag",className:n(ks({variant:a}),e)},s),{children:[t&&jsxRuntime.jsx(xi,{icon:t}),jsxRuntime.jsx("span",{"data-slot":"tag-text",children:r})]}))}var Xa=E.createContext(null);function vi(s){var i=s,{className:e,done:a,postponed:o,skipped:t}=i,r=d(i,["className","done","postponed","skipped"]);let u=E.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(Xa.Provider,{value:u,children:jsxRuntime.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 Ii(s){var i=s,{className:e,children:a,tag:o,tagIcon:t}=i,r=d(i,["className","children","tag","tagIcon"]);return jsxRuntime.jsxs("div",f(l({"data-slot":"card-week-breadcrumb",className:n("flex min-h-12 items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(Ga,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(Wa,{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&&jsxRuntime.jsx(ye,{variant:"regular-soft",icon:t,children:o})]}))}function ki(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 yi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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=E.useContext(Xa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.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 Pi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=E.useContext(Xa),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.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 wi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Ti(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",f(l({"data-slot":"card-week-progress-circle",className:n("flex flex-1 justify-end",e)},a),{children:jsxRuntime.jsx(Co,l({size:104},a))}))}function Ai(r){var s=r,{className:e,value:a,indicatorClassName:o}=s,t=d(s,["className","value","indicatorClassName"]);let i=E.useContext(Xa),u=i==null?void 0:i.done;return jsxRuntime.jsx("div",{"data-slot":"card-week-progress",className:n("flex flex-1",e),children:jsxRuntime.jsx(sa,f(l({},t),{value:u?100:a,indicatorClassName:n(u&&"bg-secondary-stroke-emphasis",o)}))})}function Ri(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-footer",className:n("mt-auto flex flex-col gap-2",e)},a))}function Mi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("div",f(l({"data-slot":"card-week-content",className:n("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Di(r){var s=r,{className:e,children:a,isTime:o}=s,t=d(s,["className","children","isTime"]);return jsxRuntime.jsxs("div",f(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&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function Bi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=E.useContext(Xa),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?jsxRuntime.jsxs("div",f(l({"data-slot":"card-week-status",className:n("ml-auto flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-feedback-warning-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-feedback-warning-foreground",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",f(l({"data-slot":"card-week-status",className:n("ml-auto flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-secondary-foreground",children:"Feito"})]}))}function Ni(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-actions",className:n("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var Ps=classVarianceAuthority.cva("flex flex-col gap-4 overflow-hidden rounded-lg border border-gray-stroke-muted p-6",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),vt=classVarianceAuthority.cva("text-xs font-medium leading-xs text-gray-foreground-muted"),ws=E.createContext(null);function It(){var e;return (e=E.useContext(ws))!=null?e:{}}function qi(r){var s=r,{className:e,variant:a,availableDate:o}=s,t=d(s,["className","variant","availableDate"]);let i=E.useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsxRuntime.jsx(ws.Provider,{value:i,children:jsxRuntime.jsx("div",l({"data-slot":"card-module",className:n(Ps({variant:a}),e)},t))})}function Vi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-module-header",className:n("flex flex-col",e)},a))}function Ui(r){var s=r,{className:e,children:a,count:o}=s,t=d(s,["className","children","count"]);let{variant:i}=It();return jsxRuntime.jsxs("div",f(l({"data-slot":"card-module-label",className:n("flex items-center justify-between gap-2 text-xs font-medium leading-xs",i==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},t),{children:[jsxRuntime.jsx("span",{children:a}),o&&jsxRuntime.jsx("span",{className:"text-sm leading-sm text-gray-foreground-muted",children:o})]}))}function _i(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=It();return jsxRuntime.jsx("div",l({"data-slot":"card-module-title",className:n("line-clamp-2 min-h-14 max-w-[70%] text-lg font-semibold",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function Gi(t){var r=t,{className:e,progress:a}=r,o=d(r,["className","progress"]);let{variant:s}=It(),i=Number.isFinite(a)?Math.min(100,Math.max(0,a)):0,u=s==="blocked"?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:vt(),children:"N\xE3o iniciado"}):i>=100?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:vt(),children:"Conclu\xEDdo"}):jsxRuntime.jsxs("div",{"data-slot":"card-module-status",className:vt(),children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[i,"%"]})," ","de progresso"]});return jsxRuntime.jsxs("div",f(l({"data-slot":"card-module-progress",className:n("flex flex-col gap-2",e)},o),{children:[u,s!=="blocked"&&jsxRuntime.jsx(sa,{value:i,indicatorClassName:i===100?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function Wi(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,availableDate:i}=It();return s!=="blocked"||!i?null:jsxRuntime.jsxs("div",f(l({"data-slot":"card-module-footer",className:n("flex flex-col gap-3",e)},o),{children:[jsxRuntime.jsx("div",{className:"border-t border-gray-stroke-muted"}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs(ye,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{}),children:["Dispon\xEDvel em ",i]}),a]})]}))}function Xi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(ie,l({"data-slot":"card-module-button",size:"sm",iconLeft:jsxRuntime.jsx(icons.ArrowRightMd,{}),className:n(e)},a))}function Ki(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("div",f(l({"data-slot":"card-module-action",className:n("flex items-center justify-end",e)},o),{children:a}))}var Ts=E.createContext({animation:void 0});function Io(o){var t=o,{animation:e}=t,a=d(t,["animation"]);return jsxRuntime.jsx(Ts.Provider,{value:{animation:e},children:jsxRuntime.jsx(radixUi.Collapsible.Root,l({"data-slot":"collapsible"},a))})}function ko(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,l({"data-slot":"collapsible-trigger"},e))}function yo(o){var t=o,{className:e}=t,a=d(t,["className"]);let{animation:r}=E.useContext(Ts),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 jsxRuntime.jsx(radixUi.Collapsible.Content,l({"data-slot":"collapsible-content",className:n(r&&s[r],e)},a))}var tu=classVarianceAuthority.cva("flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),As=E.createContext(null);function ja(){var e;return (e=E.useContext(As))!=null?e:{}}function ou(s){var i=s,{className:e,variant:a,availableDate:o,children:t}=i,r=d(i,["className","variant","availableDate","children"]);let u=E.useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsxRuntime.jsx(As.Provider,{value:u,children:jsxRuntime.jsx(Io,f(l({"data-slot":"card-topic",animation:"accordion",className:n(tu({variant:a}),e)},r),{children:t}))})}function ru(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s}=ja(),i=s==="blocked";return jsxRuntime.jsx(ko,f(l({"data-slot":"card-topic-trigger",disabled:i,className:n("group flex min-h-16 w-full select-none flex-wrap items-center gap-4 p-4 text-left","[&>*:first-child]:flex-1","disabled:pointer-events-none disabled:cursor-default",!i&&"cursor-pointer",e)},o),{children:a}))}function su(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-topic-column",className:n("flex flex-wrap items-center gap-4",e)},a))}function lu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s}=ja();return jsxRuntime.jsx("div",f(l({"data-slot":"card-topic-number",className:n("flex size-[30px] shrink-0 items-center justify-center rounded-full text-lg font-semibold text-primary-foreground-onfill",s==="blocked"?"bg-primary-foreground-muted":"bg-primary-foreground",e)},o),{children:a}))}function nu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=ja();return jsxRuntime.jsx("div",l({"data-slot":"card-topic-title",className:n("min-w-0 flex-1 text-lg font-semibold leading-lg",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function du(t){var r=t,{className:e,progress:a}=r,o=d(r,["className","progress"]);let{variant:s,availableDate:i}=ja();if(s==="blocked")return i?jsxRuntime.jsx("div",f(l({"data-slot":"card-topic-progress",className:n("flex",e)},o),{children:jsxRuntime.jsxs(ye,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{"aria-hidden":true}),children:["Dispon\xEDvel em ",i]})})):null;if(a===void 0)return null;let u=Math.min(100,Math.max(0,a)),c=u>=100;return jsxRuntime.jsxs("div",f(l({"data-slot":"card-topic-progress",className:n("flex min-w-[180px] flex-col gap-2",e)},o),{children:[jsxRuntime.jsx("div",{className:"text-xs font-medium leading-xs text-gray-foreground-muted",children:c?"Conclu\xEDdo":jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," de progresso"]})}),jsxRuntime.jsx(sa,{value:u,indicatorClassName:c?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function iu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s}=ja();return jsxRuntime.jsxs("div",f(l({"data-slot":"card-topic-count",className:n("flex shrink-0 items-center gap-2",e)},o),{children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-sm text-gray-foreground-muted",children:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":true,size:18,strokeWidth:2.4,className:n("shrink-0 text-gray-foreground",s!=="blocked"&&"transition-transform duration-200 group-data-[state=open]:rotate-180")})]}))}function uu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(yo,l({"data-slot":"card-topic-content",className:n("px-4 pb-4",e)},a))}function gu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue",className:n("flex gap-3 bg-transparent",e)},a))}function xu(s){var i=s,{className:e,src:a,alt:o="",children:t}=i,r=d(i,["className","src","alt","children"]);return jsxRuntime.jsx("div",f(l({"data-slot":"card-continue-image",className:n("relative h-[122px] w-[200px] shrink-0 overflow-hidden rounded-md bg-gray-background-soft",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t}))}function hu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue-content",className:n("flex min-w-0 flex-1 flex-col justify-between gap-2",e)},a))}function bu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue-header",className:n("flex min-w-0 flex-col gap-1",e)},a))}function Cu({items:e,className:a}){return jsxRuntime.jsx(Ga,{"data-slot":"card-continue-breadcrumb",className:"overflow-hidden",children:jsxRuntime.jsx(Wa,{className:n("flex-nowrap gap-1 text-xs font-medium leading-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",a),children:e.map((o,t)=>jsxRuntime.jsx(E.Fragment,{children:t<e.length-1?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(xt,{className:"text-content-paragraph",children:o}),jsxRuntime.jsx(xo,{children:jsxRuntime.jsx(icons.ChevronRight,{size:12,className:"text-gray-foreground"})})]}):jsxRuntime.jsx(xt,{children:jsxRuntime.jsx(go,{className:"font-medium text-content-paragraph",children:o})})},`${o}-${t}`))})})}function Lu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-continue-title",className:n("line-clamp-2 text-lg font-semibold leading-lg text-primary-foreground",e)},a))}function vu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx(ie,f(l({"data-slot":"card-continue-button",variant:"emphasis-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightSm,{}),className:n("self-start",e)},o),{children:a}))}var Rs=classVarianceAuthority.cva("relative z-0 flex rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"},orientation:{vertical:"flex-col overflow-hidden",horizontal:"flex-col overflow-hidden lg:flex-row lg:items-center"}},defaultVariants:{variant:"default",orientation:"vertical"}}),Ms=E.createContext(null);function La(){var e;return (e=E.useContext(Ms))!=null?e:{}}function Ru(i){var u=i,{className:e,variant:a,availableDate:o,orientation:t,children:r}=u,s=d(u,["className","variant","availableDate","orientation","children"]);let c=E.useMemo(()=>({variant:a,availableDate:o,orientation:t}),[a,o,t]),p=jsxRuntime.jsx("div",f(l({"data-slot":"card-lesson",className:n(Rs({variant:a,orientation:t}),e)},s),{children:r})),m=a!=="blocked"&&t!=="horizontal";return jsxRuntime.jsx(Ms.Provider,{value:c,children:m?jsxRuntime.jsxs("div",{"data-slot":"card-lesson-stack",className:"relative pt-[17px]",children:[jsxRuntime.jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-[34px] bottom-0 top-0 z-0 rounded-2xl border border-gray-stroke-muted bg-surface-card"}),jsxRuntime.jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-4 bottom-0 top-2 z-0 rounded-2xl border border-gray-stroke-muted bg-surface-card"}),p]}):p})}function Mu(s){var i=s,{className:e,src:a,alt:o="",children:t}=i,r=d(i,["className","src","alt","children"]);let{variant:u,orientation:c}=La(),p=c==="horizontal",m=n("h-[153px] w-full rounded-md",p&&"lg:h-[122px] lg:w-[200px]",u==="blocked"&&"opacity-20");return jsxRuntime.jsx("div",f(l({"data-slot":"card-lesson-image",className:n("px-3 pt-3",p&&"lg:shrink-0 lg:p-3",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:n(m,"object-cover")}):jsxRuntime.jsx("div",{className:n(m,"bg-gray-background-soft"),children:t})}))}function Du(o){var t=o,{className:e}=t,a=d(t,["className"]);let{orientation:r}=La();return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-content",className:n("flex flex-col gap-2 px-6 pt-4",r==="horizontal"&&"lg:min-w-[160px] lg:flex-1 lg:justify-center lg:gap-0 lg:px-0 lg:py-3",e)},a))}function Bu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-header",className:n("flex flex-col",e)},a))}function Nu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=La();return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-label",className:n("text-xs font-medium leading-xs",r==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},a))}function Fu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=La();return jsxRuntime.jsx("div",l({"data-slot":"card-lesson-title",className:n("line-clamp-2 text-lg font-semibold leading-lg",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function Eu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("div",f(l({"data-slot":"card-lesson-duration",className:n("flex items-center gap-1 text-sm font-medium leading-sm text-gray-foreground-muted",e)},o),{children:a}))}function Ou(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,availableDate:i,orientation:u}=La();return jsxRuntime.jsxs("div",f(l({"data-slot":"card-lesson-footer",className:n("flex flex-wrap items-center justify-between gap-4 px-6 pb-6 pt-4",u==="horizontal"&&"lg:grow lg:basis-0 lg:flex-nowrap lg:justify-end lg:px-3 lg:py-3",e)},o),{children:[s==="blocked"&&i?jsxRuntime.jsxs(ye,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{}),children:["Dispon\xEDvel em ",i]}):null,a]}))}function zu(t){var r=t,{className:e,status:a}=r,o=d(r,["className","status"]);let s=a==="completed";return jsxRuntime.jsx(ye,f(l({"data-slot":"card-lesson-status",variant:s?"success-soft":"warning-soft",icon:s?jsxRuntime.jsx(icons.Check,{}):void 0,className:e},o),{children:s?"Conclu\xEDdo":"Iniciado"}))}function Hu(r){var s=r,{className:e,children:a,containerClassName:o}=s,t=d(s,["className","children","containerClassName"]);let{variant:i}=La();return jsxRuntime.jsx(ie,f(l({"data-slot":"card-lesson-button",variant:"regular",size:"sm",disabled:i==="blocked",containerClassName:n("[&:only-child]:ml-auto",o),className:n("rounded-full disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted",e)},t),{children:a}))}var Bs=classVarianceAuthority.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 _u(s){var i=s,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=d(i,["className","size","variant","uncheckIcon"]);return jsxRuntime.jsx(radixUi.Checkbox.Root,f(l({"data-slot":"checkbox",className:n("group peer",Bs({size:a,variant:o}),e)},r),{children:jsxRuntime.jsx(radixUi.Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsxRuntime.jsx(icons.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}):jsxRuntime.jsx(icons.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 Po=768;function Za(){let[e,a]=E.useState(void 0);return E.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Po-1}px)`),t=()=>{a(window.innerWidth<Po);};return o.addEventListener("change",t),a(window.innerWidth<Po),()=>o.removeEventListener("change",t)},[]),!!e}function wo(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,l({"data-slot":"dropdown-menu"},e))}function Ku(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,l({"data-slot":"dropdown-menu-portal"},e))}function To(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,l({className:n("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function Ao(r){var s=r,{className:e,sideOffset:a=4,side:o}=s,t=d(s,["className","sideOffset","side"]);let i=Za();return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,{children:jsxRuntime.jsx(radixUi.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 ju(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,l({"data-slot":"dropdown-menu-group"},e))}function St(r){var s=r,{className:e,inset:a,variant:o="default"}=s,t=d(s,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.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 Zu(r){var s=r,{className:e,children:a,checked:o}=s,t=d(s,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.CheckboxItem,f(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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function Pt(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,l({"data-slot":"dropdown-menu-radio-group"},e))}function Ro(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.RadioItem,f(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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function Mo(t){var r=t,{className:e,inset:a}=r,o=d(r,["className","inset"]);return jsxRuntime.jsx(radixUi.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 Do(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,l({"data-slot":"dropdown-menu-separator",className:n("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function Qu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"dropdown-menu-shortcut",className:n("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function $u(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,l({"data-slot":"dropdown-menu-sub"},e))}function Ju(r){var s=r,{className:e,inset:a,children:o}=s,t=d(s,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger,f(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,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function Yu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 Fo=E.createContext({invalid:false}),Vs={start:1950,end:new Date().getFullYear()};function Tt(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 Eo=classVarianceAuthority.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 of(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function rf(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("label",f(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 sf(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=E.useContext(Fo);return jsxRuntime.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 Qa(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function At(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function Rt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function No(e,a){return Ia(e).getTime()<Ia(a).getTime()}function Us(e,a){return Ia(e).getTime()>Ia(a).getTime()}function $a(e,a,o){return !!(a&&No(e,a)||o&&Us(e,o))}function _s(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}var Gs=20,Ws=18;function lf(G){var P=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:s,max:i,format:u=_s,className:c,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=Vs,showYearSelector:T=true,invalid:v=false,children:M}=P,D=d(P,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,z]=E.useState(a),g=k?e:j,[I,C]=E.useState(false),[X,W]=E.useState(()=>Rt(Tt(g!=null?g:new Date,x))),Q=E.useRef(null),he=E.useRef(null),ke=E.useRef(null),pe=E.useId(),[J,re]=E.useState(null),se=E.useCallback(B=>{k||z(B),o==null||o(B);},[k,o]);E.useEffect(()=>{I&&W(Rt(Tt(g!=null?g:new Date,x)));},[I,g,x]),E.useEffect(()=>{I||re(null);},[I]),E.useEffect(()=>{if(!I)return;let B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=B;}},[I]),E.useEffect(()=>{if(!J)return;let B=()=>C(false);return window.addEventListener("scroll",B,{passive:true,capture:true}),()=>window.removeEventListener("scroll",B,{capture:true})},[J]),E.useEffect(()=>{if(!I)return;let B=U=>{let K=Q.current,ue=ke.current;K&&U.target instanceof Node&&!K.contains(U.target)&&!(ue!=null&&ue.contains(U.target))&&C(false);},L=U=>{U.key==="Escape"&&C(false);};return window.addEventListener("pointerdown",B,{capture:true}),window.addEventListener("keydown",L),()=>{window.removeEventListener("pointerdown",B,{capture:true}),window.removeEventListener("keydown",L);}},[I]);let Be=290,Ne=()=>{var B,L,U;if(I)C(false);else {let K=(U=(B=he.current)==null?void 0:B.getBoundingClientRect())!=null?U:(L=Q.current)==null?void 0:L.getBoundingClientRect();if(K){let Me=window.innerHeight-K.bottom<Be,Je=window.innerWidth,Ra=window.matchMedia("(max-width: 639px)").matches?Math.min(512,Je-16):Math.min(320,Je),Ma=8,Da=Ma,Ba=Je-Ra-Ma,Ge=K.left;Ge<Da?Ge=Da:Ge>Ba&&(Ge=Ba),re(f(l({position:"fixed"},Me?{bottom:window.innerHeight-K.top+8}:{top:K.bottom+8}),{left:Ge,width:Ra,maxWidth:360}));}C(true);}},R=Ia(new Date),ne=X.getFullYear(),fe=X.getMonth(),h=new Date(ne,fe,1),O=new Date(ne,fe+1,0).getDate(),S=h.getDay(),y=g?u(g):"",q=Array.from({length:12},(B,L)=>({value:L,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,L,1))})),Y=Array.from({length:x.end-x.start+1},(B,L)=>x.start+L),V=B=>{W(new Date(ne,B,1));},le=B=>{W(new Date(B,fe,1));};return jsxRuntime.jsxs(Fo.Provider,{value:{invalid:v},children:[jsxRuntime.jsxs("div",{ref:Q,className:n("relative inline-flex w-full",c),children:[jsxRuntime.jsxs("button",f(l(f(l({ref:he,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?pe:void 0,"data-invalid":v||void 0,"data-slot":"date-picker-trigger","data-size":b,"data-state":I?"open":"closed"},!y&&{"data-placeholder":""}),{className:n(Eo({size:b}),I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&!v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&v&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:Ne}),D),{children:[jsxRuntime.jsx("span",{className:"truncate",children:y||t}),jsxRuntime.jsx(icons.Calendar,{size:b==="md"?Ws:Gs,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:ke,id:pe,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:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.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=>At(B,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:fe,onChange:B=>V(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=>jsxRuntime.jsx("option",{value:B.value,className:"capitalize",children:B.label},B.value))}),jsxRuntime.jsx(icons.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?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.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=>jsxRuntime.jsx("option",{value:B,children:B},B))}),jsxRuntime.jsx(icons.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})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsxRuntime.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=>At(B,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((B,L)=>jsxRuntime.jsx("div",{},`empty-${L}`)),Array.from({length:O}).map((B,L)=>{let U=new Date(ne,fe,L+1),K=g?Qa(U,g):false,ue=Qa(U,R),Me=r||$a(U,s,i);return jsxRuntime.jsx("button",{type:"button",disabled:Me,onClick:()=>{se(U),C(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",ue&&"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:L+1},U.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.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),C(false);},disabled:r||$a(R,s,i),children:"Hoje"}),jsxRuntime.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)]}),M]})}function nf(G){var P=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:s,max:i,format:u=_s,className:c,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=Vs,showYearSelector:T=true,invalid:v=false,children:M}=P,D=d(P,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,z]=E.useState(a),g=k?e:j,[I,C]=E.useState(false),[X,W]=E.useState(()=>{var L,U;return Rt(Tt((U=(L=g==null?void 0:g.start)!=null?L:g==null?void 0:g.end)!=null?U:new Date,x))}),Q=E.useRef(null),he=E.useRef(null),ke=E.useRef(null),pe=E.useId(),[J,re]=E.useState(null),se=E.useCallback(L=>{k||z(L),o==null||o(L);},[k,o]);E.useEffect(()=>{var L,U;I&&W(Rt(Tt((U=(L=g==null?void 0:g.start)!=null?L:g==null?void 0:g.end)!=null?U:new Date,x)));},[I,g,x]),E.useEffect(()=>{I||re(null);},[I]),E.useEffect(()=>{if(!I)return;let L=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=L;}},[I]),E.useEffect(()=>{if(!J)return;let L=()=>C(false);return window.addEventListener("scroll",L,{passive:true,capture:true}),()=>window.removeEventListener("scroll",L,{capture:true})},[J]),E.useEffect(()=>{if(!I)return;let L=K=>{let ue=Q.current,Me=ke.current;ue&&K.target instanceof Node&&!ue.contains(K.target)&&!(Me!=null&&Me.contains(K.target))&&C(false);},U=K=>{K.key==="Escape"&&C(false);};return window.addEventListener("pointerdown",L,{capture:true}),window.addEventListener("keydown",U),()=>{window.removeEventListener("pointerdown",L,{capture:true}),window.removeEventListener("keydown",U);}},[I]);let Be=330,Ne=()=>{var L,U,K;if(I)C(false);else {let ue=(K=(L=he.current)==null?void 0:L.getBoundingClientRect())!=null?K:(U=Q.current)==null?void 0:U.getBoundingClientRect();if(ue){let Je=window.innerHeight-ue.bottom<Be,pa=window.innerWidth,Ma=window.matchMedia("(max-width: 639px)").matches?Math.min(512,pa-16):Math.min(320,pa),Da=8,Ba=Da,Ge=pa-Ma-Da,Na=ue.left;Na<Ba?Na=Ba:Na>Ge&&(Na=Ge),re(f(l({position:"fixed"},Je?{bottom:window.innerHeight-ue.top+8}:{top:ue.bottom+8}),{left:Na,width:Ma,maxWidth:360}));}C(true);}},R=Ia(new Date),ne=X.getFullYear(),fe=X.getMonth(),h=new Date(ne,fe,1),O=new Date(ne,fe+1,0).getDate(),S=h.getDay(),y=Array.from({length:12},(L,U)=>({value:U,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,U,1))})),q=Array.from({length:x.end-x.start+1},(L,U)=>x.start+U),Y=L=>{W(new Date(ne,L,1));},V=L=>{W(new Date(L,fe,1));},le=L=>{r||$a(L,s,i)||(!g||!g.start||g.end?se({start:L,end:null}):(No(L,g.start)?se({start:L,end:g.start}):se({start:g.start,end:L}),C(false)));},B=g!=null&&g.start&&(g!=null&&g.end)?`${u(g.start)} - ${u(g.end)}`:g!=null&&g.start?u(g.start):"";return jsxRuntime.jsxs(Fo.Provider,{value:{invalid:v},children:[jsxRuntime.jsxs("div",{ref:Q,className:n("relative inline-flex w-full",c),children:[jsxRuntime.jsxs("button",f(l(f(l({ref:he,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?pe:void 0,"data-invalid":v||void 0,"data-slot":"date-picker-trigger","data-size":b,"data-state":I?"open":"closed"},!B&&{"data-placeholder":""}),{className:n(Eo({size:b}),I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",B&&!v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",B&&v&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:Ne}),D),{children:[jsxRuntime.jsx("span",{className:"truncate",children:B||t}),jsxRuntime.jsx(icons.Calendar,{size:b==="md"?Ws:Gs,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:ke,id:pe,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:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.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(L=>At(L,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:fe,onChange:L=>Y(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=>jsxRuntime.jsx("option",{value:L.value,className:"capitalize",children:L.label},L.value))}),jsxRuntime.jsx(icons.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?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ne,onChange:L=>V(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:q.map(L=>jsxRuntime.jsx("option",{value:L,children:L},L))}),jsxRuntime.jsx(icons.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})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsxRuntime.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(L=>At(L,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((L,U)=>jsxRuntime.jsx("div",{},`empty-${U}`)),Array.from({length:O}).map((L,U)=>{let K=new Date(ne,fe,U+1),ue=(g==null?void 0:g.start)&&Qa(K,g.start),Me=(g==null?void 0:g.end)&&Qa(K,g.end),Je=(g==null?void 0:g.start)&&(g==null?void 0:g.end)&&Us(K,g.start)&&No(K,g.end),pa=Qa(K,R),Ra=r||$a(K,s,i);return jsxRuntime.jsx("button",{type:"button",disabled:Ra,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",pa&&"ring-1 ring-gray-stroke-emphasis",Je&&"bg-primary-background-soft",(ue||Me)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":ue||Me||void 0,children:U+1},K.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.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}),C(false);},disabled:r||$a(R,s,i),children:"Hoje"}),jsxRuntime.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)]}),M]})}var hf=24,bf=20,Cf=1.6,Ks=10,js=8;function Lf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function vf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("relative",e),"data-slot":"input-field"},a))}function If(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("label",f(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 kf(t){var r=t,{className:e,invalid:a=false}=r,o=d(r,["className","invalid"]);return jsxRuntime.jsx("span",l({className:n("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function Oo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function Nt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 zo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Dt=classVarianceAuthority.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):not(:disabled)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown):not(:disabled)]:border-gray-stroke-emphasis [&:not(:placeholder-shown):not(:disabled)]:ring-[3px] [&:not(:placeholder-shown):not(:disabled)]: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"}}),yf={email:jsxRuntime.jsx(icons.Mail,{})},Sf={};function ka(e,a="lg"){return E.cloneElement(e,{size:a==="md"?bf:hf,strokeWidth:Cf})}function Qs(s){var i=s,{className:e,invalid:a=false,size:o="lg",disabled:t}=i,r=d(i,["className","invalid","size","disabled"]);let[u,c]=E.useState(false);return jsxRuntime.jsxs(Oo,{children:[jsxRuntime.jsx(Nt,{children:ka(jsxRuntime.jsx(icons.Lock,{}),o)}),jsxRuntime.jsx("input",l({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:n(Dt({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsxRuntime.jsx(zo,{children:jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:t,onClick:()=>c(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:ka(u?jsxRuntime.jsx(icons.Hide,{}):jsxRuntime.jsx(icons.Show,{}),o)})})]})}function $s(m){var b=m,{className:e,invalid:a=false,size:o="lg",iconLeft:t,min:r,value:s,defaultValue:i,onChange:u,disabled:c}=b,p=d(b,["className","invalid","size","iconLeft","min","value","defaultValue","onChange","disabled"]);let x=s!==void 0,[T,v]=E.useState(()=>i!=null?i:""),M=E.useRef(null),D=x?s===""?"":String(s):T,G=D===""?NaN:Number(D),P=r!==void 0&&Number(r)<0,k=E.useCallback(C=>{let X=r!==void 0&&Number(r)<0,W=C.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=E.useCallback(C=>{let X=k(C.target.value);if(X===C.target.value)x?u==null||u(C):(v(X),u==null||u(f(l({},C),{target:f(l({},C.target),{value:X})})));else {let W=f(l({},C),{target:f(l({},C.target),{value:X})});x||v(X),u==null||u(W);}},[x,u,k]),z=r!==void 0?Number(r):void 0,g=E.useCallback(C=>{let W=(Number.isNaN(G)?z!=null?z:0:G)+C;return z!==void 0&&W<z?z:W},[G,z]),I=E.useCallback(C=>{let X=g(C),W=String(X),Q=M.current,ke={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||v(W),u==null||u(ke);},[g,x,u]);return jsxRuntime.jsxs(Oo,{children:[t!=null&&jsxRuntime.jsx(Nt,{children:ka(t,o)}),jsxRuntime.jsx("input",l({ref:M,type:"text",inputMode:"decimal",pattern:P?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":D===""?"":void 0,min:r,value:D,onChange:j,disabled:c,className:n(Dt({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)),jsxRuntime.jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:c,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:jsxRuntime.jsx(icons.ChevronDown,{className:"rotate-180",size:o==="md"?js:Ks,strokeWidth:3})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:c,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:jsxRuntime.jsx(icons.ChevronDown,{size:o==="md"?js:Ks,strokeWidth:3})})]})]})}function Ho(u){var c=u,{className:e,type:a="text",size:o="lg",invalid:t=false,iconLeft:r,iconRight:s}=c,i=d(c,["className","type","size","invalid","iconLeft","iconRight"]);if(a==="numeric")return jsxRuntime.jsx($s,l({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsxRuntime.jsx(Qs,l({className:e,size:o,invalid:t},i));let p=r!=null?r:yf[a],m=(a==="text"||a==="email")&&t,b=m?jsxRuntime.jsx(icons.TriangleWarning,{}):s!=null?s:Sf[a];return p!=null||b!=null?jsxRuntime.jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsxRuntime.jsx(Nt,{children:ka(p,o)}),jsxRuntime.jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(Dt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),b!=null&&jsxRuntime.jsx(zo,{className:m?"text-feedback-error-foreground":void 0,children:ka(b,o)})]}):jsxRuntime.jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(Dt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var Js=classVarianceAuthority.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 Tf(s){var i=s,{className:e,variant:a,size:o,block:t}=i,r=d(i,["className","variant","size","block"]);return jsxRuntime.jsx(radixUi.Label.Root,l({"data-slot":"label",className:n(e,Js({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 Rf({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.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:[jsxRuntime.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"}),jsxRuntime.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 Mf({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.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:jsxRuntime.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 ya={tablet:"600px",mobile:"320px"};function el(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("nav",l({role:"navigation","aria-label":"pagination",className:n("flex w-full items-center justify-between",e)},a))}function al(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("ul",l({className:n("flex flex-row items-center gap-2",e)},a))}function qo(r){var s=r,{count:e,label:a="itens",className:o}=s,t=d(s,["count","label","className"]);return jsxRuntime.jsx("p",f(l({className:n("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Mostrando"," ",jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function Et(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("li",l({className:n("",e)},a))}function tl(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:s="regular",activeVariant:i,inactiveVariant:u}=m,c=d(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsxRuntime.jsx(ie,f(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},c),{children:c.children}))}function ol(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsxRuntime.jsx(ie,f(l({"aria-label":"Go to previous page",className:n("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function rl(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsxRuntime.jsx(ie,f(l({"aria-label":"Go to next page",className:n("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function sl(t){var r=t,{className:e,size:a="md"}=r,o=d(r,["className","size"]);return jsxRuntime.jsx("span",f(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:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function ll(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 zf({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:s,className:i,responsive:u=true,size:c="md"}){let[p,m]=E.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(ya.tablet));E.useEffect(()=>{if(typeof window=="undefined"||!u)return;let v=parseInt(ya.tablet),M=()=>{m(window.innerWidth<=v);};return window.addEventListener("resize",M),M(),()=>window.removeEventListener("resize",M)},[u]);let b=typeof o=="number"?o:u&&p?0:2,x=u&&p,T=()=>ll(e,a,b);return jsxRuntime.jsxs(el,{className:n("",i),children:[r!==void 0&&!x?jsxRuntime.jsx(qo,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(al,{children:[jsxRuntime.jsx(Et,{children:jsxRuntime.jsx(ol,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:c})}),T().map((v,M)=>jsxRuntime.jsx(Et,{children:v===-1?jsxRuntime.jsx(sl,{size:c}):jsxRuntime.jsx(tl,{onClick:()=>t(v),isActive:v===e,size:c,children:v})},M)),jsxRuntime.jsx(Et,{children:jsxRuntime.jsx(rl,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:c})})]}),s!==void 0&&!x?jsxRuntime.jsx(qo,{count:s,label:"total"}):jsxRuntime.jsx("div",{})]})}var Vf={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"},nl=classVarianceAuthority.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 Uf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,l({"data-slot":"radio-group",className:n("grid gap-3",e)},a))}function _f(r){var s=r,{className:e,size:a,variant:o}=s,t=d(s,["className","size","variant"]);return jsxRuntime.jsx(radixUi.RadioGroup.Item,f(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",nl({size:a,variant:o}),e)},t),{children:jsxRuntime.jsx(radixUi.RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsxRuntime.jsx(icons.Circle,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Vf[a||"md"])})})}))}function na(o){var t=o,{delayDuration:e=0}=t,a=d(t,["delayDuration"]);return jsxRuntime.jsx(radixUi.Tooltip.Provider,l({"data-slot":"tooltip-provider",delayDuration:e},a))}function da(a){var e=d(a,[]);return jsxRuntime.jsx(na,{children:jsxRuntime.jsx(radixUi.Tooltip.Root,l({"data-slot":"tooltip"},e))})}function ia(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,l({"data-slot":"tooltip-trigger"},e))}function ua(r){var s=r,{className:e,sideOffset:a=0,children:o}=s,t=d(s,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.Tooltip.Content,f(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,jsxRuntime.jsx(radixUi.Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function $f(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsxRuntime.jsx("table",f(l({className:n("w-full border-collapse text-left",a)},o),{children:e}))})}function Jf(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("thead",f(l({className:n("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function Yf(s){var i=s,{children:e,className:a,tooltip:o,highlight:t}=i,r=d(i,["children","className","tooltip","highlight"]);return jsxRuntime.jsx("th",f(l({className:n("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:n(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(na,{children:jsxRuntime.jsxs(da,{children:[jsxRuntime.jsx(ia,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(ua,{children:o})]})})]})}))}function ec(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("tbody",f(l({className:n("bg-surface-card",a)},o),{children:e}))}function ac(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("tr",f(l({className:n("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function tc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("td",{className:"py-4 pl-5 align-middle",children:jsxRuntime.jsx("div",f(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 oc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("td",f(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:n("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function rc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("div",f(l({className:n("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function sc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("span",f(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function lc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("span",f(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function nc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx(ye,f(l({className:n("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsxRuntime.jsx(icons.CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function dc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("td",f(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:n("flex flex-col items-start gap-2",a),children:e})}))}function ic(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("p",f(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 uc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsxRuntime.jsx("div",f(l({className:n("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function fc(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,s=d(u,["src","alt","fallback","className","tooltip"]);let c=jsxRuntime.jsxs(co,f(l({size:"sm",className:n("ring-2 ring-background",t)},s),{children:[jsxRuntime.jsx(po,{src:e,alt:a}),jsxRuntime.jsx(mo,{children:o})]}));return r?jsxRuntime.jsx(na,{children:jsxRuntime.jsxs(da,{children:[jsxRuntime.jsx(ia,{asChild:true,children:c}),jsxRuntime.jsx(ua,{children:r})]})}):c}function cc(r){var s=r,{children:e,className:a,icon:o}=s,t=d(s,["children","className","icon"]);return jsxRuntime.jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(ye,{variant:"regular-soft",className:a,icon:o,children:e})}))}function pc({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 jsxRuntime.jsx("div",{className:n("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:n("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function mc(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?jsxRuntime.jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsxRuntime.jsx(icons.RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsxRuntime.jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsxRuntime.jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsxs("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxRuntime.jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsxRuntime.jsx(pc,{percentage:i})]})}))}var gc={notStarted:{icon:icons.RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:icons.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:icons.Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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:icons.CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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 xc(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function hc(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,c=e===0,p=a<o,m=o-a,b=xc(c,p,u),{icon:x,bgColor:T,iconColor:v,titleClassName:M,title:D,subtitle:G}=gc[b],P={progress:u,correct:a,answered:e,remainingQuestions:m};return jsxRuntime.jsx("td",f(l({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:n("flex size-4 items-center justify-center rounded-full",T),children:jsxRuntime.jsx(x,{className:n("size-3",v),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:n("whitespace-nowrap",M),children:D(P)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:G(P)})]})]})})}))}function bc(r){var s=r,{children:e,className:a,onClick:o}=s,t=d(s,["children","className","onClick"]);return jsxRuntime.jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(ie,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var fl=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Lc=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),cl=classVarianceAuthority.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}}),pl=classVarianceAuthority.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 vc({state:e,className:a}){let o=Ae(),t=E.useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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"?jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntime.jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsxRuntime.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"})]}):jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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 Ic(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function kc({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:s="md",className:i,classNameContainer:u,classNameLabels:c}){let[p,m]=E.useState(e!=null?e:0),[b,x]=E.useState(null),T=e!==void 0,v=T?e:p,M=P=>{if(t)return;let k=P+1;T||m(k),a==null||a(k);},D=P=>{t||x(P);},G=()=>{t||x(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:n("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:n("inline-flex flex-row gap-1",u),onMouseLeave:G,children:Array.from({length:o},(P,k)=>{let j=b!==null,z=j&&k<=b,g=b===k,I=j?z?"full":"empty":Ic(k,v);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>M(k),onMouseEnter:()=>D(k),className:cl({size:s,readOnly:t}),"aria-label":`Rate ${k+1} out of ${o}`,children:jsxRuntime.jsx(vc,{state:I,className:g&&!t?Lc({size:s}):fl({size:s})})},k)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:n(pl({size:s}),c),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Uo(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsxs(radixUi.ScrollArea.Root,f(l({"data-slot":"scroll-area",className:n("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(Ya,{}),jsxRuntime.jsx(Ya,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function Ya(t){var r=t,{className:e,orientation:a="vertical"}=r,o=d(r,["className","orientation"]);return jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaScrollbar,f(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:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Vt=E.createContext({invalid:false,size:"lg"});function Rc(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=d(r,["invalid","size"]);return jsxRuntime.jsx(Vt.Provider,{value:{invalid:e,size:a},children:jsxRuntime.jsx(radixUi.Select.Root,l({"data-slot":"select"},o))})}function Mc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function Dc(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxRuntime.jsx("label",f(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 Bc(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,l({"data-slot":"select-group"},e))}function Nc(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,l({"data-slot":"select-value"},e))}var Fc=classVarianceAuthority.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"}}),Ec=classVarianceAuthority.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 Oc(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{invalid:s,size:i}=E.useContext(Vt);return jsxRuntime.jsxs(radixUi.Select.Trigger,f(l({className:n(Fc({size:i}),!s&&"[&:not([data-placeholder]):not(:disabled)]: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,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:n("flex-shrink-0 text-gray-foreground"),strokeWidth:1.6})})]}))}function zc(r){var s=r,{className:e,children:a,position:o="popper"}=s,t=d(s,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.Select.Content,f(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:[jsxRuntime.jsx(xl,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:n("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(hl,{})]}))})}function Hc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,l({className:n("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function qc(r){var s=r,{className:e,children:a,icon:o}=s,t=d(s,["className","children","icon"]);let{size:i}=E.useContext(Vt);return jsxRuntime.jsxs(radixUi.Select.Item,f(l({className:n(Ec({size:i}),e),"data-slot":"select-item"},t),{children:[o&&jsxRuntime.jsx("span",{className:"flex shrink-0 items-center justify-center text-gray-foreground",children:E.isValidElement(o)?E.cloneElement(o,{strokeWidth:1.6}):o}),jsxRuntime.jsx(radixUi.Select.ItemText,{children:a}),jsxRuntime.jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.Select.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{strokeWidth:1.6,className:"text-secondary-foreground"})})})]}))}function Vc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,l({className:n("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function xl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,f(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsxRuntime.jsx(icons.ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function hl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,f(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsxRuntime.jsx(icons.ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Uc(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=E.useContext(Vt);return jsxRuntime.jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var bl=E.createContext(null);function Xc(r){var s=r,{className:e,size:a="md",children:o}=s,t=d(s,["className","size","children"]);return jsxRuntime.jsx(bl.Provider,{value:{size:a},children:jsxRuntime.jsx(radixUi.Tabs.Root,f(l({"data-slot":"tabs",className:n("flex flex-col gap-2",e)},t),{children:o}))})}function Kc(t){var r=t,{className:e,containerClassName:a}=r,o=d(r,["className","containerClassName"]);return jsxRuntime.jsxs(Uo,{className:n("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.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)),jsxRuntime.jsx(Ya,{orientation:"horizontal"})]})}var Cl=classVarianceAuthority.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 jc(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 c=x=>x!=null&&x!==0&&x!==""&&x!=="0"&&!s.disabled,p=E.useContext(bl),m=(b=p==null?void 0:p.size)!=null?b:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(l({"data-slot":"tabs-trigger",className:n(Cl({size:m,className:e}))},s),{children:[a,r&&jsxRuntime.jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsxRuntime.jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),c(o)&&jsxRuntime.jsx(aa,{size:m,variant:t,children:String(o)})]}))}function Zc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content",className:n("flex-1 outline-none",e)},a))}var Ll=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),Xo=e=>{let a=Qc(e);return a.charAt(0).toUpperCase()+a.slice(1)},_t=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),vl=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Il={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 yl=E.forwardRef((p,c)=>{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 E.createElement("svg",l(l(f(l({ref:c},Il),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:_t("lucide",r)}),!s&&!vl(u)&&{"aria-hidden":"true"}),u),[...i.map(([b,x])=>E.createElement(b,x)),...Array.isArray(s)?s:[s]])});var Sl=(e,a)=>{let o=E.forwardRef((i,s)=>{var u=i,{className:t}=u,r=d(u,["className"]);return E.createElement(yl,l({ref:s,iconNode:a,className:_t(`lucide-${Ll(Xo(e))}`,`lucide-${e}`,t)},r))});return o.displayName=Xo(e),o};var ep=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],et=Sl("x",ep);function jo(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"sheet"},e))}function ap(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"sheet-trigger"},e))}function tp(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"sheet-close"},e))}function op(a){var e=d(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"sheet-portal"},e))}function rp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.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 Zo(r){var s=r,{className:e,children:a,side:o="right"}=s,t=d(s,["className","children","side"]);return jsxRuntime.jsxs(op,{children:[jsxRuntime.jsx(rp,{}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(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,jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(et,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function sp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-header",className:n("flex flex-col gap-1.5 p-4",e)},a))}function lp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-footer",className:n("mt-auto flex flex-col gap-2 p-4",e)},a))}function np(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,l({"data-slot":"sheet-title",className:n("font-semibold text-foreground",e)},a))}function dp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"sheet-description",className:n("text-muted-foreground text-sm",e)},a))}function Gt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"skeleton",className:n("animate-pulse rounded-md bg-gray-150",e)},a))}var bp="sidebar_state",Cp=3600*24*7,Lp="b",Al=E.createContext(null);function Ta(){let e=E.useContext(Al);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function vp(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 c=Za(),[p,m]=E.useState(false),[b,x]=E.useState(e),T=a!=null?a:b,v=E.useCallback(P=>{let k=typeof P=="function"?P(T):P;o?o(k):x(k),document.cookie=`${bp}=${k}; path=/; max-age=${Cp}`;},[o,T]),M=E.useCallback(()=>c?m(P=>!P):v(P=>!P),[c,v,m]);E.useEffect(()=>{let P=k=>{k.key===Lp&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),M());};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[M]);let D=T?"expanded":"collapsed",G=E.useMemo(()=>({state:D,open:T,setOpen:v,isMobile:c,openMobile:p,setOpenMobile:m,toggleSidebar:M}),[D,T,v,c,p,m,M]);return jsxRuntime.jsx(Al.Provider,{value:G,children:jsxRuntime.jsx(na,{delayDuration:0,children:jsxRuntime.jsx("div",f(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 Ip(u){var c=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:s}=c,i=d(c,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:b,setOpenMobile:x}=Ta();return o==="none"?jsxRuntime.jsx("div",f(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?jsxRuntime.jsx(jo,f(l({open:b,onOpenChange:x},i),{children:jsxRuntime.jsx(Zo,{"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:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:s})})})):jsxRuntime.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:[jsxRuntime.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)]")}),jsxRuntime.jsx("div",f(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:jsxRuntime.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 kp(c){var p=c,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.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}=Ta(),[T,v]=E.useState(false),D=s||{open:"Esconder",closed:"Mostrar"},G=()=>i&&T?b?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,P=jsxRuntime.jsxs("button",f(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?()=>v(true):void 0,onMouseLeave:!x&&i?()=>v(false):void 0},u),{children:[G(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||x?P:jsxRuntime.jsxs(da,{children:[jsxRuntime.jsx(ia,{asChild:true,children:P}),jsxRuntime.jsx(ua,{side:"right",align:"center",children:b?D.open:D.closed})]})}function yp(o){var t=o,{className:e}=t,a=d(t,["className"]);let{toggleSidebar:r}=Ta();return jsxRuntime.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 Sp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Pp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(Ho,l({"data-slot":"sidebar-input","data-sidebar":"input",className:n("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function wp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Tp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Ap(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(xa,l({"data-slot":"sidebar-separator","data-sidebar":"separator",className:n("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function Rp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Mp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Dp(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"div";return jsxRuntime.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 Bp(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"button";return jsxRuntime.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 Np(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n("w-full text-sm",e)},a))}function Fp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Ep(r){var s=r,{className:e,isActive:a,children:o}=s,t=d(s,["className","isActive","children"]);return jsxRuntime.jsxs("li",f(l({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Op=classVarianceAuthority.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] [&>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 zp(u){var c=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:s}=c,i=d(c,["asChild","isActive","variant","size","tooltip","className"]);let p=e?radixUi.Slot.Slot:"button",{isMobile:m,state:b}=Ta(),x=jsxRuntime.jsx(p,l({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:n(Op({variant:o,size:t}),s)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(da,{children:[jsxRuntime.jsx(ia,{asChild:true,children:x}),jsxRuntime.jsx(ua,l({side:"right",align:"center",hidden:b!=="collapsed"||m},r))]})):x}function Hp(r){var s=r,{className:e,asChild:a=false,showOnHover:o=false}=s,t=d(s,["className","asChild","showOnHover"]);let i=a?radixUi.Slot.Slot:"button";return jsxRuntime.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 qp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 Vp(t){var r=t,{className:e,showIcon:a=false}=r,o=d(r,["className","showIcon"]);let s=E.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",f(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&&jsxRuntime.jsx(Gt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Gt,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function Up(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.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 _p(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("li",l({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:n("group/menu-sub-item relative",e)},a))}function Gp({icon:e,title:a}){let{state:o,isMobile:t}=Ta();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[E.isValidElement(e)?E.cloneElement(e):e,jsxRuntime.jsx("span",{className:n("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function Wp(){return jsxRuntime.jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:20})})}function Xp(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?radixUi.Slot.Slot:"a";return jsxRuntime.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 Qp={sm:"size-2",md:"size-3",lg:"size-4"},Ml={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},$p={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]"},Dl=classVarianceAuthority.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 Jp(c){var p=c,{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]=E.useState(i||false),x=s!==void 0,T=x?s:m,v=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,f(l({"data-slot":"switch",className:n("group",Dl({size:a,variant:o}),e),checked:s,defaultChecked:i,onCheckedChange:M=>{var D;x||b(M),(D=u.onCheckedChange)==null||D.call(u,M);}},u),{children:jsxRuntime.jsx(radixUi.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",v&&"!bg-transparent data-[disabled]:!bg-transparent",Qp[a||"md"],$p[a||"md"]),children:v&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[T&&t&&jsxRuntime.jsx("span",{className:n("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",Ml[a||"md"]),children:t}),!T&&r&&jsxRuntime.jsx("span",{className:n("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",Ml[a||"md"]),children:r})]})})}))}var Bl=E.createContext({});function rm({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:s}){let[i,u]=E.useState(a||""),c={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(Bl.Provider,{value:c,children:jsxRuntime.jsx(wo,{open:t,defaultOpen:r,onOpenChange:s,children:e})})}function sm({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(To,{className:o,asChild:a,children:e})}function lm({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(Ao,{className:t,align:a,side:o,children:e})}function nm({children:e,label:a}){let{value:o,onValueChange:t}=E.useContext(Bl);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Mo,{children:a}),jsxRuntime.jsx(Pt,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(Pt,{value:o,onValueChange:t,children:e})}function dm({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(Ro,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(St,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function im({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(St,{onClick:a,children:[o,e]})}function um(){return jsxRuntime.jsx(Do,{})}var El=E.createContext(null),xm=150,Nl=16,hm="w-8";function Zt(){let e=E.useContext(El);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function bm(e,a){let o=E.useRef(null);return E.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),E.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var Ol=classVarianceAuthority.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"}}),zl=classVarianceAuthority.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"}}),Cm=classVarianceAuthority.cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),Fl=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",hm],{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"}}),Hl=classVarianceAuthority.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 Lm(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[c,p]=E.useState(o),m=E.useCallback(()=>{if(typeof window=="undefined")return;let x=parseInt(ya.tablet),T=parseInt(ya.mobile),v=window.innerWidth;v<=T||v<=x?p("md"):p(o);},[o]),b=bm(m,xm);return E.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[t,o,m,b]),jsxRuntime.jsx(El.Provider,{value:{variant:a,size:o,responsiveSize:c},children:jsxRuntime.jsx(radixUi.Tabs.Root,f(l({"data-slot":"tabs","data-variant":a,"data-size":c,className:n("flex w-full max-w-full flex-col overflow-hidden",e)},s),{children:r}))})}function vm(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,responsiveSize:i}=Zt(),u=E.useRef(null),c=E.useRef(null),[p,m]=E.useState(false),[b,x]=E.useState(false),[T,v]=E.useState(null),M=E.useCallback(()=>{let P=u.current;if(!P)return;let{scrollLeft:k,scrollWidth:j,clientWidth:z}=P,g=j>z;m(g&&k>0),x(g&&k<j-z-1);},[]),D=E.useCallback(()=>{let P=c.current;if(!P)return;let k=P.querySelector('[data-state="active"]');if(k){let j=P.getBoundingClientRect(),z=k.getBoundingClientRect();v({left:z.left-j.left,width:z.width});}},[]),G=E.useCallback(()=>{let P=u.current,k=c.current;if(!P||!k)return;let j=k.querySelector('[data-state="active"]');if(j){let z=P.getBoundingClientRect(),g=j.getBoundingClientRect();g.left<z.left?P.scrollBy({left:g.left-z.left-Nl,behavior:"smooth"}):g.right>z.right&&P.scrollBy({left:g.right-z.right+Nl,behavior:"smooth"});}},[]);return E.useEffect(()=>{let P=u.current;if(!P)return;M();let k=new ResizeObserver(()=>{M(),D();});return k.observe(P),P.addEventListener("scroll",M,{passive:true}),()=>{k.disconnect(),P.removeEventListener("scroll",M);}},[M,D]),E.useEffect(()=>{D();},[D,a]),E.useEffect(()=>{let P=c.current;if(!P)return;let k=new MutationObserver(j=>{for(let z of j)if(z.type==="attributes"&&z.attributeName==="data-state"){D(),G();break}});return k.observe(P,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>k.disconnect()},[D,G]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:Cm({variant:s}),children:[jsxRuntime.jsx("div",{className:n(Fl({side:"left",variant:s}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:n(Fl({side:"right",variant:s}),b?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsx(radixUi.Tabs.List,f(l({"data-slot":"tabs-list","data-variant":s,"data-size":i,className:n(Ol({variant:s}),e)},o),{children:a})),T&&jsxRuntime.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 Im(s){var i=s,{className:e,children:a,icon:o,badge:t}=i,r=d(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:c}=Zt(),p=E.useRef(null),[m,b]=E.useState(false);E.useEffect(()=>{let T=p.current;if(!T)return;let v=()=>{b(T.getAttribute("data-state")==="active");};v();let M=new MutationObserver(v);return M.observe(T,{attributes:true,attributeFilter:["data-state"]}),()=>M.disconnect()},[]);let x=()=>o?E.isValidElement(o)?E.cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(l({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":c,className:n(zl({variant:u,size:c}),e)},r),{children:[o&&jsxRuntime.jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:x()}),jsxRuntime.jsx("span",{children:a}),t&&jsxRuntime.jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function km(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r,responsiveSize:s}=Zt();return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content","data-variant":r,"data-size":s,className:n(Hl({variant:r,size:s}),e)},a))}var ql=classVarianceAuthority.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 wm(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 c=o?radixUi.Slot.Slot:"div";return jsxRuntime.jsxs(c,f(l({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:n(ql({variant:a,className:e}),s.onClick&&!t&&"cursor-pointer")},s),{children:[s.children,s.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Tm(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsxRuntime.jsx("div",f(l({"data-slot":"tile-icon",className:n("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Am(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"tile-title",className:n("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function Rm(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"tile-description",className:n("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var Nm=3,Fm=5e3,_e={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},Jo=0;function Em(){return Jo=(Jo+1)%Number.MAX_SAFE_INTEGER,Jo.toString()}var Yo=new Map,Vl=e=>{if(Yo.has(e))return;let a=setTimeout(()=>{Yo.delete(e),st({type:_e.REMOVE_TOAST,toastId:e});},Fm);Yo.set(e,a);},Om=(e,a)=>{switch(a.type){case _e.ADD_TOAST:return f(l({},e),{toasts:[a.toast,...e.toasts].slice(0,Nm)});case _e.UPDATE_TOAST:return f(l({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?l(l({},o),a.toast):o)});case _e.DISMISS_TOAST:{let{toastId:o}=a;return o?Vl(o):e.toasts.forEach(t=>{Vl(t.id);}),f(l({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?f(l({},t),{open:false}):t)})}case _e.REMOVE_TOAST:return a.toastId===void 0?f(l({},e),{toasts:[]}):f(l({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},$t=[],Jt={toasts:[]};function st(e){Jt=Om(Jt,e),[...$t].forEach(a=>{a(Jt);});}function zm(a){var e=d(a,[]);let o=Em(),t=s=>st({type:_e.UPDATE_TOAST,toast:f(l({},s),{id:o})}),r=()=>st({type:_e.DISMISS_TOAST,toastId:o});return st({type:_e.ADD_TOAST,toast:f(l({},e),{id:o,open:true,onOpenChange:s=>{s||r();}})}),{id:o,dismiss:r,update:t}}function er(){let[e,a]=E.useState(Jt);return E.useEffect(()=>($t.push(a),()=>{let o=$t.indexOf(a);o>-1&&$t.splice(o,1);}),[]),f(l({},e),{toast:zm,dismiss:o=>st({type:_e.DISMISS_TOAST,toastId:o})})}var Gl=classVarianceAuthority.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"}}),Wm=classVarianceAuthority.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"}}),Xm={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},Km={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},Wl=radixUi.Toast.Provider;function Xl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,l({"data-slot":"toast-viewport",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 Kl(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 c=Km[a||"primary"];return jsxRuntime.jsx(radixUi.Toast.Root,f(l({duration:t},s),{forceMount:true,asChild:true,children:jsxRuntime.jsxs(framerMotion.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(Gl({variant:a}),e),children:[o&&jsxRuntime.jsx(c,{className:n(Wm({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function jm(c){var p=c,{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 jsxRuntime.jsx(radixUi.Toast.Action,f(l({asChild:true,altText:i,className:n("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(ie,{iconLeft:t,iconRight:r,size:o,variant:Xm[a],children:s})}))}function jl(t){var r=t,{className:e,label:a="Fechar"}=r,o=d(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,f(l({className:n("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(ie,{iconLeft:jsxRuntime.jsx(icons.CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function Zl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Title,l({className:n("flex-1 text-md font-medium",e)},a))}function Ql(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,l({className:n("text-xs",e)},a))}function Zm(){let{toasts:e}=er();return jsxRuntime.jsxs(Wl,{children:[jsxRuntime.jsx(framerMotion.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 jsxRuntime.jsxs(Kl,f(l({},s),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(Zl,{children:o}),t&&jsxRuntime.jsx(Ql,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(jl,{})]})]}),a)})}),jsxRuntime.jsx(Xl,{})]})}/*! 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
- */exports.Alert=zn;exports.AlertActions=_n;exports.AlertButton=Gn;exports.AlertContainer=qn;exports.AlertContent=Vn;exports.AlertDescription=wr;exports.AlertDialog=td;exports.AlertDialogAction=id;exports.AlertDialogCancel=ud;exports.AlertDialogContent=rd;exports.AlertDialogDescription=dd;exports.AlertDialogFooter=ld;exports.AlertDialogHeader=sd;exports.AlertDialogOverlay=Nr;exports.AlertDialogPortal=Br;exports.AlertDialogTitle=nd;exports.AlertDialogTrigger=od;exports.AlertIcon=Un;exports.AlertTitle=Pr;exports.Autocomplete=Wd;exports.AutocompleteContent=jd;exports.AutocompleteContentFooter=lo;exports.AutocompleteGroup=Qd;exports.AutocompleteItem=Zd;exports.AutocompleteText=$d;exports.AutocompleteTrigger=Kd;exports.AutocompleteWrapper=Xd;exports.Avatar=io;exports.AvatarFallback=fo;exports.AvatarImage=uo;exports.Badge=aa;exports.Breadcrumb=Va;exports.BreadcrumbEllipsis=li;exports.BreadcrumbItem=pt;exports.BreadcrumbLink=si;exports.BreadcrumbList=Ua;exports.BreadcrumbPage=co;exports.BreadcrumbSeparator=po;exports.Button=ie;exports.CardContinue=Gi;exports.CardContinueBreadcrumb=ji;exports.CardContinueButton=Qi;exports.CardContinueContent=Xi;exports.CardContinueHeader=Ki;exports.CardContinueImage=Wi;exports.CardContinueTitle=Zi;exports.CardLesson=su;exports.CardLessonButton=pu;exports.CardLessonContent=nu;exports.CardLessonFooter=fu;exports.CardLessonHeader=du;exports.CardLessonImage=lu;exports.CardLessonLabel=iu;exports.CardLessonStatus=cu;exports.CardLessonTitle=uu;exports.CardModule=Bi;exports.CardModuleAction=qi;exports.CardModuleButton=zi;exports.CardModuleFooter=Hi;exports.CardModuleHeader=Ni;exports.CardModuleLabel=Fi;exports.CardModuleProgress=Oi;exports.CardModuleTitle=Ei;exports.CardWeek=mi;exports.CardWeekActions=wi;exports.CardWeekBreadcrumb=gi;exports.CardWeekContainer=xi;exports.CardWeekContent=yi;exports.CardWeekDescription=Li;exports.CardWeekFooter=ki;exports.CardWeekHeader=hi;exports.CardWeekProgress=Ii;exports.CardWeekProgressCircle=Ci;exports.CardWeekStatus=Pi;exports.CardWeekTags=vi;exports.CardWeekText=Si;exports.CardWeekTitle=bi;exports.Checkbox=hu;exports.Collapsible=vu;exports.CollapsibleContent=Iu;exports.CollapsibleTrigger=Cu;exports.DatePicker=zu;exports.DatePickerLabel=Ou;exports.DatePickerText=Hu;exports.DatePickerWrapper=Eu;exports.DateRangePicker=qu;exports.Dialog=Rd;exports.DialogClose=Dd;exports.DialogContainer=Bd;exports.DialogContent=Nd;exports.DialogDescription=Hd;exports.DialogFooter=Ed;exports.DialogHeader=Fd;exports.DialogOverlay=as;exports.DialogPortal=es;exports.DialogTitle=Od;exports.DialogTrigger=Md;exports.DropdownMenu=Co;exports.DropdownMenuCheckboxItem=Tu;exports.DropdownMenuContent=ko;exports.DropdownMenuGroup=wu;exports.DropdownMenuItem=It;exports.DropdownMenuLabel=So;exports.DropdownMenuPortal=Pu;exports.DropdownMenuRadioGroup=kt;exports.DropdownMenuRadioItem=yo;exports.DropdownMenuSeparator=Po;exports.DropdownMenuShortcut=Au;exports.DropdownMenuSub=Ru;exports.DropdownMenuSubContent=Du;exports.DropdownMenuSubTrigger=Mu;exports.DropdownMenuTrigger=Io;exports.Input=Bo;exports.InputAdornment=Mo;exports.InputEndIcon=Do;exports.InputField=Yu;exports.InputLabel=ef;exports.InputNumeric=Gs;exports.InputPassword=_s;exports.InputStartIcon=Mt;exports.InputText=af;exports.InputWrapper=Ju;exports.Label=lf;exports.Loading=eo;exports.Logo=df;exports.LogoShort=uf;exports.Pagination=hf;exports.PaginationContent=js;exports.PaginationEllipsis=Js;exports.PaginationInfo=No;exports.PaginationItem=Bt;exports.PaginationLink=Zs;exports.PaginationNext=$s;exports.PaginationPrevious=Qs;exports.PaginationRoot=Ks;exports.Progress=_a;exports.ProgressCircle=xo;exports.RadioGroup=Cf;exports.RadioGroupItem=If;exports.Ranking=Rf;exports.RankingAssigneeGroup=_f;exports.RankingAssigneeItem=Gf;exports.RankingAssigneeLabel=Uf;exports.RankingAssigneesColumn=Vf;exports.RankingBody=Bf;exports.RankingButton=$f;exports.RankingHeader=Mf;exports.RankingHeaderCell=Df;exports.RankingItem=Nf;exports.RankingNumber=Ff;exports.RankingPerformance=Qf;exports.RankingPriority=Wf;exports.RankingQuestions=Kf;exports.RankingSpecialty=Hf;exports.RankingSuperFocus=qf;exports.RankingTopic=zf;exports.RankingTopicColumn=Ef;exports.RankingTopicContent=Of;exports.Rating=tc;exports.RatingButtonVariants=sl;exports.RatingLabelVariants=ll;exports.RatingStarVariants=rl;exports.ScrollArea=Eo;exports.ScrollBar=Qa;exports.SegmentControl=Sc;exports.SegmentControlContent=Tc;exports.SegmentControlList=Pc;exports.SegmentControlTrigger=wc;exports.Select=ic;exports.SelectContent=hc;exports.SelectGroup=cc;exports.SelectHeader=bc;exports.SelectItem=Lc;exports.SelectLabel=fc;exports.SelectScrollDownButton=ul;exports.SelectScrollUpButton=il;exports.SelectSeparator=vc;exports.SelectText=Cc;exports.SelectTrigger=xc;exports.SelectValue=pc;exports.SelectWrapper=uc;exports.Separator=ma;exports.Sheet=Uo;exports.SheetClose=Fc;exports.SheetContent=_o;exports.SheetDescription=Vc;exports.SheetFooter=zc;exports.SheetHeader=Hc;exports.SheetTitle=qc;exports.SheetTrigger=Nc;exports.Sidebar=ap;exports.SidebarContent=ip;exports.SidebarFooter=np;exports.SidebarGroup=up;exports.SidebarGroupAction=cp;exports.SidebarGroupContent=pp;exports.SidebarGroupLabel=fp;exports.SidebarHeader=lp;exports.SidebarInput=sp;exports.SidebarInset=rp;exports.SidebarMenu=mp;exports.SidebarMenuAction=bp;exports.SidebarMenuBadge=Lp;exports.SidebarMenuButton=hp;exports.SidebarMenuItem=gp;exports.SidebarMenuItemCollapse=yp;exports.SidebarMenuItemTitle=kp;exports.SidebarMenuSkeleton=vp;exports.SidebarMenuSub=Cp;exports.SidebarMenuSubButton=Sp;exports.SidebarMenuSubItem=Ip;exports.SidebarProvider=ep;exports.SidebarRail=op;exports.SidebarSeparator=dp;exports.SidebarTrigger=tp;exports.Skeleton=Vt;exports.Switch=Mp;exports.Switcher=Op;exports.SwitcherContent=zp;exports.SwitcherFooter=Up;exports.SwitcherGroup=qp;exports.SwitcherItem=Vp;exports.SwitcherSeparator=_p;exports.SwitcherTrigger=Hp;exports.Tabs=Yp;exports.TabsContent=tm;exports.TabsList=em;exports.TabsTrigger=am;exports.Tag=qe;exports.Tile=lm;exports.TileDescription=im;exports.TileIcon=nm;exports.TileTitle=dm;exports.Toast=ql;exports.ToastAction=wm;exports.ToastClose=Vl;exports.ToastDescription=_l;exports.ToastProvider=Hl;exports.ToastTitle=Ul;exports.ToastViewport=zl;exports.Toaster=Tm;exports.Tooltip=la;exports.TooltipContent=da;exports.TooltipProvider=sa;exports.TooltipTrigger=na;exports.alertButtonVariants=Tr;exports.alertVariants=Sr;exports.applyInputIconSize=va;exports.avatarVariants=ms;exports.badgeVariants=Rr;exports.buttonVariants=Na;exports.calculatePageNumbers=Ys;exports.cardLessonVariants=Is;exports.cardModuleStatusVariants=bt;exports.cardModuleVariants=vs;exports.checkboxVariants=Ss;exports.datePickerTriggerVariants=Ro;exports.labelVariants=Ws;exports.radioGroupVariants=el;exports.segmentControlTriggerVariants=cl;exports.switchVariants=Sl;exports.tabsContentVariants=Dl;exports.tabsListVariants=Rl;exports.tabsTriggerVariants=Ml;exports.tagVariants=hs;exports.tileVariants=Bl;exports.toastVariants=Ol;exports.useIsMobile=Xa;exports.useSidebar=Sa;exports.useTabsContext=Xt;exports.useToast=jo;//# sourceMappingURL=index.js.map
15
+ */exports.Alert=Xn;exports.AlertActions=Qn;exports.AlertButton=$n;exports.AlertContainer=Kn;exports.AlertContent=jn;exports.AlertDescription=Br;exports.AlertDialog=id;exports.AlertDialogAction=xd;exports.AlertDialogCancel=hd;exports.AlertDialogContent=fd;exports.AlertDialogDescription=gd;exports.AlertDialogFooter=pd;exports.AlertDialogHeader=cd;exports.AlertDialogOverlay=qr;exports.AlertDialogPortal=Hr;exports.AlertDialogTitle=md;exports.AlertDialogTrigger=ud;exports.AlertIcon=Zn;exports.AlertTitle=Dr;exports.Autocomplete=Jd;exports.AutocompleteContent=ai;exports.AutocompleteContentFooter=uo;exports.AutocompleteGroup=oi;exports.AutocompleteItem=ti;exports.AutocompleteText=ri;exports.AutocompleteTrigger=ei;exports.AutocompleteWrapper=Yd;exports.Avatar=co;exports.AvatarFallback=mo;exports.AvatarImage=po;exports.Badge=aa;exports.Breadcrumb=Ga;exports.BreadcrumbEllipsis=pi;exports.BreadcrumbItem=xt;exports.BreadcrumbLink=ci;exports.BreadcrumbList=Wa;exports.BreadcrumbPage=go;exports.BreadcrumbSeparator=xo;exports.Button=ie;exports.CardContinue=gu;exports.CardContinueBreadcrumb=Cu;exports.CardContinueButton=vu;exports.CardContinueContent=hu;exports.CardContinueHeader=bu;exports.CardContinueImage=xu;exports.CardContinueTitle=Lu;exports.CardLesson=Ru;exports.CardLessonButton=Hu;exports.CardLessonContent=Du;exports.CardLessonDuration=Eu;exports.CardLessonFooter=Ou;exports.CardLessonHeader=Bu;exports.CardLessonImage=Mu;exports.CardLessonLabel=Nu;exports.CardLessonStatus=zu;exports.CardLessonTitle=Fu;exports.CardModule=qi;exports.CardModuleAction=Ki;exports.CardModuleButton=Xi;exports.CardModuleFooter=Wi;exports.CardModuleHeader=Vi;exports.CardModuleLabel=Ui;exports.CardModuleProgress=Gi;exports.CardModuleTitle=_i;exports.CardTopic=ou;exports.CardTopicColumn=su;exports.CardTopicContent=uu;exports.CardTopicCount=iu;exports.CardTopicNumber=lu;exports.CardTopicProgress=du;exports.CardTopicTitle=nu;exports.CardTopicTrigger=ru;exports.CardWeek=vi;exports.CardWeekActions=Ni;exports.CardWeekBreadcrumb=Ii;exports.CardWeekContainer=ki;exports.CardWeekContent=Mi;exports.CardWeekDescription=Pi;exports.CardWeekFooter=Ri;exports.CardWeekHeader=yi;exports.CardWeekProgress=Ai;exports.CardWeekProgressCircle=Ti;exports.CardWeekStatus=Bi;exports.CardWeekTags=wi;exports.CardWeekText=Di;exports.CardWeekTitle=Si;exports.Checkbox=_u;exports.Collapsible=Io;exports.CollapsibleContent=yo;exports.CollapsibleTrigger=ko;exports.DatePicker=lf;exports.DatePickerLabel=rf;exports.DatePickerText=sf;exports.DatePickerWrapper=of;exports.DateRangePicker=nf;exports.Dialog=Od;exports.DialogClose=Hd;exports.DialogContainer=qd;exports.DialogContent=Vd;exports.DialogDescription=Wd;exports.DialogFooter=_d;exports.DialogHeader=Ud;exports.DialogOverlay=ns;exports.DialogPortal=ls;exports.DialogTitle=Gd;exports.DialogTrigger=zd;exports.DropdownMenu=wo;exports.DropdownMenuCheckboxItem=Zu;exports.DropdownMenuContent=Ao;exports.DropdownMenuGroup=ju;exports.DropdownMenuItem=St;exports.DropdownMenuLabel=Mo;exports.DropdownMenuPortal=Ku;exports.DropdownMenuRadioGroup=Pt;exports.DropdownMenuRadioItem=Ro;exports.DropdownMenuSeparator=Do;exports.DropdownMenuShortcut=Qu;exports.DropdownMenuSub=$u;exports.DropdownMenuSubContent=Yu;exports.DropdownMenuSubTrigger=Ju;exports.DropdownMenuTrigger=To;exports.Input=Ho;exports.InputAdornment=Oo;exports.InputEndIcon=zo;exports.InputField=vf;exports.InputLabel=If;exports.InputNumeric=$s;exports.InputPassword=Qs;exports.InputStartIcon=Nt;exports.InputText=kf;exports.InputWrapper=Lf;exports.Label=Tf;exports.Loading=oo;exports.Logo=Rf;exports.LogoShort=Mf;exports.Pagination=zf;exports.PaginationContent=al;exports.PaginationEllipsis=sl;exports.PaginationInfo=qo;exports.PaginationItem=Et;exports.PaginationLink=tl;exports.PaginationNext=rl;exports.PaginationPrevious=ol;exports.PaginationRoot=el;exports.Progress=sa;exports.ProgressCircle=Co;exports.RadioGroup=Uf;exports.RadioGroupItem=_f;exports.Ranking=$f;exports.RankingAssigneeGroup=uc;exports.RankingAssigneeItem=fc;exports.RankingAssigneeLabel=ic;exports.RankingAssigneesColumn=dc;exports.RankingBody=ec;exports.RankingButton=bc;exports.RankingHeader=Jf;exports.RankingHeaderCell=Yf;exports.RankingItem=ac;exports.RankingNumber=tc;exports.RankingPerformance=hc;exports.RankingPriority=cc;exports.RankingQuestions=mc;exports.RankingSpecialty=sc;exports.RankingSuperFocus=nc;exports.RankingTopic=lc;exports.RankingTopicColumn=oc;exports.RankingTopicContent=rc;exports.Rating=kc;exports.RatingButtonVariants=cl;exports.RatingLabelVariants=pl;exports.RatingStarVariants=fl;exports.ScrollArea=Uo;exports.ScrollBar=Ya;exports.SegmentControl=Xc;exports.SegmentControlContent=Zc;exports.SegmentControlList=Kc;exports.SegmentControlTrigger=jc;exports.Select=Rc;exports.SelectContent=zc;exports.SelectGroup=Bc;exports.SelectHeader=Hc;exports.SelectItem=qc;exports.SelectLabel=Dc;exports.SelectScrollDownButton=hl;exports.SelectScrollUpButton=xl;exports.SelectSeparator=Vc;exports.SelectText=Uc;exports.SelectTrigger=Oc;exports.SelectValue=Nc;exports.SelectWrapper=Mc;exports.Separator=xa;exports.Sheet=jo;exports.SheetClose=tp;exports.SheetContent=Zo;exports.SheetDescription=dp;exports.SheetFooter=lp;exports.SheetHeader=sp;exports.SheetTitle=np;exports.SheetTrigger=ap;exports.Sidebar=Ip;exports.SidebarContent=Rp;exports.SidebarFooter=Tp;exports.SidebarGroup=Mp;exports.SidebarGroupAction=Bp;exports.SidebarGroupContent=Np;exports.SidebarGroupLabel=Dp;exports.SidebarHeader=wp;exports.SidebarInput=Pp;exports.SidebarInset=Sp;exports.SidebarMenu=Fp;exports.SidebarMenuAction=Hp;exports.SidebarMenuBadge=qp;exports.SidebarMenuButton=zp;exports.SidebarMenuItem=Ep;exports.SidebarMenuItemCollapse=Wp;exports.SidebarMenuItemTitle=Gp;exports.SidebarMenuSkeleton=Vp;exports.SidebarMenuSub=Up;exports.SidebarMenuSubButton=Xp;exports.SidebarMenuSubItem=_p;exports.SidebarProvider=vp;exports.SidebarRail=yp;exports.SidebarSeparator=Ap;exports.SidebarTrigger=kp;exports.Skeleton=Gt;exports.Switch=Jp;exports.Switcher=rm;exports.SwitcherContent=lm;exports.SwitcherFooter=im;exports.SwitcherGroup=nm;exports.SwitcherItem=dm;exports.SwitcherSeparator=um;exports.SwitcherTrigger=sm;exports.Tabs=Lm;exports.TabsContent=km;exports.TabsList=vm;exports.TabsTrigger=Im;exports.Tag=ye;exports.Tile=wm;exports.TileDescription=Rm;exports.TileIcon=Tm;exports.TileTitle=Am;exports.Toast=Kl;exports.ToastAction=jm;exports.ToastClose=jl;exports.ToastDescription=Ql;exports.ToastProvider=Wl;exports.ToastTitle=Zl;exports.ToastViewport=Xl;exports.Toaster=Zm;exports.Tooltip=da;exports.TooltipContent=ua;exports.TooltipProvider=na;exports.TooltipTrigger=ia;exports.alertButtonVariants=Nr;exports.alertVariants=Mr;exports.applyInputIconSize=ka;exports.avatarVariants=Ls;exports.badgeVariants=Er;exports.buttonVariants=Oa;exports.calculatePageNumbers=ll;exports.cardLessonVariants=Rs;exports.cardModuleStatusVariants=vt;exports.cardModuleVariants=Ps;exports.checkboxVariants=Bs;exports.datePickerTriggerVariants=Eo;exports.labelVariants=Js;exports.radioGroupVariants=nl;exports.segmentControlTriggerVariants=Cl;exports.switchVariants=Dl;exports.tabsContentVariants=Hl;exports.tabsListVariants=Ol;exports.tabsTriggerVariants=zl;exports.tagVariants=ks;exports.tileVariants=ql;exports.toastVariants=Gl;exports.useIsMobile=Za;exports.useSidebar=Ta;exports.useTabsContext=Zt;exports.useToast=er;//# sourceMappingURL=index.js.map
16
16
  //# sourceMappingURL=index.js.map