@agilys-system/design-system 1.1.2 → 1.1.3

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),g=require("react"),Qr=require("react-dom");function Kr(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Kr(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Xr(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Kr(e))&&(s&&(s+=" "),s+=t);return s}const Lr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ar=Xr,ne=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return Ar(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(c=>{const h=r==null?void 0:r[c],p=a==null?void 0:a[c];if(h===null)return null;const b=Lr(h)||Lr(p);return n[c][b]}),o=r&&Object.entries(r).reduce((c,h)=>{let[p,b]=h;return b===void 0||(c[p]=b),c},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,h)=>{let{class:p,className:b,...W}=h;return Object.entries(W).every(R=>{let[M,y]=R;return Array.isArray(y)?y.includes({...a,...o}[M]):{...a,...o}[M]===y})?[...c,p,b]:c},[]);return Ar(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},lr="-",Pn=e=>{const t=Wn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const o=i.split(lr);return o[0]===""&&o.length!==1&&o.shift(),es(o,t)||In(i)},getConflictingClassGroupIds:(i,o)=>{const d=r[i]||[];return o&&s[i]?[...d,...s[i]]:d}}},es=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),n=s?es(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(lr);return(i=t.validators.find(({validator:o})=>o(a)))==null?void 0:i.classGroupId},zr=/^\[(.+)\]$/,In=e=>{if(zr.test(e)){const t=zr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Wn=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return An(Object.entries(e.classGroups),r).forEach(([a,i])=>{Xt(i,s,a,t)}),s},Xt=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Er(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Ln(n)){Xt(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Xt(i,Er(t,a),r,s)})})},Er=(e,t)=>{let r=e;return t.split(lr).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},Ln=e=>e.isThemeGetter,An=(e,t)=>t?e.map(([r,s])=>{const n=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,o])=>[t+i,o])):a);return[r,n]}):e,zn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,s=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},ts="!",En=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],a=t.length,i=o=>{const d=[];let c=0,h=0,p;for(let y=0;y<o.length;y++){let D=o[y];if(c===0){if(D===n&&(s||o.slice(y,y+a)===t)){d.push(o.slice(h,y)),h=y+a;continue}if(D==="/"){p=y;continue}}D==="["?c++:D==="]"&&c--}const b=d.length===0?o:o.substring(h),W=b.startsWith(ts),R=W?b.substring(1):b,M=p&&p>h?p-h:void 0;return{modifiers:d,hasImportantModifier:W,baseClassName:R,maybePostfixModifierPosition:M}};return r?o=>r({className:o,parseClassName:i}):i},Fn=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},Vn=e=>({cache:zn(e.cacheSize),parseClassName:En(e),...Pn(e)}),Un=/\s+/,Hn=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Un);let o="";for(let d=i.length-1;d>=0;d-=1){const c=i[d],{modifiers:h,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:W}=r(c);let R=!!W,M=s(R?b.substring(0,W):b);if(!M){if(!R){o=c+(o.length>0?" "+o:o);continue}if(M=s(b),!M){o=c+(o.length>0?" "+o:o);continue}R=!1}const y=Fn(h).join(":"),D=p?y+ts:y,z=D+M;if(a.includes(z))continue;a.push(z);const $=n(M,R);for(let S=0;S<$.length;++S){const q=$[S];a.push(D+q)}o=c+(o.length>0?" "+o:o)}return o};function Gn(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=rs(t))&&(s&&(s+=" "),s+=r);return s}const rs=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=rs(e[s]))&&(r&&(r+=" "),r+=t);return r};function $n(e,...t){let r,s,n,a=i;function i(d){const c=t.reduce((h,p)=>p(h),e());return r=Vn(c),s=r.cache.get,n=r.cache.set,a=o,o(d)}function o(d){const c=s(d);if(c)return c;const h=Hn(d,r);return n(d,h),h}return function(){return a(Gn.apply(null,arguments))}}const E=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ss=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bn=/^\d+\/\d+$/,Zn=new Set(["px","full","screen"]),qn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jn=/\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$/,Qn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ye=e=>He(e)||Zn.has(e)||Bn.test(e),Ye=e=>Ze(e,"length",oa),He=e=>!!e&&!Number.isNaN(Number(e)),Zt=e=>Ze(e,"number",He),tt=e=>!!e&&Number.isInteger(Number(e)),ea=e=>e.endsWith("%")&&He(e.slice(0,-1)),_=e=>ss.test(e),je=e=>qn.test(e),ta=new Set(["length","size","percentage"]),ra=e=>Ze(e,ta,ns),sa=e=>Ze(e,"position",ns),na=new Set(["image","url"]),aa=e=>Ze(e,na,da),ia=e=>Ze(e,"",la),rt=()=>!0,Ze=(e,t,r)=>{const s=ss.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},oa=e=>Jn.test(e)&&!Qn.test(e),ns=()=>!1,la=e=>Kn.test(e),da=e=>Xn.test(e),ca=()=>{const e=E("colors"),t=E("spacing"),r=E("blur"),s=E("brightness"),n=E("borderColor"),a=E("borderRadius"),i=E("borderSpacing"),o=E("borderWidth"),d=E("contrast"),c=E("grayscale"),h=E("hueRotate"),p=E("invert"),b=E("gap"),W=E("gradientColorStops"),R=E("gradientColorStopPositions"),M=E("inset"),y=E("margin"),D=E("opacity"),z=E("padding"),$=E("saturate"),S=E("scale"),q=E("sepia"),H=E("skew"),N=E("space"),w=E("translate"),P=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",_,t],I=()=>[_,t],Ke=()=>["",ye,Ye],Pe=()=>["auto",He,_],yt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ze=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",_],Ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[He,_];return{cacheSize:500,separator:":",theme:{colors:[rt],spacing:[ye,Ye],blur:["none","",je,_],brightness:ee(),borderColor:[e],borderRadius:["none","","full",je,_],borderSpacing:I(),borderWidth:Ke(),contrast:ee(),grayscale:B(),hueRotate:ee(),invert:B(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[ea,Ye],inset:Q(),margin:Q(),opacity:ee(),padding:I(),saturate:ee(),scale:ee(),sepia:B(),skew:ee(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[je]}],"break-after":[{"break-after":Ne()}],"break-before":[{"break-before":Ne()}],"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"],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:[...yt(),_]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tt,_]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",tt,_]}],"grid-cols":[{"grid-cols":[rt]}],"col-start-end":[{col:["auto",{span:["full",tt,_]},_]}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":[rt]}],"row-start-end":[{row:["auto",{span:[tt,_]},_]}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_,t]}],"min-w":[{"min-w":[_,t,"min","max","fit"]}],"max-w":[{"max-w":[_,t,"none","full","min","max","fit","prose",{screen:[je]},je]}],h:[{h:[_,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_,t,"auto","min","max","fit"]}],"font-size":[{text:["base",je,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zt]}],"font-family":[{font:[rt]}],"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:["tighter","tight","normal","wide","wider","widest",_]}],"line-clamp":[{"line-clamp":["none",He,Zt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ye,_]}],"list-image":[{"list-image":["none",_]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ye,Ye]}],"underline-offset":[{"underline-offset":["auto",ye,_]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...yt(),sa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ra]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[W]}],"gradient-via":[{via:[W]}],"gradient-to":[{to:[W]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...ze(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:ze()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ze()]}],"outline-offset":[{"outline-offset":[ye,_]}],"outline-w":[{outline:[ye,Ye]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[ye,Ye]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",je,ia]}],"shadow-color":[{shadow:[rt]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",je,_]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[p]}],saturate:[{saturate:[$]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[tt,_]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",_]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",_]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ye,Ye,Zt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},ua=$n(ca);function v(...e){return ua(Xr(e))}const as=ne("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),fa={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},L=g.forwardRef(({className:e,variant:t="body",weight:r,as:s,children:n,...a},i)=>{const o=s??fa[t??"body"];return g.createElement(o,{ref:i,className:v(as({variant:t,weight:r}),e),...a},n)});L.displayName="Text";const is=ne("inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3",md:"h-10 px-4",lg:"h-11 px-6",icon:"size-10 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),ha={sm:"bodySm",md:"body",lg:"body",icon:"body"},os=g.forwardRef(({className:e,variant:t,size:r,fullWidth:s,isLoading:n=!1,leftIcon:a,disabled:i,children:o,...d},c)=>{const h=r==="icon",p=ha[r??"md"];return l.jsxs("button",{ref:c,className:v(is({variant:t,size:r,fullWidth:s}),e),disabled:i||n,"aria-busy":n,...d,children:[n&&l.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!n&&a&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:a}),h?l.jsx("span",{className:"inline-flex shrink-0",children:o}):l.jsx(L,{as:"span",variant:p,className:"text-inherit",children:o})]})});os.displayName="Button";const ls=ne("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),ma={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},ds=g.forwardRef(({className:e,variant:t="filled",status:r="default",children:s,backgroundColor:n,textColor:a,style:i,...o},d)=>l.jsxs("span",{ref:d,className:v(ls({variant:t,status:r}),e),style:{...n?{backgroundColor:n}:void 0,...a?{color:a}:void 0,...i},...o,children:[t==="dot"&&l.jsx("span",{className:v("size-2 shrink-0 rounded-full",ma[r??"default"]),style:n?{backgroundColor:n}:void 0,"aria-hidden":"true"}),s&&(typeof s=="string"?l.jsx(L,{as:"span",variant:"body",className:"text-inherit",children:s}):s)]}));ds.displayName="Badge";const cs=ne("flex items-start gap-2 rounded-lg p-5 font-sans",{variants:{variant:{default:"border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",success:"border border-transparent bg-success-10",warning:"border border-transparent bg-warning-light",error:"border border-transparent bg-danger-10",info:"border border-transparent bg-primary-50"}},defaultVariants:{variant:"default"}}),pa={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function ya(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function ga(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ba(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function xa(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function va(){return l.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const wa={success:l.jsx(ga,{}),warning:l.jsx(ba,{}),error:l.jsx(xa,{}),info:l.jsx(ya,{})},Pt=g.forwardRef(({className:e,variant:t="default",icon:r,title:s,description:n,action:a,onClose:i,children:o,...d},c)=>{const h=t??"default",p=r===void 0?wa[h]:r,b=pa[h];return l.jsxs("div",{ref:c,className:v(cs({variant:t}),e),...d,children:[p&&l.jsx("span",{className:v("size-6 shrink-0",b),"aria-hidden":"true",children:p}),l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s&&l.jsx(L,{as:"div",variant:"body",weight:"semibold",className:b,children:s}),n&&l.jsx(L,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:n}),o]}),a&&l.jsx("div",{className:"flex shrink-0 items-center",children:a}),i&&l.jsx("button",{type:"button",onClick:i,"aria-label":"Fechar",className:v("flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",b),children:l.jsx(va,{})})]})});Pt.displayName="Card";var us={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fr=g.createContext&&g.createContext(us),_a=["attr","size","title"];function ka(e,t){if(e==null)return{};var r,s,n=Sa(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)r=a[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sa(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Mt.apply(null,arguments)}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,s)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(s){Ma(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Ma(e,t,r){return(t=Da(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Da(e){var t=Na(e,"string");return typeof t=="symbol"?t:t+""}function Na(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fs(e){return e&&e.map((t,r)=>g.createElement(t.tag,Dt({key:r},t.attr),fs(t.child)))}function ut(e){return t=>g.createElement(Oa,Mt({attr:Dt({},e.attr)},t),fs(e.child))}function Oa(e){var t=r=>{var s=e.attr,n=e.size,a=e.title,i=ka(e,_a),o=n||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),g.createElement("svg",Mt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,i,{className:d,style:Dt(Dt({color:e.color||r.color},r.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&g.createElement("title",null,a),e.children)};return Fr!==void 0?g.createElement(Fr.Consumer,null,r=>t(r)):t(us)}function Ya(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function ja(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Ta(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152"},child:[]},{tag:"rect",attr:{width:"416",height:"80",x:"48",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"28",ry:"28"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 304-64 64-64-64m64 41.89V224"},child:[]}]})(e)}function Ca(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"},child:[]}]})(e)}function Ra(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"},child:[]}]})(e)}//! moment.js
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),y=require("react"),Qr=require("react-dom");function Kr(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Kr(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Xr(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Kr(e))&&(s&&(s+=" "),s+=t);return s}const Lr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ar=Xr,ne=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return Ar(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(c=>{const h=r==null?void 0:r[c],p=a==null?void 0:a[c];if(h===null)return null;const b=Lr(h)||Lr(p);return n[c][b]}),o=r&&Object.entries(r).reduce((c,h)=>{let[p,b]=h;return b===void 0||(c[p]=b),c},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,h)=>{let{class:p,className:b,...P}=h;return Object.entries(P).every(R=>{let[M,g]=R;return Array.isArray(g)?g.includes({...a,...o}[M]):{...a,...o}[M]===g})?[...c,p,b]:c},[]);return Ar(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},lr="-",Pn=e=>{const t=Wn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const o=i.split(lr);return o[0]===""&&o.length!==1&&o.shift(),es(o,t)||In(i)},getConflictingClassGroupIds:(i,o)=>{const d=r[i]||[];return o&&s[i]?[...d,...s[i]]:d}}},es=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),n=s?es(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(lr);return(i=t.validators.find(({validator:o})=>o(a)))==null?void 0:i.classGroupId},zr=/^\[(.+)\]$/,In=e=>{if(zr.test(e)){const t=zr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Wn=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return An(Object.entries(e.classGroups),r).forEach(([a,i])=>{Xt(i,s,a,t)}),s},Xt=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Er(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Ln(n)){Xt(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Xt(i,Er(t,a),r,s)})})},Er=(e,t)=>{let r=e;return t.split(lr).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},Ln=e=>e.isThemeGetter,An=(e,t)=>t?e.map(([r,s])=>{const n=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,o])=>[t+i,o])):a);return[r,n]}):e,zn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,s=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},ts="!",En=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],a=t.length,i=o=>{const d=[];let c=0,h=0,p;for(let g=0;g<o.length;g++){let D=o[g];if(c===0){if(D===n&&(s||o.slice(g,g+a)===t)){d.push(o.slice(h,g)),h=g+a;continue}if(D==="/"){p=g;continue}}D==="["?c++:D==="]"&&c--}const b=d.length===0?o:o.substring(h),P=b.startsWith(ts),R=P?b.substring(1):b,M=p&&p>h?p-h:void 0;return{modifiers:d,hasImportantModifier:P,baseClassName:R,maybePostfixModifierPosition:M}};return r?o=>r({className:o,parseClassName:i}):i},Fn=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},Vn=e=>({cache:zn(e.cacheSize),parseClassName:En(e),...Pn(e)}),Un=/\s+/,Hn=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Un);let o="";for(let d=i.length-1;d>=0;d-=1){const c=i[d],{modifiers:h,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:P}=r(c);let R=!!P,M=s(R?b.substring(0,P):b);if(!M){if(!R){o=c+(o.length>0?" "+o:o);continue}if(M=s(b),!M){o=c+(o.length>0?" "+o:o);continue}R=!1}const g=Fn(h).join(":"),D=p?g+ts:g,z=D+M;if(a.includes(z))continue;a.push(z);const $=n(M,R);for(let S=0;S<$.length;++S){const q=$[S];a.push(D+q)}o=c+(o.length>0?" "+o:o)}return o};function Gn(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=rs(t))&&(s&&(s+=" "),s+=r);return s}const rs=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=rs(e[s]))&&(r&&(r+=" "),r+=t);return r};function $n(e,...t){let r,s,n,a=i;function i(d){const c=t.reduce((h,p)=>p(h),e());return r=Vn(c),s=r.cache.get,n=r.cache.set,a=o,o(d)}function o(d){const c=s(d);if(c)return c;const h=Hn(d,r);return n(d,h),h}return function(){return a(Gn.apply(null,arguments))}}const E=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ss=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bn=/^\d+\/\d+$/,Zn=new Set(["px","full","screen"]),qn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jn=/\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$/,Qn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ye=e=>He(e)||Zn.has(e)||Bn.test(e),Ye=e=>Ze(e,"length",oa),He=e=>!!e&&!Number.isNaN(Number(e)),Zt=e=>Ze(e,"number",He),tt=e=>!!e&&Number.isInteger(Number(e)),ea=e=>e.endsWith("%")&&He(e.slice(0,-1)),_=e=>ss.test(e),je=e=>qn.test(e),ta=new Set(["length","size","percentage"]),ra=e=>Ze(e,ta,ns),sa=e=>Ze(e,"position",ns),na=new Set(["image","url"]),aa=e=>Ze(e,na,da),ia=e=>Ze(e,"",la),rt=()=>!0,Ze=(e,t,r)=>{const s=ss.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},oa=e=>Jn.test(e)&&!Qn.test(e),ns=()=>!1,la=e=>Kn.test(e),da=e=>Xn.test(e),ca=()=>{const e=E("colors"),t=E("spacing"),r=E("blur"),s=E("brightness"),n=E("borderColor"),a=E("borderRadius"),i=E("borderSpacing"),o=E("borderWidth"),d=E("contrast"),c=E("grayscale"),h=E("hueRotate"),p=E("invert"),b=E("gap"),P=E("gradientColorStops"),R=E("gradientColorStopPositions"),M=E("inset"),g=E("margin"),D=E("opacity"),z=E("padding"),$=E("saturate"),S=E("scale"),q=E("sepia"),H=E("skew"),N=E("space"),w=E("translate"),I=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",_,t],W=()=>[_,t],Ke=()=>["",ye,Ye],Pe=()=>["auto",He,_],yt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ze=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",_],Ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[He,_];return{cacheSize:500,separator:":",theme:{colors:[rt],spacing:[ye,Ye],blur:["none","",je,_],brightness:ee(),borderColor:[e],borderRadius:["none","","full",je,_],borderSpacing:W(),borderWidth:Ke(),contrast:ee(),grayscale:B(),hueRotate:ee(),invert:B(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[ea,Ye],inset:Q(),margin:Q(),opacity:ee(),padding:W(),saturate:ee(),scale:ee(),sepia:B(),skew:ee(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[je]}],"break-after":[{"break-after":Ne()}],"break-before":[{"break-before":Ne()}],"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"],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:[...yt(),_]}],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:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tt,_]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",tt,_]}],"grid-cols":[{"grid-cols":[rt]}],"col-start-end":[{col:["auto",{span:["full",tt,_]},_]}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":[rt]}],"row-start-end":[{row:["auto",{span:[tt,_]},_]}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_,t]}],"min-w":[{"min-w":[_,t,"min","max","fit"]}],"max-w":[{"max-w":[_,t,"none","full","min","max","fit","prose",{screen:[je]},je]}],h:[{h:[_,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_,t,"auto","min","max","fit"]}],"font-size":[{text:["base",je,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zt]}],"font-family":[{font:[rt]}],"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:["tighter","tight","normal","wide","wider","widest",_]}],"line-clamp":[{"line-clamp":["none",He,Zt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ye,_]}],"list-image":[{"list-image":["none",_]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ye,Ye]}],"underline-offset":[{"underline-offset":["auto",ye,_]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...yt(),sa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ra]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...ze(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:ze()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ze()]}],"outline-offset":[{"outline-offset":[ye,_]}],"outline-w":[{outline:[ye,Ye]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[ye,Ye]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",je,ia]}],"shadow-color":[{shadow:[rt]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",je,_]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[p]}],saturate:[{saturate:[$]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[tt,_]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",_]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",_]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ye,Ye,Zt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},ua=$n(ca);function v(...e){return ua(Xr(e))}const as=ne("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),fa={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},L=y.forwardRef(({className:e,variant:t="body",weight:r,as:s,children:n,...a},i)=>{const o=s??fa[t??"body"];return y.createElement(o,{ref:i,className:v(as({variant:t,weight:r}),e),...a},n)});L.displayName="Text";const is=ne("inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3",md:"h-10 px-4",lg:"h-11 px-6",icon:"size-10 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),ha={sm:"bodySm",md:"body",lg:"body",icon:"body"},os=y.forwardRef(({className:e,variant:t,size:r,fullWidth:s,isLoading:n=!1,leftIcon:a,disabled:i,children:o,...d},c)=>{const h=r==="icon",p=ha[r??"md"];return l.jsxs("button",{ref:c,className:v(is({variant:t,size:r,fullWidth:s}),e),disabled:i||n,"aria-busy":n,...d,children:[n&&l.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!n&&a&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:a}),h?l.jsx("span",{className:"inline-flex shrink-0",children:o}):l.jsx(L,{as:"span",variant:p,className:"text-inherit",children:o})]})});os.displayName="Button";const ls=ne("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),ma={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},ds=y.forwardRef(({className:e,variant:t="filled",status:r="default",children:s,backgroundColor:n,textColor:a,style:i,...o},d)=>l.jsxs("span",{ref:d,className:v(ls({variant:t,status:r}),e),style:{...n?{backgroundColor:n}:void 0,...a?{color:a}:void 0,...i},...o,children:[t==="dot"&&l.jsx("span",{className:v("size-2 shrink-0 rounded-full",ma[r??"default"]),style:n?{backgroundColor:n}:void 0,"aria-hidden":"true"}),s&&(typeof s=="string"?l.jsx(L,{as:"span",variant:"body",className:"text-inherit",children:s}):s)]}));ds.displayName="Badge";const cs=ne("flex items-start gap-2 rounded-lg p-5 font-sans",{variants:{variant:{default:"border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",success:"border border-transparent bg-success-10",warning:"border border-transparent bg-warning-light",error:"border border-transparent bg-danger-10",info:"border border-transparent bg-primary-50"}},defaultVariants:{variant:"default"}}),pa={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function ya(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function ga(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ba(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function xa(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function va(){return l.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const wa={success:l.jsx(ga,{}),warning:l.jsx(ba,{}),error:l.jsx(xa,{}),info:l.jsx(ya,{})},Pt=y.forwardRef(({className:e,variant:t="default",icon:r,title:s,description:n,action:a,onClose:i,children:o,...d},c)=>{const h=t??"default",p=r===void 0?wa[h]:r,b=pa[h];return l.jsxs("div",{ref:c,className:v(cs({variant:t}),e),...d,children:[p&&l.jsx("span",{className:v("size-6 shrink-0",b),"aria-hidden":"true",children:p}),l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s&&l.jsx(L,{as:"div",variant:"body",weight:"semibold",className:b,children:s}),n&&l.jsx(L,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:n}),o]}),a&&l.jsx("div",{className:"flex shrink-0 items-center",children:a}),i&&l.jsx("button",{type:"button",onClick:i,"aria-label":"Fechar",className:v("flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",b),children:l.jsx(va,{})})]})});Pt.displayName="Card";var us={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fr=y.createContext&&y.createContext(us),_a=["attr","size","title"];function ka(e,t){if(e==null)return{};var r,s,n=Sa(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)r=a[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sa(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Mt.apply(null,arguments)}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,s)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(s){Ma(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Ma(e,t,r){return(t=Da(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Da(e){var t=Na(e,"string");return typeof t=="symbol"?t:t+""}function Na(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fs(e){return e&&e.map((t,r)=>y.createElement(t.tag,Dt({key:r},t.attr),fs(t.child)))}function ut(e){return t=>y.createElement(Oa,Mt({attr:Dt({},e.attr)},t),fs(e.child))}function Oa(e){var t=r=>{var s=e.attr,n=e.size,a=e.title,i=ka(e,_a),o=n||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),y.createElement("svg",Mt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,i,{className:d,style:Dt(Dt({color:e.color||r.color},r.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&y.createElement("title",null,a),e.children)};return Fr!==void 0?y.createElement(Fr.Consumer,null,r=>t(r)):t(us)}function Ya(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function ja(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Ta(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152"},child:[]},{tag:"rect",attr:{width:"416",height:"80",x:"48",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"28",ry:"28"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 304-64 64-64-64m64 41.89V224"},child:[]}]})(e)}function Ca(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"},child:[]}]})(e)}function Ra(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"},child:[]}]})(e)}//! moment.js
2
2
  //! version : 2.30.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
@@ -7,7 +7,7 @@ var hs;function f(){return hs.apply(null,arguments)}function Pa(e){hs=e}function
7
7
  [`+a+"] ";for(i in arguments[0])T(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];s.push(n)}ps(e+`
8
8
  Arguments: `+Array.prototype.slice.call(s).join("")+`
9
9
  `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Hr={};function ys(e,t){f.deprecationHandler!=null&&f.deprecationHandler(e,t),Hr[e]||(ps(t),Hr[e]=!0)}f.suppressDeprecationWarnings=!1;f.deprecationHandler=null;function me(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Wa(e){var t,r;for(r in e)T(e,r)&&(t=e[r],me(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function tr(e,t){var r=Te({},e),s;for(s in t)T(t,s)&&(Le(e[s])&&Le(t[s])?(r[s]={},Te(r[s],e[s]),Te(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)T(e,s)&&!T(t,s)&&Le(e[s])&&(r[s]=Te({},r[s]));return r}function fr(e){e!=null&&this.set(e)}var rr;Object.keys?rr=Object.keys:rr=function(e){var t,r=[];for(t in e)T(e,t)&&r.push(t);return r};var La={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Aa(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return me(s)?s.call(t,r):s}function fe(e,t,r){var s=""+Math.abs(e),n=t-s.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var hr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,xt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Jt={},Ge={};function x(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(Ge[e]=n),t&&(Ge[t[0]]=function(){return fe(n.apply(this,arguments),t[1],t[2])}),r&&(Ge[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function za(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ea(e){var t=e.match(hr),r,s;for(r=0,s=t.length;r<s;r++)Ge[t[r]]?t[r]=Ge[t[r]]:t[r]=za(t[r]);return function(n){var a="",i;for(i=0;i<s;i++)a+=me(t[i])?t[i].call(n,e):t[i];return a}}function _t(e,t){return e.isValid()?(t=gs(t,e.localeData()),Jt[t]=Jt[t]||Ea(t),Jt[t](e)):e.localeData().invalidDate()}function gs(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for(xt.lastIndex=0;r>=0&&xt.test(e);)e=e.replace(xt,s),xt.lastIndex=0,r-=1;return e}var Fa={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Va(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(hr).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Ua="Invalid date";function Ha(){return this._invalidDate}var Ga="%d",$a=/\d{1,2}/;function Ba(e){return this._ordinal.replace("%d",e)}var Za={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qa(e,t,r,s){var n=this._relativeTime[r];return me(n)?n(e,t,r,s):n.replace(/%d/i,e)}function Ja(e,t){var r=this._relativeTime[e>0?"future":"past"];return me(r)?r(t):r.replace(/%s/i,t)}var Gr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ie(e){return typeof e=="string"?Gr[e]||Gr[e.toLowerCase()]:void 0}function mr(e){var t={},r,s;for(s in e)T(e,s)&&(r=ie(s),r&&(t[r]=e[s]));return t}var Qa={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ka(e){var t=[],r;for(r in e)T(e,r)&&t.push({unit:r,priority:Qa[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var bs=/\d/,re=/\d\d/,xs=/\d{3}/,pr=/\d{4}/,Wt=/[+-]?\d{6}/,V=/\d\d?/,vs=/\d\d\d\d?/,ws=/\d\d\d\d\d\d?/,Lt=/\d{1,3}/,yr=/\d{1,4}/,At=/[+-]?\d{1,6}/,qe=/\d+/,zt=/[+-]?\d+/,Xa=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,ei=/[+-]?\d+(\.\d{1,3})?/,mt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Je=/^[1-9]\d?/,gr=/^([1-9]\d|\d)/,Nt;Nt={};function m(e,t,r){Nt[e]=me(t)?t:function(s,n){return s&&r?r:t}}function ti(e,t){return T(Nt,e)?Nt[e](t._strict,t._locale):new RegExp(ri(e))}function ri(e){return we(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function we(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function O(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=se(t)),r}var sr={};function A(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),ke(t)&&(s=function(a,i){i[t]=O(a)}),n=e.length,r=0;r<n;r++)sr[e[r]]=s}function pt(e,t){A(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function si(e,t,r){t!=null&&T(sr,e)&&sr[e](t,r._a,r,e)}function Ft(e){return e%4===0&&e%100!==0||e%400===0}var K=0,xe=1,ue=2,J=3,oe=4,ve=5,We=6,ni=7,ai=8;x("Y",0,0,function(){var e=this.year();return e<=9999?fe(e,4):"+"+e});x(0,["YY",2],0,function(){return this.year()%100});x(0,["YYYY",4],0,"year");x(0,["YYYYY",5],0,"year");x(0,["YYYYYY",6,!0],0,"year");m("Y",zt);m("YY",V,re);m("YYYY",yr,pr);m("YYYYY",At,Wt);m("YYYYYY",At,Wt);A(["YYYYY","YYYYYY"],K);A("YYYY",function(e,t){t[K]=e.length===2?f.parseTwoDigitYear(e):O(e)});A("YY",function(e,t){t[K]=f.parseTwoDigitYear(e)});A("Y",function(e,t){t[K]=parseInt(e,10)});function it(e){return Ft(e)?366:365}f.parseTwoDigitYear=function(e){return O(e)+(O(e)>68?1900:2e3)};var _s=Qe("FullYear",!0);function ii(){return Ft(this.year())}function Qe(e,t){return function(r){return r!=null?(ks(this,e,r),f.updateOffset(this,t),this):ot(this,e)}}function ot(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function ks(e,t,r){var s,n,a,i,o;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),o=e.date(),o=o===29&&i===1&&!Ft(a)?28:o,n?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function oi(e){return e=ie(e),me(this[e])?this[e]():this}function li(e,t){if(typeof e=="object"){e=mr(e);var r=Ka(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=ie(e),me(this[e]))return this[e](t);return this}function di(e,t){return(e%t+t)%t}var Z;Array.prototype.indexOf?Z=Array.prototype.indexOf:Z=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function br(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=di(t,12);return e+=(t-r)/12,r===1?Ft(e)?29:28:31-r%7%2}x("M",["MM",2],"Mo",function(){return this.month()+1});x("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});x("MMMM",0,0,function(e){return this.localeData().months(this,e)});m("M",V,Je);m("MM",V,re);m("MMM",function(e,t){return t.monthsShortRegex(e)});m("MMMM",function(e,t){return t.monthsRegex(e)});A(["M","MM"],function(e,t){t[xe]=O(e)-1});A(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[xe]=n:k(r).invalidMonth=e});var ci="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ss="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ms=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ui=mt,fi=mt;function hi(e,t){return e?le(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ms).test(t)?"format":"standalone"][e.month()]:le(this._months)?this._months:this._months.standalone}function mi(e,t){return e?le(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ms.test(t)?"format":"standalone"][e.month()]:le(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pi(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=he([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=Z.call(this._shortMonthsParse,i),n!==-1?n:null):(n=Z.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=Z.call(this._shortMonthsParse,i),n!==-1?n:(n=Z.call(this._longMonthsParse,i),n!==-1?n:null)):(n=Z.call(this._longMonthsParse,i),n!==-1?n:(n=Z.call(this._shortMonthsParse,i),n!==-1?n:null))}function yi(e,t,r){var s,n,a;if(this._monthsParseExact)return pi.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=he([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function Ds(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=O(t);else if(t=e.localeData().monthsParse(t),!ke(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,br(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function Ns(e){return e!=null?(Ds(this,e),f.updateOffset(this,!0),this):ot(this,"Month")}function gi(){return br(this.year(),this.month())}function bi(e){return this._monthsParseExact?(T(this,"_monthsRegex")||Os.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(T(this,"_monthsShortRegex")||(this._monthsShortRegex=ui),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function xi(e){return this._monthsParseExact?(T(this,"_monthsRegex")||Os.call(this),e?this._monthsStrictRegex:this._monthsRegex):(T(this,"_monthsRegex")||(this._monthsRegex=fi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Os(){function e(d,c){return c.length-d.length}var t=[],r=[],s=[],n,a,i,o;for(n=0;n<12;n++)a=he([2e3,n]),i=we(this.monthsShort(a,"")),o=we(this.months(a,"")),t.push(i),r.push(o),s.push(o),s.push(i);t.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function vi(e,t,r,s,n,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,s,n,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,s,n,a,i),o}function lt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ot(e,t,r){var s=7+t-r,n=(7+lt(e,0,s).getUTCDay()-t)%7;return-n+s-1}function Ys(e,t,r,s,n){var a=(7+r-s)%7,i=Ot(e,s,n),o=1+7*(t-1)+a+i,d,c;return o<=0?(d=e-1,c=it(d)+o):o>it(e)?(d=e+1,c=o-it(e)):(d=e,c=o),{year:d,dayOfYear:c}}function dt(e,t,r){var s=Ot(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+_e(i,t,r)):n>_e(e.year(),t,r)?(a=n-_e(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function _e(e,t,r){var s=Ot(e,t,r),n=Ot(e+1,t,r);return(it(e)-s+n)/7}x("w",["ww",2],"wo","week");x("W",["WW",2],"Wo","isoWeek");m("w",V,Je);m("ww",V,re);m("W",V,Je);m("WW",V,re);pt(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=O(e)});function wi(e){return dt(e,this._week.dow,this._week.doy).week}var _i={dow:0,doy:6};function ki(){return this._week.dow}function Si(){return this._week.doy}function Mi(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Di(e){var t=dt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}x("d",0,"do","day");x("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});x("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});x("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});x("e",0,0,"weekday");x("E",0,0,"isoWeekday");m("d",V);m("e",V);m("E",V);m("dd",function(e,t){return t.weekdaysMinRegex(e)});m("ddd",function(e,t){return t.weekdaysShortRegex(e)});m("dddd",function(e,t){return t.weekdaysRegex(e)});pt(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:k(r).invalidWeekday=e});pt(["d","e","E"],function(e,t,r,s){t[s]=O(e)});function Ni(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Oi(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Yi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),js="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ji="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ti=mt,Ci=mt,Ri=mt;function Pi(e,t){var r=le(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?xr(r,this._week.dow):e?r[e.day()]:r}function Ii(e){return e===!0?xr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wi(e){return e===!0?xr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Li(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=he([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(n=Z.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=Z.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=Z.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=Z.call(this._weekdaysParse,i),n!==-1||(n=Z.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=Z.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=Z.call(this._shortWeekdaysParse,i),n!==-1||(n=Z.call(this._weekdaysParse,i),n!==-1)?n:(n=Z.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=Z.call(this._minWeekdaysParse,i),n!==-1||(n=Z.call(this._weekdaysParse,i),n!==-1)?n:(n=Z.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function Ai(e,t,r){var s,n,a;if(this._weekdaysParseExact)return Li.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=he([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function zi(e){if(!this.isValid())return e!=null?this:NaN;var t=ot(this,"Day");return e!=null?(e=Ni(e,this.localeData()),this.add(e-t,"d")):t}function Ei(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Fi(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Oi(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Vi(e){return this._weekdaysParseExact?(T(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(T(this,"_weekdaysRegex")||(this._weekdaysRegex=Ti),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ui(e){return this._weekdaysParseExact?(T(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(T(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ci),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Hi(e){return this._weekdaysParseExact?(T(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(T(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ri),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vr(){function e(h,p){return p.length-h.length}var t=[],r=[],s=[],n=[],a,i,o,d,c;for(a=0;a<7;a++)i=he([2e3,1]).day(a),o=we(this.weekdaysMin(i,"")),d=we(this.weekdaysShort(i,"")),c=we(this.weekdays(i,"")),t.push(o),r.push(d),s.push(c),n.push(o),n.push(d),n.push(c);t.sort(e),r.sort(e),s.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function wr(){return this.hours()%12||12}function Gi(){return this.hours()||24}x("H",["HH",2],0,"hour");x("h",["hh",2],0,wr);x("k",["kk",2],0,Gi);x("hmm",0,0,function(){return""+wr.apply(this)+fe(this.minutes(),2)});x("hmmss",0,0,function(){return""+wr.apply(this)+fe(this.minutes(),2)+fe(this.seconds(),2)});x("Hmm",0,0,function(){return""+this.hours()+fe(this.minutes(),2)});x("Hmmss",0,0,function(){return""+this.hours()+fe(this.minutes(),2)+fe(this.seconds(),2)});function Ts(e,t){x(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Ts("a",!0);Ts("A",!1);function Cs(e,t){return t._meridiemParse}m("a",Cs);m("A",Cs);m("H",V,gr);m("h",V,Je);m("k",V,Je);m("HH",V,re);m("hh",V,re);m("kk",V,re);m("hmm",vs);m("hmmss",ws);m("Hmm",vs);m("Hmmss",ws);A(["H","HH"],J);A(["k","kk"],function(e,t,r){var s=O(e);t[J]=s===24?0:s});A(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});A(["h","hh"],function(e,t,r){t[J]=O(e),k(r).bigHour=!0});A("hmm",function(e,t,r){var s=e.length-2;t[J]=O(e.substr(0,s)),t[oe]=O(e.substr(s)),k(r).bigHour=!0});A("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[J]=O(e.substr(0,s)),t[oe]=O(e.substr(s,2)),t[ve]=O(e.substr(n)),k(r).bigHour=!0});A("Hmm",function(e,t,r){var s=e.length-2;t[J]=O(e.substr(0,s)),t[oe]=O(e.substr(s))});A("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[J]=O(e.substr(0,s)),t[oe]=O(e.substr(s,2)),t[ve]=O(e.substr(n))});function $i(e){return(e+"").toLowerCase().charAt(0)==="p"}var Bi=/[ap]\.?m?\.?/i,Zi=Qe("Hours",!0);function qi(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Rs={calendar:La,longDateFormat:Fa,invalidDate:Ua,ordinal:Ga,dayOfMonthOrdinalParse:$a,relativeTime:Za,months:ci,monthsShort:Ss,week:_i,weekdays:Yi,weekdaysMin:ji,weekdaysShort:js,meridiemParse:Bi},U={},st={},ct;function Ji(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function $r(e){return e&&e.toLowerCase().replace("_","-")}function Qi(e){for(var t=0,r,s,n,a;t<e.length;){for(a=$r(e[t]).split("-"),r=a.length,s=$r(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=Vt(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&Ji(a,s)>=r-1)break;r--}t++}return ct}function Ki(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Vt(e){var t=null,r;if(U[e]===void 0&&typeof module<"u"&&module&&module.exports&&Ki(e))try{t=ct._abbr,r=require,r("./locale/"+e),Re(t)}catch{U[e]=null}return U[e]}function Re(e,t){var r;return e&&(te(t)?r=Se(e):r=_r(e,t),r?ct=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ct._abbr}function _r(e,t){if(t!==null){var r,s=Rs;if(t.abbr=e,U[e]!=null)ys("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=U[e]._config;else if(t.parentLocale!=null)if(U[t.parentLocale]!=null)s=U[t.parentLocale]._config;else if(r=Vt(t.parentLocale),r!=null)s=r._config;else return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;return U[e]=new fr(tr(s,t)),st[e]&&st[e].forEach(function(n){_r(n.name,n.config)}),Re(e),U[e]}else return delete U[e],null}function Xi(e,t){if(t!=null){var r,s,n=Rs;U[e]!=null&&U[e].parentLocale!=null?U[e].set(tr(U[e]._config,t)):(s=Vt(e),s!=null&&(n=s._config),t=tr(n,t),s==null&&(t.abbr=e),r=new fr(t),r.parentLocale=U[e],U[e]=r),Re(e)}else U[e]!=null&&(U[e].parentLocale!=null?(U[e]=U[e].parentLocale,e===Re()&&Re(e)):U[e]!=null&&delete U[e]);return U[e]}function Se(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ct;if(!le(e)){if(t=Vt(e),t)return t;e=[e]}return Qi(e)}function eo(){return rr(U)}function kr(e){var t,r=e._a;return r&&k(e).overflow===-2&&(t=r[xe]<0||r[xe]>11?xe:r[ue]<1||r[ue]>br(r[K],r[xe])?ue:r[J]<0||r[J]>24||r[J]===24&&(r[oe]!==0||r[ve]!==0||r[We]!==0)?J:r[oe]<0||r[oe]>59?oe:r[ve]<0||r[ve]>59?ve:r[We]<0||r[We]>999?We:-1,k(e)._overflowDayOfYear&&(t<K||t>ue)&&(t=ue),k(e)._overflowWeeks&&t===-1&&(t=ni),k(e)._overflowWeekday&&t===-1&&(t=ai),k(e).overflow=t),e}var to=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ro=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,so=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],no=/^\/?Date\((-?\d+)/i,ao=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,io={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ps(e){var t,r,s=e._i,n=to.exec(s)||ro.exec(s),a,i,o,d,c=vt.length,h=Qt.length;if(n){for(k(e).iso=!0,t=0,r=c;t<r;t++)if(vt[t][1].exec(n[1])){i=vt[t][0],a=vt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=h;t<r;t++)if(Qt[t][1].exec(n[3])){o=(n[2]||" ")+Qt[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(n[4])if(so.exec(n[4]))d="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(d||""),Mr(e)}else e._isValid=!1}function oo(e,t,r,s,n,a){var i=[lo(e),Ss.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function lo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function co(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function uo(e,t,r){if(e){var s=js.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return k(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function fo(e,t,r){if(e)return io[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function Is(e){var t=ao.exec(co(e._i)),r;if(t){if(r=oo(t[4],t[3],t[2],t[5],t[6],t[7]),!uo(t[1],r,e))return;e._a=r,e._tzm=fo(t[8],t[9],t[10]),e._d=lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),k(e).rfc2822=!0}else e._isValid=!1}function ho(e){var t=no.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ps(e),e._isValid===!1)delete e._isValid;else return;if(Is(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:f.createFromInputFallback(e)}f.createFromInputFallback=ae("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ve(e,t,r){return e??t??r}function mo(e){var t=new Date(f.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Sr(e){var t,r,s=[],n,a,i;if(!e._d){for(n=mo(e),e._w&&e._a[ue]==null&&e._a[xe]==null&&po(e),e._dayOfYear!=null&&(i=Ve(e._a[K],n[K]),(e._dayOfYear>it(i)||e._dayOfYear===0)&&(k(e)._overflowDayOfYear=!0),r=lt(i,0,e._dayOfYear),e._a[xe]=r.getUTCMonth(),e._a[ue]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[J]===24&&e._a[oe]===0&&e._a[ve]===0&&e._a[We]===0&&(e._nextDay=!0,e._a[J]=0),e._d=(e._useUTC?lt:vi).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[J]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(k(e).weekdayMismatch=!0)}}function po(e){var t,r,s,n,a,i,o,d,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Ve(t.GG,e._a[K],dt(F(),1,4).year),s=Ve(t.W,1),n=Ve(t.E,1),(n<1||n>7)&&(d=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,c=dt(F(),a,i),r=Ve(t.gg,e._a[K],c.year),s=Ve(t.w,c.week),t.d!=null?(n=t.d,(n<0||n>6)&&(d=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(d=!0)):n=a),s<1||s>_e(r,a,i)?k(e)._overflowWeeks=!0:d!=null?k(e)._overflowWeekday=!0:(o=Ys(r,s,n,a,i),e._a[K]=o.year,e._dayOfYear=o.dayOfYear)}f.ISO_8601=function(){};f.RFC_2822=function(){};function Mr(e){if(e._f===f.ISO_8601){Ps(e);return}if(e._f===f.RFC_2822){Is(e);return}e._a=[],k(e).empty=!0;var t=""+e._i,r,s,n,a,i,o=t.length,d=0,c,h;for(n=gs(e._f,e._locale).match(hr)||[],h=n.length,r=0;r<h;r++)a=n[r],s=(t.match(ti(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&k(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),d+=s.length),Ge[a]?(s?k(e).empty=!1:k(e).unusedTokens.push(a),si(a,s,e)):e._strict&&!s&&k(e).unusedTokens.push(a);k(e).charsLeftOver=o-d,t.length>0&&k(e).unusedInput.push(t),e._a[J]<=12&&k(e).bigHour===!0&&e._a[J]>0&&(k(e).bigHour=void 0),k(e).parsedDateParts=e._a.slice(0),k(e).meridiem=e._meridiem,e._a[J]=yo(e._locale,e._a[J],e._meridiem),c=k(e).era,c!==null&&(e._a[K]=e._locale.erasConvertYear(c,e._a[K])),Sr(e),kr(e)}function yo(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function go(e){var t,r,s,n,a,i,o=!1,d=e._f.length;if(d===0){k(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<d;n++)a=0,i=!1,t=ur({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],Mr(t),cr(t)&&(i=!0),a+=k(t).charsLeftOver,a+=k(t).unusedTokens.length*10,k(t).score=a,o?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(o=!0));Te(e,r||t)}function bo(e){if(!e._d){var t=mr(e._i),r=t.day===void 0?t.date:t.day;e._a=ms([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Sr(e)}}function xo(e){var t=new ht(kr(Ws(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ws(e){var t=e._i,r=e._f;return e._locale=e._locale||Se(e._l),t===null||r===void 0&&t===""?It({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),de(t)?new ht(kr(t)):(ft(t)?e._d=t:le(r)?go(e):r?Mr(e):vo(e),cr(e)||(e._d=null),e))}function vo(e){var t=e._i;te(t)?e._d=new Date(f.now()):ft(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ho(e):le(t)?(e._a=ms(t.slice(0),function(r){return parseInt(r,10)}),Sr(e)):Le(t)?bo(e):ke(t)?e._d=new Date(t):f.createFromInputFallback(e)}function Ls(e,t,r,s,n){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(Le(e)&&dr(e)||le(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=r,a._i=e,a._f=t,a._strict=s,xo(a)}function F(e,t,r,s){return Ls(e,t,r,s,!1)}var wo=ae("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:It()}),_o=ae("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:It()});function As(e,t){var r,s;if(t.length===1&&le(t[0])&&(t=t[0]),!t.length)return F();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function ko(){var e=[].slice.call(arguments,0);return As("isBefore",e)}function So(){var e=[].slice.call(arguments,0);return As("isAfter",e)}var Mo=function(){return Date.now?Date.now():+new Date},nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Do(e){var t,r=!1,s,n=nt.length;for(t in e)if(T(e,t)&&!(Z.call(nt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[nt[s]]){if(r)return!1;parseFloat(e[nt[s]])!==O(e[nt[s]])&&(r=!0)}return!0}function No(){return this._isValid}function Oo(){return ce(NaN)}function Ut(e){var t=mr(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,d=t.minute||0,c=t.second||0,h=t.millisecond||0;this._isValid=Do(t),this._milliseconds=+h+c*1e3+d*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=Se(),this._bubble()}function kt(e){return e instanceof Ut}function nr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Yo(e,t,r){var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)O(e[i])!==O(t[i])&&a++;return a+n}function zs(e,t){x(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+fe(~~(r/60),2)+t+fe(~~r%60,2)})}zs("Z",":");zs("ZZ","");m("Z",Et);m("ZZ",Et);A(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Dr(Et,e)});var jo=/([\+\-]|\d\d)/gi;function Dr(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(jo)||["-",0,0],a=+(n[1]*60)+O(n[2]),a===0?0:n[0]==="+"?a:-a)}function Nr(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(de(e)||ft(e)?e.valueOf():F(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),f.updateOffset(r,!1),r):F(e).local()}function ar(e){return-Math.round(e._d.getTimezoneOffset())}f.updateOffset=function(){};function To(e,t,r){var s=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Dr(Et,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=ar(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?Vs(this,ce(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:ar(this)}function Co(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ro(e){return this.utcOffset(0,e)}function Po(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ar(this),"m")),this}function Io(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Dr(Xa,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Wo(e){return this.isValid()?(e=e?F(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Lo(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ao(){if(!te(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ur(e,this),e=Ws(e),e._a?(t=e._isUTC?he(e._a):F(e._a),this._isDSTShifted=this.isValid()&&Yo(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zo(){return this.isValid()?!this._isUTC:!1}function Eo(){return this.isValid()?this._isUTC:!1}function Es(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Fo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ce(e,t){var r=e,s=null,n,a,i;return kt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ke(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=Fo.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:O(s[ue])*n,h:O(s[J])*n,m:O(s[oe])*n,s:O(s[ve])*n,ms:O(nr(s[We]*1e3))*n}):(s=Vo.exec(e))?(n=s[1]==="-"?-1:1,r={y:Ie(s[2],n),M:Ie(s[3],n),w:Ie(s[4],n),d:Ie(s[5],n),h:Ie(s[6],n),m:Ie(s[7],n),s:Ie(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=Uo(F(r.from),F(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new Ut(r),kt(e)&&T(e,"_locale")&&(a._locale=e._locale),kt(e)&&T(e,"_isValid")&&(a._isValid=e._isValid),a}ce.fn=Ut.prototype;ce.invalid=Oo;function Ie(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Br(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Uo(e,t){var r;return e.isValid()&&t.isValid()?(t=Nr(t,e),e.isBefore(t)?r=Br(e,t):(r=Br(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Fs(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(ys(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=s,s=a),n=ce(r,s),Vs(this,n,e),this}}function Vs(e,t,r,s){var n=t._milliseconds,a=nr(t._days),i=nr(t._months);e.isValid()&&(s=s??!0,i&&Ds(e,ot(e,"Month")+i*r),a&&ks(e,"Date",ot(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&f.updateOffset(e,a||i))}var Ho=Fs(1,"add"),Go=Fs(-1,"subtract");function Us(e){return typeof e=="string"||e instanceof String}function $o(e){return de(e)||ft(e)||Us(e)||ke(e)||Zo(e)||Bo(e)||e===null||e===void 0}function Bo(e){var t=Le(e)&&!dr(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=s.length;for(n=0;n<i;n+=1)a=s[n],r=r||T(e,a);return t&&r}function Zo(e){var t=le(e),r=!1;return t&&(r=e.filter(function(s){return!ke(s)&&Us(e)}).length===0),t&&r}function qo(e){var t=Le(e)&&!dr(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<s.length;n+=1)a=s[n],r=r||T(e,a);return t&&r}function Jo(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Qo(e,t){arguments.length===1&&(arguments[0]?$o(arguments[0])?(e=arguments[0],t=void 0):qo(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||F(),s=Nr(r,this).startOf("day"),n=f.calendarFormat(this,s)||"sameElse",a=t&&(me(t[n])?t[n].call(this,r):t[n]);return this.format(a||this.localeData().calendar(n,this,F(r)))}function Ko(){return new ht(this)}function Xo(e,t){var r=de(e)?e:F(e);return this.isValid()&&r.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function el(e,t){var r=de(e)?e:F(e);return this.isValid()&&r.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function tl(e,t,r,s){var n=de(e)?e:F(e),a=de(t)?t:F(t);return this.isValid()&&n.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function rl(e,t){var r=de(e)?e:F(e),s;return this.isValid()&&r.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function sl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function nl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function al(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=Nr(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=ie(t),t){case"year":a=St(this,s)/12;break;case"month":a=St(this,s);break;case"quarter":a=St(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return r?a:se(a)}function St(e,t){if(e.date()<t.date())return-St(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),n,a;return t-s<0?(n=e.clone().add(r-1,"months"),a=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),a=(t-s)/(n-s)),-(r+a)||0}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function il(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ol(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?_t(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):me(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",_t(r,"Z")):_t(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ll(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+s+n+a)}function dl(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=_t(this,e);return this.localeData().postformat(t)}function cl(e,t){return this.isValid()&&(de(e)&&e.isValid()||F(e).isValid())?ce({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ul(e){return this.from(F(),e)}function fl(e,t){return this.isValid()&&(de(e)&&e.isValid()||F(e).isValid())?ce({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hl(e){return this.to(F(),e)}function Hs(e){var t;return e===void 0?this._locale._abbr:(t=Se(e),t!=null&&(this._locale=t),this)}var Gs=ae("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function $s(){return this._locale}var Yt=1e3,$e=60*Yt,jt=60*$e,Bs=(365*400+97)*24*jt;function Be(e,t){return(e%t+t)%t}function Zs(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Bs:new Date(e,t,r).valueOf()}function qs(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Bs:Date.UTC(e,t,r)}function ml(e){var t,r;if(e=ie(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?qs:Zs,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Be(t+(this._isUTC?0:this.utcOffset()*$e),jt);break;case"minute":t=this._d.valueOf(),t-=Be(t,$e);break;case"second":t=this._d.valueOf(),t-=Be(t,Yt);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function pl(e){var t,r;if(e=ie(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?qs:Zs,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=jt-Be(t+(this._isUTC?0:this.utcOffset()*$e),jt)-1;break;case"minute":t=this._d.valueOf(),t+=$e-Be(t,$e)-1;break;case"second":t=this._d.valueOf(),t+=Yt-Be(t,Yt)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function yl(){return this._d.valueOf()-(this._offset||0)*6e4}function gl(){return Math.floor(this.valueOf()/1e3)}function bl(){return new Date(this.valueOf())}function xl(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function vl(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wl(){return this.isValid()?this.toISOString():null}function _l(){return cr(this)}function kl(){return Te({},k(this))}function Sl(){return k(this).overflow}function Ml(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}x("N",0,0,"eraAbbr");x("NN",0,0,"eraAbbr");x("NNN",0,0,"eraAbbr");x("NNNN",0,0,"eraName");x("NNNNN",0,0,"eraNarrow");x("y",["y",1],"yo","eraYear");x("y",["yy",2],0,"eraYear");x("y",["yyy",3],0,"eraYear");x("y",["yyyy",4],0,"eraYear");m("N",Or);m("NN",Or);m("NNN",Or);m("NNNN",Wl);m("NNNNN",Ll);A(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?k(r).era=n:k(r).invalidEra=e});m("y",qe);m("yy",qe);m("yyy",qe);m("yyyy",qe);m("yo",Al);A(["y","yy","yyy","yyyy"],K);A(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[K]=r._locale.eraYearOrdinalParse(e,n):t[K]=parseInt(e,10)});function Dl(e,t){var r,s,n,a=this._eras||Se("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=f(a[r].since).startOf("day"),a[r].since=n.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=f(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function Nl(e,t,r){var s,n,a=this.eras(),i,o,d;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),d=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(d===e)return a[s];break}else if([i,o,d].indexOf(e)>=0)return a[s]}function Ol(e,t){var r=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*r}function Yl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function jl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function Tl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function Cl(){var e,t,r,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-f(n[e].since).year())*r+n[e].offset;return this.year()}function Rl(e){return T(this,"_erasNameRegex")||Yr.call(this),e?this._erasNameRegex:this._erasRegex}function Pl(e){return T(this,"_erasAbbrRegex")||Yr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Il(e){return T(this,"_erasNarrowRegex")||Yr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Or(e,t){return t.erasAbbrRegex(e)}function Wl(e,t){return t.erasNameRegex(e)}function Ll(e,t){return t.erasNarrowRegex(e)}function Al(e,t){return t._eraYearOrdinalRegex||qe}function Yr(){var e=[],t=[],r=[],s=[],n,a,i,o,d,c=this.eras();for(n=0,a=c.length;n<a;++n)i=we(c[n].name),o=we(c[n].abbr),d=we(c[n].narrow),t.push(i),e.push(o),r.push(d),s.push(i),s.push(o),s.push(d);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}x(0,["gg",2],0,function(){return this.weekYear()%100});x(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ht(e,t){x(0,[e,e.length],0,t)}Ht("gggg","weekYear");Ht("ggggg","weekYear");Ht("GGGG","isoWeekYear");Ht("GGGGG","isoWeekYear");m("G",zt);m("g",zt);m("GG",V,re);m("gg",V,re);m("GGGG",yr,pr);m("gggg",yr,pr);m("GGGGG",At,Wt);m("ggggg",At,Wt);pt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=O(e)});pt(["gg","GG"],function(e,t,r,s){t[s]=f.parseTwoDigitYear(e)});function zl(e){return Js.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function El(e){return Js.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Fl(){return _e(this.year(),1,4)}function Vl(){return _e(this.isoWeekYear(),1,4)}function Ul(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function Hl(){var e=this.localeData()._week;return _e(this.weekYear(),e.dow,e.doy)}function Js(e,t,r,s,n){var a;return e==null?dt(this,s,n).year:(a=_e(e,s,n),t>a&&(t=a),Gl.call(this,e,t,r,s,n))}function Gl(e,t,r,s,n){var a=Ys(e,t,r,s,n),i=lt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}x("Q",0,"Qo","quarter");m("Q",bs);A("Q",function(e,t){t[xe]=(O(e)-1)*3});function $l(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}x("D",["DD",2],"Do","date");m("D",V,Je);m("DD",V,re);m("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});A(["D","DD"],ue);A("Do",function(e,t){t[ue]=O(e.match(V)[0])});var Qs=Qe("Date",!0);x("DDD",["DDDD",3],"DDDo","dayOfYear");m("DDD",Lt);m("DDDD",xs);A(["DDD","DDDD"],function(e,t,r){r._dayOfYear=O(e)});function Bl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}x("m",["mm",2],0,"minute");m("m",V,gr);m("mm",V,re);A(["m","mm"],oe);var Zl=Qe("Minutes",!1);x("s",["ss",2],0,"second");m("s",V,gr);m("ss",V,re);A(["s","ss"],ve);var ql=Qe("Seconds",!1);x("S",0,0,function(){return~~(this.millisecond()/100)});x(0,["SS",2],0,function(){return~~(this.millisecond()/10)});x(0,["SSS",3],0,"millisecond");x(0,["SSSS",4],0,function(){return this.millisecond()*10});x(0,["SSSSS",5],0,function(){return this.millisecond()*100});x(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});x(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});x(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});x(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});m("S",Lt,bs);m("SS",Lt,re);m("SSS",Lt,xs);var Ce,Ks;for(Ce="SSSS";Ce.length<=9;Ce+="S")m(Ce,qe);function Jl(e,t){t[We]=O(("0."+e)*1e3)}for(Ce="S";Ce.length<=9;Ce+="S")A(Ce,Jl);Ks=Qe("Milliseconds",!1);x("z",0,0,"zoneAbbr");x("zz",0,0,"zoneName");function Ql(){return this._isUTC?"UTC":""}function Kl(){return this._isUTC?"Coordinated Universal Time":""}var u=ht.prototype;u.add=Ho;u.calendar=Qo;u.clone=Ko;u.diff=al;u.endOf=pl;u.format=dl;u.from=cl;u.fromNow=ul;u.to=fl;u.toNow=hl;u.get=oi;u.invalidAt=Sl;u.isAfter=Xo;u.isBefore=el;u.isBetween=tl;u.isSame=rl;u.isSameOrAfter=sl;u.isSameOrBefore=nl;u.isValid=_l;u.lang=Gs;u.locale=Hs;u.localeData=$s;u.max=_o;u.min=wo;u.parsingFlags=kl;u.set=li;u.startOf=ml;u.subtract=Go;u.toArray=xl;u.toObject=vl;u.toDate=bl;u.toISOString=ol;u.inspect=ll;typeof Symbol<"u"&&Symbol.for!=null&&(u[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});u.toJSON=wl;u.toString=il;u.unix=gl;u.valueOf=yl;u.creationData=Ml;u.eraName=Yl;u.eraNarrow=jl;u.eraAbbr=Tl;u.eraYear=Cl;u.year=_s;u.isLeapYear=ii;u.weekYear=zl;u.isoWeekYear=El;u.quarter=u.quarters=$l;u.month=Ns;u.daysInMonth=gi;u.week=u.weeks=Mi;u.isoWeek=u.isoWeeks=Di;u.weeksInYear=Ul;u.weeksInWeekYear=Hl;u.isoWeeksInYear=Fl;u.isoWeeksInISOWeekYear=Vl;u.date=Qs;u.day=u.days=zi;u.weekday=Ei;u.isoWeekday=Fi;u.dayOfYear=Bl;u.hour=u.hours=Zi;u.minute=u.minutes=Zl;u.second=u.seconds=ql;u.millisecond=u.milliseconds=Ks;u.utcOffset=To;u.utc=Ro;u.local=Po;u.parseZone=Io;u.hasAlignedHourOffset=Wo;u.isDST=Lo;u.isLocal=zo;u.isUtcOffset=Eo;u.isUtc=Es;u.isUTC=Es;u.zoneAbbr=Ql;u.zoneName=Kl;u.dates=ae("dates accessor is deprecated. Use date instead.",Qs);u.months=ae("months accessor is deprecated. Use month instead",Ns);u.years=ae("years accessor is deprecated. Use year instead",_s);u.zone=ae("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Co);u.isDSTShifted=ae("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ao);function Xl(e){return F(e*1e3)}function ed(){return F.apply(null,arguments).parseZone()}function Xs(e){return e}var C=fr.prototype;C.calendar=Aa;C.longDateFormat=Va;C.invalidDate=Ha;C.ordinal=Ba;C.preparse=Xs;C.postformat=Xs;C.relativeTime=qa;C.pastFuture=Ja;C.set=Wa;C.eras=Dl;C.erasParse=Nl;C.erasConvertYear=Ol;C.erasAbbrRegex=Pl;C.erasNameRegex=Rl;C.erasNarrowRegex=Il;C.months=hi;C.monthsShort=mi;C.monthsParse=yi;C.monthsRegex=xi;C.monthsShortRegex=bi;C.week=wi;C.firstDayOfYear=Si;C.firstDayOfWeek=ki;C.weekdays=Pi;C.weekdaysMin=Wi;C.weekdaysShort=Ii;C.weekdaysParse=Ai;C.weekdaysRegex=Vi;C.weekdaysShortRegex=Ui;C.weekdaysMinRegex=Hi;C.isPM=$i;C.meridiem=qi;function Tt(e,t,r,s){var n=Se(),a=he().set(s,t);return n[r](a,e)}function en(e,t,r){if(ke(e)&&(t=e,e=void 0),e=e||"",t!=null)return Tt(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Tt(e,s,r,"month");return n}function jr(e,t,r,s){typeof e=="boolean"?(ke(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ke(t)&&(r=t,t=void 0),t=t||"");var n=Se(),a=e?n._week.dow:0,i,o=[];if(r!=null)return Tt(t,(r+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Tt(t,(i+a)%7,s,"day");return o}function td(e,t){return en(e,t,"months")}function rd(e,t){return en(e,t,"monthsShort")}function sd(e,t,r){return jr(e,t,r,"weekdays")}function nd(e,t,r){return jr(e,t,r,"weekdaysShort")}function ad(e,t,r){return jr(e,t,r,"weekdaysMin")}Re("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=O(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});f.lang=ae("moment.lang is deprecated. Use moment.locale instead.",Re);f.langData=ae("moment.langData is deprecated. Use moment.localeData instead.",Se);var ge=Math.abs;function id(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function tn(e,t,r,s){var n=ce(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function od(e,t){return tn(this,e,t,1)}function ld(e,t){return tn(this,e,t,-1)}function Zr(e){return e<0?Math.floor(e):Math.ceil(e)}function dd(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,o,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Zr(ir(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=se(e/1e3),s.seconds=n%60,a=se(n/60),s.minutes=a%60,i=se(a/60),s.hours=i%24,t+=se(i/24),d=se(rn(t)),r+=d,t-=Zr(ir(d)),o=se(r/12),r%=12,s.days=t,s.months=r,s.years=o,this}function rn(e){return e*4800/146097}function ir(e){return e*146097/4800}function cd(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=ie(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+rn(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ir(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Me(e){return function(){return this.as(e)}}var sn=Me("ms"),ud=Me("s"),fd=Me("m"),hd=Me("h"),md=Me("d"),pd=Me("w"),yd=Me("M"),gd=Me("Q"),bd=Me("y"),xd=sn;function vd(){return ce(this)}function wd(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Ae(e){return function(){return this.isValid()?this._data[e]:NaN}}var _d=Ae("milliseconds"),kd=Ae("seconds"),Sd=Ae("minutes"),Md=Ae("hours"),Dd=Ae("days"),Nd=Ae("months"),Od=Ae("years");function Yd(){return se(this.days()/7)}var be=Math.round,Ue={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jd(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function Td(e,t,r,s){var n=ce(e).abs(),a=be(n.as("s")),i=be(n.as("m")),o=be(n.as("h")),d=be(n.as("d")),c=be(n.as("M")),h=be(n.as("w")),p=be(n.as("y")),b=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||o<=1&&["h"]||o<r.h&&["hh",o]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(b=b||h<=1&&["w"]||h<r.w&&["ww",h]),b=b||c<=1&&["M"]||c<r.M&&["MM",c]||p<=1&&["y"]||["yy",p],b[2]=t,b[3]=+e>0,b[4]=s,jd.apply(null,b)}function Cd(e){return e===void 0?be:typeof e=="function"?(be=e,!0):!1}function Rd(e,t){return Ue[e]===void 0?!1:t===void 0?Ue[e]:(Ue[e]=t,e==="s"&&(Ue.ss=t-1),!0)}function Pd(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=Ue,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},Ue,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=Td(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var Kt=Math.abs;function Fe(e){return(e>0)-(e<0)||+e}function Gt(){if(!this.isValid())return this.localeData().invalidDate();var e=Kt(this._milliseconds)/1e3,t=Kt(this._days),r=Kt(this._months),s,n,a,i,o=this.asSeconds(),d,c,h,p;return o?(s=se(e/60),n=se(s/60),e%=60,s%=60,a=se(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=o<0?"-":"",c=Fe(this._months)!==Fe(o)?"-":"",h=Fe(this._days)!==Fe(o)?"-":"",p=Fe(this._milliseconds)!==Fe(o)?"-":"",d+"P"+(a?c+a+"Y":"")+(r?c+r+"M":"")+(t?h+t+"D":"")+(n||s||e?"T":"")+(n?p+n+"H":"")+(s?p+s+"M":"")+(e?p+i+"S":"")):"P0D"}var j=Ut.prototype;j.isValid=No;j.abs=id;j.add=od;j.subtract=ld;j.as=cd;j.asMilliseconds=sn;j.asSeconds=ud;j.asMinutes=fd;j.asHours=hd;j.asDays=md;j.asWeeks=pd;j.asMonths=yd;j.asQuarters=gd;j.asYears=bd;j.valueOf=xd;j._bubble=dd;j.clone=vd;j.get=wd;j.milliseconds=_d;j.seconds=kd;j.minutes=Sd;j.hours=Md;j.days=Dd;j.weeks=Yd;j.months=Nd;j.years=Od;j.humanize=Pd;j.toISOString=Gt;j.toString=Gt;j.toJSON=Gt;j.locale=Hs;j.localeData=$s;j.toIsoString=ae("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gt);j.lang=Gs;x("X",0,0,"unix");x("x",0,0,"valueOf");m("x",zt);m("X",ei);A("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});A("x",function(e,t,r){r._d=new Date(O(e))});//! moment.js
10
- f.version="2.30.1";Pa(F);f.fn=u;f.min=ko;f.max=So;f.now=Mo;f.utc=he;f.unix=Xl;f.months=td;f.isDate=ft;f.locale=Re;f.invalid=It;f.duration=ce;f.isMoment=de;f.weekdays=sd;f.parseZone=ed;f.localeData=Se;f.isDuration=kt;f.monthsShort=rd;f.weekdaysMin=ad;f.defineLocale=_r;f.updateLocale=Xi;f.locales=eo;f.weekdaysShort=nd;f.normalizeUnits=ie;f.relativeTimeRounding=Cd;f.relativeTimeThreshold=Rd;f.calendarFormat=Jo;f.prototype=u;f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const nn=g.forwardRef(({className:e,title:t,body:r,timestamp:s,read:n=!1,onArchive:a,onDelete:i,...o},d)=>{const c=g.useMemo(()=>{const h=Math.abs(f().diff(f(s),"minutes"));if(h<60)return`há ${h} minutos`;const p=Math.abs(f().diff(f(s),"hours"));return p<24?`há ${p} horas`:`há ${Math.abs(f().diff(f(s),"days"))} dias`},[s]);return l.jsxs(Pt,{ref:d,icon:null,className:v(!n&&"border-transparent bg-lightGray",e),...o,children:[l.jsxs("div",{className:"flex items-start justify-between gap-3",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!n&&l.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),l.jsx(L,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:t})]}),l.jsx(L,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:c})]}),l.jsx(L,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:r}),l.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[l.jsx("button",{type:"button",onClick:a,"aria-label":"Arquivar",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(Ta,{className:"size-4","aria-hidden":"true"})}),l.jsx("button",{type:"button",onClick:i,"aria-label":"Excluir",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(Ra,{className:"size-4","aria-hidden":"true"})})]})]})});nn.displayName="Notification";const Ct=g.forwardRef(({className:e,...t},r)=>l.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[l.jsx("input",{ref:r,type:"checkbox",className:v("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),l.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));Ct.displayName="TableCheckbox";function Id(e,t){return t.split(".").reduce((r,s)=>r==null?void 0:r[s],e)}function Wd(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=Id(e,t.key);return r==null||r===""?null:l.jsx(L,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const an={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function Ld(e,t,r){if(typeof r=="function")return r(e);const s=e;return r?s[r]??t:s.id??t}const Rt=g.forwardRef(({className:e,align:t="left",sortable:r,sorted:s,onSort:n,children:a,...i},o)=>l.jsx("th",{ref:o,className:v("border-b border-neutral-divider-secondary px-5 py-2",e),...i,children:l.jsxs("span",{className:v("flex items-center gap-1.5",an[t??"left"],r&&"cursor-pointer select-none"),onClick:r?n:void 0,children:[l.jsx(L,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:a}),r&&l.jsx(Ca,{className:v("size-5 shrink-0",s&&"text-agilys-primary"),"aria-hidden":"true"})]})}));Rt.displayName="TableHeadCell";function or({align:e="left",className:t,children:r,onClick:s}){return l.jsx("td",{onClick:s,className:v("border-b border-neutral-divider-secondary px-5 py-3",t),children:l.jsx(L,{className:v("flex items-center gap-2",an[e??"left"]),children:r})})}const on=ne("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-6 text-xs",md:"size-7 text-sm",lg:"size-10 text-base"}},defaultVariants:{size:"md"}});function Ad(e){var s;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(s=t[0])==null?void 0:s.slice(0,2);return r==null?void 0:r.toUpperCase()}const zd={sm:"caption",md:"bodySm",lg:"body"},Tr=g.forwardRef(({className:e,size:t,src:r,alt:s="",name:n,...a},i)=>{const o=t??"md";return l.jsx("span",{ref:i,className:v(on({size:t}),e),...a,children:r?l.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):n&&l.jsx(L,{as:"span",variant:zd[o],weight:"medium",className:"text-inherit leading-none",children:Ad(n)})})});Tr.displayName="Avatar";function Ed({src:e,name:t,description:r,size:s="md",className:n}){return l.jsxs("div",{className:v("flex min-w-0 items-center gap-2",n),children:[l.jsx(Tr,{src:e,name:t,size:s}),l.jsxs("div",{className:"flex min-w-0 flex-col",children:[l.jsx(L,{as:"span",variant:"body",className:"truncate",children:t}),r&&l.jsx(L,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}function Fd({keys:e,data:t,rowKey:r,loading:s,loadingMessage:n="Carregando dados...",emptyMessage:a="Nenhum dado para ser exibido!",selectable:i,selectedRowKeys:o,onSelectionChange:d,sortKey:c,sortDirection:h,onSortChange:p,onRowClick:b,shadow:W=!1,border:R=!1,className:M,...y}){const D=e.length+(i?1:0),z=o??[],$=t.map((N,w)=>Ld(N,w,r)),S=$.length>0&&$.every(N=>z.includes(N)),q=()=>{d&&d(S?[]:$)},H=N=>{d&&d(z.includes(N)?z.filter(w=>w!==N):[...z,N])};return l.jsx("div",{className:v("w-full overflow-x-auto rounded-lg",R&&"border border-neutral-divider-secondary",W&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:l.jsxs("table",{className:v("w-full border-collapse table-fixed",M),...y,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[i&&l.jsx(Rt,{align:"center",className:"w-11",children:l.jsx(Ct,{checked:S,onChange:q,"aria-label":"Selecionar todas as linhas"})}),e.map((N,w)=>l.jsx(Rt,{align:N.align,sortable:!!N.key&&!!p,sorted:N.key&&c===N.key?h:!1,onSort:()=>N.key&&(p==null?void 0:p(N.key)),children:N.label},N.key??`column-${w}`))]})}),l.jsx("tbody",{children:s?l.jsx("tr",{children:l.jsx("td",{colSpan:D,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(L,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:n})})}):t.length===0?l.jsx("tr",{children:l.jsx("td",{colSpan:D,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(L,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.map((N,w)=>{const P=$[w];return l.jsxs("tr",{onClick:b?()=>b(N):void 0,className:v(w%2===0?"bg-neutral-surface-lightest":"bg-white",b&&"cursor-pointer"),children:[i&&l.jsx(or,{align:"center",onClick:G=>G.stopPropagation(),children:l.jsx(Ct,{checked:z.includes(P),onChange:()=>H(P),"aria-label":"Selecionar linha"})}),e.map((G,Q)=>l.jsx(or,{align:G.align,className:G.className,children:Wd(N,G)},G.key??`column-${Q}`))]},P)})})]})})}const at="ellipsis";function wt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}function Vd(e,t,r){if(r*2+5>=t)return wt(1,t);const n=Math.max(e-r,1),a=Math.min(e+r,t),i=n>2,o=a<t-1;return!i&&o?[...wt(1,3+r*2),at,t]:i&&!o?[1,at,...wt(t-(2+r*2),t)]:[1,at,...wt(n,a),at,t]}function qr({direction:e,className:t}){return l.jsx("svg",{className:v("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const ln=g.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:s=1,className:n,...a},i)=>{const o=Vd(e,t,s),d=c=>{c<1||c>t||c===e||r(c)};return l.jsxs("nav",{ref:i,"aria-label":"Paginação",className:v("flex items-center gap-1 font-sans",n),...a,children:[l.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>d(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"left"})}),o.map((c,h)=>c===at?l.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:l.jsx(L,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${h}`):l.jsx("button",{type:"button","aria-current":c===e?"page":void 0,onClick:()=>d(c),className:v("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",c===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:l.jsx(L,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:c})},c)),l.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>d(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"right"})})]})});ln.displayName="Pagination";const Cr=ne("flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",{variants:{hasError:{true:"ring-1 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),dn=g.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:s,rightIcon:n,bgIcon:a=!1,error:i,disabled:o,id:d,...c},h)=>{const p=g.useId(),b=d??p,W=typeof i=="string"?i:i==null?void 0:i.message,R=!!W,M=`${b}-error`;return l.jsxs("div",{className:v("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&l.jsx(L,{as:"label",htmlFor:b,variant:"body",className:"text-neutral-text-primary",children:r}),l.jsxs("div",{className:v(Cr({hasError:R}),o&&"pointer-events-none opacity-50"),children:[s&&l.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary","aria-hidden":"true",children:s}),l.jsx("input",{ref:h,id:b,disabled:o,"aria-invalid":R||void 0,"aria-describedby":R?M:void 0,className:v(`w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
10
+ f.version="2.30.1";Pa(F);f.fn=u;f.min=ko;f.max=So;f.now=Mo;f.utc=he;f.unix=Xl;f.months=td;f.isDate=ft;f.locale=Re;f.invalid=It;f.duration=ce;f.isMoment=de;f.weekdays=sd;f.parseZone=ed;f.localeData=Se;f.isDuration=kt;f.monthsShort=rd;f.weekdaysMin=ad;f.defineLocale=_r;f.updateLocale=Xi;f.locales=eo;f.weekdaysShort=nd;f.normalizeUnits=ie;f.relativeTimeRounding=Cd;f.relativeTimeThreshold=Rd;f.calendarFormat=Jo;f.prototype=u;f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const nn=y.forwardRef(({className:e,title:t,body:r,timestamp:s,read:n=!1,onArchive:a,onDelete:i,...o},d)=>{const c=y.useMemo(()=>{const h=Math.abs(f().diff(f(s),"minutes"));if(h<60)return`há ${h} minutos`;const p=Math.abs(f().diff(f(s),"hours"));return p<24?`há ${p} horas`:`há ${Math.abs(f().diff(f(s),"days"))} dias`},[s]);return l.jsxs(Pt,{ref:d,icon:null,className:v(!n&&"border-transparent bg-lightGray",e),...o,children:[l.jsxs("div",{className:"flex items-start justify-between gap-3",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!n&&l.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),l.jsx(L,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:t})]}),l.jsx(L,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:c})]}),l.jsx(L,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:r}),l.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[l.jsx("button",{type:"button",onClick:a,"aria-label":"Arquivar",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(Ta,{className:"size-4","aria-hidden":"true"})}),l.jsx("button",{type:"button",onClick:i,"aria-label":"Excluir",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(Ra,{className:"size-4","aria-hidden":"true"})})]})]})});nn.displayName="Notification";const Ct=y.forwardRef(({className:e,...t},r)=>l.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[l.jsx("input",{ref:r,type:"checkbox",className:v("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),l.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));Ct.displayName="TableCheckbox";function Id(e,t){return t.split(".").reduce((r,s)=>r==null?void 0:r[s],e)}function Wd(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=Id(e,t.key);return r==null||r===""?null:l.jsx(L,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const an={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function Ld(e,t,r){if(typeof r=="function")return r(e);const s=e;return r?s[r]??t:s.id??t}const Rt=y.forwardRef(({className:e,align:t="left",sortable:r,sorted:s,onSort:n,children:a,...i},o)=>l.jsx("th",{ref:o,className:v("border-b border-neutral-divider-secondary px-5 py-2",e),...i,children:l.jsxs("span",{className:v("flex items-center gap-1.5",an[t??"left"],r&&"cursor-pointer select-none"),onClick:r?n:void 0,children:[l.jsx(L,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:a}),r&&l.jsx(Ca,{className:v("size-5 shrink-0",s&&"text-agilys-primary"),"aria-hidden":"true"})]})}));Rt.displayName="TableHeadCell";function or({align:e="left",className:t,children:r,onClick:s}){return l.jsx("td",{onClick:s,className:v("border-b border-neutral-divider-secondary px-5 py-3",t),children:l.jsx(L,{className:v("flex items-center gap-2",an[e??"left"]),children:r})})}const on=ne("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-6 text-xs",md:"size-7 text-sm",lg:"size-10 text-base"}},defaultVariants:{size:"md"}});function Ad(e){var s;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(s=t[0])==null?void 0:s.slice(0,2);return r==null?void 0:r.toUpperCase()}const zd={sm:"caption",md:"bodySm",lg:"body"},Tr=y.forwardRef(({className:e,size:t,src:r,alt:s="",name:n,...a},i)=>{const o=t??"md";return l.jsx("span",{ref:i,className:v(on({size:t}),e),...a,children:r?l.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):n&&l.jsx(L,{as:"span",variant:zd[o],weight:"medium",className:"text-inherit leading-none",children:Ad(n)})})});Tr.displayName="Avatar";function Ed({src:e,name:t,description:r,size:s="md",className:n}){return l.jsxs("div",{className:v("flex min-w-0 items-center gap-2",n),children:[l.jsx(Tr,{src:e,name:t,size:s}),l.jsxs("div",{className:"flex min-w-0 flex-col",children:[l.jsx(L,{as:"span",variant:"body",className:"truncate",children:t}),r&&l.jsx(L,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}function Fd({keys:e,data:t,rowKey:r,loading:s,loadingMessage:n="Carregando dados...",emptyMessage:a="Nenhum dado para ser exibido!",selectable:i,selectedRowKeys:o,onSelectionChange:d,sortKey:c,sortDirection:h,onSortChange:p,onRowClick:b,shadow:P=!1,border:R=!1,className:M,...g}){const D=e.length+(i?1:0),z=o??[],$=t.map((N,w)=>Ld(N,w,r)),S=$.length>0&&$.every(N=>z.includes(N)),q=()=>{d&&d(S?[]:$)},H=N=>{d&&d(z.includes(N)?z.filter(w=>w!==N):[...z,N])};return l.jsx("div",{className:v("w-full overflow-x-auto rounded-lg",R&&"border border-neutral-divider-secondary",P&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:l.jsxs("table",{className:v("w-full border-collapse table-fixed",M),...g,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[i&&l.jsx(Rt,{align:"center",className:"w-11",children:l.jsx(Ct,{checked:S,onChange:q,"aria-label":"Selecionar todas as linhas"})}),e.map((N,w)=>l.jsx(Rt,{align:N.align,sortable:!!N.key&&!!p,sorted:N.key&&c===N.key?h:!1,onSort:()=>N.key&&(p==null?void 0:p(N.key)),children:N.label},N.key??`column-${w}`))]})}),l.jsx("tbody",{children:s?l.jsx("tr",{children:l.jsx("td",{colSpan:D,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(L,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:n})})}):t.length===0?l.jsx("tr",{children:l.jsx("td",{colSpan:D,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(L,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.map((N,w)=>{const I=$[w];return l.jsxs("tr",{onClick:b?()=>b(N):void 0,className:v(w%2===0?"bg-neutral-surface-lightest":"bg-white",b&&"cursor-pointer"),children:[i&&l.jsx(or,{align:"center",onClick:G=>G.stopPropagation(),children:l.jsx(Ct,{checked:z.includes(I),onChange:()=>H(I),"aria-label":"Selecionar linha"})}),e.map((G,Q)=>l.jsx(or,{align:G.align,className:G.className,children:Wd(N,G)},G.key??`column-${Q}`))]},I)})})]})})}const at="ellipsis";function wt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}function Vd(e,t,r){if(r*2+5>=t)return wt(1,t);const n=Math.max(e-r,1),a=Math.min(e+r,t),i=n>2,o=a<t-1;return!i&&o?[...wt(1,3+r*2),at,t]:i&&!o?[1,at,...wt(t-(2+r*2),t)]:[1,at,...wt(n,a),at,t]}function qr({direction:e,className:t}){return l.jsx("svg",{className:v("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const ln=y.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:s=1,className:n,...a},i)=>{const o=Vd(e,t,s),d=c=>{c<1||c>t||c===e||r(c)};return l.jsxs("nav",{ref:i,"aria-label":"Paginação",className:v("flex items-center gap-1 font-sans",n),...a,children:[l.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>d(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"left"})}),o.map((c,h)=>c===at?l.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:l.jsx(L,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${h}`):l.jsx("button",{type:"button","aria-current":c===e?"page":void 0,onClick:()=>d(c),className:v("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",c===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:l.jsx(L,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:c})},c)),l.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>d(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"right"})})]})});ln.displayName="Pagination";const Cr=ne("flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",{variants:{hasError:{true:"ring-1 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),dn=y.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:s,rightIcon:n,bgIcon:a=!1,error:i,disabled:o,id:d,...c},h)=>{const p=y.useId(),b=d??p,P=typeof i=="string"?i:i==null?void 0:i.message,R=!!P,M=`${b}-error`;return l.jsxs("div",{className:v("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&l.jsx(L,{as:"label",htmlFor:b,variant:"body",className:"text-neutral-text-primary",children:r}),l.jsxs("div",{className:v(Cr({hasError:R}),o&&"pointer-events-none opacity-50"),children:[s&&l.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary","aria-hidden":"true",children:s}),l.jsx("input",{ref:h,id:b,disabled:o,"aria-invalid":R||void 0,"aria-describedby":R?M:void 0,className:v(`w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
11
11
  font-normal text-black placeholder:font-inter placeholder:text-xs placeholder:leading-relaxed
12
- placeholder:font-normal placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed`,e),...c}),n&&l.jsx("span",{className:v("flex size-6 shrink-0 items-center justify-center text-neutral-secondary",a&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:n})]}),R&&l.jsx(L,{as:"span",id:M,role:"alert",variant:"caption",className:"text-danger-60",children:W})]})});dn.displayName="Input";const Ud=e=>typeof e.label=="string"?e.label:String(e.value),Jr=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),Hd=(e,t,r)=>{const s=Jr(t.trim());return s?e.filter(n=>Jr(r(n)).includes(s)):e},cn=g.forwardRef(({className:e,containerClassName:t,options:r,value:s,defaultValue:n,onChange:a,getOptionLabel:i=Ud,filterOptions:o,noOptionsText:d="Nenhuma opção encontrada",clearable:c=!0,placeholder:h="Selecione",label:p,name:b,leftIcon:W,rightIcon:R,bgIcon:M=!1,error:y,disabled:D,id:z,onKeyDown:$,onFocus:S,onBlur:q,...H},N)=>{const w=g.useId(),P=z??w,G=`${P}-listbox`,Q=typeof y=="string"?y:y==null?void 0:y.message,I=!!Q,Ke=`${P}-error`,Pe=s!==void 0,[yt,ze]=g.useState(n),De=Pe?s:yt,pe=r.find(Y=>Y.value===De),[B,Ne]=g.useState(!1),[ee,$t]=g.useState(""),[Rr,Xe]=g.useState(!1),[et,gt]=g.useState(0),Pr=g.useRef(null),Ir=g.useRef(null),On=g.useCallback(Y=>{Ir.current=Y,typeof N=="function"?N(Y):N&&(N.current=Y)},[N]),Oe=g.useMemo(()=>Rr?o?o(r,ee):Hd(r,ee,i):r,[Rr,r,ee,o,i]),Yn=B?ee:pe?i(pe):"";g.useEffect(()=>{if(!B)return;const Y=X=>{var Ee;(Ee=Pr.current)!=null&&Ee.contains(X.target)||(Ne(!1),Xe(!1))};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[B]),g.useEffect(()=>{if(!B)return;const Y=Oe.findIndex(X=>X.value===De);gt(Y>=0?Y:0)},[B,Oe,De]);const bt=()=>{$t(pe?i(pe):""),Xe(!1),Ne(!0)},Wr=()=>{Ne(!1),Xe(!1)},Bt=Y=>{var X;Pe||ze(Y?Y.value:void 0),a==null||a(Y?Y.value:void 0,Y),Wr(),(X=Ir.current)==null||X.focus()},jn=Y=>{Y.stopPropagation(),Bt(null),$t(""),Xe(!1),Ne(!0)},Tn=Y=>{if($==null||$(Y),!Y.defaultPrevented)switch(Y.key){case"ArrowDown":if(Y.preventDefault(),!B){bt();break}gt(X=>Math.min(X+1,Oe.length-1));break;case"ArrowUp":if(Y.preventDefault(),!B){bt();break}gt(X=>Math.max(X-1,0));break;case"Enter":Y.preventDefault(),B&&Oe[et]&&Bt(Oe[et]);break;case"Escape":B&&(Y.preventDefault(),Wr());break}};return l.jsxs("div",{ref:Pr,className:v("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[p&&l.jsx(L,{as:"label",htmlFor:P,variant:"body",className:"text-neutral-text-primary",children:p}),l.jsxs("div",{className:v(Cr({hasError:I}),D&&"pointer-events-none opacity-50"),children:[W&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:W}),l.jsx("input",{ref:On,type:"text",id:P,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":B,"aria-controls":G,"aria-invalid":I||void 0,"aria-describedby":I?Ke:void 0,"aria-activedescendant":B&&Oe[et]?`${G}-option-${et}`:void 0,disabled:D,placeholder:h,value:Yn,onChange:Y=>{Xe(!0),$t(Y.target.value),B||Ne(!0)},onFocus:Y=>{bt(),S==null||S(Y)},onBlur:q,onClick:()=>{B||bt()},onKeyDown:Tn,className:v("w-full min-w-0 flex-1 truncate bg-transparent text-left font-sans text-xs leading-relaxed font-normal text-black placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",e),...H}),c&&pe&&!D&&l.jsx("button",{type:"button",tabIndex:-1,onClick:jn,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:l.jsx(Ya,{className:"size-4"})}),l.jsx("span",{className:v("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",B&&"rotate-180",M&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:R??l.jsx(ja,{className:"size-4"})})]}),b&&l.jsx("input",{type:"hidden",name:b,value:De??""}),B&&l.jsxs("ul",{id:G,role:"listbox","aria-labelledby":p?P:void 0,className:"absolute left-0 top-full z-50 mt-1 max-h-60 w-full min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[Oe.length===0&&l.jsx("li",{className:"px-3 py-2",children:l.jsx(L,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:d})}),Oe.map((Y,X)=>{const Ee=Y.value===De,Cn=X===et;return l.jsx("li",{id:`${G}-option-${X}`,role:"option","aria-selected":Ee,onMouseEnter:()=>gt(X),onMouseDown:Rn=>Rn.preventDefault(),onClick:()=>Bt(Y),className:v("cursor-pointer truncate px-3 py-2",(Cn||Ee)&&"bg-lightGray"),children:l.jsx(L,{as:"span",variant:"bodySm",className:v("truncate text-black",Ee&&"font-medium"),children:Y.label})},X)})]}),I&&l.jsx(L,{as:"span",id:Ke,role:"alert",variant:"caption",className:"text-danger-60",children:Q})]})});cn.displayName="Select";function Gd(){return l.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const un=g.forwardRef(({open:e,onClose:t,title:r,children:s,footer:n,closeOnBackdropClick:a=!0,showCloseButton:i=!0,className:o,contentClassName:d,...c},h)=>{const p=g.useId(),b=g.useRef(null),[W,R]=g.useState(!1);return g.useEffect(()=>R(!0),[]),g.useEffect(()=>{var D;if(!e)return;const M=document.body.style.overflow;document.body.style.overflow="hidden",(D=b.current)==null||D.focus();const y=z=>{z.key==="Escape"&&t()};return document.addEventListener("keydown",y),()=>{document.body.style.overflow=M,document.removeEventListener("keydown",y)}},[e,t]),!e||!W?null:Qr.createPortal(l.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:a?t:void 0,children:l.jsxs("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":r?p:void 0,onClick:M=>M.stopPropagation(),className:v("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",o),...c,children:[i&&l.jsx("button",{ref:b,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:l.jsx(Gd,{})}),r&&l.jsx("div",{className:"pr-8",children:l.jsx(L,{as:"h2",id:p,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),l.jsx("div",{className:v("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",d),children:s}),n&&l.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:n})]})}),document.body)});un.displayName="Modal";const fn=ne("flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"),hn=ne("flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",{variants:{selected:{true:"bg-agilys-primary text-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.1)]",false:"text-neutral-secondary hover:text-neutral-text-primary"}},defaultVariants:{selected:!1}}),mn=g.forwardRef(({className:e,options:t,value:r,defaultValue:s,onChange:n,id:a,"aria-label":i,...o},d)=>{var $;const c=g.useId(),h=a??c,p=r!==void 0,[b,W]=g.useState(s??(($=t[0])==null?void 0:$.value)),R=p?r:b,M=g.useRef([]),y=S=>{S.disabled||(p||W(S.value),n==null||n(S.value,S))},D=S=>{var q;(q=M.current[S])==null||q.focus()},z=(S,q)=>{const H=t.map((w,P)=>w.disabled?-1:P).filter(w=>w!==-1),N=w=>{const P=H.indexOf(q);if(P===-1)return;const G=(P+w+H.length)%H.length,Q=H[G];D(Q),y(t[Q])};switch(S.key){case"ArrowRight":S.preventDefault(),N(1);break;case"ArrowLeft":S.preventDefault(),N(-1);break;case"Home":S.preventDefault(),H.length&&(D(H[0]),y(t[H[0]]));break;case"End":if(S.preventDefault(),H.length){const w=H[H.length-1];D(w),y(t[w])}break}};return l.jsx("div",{ref:d,role:"tablist","aria-label":i,id:h,className:v(fn(),e),...o,children:t.map((S,q)=>{const H=S.value===R;return l.jsx("button",{ref:N=>{M.current[q]=N},type:"button",role:"tab",id:`${h}-tab-${q}`,"aria-selected":H,"aria-disabled":S.disabled||void 0,disabled:S.disabled,tabIndex:H?0:-1,onClick:()=>y(S),onKeyDown:N=>z(N,q),className:v(hn({selected:H})),children:l.jsx(L,{as:"span",variant:"caption",weight:"medium",className:"text-inherit",children:S.label})},q)})})});mn.displayName="Tabs";function $d({className:e}){return l.jsx("svg",{className:v("size-5 shrink-0 transition-transform duration-200",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const pn=g.createContext(null);function yn(){const e=g.useContext(pn);if(!e)throw new Error("Accordion.Item must be used within an Accordion");return e}const gn=ne("flex w-full flex-col gap-2"),bn=g.forwardRef(({type:e="single",value:t,defaultValue:r,onChange:s,collapsible:n=!0,className:a,children:i,id:o,...d},c)=>{const h=g.useId(),p=o??h,b=w=>w===void 0?[]:Array.isArray(w)?w:[w],W=t!==void 0,[R,M]=g.useState(()=>b(r)),y=W?b(t):R,D=w=>{W||M(w),s==null||s(e==="multiple"?w:w[0]??"")},z=w=>{const P=y.includes(w);if(e==="multiple"){const G=P?y.filter(Q=>Q!==w):[...y,w];D(G);return}if(P){D(n?[]:y);return}D([w])},$=g.useRef(new Map),S=g.useRef([]),q=(w,P)=>{P?($.current.set(w,P),S.current.includes(w)||S.current.push(w)):($.current.delete(w),S.current=S.current.filter(G=>G!==w))},H=w=>{const P=S.current;if(!P.length)return;const G=(w+P.length)%P.length,Q=$.current.get(P[G]);Q==null||Q.focus()},N=g.useMemo(()=>({openValues:y,toggleValue:z,registerTrigger:q,focusTrigger:H,values:S.current,accordionId:p}),[y,e,n,p]);return l.jsx(pn.Provider,{value:N,children:l.jsx("div",{ref:c,id:p,className:v(gn(),a),...d,children:i})})});bn.displayName="Accordion";const xn=g.createContext(null);function vn(){const e=g.useContext(xn);if(!e)throw new Error("Accordion.Trigger/Content must be used within an Accordion.Item");return e}const wn=ne("overflow-hidden rounded-lg border border-neutral-divider-secondary bg-white"),_n=g.forwardRef(({value:e,disabled:t=!1,className:r,children:s,...n},a)=>{const{openValues:i,accordionId:o}=yn(),d=i.includes(e),c=`${o}-trigger-${e}`,h=`${o}-content-${e}`;return l.jsx(xn.Provider,{value:{value:e,disabled:t,isOpen:d,triggerId:c,contentId:h},children:l.jsx("div",{ref:a,className:v(wn(),r),"data-state":d?"open":"closed",...n,children:s})})});_n.displayName="Accordion.Item";const kn=ne("flex min-w-0 flex-1 items-center justify-between gap-3 px-4 py-3.5 text-left transition-colors hover:bg-lightGray focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50"),Sn=g.forwardRef(({className:e,children:t,actions:r,actionsClassName:s,...n},a)=>{const{toggleValue:i,registerTrigger:o,focusTrigger:d,values:c}=yn(),{value:h,disabled:p,isOpen:b,triggerId:W,contentId:R}=vn(),M=y=>{const D=c.indexOf(h);switch(y.key){case"ArrowDown":y.preventDefault(),d(D+1);break;case"ArrowUp":y.preventDefault(),d(D-1);break;case"Home":y.preventDefault(),d(0);break;case"End":y.preventDefault(),d(c.length-1);break}};return l.jsxs(L,{as:"h3",variant:"body",className:"m-0 flex w-full items-center gap-2",children:[l.jsxs("button",{ref:y=>{o(h,y),typeof a=="function"?a(y):a&&(a.current=y)},type:"button",id:W,"aria-expanded":b,"aria-controls":R,disabled:p,onClick:()=>i(h),onKeyDown:M,className:v(kn(),e),...n,children:[l.jsx("span",{className:"flex min-w-0 flex-1 items-center gap-2 font-medium text-neutral-text-primary",children:t}),l.jsx($d,{className:v("text-neutral-text-secondary",b&&"rotate-180")})]}),r&&l.jsx("div",{className:v("flex shrink-0 items-center gap-1 pr-4",s),children:r})]})});Sn.displayName="Accordion.Trigger";const Mn=g.forwardRef(({className:e,children:t,...r},s)=>{const{isOpen:n,triggerId:a,contentId:i}=vn();return l.jsx("div",{ref:s,id:i,role:"region","aria-labelledby":a,hidden:!n,className:v("px-4 pb-4 pt-0 text-sm text-neutral-text-secondary",e),...r,children:t})});Mn.displayName="Accordion.Content";const Bd=Object.assign(bn,{Item:_n,Trigger:Sn,Content:Mn}),Dn=ne("fixed z-[99999] flex w-full max-w-sm p-4",{variants:{position:{"top-right":"right-0 top-0 items-start justify-end","top-left":"left-0 top-0 items-start justify-start","bottom-right":"bottom-0 right-0 items-end justify-end","bottom-left":"bottom-0 left-0 items-end justify-start"}},defaultVariants:{position:"bottom-right"}});function Nn({open:e,position:t="bottom-right",container:r,className:s,variant:n,icon:a,title:i,description:o,action:d,onClose:c,...h}){const[p,b]=g.useState(!1);return g.useEffect(()=>b(!0),[]),!e||!p?null:Qr.createPortal(l.jsx("div",{className:Dn({position:t}),...h,children:l.jsx(Pt,{variant:n,icon:a,title:i,description:o,action:d,onClose:c,className:v("pointer-events-auto w-full shadow-lg",s)})}),r??document.body)}Nn.displayName="Toast";exports.Accordion=Bd;exports.Avatar=Tr;exports.Badge=ds;exports.Button=os;exports.Card=Pt;exports.Input=dn;exports.Modal=un;exports.Notification=nn;exports.Pagination=ln;exports.Select=cn;exports.Table=Fd;exports.TableAvatar=Ed;exports.TableCell=or;exports.TableCheckbox=Ct;exports.TableHeadCell=Rt;exports.Tabs=mn;exports.Text=L;exports.Toast=Nn;exports.accordionItemVariants=wn;exports.accordionTriggerVariants=kn;exports.accordionVariants=gn;exports.avatarVariants=on;exports.badgeVariants=ls;exports.buttonVariants=is;exports.cardVariants=cs;exports.cn=v;exports.inputVariants=Cr;exports.tabVariants=hn;exports.tabsListVariants=fn;exports.textVariants=as;exports.toastPositionVariants=Dn;
12
+ placeholder:font-normal placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed`,e),...c}),n&&l.jsx("span",{className:v("flex size-6 shrink-0 items-center justify-center text-neutral-secondary",a&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:n})]}),R&&l.jsx(L,{as:"span",id:M,role:"alert",variant:"caption",className:"text-danger-60",children:P})]})});dn.displayName="Input";const Ud=e=>typeof e.label=="string"?e.label:String(e.value),Jr=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),Hd=(e,t,r)=>{const s=Jr(t.trim());return s?e.filter(n=>Jr(r(n)).includes(s)):e},cn=y.forwardRef(({className:e,containerClassName:t,options:r,value:s,defaultValue:n,onChange:a,getOptionLabel:i=Ud,filterOptions:o,noOptionsText:d="Nenhuma opção encontrada",clearable:c=!0,placeholder:h="Selecione",label:p,name:b,leftIcon:P,rightIcon:R,bgIcon:M=!1,error:g,disabled:D,id:z,onKeyDown:$,onFocus:S,onBlur:q,...H},N)=>{const w=y.useId(),I=z??w,G=`${I}-listbox`,Q=typeof g=="string"?g:g==null?void 0:g.message,W=!!Q,Ke=`${I}-error`,Pe=s!==void 0,[yt,ze]=y.useState(n),De=Pe?s:yt,pe=r.find(Y=>Y.value===De),[B,Ne]=y.useState(!1),[ee,$t]=y.useState(""),[Rr,Xe]=y.useState(!1),[et,gt]=y.useState(0),Pr=y.useRef(null),Ir=y.useRef(null),On=y.useCallback(Y=>{Ir.current=Y,typeof N=="function"?N(Y):N&&(N.current=Y)},[N]),Oe=y.useMemo(()=>Rr?o?o(r,ee):Hd(r,ee,i):r,[Rr,r,ee,o,i]),Yn=B?ee:pe?i(pe):"";y.useEffect(()=>{if(!B)return;const Y=X=>{var Ee;(Ee=Pr.current)!=null&&Ee.contains(X.target)||(Ne(!1),Xe(!1))};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[B]),y.useEffect(()=>{if(!B)return;const Y=Oe.findIndex(X=>X.value===De);gt(Y>=0?Y:0)},[B,Oe,De]);const bt=()=>{$t(pe?i(pe):""),Xe(!1),Ne(!0)},Wr=()=>{Ne(!1),Xe(!1)},Bt=Y=>{var X;Pe||ze(Y?Y.value:void 0),a==null||a(Y?Y.value:void 0,Y),Wr(),(X=Ir.current)==null||X.focus()},jn=Y=>{Y.stopPropagation(),Bt(null),$t(""),Xe(!1),Ne(!0)},Tn=Y=>{if($==null||$(Y),!Y.defaultPrevented)switch(Y.key){case"ArrowDown":if(Y.preventDefault(),!B){bt();break}gt(X=>Math.min(X+1,Oe.length-1));break;case"ArrowUp":if(Y.preventDefault(),!B){bt();break}gt(X=>Math.max(X-1,0));break;case"Enter":Y.preventDefault(),B&&Oe[et]&&Bt(Oe[et]);break;case"Escape":B&&(Y.preventDefault(),Wr());break}};return l.jsxs("div",{ref:Pr,className:v("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[p&&l.jsx(L,{as:"label",htmlFor:I,variant:"body",className:"text-neutral-text-primary",children:p}),l.jsxs("div",{className:v(Cr({hasError:W}),D&&"pointer-events-none opacity-50"),children:[P&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:P}),l.jsx("input",{ref:On,type:"text",id:I,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":B,"aria-controls":G,"aria-invalid":W||void 0,"aria-describedby":W?Ke:void 0,"aria-activedescendant":B&&Oe[et]?`${G}-option-${et}`:void 0,disabled:D,placeholder:h,value:Yn,onChange:Y=>{Xe(!0),$t(Y.target.value),B||Ne(!0)},onFocus:Y=>{bt(),S==null||S(Y)},onBlur:q,onClick:()=>{B||bt()},onKeyDown:Tn,className:v("w-full min-w-0 flex-1 truncate bg-transparent text-left font-sans text-xs leading-relaxed font-normal text-black placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",e),...H}),c&&pe&&!D&&l.jsx("button",{type:"button",tabIndex:-1,onClick:jn,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:l.jsx(Ya,{className:"size-4"})}),l.jsx("span",{className:v("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",B&&"rotate-180",M&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:R??l.jsx(ja,{className:"size-4"})})]}),b&&l.jsx("input",{type:"hidden",name:b,value:De??""}),B&&l.jsxs("ul",{id:G,role:"listbox","aria-labelledby":p?I:void 0,className:"absolute left-0 top-full z-50 mt-1 max-h-60 w-full min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[Oe.length===0&&l.jsx("li",{className:"px-3 py-2",children:l.jsx(L,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:d})}),Oe.map((Y,X)=>{const Ee=Y.value===De,Cn=X===et;return l.jsx("li",{id:`${G}-option-${X}`,role:"option","aria-selected":Ee,onMouseEnter:()=>gt(X),onMouseDown:Rn=>Rn.preventDefault(),onClick:()=>Bt(Y),className:v("cursor-pointer truncate px-3 py-2",(Cn||Ee)&&"bg-lightGray"),children:l.jsx(L,{as:"span",variant:"bodySm",className:v("truncate text-black",Ee&&"font-medium"),children:Y.label})},X)})]}),W&&l.jsx(L,{as:"span",id:Ke,role:"alert",variant:"caption",className:"text-danger-60",children:Q})]})});cn.displayName="Select";function Gd(){return l.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const un=y.forwardRef(({open:e,onClose:t,title:r,children:s,footer:n,closeOnBackdropClick:a=!0,showCloseButton:i=!0,className:o,contentClassName:d,...c},h)=>{const p=y.useId(),b=y.useRef(null),[P,R]=y.useState(!1);return y.useEffect(()=>R(!0),[]),y.useEffect(()=>{var D;if(!e)return;const M=document.body.style.overflow;document.body.style.overflow="hidden",(D=b.current)==null||D.focus();const g=z=>{z.key==="Escape"&&t()};return document.addEventListener("keydown",g),()=>{document.body.style.overflow=M,document.removeEventListener("keydown",g)}},[e,t]),!e||!P?null:Qr.createPortal(l.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:a?t:void 0,children:l.jsxs("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":r?p:void 0,onClick:M=>M.stopPropagation(),className:v("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",o),...c,children:[i&&l.jsx("button",{ref:b,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:l.jsx(Gd,{})}),r&&l.jsx("div",{className:"pr-8",children:l.jsx(L,{as:"h2",id:p,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),l.jsx("div",{className:v("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",d),children:s}),n&&l.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:n})]})}),document.body)});un.displayName="Modal";const fn=ne("flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"),hn=ne("flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",{variants:{selected:{true:"bg-agilys-primary text-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.1)]",false:"text-neutral-secondary hover:text-neutral-text-primary"}},defaultVariants:{selected:!1}}),mn=y.forwardRef(({className:e,options:t,value:r,defaultValue:s,onChange:n,id:a,"aria-label":i,...o},d)=>{var $;const c=y.useId(),h=a??c,p=r!==void 0,[b,P]=y.useState(s??(($=t[0])==null?void 0:$.value)),R=p?r:b,M=y.useRef([]),g=S=>{S.disabled||(p||P(S.value),n==null||n(S.value,S))},D=S=>{var q;(q=M.current[S])==null||q.focus()},z=(S,q)=>{const H=t.map((w,I)=>w.disabled?-1:I).filter(w=>w!==-1),N=w=>{const I=H.indexOf(q);if(I===-1)return;const G=(I+w+H.length)%H.length,Q=H[G];D(Q),g(t[Q])};switch(S.key){case"ArrowRight":S.preventDefault(),N(1);break;case"ArrowLeft":S.preventDefault(),N(-1);break;case"Home":S.preventDefault(),H.length&&(D(H[0]),g(t[H[0]]));break;case"End":if(S.preventDefault(),H.length){const w=H[H.length-1];D(w),g(t[w])}break}};return l.jsx("div",{ref:d,role:"tablist","aria-label":i,id:h,className:v(fn(),e),...o,children:t.map((S,q)=>{const H=S.value===R;return l.jsx("button",{ref:N=>{M.current[q]=N},type:"button",role:"tab",id:`${h}-tab-${q}`,"aria-selected":H,"aria-disabled":S.disabled||void 0,disabled:S.disabled,tabIndex:H?0:-1,onClick:()=>g(S),onKeyDown:N=>z(N,q),className:v(hn({selected:H})),children:l.jsx(L,{as:"span",variant:"caption",weight:"medium",className:"text-inherit",children:S.label})},q)})})});mn.displayName="Tabs";function $d({className:e}){return l.jsx("svg",{className:v("size-5 shrink-0 transition-transform duration-200",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const pn=y.createContext(null);function yn(){const e=y.useContext(pn);if(!e)throw new Error("Accordion.Item must be used within an Accordion");return e}const gn=ne("flex w-full flex-col gap-2"),bn=y.forwardRef(({type:e="single",value:t,defaultValue:r,onChange:s,collapsible:n=!0,className:a,children:i,id:o,...d},c)=>{const h=y.useId(),p=o??h,b=w=>w===void 0?[]:Array.isArray(w)?w:[w],P=t!==void 0,[R,M]=y.useState(()=>b(r)),g=P?b(t):R,D=w=>{P||M(w),s==null||s(e==="multiple"?w:w[0]??"")},z=w=>{const I=g.includes(w);if(e==="multiple"){const G=I?g.filter(Q=>Q!==w):[...g,w];D(G);return}if(I){D(n?[]:g);return}D([w])},$=y.useRef(new Map),S=y.useRef([]),q=(w,I)=>{I?($.current.set(w,I),S.current.includes(w)||S.current.push(w)):($.current.delete(w),S.current=S.current.filter(G=>G!==w))},H=w=>{const I=S.current;if(!I.length)return;const G=(w+I.length)%I.length,Q=$.current.get(I[G]);Q==null||Q.focus()},N=y.useMemo(()=>({openValues:g,toggleValue:z,registerTrigger:q,focusTrigger:H,values:S.current,accordionId:p}),[g,e,n,p]);return l.jsx(pn.Provider,{value:N,children:l.jsx("div",{ref:c,id:p,className:v(gn(),a),...d,children:i})})});bn.displayName="Accordion";const xn=y.createContext(null);function vn(){const e=y.useContext(xn);if(!e)throw new Error("Accordion.Trigger/Content must be used within an Accordion.Item");return e}const wn=ne("overflow-hidden rounded-lg border border-neutral-divider-secondary bg-white"),_n=y.forwardRef(({value:e,disabled:t=!1,className:r,children:s,...n},a)=>{const{openValues:i,accordionId:o}=yn(),d=i.includes(e),c=`${o}-trigger-${e}`,h=`${o}-content-${e}`;return l.jsx(xn.Provider,{value:{value:e,disabled:t,isOpen:d,triggerId:c,contentId:h},children:l.jsx("div",{ref:a,className:v(wn(),r),"data-state":d?"open":"closed",...n,children:s})})});_n.displayName="Accordion.Item";const kn=ne("flex min-w-0 flex-1 items-center justify-between gap-3 px-4 py-3.5 text-left transition-colors hover:bg-lightGray focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50"),Sn=y.forwardRef(({className:e,children:t,actions:r,actionsClassName:s,...n},a)=>{const{toggleValue:i,registerTrigger:o,focusTrigger:d,values:c}=yn(),{value:h,disabled:p,isOpen:b,triggerId:P,contentId:R}=vn(),M=g=>{const D=c.indexOf(h);switch(g.key){case"ArrowDown":g.preventDefault(),d(D+1);break;case"ArrowUp":g.preventDefault(),d(D-1);break;case"Home":g.preventDefault(),d(0);break;case"End":g.preventDefault(),d(c.length-1);break}};return l.jsxs(L,{as:"h3",variant:"body",className:"m-0 flex w-full items-center gap-2",children:[l.jsxs("button",{ref:g=>{o(h,g),typeof a=="function"?a(g):a&&(a.current=g)},type:"button",id:P,"aria-expanded":b,"aria-controls":R,disabled:p,onClick:()=>i(h),onKeyDown:M,className:v(kn(),e),...n,children:[l.jsx("span",{className:"flex min-w-0 flex-1 items-center gap-2 font-medium text-neutral-text-primary",children:t}),l.jsx($d,{className:v("text-neutral-text-secondary",b&&"rotate-180")})]}),r&&l.jsx("div",{className:v("flex shrink-0 items-center gap-1 pr-4",s),children:r})]})});Sn.displayName="Accordion.Trigger";const Mn=y.forwardRef(({className:e,children:t,...r},s)=>{const{isOpen:n,triggerId:a,contentId:i}=vn();return l.jsx("div",{ref:s,id:i,role:"region","aria-labelledby":a,hidden:!n,className:v("px-4 pb-4 pt-0 text-sm text-neutral-text-secondary",e),...r,children:t})});Mn.displayName="Accordion.Content";const Bd=Object.assign(bn,{Item:_n,Trigger:Sn,Content:Mn}),Dn=ne("fixed z-[99999] flex w-full max-w-sm p-4",{variants:{position:{"top-right":"right-0 top-0 items-start justify-end","top-left":"left-0 top-0 items-start justify-start","bottom-right":"bottom-0 right-0 items-end justify-end","bottom-left":"bottom-0 left-0 items-end justify-start"}},defaultVariants:{position:"bottom-right"}});function Nn({open:e,position:t="bottom-right",container:r,className:s,variant:n,icon:a,title:i,description:o,action:d,onClose:c,duration:h=6e3,...p}){const[b,P]=y.useState(!1);return y.useEffect(()=>P(!0),[]),y.useEffect(()=>{if(!e||!h)return;const R=setTimeout(()=>c==null?void 0:c(),h);return()=>clearTimeout(R)},[e,h,c]),!e||!b?null:Qr.createPortal(l.jsx("div",{className:Dn({position:t}),...p,children:l.jsx(Pt,{variant:n,icon:a,title:i,description:o,action:d,onClose:c,className:v("pointer-events-auto w-full shadow-lg",s)})}),r??document.body)}Nn.displayName="Toast";exports.Accordion=Bd;exports.Avatar=Tr;exports.Badge=ds;exports.Button=os;exports.Card=Pt;exports.Input=dn;exports.Modal=un;exports.Notification=nn;exports.Pagination=ln;exports.Select=cn;exports.Table=Fd;exports.TableAvatar=Ed;exports.TableCell=or;exports.TableCheckbox=Ct;exports.TableHeadCell=Rt;exports.Tabs=mn;exports.Text=L;exports.Toast=Nn;exports.accordionItemVariants=wn;exports.accordionTriggerVariants=kn;exports.accordionVariants=gn;exports.avatarVariants=on;exports.badgeVariants=ls;exports.buttonVariants=is;exports.cardVariants=cs;exports.cn=v;exports.inputVariants=Cr;exports.tabVariants=hn;exports.tabsListVariants=fn;exports.textVariants=as;exports.toastPositionVariants=Dn;
13
13
  //# sourceMappingURL=agilys-design-system.cjs.map