@rock10/ui 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(j,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],k):(j=typeof globalThis<"u"?globalThis:j||self,k(j.Rock10UI={},j.React))})(this,function(j,k){"use strict";function Qe(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(a=0;a<n;a++)e[a]&&(t=Qe(e[a]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function $e(){for(var e,a,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(a=Qe(e))&&(o&&(o+=" "),o+=a);return o}const gt=(e,a)=>{const t=new Array(e.length+a.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<a.length;o++)t[e.length+o]=a[o];return t},ht=(e,a)=>({classGroupId:e,validator:a}),qe=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),Fe="-",er=[],yt="arbitrary..",kt=e=>{const a=wt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return vt(i);const c=i.split(Fe),m=c[0]===""&&c.length>1?1:0;return rr(c,m,a)},getConflictingClassGroupIds:(i,c)=>{if(c){const m=o[i],d=t[i];return m?d?gt(d,m):m:d||er}return t[i]||er}}},rr=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;const n=e[a],l=t.nextPart.get(n);if(l){const d=rr(e,a+1,l);if(d)return d}const i=t.validators;if(i===null)return;const c=a===0?e.join(Fe):e.slice(a).join(Fe),m=i.length;for(let d=0;d<m;d++){const f=i[d];if(f.validator(c))return f.classGroupId}},vt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?yt+o:void 0})(),wt=e=>{const{theme:a,classGroups:t}=e;return jt(t,a)},jt=(e,a)=>{const t=qe();for(const o in e){const n=e[o];Be(n,t,o,a)}return t},Be=(e,a,t,o)=>{const n=e.length;for(let l=0;l<n;l++){const i=e[l];Nt(i,a,t,o)}},Nt=(e,a,t,o)=>{if(typeof e=="string"){_t(e,a,t);return}if(typeof e=="function"){Ct(e,a,t,o);return}Rt(e,a,t,o)},_t=(e,a,t)=>{const o=e===""?a:tr(a,e);o.classGroupId=t},Ct=(e,a,t,o)=>{if(St(e)){Be(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(ht(t,e))},Rt=(e,a,t,o)=>{const n=Object.entries(e),l=n.length;for(let i=0;i<l;i++){const[c,m]=n[i];Be(m,tr(a,c),t,o)}},tr=(e,a)=>{let t=e;const o=a.split(Fe),n=o.length;for(let l=0;l<n;l++){const i=o[l];let c=t.nextPart.get(i);c||(c=qe(),t.nextPart.set(i,c)),t=c}return t},St=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Tt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null);const n=(l,i)=>{t[l]=i,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(l){let i=t[l];if(i!==void 0)return i;if((i=o[l])!==void 0)return n(l,i),i},set(l,i){l in t?t[l]=i:n(l,i)}}},We="!",ar=":",Et=[],sr=(e,a,t,o,n)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:n}),Pt=e=>{const{prefix:a,experimentalParseClassName:t}=e;let o=n=>{const l=[];let i=0,c=0,m=0,d;const f=n.length;for(let S=0;S<f;S++){const T=n[S];if(i===0&&c===0){if(T===ar){l.push(n.slice(m,S)),m=S+1;continue}if(T==="/"){d=S;continue}}T==="["?i++:T==="]"?i--:T==="("?c++:T===")"&&c--}const y=l.length===0?n:n.slice(m);let N=y,v=!1;y.endsWith(We)?(N=y.slice(0,-1),v=!0):y.startsWith(We)&&(N=y.slice(1),v=!0);const C=d&&d>m?d-m:void 0;return sr(l,v,N,C)};if(a){const n=a+ar,l=o;o=i=>i.startsWith(n)?l(i.slice(n.length)):sr(Et,!1,i,void 0,!0)}if(t){const n=o;o=l=>t({className:l,parseClassName:n})}return o},zt=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{const o=[];let n=[];for(let l=0;l<t.length;l++){const i=t[l],c=i[0]==="[",m=a.has(i);c||m?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(i)):n.push(i)}return n.length>0&&(n.sort(),o.push(...n)),o}},At=e=>({cache:Tt(e.cacheSize),parseClassName:Pt(e),sortModifiers:zt(e),postfixLookupClassGroupIds:Ot(e),...kt(e)}),Ot=e=>{const a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o<t.length;o++)a[t[o]]=!0;return a},Ft=/\s+/,It=(e,a)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:l,postfixLookupClassGroupIds:i}=a,c=[],m=e.trim().split(Ft);let d="";for(let f=m.length-1;f>=0;f-=1){const y=m[f],{isExternal:N,modifiers:v,hasImportantModifier:C,baseClassName:S,maybePostfixModifierPosition:T}=t(y);if(N){d=y+(d.length>0?" "+d:d);continue}let z=!!T,E;if(z){const I=S.substring(0,T);E=o(I);const b=E&&i[E]?o(S):void 0;b&&b!==E&&(E=b,z=!1)}else E=o(S);if(!E){if(!z){d=y+(d.length>0?" "+d:d);continue}if(E=o(S),!E){d=y+(d.length>0?" "+d:d);continue}z=!1}const X=v.length===0?"":v.length===1?v[0]:l(v).join(":"),G=C?X+We:X,Z=G+E;if(c.indexOf(Z)>-1)continue;c.push(Z);const O=n(E,z);for(let I=0;I<O.length;++I){const b=O[I];c.push(G+b)}d=y+(d.length>0?" "+d:d)}return d},Mt=(...e)=>{let a=0,t,o,n="";for(;a<e.length;)(t=e[a++])&&(o=or(t))&&(n&&(n+=" "),n+=o);return n},or=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=or(e[o]))&&(t&&(t+=" "),t+=a);return t},Dt=(e,...a)=>{let t,o,n,l;const i=m=>{const d=a.reduce((f,y)=>y(f),e());return t=At(d),o=t.cache.get,n=t.cache.set,l=c,c(m)},c=m=>{const d=o(m);if(d)return d;const f=It(m,t);return n(m,f),f};return l=i,(...m)=>l(Mt(...m))},Lt=[],K=e=>{const a=t=>t[e]||Lt;return a.isThemeGetter=!0,a},nr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Bt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wt=/\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$/,Gt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>Vt.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>!!e&&Number.isInteger(Number(e)),Ge=e=>e.endsWith("%")&&R(e.slice(0,-1)),ne=e=>Bt.test(e),ir=()=>!0,Yt=e=>Wt.test(e)&&!Gt.test(e),Ue=()=>!1,Kt=e=>Ut.test(e),Jt=e=>Ht.test(e),Xt=e=>!g(e)&&!h(e),Zt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Qt=e=>ue(e,xr,Ue),g=e=>nr.test(e),fe=e=>ue(e,br,Yt),dr=e=>ue(e,oa,R),$t=e=>ue(e,gr,ir),qt=e=>ue(e,pr,Ue),cr=e=>ue(e,mr,Ue),ea=e=>ue(e,fr,Jt),Ie=e=>ue(e,hr,Kt),h=e=>lr.test(e),Ne=e=>xe(e,br),ra=e=>xe(e,pr),ur=e=>xe(e,mr),ta=e=>xe(e,xr),aa=e=>xe(e,fr),Me=e=>xe(e,hr,!0),sa=e=>xe(e,gr,!0),ue=(e,a,t)=>{const o=nr.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},xe=(e,a,t=!1)=>{const o=lr.exec(e);return o?o[1]?a(o[1]):t:!1},mr=e=>e==="position"||e==="percentage",fr=e=>e==="image"||e==="url",xr=e=>e==="length"||e==="size"||e==="bg-size",br=e=>e==="length",oa=e=>e==="number",pr=e=>e==="family-name",gr=e=>e==="number"||e==="weight",hr=e=>e==="shadow",na=Dt(()=>{const e=K("color"),a=K("font"),t=K("text"),o=K("font-weight"),n=K("tracking"),l=K("leading"),i=K("breakpoint"),c=K("container"),m=K("spacing"),d=K("radius"),f=K("shadow"),y=K("inset-shadow"),N=K("text-shadow"),v=K("drop-shadow"),C=K("blur"),S=K("perspective"),T=K("aspect"),z=K("ease"),E=K("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...G(),h,g],O=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],b=()=>[h,g,m],D=()=>[ce,"full","auto",...b()],le=()=>[oe,"none","subgrid",h,g],ie=()=>["auto",{span:["full",oe,h,g]},oe,h,g],ae=()=>[oe,"auto",h,g],$=()=>["auto","min","max","fr",h,g],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...b()],ee=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],re=()=>[ce,"screen","full","dvw","lvw","svw","min","max","fit",...b()],de=()=>[ce,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],w=()=>[e,h,g],Te=()=>[...G(),ur,cr,{position:[h,g]}],Ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",ta,Qt,{size:[h,g]}],ze=()=>[Ge,Ne,fe],Q=()=>["","none","full",d,h,g],J=()=>["",R,Ne,fe],me=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[R,Ge,ur,cr],ge=()=>["","none",C,h,g],ke=()=>["none",R,h,g],he=()=>["none",R,h,g],Ae=()=>[R,h,g],ve=()=>[ce,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[ir],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[Xt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",R],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,g,h,T]}],container:["container"],"container-type":[{"@container":["","normal","size",h,g]}],"container-named":[Zt],columns:[{columns:[R,g,h,c]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[oe,"auto",h,g]}],basis:[{basis:[ce,"full","auto",c,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,ce,"auto","initial","none",g]}],grow:[{grow:["",R,h,g]}],shrink:[{shrink:["",R,h,g]}],order:[{order:[oe,"first","last","none",h,g]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[c,"screen",...ee()]}],"min-w":[{"min-w":[c,"screen","none",...ee()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",t,Ne,fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,sa,$t]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ge,g]}],"font-family":[{font:[ra,qt,a]}],"font-features":[{"font-features":[g]}],"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:[n,h,g]}],"line-clamp":[{"line-clamp":[R,"none",h,dr]}],leading:[{leading:[l,...b()]}],"list-image":[{"list-image":["none",h,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",h,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",h,fe]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[R,"auto",h,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[oe,h,g]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h,g]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Te()}],"bg-repeat":[{bg:Ee()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oe,h,g],radial:["",h,g],conic:[oe,h,g]},aa,ea]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:ze()}],"gradient-via-pos":[{via:ze()}],"gradient-to-pos":[{to:ze()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,h,g]}],"outline-w":[{outline:["",R,Ne,fe]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",f,Me,Ie]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",y,Me,Ie]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[R,fe]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",N,Me,Ie]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[R,h,g]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[h,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Te()}],"mask-repeat":[{mask:Ee()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",h,g]}],filter:[{filter:["","none",h,g]}],blur:[{blur:ge()}],brightness:[{brightness:[R,h,g]}],contrast:[{contrast:[R,h,g]}],"drop-shadow":[{"drop-shadow":["","none",v,Me,Ie]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",R,h,g]}],"hue-rotate":[{"hue-rotate":[R,h,g]}],invert:[{invert:["",R,h,g]}],saturate:[{saturate:[R,h,g]}],sepia:[{sepia:["",R,h,g]}],"backdrop-filter":[{"backdrop-filter":["","none",h,g]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[R,h,g]}],"backdrop-contrast":[{"backdrop-contrast":[R,h,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,h,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,h,g]}],"backdrop-invert":[{"backdrop-invert":["",R,h,g]}],"backdrop-opacity":[{"backdrop-opacity":[R,h,g]}],"backdrop-saturate":[{"backdrop-saturate":[R,h,g]}],"backdrop-sepia":[{"backdrop-sepia":["",R,h,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",h,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",h,g]}],ease:[{ease:["linear","initial",z,h,g]}],delay:[{delay:[R,h,g]}],animate:[{animate:["none",E,h,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,h,g]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[h,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],zoom:[{zoom:[oe,h,g]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h,g]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",h,g]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[R,Ne,fe,dr]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function x(...e){return na($e(e))}var He={exports:{}},_e={};/**
1
+ (function(N,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],v):(N=typeof globalThis<"u"?globalThis:N||self,v(N.Rock10UI={},N.React))})(this,function(N,v){"use strict";function $e(e){var a,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(a=0;a<n;a++)e[a]&&(t=$e(e[a]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}function qe(){for(var e,a,t=0,s="",n=arguments.length;t<n;t++)(e=arguments[t])&&(a=$e(e))&&(s&&(s+=" "),s+=a);return s}const kt=(e,a)=>{const t=new Array(e.length+a.length);for(let s=0;s<e.length;s++)t[s]=e[s];for(let s=0;s<a.length;s++)t[e.length+s]=a[s];return t},vt=(e,a)=>({classGroupId:e,validator:a}),er=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),Oe="-",rr=[],wt="arbitrary..",jt=e=>{const a=Ct(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Nt(i);const d=i.split(Oe),u=d[0]===""&&d.length>1?1:0;return tr(d,u,a)},getConflictingClassGroupIds:(i,d)=>{if(d){const u=s[i],c=t[i];return u?c?kt(c,u):u:c||rr}return t[i]||rr}}},tr=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;const n=e[a],l=t.nextPart.get(n);if(l){const c=tr(e,a+1,l);if(c)return c}const i=t.validators;if(i===null)return;const d=a===0?e.join(Oe):e.slice(a).join(Oe),u=i.length;for(let c=0;c<u;c++){const m=i[c];if(m.validator(d))return m.classGroupId}},Nt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),t=a.indexOf(":"),s=a.slice(0,t);return s?wt+s:void 0})(),Ct=e=>{const{theme:a,classGroups:t}=e;return _t(t,a)},_t=(e,a)=>{const t=er();for(const s in e){const n=e[s];Ve(n,t,s,a)}return t},Ve=(e,a,t,s)=>{const n=e.length;for(let l=0;l<n;l++){const i=e[l];St(i,a,t,s)}},St=(e,a,t,s)=>{if(typeof e=="string"){Rt(e,a,t);return}if(typeof e=="function"){Tt(e,a,t,s);return}Et(e,a,t,s)},Rt=(e,a,t)=>{const s=e===""?a:ar(a,e);s.classGroupId=t},Tt=(e,a,t,s)=>{if(zt(e)){Ve(e(s),a,t,s);return}a.validators===null&&(a.validators=[]),a.validators.push(vt(t,e))},Et=(e,a,t,s)=>{const n=Object.entries(e),l=n.length;for(let i=0;i<l;i++){const[d,u]=n[i];Ve(u,ar(a,d),t,s)}},ar=(e,a)=>{let t=e;const s=a.split(Oe),n=s.length;for(let l=0;l<n;l++){const i=s[l];let d=t.nextPart.get(i);d||(d=er(),t.nextPart.set(i,d)),t=d}return t},zt=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Pt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),s=Object.create(null);const n=(l,i)=>{t[l]=i,a++,a>e&&(a=0,s=t,t=Object.create(null))};return{get(l){let i=t[l];if(i!==void 0)return i;if((i=s[l])!==void 0)return n(l,i),i},set(l,i){l in t?t[l]=i:n(l,i)}}},We="!",sr=":",At=[],or=(e,a,t,s,n)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:s,isExternal:n}),Ft=e=>{const{prefix:a,experimentalParseClassName:t}=e;let s=n=>{const l=[];let i=0,d=0,u=0,c;const m=n.length;for(let R=0;R<m;R++){const E=n[R];if(i===0&&d===0){if(E===sr){l.push(n.slice(u,R)),u=R+1;continue}if(E==="/"){c=R;continue}}E==="["?i++:E==="]"?i--:E==="("?d++:E===")"&&d--}const f=l.length===0?n:n.slice(u);let w=f,k=!1;f.endsWith(We)?(w=f.slice(0,-1),k=!0):f.startsWith(We)&&(w=f.slice(1),k=!0);const S=c&&c>u?c-u:void 0;return or(l,k,w,S)};if(a){const n=a+sr,l=s;s=i=>i.startsWith(n)?l(i.slice(n.length)):or(At,!1,i,void 0,!0)}if(t){const n=s;s=l=>t({className:l,parseClassName:n})}return s},Ot=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((t,s)=>{a.set(t,1e6+s)}),t=>{const s=[];let n=[];for(let l=0;l<t.length;l++){const i=t[l],d=i[0]==="[",u=a.has(i);d||u?(n.length>0&&(n.sort(),s.push(...n),n=[]),s.push(i)):n.push(i)}return n.length>0&&(n.sort(),s.push(...n)),s}},It=e=>({cache:Pt(e.cacheSize),parseClassName:Ft(e),sortModifiers:Ot(e),postfixLookupClassGroupIds:Mt(e),...jt(e)}),Mt=e=>{const a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let s=0;s<t.length;s++)a[t[s]]=!0;return a},Dt=/\s+/,Lt=(e,a)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:n,sortModifiers:l,postfixLookupClassGroupIds:i}=a,d=[],u=e.trim().split(Dt);let c="";for(let m=u.length-1;m>=0;m-=1){const f=u[m],{isExternal:w,modifiers:k,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:E}=t(f);if(w){c=f+(c.length>0?" "+c:c);continue}let C=!!E,_;if(C){const I=R.substring(0,E);_=s(I);const b=_&&i[_]?s(R):void 0;b&&b!==_&&(_=b,C=!1)}else _=s(R);if(!_){if(!C){c=f+(c.length>0?" "+c:c);continue}if(_=s(R),!_){c=f+(c.length>0?" "+c:c);continue}C=!1}const X=k.length===0?"":k.length===1?k[0]:l(k).join(":"),G=S?X+We:X,Z=G+_;if(d.indexOf(Z)>-1)continue;d.push(Z);const F=n(_,C);for(let I=0;I<F.length;++I){const b=F[I];d.push(G+b)}c=f+(c.length>0?" "+c:c)}return c},Bt=(...e)=>{let a=0,t,s,n="";for(;a<e.length;)(t=e[a++])&&(s=nr(t))&&(n&&(n+=" "),n+=s);return n},nr=e=>{if(typeof e=="string")return e;let a,t="";for(let s=0;s<e.length;s++)e[s]&&(a=nr(e[s]))&&(t&&(t+=" "),t+=a);return t},Vt=(e,...a)=>{let t,s,n,l;const i=u=>{const c=a.reduce((m,f)=>f(m),e());return t=It(c),s=t.cache.get,n=t.cache.set,l=d,d(u)},d=u=>{const c=s(u);if(c)return c;const m=Lt(u,t);return n(u,m),m};return l=i,(...u)=>l(Bt(...u))},Wt=[],K=e=>{const a=t=>t[e]||Wt;return a.isThemeGetter=!0,a},lr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ir=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ut=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ht=/\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$/,Yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>Gt.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>!!e&&Number.isInteger(Number(e)),Ge=e=>e.endsWith("%")&&z(e.slice(0,-1)),ne=e=>Ut.test(e),dr=()=>!0,Xt=e=>Ht.test(e)&&!Yt.test(e),Ue=()=>!1,Zt=e=>Kt.test(e),Qt=e=>Jt.test(e),$t=e=>!h(e)&&!y(e),qt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ea=e=>ue(e,pr,Ue),h=e=>lr.test(e),xe=e=>ue(e,br,Xt),cr=e=>ue(e,ia,z),ra=e=>ue(e,hr,dr),ta=e=>ue(e,gr,Ue),ur=e=>ue(e,xr,Ue),aa=e=>ue(e,fr,Qt),Ie=e=>ue(e,yr,Zt),y=e=>ir.test(e),Ne=e=>fe(e,br),sa=e=>fe(e,gr),mr=e=>fe(e,xr),oa=e=>fe(e,pr),na=e=>fe(e,fr),Me=e=>fe(e,yr,!0),la=e=>fe(e,hr,!0),ue=(e,a,t)=>{const s=lr.exec(e);return s?s[1]?a(s[1]):t(s[2]):!1},fe=(e,a,t=!1)=>{const s=ir.exec(e);return s?s[1]?a(s[1]):t:!1},xr=e=>e==="position"||e==="percentage",fr=e=>e==="image"||e==="url",pr=e=>e==="length"||e==="size"||e==="bg-size",br=e=>e==="length",ia=e=>e==="number",gr=e=>e==="family-name",hr=e=>e==="number"||e==="weight",yr=e=>e==="shadow",da=Vt(()=>{const e=K("color"),a=K("font"),t=K("text"),s=K("font-weight"),n=K("tracking"),l=K("leading"),i=K("breakpoint"),d=K("container"),u=K("spacing"),c=K("radius"),m=K("shadow"),f=K("inset-shadow"),w=K("text-shadow"),k=K("drop-shadow"),S=K("blur"),R=K("perspective"),E=K("aspect"),C=K("ease"),_=K("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...G(),y,h],F=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],b=()=>[y,h,u],D=()=>[ce,"full","auto",...b()],le=()=>[oe,"none","subgrid",y,h],ie=()=>["auto",{span:["full",oe,y,h]},oe,y,h],ae=()=>[oe,"auto",y,h],$=()=>["auto","min","max","fr",y,h],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...b()],ee=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],re=()=>[ce,"screen","full","dvw","lvw","svw","min","max","fit",...b()],de=()=>[ce,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],j=()=>[e,y,h],Te=()=>[...G(),mr,ur,{position:[y,h]}],Ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ze=()=>["auto","cover","contain",oa,ea,{size:[y,h]}],Pe=()=>[Ge,Ne,xe],Q=()=>["","none","full",c,y,h],J=()=>["",z,Ne,xe],me=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[z,Ge,mr,ur],ge=()=>["","none",S,y,h],ke=()=>["none",z,y,h],he=()=>["none",z,y,h],Ae=()=>[z,y,h],ve=()=>[ce,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[dr],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[$t],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",z],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,h,y,E]}],container:["container"],"container-type":[{"@container":["","normal","size",y,h]}],"container-named":[qt],columns:[{columns:[z,h,y,d]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[oe,"auto",y,h]}],basis:[{basis:[ce,"full","auto",d,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,ce,"auto","initial","none",h]}],grow:[{grow:["",z,y,h]}],shrink:[{shrink:["",z,y,h]}],order:[{order:[oe,"first","last","none",y,h]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[d,"screen",...ee()]}],"min-w":[{"min-w":[d,"screen","none",...ee()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[i]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",t,Ne,xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,la,ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ge,h]}],"font-family":[{font:[sa,ta,a]}],"font-features":[{"font-features":[h]}],"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:[n,y,h]}],"line-clamp":[{"line-clamp":[z,"none",y,cr]}],leading:[{leading:[l,...b()]}],"list-image":[{"list-image":["none",y,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",y,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",y,xe]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[z,"auto",y,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[oe,y,h]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",y,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Te()}],"bg-repeat":[{bg:Ee()}],"bg-size":[{bg:ze()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oe,y,h],radial:["",y,h],conic:[oe,y,h]},na,aa]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:Pe()}],"gradient-via-pos":[{via:Pe()}],"gradient-to-pos":[{to:Pe()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,y,h]}],"outline-w":[{outline:["",z,Ne,xe]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",m,Me,Ie]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",f,Me,Ie]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[z,xe]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",w,Me,Ie]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[z,y,h]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[y,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Te()}],"mask-repeat":[{mask:Ee()}],"mask-size":[{mask:ze()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",y,h]}],filter:[{filter:["","none",y,h]}],blur:[{blur:ge()}],brightness:[{brightness:[z,y,h]}],contrast:[{contrast:[z,y,h]}],"drop-shadow":[{"drop-shadow":["","none",k,Me,Ie]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",z,y,h]}],"hue-rotate":[{"hue-rotate":[z,y,h]}],invert:[{invert:["",z,y,h]}],saturate:[{saturate:[z,y,h]}],sepia:[{sepia:["",z,y,h]}],"backdrop-filter":[{"backdrop-filter":["","none",y,h]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[z,y,h]}],"backdrop-contrast":[{"backdrop-contrast":[z,y,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,y,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,y,h]}],"backdrop-invert":[{"backdrop-invert":["",z,y,h]}],"backdrop-opacity":[{"backdrop-opacity":[z,y,h]}],"backdrop-saturate":[{"backdrop-saturate":[z,y,h]}],"backdrop-sepia":[{"backdrop-sepia":["",z,y,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",y,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",y,h]}],ease:[{ease:["linear","initial",C,y,h]}],delay:[{delay:[z,y,h]}],animate:[{animate:["none",_,y,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,y,h]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[y,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],zoom:[{zoom:[oe,y,h]}],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",y,h]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[z,Ne,xe,cr]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function p(...e){return da(qe(e))}var He={exports:{}},Ce={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var yr;function la(){if(yr)return _e;yr=1;var e=k,a=Symbol.for("react.element"),t=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(c,m,d){var f,y={},N=null,v=null;d!==void 0&&(N=""+d),m.key!==void 0&&(N=""+m.key),m.ref!==void 0&&(v=m.ref);for(f in m)o.call(m,f)&&!l.hasOwnProperty(f)&&(y[f]=m[f]);if(c&&c.defaultProps)for(f in m=c.defaultProps,m)y[f]===void 0&&(y[f]=m[f]);return{$$typeof:a,type:c,key:N,ref:v,props:y,_owner:n.current}}return _e.Fragment=t,_e.jsx=i,_e.jsxs=i,_e}var Ce={};/**
9
+ */var kr;function ca(){if(kr)return Ce;kr=1;var e=v,a=Symbol.for("react.element"),t=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(d,u,c){var m,f={},w=null,k=null;c!==void 0&&(w=""+c),u.key!==void 0&&(w=""+u.key),u.ref!==void 0&&(k=u.ref);for(m in u)s.call(u,m)&&!l.hasOwnProperty(m)&&(f[m]=u[m]);if(d&&d.defaultProps)for(m in u=d.defaultProps,u)f[m]===void 0&&(f[m]=u[m]);return{$$typeof:a,type:d,key:w,ref:k,props:f,_owner:n.current}}return Ce.Fragment=t,Ce.jsx=i,Ce.jsxs=i,Ce}var _e={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,142 +14,147 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var kr;function ia(){return kr||(kr=1,process.env.NODE_ENV!=="production"&&function(){var e=k,a=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),C=Symbol.iterator,S="@@iterator";function T(s){if(s===null||typeof s!="object")return null;var u=C&&s[C]||s[S];return typeof u=="function"?u:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(s){{for(var u=arguments.length,p=new Array(u>1?u-1:0),_=1;_<u;_++)p[_-1]=arguments[_];X("error",s,p)}}function X(s,u,p){{var _=z.ReactDebugCurrentFrame,F=_.getStackAddendum();F!==""&&(u+="%s",p=p.concat([F]));var M=p.map(function(A){return String(A)});M.unshift("Warning: "+u),Function.prototype.apply.call(console[s],console,M)}}var G=!1,Z=!1,O=!1,I=!1,b=!1,D;D=Symbol.for("react.module.reference");function le(s){return!!(typeof s=="string"||typeof s=="function"||s===o||s===l||b||s===n||s===d||s===f||I||s===v||G||Z||O||typeof s=="object"&&s!==null&&(s.$$typeof===N||s.$$typeof===y||s.$$typeof===i||s.$$typeof===c||s.$$typeof===m||s.$$typeof===D||s.getModuleId!==void 0))}function ie(s,u,p){var _=s.displayName;if(_)return _;var F=u.displayName||u.name||"";return F!==""?p+"("+F+")":p}function ae(s){return s.displayName||"Context"}function $(s){if(s==null)return null;if(typeof s.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case o:return"Fragment";case t:return"Portal";case l:return"Profiler";case n:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case c:var u=s;return ae(u)+".Consumer";case i:var p=s;return ae(p._context)+".Provider";case m:return ie(s,s.render,"ForwardRef");case y:var _=s.displayName||null;return _!==null?_:$(s.type)||"Memo";case N:{var F=s,M=F._payload,A=F._init;try{return $(A(M))}catch{return null}}}return null}var L=Object.assign,H=0,V,ee,re,de,w,Te,Ee;function Pe(){}Pe.__reactDisabledLog=!0;function ze(){{if(H===0){V=console.log,ee=console.info,re=console.warn,de=console.error,w=console.group,Te=console.groupCollapsed,Ee=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}H++}}function Q(){{if(H--,H===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},s,{value:V}),info:L({},s,{value:ee}),warn:L({},s,{value:re}),error:L({},s,{value:de}),group:L({},s,{value:w}),groupCollapsed:L({},s,{value:Te}),groupEnd:L({},s,{value:Ee})})}H<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=z.ReactCurrentDispatcher,me;function pe(s,u,p){{if(me===void 0)try{throw Error()}catch(F){var _=F.stack.trim().match(/\n( *(at )?)/);me=_&&_[1]||""}return`
18
- `+me+s}}var B=!1,ge;{var ke=typeof WeakMap=="function"?WeakMap:Map;ge=new ke}function he(s,u){if(!s||B)return"";{var p=ge.get(s);if(p!==void 0)return p}var _;B=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=J.current,J.current=null,ze();try{if(u){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(te){_=te}Reflect.construct(s,[],A)}else{try{A.call()}catch(te){_=te}s.call(A.prototype)}}else{try{throw Error()}catch(te){_=te}s()}}catch(te){if(te&&_&&typeof te.stack=="string"){for(var P=te.stack.split(`
19
- `),q=_.stack.split(`
17
+ */var vr;function ua(){return vr||(vr=1,process.env.NODE_ENV!=="production"&&function(){var e=v,a=Symbol.for("react.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),d=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),S=Symbol.iterator,R="@@iterator";function E(o){if(o===null||typeof o!="object")return null;var x=S&&o[S]||o[R];return typeof x=="function"?x:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(o){{for(var x=arguments.length,g=new Array(x>1?x-1:0),T=1;T<x;T++)g[T-1]=arguments[T];X("error",o,g)}}function X(o,x,g){{var T=C.ReactDebugCurrentFrame,O=T.getStackAddendum();O!==""&&(x+="%s",g=g.concat([O]));var M=g.map(function(A){return String(A)});M.unshift("Warning: "+x),Function.prototype.apply.call(console[o],console,M)}}var G=!1,Z=!1,F=!1,I=!1,b=!1,D;D=Symbol.for("react.module.reference");function le(o){return!!(typeof o=="string"||typeof o=="function"||o===s||o===l||b||o===n||o===c||o===m||I||o===k||G||Z||F||typeof o=="object"&&o!==null&&(o.$$typeof===w||o.$$typeof===f||o.$$typeof===i||o.$$typeof===d||o.$$typeof===u||o.$$typeof===D||o.getModuleId!==void 0))}function ie(o,x,g){var T=o.displayName;if(T)return T;var O=x.displayName||x.name||"";return O!==""?g+"("+O+")":g}function ae(o){return o.displayName||"Context"}function $(o){if(o==null)return null;if(typeof o.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case s:return"Fragment";case t:return"Portal";case l:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case d:var x=o;return ae(x)+".Consumer";case i:var g=o;return ae(g._context)+".Provider";case u:return ie(o,o.render,"ForwardRef");case f:var T=o.displayName||null;return T!==null?T:$(o.type)||"Memo";case w:{var O=o,M=O._payload,A=O._init;try{return $(A(M))}catch{return null}}}return null}var L=Object.assign,H=0,B,ee,re,de,j,Te,Ee;function ze(){}ze.__reactDisabledLog=!0;function Pe(){{if(H===0){B=console.log,ee=console.info,re=console.warn,de=console.error,j=console.group,Te=console.groupCollapsed,Ee=console.groupEnd;var o={configurable:!0,enumerable:!0,value:ze,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}H++}}function Q(){{if(H--,H===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},o,{value:B}),info:L({},o,{value:ee}),warn:L({},o,{value:re}),error:L({},o,{value:de}),group:L({},o,{value:j}),groupCollapsed:L({},o,{value:Te}),groupEnd:L({},o,{value:Ee})})}H<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.ReactCurrentDispatcher,me;function be(o,x,g){{if(me===void 0)try{throw Error()}catch(O){var T=O.stack.trim().match(/\n( *(at )?)/);me=T&&T[1]||""}return`
18
+ `+me+o}}var W=!1,ge;{var ke=typeof WeakMap=="function"?WeakMap:Map;ge=new ke}function he(o,x){if(!o||W)return"";{var g=ge.get(o);if(g!==void 0)return g}var T;W=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=J.current,J.current=null,Pe();try{if(x){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(te){T=te}Reflect.construct(o,[],A)}else{try{A.call()}catch(te){T=te}o.call(A.prototype)}}else{try{throw Error()}catch(te){T=te}o()}}catch(te){if(te&&T&&typeof te.stack=="string"){for(var P=te.stack.split(`
19
+ `),q=T.stack.split(`
20
20
  `),U=P.length-1,Y=q.length-1;U>=1&&Y>=0&&P[U]!==q[Y];)Y--;for(;U>=1&&Y>=0;U--,Y--)if(P[U]!==q[Y]){if(U!==1||Y!==1)do if(U--,Y--,Y<0||P[U]!==q[Y]){var se=`
21
- `+P[U].replace(" at new "," at ");return s.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",s.displayName)),typeof s=="function"&&ge.set(s,se),se}while(U>=1&&Y>=0);break}}}finally{B=!1,J.current=M,Q(),Error.prepareStackTrace=F}var je=s?s.displayName||s.name:"",ye=je?pe(je):"";return typeof s=="function"&&ge.set(s,ye),ye}function Ae(s,u,p){return he(s,!1)}function ve(s){var u=s.prototype;return!!(u&&u.isReactComponent)}function Le(s,u,p){if(s==null)return"";if(typeof s=="function")return he(s,ve(s));if(typeof s=="string")return pe(s);switch(s){case d:return pe("Suspense");case f:return pe("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case m:return Ae(s.render);case y:return Le(s.type,u,p);case N:{var _=s,F=_._payload,M=_._init;try{return Le(M(F),u,p)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,at={},st=z.ReactDebugCurrentFrame;function Ve(s){if(s){var u=s._owner,p=Le(s.type,s._source,u?u.type:null);st.setExtraStackFrame(p)}else st.setExtraStackFrame(null)}function Va(s,u,p,_,F){{var M=Function.call.bind(Oe);for(var A in s)if(M(s,A)){var P=void 0;try{if(typeof s[A]!="function"){var q=Error((_||"React class")+": "+p+" type `"+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[A]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}P=s[A](u,A,_,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){P=U}P&&!(P instanceof Error)&&(Ve(F),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",p,A,typeof P),Ve(null)),P instanceof Error&&!(P.message in at)&&(at[P.message]=!0,Ve(F),E("Failed %s type: %s",p,P.message),Ve(null))}}}var Ba=Array.isArray;function Ye(s){return Ba(s)}function Wa(s){{var u=typeof Symbol=="function"&&Symbol.toStringTag,p=u&&s[Symbol.toStringTag]||s.constructor.name||"Object";return p}}function Ga(s){try{return ot(s),!1}catch{return!0}}function ot(s){return""+s}function nt(s){if(Ga(s))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wa(s)),ot(s)}var lt=z.ReactCurrentOwner,Ua={key:!0,ref:!0,__self:!0,__source:!0},it,dt;function Ha(s){if(Oe.call(s,"ref")){var u=Object.getOwnPropertyDescriptor(s,"ref").get;if(u&&u.isReactWarning)return!1}return s.ref!==void 0}function Ya(s){if(Oe.call(s,"key")){var u=Object.getOwnPropertyDescriptor(s,"key").get;if(u&&u.isReactWarning)return!1}return s.key!==void 0}function Ka(s,u){typeof s.ref=="string"&&lt.current}function Ja(s,u){{var p=function(){it||(it=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};p.isReactWarning=!0,Object.defineProperty(s,"key",{get:p,configurable:!0})}}function Xa(s,u){{var p=function(){dt||(dt=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};p.isReactWarning=!0,Object.defineProperty(s,"ref",{get:p,configurable:!0})}}var Za=function(s,u,p,_,F,M,A){var P={$$typeof:a,type:s,key:u,ref:p,props:A,_owner:M};return P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(P,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(P,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P};function Qa(s,u,p,_,F){{var M,A={},P=null,q=null;p!==void 0&&(nt(p),P=""+p),Ya(u)&&(nt(u.key),P=""+u.key),Ha(u)&&(q=u.ref,Ka(u,F));for(M in u)Oe.call(u,M)&&!Ua.hasOwnProperty(M)&&(A[M]=u[M]);if(s&&s.defaultProps){var U=s.defaultProps;for(M in U)A[M]===void 0&&(A[M]=U[M])}if(P||q){var Y=typeof s=="function"?s.displayName||s.name||"Unknown":s;P&&Ja(A,Y),q&&Xa(A,Y)}return Za(s,P,q,F,_,lt.current,A)}}var Ke=z.ReactCurrentOwner,ct=z.ReactDebugCurrentFrame;function we(s){if(s){var u=s._owner,p=Le(s.type,s._source,u?u.type:null);ct.setExtraStackFrame(p)}else ct.setExtraStackFrame(null)}var Je;Je=!1;function Xe(s){return typeof s=="object"&&s!==null&&s.$$typeof===a}function ut(){{if(Ke.current){var s=$(Ke.current.type);if(s)return`
21
+ `+P[U].replace(" at new "," at ");return o.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",o.displayName)),typeof o=="function"&&ge.set(o,se),se}while(U>=1&&Y>=0);break}}}finally{W=!1,J.current=M,Q(),Error.prepareStackTrace=O}var je=o?o.displayName||o.name:"",ye=je?be(je):"";return typeof o=="function"&&ge.set(o,ye),ye}function Ae(o,x,g){return he(o,!1)}function ve(o){var x=o.prototype;return!!(x&&x.isReactComponent)}function Le(o,x,g){if(o==null)return"";if(typeof o=="function")return he(o,ve(o));if(typeof o=="string")return be(o);switch(o){case c:return be("Suspense");case m:return be("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case u:return Ae(o.render);case f:return Le(o.type,x,g);case w:{var T=o,O=T._payload,M=T._init;try{return Le(M(O),x,g)}catch{}}}return""}var Fe=Object.prototype.hasOwnProperty,nt={},lt=C.ReactDebugCurrentFrame;function Be(o){if(o){var x=o._owner,g=Le(o.type,o._source,x?x.type:null);lt.setExtraStackFrame(g)}else lt.setExtraStackFrame(null)}function Qa(o,x,g,T,O){{var M=Function.call.bind(Fe);for(var A in o)if(M(o,A)){var P=void 0;try{if(typeof o[A]!="function"){var q=Error((T||"React class")+": "+g+" type `"+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[A]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}P=o[A](x,A,T,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){P=U}P&&!(P instanceof Error)&&(Be(O),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",T||"React class",g,A,typeof P),Be(null)),P instanceof Error&&!(P.message in nt)&&(nt[P.message]=!0,Be(O),_("Failed %s type: %s",g,P.message),Be(null))}}}var $a=Array.isArray;function Ke(o){return $a(o)}function qa(o){{var x=typeof Symbol=="function"&&Symbol.toStringTag,g=x&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g}}function es(o){try{return it(o),!1}catch{return!0}}function it(o){return""+o}function dt(o){if(es(o))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qa(o)),it(o)}var ct=C.ReactCurrentOwner,rs={key:!0,ref:!0,__self:!0,__source:!0},ut,mt;function ts(o){if(Fe.call(o,"ref")){var x=Object.getOwnPropertyDescriptor(o,"ref").get;if(x&&x.isReactWarning)return!1}return o.ref!==void 0}function as(o){if(Fe.call(o,"key")){var x=Object.getOwnPropertyDescriptor(o,"key").get;if(x&&x.isReactWarning)return!1}return o.key!==void 0}function ss(o,x){typeof o.ref=="string"&&ct.current}function os(o,x){{var g=function(){ut||(ut=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}}function ns(o,x){{var g=function(){mt||(mt=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};g.isReactWarning=!0,Object.defineProperty(o,"ref",{get:g,configurable:!0})}}var ls=function(o,x,g,T,O,M,A){var P={$$typeof:a,type:o,key:x,ref:g,props:A,_owner:M};return P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(P,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(P,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P};function is(o,x,g,T,O){{var M,A={},P=null,q=null;g!==void 0&&(dt(g),P=""+g),as(x)&&(dt(x.key),P=""+x.key),ts(x)&&(q=x.ref,ss(x,O));for(M in x)Fe.call(x,M)&&!rs.hasOwnProperty(M)&&(A[M]=x[M]);if(o&&o.defaultProps){var U=o.defaultProps;for(M in U)A[M]===void 0&&(A[M]=U[M])}if(P||q){var Y=typeof o=="function"?o.displayName||o.name||"Unknown":o;P&&os(A,Y),q&&ns(A,Y)}return ls(o,P,q,O,T,ct.current,A)}}var Je=C.ReactCurrentOwner,xt=C.ReactDebugCurrentFrame;function we(o){if(o){var x=o._owner,g=Le(o.type,o._source,x?x.type:null);xt.setExtraStackFrame(g)}else xt.setExtraStackFrame(null)}var Xe;Xe=!1;function Ze(o){return typeof o=="object"&&o!==null&&o.$$typeof===a}function ft(){{if(Je.current){var o=$(Je.current.type);if(o)return`
22
22
 
23
- Check the render method of \``+s+"`."}return""}}function $a(s){return""}var mt={};function qa(s){{var u=ut();if(!u){var p=typeof s=="string"?s:s.displayName||s.name;p&&(u=`
23
+ Check the render method of \``+o+"`."}return""}}function ds(o){return""}var pt={};function cs(o){{var x=ft();if(!x){var g=typeof o=="string"?o:o.displayName||o.name;g&&(x=`
24
24
 
25
- Check the top-level render call using <`+p+">.")}return u}}function ft(s,u){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var p=qa(u);if(mt[p])return;mt[p]=!0;var _="";s&&s._owner&&s._owner!==Ke.current&&(_=" It was passed a child from "+$(s._owner.type)+"."),we(s),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',p,_),we(null)}}function xt(s,u){{if(typeof s!="object")return;if(Ye(s))for(var p=0;p<s.length;p++){var _=s[p];Xe(_)&&ft(_,u)}else if(Xe(s))s._store&&(s._store.validated=!0);else if(s){var F=T(s);if(typeof F=="function"&&F!==s.entries)for(var M=F.call(s),A;!(A=M.next()).done;)Xe(A.value)&&ft(A.value,u)}}}function es(s){{var u=s.type;if(u==null||typeof u=="string")return;var p;if(typeof u=="function")p=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===m||u.$$typeof===y))p=u.propTypes;else return;if(p){var _=$(u);Va(p,s.props,"prop",_,s)}else if(u.PropTypes!==void 0&&!Je){Je=!0;var F=$(u);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rs(s){{for(var u=Object.keys(s.props),p=0;p<u.length;p++){var _=u[p];if(_!=="children"&&_!=="key"){we(s),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),we(null);break}}s.ref!==null&&(we(s),E("Invalid attribute `ref` supplied to `React.Fragment`."),we(null))}}var bt={};function pt(s,u,p,_,F,M){{var A=le(s);if(!A){var P="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(P+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var q=$a();q?P+=q:P+=ut();var U;s===null?U="null":Ye(s)?U="array":s!==void 0&&s.$$typeof===a?(U="<"+($(s.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):U=typeof s,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,P)}var Y=Qa(s,u,p,F,M);if(Y==null)return Y;if(A){var se=u.children;if(se!==void 0)if(_)if(Ye(se)){for(var je=0;je<se.length;je++)xt(se[je],s);Object.freeze&&Object.freeze(se)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xt(se,s)}if(Oe.call(u,"key")){var ye=$(s),te=Object.keys(u).filter(function(ls){return ls!=="key"}),Ze=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!bt[ye+Ze]){var ns=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+g+">.")}return x}}function bt(o,x){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var g=cs(x);if(pt[g])return;pt[g]=!0;var T="";o&&o._owner&&o._owner!==Je.current&&(T=" It was passed a child from "+$(o._owner.type)+"."),we(o),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,T),we(null)}}function gt(o,x){{if(typeof o!="object")return;if(Ke(o))for(var g=0;g<o.length;g++){var T=o[g];Ze(T)&&bt(T,x)}else if(Ze(o))o._store&&(o._store.validated=!0);else if(o){var O=E(o);if(typeof O=="function"&&O!==o.entries)for(var M=O.call(o),A;!(A=M.next()).done;)Ze(A.value)&&bt(A.value,x)}}}function us(o){{var x=o.type;if(x==null||typeof x=="string")return;var g;if(typeof x=="function")g=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===u||x.$$typeof===f))g=x.propTypes;else return;if(g){var T=$(x);Qa(g,o.props,"prop",T,o)}else if(x.PropTypes!==void 0&&!Xe){Xe=!0;var O=$(x);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ms(o){{for(var x=Object.keys(o.props),g=0;g<x.length;g++){var T=x[g];if(T!=="children"&&T!=="key"){we(o),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),we(null);break}}o.ref!==null&&(we(o),_("Invalid attribute `ref` supplied to `React.Fragment`."),we(null))}}var ht={};function yt(o,x,g,T,O,M){{var A=le(o);if(!A){var P="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(P+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var q=ds();q?P+=q:P+=ft();var U;o===null?U="null":Ke(o)?U="array":o!==void 0&&o.$$typeof===a?(U="<"+($(o.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):U=typeof o,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,P)}var Y=is(o,x,g,O,M);if(Y==null)return Y;if(A){var se=x.children;if(se!==void 0)if(T)if(Ke(se)){for(var je=0;je<se.length;je++)gt(se[je],o);Object.freeze&&Object.freeze(se)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else gt(se,o)}if(Fe.call(x,"key")){var ye=$(o),te=Object.keys(x).filter(function(hs){return hs!=="key"}),Qe=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!ht[ye+Qe]){var gs=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Ze,ye,ns,ye),bt[ye+Ze]=!0}}return s===o?rs(Y):es(Y),Y}}function ts(s,u,p){return pt(s,u,p,!0)}function as(s,u,p){return pt(s,u,p,!1)}var ss=as,os=ts;Ce.Fragment=o,Ce.jsx=ss,Ce.jsxs=os}()),Ce}process.env.NODE_ENV==="production"?He.exports=la():He.exports=ia();var r=He.exports;const vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wr=$e,jr=(e,a)=>t=>{var o;if((a==null?void 0:a.variants)==null)return wr(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:l}=a,i=Object.keys(n).map(d=>{const f=t==null?void 0:t[d],y=l==null?void 0:l[d];if(f===null)return null;const N=vr(f)||vr(y);return n[d][N]}),c=t&&Object.entries(t).reduce((d,f)=>{let[y,N]=f;return N===void 0||(d[y]=N),d},{}),m=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((d,f)=>{let{class:y,className:N,...v}=f;return Object.entries(v).every(C=>{let[S,T]=C;return Array.isArray(T)?T.includes({...l,...c}[S]):{...l,...c}[S]===T})?[...d,y,N]:d},[]);return wr(e,i,m,t==null?void 0:t.class,t==null?void 0:t.className)};/**
30
+ <%s key={someKey} {...props} />`,Qe,ye,gs,ye),ht[ye+Qe]=!0}}return o===s?ms(Y):us(Y),Y}}function xs(o,x,g){return yt(o,x,g,!0)}function fs(o,x,g){return yt(o,x,g,!1)}var ps=fs,bs=xs;_e.Fragment=s,_e.jsx=ps,_e.jsxs=bs}()),_e}process.env.NODE_ENV==="production"?He.exports=ca():He.exports=ua();var r=He.exports;const wr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jr=qe,Nr=(e,a)=>t=>{var s;if((a==null?void 0:a.variants)==null)return jr(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:l}=a,i=Object.keys(n).map(c=>{const m=t==null?void 0:t[c],f=l==null?void 0:l[c];if(m===null)return null;const w=wr(m)||wr(f);return n[c][w]}),d=t&&Object.entries(t).reduce((c,m)=>{let[f,w]=m;return w===void 0||(c[f]=w),c},{}),u=a==null||(s=a.compoundVariants)===null||s===void 0?void 0:s.reduce((c,m)=>{let{class:f,className:w,...k}=m;return Object.entries(k).every(S=>{let[R,E]=S;return Array.isArray(E)?E.includes({...l,...d}[R]):{...l,...d}[R]===E})?[...c,f,w]:c},[]);return jr(e,i,u,t==null?void 0:t.class,t==null?void 0:t.className)};/**
31
31
  * @license lucide-react v0.475.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
- */const da=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nr=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();/**
35
+ */const ma=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cr=(...e)=>e.filter((a,t,s)=>!!a&&a.trim()!==""&&s.indexOf(a)===t).join(" ").trim();/**
36
36
  * @license lucide-react v0.475.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */var ca={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
40
+ */var xa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
41
41
  * @license lucide-react v0.475.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const ua=k.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:n="",children:l,iconNode:i,...c},m)=>k.createElement("svg",{ref:m,...ca,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Nr("lucide",n),...c},[...i.map(([d,f])=>k.createElement(d,f)),...Array.isArray(l)?l:[l]]));/**
45
+ */const fa=v.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:s,className:n="",children:l,iconNode:i,...d},u)=>v.createElement("svg",{ref:u,...xa,width:a,height:a,stroke:e,strokeWidth:s?Number(t)*24/Number(a):t,className:Cr("lucide",n),...d},[...i.map(([c,m])=>v.createElement(c,m)),...Array.isArray(l)?l:[l]]));/**
46
46
  * @license lucide-react v0.475.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const W=(e,a)=>{const t=k.forwardRef(({className:o,...n},l)=>k.createElement(ua,{ref:l,iconNode:a,className:Nr(`lucide-${da(e)}`,o),...n}));return t.displayName=`${e}`,t};/**
50
+ */const V=(e,a)=>{const t=v.forwardRef(({className:s,...n},l)=>v.createElement(fa,{ref:l,iconNode:a,className:Cr(`lucide-${ma(e)}`,s),...n}));return t.displayName=`${e}`,t};/**
51
51
  * @license lucide-react v0.475.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const ma=W("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
55
+ */const _r=V("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
56
56
  * @license lucide-react v0.475.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const _r=W("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
60
+ */const pa=V("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
61
61
  * @license lucide-react v0.475.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const Cr=W("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
65
+ */const Sr=V("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
66
66
  * @license lucide-react v0.475.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const Rr=W("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
70
+ */const Rr=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71
71
  * @license lucide-react v0.475.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const fa=W("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
75
+ */const Tr=V("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
76
76
  * @license lucide-react v0.475.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const xa=W("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
80
+ */const ba=V("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
81
81
  * @license lucide-react v0.475.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const ba=W("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
85
+ */const ga=V("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
86
86
  * @license lucide-react v0.475.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const Sr=W("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
90
+ */const ha=V("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
91
91
  * @license lucide-react v0.475.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const pa=W("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
95
+ */const Er=V("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
96
96
  * @license lucide-react v0.475.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const ga=W("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
100
+ */const ya=V("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
101
101
  * @license lucide-react v0.475.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const Re=W("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
105
+ */const ka=V("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
106
106
  * @license lucide-react v0.475.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const ha=W("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
110
+ */const Se=V("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
111
111
  * @license lucide-react v0.475.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const ya=W("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
115
+ */const va=V("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
116
116
  * @license lucide-react v0.475.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const De=W("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
120
+ */const zr=V("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
121
121
  * @license lucide-react v0.475.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const Tr=W("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
125
+ */const De=V("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
126
126
  * @license lucide-react v0.475.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
- */const ka=W("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
130
+ */const Ye=V("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
131
131
  * @license lucide-react v0.475.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
- */const va=W("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
135
+ */const wa=V("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
136
136
  * @license lucide-react v0.475.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
- */const Er=W("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
140
+ */const ja=V("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
141
141
  * @license lucide-react v0.475.0 - ISC
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
- */const Pr=W("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
145
+ */const Pr=V("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
146
146
  * @license lucide-react v0.475.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const wa=W("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/**
150
+ */const Ar=V("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
151
151
  * @license lucide-react v0.475.0 - ISC
152
152
  *
153
153
  * This source code is licensed under the ISC license.
154
154
  * See the LICENSE file in the root directory of this source tree.
155
- */const be=W("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ja=jr("inline-flex items-center justify-center font-bold transition-all select-none disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-[0.98]",{variants:{variant:{primary:"bg-primary-500 hover:bg-primary-600 active:bg-primary-700 text-white shadow-sm shadow-primary-500/20",secondary:"bg-gray-100 hover:bg-gray-200 dark:bg-dark-surface-light dark:hover:bg-gray-700 text-gray-700 dark:text-dark-text border border-gray-200 dark:border-dark-border",outline:"border border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:bg-gray-50 dark:hover:bg-dark-surface-light",ghost:"text-gray-600 dark:text-dark-text hover:bg-gray-100 dark:hover:bg-dark-surface-light",danger:"bg-red-600 hover:bg-red-700 active:bg-red-800 text-white shadow-sm shadow-red-600/20",success:"bg-emerald-600 hover:bg-emerald-700 active:bg-emerald-800 text-white shadow-sm shadow-emerald-600/20",purple:"bg-purple-600 hover:bg-purple-500 active:bg-purple-700 text-white shadow-sm shadow-purple-600/20",link:"text-primary-500 hover:text-primary-600 dark:text-primary-400 underline-offset-4 hover:underline p-0 h-auto font-semibold"},size:{sm:"h-8 px-3 text-xs gap-1.5 rounded-lg",md:"h-10 px-4 py-2 text-sm gap-2 rounded-xl",lg:"h-12 px-6 text-base gap-2.5 rounded-xl"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"primary",size:"md",fullWidth:!1}}),zr=k.forwardRef(({className:e,variant:a,size:t,fullWidth:o,isLoading:n=!1,leftIcon:l,rightIcon:i,children:c,disabled:m,...d},f)=>r.jsxs("button",{ref:f,disabled:m||n,className:x(ja({variant:a,size:t,fullWidth:o}),e),...d,children:[n?r.jsx(De,{className:"w-4 h-4 animate-spin shrink-0"}):l&&r.jsx("span",{className:"shrink-0",children:l}),c&&r.jsx("span",{children:c}),!n&&i&&r.jsx("span",{className:"shrink-0",children:i})]}));zr.displayName="Button";const Ar=k.forwardRef(({className:e,label:a,error:t,helperText:o,startIcon:n,endIcon:l,clearable:i=!1,onClear:c,inputSize:m="md",fullWidth:d=!0,disabled:f,value:y,id:N,...v},C)=>{const S=N||(a?`input-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),T={sm:"h-8 px-2.5 text-xs rounded-lg",md:"h-10 px-3.5 text-sm rounded-xl",lg:"h-12 px-4 text-base rounded-xl"};return r.jsxs("div",{className:x("flex flex-col gap-1.5",d&&"w-full"),children:[a&&r.jsx("label",{htmlFor:S,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsxs("div",{className:"relative flex items-center w-full",children:[n&&r.jsx("div",{className:"absolute left-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:n}),r.jsx("input",{id:S,ref:C,disabled:f,value:y,className:x("w-full bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed",T[m],n&&"pl-10",(l||i&&y)&&"pr-10",t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...v}),i&&y&&!f&&r.jsx("button",{type:"button",onClick:c,className:"absolute right-3 p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(be,{className:"w-3.5 h-3.5"})}),!i&&l&&r.jsx("div",{className:"absolute right-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:l})]}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&o&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:o})]})});Ar.displayName="Input";const Or=k.forwardRef(({className:e,label:a,error:t,helperText:o,options:n,selectSize:l="md",fullWidth:i=!0,disabled:c,children:m,id:d,...f},y)=>{const N=d||(a?`select-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),v={sm:"h-8 pl-2.5 pr-8 text-xs rounded-lg",md:"h-10 pl-3.5 pr-10 text-sm rounded-xl",lg:"h-12 pl-4 pr-12 text-base rounded-xl"};return r.jsxs("div",{className:x("flex flex-col gap-1.5",i&&"w-full"),children:[a&&r.jsx("label",{htmlFor:N,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsxs("div",{className:"relative flex items-center w-full",children:[r.jsx("select",{id:N,ref:y,disabled:c,className:x("w-full appearance-none bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer",v[l],t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...f,children:n?n.map(C=>r.jsx("option",{value:C.value,disabled:C.disabled,children:C.label},C.value)):m}),r.jsx("div",{className:"absolute right-3 pointer-events-none text-gray-400 dark:text-dark-text-muted",children:r.jsx(Rr,{className:"w-4 h-4"})})]}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&o&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:o})]})});Or.displayName="Select";const Fr=k.forwardRef(({className:e,label:a,error:t,helperText:o,fullWidth:n=!0,disabled:l,rows:i=3,id:c,...m},d)=>{const f=c||(a?`textarea-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("div",{className:x("flex flex-col gap-1.5",n&&"w-full"),children:[a&&r.jsx("label",{htmlFor:f,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsx("textarea",{id:f,ref:d,rows:i,disabled:l,className:x("w-full p-3 bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 text-sm font-medium rounded-xl transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed resize-y",t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...m}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&o&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:o})]})});Fr.displayName="Textarea";const Ir=k.forwardRef(({className:e,label:a,description:t,checked:o,disabled:n,id:l,onChange:i,...c},m)=>{const d=l||(typeof a=="string"?`checkbox-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("label",{htmlFor:d,className:x("inline-flex items-start gap-2.5 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative flex items-center justify-center shrink-0 mt-0.5",children:[r.jsx("input",{id:d,ref:m,type:"checkbox",checked:o,disabled:n,onChange:i,className:"peer sr-only",...c}),r.jsx("div",{className:x("w-5 h-5 rounded-md border border-gray-300 dark:border-dark-border bg-white dark:bg-dark-surface transition-all flex items-center justify-center peer-checked:bg-primary-500 peer-checked:border-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500/30 group-hover:border-primary-500/60 shadow-xs",o&&"bg-primary-500 border-primary-500 text-white"),children:o&&r.jsx(Cr,{className:"w-3.5 h-3.5 stroke-[3] text-white"})})]}),(a||t)&&r.jsxs("div",{className:"flex flex-col",children:[a&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:t})]})]})});Ir.displayName="Checkbox";const Mr=k.forwardRef(({className:e,label:a,description:t,checked:o,disabled:n,switchSize:l="md",id:i,onChange:c,...m},d)=>{const f=i||(typeof a=="string"?`switch-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),y={sm:"w-8 h-4.5",md:"w-11 h-6",lg:"w-14 h-7.5"},N={sm:"w-3.5 h-3.5 translate-x-0.5 peer-checked:translate-x-4",md:"w-5 h-5 translate-x-0.5 peer-checked:translate-x-5.5",lg:"w-6.5 h-6.5 translate-x-0.5 peer-checked:translate-x-7"};return r.jsxs("label",{htmlFor:f,className:x("inline-flex items-center gap-3 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative inline-flex items-center shrink-0",children:[r.jsx("input",{id:f,ref:d,type:"checkbox",role:"switch",checked:o,disabled:n,onChange:c,className:"peer sr-only",...m}),r.jsx("div",{className:x("rounded-full bg-gray-200 dark:bg-dark-surface-light peer-checked:bg-primary-500 transition-colors duration-200 ease-in-out border border-transparent shadow-inner",y[l])}),r.jsx("div",{className:x("absolute bg-white rounded-full shadow-md transform transition-transform duration-200 ease-in-out pointer-events-none",N[l])})]}),(a||t)&&r.jsxs("div",{className:"flex flex-col",children:[a&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:t})]})]})});Mr.displayName="Switch";const Na=jr("inline-flex items-center font-bold tracking-tight transition-colors select-none shrink-0",{variants:{variant:{success:"bg-emerald-50 dark:bg-emerald-950/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-800/60",danger:"bg-red-50 dark:bg-red-950/30 text-red-700 dark:text-red-400 border border-red-200 dark:border-red-800/60",warning:"bg-amber-50 dark:bg-amber-950/30 text-amber-700 dark:text-amber-400 border border-amber-200 dark:border-amber-800/60",info:"bg-blue-50 dark:bg-blue-950/30 text-blue-700 dark:text-blue-300 border border-blue-200 dark:border-blue-800/60",purple:"bg-purple-50 dark:bg-purple-950/30 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800/60",neutral:"bg-gray-100 dark:bg-dark-surface-light text-gray-700 dark:text-dark-text-muted border border-gray-200 dark:border-dark-border",primary:"bg-primary-50 dark:bg-primary-950/30 text-primary-700 dark:text-primary-300 border border-primary-200 dark:border-primary-800/60",secondary:"bg-secondary-50 dark:bg-secondary-950/30 text-secondary-700 dark:text-secondary-300 border border-secondary-200 dark:border-secondary-800/60"},size:{sm:"text-[10px] px-2 py-0.5 gap-1",md:"text-xs px-2.5 py-1 gap-1.5"},shape:{pill:"rounded-full",rounded:"rounded-md"}},defaultVariants:{variant:"neutral",size:"sm",shape:"pill"}}),_a={success:"bg-emerald-500",danger:"bg-red-500",warning:"bg-amber-500",info:"bg-blue-500",purple:"bg-purple-500",neutral:"bg-gray-400",primary:"bg-primary-500",secondary:"bg-secondary-500"};function Dr({className:e,variant:a="neutral",size:t="sm",shape:o="pill",dot:n=!1,pulseDot:l=!1,children:i,...c}){const d=_a[a||"neutral"]||"bg-gray-400";return r.jsxs("span",{className:x(Na({variant:a,size:t,shape:o}),e),...c,children:[n&&r.jsxs("span",{className:"relative flex h-1.5 w-1.5 shrink-0",children:[l&&r.jsx("span",{className:x("animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",d)}),r.jsx("span",{className:x("relative inline-flex rounded-full h-1.5 w-1.5",d)})]}),i]})}function Se({className:e,variant:a="text",width:t,height:o,style:n,...l}){const i={text:"h-4 rounded-md w-full",circular:"rounded-full",rectangular:"rounded-xl",card:"h-32 rounded-2xl w-full"};return r.jsx("div",{className:x("animate-pulse bg-gray-200/80 dark:bg-dark-surface-light/80",i[a],e),style:{width:typeof t=="number"?`${t}px`:t,height:typeof o=="number"?`${o}px`:o,...n},...l})}const Lr=({icon:e,variant:a="primary",size:t="md",rounded:o=!1,ariaLabel:n,disabled:l=!1,loading:i=!1,className:c="",...m})=>{const d="relative inline-flex items-center justify-center gap-2 border-none font-semibold cursor-pointer transition-all select-none -webkit-tap-highlight-color-transparent outline-none focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-95 duration-150",f={primary:"bg-gradient-to-br from-primary-500 to-primary-600 text-white shadow-md hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5",secondary:"bg-gray-100 dark:bg-dark-surface text-gray-700 dark:text-dark-text border border-gray-300 dark:border-dark-border hover:bg-gray-200 dark:hover:bg-dark-surface-light hover:-translate-y-0.5",ghost:"bg-transparent text-gray-600 dark:text-dark-text-muted hover:bg-gray-100 dark:hover:bg-dark-surface hover:text-gray-800 dark:hover:text-dark-text",danger:"bg-gradient-to-br from-red-500 to-red-600 text-white shadow-md hover:from-red-600 hover:to-red-700 hover:shadow-lg hover:-translate-y-0.5"},y=o?{sm:"w-8 h-8 rounded-full p-0 text-base",md:"w-10 h-10 rounded-full p-0 text-lg sm:w-11 sm:h-11",lg:"w-12 h-12 rounded-full p-0 text-xl sm:w-13 sm:h-13"}:{sm:"px-3 py-1.5 text-sm rounded-md min-h-[32px]",md:"px-4 py-2 text-base rounded-md min-h-[40px] sm:min-h-[44px]",lg:"px-6 py-3 text-lg rounded-lg min-h-[48px] sm:min-h-[52px]"};return r.jsx("button",{className:x(d,f[a],y[t],i&&"pointer-events-none",c),"aria-label":n,disabled:l||i,...m,children:i?r.jsx(De,{className:"w-4 h-4 animate-spin",role:"status","aria-hidden":"true"}):r.jsx("span",{className:"flex items-center justify-center leading-none",children:e})})},Vr=k.forwardRef(({className:e,hoverable:a=!1,padded:t=!0,children:o,...n},l)=>r.jsx("div",{ref:l,className:x("bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl shadow-xs transition-all duration-200 overflow-hidden",t&&"p-5 sm:p-6",a&&"hover:shadow-md hover:-translate-y-0.5 cursor-pointer",e),...n,children:o}));Vr.displayName="Card";const Br=k.forwardRef(({className:e,actions:a,children:t,...o},n)=>r.jsxs("div",{ref:n,className:x("flex items-center justify-between gap-4 mb-4",e),...o,children:[r.jsx("div",{className:"flex flex-col gap-1",children:t}),a&&r.jsx("div",{className:"flex items-center gap-2 shrink-0",children:a})]}));Br.displayName="CardHeader";const Wr=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("h3",{ref:o,className:x("text-base font-bold text-gray-900 dark:text-dark-text tracking-tight",e),...t,children:a}));Wr.displayName="CardTitle";const Gr=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("p",{ref:o,className:x("text-xs text-gray-500 dark:text-dark-text-muted font-medium",e),...t,children:a}));Gr.displayName="CardDescription";const Ur=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("div",{ref:o,className:x("space-y-4",e),...t,children:a}));Ur.displayName="CardContent";const Hr=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("div",{ref:o,className:x("flex items-center justify-end gap-3 pt-4 mt-4 border-t border-gray-100 dark:border-dark-border",e),...t,children:a}));Hr.displayName="CardFooter";const Yr={purple:{text:"text-purple-600 dark:text-purple-400",bg:"bg-purple-100 dark:bg-purple-900/30 text-purple-600 dark:text-purple-400",border:"border-purple-200/50 dark:border-purple-950/20"},blue:{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400",border:"border-blue-200/50 dark:border-blue-950/20"},emerald:{text:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-900/30 text-emerald-600 dark:text-emerald-400",border:"border-emerald-200/50 dark:border-emerald-950/20"},amber:{text:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-900/30 text-amber-600 dark:text-amber-400",border:"border-amber-200/50 dark:border-amber-950/20"},red:{text:"text-red-600 dark:text-red-400",bg:"bg-red-100 dark:bg-red-900/30 text-red-600 dark:text-red-400",border:"border-red-200/50 dark:border-red-950/20"},cyan:{text:"text-cyan-600 dark:text-cyan-400",bg:"bg-cyan-100 dark:bg-cyan-900/30 text-cyan-600 dark:text-cyan-400",border:"border-cyan-200/50 dark:border-cyan-950/20"},pink:{text:"text-pink-600 dark:text-pink-400",bg:"bg-pink-100 dark:bg-pink-900/30 text-pink-600 dark:text-pink-400",border:"border-pink-200/50 dark:border-pink-950/20"},yellow:{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-600 dark:text-yellow-400",border:"border-yellow-200/50 dark:border-yellow-950/20"}};function Ca({title:e,value:a,subtitle:t,icon:o,color:n="purple",isLoading:l=!1,animateValue:i=!0,className:c,onClick:m}){const[d,f]=k.useState(typeof a=="number"&&i?0:a),y=Yr[n]||Yr.purple;return k.useEffect(()=>{if(typeof a!="number"||!i){f(a);return}let N=!0,v=null;const C=1e3,S=T=>{if(!N)return;v||(v=T);const z=Math.min((T-v)/C,1),E=z*(2-z),X=Math.floor(E*a);f(X.toLocaleString("pt-BR")),z<1?window.requestAnimationFrame(S):f(a.toLocaleString("pt-BR"))};return window.requestAnimationFrame(S),()=>{N=!1}},[a,i]),l?r.jsxs("div",{className:"bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx(Se,{width:"50%",height:14}),r.jsx(Se,{variant:"circular",width:40,height:40})]}),r.jsx(Se,{width:"40%",height:32,className:"my-2"}),r.jsx(Se,{width:"70%",height:12})]}):r.jsxs("div",{onClick:m,className:x("bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs hover:shadow-sm transition-all",m&&"cursor-pointer hover:-translate-y-0.5",c),children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("span",{className:x("text-xs font-bold uppercase tracking-wider",y.text),children:e}),o&&r.jsx("div",{className:x("w-10 h-10 rounded-xl flex items-center justify-center shrink-0",y.bg),children:o})]}),r.jsx("div",{className:"text-3xl font-black text-gray-900 dark:text-dark-text tracking-tight",children:typeof a=="number"&&!i?a.toLocaleString("pt-BR"):d}),t&&r.jsx("div",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium mt-1.5 flex items-center gap-1",children:t})]})}function Ra({variant:e="info",title:a,children:t,icon:o,onClose:n,className:l}){const c={info:{container:"bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-800/60 text-blue-900 dark:text-blue-200",icon:r.jsx(ha,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 shrink-0"})},success:{container:"bg-emerald-50 dark:bg-emerald-950/30 border-emerald-200 dark:border-emerald-800/60 text-emerald-900 dark:text-emerald-200",icon:r.jsx(xa,{className:"w-5 h-5 text-emerald-600 dark:text-emerald-400 shrink-0"})},warning:{container:"bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-800/60 text-amber-900 dark:text-amber-200",icon:r.jsx(Pr,{className:"w-5 h-5 text-amber-600 dark:text-amber-400 shrink-0"})},danger:{container:"bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-800/60 text-red-900 dark:text-red-200",icon:r.jsx(fa,{className:"w-5 h-5 text-red-600 dark:text-red-400 shrink-0"})}}[e];return r.jsxs("div",{role:"alert",className:x("p-4 rounded-xl border flex items-start gap-3 relative transition-all",c.container,l),children:[r.jsx("div",{className:"mt-0.5",children:o||c.icon}),r.jsxs("div",{className:"flex-1 text-sm",children:[a&&r.jsx("h5",{className:"font-bold text-sm mb-1",children:a}),r.jsx("div",{className:"font-medium text-xs sm:text-sm leading-relaxed",children:t})]}),n&&r.jsx("button",{onClick:n,className:"p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(be,{className:"w-4 h-4"})})]})}const Kr=k.forwardRef(({className:e,bordered:a=!0,children:t,...o},n)=>r.jsx("div",{ref:n,className:x("w-full overflow-x-auto rounded-2xl bg-white dark:bg-dark-surface shadow-xs",a&&"border border-gray-150 dark:border-dark-border",e),...o,children:t}));Kr.displayName="TableContainer";const Jr=k.forwardRef(({className:e,...a},t)=>r.jsx("table",{ref:t,className:x("w-full text-left text-sm border-collapse",e),...a}));Jr.displayName="Table";const Xr=k.forwardRef(({className:e,...a},t)=>r.jsx("thead",{ref:t,className:x("bg-gray-50/80 dark:bg-dark-surface-light/80 border-b border-gray-150 dark:border-dark-border text-gray-600 dark:text-dark-text-muted text-xs uppercase font-bold tracking-wider",e),...a}));Xr.displayName="TableHeader";const Zr=k.forwardRef(({className:e,...a},t)=>r.jsx("tbody",{ref:t,className:x("divide-y divide-gray-100 dark:divide-dark-border",e),...a}));Zr.displayName="TableBody";const Qr=k.forwardRef(({className:e,...a},t)=>r.jsx("tr",{ref:t,className:x("transition-colors hover:bg-gray-50/60 dark:hover:bg-dark-surface-light/40 data-[state=selected]:bg-gray-50",e),...a}));Qr.displayName="TableRow";const $r=k.forwardRef(({className:e,...a},t)=>r.jsx("th",{ref:t,className:x("px-6 py-4 text-left font-bold text-gray-600 dark:text-dark-text-muted select-none text-xs uppercase tracking-wider",e),...a}));$r.displayName="TableHead";const qr=k.forwardRef(({className:e,...a},t)=>r.jsx("td",{ref:t,className:x("px-6 py-4 align-middle text-gray-800 dark:text-dark-text text-sm font-medium",e),...a}));qr.displayName="TableCell";function Sa({title:e="Filtros",hasActiveFilters:a=!1,activeFiltersCount:t,onClearFilters:o,children:n,className:l}){return r.jsxs("div",{className:x("bg-white dark:bg-dark-surface p-4 sm:p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs space-y-3",l),children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"p-1.5 rounded-lg bg-purple-50 dark:bg-purple-950/40 text-purple-600 dark:text-purple-400",children:r.jsx(ga,{className:"w-4 h-4"})}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:e}),a&&r.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-extrabold bg-purple-100 dark:bg-purple-900/40 text-purple-700 dark:text-purple-300",children:t!==void 0?`${t} ${t===1?"ativo":"ativos"}`:"Filtro Ativo"})]}),a&&o&&r.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-1 text-xs font-bold text-red-500 hover:text-red-600 dark:hover:text-red-400 transition-colors cursor-pointer",children:[r.jsx(be,{className:"w-3.5 h-3.5"}),"Limpar Filtros"]})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 pt-1",children:n})]})}function Ta({title:e,description:a,badge:t,actions:o,breadcrumb:n,className:l}){return r.jsxs("div",{className:x("flex flex-col sm:flex-row sm:items-center justify-between gap-4 select-none",l),children:[r.jsxs("div",{className:"flex flex-col gap-1",children:[n&&r.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:n}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-dark-text tracking-tight",children:e}),t&&r.jsx("div",{children:t})]}),a&&r.jsx("div",{className:"text-sm text-gray-500 dark:text-dark-text-muted mt-0.5 font-medium",children:a})]}),o&&r.jsx("div",{className:"flex items-center gap-2.5 flex-wrap shrink-0",children:o})]})}const Ea=({variant:e="spinner",size:a="md",text:t,fullScreen:o=!1})=>{const n={sm:"w-6 h-6",md:"w-10 h-10",lg:"w-16 h-16"},l={sm:"text-xs",md:"text-sm font-medium",lg:"text-base font-semibold"};if(e==="skeleton")return r.jsxs("div",{className:x("w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl overflow-hidden shadow-sm animate-pulse",a==="sm"?"max-w-xs":a==="md"?"max-w-sm":"max-w-md"),children:[r.jsx("div",{className:"aspect-video bg-gray-200 dark:bg-dark-surface-light w-full"}),r.jsxs("div",{className:"p-4 space-y-3",children:[r.jsx("div",{className:"h-4 bg-gray-200 dark:bg-dark-surface-light rounded w-3/4"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-1/2"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-5/6"})]})]});const i=r.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3 p-4",children:[r.jsx(De,{className:x("text-primary-500 animate-spin",n[a])}),t&&r.jsx("p",{className:x("text-gray-500 dark:text-dark-text-muted select-none",l[a]),children:t})]});return o?r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-dark-bg/80 backdrop-blur-sm",children:i}):r.jsx("div",{className:"flex items-center justify-center w-full",children:i})};function et({isOpen:e,onClose:a,title:t,children:o,footer:n,size:l="md",closeOnOutsideClick:i=!1}){if(k.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;const c={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};return r.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:[r.jsx("div",{className:"fixed inset-0",onClick:i?a:void 0}),r.jsxs("div",{className:x("relative w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl shadow-xl overflow-hidden flex flex-col max-h-[90vh] z-10 animate-[slideUp_0.2s_ease-out]",c[l]),children:[r.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-gray-100 dark:border-dark-border",children:[r.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-dark-text",children:t}),r.jsx("button",{className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors p-1.5 hover:bg-gray-100 dark:hover:bg-dark-surface-light rounded-lg cursor-pointer",onClick:a,children:r.jsx(be,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"p-6 overflow-y-auto flex-1 text-sm text-gray-700 dark:text-dark-text-muted",children:o}),n&&r.jsx("div",{className:"flex justify-end items-center gap-3 px-6 py-4 border-t border-gray-100 dark:border-dark-border bg-gray-50/50 dark:bg-dark-surface/50",children:n})]})]})}function Pa({isOpen:e,onClose:a,onConfirm:t,title:o,message:n,confirmText:l="Confirmar",cancelText:i="Cancelar",isLoading:c=!1}){return r.jsx(et,{isOpen:e,onClose:a,title:o,size:"sm",footer:r.jsxs(r.Fragment,{children:[r.jsx("button",{type:"button",onClick:a,disabled:c,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-dark-surface dark:text-dark-text dark:border-dark-border dark:hover:bg-dark-surface-light cursor-pointer",children:i}),r.jsxs("button",{type:"button",onClick:t,disabled:c,className:"px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-lg hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 cursor-pointer",children:[c&&r.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),c?"Aguarde...":l]})]}),children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center text-red-600 dark:text-red-400",children:r.jsx(Pr,{className:"w-5 h-5"})}),r.jsx("div",{className:"flex-1 text-sm text-gray-600 dark:text-dark-text-muted",children:n})]})})}const za=({icon:e,title:a,description:t,action:o,variant:n="default"})=>{const l={default:"text-primary-500 bg-primary-50 dark:bg-primary-950/20",error:"text-red-500 bg-red-50 dark:bg-red-950/20",search:"text-secondary-500 bg-secondary-50 dark:bg-secondary-950/20"};return r.jsxs("div",{className:x("flex flex-col items-center justify-center p-8 sm:p-12 text-center min-h-[300px] sm:min-h-[400px] animate-fadeIn group"),children:[e&&r.jsx("div",{className:x("flex items-center justify-center w-16 h-16 sm:w-20 sm:h-20 mb-6 text-4xl sm:text-[48px] rounded-full transition-all duration-200 group-hover:scale-105 group-hover:bg-opacity-80",l[n]),children:e}),r.jsxs("div",{className:"max-w-[500px] mb-6 space-y-2",children:[r.jsx("h3",{className:"text-xl sm:text-2xl font-bold font-heading text-gray-900 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("p",{className:"text-sm sm:text-base text-gray-600 dark:text-dark-text-muted leading-relaxed",children:t})]}),o&&r.jsx("button",{className:"inline-flex items-center justify-center px-6 py-3 font-semibold text-white bg-gradient-to-br from-primary-500 to-primary-600 rounded-lg shadow-md transition-all duration-200 cursor-pointer hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 active:translate-y-0 min-h-[44px]",onClick:o.onClick,children:o.label})]})},Aa=({onSearch:e,debounceMs:a=300,placeholder:t="Pesquisar vídeos...",initialValue:o="",showClear:n=!0,autoFocus:l=!1,size:i="md",className:c="",...m})=>{const[d,f]=k.useState(o),[y,N]=k.useState(!1),v=k.useRef(null),C=k.useRef();k.useEffect(()=>{l&&v.current&&v.current.focus()},[l]),k.useEffect(()=>(C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{e(d)},a),()=>{C.current&&clearTimeout(C.current)}),[d,e,a]);const S=G=>{f(G.target.value)},T=()=>{var G;f(""),(G=v.current)==null||G.focus()},z=G=>{G.key==="Escape"&&T()},E={sm:"h-9 text-sm rounded-lg",md:"h-11 sm:h-12 text-base rounded-xl",lg:"h-13 sm:h-14 text-lg rounded-2xl"},X={sm:"w-4 h-4 ml-3",md:"w-5 h-5 ml-4",lg:"w-6 h-6 ml-5"};return r.jsxs("div",{className:x("relative flex items-center w-full max-w-[600px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border shadow-sm transition-all duration-150 overflow-hidden",y?"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30":"hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow",E[i],c),children:[r.jsx(va,{className:x("text-gray-400 dark:text-dark-text-muted flex-shrink-0",X[i]),"aria-hidden":"true"}),r.jsx("input",{ref:v,type:"text",className:"flex-1 h-full px-3 py-2 border-none bg-transparent font-sans text-gray-900 dark:text-dark-text outline-none placeholder-gray-400 dark:placeholder-dark-text-muted text-inherit",value:d,onChange:S,onKeyDown:z,onFocus:()=>N(!0),onBlur:()=>N(!1),placeholder:t,"aria-label":"Campo de busca",...m}),n&&d&&r.jsx("button",{type:"button",className:x("flex items-center justify-center mr-3 bg-gray-150 dark:bg-dark-surface-light border-none rounded-full cursor-pointer text-gray-500 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-200 dark:hover:bg-dark-surface-light/80 hover:scale-105 active:scale-95",i==="sm"?"w-5 h-5 p-0.5":i==="md"?"w-6 h-6 p-1":"w-7 h-7 p-1.5"),onClick:T,"aria-label":"Limpar busca",children:r.jsx(be,{className:"w-full h-full"})})]})},Oa=({onDateSelect:e,label:a="Selecione uma data",maxDate:t,minDate:o,initialDate:n})=>{const[l,i]=k.useState(n||"");k.useEffect(()=>{i(n||"")},[n]);const c=m=>{const d=m.target.value;i(d),e(d)};return r.jsxs("div",{className:"flex flex-col gap-2.5 w-full max-w-[400px] md:max-w-full",children:[r.jsx("label",{htmlFor:"date-picker",className:"font-sans text-xs font-semibold text-gray-700 dark:text-dark-text-muted uppercase tracking-wider",children:a}),r.jsx("input",{id:"date-picker",type:"date",value:l,onChange:c,max:t,min:o,className:x("w-full px-4 py-3 font-sans text-base font-medium border-2 border-gray-300 dark:border-dark-border rounded-xl bg-white dark:bg-dark-surface text-gray-900 dark:text-dark-text shadow-sm cursor-pointer outline-none transition-all duration-200","hover:border-primary-400 hover:shadow-md focus:border-primary-500 focus:ring-3 focus:ring-primary-100 dark:focus:ring-primary-900/30","webkit-calendar-picker-indicator:cursor-pointer webkit-calendar-picker-indicator:p-1 webkit-calendar-picker-indicator:rounded-md webkit-calendar-picker-indicator:transition-colors hover:webkit-calendar-picker-indicator:bg-primary-50")})]})},Fa=({onDateChange:e,initialStartDate:a,initialEndDate:t,allowRange:o=!0,placeholder:n="Selecionar data"})=>{const[l,i]=k.useState(a||""),[c,m]=k.useState(t||""),[d,f]=k.useState(null),[y,N]=k.useState(!1),v=()=>new Date().toISOString().split("T")[0],C=()=>{const O=new Date;return O.setDate(O.getDate()-1),O.toISOString().split("T")[0]},S=O=>{const I=new Date;return I.setDate(I.getDate()-O),I.toISOString().split("T")[0]},T=O=>{switch(f(O),O){case"today":i(v()),m(v()),e(v(),v());break;case"yesterday":i(C()),m(C()),e(C(),C());break;case"last7days":i(S(7)),m(v()),e(S(7),v());break;case"last30days":i(S(30)),m(v()),e(S(30),v());break;case"custom":f("custom");break}O!=="custom"&&N(!1)},z=O=>{const I=O.target.value;i(I),f("custom"),e(I,o?c:null)},E=O=>{const I=O.target.value;m(I),f("custom"),e(l,I)},X=()=>{i(""),m(""),f(null),e(null,null)},G=()=>l?d&&d!=="custom"?{today:"Hoje",yesterday:"Ontem",last7days:"Últimos 7 dias",last30days:"Últimos 30 dias",custom:"Personalizado"}[d]:o&&c&&l!==c?`${Z(l)} - ${Z(c)}`:Z(l):n,Z=O=>{const[I,b,D]=O.split("-");return`${D}/${b}/${I}`};return r.jsxs("div",{className:"relative inline-block w-full sm:w-auto",children:[r.jsxs("button",{type:"button",className:x("w-full sm:w-auto min-w-[200px] h-11 sm:h-12 px-4 flex items-center gap-2.5 bg-white dark:bg-dark-surface border-2 border-gray-300 dark:border-dark-border rounded-xl font-sans font-medium text-base text-gray-700 dark:text-dark-text cursor-pointer transition-all duration-200 outline-none select-none hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow-sm focus-visible:ring-3 focus-visible:ring-primary-300",y&&"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30"),onClick:()=>N(!y),"aria-label":"Selecionar data","aria-expanded":y,children:[r.jsx(_r,{className:"w-5 h-5 text-gray-400 dark:text-dark-text-muted flex-shrink-0"}),r.jsx("span",{className:"flex-1 text-left whitespace-nowrap overflow-hidden text-ellipsis",children:G()}),l||c?r.jsx("button",{type:"button",className:"flex items-center justify-center w-5 h-5 bg-gray-200 dark:bg-dark-surface-light border-none rounded-full text-[10px] text-gray-600 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-300 dark:hover:bg-dark-surface hover:scale-105 active:scale-95",onClick:O=>{O.stopPropagation(),X()},"aria-label":"Limpar seleção",children:r.jsx(be,{className:"w-3 h-3"})}):r.jsx(Rr,{className:"w-4 h-4 text-gray-400 dark:text-dark-text-muted flex-shrink-0"})]}),y&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40 sm:hidden",onClick:()=>N(!1)}),r.jsxs("div",{className:x("absolute top-[calc(100%+8px)] left-0 sm:left-auto z-50 min-w-[280px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-2xl shadow-xl animate-slideUp sm:animate-slideDown","w-[calc(100vw-32px)] max-w-[340px] left-1/2 -translate-x-1/2 sm:left-0 sm:translate-x-0"),children:[r.jsxs("div",{className:"flex flex-col gap-1 p-3",children:[r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="today"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("today"),children:"Hoje"}),r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="yesterday"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("yesterday"),children:"Ontem"}),r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="last7days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("last7days"),children:"Últimos 7 dias"}),r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="last30days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("last30days"),children:"Últimos 30 dias"})]}),r.jsx("div",{className:"h-[1px] mx-3 my-1 bg-gray-200 dark:bg-dark-border"}),r.jsxs("div",{className:"flex flex-col gap-3.5 p-4 bg-gray-50/50 dark:bg-dark-bg/20 rounded-b-2xl",children:[r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data inicial",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:l,onChange:z,max:v()})]}),o&&r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data final",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:c,onChange:E,min:l,max:v()})]})]})]})]})]})};function Ia({tabs:e,activeTab:a,onChange:t,className:o}){return r.jsx("div",{className:x("border-b border-gray-150 dark:border-dark-border/40 flex gap-2 overflow-x-auto select-none",o),children:e.map(n=>{const l=n.id===a;return r.jsxs("button",{type:"button",onClick:()=>t(n.id),className:x("flex items-center gap-2 px-4 py-3 text-xs font-bold uppercase tracking-wider border-b-2 transition-all cursor-pointer whitespace-nowrap outline-none",l?"border-primary-500 text-primary-500 font-extrabold":"border-transparent text-gray-500 hover:text-gray-700 dark:text-dark-text-muted dark:hover:text-dark-text"),children:[n.icon,n.label]},n.id)})})}const rt=({videoUrl:e,fileName:a,downloadCount:t=0,onDownloadIncrement:o,onDownloadComplete:n,onDownloadChange:l,onError:i,size:c="md",iconOnly:m=!1,useLucide:d=!0})=>{const[f,y]=k.useState("idle"),[N,v]=k.useState(0),[C,S]=k.useState(t),T=async()=>{var I;try{y("downloading"),v(0);const b=await fetch(e);if(!b.ok)throw new Error("Falha ao baixar o vídeo");const D=b.headers.get("content-length");if(!D)throw new Error("Não foi possível obter o tamanho do arquivo");const le=(I=b.body)==null?void 0:I.getReader();if(!le)throw new Error("Não foi possível ler o stream do vídeo");let ie=0;const ae=[],$=parseInt(D,10);for(;;){const{done:re,value:de}=await le.read();if(re)break;ae.push(de),ie+=de.length,v(Math.round(ie/$*100))}v(100);const L=new Blob(ae),H=window.URL.createObjectURL(L),V=document.createElement("a");V.href=H,V.download=a,document.body.appendChild(V),V.click(),document.body.removeChild(V),window.URL.revokeObjectURL(H),y("success");const ee=C+1;if(S(ee),l==null||l(ee),setTimeout(()=>{y("idle"),v(0)},2e3),o)try{const re=await o();re!==ee&&(S(re),l==null||l(re))}catch(re){i==null||i(re)}n==null||n()}catch(b){y("error"),i==null||i(b),setTimeout(()=>{y("idle"),v(0)},2e3)}},z={sm:16,md:20,lg:24},E=()=>{if(d)switch(f){case"downloading":return r.jsx(De,{className:"animate-spin text-primary-500",size:z[c]});case"success":return r.jsx(Cr,{className:"text-green-600 dark:text-green-400",size:z[c]});case"error":return r.jsx(be,{className:"text-red-600 dark:text-red-400",size:z[c]});default:return r.jsx(Sr,{className:"text-gray-600 dark:text-dark-text-muted group-hover:text-primary-500 transition-colors",size:z[c]})}switch(f){case"downloading":return"⏳";case"success":return"✓";case"error":return"✕";default:return"⬇️"}},X=()=>{switch(f){case"downloading":return`${N}%`;case"success":return"Baixado!";case"error":return"Erro";default:return m?"":"Download"}},G={idle:"bg-gray-100 dark:bg-dark-surface hover:bg-gray-200 dark:hover:bg-dark-surface-light border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:-translate-y-0.5",downloading:"bg-primary-50 dark:bg-primary-900/20 border-primary-300 dark:border-primary-800 text-primary-700 dark:text-primary-400",success:"bg-green-50 dark:bg-green-950/20 border-green-300 dark:border-green-800 text-green-700 dark:text-green-400 animate-successPulse",error:"bg-red-50 dark:bg-red-950/20 border-red-300 dark:border-red-800 text-red-700 dark:text-red-400 animate-shake"},Z={sm:"px-2 py-1 text-sm min-h-[32px] rounded-md",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px] rounded-md",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px] rounded-lg"},O={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:x("relative inline-flex items-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none border overflow-hidden focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-75 disabled:cursor-not-allowed",G[f],Z[c]),onClick:T,disabled:f==="downloading","aria-label":`Baixar vídeo ${a}`,children:[r.jsx("span",{className:"flex items-center justify-center leading-none flex-shrink-0",children:E()}),!m&&r.jsxs("span",{className:"flex items-center gap-1.5 z-10",children:[r.jsx("span",{className:"whitespace-nowrap",children:X()}),C>0&&r.jsx("span",{className:x("inline-flex items-center justify-center rounded-full bg-primary-500 text-white font-bold",O[c]),children:C})]}),f==="downloading"&&r.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-primary-100 dark:bg-primary-900 overflow-hidden",children:r.jsx("div",{className:"h-full bg-gradient-to-r from-primary-500 to-primary-600 transition-all duration-250 ease-out",style:{width:`${N}%`}})})]})},tt=({initialLikes:e=0,onLike:a,onLikeChange:t,size:o="md",iconOnly:n=!1,disabled:l=!1,useLucide:i=!0})=>{const[c,m]=k.useState(e),[d,f]=k.useState(!1),y=async()=>{if(l||d)return;const T=c+1;if(f(!0),m(T),t==null||t(T),a)try{const z=await a();m(z),z!==T&&(t==null||t(z))}catch{m(c),t==null||t(c)}finally{setTimeout(()=>f(!1),600)}else setTimeout(()=>f(!1),600)},N={sm:"px-2 py-1 text-sm min-h-[32px]",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px]",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px]"},v={sm:"text-base",md:"text-lg",lg:"text-xl"},C={sm:16,md:20,lg:24},S={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:x("relative inline-flex items-center justify-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none rounded-lg border focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed","bg-primary-50 border-primary-300 text-primary-700 hover:bg-primary-100 hover:border-primary-400 active:scale-95",N[o],d&&"animate-heartBeat"),onClick:y,disabled:l,"aria-label":"Curtir vídeo","aria-pressed":!0,children:[r.jsxs("span",{className:"relative flex items-center justify-center leading-none flex-shrink-0",children:[i?r.jsx(Re,{className:x("fill-rose-500 text-rose-500 transition-transform duration-150",d&&"animate-iconPop"),size:C[o]}):r.jsx("span",{className:x("flex items-center justify-center transition-transform duration-150",d&&"animate-iconPop"),children:"❤️"}),d&&r.jsx(r.Fragment,{children:i?r.jsxs(r.Fragment,{children:[r.jsx(Re,{className:"absolute pointer-events-none opacity-0 animate-heartFloat1 fill-rose-500 text-rose-500",size:C[o]-4}),r.jsx(Re,{className:"absolute pointer-events-none opacity-0 animate-heartFloat2 fill-rose-500 text-rose-500",size:C[o]-4}),r.jsx(Re,{className:"absolute pointer-events-none opacity-0 animate-heartFloat3 fill-rose-500 text-rose-500",size:C[o]-4})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:x("absolute text-sm pointer-events-none opacity-0 animate-heartFloat1",v[o]),children:"❤️"}),r.jsx("span",{className:x("absolute text-sm pointer-events-none opacity-0 animate-heartFloat2",v[o]),children:"❤️"}),r.jsx("span",{className:x("absolute text-sm pointer-events-none opacity-0 animate-heartFloat3",v[o]),children:"❤️"})]})})]}),!n&&r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"whitespace-nowrap",children:"Curtido"}),c>0&&r.jsx("span",{className:x("inline-flex items-center justify-center rounded-full bg-primary-600 text-white font-bold transition-all duration-150 animate-countBounce",S[o]),children:c})]})]})};function Ma({video:e,showShare:a=!0,onPlay:t,onShare:o,onLikeChange:n,onDownloadComplete:l,onDownloadIncrement:i,extraActions:c,className:m}){const[d,f]=k.useState(!1),[y,N]=k.useState(!1),v=k.useRef(null),[C,S]=k.useState(e.curtidas),[T,z]=k.useState(e.downloads),[E,X]=k.useState(e.visualizacoes||0),[G,Z]=k.useState(e.compartilhamentos||0),O=e.is_vertical===void 0||e.is_vertical!==!1&&e.is_vertical!==0;k.useEffect(()=>{S(e.curtidas),z(e.downloads),X(e.visualizacoes||0),Z(e.compartilhamentos||0)},[e.curtidas,e.downloads,e.visualizacoes,e.compartilhamentos]);const I=e.dthr&&e.dthr.length>=16?e.dthr.substring(11,16):"",b=e.dthr&&e.dthr.length>=10?new Date(e.dthr).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"}):"",D=L=>L.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").replace(/[^\w-]/g,"").replace(/-{2,}/g,"-").trim(),le=["Rock10",e.arena_nome?D(e.arena_nome):null,e.quadra_nome?D(e.quadra_nome):null,D(e.nome.replace(/\.mp4$/i,""))].filter(Boolean).join("-")+".mp4",ie=()=>{N(!0),f(!0),X(L=>L+1),t&&t(e)},ae=()=>{v.current&&(d?v.current.pause():ie())},$=async()=>{if(o){o(e);return}const L=`${window.location.origin}/video/${e.id}`,H={title:e.nome,text:"Confira este lance gravado no Rock10 Replay:",url:L};if(navigator.share)try{await navigator.share(H),Z(V=>V+1);return}catch{}try{await navigator.clipboard.writeText(`${H.text} ${H.url}`),Z(V=>V+1),alert("Link copiado para a área de transferência!")}catch{window.open(H.url,"_blank")}};return r.jsxs("article",{className:x("group relative flex flex-col bg-white dark:bg-dark-surface rounded-2xl shadow-xs hover:shadow-xl hover:-translate-y-1 transition-all duration-300 overflow-hidden border border-gray-150 dark:border-dark-border",m),children:[r.jsxs("div",{className:x("relative w-full overflow-hidden bg-black z-10 cursor-pointer select-none",O?"aspect-[9/16]":"aspect-[16/9]",d&&"rounded-b-none"),onClick:ae,children:[r.jsx("video",{ref:v,className:"w-full h-full object-contain transition-transform duration-300 bg-black group-hover:scale-[1.02]",src:y?e.url:void 0,poster:e.poster,controls:d,autoPlay:d,playsInline:!0,muted:!1,preload:y?"metadata":"none",onPlay:()=>f(!0),onPause:()=>f(!1)}),!d&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/15 transition-opacity duration-300 z-20 pointer-events-none group-hover:bg-black/30",children:r.jsx("div",{className:"w-14 h-14 sm:w-16 sm:h-16 flex items-center justify-center bg-white/95 dark:bg-dark-surface/95 text-primary-500 rounded-full shadow-2xl backdrop-blur-sm transition-transform duration-200 hover:scale-110 active:scale-95",children:r.jsx(ka,{className:"w-6 h-6 fill-current ml-1"})})}),r.jsxs("div",{className:"absolute left-0 right-0 bottom-0 bg-gradient-to-t from-white via-white/80 to-transparent dark:from-dark-surface dark:via-dark-surface/85 dark:to-transparent pt-8 pb-3 px-3.5 flex flex-col gap-1 z-20 pointer-events-none",children:[(e.arena_nome||e.quadra_nome)&&r.jsxs("div",{className:"text-xs font-bold text-primary-600 dark:text-primary-400 flex items-center gap-1.5 leading-none",children:[r.jsx(Tr,{className:"w-3.5 h-3.5"}),r.jsxs("span",{children:[e.arena_nome||""," ",e.arena_nome&&e.quadra_nome?"•":""," ",e.quadra_nome||""]})]}),r.jsxs("div",{className:"flex justify-between items-center w-full mt-1.5",children:[r.jsxs("span",{className:"text-xs font-bold text-gray-800 dark:text-dark-text flex items-center gap-1.5 leading-none",children:[r.jsx(_r,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",b,r.jsx(ba,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted ml-0.5"})," ",I]}),r.jsxs("div",{className:"flex gap-2 sm:gap-2.5 items-center text-xs font-bold text-gray-800 dark:text-dark-text leading-none",children:[r.jsxs("span",{className:"flex items-center gap-1",title:"Visualizações",children:[r.jsx(pa,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",E]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Compartilhamentos",children:[r.jsx(Er,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",G]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Downloads",children:[r.jsx(Sr,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",T]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Curtidas",children:[r.jsx(Re,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",C]})]})]})]})]})]}),r.jsx("div",{className:"p-3.5 sm:p-4 flex flex-col gap-3 relative z-20 bg-white dark:bg-dark-surface flex-1",children:r.jsxs("div",{className:"flex gap-2.5 items-center justify-start pointer-events-auto",onClick:L=>L.stopPropagation(),children:[r.jsx(rt,{videoUrl:e.url,fileName:le,downloadCount:T,size:"sm",iconOnly:!0,onDownloadIncrement:i?()=>i(e.id):void 0,onDownloadChange:L=>z(L),onDownloadComplete:()=>l==null?void 0:l(e.id)}),r.jsx(tt,{videoId:e.id,initialLikes:C,size:"sm",iconOnly:!0,onLikeChange:L=>{S(L),n==null||n(e.id,!0)}}),a&&r.jsx(Lr,{icon:r.jsx(Er,{className:"w-4 h-4 text-gray-600 dark:text-dark-text"}),ariaLabel:"Compartilhar vídeo",variant:"ghost",size:"sm",rounded:!0,onClick:$}),c&&r.jsx("div",{className:"ml-auto flex items-center gap-2",children:c})]})})]})}function Da({arena:e,onClick:a,actionText:t="Ver Replays",extraBadge:o,className:n}){return r.jsxs("div",{onClick:()=>a==null?void 0:a(e),className:x("group bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl p-5 shadow-xs hover:shadow-md hover:-translate-y-1 transition-all duration-200 cursor-pointer flex flex-col justify-between",n),children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-50 dark:bg-blue-950/40 text-blue-600 dark:text-blue-400 flex items-center justify-center font-bold text-base shrink-0 overflow-hidden border border-blue-150 dark:border-blue-900/40",children:e.logo_url?r.jsx("img",{src:e.logo_url,alt:e.nome,className:"w-full h-full object-cover"}):r.jsx(wa,{className:"w-6 h-6"})}),r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap justify-end",children:[o,e.ativo!==void 0&&r.jsx(Dr,{variant:e.ativo?"success":"danger",dot:!0,size:"sm",children:e.ativo?"Ativa":"Inativa"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-bold text-gray-900 dark:text-dark-text group-hover:text-primary-500 transition-colors line-clamp-1",children:e.nome}),(e.cidade||e.uf)&&r.jsxs("p",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium flex items-center gap-1 mt-1",children:[r.jsx(Tr,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),r.jsxs("span",{children:[e.cidade,e.cidade&&e.uf?" / ":"",e.uf]})]})]}),e.total_quadras!==void 0&&r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-gray-600 dark:text-dark-text-muted pt-2 border-t border-gray-100 dark:border-dark-border",children:[r.jsx(ya,{className:"w-4 h-4 text-emerald-500"}),r.jsxs("span",{children:[e.total_quadras," ",e.total_quadras===1?"quadra disponível":"quadras disponíveis"]})]})]}),r.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between text-xs font-bold text-primary-600 dark:text-primary-400 group-hover:text-primary-700 dark:group-hover:text-primary-300 transition-colors",children:[r.jsx("span",{children:t}),r.jsx(ma,{className:"w-4 h-4 transform group-hover:translate-x-1 transition-transform"})]})]})}function La({variant:e="full",themeMode:a="auto",size:t="md",className:o,...n}){const l={sm:e==="full"?"h-6 w-auto":"h-6 w-6",md:e==="full"?"h-8 w-auto":"h-8 w-8",lg:e==="full"?"h-10 w-auto":"h-10 w-10",xl:e==="full"?"h-12 w-auto":"h-12 w-12"};return e==="icon"?r.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:x(l[t],o),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"})]}):r.jsxs("svg",{viewBox:"0 0 160 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:x(l[t],o),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"}),r.jsx("text",{x:"48",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"800",fill:a==="light"?"#0F1419":a==="dark"?"#FFFFFF":"currentColor",letterSpacing:"-0.5px",children:"ROCK"}),r.jsx("text",{x:"112",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"900",fill:"#0EA571",children:"10"})]})}j.Alert=Ra,j.ArenaCard=Da,j.Badge=Dr,j.Button=zr,j.Card=Vr,j.CardContent=Ur,j.CardDescription=Gr,j.CardFooter=Hr,j.CardHeader=Br,j.CardTitle=Wr,j.Checkbox=Ir,j.ConfirmDialog=Pa,j.DatePicker=Oa,j.DateSelector=Fa,j.DownloadButton=rt,j.EmptyState=za,j.FilterBar=Sa,j.IconButton=Lr,j.Input=Ar,j.LikeButton=tt,j.Loading=Ea,j.Logo=La,j.Modal=et,j.PageHeader=Ta,j.SearchBar=Aa,j.Select=Or,j.Skeleton=Se,j.StatCard=Ca,j.Switch=Mr,j.Table=Jr,j.TableBody=Zr,j.TableCell=qr,j.TableContainer=Kr,j.TableHead=$r,j.TableHeader=Xr,j.TableRow=Qr,j.Tabs=Ia,j.Textarea=Fr,j.VideoCard=Ma,j.cn=x,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
155
+ */const Na=V("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/**
156
+ * @license lucide-react v0.475.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const pe=V("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ca=Nr("inline-flex items-center justify-center font-bold transition-all select-none disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-[0.98]",{variants:{variant:{primary:"bg-primary-500 hover:bg-primary-600 active:bg-primary-700 text-white shadow-sm shadow-primary-500/20",secondary:"bg-gray-100 hover:bg-gray-200 dark:bg-dark-surface-light dark:hover:bg-gray-700 text-gray-700 dark:text-dark-text border border-gray-200 dark:border-dark-border",outline:"border border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:bg-gray-50 dark:hover:bg-dark-surface-light",ghost:"text-gray-600 dark:text-dark-text hover:bg-gray-100 dark:hover:bg-dark-surface-light",danger:"bg-red-600 hover:bg-red-700 active:bg-red-800 text-white shadow-sm shadow-red-600/20",success:"bg-emerald-600 hover:bg-emerald-700 active:bg-emerald-800 text-white shadow-sm shadow-emerald-600/20",purple:"bg-purple-600 hover:bg-purple-500 active:bg-purple-700 text-white shadow-sm shadow-purple-600/20",link:"text-primary-500 hover:text-primary-600 dark:text-primary-400 underline-offset-4 hover:underline p-0 h-auto font-semibold"},size:{sm:"h-8 px-3 text-xs gap-1.5 rounded-lg",md:"h-10 px-4 py-2 text-sm gap-2 rounded-xl",lg:"h-12 px-6 text-base gap-2.5 rounded-xl"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"primary",size:"md",fullWidth:!1}}),Fr=v.forwardRef(({className:e,variant:a,size:t,fullWidth:s,isLoading:n=!1,leftIcon:l,rightIcon:i,children:d,disabled:u,...c},m)=>r.jsxs("button",{ref:m,disabled:u||n,className:p(Ca({variant:a,size:t,fullWidth:s}),e),...c,children:[n?r.jsx(De,{className:"w-4 h-4 animate-spin shrink-0"}):l&&r.jsx("span",{className:"shrink-0",children:l}),d&&r.jsx("span",{children:d}),!n&&i&&r.jsx("span",{className:"shrink-0",children:i})]}));Fr.displayName="Button";const Or=v.forwardRef(({className:e,label:a,error:t,helperText:s,startIcon:n,endIcon:l,clearable:i=!1,onClear:d,inputSize:u="md",fullWidth:c=!0,disabled:m,value:f,id:w,...k},S)=>{const R=w||(a?`input-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),E={sm:"h-8 px-2.5 text-xs rounded-lg",md:"h-10 px-3.5 text-sm rounded-xl",lg:"h-12 px-4 text-base rounded-xl"};return r.jsxs("div",{className:p("flex flex-col gap-1.5",c&&"w-full"),children:[a&&r.jsx("label",{htmlFor:R,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsxs("div",{className:"relative flex items-center w-full",children:[n&&r.jsx("div",{className:"absolute left-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:n}),r.jsx("input",{id:R,ref:S,disabled:m,value:f,className:p("w-full bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed",E[u],n&&"pl-10",(l||i&&f)&&"pr-10",t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...k}),i&&f&&!m&&r.jsx("button",{type:"button",onClick:d,className:"absolute right-3 p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(pe,{className:"w-3.5 h-3.5"})}),!i&&l&&r.jsx("div",{className:"absolute right-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:l})]}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&s&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:s})]})});Or.displayName="Input";const Ir=v.forwardRef(({className:e,label:a,error:t,helperText:s,options:n,selectSize:l="md",fullWidth:i=!0,disabled:d,children:u,id:c,...m},f)=>{const w=c||(a?`select-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),k={sm:"h-8 pl-2.5 pr-8 text-xs rounded-lg",md:"h-10 pl-3.5 pr-10 text-sm rounded-xl",lg:"h-12 pl-4 pr-12 text-base rounded-xl"};return r.jsxs("div",{className:p("flex flex-col gap-1.5",i&&"w-full"),children:[a&&r.jsx("label",{htmlFor:w,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsxs("div",{className:"relative flex items-center w-full",children:[r.jsx("select",{id:w,ref:f,disabled:d,className:p("w-full appearance-none bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer",k[l],t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...m,children:n?n.map(S=>r.jsx("option",{value:S.value,disabled:S.disabled,children:S.label},S.value)):u}),r.jsx("div",{className:"absolute right-3 pointer-events-none text-gray-400 dark:text-dark-text-muted",children:r.jsx(Tr,{className:"w-4 h-4"})})]}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&s&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:s})]})});Ir.displayName="Select";const Mr=v.forwardRef(({className:e,label:a,error:t,helperText:s,fullWidth:n=!0,disabled:l,rows:i=3,id:d,...u},c)=>{const m=d||(a?`textarea-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("div",{className:p("flex flex-col gap-1.5",n&&"w-full"),children:[a&&r.jsx("label",{htmlFor:m,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsx("textarea",{id:m,ref:c,rows:i,disabled:l,className:p("w-full p-3 bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 text-sm font-medium rounded-xl transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed resize-y",t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...u}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&s&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:s})]})});Mr.displayName="Textarea";const Dr=v.forwardRef(({className:e,label:a,description:t,checked:s,disabled:n,id:l,onChange:i,...d},u)=>{const c=l||(typeof a=="string"?`checkbox-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("label",{htmlFor:c,className:p("inline-flex items-start gap-2.5 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative flex items-center justify-center shrink-0 mt-0.5",children:[r.jsx("input",{id:c,ref:u,type:"checkbox",checked:s,disabled:n,onChange:i,className:"peer sr-only",...d}),r.jsx("div",{className:p("w-5 h-5 rounded-md border border-gray-300 dark:border-dark-border bg-white dark:bg-dark-surface transition-all flex items-center justify-center peer-checked:bg-primary-500 peer-checked:border-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500/30 group-hover:border-primary-500/60 shadow-xs",s&&"bg-primary-500 border-primary-500 text-white"),children:s&&r.jsx(Rr,{className:"w-3.5 h-3.5 stroke-[3] text-white"})})]}),(a||t)&&r.jsxs("div",{className:"flex flex-col",children:[a&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:t})]})]})});Dr.displayName="Checkbox";const Lr=v.forwardRef(({className:e,label:a,description:t,checked:s,disabled:n,switchSize:l="md",id:i,onChange:d,...u},c)=>{const m=i||(typeof a=="string"?`switch-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),f={sm:"w-8 h-4.5",md:"w-11 h-6",lg:"w-14 h-7.5"},w={sm:"w-3.5 h-3.5 translate-x-0.5 peer-checked:translate-x-4",md:"w-5 h-5 translate-x-0.5 peer-checked:translate-x-5.5",lg:"w-6.5 h-6.5 translate-x-0.5 peer-checked:translate-x-7"};return r.jsxs("label",{htmlFor:m,className:p("inline-flex items-center gap-3 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative inline-flex items-center shrink-0",children:[r.jsx("input",{id:m,ref:c,type:"checkbox",role:"switch",checked:s,disabled:n,onChange:d,className:"peer sr-only",...u}),r.jsx("div",{className:p("rounded-full bg-gray-200 dark:bg-dark-surface-light peer-checked:bg-primary-500 transition-colors duration-200 ease-in-out border border-transparent shadow-inner",f[l])}),r.jsx("div",{className:p("absolute bg-white rounded-full shadow-md transform transition-transform duration-200 ease-in-out pointer-events-none",w[l])})]}),(a||t)&&r.jsxs("div",{className:"flex flex-col",children:[a&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:t})]})]})});Lr.displayName="Switch";const _a=Nr("inline-flex items-center font-bold tracking-tight transition-colors select-none shrink-0",{variants:{variant:{success:"bg-emerald-50 dark:bg-emerald-950/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-800/60",danger:"bg-red-50 dark:bg-red-950/30 text-red-700 dark:text-red-400 border border-red-200 dark:border-red-800/60",warning:"bg-amber-50 dark:bg-amber-950/30 text-amber-700 dark:text-amber-400 border border-amber-200 dark:border-amber-800/60",info:"bg-blue-50 dark:bg-blue-950/30 text-blue-700 dark:text-blue-300 border border-blue-200 dark:border-blue-800/60",purple:"bg-purple-50 dark:bg-purple-950/30 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800/60",neutral:"bg-gray-100 dark:bg-dark-surface-light text-gray-700 dark:text-dark-text-muted border border-gray-200 dark:border-dark-border",primary:"bg-primary-50 dark:bg-primary-950/30 text-primary-700 dark:text-primary-300 border border-primary-200 dark:border-primary-800/60",secondary:"bg-secondary-50 dark:bg-secondary-950/30 text-secondary-700 dark:text-secondary-300 border border-secondary-200 dark:border-secondary-800/60"},size:{sm:"text-[10px] px-2 py-0.5 gap-1",md:"text-xs px-2.5 py-1 gap-1.5"},shape:{pill:"rounded-full",rounded:"rounded-md"}},defaultVariants:{variant:"neutral",size:"sm",shape:"pill"}}),Sa={success:"bg-emerald-500",danger:"bg-red-500",warning:"bg-amber-500",info:"bg-blue-500",purple:"bg-purple-500",neutral:"bg-gray-400",primary:"bg-primary-500",secondary:"bg-secondary-500"};function Br({className:e,variant:a="neutral",size:t="sm",shape:s="pill",dot:n=!1,pulseDot:l=!1,children:i,...d}){const c=Sa[a||"neutral"]||"bg-gray-400";return r.jsxs("span",{className:p(_a({variant:a,size:t,shape:s}),e),...d,children:[n&&r.jsxs("span",{className:"relative flex h-1.5 w-1.5 shrink-0",children:[l&&r.jsx("span",{className:p("animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",c)}),r.jsx("span",{className:p("relative inline-flex rounded-full h-1.5 w-1.5",c)})]}),i]})}function Re({className:e,variant:a="text",width:t,height:s,style:n,...l}){const i={text:"h-4 rounded-md w-full",circular:"rounded-full",rectangular:"rounded-xl",card:"h-32 rounded-2xl w-full"};return r.jsx("div",{className:p("animate-pulse bg-gray-200/80 dark:bg-dark-surface-light/80",i[a],e),style:{width:typeof t=="number"?`${t}px`:t,height:typeof s=="number"?`${s}px`:s,...n},...l})}const Vr=({icon:e,variant:a="primary",size:t="md",rounded:s=!1,ariaLabel:n,disabled:l=!1,loading:i=!1,className:d="",...u})=>{const c="relative inline-flex items-center justify-center gap-2 border-none font-semibold cursor-pointer transition-all select-none -webkit-tap-highlight-color-transparent outline-none focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-95 duration-150",m={primary:"bg-gradient-to-br from-primary-500 to-primary-600 text-white shadow-md hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5",secondary:"bg-gray-100 dark:bg-dark-surface text-gray-700 dark:text-dark-text border border-gray-300 dark:border-dark-border hover:bg-gray-200 dark:hover:bg-dark-surface-light hover:-translate-y-0.5",ghost:"bg-transparent text-gray-600 dark:text-dark-text-muted hover:bg-gray-100 dark:hover:bg-dark-surface hover:text-gray-800 dark:hover:text-dark-text",danger:"bg-gradient-to-br from-red-500 to-red-600 text-white shadow-md hover:from-red-600 hover:to-red-700 hover:shadow-lg hover:-translate-y-0.5"},f=s?{sm:"w-8 h-8 rounded-full p-0 text-base",md:"w-10 h-10 rounded-full p-0 text-lg sm:w-11 sm:h-11",lg:"w-12 h-12 rounded-full p-0 text-xl sm:w-13 sm:h-13"}:{sm:"px-3 py-1.5 text-sm rounded-md min-h-[32px]",md:"px-4 py-2 text-base rounded-md min-h-[40px] sm:min-h-[44px]",lg:"px-6 py-3 text-lg rounded-lg min-h-[48px] sm:min-h-[52px]"};return r.jsx("button",{className:p(c,m[a],f[t],i&&"pointer-events-none",d),"aria-label":n,disabled:l||i,...u,children:i?r.jsx(De,{className:"w-4 h-4 animate-spin",role:"status","aria-hidden":"true"}):r.jsx("span",{className:"flex items-center justify-center leading-none",children:e})})},Wr=v.forwardRef(({className:e,hoverable:a=!1,padded:t=!0,children:s,...n},l)=>r.jsx("div",{ref:l,className:p("bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl shadow-xs transition-all duration-200 overflow-hidden",t&&"p-5 sm:p-6",a&&"hover:shadow-md hover:-translate-y-0.5 cursor-pointer",e),...n,children:s}));Wr.displayName="Card";const Gr=v.forwardRef(({className:e,actions:a,children:t,...s},n)=>r.jsxs("div",{ref:n,className:p("flex items-center justify-between gap-4 mb-4",e),...s,children:[r.jsx("div",{className:"flex flex-col gap-1",children:t}),a&&r.jsx("div",{className:"flex items-center gap-2 shrink-0",children:a})]}));Gr.displayName="CardHeader";const Ur=v.forwardRef(({className:e,children:a,...t},s)=>r.jsx("h3",{ref:s,className:p("text-base font-bold text-gray-900 dark:text-dark-text tracking-tight",e),...t,children:a}));Ur.displayName="CardTitle";const Hr=v.forwardRef(({className:e,children:a,...t},s)=>r.jsx("p",{ref:s,className:p("text-xs text-gray-500 dark:text-dark-text-muted font-medium",e),...t,children:a}));Hr.displayName="CardDescription";const Yr=v.forwardRef(({className:e,children:a,...t},s)=>r.jsx("div",{ref:s,className:p("space-y-4",e),...t,children:a}));Yr.displayName="CardContent";const Kr=v.forwardRef(({className:e,children:a,...t},s)=>r.jsx("div",{ref:s,className:p("flex items-center justify-end gap-3 pt-4 mt-4 border-t border-gray-100 dark:border-dark-border",e),...t,children:a}));Kr.displayName="CardFooter";const Jr={purple:{text:"text-purple-600 dark:text-purple-400",bg:"bg-purple-100 dark:bg-purple-900/30 text-purple-600 dark:text-purple-400",border:"border-purple-200/50 dark:border-purple-950/20"},blue:{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400",border:"border-blue-200/50 dark:border-blue-950/20"},emerald:{text:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-900/30 text-emerald-600 dark:text-emerald-400",border:"border-emerald-200/50 dark:border-emerald-950/20"},amber:{text:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-900/30 text-amber-600 dark:text-amber-400",border:"border-amber-200/50 dark:border-amber-950/20"},red:{text:"text-red-600 dark:text-red-400",bg:"bg-red-100 dark:bg-red-900/30 text-red-600 dark:text-red-400",border:"border-red-200/50 dark:border-red-950/20"},cyan:{text:"text-cyan-600 dark:text-cyan-400",bg:"bg-cyan-100 dark:bg-cyan-900/30 text-cyan-600 dark:text-cyan-400",border:"border-cyan-200/50 dark:border-cyan-950/20"},pink:{text:"text-pink-600 dark:text-pink-400",bg:"bg-pink-100 dark:bg-pink-900/30 text-pink-600 dark:text-pink-400",border:"border-pink-200/50 dark:border-pink-950/20"},yellow:{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-600 dark:text-yellow-400",border:"border-yellow-200/50 dark:border-yellow-950/20"}};function Ra({title:e,value:a,subtitle:t,icon:s,color:n="purple",isLoading:l=!1,animateValue:i=!0,className:d,onClick:u}){const[c,m]=v.useState(typeof a=="number"&&i?0:a),f=Jr[n]||Jr.purple;return v.useEffect(()=>{if(typeof a!="number"||!i){m(a);return}let w=!0,k=null;const S=1e3,R=E=>{if(!w)return;k||(k=E);const C=Math.min((E-k)/S,1),_=C*(2-C),X=Math.floor(_*a);m(X.toLocaleString("pt-BR")),C<1?window.requestAnimationFrame(R):m(a.toLocaleString("pt-BR"))};return window.requestAnimationFrame(R),()=>{w=!1}},[a,i]),l?r.jsxs("div",{className:"bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx(Re,{width:"50%",height:14}),r.jsx(Re,{variant:"circular",width:40,height:40})]}),r.jsx(Re,{width:"40%",height:32,className:"my-2"}),r.jsx(Re,{width:"70%",height:12})]}):r.jsxs("div",{onClick:u,className:p("bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs hover:shadow-sm transition-all",u&&"cursor-pointer hover:-translate-y-0.5",d),children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("span",{className:p("text-xs font-bold uppercase tracking-wider",f.text),children:e}),s&&r.jsx("div",{className:p("w-10 h-10 rounded-xl flex items-center justify-center shrink-0",f.bg),children:s})]}),r.jsx("div",{className:"text-3xl font-black text-gray-900 dark:text-dark-text tracking-tight",children:typeof a=="number"&&!i?a.toLocaleString("pt-BR"):c}),t&&r.jsx("div",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium mt-1.5 flex items-center gap-1",children:t})]})}function Ta({variant:e="info",title:a,children:t,icon:s,onClose:n,className:l}){const d={info:{container:"bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-800/60 text-blue-900 dark:text-blue-200",icon:r.jsx(va,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 shrink-0"})},success:{container:"bg-emerald-50 dark:bg-emerald-950/30 border-emerald-200 dark:border-emerald-800/60 text-emerald-900 dark:text-emerald-200",icon:r.jsx(ga,{className:"w-5 h-5 text-emerald-600 dark:text-emerald-400 shrink-0"})},warning:{container:"bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-800/60 text-amber-900 dark:text-amber-200",icon:r.jsx(Ar,{className:"w-5 h-5 text-amber-600 dark:text-amber-400 shrink-0"})},danger:{container:"bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-800/60 text-red-900 dark:text-red-200",icon:r.jsx(ba,{className:"w-5 h-5 text-red-600 dark:text-red-400 shrink-0"})}}[e];return r.jsxs("div",{role:"alert",className:p("p-4 rounded-xl border flex items-start gap-3 relative transition-all",d.container,l),children:[r.jsx("div",{className:"mt-0.5",children:s||d.icon}),r.jsxs("div",{className:"flex-1 text-sm",children:[a&&r.jsx("h5",{className:"font-bold text-sm mb-1",children:a}),r.jsx("div",{className:"font-medium text-xs sm:text-sm leading-relaxed",children:t})]}),n&&r.jsx("button",{onClick:n,className:"p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(pe,{className:"w-4 h-4"})})]})}const Xr=v.forwardRef(({className:e,bordered:a=!0,children:t,...s},n)=>r.jsx("div",{ref:n,className:p("w-full overflow-x-auto rounded-2xl bg-white dark:bg-dark-surface shadow-xs",a&&"border border-gray-150 dark:border-dark-border",e),...s,children:t}));Xr.displayName="TableContainer";const Zr=v.forwardRef(({className:e,...a},t)=>r.jsx("table",{ref:t,className:p("w-full text-left text-sm border-collapse",e),...a}));Zr.displayName="Table";const Qr=v.forwardRef(({className:e,...a},t)=>r.jsx("thead",{ref:t,className:p("bg-gray-50/80 dark:bg-dark-surface-light/80 border-b border-gray-150 dark:border-dark-border text-gray-600 dark:text-dark-text-muted text-xs uppercase font-bold tracking-wider",e),...a}));Qr.displayName="TableHeader";const $r=v.forwardRef(({className:e,...a},t)=>r.jsx("tbody",{ref:t,className:p("divide-y divide-gray-100 dark:divide-dark-border",e),...a}));$r.displayName="TableBody";const qr=v.forwardRef(({className:e,...a},t)=>r.jsx("tr",{ref:t,className:p("transition-colors hover:bg-gray-50/60 dark:hover:bg-dark-surface-light/40 data-[state=selected]:bg-gray-50",e),...a}));qr.displayName="TableRow";const et=v.forwardRef(({className:e,...a},t)=>r.jsx("th",{ref:t,className:p("px-6 py-4 text-left font-bold text-gray-600 dark:text-dark-text-muted select-none text-xs uppercase tracking-wider",e),...a}));et.displayName="TableHead";const rt=v.forwardRef(({className:e,...a},t)=>r.jsx("td",{ref:t,className:p("px-6 py-4 align-middle text-gray-800 dark:text-dark-text text-sm font-medium",e),...a}));rt.displayName="TableCell";function Ea({title:e="Filtros",hasActiveFilters:a=!1,activeFiltersCount:t,onClearFilters:s,children:n,className:l}){return r.jsxs("div",{className:p("bg-white dark:bg-dark-surface p-4 sm:p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs space-y-3",l),children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"p-1.5 rounded-lg bg-purple-50 dark:bg-purple-950/40 text-purple-600 dark:text-purple-400",children:r.jsx(ka,{className:"w-4 h-4"})}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:e}),a&&r.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-extrabold bg-purple-100 dark:bg-purple-900/40 text-purple-700 dark:text-purple-300",children:t!==void 0?`${t} ${t===1?"ativo":"ativos"}`:"Filtro Ativo"})]}),a&&s&&r.jsxs("button",{type:"button",onClick:s,className:"inline-flex items-center gap-1 text-xs font-bold text-red-500 hover:text-red-600 dark:hover:text-red-400 transition-colors cursor-pointer",children:[r.jsx(pe,{className:"w-3.5 h-3.5"}),"Limpar Filtros"]})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 pt-1",children:n})]})}function za({title:e,description:a,badge:t,actions:s,breadcrumb:n,className:l}){return r.jsxs("div",{className:p("flex flex-col sm:flex-row sm:items-center justify-between gap-4 select-none",l),children:[r.jsxs("div",{className:"flex flex-col gap-1",children:[n&&r.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:n}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-dark-text tracking-tight",children:e}),t&&r.jsx("div",{children:t})]}),a&&r.jsx("div",{className:"text-sm text-gray-500 dark:text-dark-text-muted mt-0.5 font-medium",children:a})]}),s&&r.jsx("div",{className:"flex items-center gap-2.5 flex-wrap shrink-0",children:s})]})}const Pa=({variant:e="spinner",size:a="md",text:t,fullScreen:s=!1})=>{const n={sm:"w-6 h-6",md:"w-10 h-10",lg:"w-16 h-16"},l={sm:"text-xs",md:"text-sm font-medium",lg:"text-base font-semibold"};if(e==="skeleton")return r.jsxs("div",{className:p("w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl overflow-hidden shadow-sm animate-pulse",a==="sm"?"max-w-xs":a==="md"?"max-w-sm":"max-w-md"),children:[r.jsx("div",{className:"aspect-video bg-gray-200 dark:bg-dark-surface-light w-full"}),r.jsxs("div",{className:"p-4 space-y-3",children:[r.jsx("div",{className:"h-4 bg-gray-200 dark:bg-dark-surface-light rounded w-3/4"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-1/2"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-5/6"})]})]});const i=r.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3 p-4",children:[r.jsx(De,{className:p("text-primary-500 animate-spin",n[a])}),t&&r.jsx("p",{className:p("text-gray-500 dark:text-dark-text-muted select-none",l[a]),children:t})]});return s?r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-dark-bg/80 backdrop-blur-sm",children:i}):r.jsx("div",{className:"flex items-center justify-center w-full",children:i})};function tt({isOpen:e,onClose:a,title:t,children:s,footer:n,size:l="md",closeOnOutsideClick:i=!1}){if(v.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;const d={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};return r.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:[r.jsx("div",{className:"fixed inset-0",onClick:i?a:void 0}),r.jsxs("div",{className:p("relative w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl shadow-xl overflow-hidden flex flex-col max-h-[90vh] z-10 animate-[slideUp_0.2s_ease-out]",d[l]),children:[r.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-gray-100 dark:border-dark-border",children:[r.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-dark-text",children:t}),r.jsx("button",{className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors p-1.5 hover:bg-gray-100 dark:hover:bg-dark-surface-light rounded-lg cursor-pointer",onClick:a,children:r.jsx(pe,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"p-6 overflow-y-auto flex-1 text-sm text-gray-700 dark:text-dark-text-muted",children:s}),n&&r.jsx("div",{className:"flex justify-end items-center gap-3 px-6 py-4 border-t border-gray-100 dark:border-dark-border bg-gray-50/50 dark:bg-dark-surface/50",children:n})]})]})}function Aa({isOpen:e,onClose:a,onConfirm:t,title:s,message:n,confirmText:l="Confirmar",cancelText:i="Cancelar",isLoading:d=!1}){return r.jsx(tt,{isOpen:e,onClose:a,title:s,size:"sm",footer:r.jsxs(r.Fragment,{children:[r.jsx("button",{type:"button",onClick:a,disabled:d,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-dark-surface dark:text-dark-text dark:border-dark-border dark:hover:bg-dark-surface-light cursor-pointer",children:i}),r.jsxs("button",{type:"button",onClick:t,disabled:d,className:"px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-lg hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 cursor-pointer",children:[d&&r.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),d?"Aguarde...":l]})]}),children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center text-red-600 dark:text-red-400",children:r.jsx(Ar,{className:"w-5 h-5"})}),r.jsx("div",{className:"flex-1 text-sm text-gray-600 dark:text-dark-text-muted",children:n})]})})}const Fa=({icon:e,title:a,description:t,action:s,variant:n="default"})=>{const l={default:"text-primary-500 bg-primary-50 dark:bg-primary-950/20",error:"text-red-500 bg-red-50 dark:bg-red-950/20",search:"text-secondary-500 bg-secondary-50 dark:bg-secondary-950/20"};return r.jsxs("div",{className:p("flex flex-col items-center justify-center p-8 sm:p-12 text-center min-h-[300px] sm:min-h-[400px] animate-fadeIn group"),children:[e&&r.jsx("div",{className:p("flex items-center justify-center w-16 h-16 sm:w-20 sm:h-20 mb-6 text-4xl sm:text-[48px] rounded-full transition-all duration-200 group-hover:scale-105 group-hover:bg-opacity-80",l[n]),children:e}),r.jsxs("div",{className:"max-w-[500px] mb-6 space-y-2",children:[r.jsx("h3",{className:"text-xl sm:text-2xl font-bold font-heading text-gray-900 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("p",{className:"text-sm sm:text-base text-gray-600 dark:text-dark-text-muted leading-relaxed",children:t})]}),s&&r.jsx("button",{className:"inline-flex items-center justify-center px-6 py-3 font-semibold text-white bg-gradient-to-br from-primary-500 to-primary-600 rounded-lg shadow-md transition-all duration-200 cursor-pointer hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 active:translate-y-0 min-h-[44px]",onClick:s.onClick,children:s.label})]})},Oa=({onSearch:e,debounceMs:a=300,placeholder:t="Pesquisar vídeos...",initialValue:s="",showClear:n=!0,autoFocus:l=!1,size:i="md",className:d="",...u})=>{const[c,m]=v.useState(s),[f,w]=v.useState(!1),k=v.useRef(null),S=v.useRef();v.useEffect(()=>{l&&k.current&&k.current.focus()},[l]),v.useEffect(()=>(S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{e(c)},a),()=>{S.current&&clearTimeout(S.current)}),[c,e,a]);const R=G=>{m(G.target.value)},E=()=>{var G;m(""),(G=k.current)==null||G.focus()},C=G=>{G.key==="Escape"&&E()},_={sm:"h-9 text-sm rounded-lg",md:"h-11 sm:h-12 text-base rounded-xl",lg:"h-13 sm:h-14 text-lg rounded-2xl"},X={sm:"w-4 h-4 ml-3",md:"w-5 h-5 ml-4",lg:"w-6 h-6 ml-5"};return r.jsxs("div",{className:p("relative flex items-center w-full max-w-[600px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border shadow-sm transition-all duration-150 overflow-hidden",f?"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30":"hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow",_[i],d),children:[r.jsx(ja,{className:p("text-gray-400 dark:text-dark-text-muted flex-shrink-0",X[i]),"aria-hidden":"true"}),r.jsx("input",{ref:k,type:"text",className:"flex-1 h-full px-3 py-2 border-none bg-transparent font-sans text-gray-900 dark:text-dark-text outline-none placeholder-gray-400 dark:placeholder-dark-text-muted text-inherit",value:c,onChange:R,onKeyDown:C,onFocus:()=>w(!0),onBlur:()=>w(!1),placeholder:t,"aria-label":"Campo de busca",...u}),n&&c&&r.jsx("button",{type:"button",className:p("flex items-center justify-center mr-3 bg-gray-150 dark:bg-dark-surface-light border-none rounded-full cursor-pointer text-gray-500 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-200 dark:hover:bg-dark-surface-light/80 hover:scale-105 active:scale-95",i==="sm"?"w-5 h-5 p-0.5":i==="md"?"w-6 h-6 p-1":"w-7 h-7 p-1.5"),onClick:E,"aria-label":"Limpar busca",children:r.jsx(pe,{className:"w-full h-full"})})]})},Ia=({onDateSelect:e,label:a="Selecione uma data",maxDate:t,minDate:s,initialDate:n})=>{const[l,i]=v.useState(n||"");v.useEffect(()=>{i(n||"")},[n]);const d=u=>{const c=u.target.value;i(c),e(c)};return r.jsxs("div",{className:"flex flex-col gap-2.5 w-full max-w-[400px] md:max-w-full",children:[r.jsx("label",{htmlFor:"date-picker",className:"font-sans text-xs font-semibold text-gray-700 dark:text-dark-text-muted uppercase tracking-wider",children:a}),r.jsx("input",{id:"date-picker",type:"date",value:l,onChange:d,max:t,min:s,className:p("w-full px-4 py-3 font-sans text-base font-medium border-2 border-gray-300 dark:border-dark-border rounded-xl bg-white dark:bg-dark-surface text-gray-900 dark:text-dark-text shadow-sm cursor-pointer outline-none transition-all duration-200","hover:border-primary-400 hover:shadow-md focus:border-primary-500 focus:ring-3 focus:ring-primary-100 dark:focus:ring-primary-900/30","webkit-calendar-picker-indicator:cursor-pointer webkit-calendar-picker-indicator:p-1 webkit-calendar-picker-indicator:rounded-md webkit-calendar-picker-indicator:transition-colors hover:webkit-calendar-picker-indicator:bg-primary-50")})]})},Ma=({onDateChange:e,initialStartDate:a,initialEndDate:t,allowRange:s=!0,placeholder:n="Selecionar data"})=>{const[l,i]=v.useState(a||""),[d,u]=v.useState(t||""),[c,m]=v.useState(null),[f,w]=v.useState(!1),k=()=>new Date().toISOString().split("T")[0],S=()=>{const F=new Date;return F.setDate(F.getDate()-1),F.toISOString().split("T")[0]},R=F=>{const I=new Date;return I.setDate(I.getDate()-F),I.toISOString().split("T")[0]},E=F=>{switch(m(F),F){case"today":i(k()),u(k()),e(k(),k());break;case"yesterday":i(S()),u(S()),e(S(),S());break;case"last7days":i(R(7)),u(k()),e(R(7),k());break;case"last30days":i(R(30)),u(k()),e(R(30),k());break;case"custom":m("custom");break}F!=="custom"&&w(!1)},C=F=>{const I=F.target.value;i(I),m("custom"),e(I,s?d:null)},_=F=>{const I=F.target.value;u(I),m("custom"),e(l,I)},X=()=>{i(""),u(""),m(null),e(null,null)},G=()=>l?c&&c!=="custom"?{today:"Hoje",yesterday:"Ontem",last7days:"Últimos 7 dias",last30days:"Últimos 30 dias",custom:"Personalizado"}[c]:s&&d&&l!==d?`${Z(l)} - ${Z(d)}`:Z(l):n,Z=F=>{const[I,b,D]=F.split("-");return`${D}/${b}/${I}`};return r.jsxs("div",{className:"relative inline-block w-full sm:w-auto",children:[r.jsxs("button",{type:"button",className:p("w-full sm:w-auto min-w-[200px] h-11 sm:h-12 px-4 flex items-center gap-2.5 bg-white dark:bg-dark-surface border-2 border-gray-300 dark:border-dark-border rounded-xl font-sans font-medium text-base text-gray-700 dark:text-dark-text cursor-pointer transition-all duration-200 outline-none select-none hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow-sm focus-visible:ring-3 focus-visible:ring-primary-300",f&&"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30"),onClick:()=>w(!f),"aria-label":"Selecionar data","aria-expanded":f,children:[r.jsx(Sr,{className:"w-5 h-5 text-gray-400 dark:text-dark-text-muted flex-shrink-0"}),r.jsx("span",{className:"flex-1 text-left whitespace-nowrap overflow-hidden text-ellipsis",children:G()}),l||d?r.jsx("button",{type:"button",className:"flex items-center justify-center w-5 h-5 bg-gray-200 dark:bg-dark-surface-light border-none rounded-full text-[10px] text-gray-600 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-300 dark:hover:bg-dark-surface hover:scale-105 active:scale-95",onClick:F=>{F.stopPropagation(),X()},"aria-label":"Limpar seleção",children:r.jsx(pe,{className:"w-3 h-3"})}):r.jsx(Tr,{className:"w-4 h-4 text-gray-400 dark:text-dark-text-muted flex-shrink-0"})]}),f&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40 sm:hidden",onClick:()=>w(!1)}),r.jsxs("div",{className:p("absolute top-[calc(100%+8px)] left-0 sm:left-auto z-50 min-w-[280px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-2xl shadow-xl animate-slideUp sm:animate-slideDown","w-[calc(100vw-32px)] max-w-[340px] left-1/2 -translate-x-1/2 sm:left-0 sm:translate-x-0"),children:[r.jsxs("div",{className:"flex flex-col gap-1 p-3",children:[r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="today"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>E("today"),children:"Hoje"}),r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="yesterday"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>E("yesterday"),children:"Ontem"}),r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="last7days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>E("last7days"),children:"Últimos 7 dias"}),r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="last30days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>E("last30days"),children:"Últimos 30 dias"})]}),r.jsx("div",{className:"h-[1px] mx-3 my-1 bg-gray-200 dark:bg-dark-border"}),r.jsxs("div",{className:"flex flex-col gap-3.5 p-4 bg-gray-50/50 dark:bg-dark-bg/20 rounded-b-2xl",children:[r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data inicial",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:l,onChange:C,max:k()})]}),s&&r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data final",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:d,onChange:_,min:l,max:k()})]})]})]})]})]})};function Da({tabs:e,activeTab:a,onChange:t,className:s}){return r.jsx("div",{className:p("border-b border-gray-150 dark:border-dark-border/40 flex gap-2 overflow-x-auto select-none",s),children:e.map(n=>{const l=n.id===a;return r.jsxs("button",{type:"button",onClick:()=>t(n.id),className:p("flex items-center gap-2 px-4 py-3 text-xs font-bold uppercase tracking-wider border-b-2 transition-all cursor-pointer whitespace-nowrap outline-none",l?"border-primary-500 text-primary-500 font-extrabold":"border-transparent text-gray-500 hover:text-gray-700 dark:text-dark-text-muted dark:hover:text-dark-text"),children:[n.icon,n.label]},n.id)})})}const La={sm:"text-xs py-1.5 px-2.5 sm:px-3 gap-1 sm:gap-1.5 rounded-xl",md:"text-sm py-2 px-3 sm:px-4 gap-1.5 sm:gap-2 rounded-xl",lg:"text-base py-2.5 px-4 sm:px-5 gap-2 rounded-2xl"};function Ba({options:e,value:a,onChange:t,size:s="sm",fullWidth:n=!1,className:l}){const i=e.length===2?"grid-cols-2":e.length===3?"grid-cols-3":e.length===4?"grid-cols-4":"grid-flow-col auto-cols-fr";return r.jsx("div",{role:"tablist",className:p("grid sm:flex items-center gap-1 p-1 bg-gray-100/90 dark:bg-dark-surface rounded-2xl border border-gray-200/70 dark:border-dark-border/70 shadow-xs select-none scrollbar-none",i,n?"w-full":"w-full sm:w-auto",l),children:e.map(d=>{const u=d.value===a;return r.jsxs("button",{type:"button",role:"tab","aria-selected":u,disabled:d.disabled,title:d.title||d.label,onClick:()=>!d.disabled&&t(d.value),className:p("flex items-center justify-center font-bold transition-all duration-200 cursor-pointer whitespace-nowrap text-center outline-none",La[s],u?"bg-white dark:bg-dark-surface-light text-primary-600 dark:text-primary-400 shadow-xs":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white",d.disabled&&"opacity-50 cursor-not-allowed pointer-events-none"),children:[d.icon&&r.jsx("span",{className:"shrink-0 flex items-center",children:d.icon}),d.mobileLabel?r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"inline sm:hidden",children:d.mobileLabel}),r.jsx("span",{className:"hidden sm:inline",children:d.label})]}):r.jsx("span",{children:d.label}),d.badge&&r.jsx("span",{className:"shrink-0 ml-1",children:d.badge})]},d.value)})})}function Va({badge:e,title:a,description:t,primaryAction:s,secondaryAction:n,ambientGlow:l=!0,className:i}){const d=(u,c)=>{const f=!!u.href?"a":"button",w="w-full sm:w-auto px-8 py-4 rounded-2xl font-bold text-base transition-all duration-200 flex items-center justify-center gap-2 cursor-pointer border border-transparent active:scale-95 shadow-sm",k=(u.variant||(c?"primary":"secondary"))==="primary"?"bg-primary-500 text-white hover:bg-primary-600 shadow-primary-500/20 hover:shadow-lg":(u.variant||"secondary")==="outline"?"border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:bg-gray-100 dark:hover:bg-dark-surface":"bg-gray-100 dark:bg-dark-surface-light hover:bg-gray-200 dark:hover:bg-dark-surface text-gray-700 dark:text-dark-text";return r.jsxs(f,{href:u.href,onClick:u.onClick,className:p(w,k),children:[u.icon&&r.jsx("span",{className:"shrink-0",children:u.icon}),r.jsx("span",{children:u.label})]},u.label)};return r.jsxs("section",{className:p("relative overflow-hidden bg-gradient-to-br from-primary-500/10 via-transparent to-transparent py-16 sm:py-24 border-b border-gray-100 dark:border-dark-border/40 select-none",i),children:[l&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"absolute top-0 right-0 -z-10 w-[300px] h-[300px] bg-primary-500/10 rounded-full blur-3xl opacity-60 dark:opacity-20 animate-pulse pointer-events-none"}),r.jsx("div",{className:"absolute bottom-0 left-0 -z-10 w-[250px] h-[250px] bg-secondary-500/10 rounded-full blur-3xl opacity-60 dark:opacity-20 pointer-events-none"})]}),r.jsxs("div",{className:"w-full max-w-[1400px] mx-auto px-4 text-center",children:[e&&r.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary-50 dark:bg-primary-950/20 border border-primary-100 dark:border-primary-950/30 text-xs sm:text-sm font-bold text-primary-600 dark:text-primary-400 mb-6 animate-fadeIn",children:[e.icon&&r.jsx("span",{className:"shrink-0",children:e.icon}),r.jsx("span",{children:e.text})]}),r.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-heading font-extrabold tracking-tight text-gray-800 dark:text-dark-text leading-[1.15]",children:a}),t&&r.jsx("p",{className:"mt-6 max-w-2xl mx-auto text-base sm:text-lg md:text-xl text-gray-600 dark:text-dark-text-muted leading-relaxed",children:t}),(s||n)&&r.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row items-center justify-center gap-4",children:[s&&d(s,!0),n&&d(n,!1)]})]})]})}const Wa={primary:"from-primary-600 to-primary-800 dark:from-primary-700 dark:to-primary-900 border-primary-500/20 text-white",dark:"from-gray-900 to-gray-800 dark:from-dark-surface dark:to-dark-surface-light border-gray-700 text-white",emerald:"from-emerald-600 to-teal-800 dark:from-emerald-700 dark:to-teal-900 border-emerald-500/20 text-white"};function Ga({title:e,description:a,icon:t,actionText:s,actionIcon:n=r.jsx(pa,{className:"w-5 h-5"}),onAction:l,actionHref:i,variant:d="primary",className:u}){const m=!!i?"a":"button";return r.jsx("section",{className:p("w-full max-w-[1400px] mx-auto px-4 py-12 select-none",u),children:r.jsxs("div",{className:p("relative rounded-3xl overflow-hidden bg-gradient-to-r shadow-xl py-12 px-6 sm:px-12 text-center flex flex-col items-center gap-6 border",Wa[d]),children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-white/10 via-transparent to-transparent pointer-events-none"}),t&&r.jsx("div",{className:"p-3.5 rounded-2xl bg-white/10 border border-white/15 flex items-center justify-center",children:t}),r.jsxs("div",{className:"max-w-2xl",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl font-heading font-extrabold m-0 leading-tight",children:e}),r.jsx("p",{className:"text-xs sm:text-sm opacity-90 mt-3 leading-relaxed",children:a})]}),r.jsxs(m,{href:i,onClick:l,className:"w-full sm:w-auto mt-2 px-8 py-4 rounded-2xl bg-white text-primary-700 font-bold text-base hover:bg-primary-50 active:scale-95 transition-all duration-200 cursor-pointer shadow-md flex items-center justify-center gap-2 border-none hover:scale-[1.02]",children:[r.jsx("span",{children:s}),n&&r.jsx("span",{className:"shrink-0",children:n})]})]})})}const Ua={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"};function Ha({steps:e,columns:a=4,className:t}){return r.jsx("div",{className:p("grid gap-6 sm:gap-8 relative select-none",Ua[a],t),children:e.map((s,n)=>{const l=s.stepNumber!==void 0?s.stepNumber:n+1,i=typeof l=="number"&&l<10?`0${l}`:`${l}`;return r.jsxs("div",{className:"relative p-6 rounded-3xl border border-gray-150/40 dark:border-dark-border/40 bg-white dark:bg-dark-surface hover:shadow-md transition-all duration-300 flex flex-col gap-4 text-center md:text-left hover:-translate-y-1",children:[r.jsxs("div",{className:"flex items-center justify-center md:justify-between w-full",children:[s.icon&&r.jsx("div",{className:"p-3.5 rounded-2xl bg-primary-50 dark:bg-primary-950/20 border border-primary-100 dark:border-primary-950/30 flex items-center justify-center",children:s.icon}),r.jsx("span",{className:"hidden md:inline text-5xl font-black text-gray-100 dark:text-dark-border/30 select-none",children:i})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-gray-800 dark:text-dark-text mb-2",children:s.title}),r.jsx("p",{className:"text-xs sm:text-sm text-gray-500 dark:text-dark-text-muted leading-relaxed",children:s.description})]})]},n)})})}const at=({videoUrl:e,fileName:a,downloadCount:t=0,onDownloadIncrement:s,onDownloadComplete:n,onDownloadChange:l,onError:i,size:d="md",iconOnly:u=!1,useLucide:c=!0})=>{const[m,f]=v.useState("idle"),[w,k]=v.useState(0),[S,R]=v.useState(t),E=async()=>{var I;try{f("downloading"),k(0);const b=await fetch(e);if(!b.ok)throw new Error("Falha ao baixar o vídeo");const D=b.headers.get("content-length");if(!D)throw new Error("Não foi possível obter o tamanho do arquivo");const le=(I=b.body)==null?void 0:I.getReader();if(!le)throw new Error("Não foi possível ler o stream do vídeo");let ie=0;const ae=[],$=parseInt(D,10);for(;;){const{done:re,value:de}=await le.read();if(re)break;ae.push(de),ie+=de.length,k(Math.round(ie/$*100))}k(100);const L=new Blob(ae),H=window.URL.createObjectURL(L),B=document.createElement("a");B.href=H,B.download=a,document.body.appendChild(B),B.click(),document.body.removeChild(B),window.URL.revokeObjectURL(H),f("success");const ee=S+1;if(R(ee),l==null||l(ee),setTimeout(()=>{f("idle"),k(0)},2e3),s)try{const re=await s();re!==ee&&(R(re),l==null||l(re))}catch(re){i==null||i(re)}n==null||n()}catch(b){f("error"),i==null||i(b),setTimeout(()=>{f("idle"),k(0)},2e3)}},C={sm:16,md:20,lg:24},_=()=>{if(c)switch(m){case"downloading":return r.jsx(De,{className:"animate-spin text-primary-500",size:C[d]});case"success":return r.jsx(Rr,{className:"text-green-600 dark:text-green-400",size:C[d]});case"error":return r.jsx(pe,{className:"text-red-600 dark:text-red-400",size:C[d]});default:return r.jsx(Er,{className:"text-gray-600 dark:text-dark-text-muted group-hover:text-primary-500 transition-colors",size:C[d]})}switch(m){case"downloading":return"⏳";case"success":return"✓";case"error":return"✕";default:return"⬇️"}},X=()=>{switch(m){case"downloading":return`${w}%`;case"success":return"Baixado!";case"error":return"Erro";default:return u?"":"Download"}},G={idle:"bg-gray-100 dark:bg-dark-surface hover:bg-gray-200 dark:hover:bg-dark-surface-light border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:-translate-y-0.5",downloading:"bg-primary-50 dark:bg-primary-900/20 border-primary-300 dark:border-primary-800 text-primary-700 dark:text-primary-400",success:"bg-green-50 dark:bg-green-950/20 border-green-300 dark:border-green-800 text-green-700 dark:text-green-400 animate-successPulse",error:"bg-red-50 dark:bg-red-950/20 border-red-300 dark:border-red-800 text-red-700 dark:text-red-400 animate-shake"},Z={sm:"px-2 py-1 text-sm min-h-[32px] rounded-md",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px] rounded-md",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px] rounded-lg"},F={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:p("relative inline-flex items-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none border overflow-hidden focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-75 disabled:cursor-not-allowed",G[m],Z[d]),onClick:E,disabled:m==="downloading","aria-label":`Baixar vídeo ${a}`,children:[r.jsx("span",{className:"flex items-center justify-center leading-none flex-shrink-0",children:_()}),!u&&r.jsxs("span",{className:"flex items-center gap-1.5 z-10",children:[r.jsx("span",{className:"whitespace-nowrap",children:X()}),S>0&&r.jsx("span",{className:p("inline-flex items-center justify-center rounded-full bg-primary-500 text-white font-bold",F[d]),children:S})]}),m==="downloading"&&r.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-primary-100 dark:bg-primary-900 overflow-hidden",children:r.jsx("div",{className:"h-full bg-gradient-to-r from-primary-500 to-primary-600 transition-all duration-250 ease-out",style:{width:`${w}%`}})})]})},st=({initialLikes:e=0,onLike:a,onLikeChange:t,size:s="md",iconOnly:n=!1,disabled:l=!1,useLucide:i=!0})=>{const[d,u]=v.useState(e),[c,m]=v.useState(!1),f=async()=>{if(l||c)return;const E=d+1;if(m(!0),u(E),t==null||t(E),a)try{const C=await a();u(C),C!==E&&(t==null||t(C))}catch{u(d),t==null||t(d)}finally{setTimeout(()=>m(!1),600)}else setTimeout(()=>m(!1),600)},w={sm:"px-2 py-1 text-sm min-h-[32px]",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px]",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px]"},k={sm:"text-base",md:"text-lg",lg:"text-xl"},S={sm:16,md:20,lg:24},R={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:p("relative inline-flex items-center justify-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none rounded-lg border focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed","bg-primary-50 border-primary-300 text-primary-700 hover:bg-primary-100 hover:border-primary-400 active:scale-95",w[s],c&&"animate-heartBeat"),onClick:f,disabled:l,"aria-label":"Curtir vídeo","aria-pressed":!0,children:[r.jsxs("span",{className:"relative flex items-center justify-center leading-none flex-shrink-0",children:[i?r.jsx(Se,{className:p("fill-rose-500 text-rose-500 transition-transform duration-150",c&&"animate-iconPop"),size:S[s]}):r.jsx("span",{className:p("flex items-center justify-center transition-transform duration-150",c&&"animate-iconPop"),children:"❤️"}),c&&r.jsx(r.Fragment,{children:i?r.jsxs(r.Fragment,{children:[r.jsx(Se,{className:"absolute pointer-events-none opacity-0 animate-heartFloat1 fill-rose-500 text-rose-500",size:S[s]-4}),r.jsx(Se,{className:"absolute pointer-events-none opacity-0 animate-heartFloat2 fill-rose-500 text-rose-500",size:S[s]-4}),r.jsx(Se,{className:"absolute pointer-events-none opacity-0 animate-heartFloat3 fill-rose-500 text-rose-500",size:S[s]-4})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:p("absolute text-sm pointer-events-none opacity-0 animate-heartFloat1",k[s]),children:"❤️"}),r.jsx("span",{className:p("absolute text-sm pointer-events-none opacity-0 animate-heartFloat2",k[s]),children:"❤️"}),r.jsx("span",{className:p("absolute text-sm pointer-events-none opacity-0 animate-heartFloat3",k[s]),children:"❤️"})]})})]}),!n&&r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"whitespace-nowrap",children:"Curtido"}),d>0&&r.jsx("span",{className:p("inline-flex items-center justify-center rounded-full bg-primary-600 text-white font-bold transition-all duration-150 animate-countBounce",R[s]),children:d})]})]})};function Ya({video:e,showShare:a=!0,onPlay:t,onShare:s,onLikeChange:n,onDownloadComplete:l,onDownloadIncrement:i,extraActions:d,className:u}){const[c,m]=v.useState(!1),[f,w]=v.useState(!1),k=v.useRef(null),[S,R]=v.useState(e.curtidas),[E,C]=v.useState(e.downloads),[_,X]=v.useState(e.visualizacoes||0),[G,Z]=v.useState(e.compartilhamentos||0),F=e.is_vertical===void 0||e.is_vertical!==!1&&e.is_vertical!==0;v.useEffect(()=>{R(e.curtidas),C(e.downloads),X(e.visualizacoes||0),Z(e.compartilhamentos||0)},[e.curtidas,e.downloads,e.visualizacoes,e.compartilhamentos]);const I=e.dthr&&e.dthr.length>=16?e.dthr.substring(11,16):"",b=e.dthr&&e.dthr.length>=10?new Date(e.dthr).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"}):"",D=L=>L.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").replace(/[^\w-]/g,"").replace(/-{2,}/g,"-").trim(),le=["Rock10",e.arena_nome?D(e.arena_nome):null,e.quadra_nome?D(e.quadra_nome):null,D(e.nome.replace(/\.mp4$/i,""))].filter(Boolean).join("-")+".mp4",ie=()=>{w(!0),m(!0),X(L=>L+1),t&&t(e)},ae=()=>{k.current&&(c?k.current.pause():ie())},$=async()=>{if(s){s(e);return}const L=`${window.location.origin}/video/${e.id}`,H={title:e.nome,text:"Confira este lance gravado no Rock10 Replay:",url:L};if(navigator.share)try{await navigator.share(H),Z(B=>B+1);return}catch{}try{await navigator.clipboard.writeText(`${H.text} ${H.url}`),Z(B=>B+1),alert("Link copiado para a área de transferência!")}catch{window.open(H.url,"_blank")}};return r.jsxs("article",{className:p("group relative flex flex-col bg-white dark:bg-dark-surface rounded-2xl shadow-xs hover:shadow-xl hover:-translate-y-1 transition-all duration-300 overflow-hidden border border-gray-150 dark:border-dark-border",u),children:[r.jsxs("div",{className:p("relative w-full overflow-hidden bg-black z-10 cursor-pointer select-none",F?"aspect-[9/16]":"aspect-[16/9]",c&&"rounded-b-none"),onClick:ae,children:[r.jsx("video",{ref:k,className:"w-full h-full object-contain transition-transform duration-300 bg-black group-hover:scale-[1.02]",src:f?e.url:void 0,poster:e.poster,controls:c,autoPlay:c,playsInline:!0,muted:!1,preload:f?"metadata":"none",onPlay:()=>m(!0),onPause:()=>m(!1)}),!c&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/15 transition-opacity duration-300 z-20 pointer-events-none group-hover:bg-black/30",children:r.jsx("div",{className:"w-14 h-14 sm:w-16 sm:h-16 flex items-center justify-center bg-white/95 dark:bg-dark-surface/95 text-primary-500 rounded-full shadow-2xl backdrop-blur-sm transition-transform duration-200 hover:scale-110 active:scale-95",children:r.jsx(wa,{className:"w-6 h-6 fill-current ml-1"})})}),r.jsxs("div",{className:"absolute left-0 right-0 bottom-0 bg-gradient-to-t from-white via-white/80 to-transparent dark:from-dark-surface dark:via-dark-surface/85 dark:to-transparent pt-8 pb-3 px-3.5 flex flex-col gap-1 z-20 pointer-events-none",children:[(e.arena_nome||e.quadra_nome)&&r.jsxs("div",{className:"text-xs font-bold text-primary-600 dark:text-primary-400 flex items-center gap-1.5 leading-none",children:[r.jsx(Ye,{className:"w-3.5 h-3.5"}),r.jsxs("span",{children:[e.arena_nome||""," ",e.arena_nome&&e.quadra_nome?"•":""," ",e.quadra_nome||""]})]}),r.jsxs("div",{className:"flex justify-between items-center w-full mt-1.5",children:[r.jsxs("span",{className:"text-xs font-bold text-gray-800 dark:text-dark-text flex items-center gap-1.5 leading-none",children:[r.jsx(Sr,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",b,r.jsx(ha,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted ml-0.5"})," ",I]}),r.jsxs("div",{className:"flex gap-2 sm:gap-2.5 items-center text-xs font-bold text-gray-800 dark:text-dark-text leading-none",children:[r.jsxs("span",{className:"flex items-center gap-1",title:"Visualizações",children:[r.jsx(ya,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",_]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Compartilhamentos",children:[r.jsx(Pr,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",G]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Downloads",children:[r.jsx(Er,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",E]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Curtidas",children:[r.jsx(Se,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",S]})]})]})]})]})]}),r.jsx("div",{className:"p-3.5 sm:p-4 flex flex-col gap-3 relative z-20 bg-white dark:bg-dark-surface flex-1",children:r.jsxs("div",{className:"flex gap-2.5 items-center justify-start pointer-events-auto",onClick:L=>L.stopPropagation(),children:[r.jsx(at,{videoUrl:e.url,fileName:le,downloadCount:E,size:"sm",iconOnly:!0,onDownloadIncrement:i?()=>i(e.id):void 0,onDownloadChange:L=>C(L),onDownloadComplete:()=>l==null?void 0:l(e.id)}),r.jsx(st,{videoId:e.id,initialLikes:S,size:"sm",iconOnly:!0,onLikeChange:L=>{R(L),n==null||n(e.id,!0)}}),a&&r.jsx(Vr,{icon:r.jsx(Pr,{className:"w-4 h-4 text-gray-600 dark:text-dark-text"}),ariaLabel:"Compartilhar vídeo",variant:"ghost",size:"sm",rounded:!0,onClick:$}),d&&r.jsx("div",{className:"ml-auto flex items-center gap-2",children:d})]})})]})}function Ka({arena:e,onClick:a,actionText:t="Ver Replays",extraBadge:s,className:n}){return r.jsxs("div",{onClick:()=>a==null?void 0:a(e),className:p("group bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl p-5 shadow-xs hover:shadow-md hover:-translate-y-1 transition-all duration-200 cursor-pointer flex flex-col justify-between",n),children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-50 dark:bg-blue-950/40 text-blue-600 dark:text-blue-400 flex items-center justify-center font-bold text-base shrink-0 overflow-hidden border border-blue-150 dark:border-blue-900/40",children:e.logo_url?r.jsx("img",{src:e.logo_url,alt:e.nome,className:"w-full h-full object-cover"}):r.jsx(Na,{className:"w-6 h-6"})}),r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap justify-end",children:[s,e.ativo!==void 0&&r.jsx(Br,{variant:e.ativo?"success":"danger",dot:!0,size:"sm",children:e.ativo?"Ativa":"Inativa"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-bold text-gray-900 dark:text-dark-text group-hover:text-primary-500 transition-colors line-clamp-1",children:e.nome}),(e.cidade||e.uf)&&r.jsxs("p",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium flex items-center gap-1 mt-1",children:[r.jsx(Ye,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),r.jsxs("span",{children:[e.cidade,e.cidade&&e.uf?" / ":"",e.uf]})]})]}),e.total_quadras!==void 0&&r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-gray-600 dark:text-dark-text-muted pt-2 border-t border-gray-100 dark:border-dark-border",children:[r.jsx(zr,{className:"w-4 h-4 text-emerald-500"}),r.jsxs("span",{children:[e.total_quadras," ",e.total_quadras===1?"quadra disponível":"quadras disponíveis"]})]})]}),r.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between text-xs font-bold text-primary-600 dark:text-primary-400 group-hover:text-primary-700 dark:group-hover:text-primary-300 transition-colors",children:[r.jsx("span",{children:t}),r.jsx(_r,{className:"w-4 h-4 transform group-hover:translate-x-1 transition-transform"})]})]})}const ot=["https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1554068865-24cecd4e34b8?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1574629810360-7efbbe195018?q=80&w=600&auto=format&fit=crop"];function Ja({arena:e,courtCount:a,isMostAccessed:t,accessRank:s,rankBadge:n,actionText:l="Ver Replay",onClick:i,fallbackImage:d,className:u}){const c=d||ot[Math.abs(e.id)%ot.length],m=e.slug?`/Arenas/${e.slug}.png`:void 0,f=()=>e.banner_url||e.logo_url||m||c,[w,k]=v.useState(f);v.useEffect(()=>{k(f())},[e.banner_url,e.logo_url,e.slug,c]);const S=()=>{m&&w!==m&&(w===e.banner_url||w===e.logo_url)?k(m):w!==c&&k(c)},R=a!==void 0?a:e.total_quadras;return r.jsxs("div",{onClick:()=>i==null?void 0:i(e),className:p("group relative h-56 sm:h-72 md:h-80 rounded-2xl sm:rounded-3xl overflow-hidden border border-gray-150/40 dark:border-dark-border/40 shadow-md hover:shadow-xl dark:shadow-none bg-white dark:bg-dark-surface cursor-pointer select-none transition-all duration-300 hover:-translate-y-1.5 hover:scale-[1.01] active:scale-[0.99]",u),children:[n?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 select-none animate-fadeIn",children:n}):s===1?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 bg-gradient-to-r from-amber-500 to-amber-600 text-white text-[10px] sm:text-xs font-bold px-2.5 py-1 rounded-full shadow-md flex items-center gap-1 select-none animate-fadeIn border border-amber-300/30",children:"🔥 1ª mais acessada por você"}):s===2?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 bg-gradient-to-r from-sky-500 to-blue-600 text-white text-[10px] sm:text-xs font-bold px-2.5 py-1 rounded-full shadow-md flex items-center gap-1 select-none animate-fadeIn border border-sky-300/30",children:"⚡ 2ª mais acessada por você"}):t?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 bg-gradient-to-r from-amber-500 to-amber-600 text-white text-[10px] sm:text-xs font-bold px-2.5 py-1 rounded-full shadow-md flex items-center gap-1 select-none animate-fadeIn border border-amber-300/30",children:"🔥 Mais acessada por você"}):null,r.jsxs("div",{className:"absolute inset-0 z-0",children:[r.jsx("img",{src:w,onError:S,alt:e.nome,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700 ease-out",loading:"lazy"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/45 to-black/25 transition-opacity duration-300 group-hover:opacity-95"})]}),r.jsxs("div",{className:"relative z-10 h-full w-full p-4 sm:p-6 flex flex-col justify-end text-white",children:[r.jsxs("div",{className:"mb-2 sm:mb-4",children:[r.jsx("h3",{className:"text-sm sm:text-xl md:text-2xl font-heading font-extrabold tracking-tight group-hover:text-primary-400 transition-colors duration-200 line-clamp-2",children:e.nome}),(e.cidade||e.uf)&&r.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 sm:mt-2.5 text-white/80 text-[10px] sm:text-sm",children:[r.jsx(Ye,{className:"w-3 h-3 sm:w-4 sm:h-4 flex-shrink-0 text-primary-400"}),r.jsxs("span",{className:"truncate",children:[e.cidade,e.cidade&&e.uf?" - ":"",e.uf]})]}),R!==void 0&&r.jsxs("div",{className:"flex items-center gap-1.5 mt-1 sm:mt-2 text-white/70 text-[9px] sm:text-xs font-semibold",children:[r.jsx(zr,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-primary-400"}),r.jsxs("span",{children:[R," ",R===1?"Quadra":"Quadras"]})]})]}),r.jsxs("div",{className:"flex items-center justify-between border-t border-white/10 pt-2 sm:pt-4 mt-0.5 sm:mt-1",children:[r.jsx("span",{className:"text-xs sm:text-sm font-bold text-primary-400 group-hover:text-primary-300 transition-colors duration-200",children:l}),r.jsx("div",{className:"w-7 h-7 sm:w-9 sm:h-9 rounded-lg sm:rounded-xl bg-primary-500 group-hover:bg-primary-600 flex items-center justify-center transition-all duration-300 shadow-md group-hover:translate-x-1",children:r.jsx(_r,{className:"w-3 h-3 sm:w-4 sm:h-4 text-white"})})]})]})]})}function Xa({items:e,intervalMs:a=5e3,height:t=90,autoplay:s=!0,onItemClick:n,badgeText:l,className:i}){const[d,u]=v.useState(0),c=v.useRef(null),m=e.map((C,_)=>typeof C=="string"?{id:_,imageUrl:C,alt:`Patrocinador ${_+1}`}:C),f=m[d];if(v.useEffect(()=>{if(!s||m.length<=1)return;const C=f!=null&&f.displayDurationMs&&f.displayDurationMs>0?f.displayDurationMs:a;return c.current=window.setTimeout(()=>{u(_=>(_+1)%m.length)},C),()=>{c.current&&window.clearTimeout(c.current)}},[d,s,m.length,f==null?void 0:f.displayDurationMs,a]),!m||m.length===0)return null;const w=e[d],k=()=>{n?n(w,d):f!=null&&f.linkUrl&&window.open(f.linkUrl,"_blank","noopener,noreferrer")},S=C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),k())},R=typeof l=="function"?l(w):l||(f==null?void 0:f.title),E=typeof t=="number"?{height:`${t}px`}:{height:t};return r.jsxs("div",{role:"button",tabIndex:0,onClick:k,onKeyDown:S,style:E,"aria-label":(f==null?void 0:f.title)||(f==null?void 0:f.alt)||"Patrocinadores",className:p("relative w-full flex justify-center items-center overflow-hidden p-2 sm:p-4 box-border cursor-pointer group select-none",i),children:[m.map((C,_)=>r.jsx("div",{className:p("absolute inset-0 flex justify-center items-center opacity-0 scale-95 transition-all duration-500 ease-in-out pointer-events-none",_===d&&"opacity-100 scale-100"),"aria-hidden":_!==d,children:r.jsx("img",{src:C.imageUrl,alt:C.alt||C.title||`Patrocinador ${_+1}`,className:"max-h-full max-w-[85%] sm:max-w-[65%] object-contain drop-shadow-[0_4px_8px_rgba(0,0,0,0.12)] select-none",loading:"lazy"})},C.id??C.imageUrl+_)),R&&r.jsx("div",{className:"absolute bottom-1 right-2 sm:bottom-2 sm:right-3 bg-black/40 backdrop-blur-sm px-2 py-0.5 rounded text-[9px] sm:text-[10px] text-white/70 font-medium opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none",children:R})]})}function Za({variant:e="full",themeMode:a="auto",size:t="md",className:s,...n}){const l={sm:e==="full"?"h-6 w-auto":"h-6 w-6",md:e==="full"?"h-8 w-auto":"h-8 w-8",lg:e==="full"?"h-10 w-auto":"h-10 w-10",xl:e==="full"?"h-12 w-auto":"h-12 w-12"};return e==="icon"?r.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:p(l[t],s),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"})]}):r.jsxs("svg",{viewBox:"0 0 160 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:p(l[t],s),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"}),r.jsx("text",{x:"48",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"800",fill:a==="light"?"#0F1419":a==="dark"?"#FFFFFF":"currentColor",letterSpacing:"-0.5px",children:"ROCK"}),r.jsx("text",{x:"112",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"900",fill:"#0EA571",children:"10"})]})}N.Alert=Ta,N.ArenaCard=Ka,N.ArenaPosterCard=Ja,N.Badge=Br,N.BannerCTA=Ga,N.Button=Fr,N.Card=Wr,N.CardContent=Yr,N.CardDescription=Hr,N.CardFooter=Kr,N.CardHeader=Gr,N.CardTitle=Ur,N.Checkbox=Dr,N.ConfirmDialog=Aa,N.DatePicker=Ia,N.DateSelector=Ma,N.DownloadButton=at,N.EmptyState=Fa,N.FilterBar=Ea,N.HeroBanner=Va,N.IconButton=Vr,N.Input=Or,N.LikeButton=st,N.Loading=Pa,N.Logo=Za,N.Modal=tt,N.PageHeader=za,N.SearchBar=Oa,N.SegmentedControl=Ba,N.Select=Ir,N.Skeleton=Re,N.SponsorCarousel=Xa,N.StatCard=Ra,N.StepCards=Ha,N.Switch=Lr,N.Table=Zr,N.TableBody=$r,N.TableCell=rt,N.TableContainer=Xr,N.TableHead=et,N.TableHeader=Qr,N.TableRow=qr,N.Tabs=Da,N.Textarea=Mr,N.VideoCard=Ya,N.cn=p,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});